From f6c2dcebccbb5c7a34ee385b7850cf2a38a174c1 Mon Sep 17 00:00:00 2001 From: aws-sdk-go-automation <43143561+aws-sdk-go-automation@users.noreply.github.com> Date: Fri, 26 Nov 2021 11:19:43 -0800 Subject: [PATCH] Release v1.42.13 (2021-11-26) (#4188) Release v1.42.13 (2021-11-26) === ### Service Client Updates * `service/autoscaling`: Updates service documentation * Documentation updates for Amazon EC2 Auto Scaling. * `service/ec2`: Updates service documentation * Documentation updates for EC2. * `service/iotdeviceadvisor`: Updates service documentation * `service/mgn`: Updates service API, documentation, and paginators * `service/outposts`: Updates service API, documentation, and paginators * `service/pinpoint`: Updates service API and documentation * Added a One-Time Password (OTP) management feature. You can use the Amazon Pinpoint API to generate OTP codes and send them to your users as SMS messages. Your apps can then call the API to verify the OTP codes that your users input --- CHANGELOG.md | 14 + aws/version.go | 2 +- .../apis/autoscaling/2011-01-01/docs-2.json | 72 +- models/apis/ec2/2016-11-15/docs-2.json | 10 +- .../iotdeviceadvisor/2020-09-18/docs-2.json | 50 +- models/apis/mgn/2020-02-26/api-2.json | 187 +- models/apis/mgn/2020-02-26/docs-2.json | 113 +- models/apis/mgn/2020-02-26/paginators-1.json | 6 + models/apis/outposts/2019-12-03/api-2.json | 763 ++- models/apis/outposts/2019-12-03/docs-2.json | 492 +- .../outposts/2019-12-03/paginators-1.json | 10 + models/apis/pinpoint/2016-12-01/api-2.json | 206 + models/apis/pinpoint/2016-12-01/docs-2.json | 31 +- service/autoscaling/api.go | 156 +- service/ec2/api.go | 7 +- service/iotdeviceadvisor/api.go | 123 +- service/iotdeviceadvisor/errors.go | 8 +- service/mgn/api.go | 1329 +++- service/mgn/errors.go | 7 + service/mgn/mgniface/interface.go | 19 + service/outposts/api.go | 5801 +++++++++++++---- service/outposts/doc.go | 9 +- service/outposts/outpostsiface/interface.go | 54 +- service/pinpoint/api.go | 355 + service/pinpoint/pinpointiface/interface.go | 4 + 25 files changed, 8326 insertions(+), 1502 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index fd3100ebbf..3ed053ae6e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,17 @@ +Release v1.42.13 (2021-11-26) +=== + +### Service Client Updates +* `service/autoscaling`: Updates service documentation + * Documentation updates for Amazon EC2 Auto Scaling. +* `service/ec2`: Updates service documentation + * Documentation updates for EC2. +* `service/iotdeviceadvisor`: Updates service documentation +* `service/mgn`: Updates service API, documentation, and paginators +* `service/outposts`: Updates service API, documentation, and paginators +* `service/pinpoint`: Updates service API and documentation + * Added a One-Time Password (OTP) management feature. You can use the Amazon Pinpoint API to generate OTP codes and send them to your users as SMS messages. Your apps can then call the API to verify the OTP codes that your users input + Release v1.42.12 (2021-11-24) === diff --git a/aws/version.go b/aws/version.go index c1c3a395dc..77a216d0b6 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.12" +const SDKVersion = "1.42.13" diff --git a/models/apis/autoscaling/2011-01-01/docs-2.json b/models/apis/autoscaling/2011-01-01/docs-2.json index 56c34fc438..071127dba4 100644 --- a/models/apis/autoscaling/2011-01-01/docs-2.json +++ b/models/apis/autoscaling/2011-01-01/docs-2.json @@ -3,12 +3,12 @@ "service": "Amazon EC2 Auto Scaling

Amazon EC2 Auto Scaling is designed to automatically launch or terminate EC2 instances based on user-defined scaling policies, scheduled actions, and health checks.

For more information about Amazon EC2 Auto Scaling, see the Amazon EC2 Auto Scaling User Guide. For information about granting IAM users required permissions for calls to Amazon EC2 Auto Scaling, see Granting IAM users required permissions for Amazon EC2 Auto Scaling resources in the Amazon EC2 Auto Scaling API Reference.

", "operations": { "AttachInstances": "

Attaches one or more EC2 instances to the specified Auto Scaling group.

When you attach instances, Amazon EC2 Auto Scaling increases the desired capacity of the group by the number of instances being attached. If the number of instances being attached plus the desired capacity of the group exceeds the maximum size of the group, the operation fails.

If there is a Classic Load Balancer attached to your Auto Scaling group, the instances are also registered with the load balancer. If there are target groups attached to your Auto Scaling group, the instances are also registered with the target groups.

For more information, see Attach EC2 instances to your Auto Scaling group in the Amazon EC2 Auto Scaling User Guide.

", - "AttachLoadBalancerTargetGroups": "

Attaches one or more target groups to the specified Auto Scaling group.

This operation is used with the following load balancer types:

To describe the target groups for an Auto Scaling group, call the DescribeLoadBalancerTargetGroups API. To detach the target group from the Auto Scaling group, call the DetachLoadBalancerTargetGroups API.

For more information, see Elastic Load Balancing and Amazon EC2 Auto Scaling in the Amazon EC2 Auto Scaling User Guide.

", - "AttachLoadBalancers": "

To attach an Application Load Balancer, Network Load Balancer, or Gateway Load Balancer, use the AttachLoadBalancerTargetGroups API operation instead.

Attaches one or more Classic Load Balancers to the specified Auto Scaling group. Amazon EC2 Auto Scaling registers the running instances with these Classic Load Balancers.

To describe the load balancers for an Auto Scaling group, call the DescribeLoadBalancers API. To detach the load balancer from the Auto Scaling group, call the DetachLoadBalancers API.

For more information, see Elastic Load Balancing and Amazon EC2 Auto Scaling in the Amazon EC2 Auto Scaling User Guide.

", + "AttachLoadBalancerTargetGroups": "

Attaches one or more target groups to the specified Auto Scaling group.

This operation is used with the following load balancer types:

To describe the target groups for an Auto Scaling group, call the DescribeLoadBalancerTargetGroups API. To detach the target group from the Auto Scaling group, call the DetachLoadBalancerTargetGroups API.

This operation is additive and does not detach existing target groups or Classic Load Balancers from the Auto Scaling group.

For more information, see Elastic Load Balancing and Amazon EC2 Auto Scaling in the Amazon EC2 Auto Scaling User Guide.

", + "AttachLoadBalancers": "

To attach an Application Load Balancer, Network Load Balancer, or Gateway Load Balancer, use the AttachLoadBalancerTargetGroups API operation instead.

Attaches one or more Classic Load Balancers to the specified Auto Scaling group. Amazon EC2 Auto Scaling registers the running instances with these Classic Load Balancers.

To describe the load balancers for an Auto Scaling group, call the DescribeLoadBalancers API. To detach the load balancer from the Auto Scaling group, call the DetachLoadBalancers API.

This operation is additive and does not detach existing Classic Load Balancers or target groups from the Auto Scaling group.

For more information, see Elastic Load Balancing and Amazon EC2 Auto Scaling in the Amazon EC2 Auto Scaling User Guide.

", "BatchDeleteScheduledAction": "

Deletes one or more scheduled actions for the specified Auto Scaling group.

", "BatchPutScheduledUpdateGroupAction": "

Creates or updates one or more scheduled scaling actions for an Auto Scaling group.

", "CancelInstanceRefresh": "

Cancels an instance refresh operation in progress. Cancellation does not roll back any replacements that have already been completed, but it prevents new replacements from being started.

This operation is part of the instance refresh feature in Amazon EC2 Auto Scaling, which helps you update instances in your Auto Scaling group after you make configuration changes.

", - "CompleteLifecycleAction": "

Completes the lifecycle action for the specified token or instance with the specified result.

This step is a part of the procedure for adding a lifecycle hook to an Auto Scaling group:

  1. (Optional) Create a Lambda function and a rule that allows CloudWatch Events to invoke your Lambda function when Amazon EC2 Auto Scaling launches or terminates instances.

  2. (Optional) Create a notification target and an IAM role. The target can be either an Amazon SQS queue or an Amazon SNS topic. The role allows Amazon EC2 Auto Scaling to publish lifecycle notifications to the target.

  3. Create the lifecycle hook. Specify whether the hook is used when the instances launch or terminate.

  4. If you need more time, record the lifecycle action heartbeat to keep the instance in a pending state.

  5. If you finish before the timeout period ends, complete the lifecycle action.

For more information, see Amazon EC2 Auto Scaling lifecycle hooks in the Amazon EC2 Auto Scaling User Guide.

", + "CompleteLifecycleAction": "

Completes the lifecycle action for the specified token or instance with the specified result.

This step is a part of the procedure for adding a lifecycle hook to an Auto Scaling group:

  1. (Optional) Create a Lambda function and a rule that allows Amazon EventBridge to invoke your Lambda function when Amazon EC2 Auto Scaling launches or terminates instances.

  2. (Optional) Create a notification target and an IAM role. The target can be either an Amazon SQS queue or an Amazon SNS topic. The role allows Amazon EC2 Auto Scaling to publish lifecycle notifications to the target.

  3. Create the lifecycle hook. Specify whether the hook is used when the instances launch or terminate.

  4. If you need more time, record the lifecycle action heartbeat to keep the instance in a pending state.

  5. If you finish before the timeout period ends, send a callback by using the CompleteLifecycleAction API call.

For more information, see Amazon EC2 Auto Scaling lifecycle hooks in the Amazon EC2 Auto Scaling User Guide.

", "CreateAutoScalingGroup": "

We strongly recommend using a launch template when calling this operation to ensure full functionality for Amazon EC2 Auto Scaling and Amazon EC2.

Creates an Auto Scaling group with the specified name and attributes.

If you exceed your maximum limit of Auto Scaling groups, the call fails. To query this limit, call the DescribeAccountLimits API. For information about updating this limit, see Amazon EC2 Auto Scaling service quotas in the Amazon EC2 Auto Scaling User Guide.

For introductory exercises for creating an Auto Scaling group, see Getting started with Amazon EC2 Auto Scaling and Tutorial: Set up a scaled and load-balanced application in the Amazon EC2 Auto Scaling User Guide. For more information, see Auto Scaling groups in the Amazon EC2 Auto Scaling User Guide.

Every Auto Scaling group has three size parameters (DesiredCapacity, MaxSize, and MinSize). Usually, you set these sizes based on a specific number of instances. However, if you configure a mixed instances policy that defines weights for the instance types, you must specify these sizes with the same units that you use for weighting instances.

", "CreateLaunchConfiguration": "

Creates a launch configuration.

If you exceed your maximum limit of launch configurations, the call fails. To query this limit, call the DescribeAccountLimits API. For information about updating this limit, see Amazon EC2 Auto Scaling service quotas in the Amazon EC2 Auto Scaling User Guide.

For more information, see Launch configurations in the Amazon EC2 Auto Scaling User Guide.

", "CreateOrUpdateTags": "

Creates or updates tags for the specified Auto Scaling group.

When you specify a tag with a key that already exists, the operation overwrites the previous tag definition, and you do not get an error message.

For more information, see Tagging Auto Scaling groups and instances in the Amazon EC2 Auto Scaling User Guide.

", @@ -49,16 +49,16 @@ "ExecutePolicy": "

Executes the specified policy. This can be useful for testing the design of your scaling policy.

", "ExitStandby": "

Moves the specified instances out of the standby state.

After you put the instances back in service, the desired capacity is incremented.

For more information, see Temporarily removing instances from your Auto Scaling group in the Amazon EC2 Auto Scaling User Guide.

", "GetPredictiveScalingForecast": "

Retrieves the forecast data for a predictive scaling policy.

Load forecasts are predictions of the hourly load values using historical load data from CloudWatch and an analysis of historical trends. Capacity forecasts are represented as predicted values for the minimum capacity that is needed on an hourly basis, based on the hourly load forecast.

A minimum of 24 hours of data is required to create the initial forecasts. However, having a full 14 days of historical data results in more accurate forecasts.

For more information, see Predictive scaling for Amazon EC2 Auto Scaling in the Amazon EC2 Auto Scaling User Guide.

", - "PutLifecycleHook": "

Creates or updates a lifecycle hook for the specified Auto Scaling group.

A lifecycle hook tells Amazon EC2 Auto Scaling to perform an action on an instance when the instance launches (before it is put into service) or as the instance terminates (before it is fully terminated).

This step is a part of the procedure for adding a lifecycle hook to an Auto Scaling group:

  1. (Optional) Create a Lambda function and a rule that allows CloudWatch Events to invoke your Lambda function when Amazon EC2 Auto Scaling launches or terminates instances.

  2. (Optional) Create a notification target and an IAM role. The target can be either an Amazon SQS queue or an Amazon SNS topic. The role allows Amazon EC2 Auto Scaling to publish lifecycle notifications to the target.

  3. Create the lifecycle hook. Specify whether the hook is used when the instances launch or terminate.

  4. If you need more time, record the lifecycle action heartbeat to keep the instance in a pending state using the RecordLifecycleActionHeartbeat API call.

  5. If you finish before the timeout period ends, complete the lifecycle action using the CompleteLifecycleAction API call.

For more information, see Amazon EC2 Auto Scaling lifecycle hooks in the Amazon EC2 Auto Scaling User Guide.

If you exceed your maximum limit of lifecycle hooks, which by default is 50 per Auto Scaling group, the call fails.

You can view the lifecycle hooks for an Auto Scaling group using the DescribeLifecycleHooks API call. If you are no longer using a lifecycle hook, you can delete it by calling the DeleteLifecycleHook API.

", + "PutLifecycleHook": "

Creates or updates a lifecycle hook for the specified Auto Scaling group.

A lifecycle hook enables an Auto Scaling group to be aware of events in the Auto Scaling instance lifecycle, and then perform a custom action when the corresponding lifecycle event occurs.

This step is a part of the procedure for adding a lifecycle hook to an Auto Scaling group:

  1. (Optional) Create a Lambda function and a rule that allows Amazon EventBridge to invoke your Lambda function when Amazon EC2 Auto Scaling launches or terminates instances.

  2. (Optional) Create a notification target and an IAM role. The target can be either an Amazon SQS queue or an Amazon SNS topic. The role allows Amazon EC2 Auto Scaling to publish lifecycle notifications to the target.

  3. Create the lifecycle hook. Specify whether the hook is used when the instances launch or terminate.

  4. If you need more time, record the lifecycle action heartbeat to keep the instance in a pending state using the RecordLifecycleActionHeartbeat API call.

  5. If you finish before the timeout period ends, send a callback by using the CompleteLifecycleAction API call.

For more information, see Amazon EC2 Auto Scaling lifecycle hooks in the Amazon EC2 Auto Scaling User Guide.

If you exceed your maximum limit of lifecycle hooks, which by default is 50 per Auto Scaling group, the call fails.

You can view the lifecycle hooks for an Auto Scaling group using the DescribeLifecycleHooks API call. If you are no longer using a lifecycle hook, you can delete it by calling the DeleteLifecycleHook API.

", "PutNotificationConfiguration": "

Configures an Auto Scaling group to send notifications when specified events take place. Subscribers to the specified topic can have messages delivered to an endpoint such as a web server or an email address.

This configuration overwrites any existing configuration.

For more information, see Getting Amazon SNS notifications when your Auto Scaling group scales in the Amazon EC2 Auto Scaling User Guide.

If you exceed your maximum limit of SNS topics, which is 10 per Auto Scaling group, the call fails.

", "PutScalingPolicy": "

Creates or updates a scaling policy for an Auto Scaling group. Scaling policies are used to scale an Auto Scaling group based on configurable metrics. If no policies are defined, the dynamic scaling and predictive scaling features are not used.

For more information about using dynamic scaling, see Target tracking scaling policies and Step and simple scaling policies in the Amazon EC2 Auto Scaling User Guide.

For more information about using predictive scaling, see Predictive scaling for Amazon EC2 Auto Scaling in the Amazon EC2 Auto Scaling User Guide.

You can view the scaling policies for an Auto Scaling group using the DescribePolicies API call. If you are no longer using a scaling policy, you can delete it by calling the DeletePolicy API.

", "PutScheduledUpdateGroupAction": "

Creates or updates a scheduled scaling action for an Auto Scaling group.

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

You can view the scheduled actions for an Auto Scaling group using the DescribeScheduledActions API call. If you are no longer using a scheduled action, you can delete it by calling the DeleteScheduledAction API.

", "PutWarmPool": "

Creates or updates a warm pool for the specified Auto Scaling group. A warm pool is a pool of pre-initialized EC2 instances that sits alongside the Auto Scaling group. Whenever your application needs to scale out, the Auto Scaling group can draw on the warm pool to meet its new desired capacity. For more information and example configurations, see Warm pools for Amazon EC2 Auto Scaling in the Amazon EC2 Auto Scaling User Guide.

This operation must be called from the Region in which the Auto Scaling group was created. This operation cannot be called on an Auto Scaling group that has a mixed instances policy or a launch template or launch configuration that requests Spot Instances.

You can view the instances in the warm pool using the DescribeWarmPool API call. If you are no longer using a warm pool, you can delete it by calling the DeleteWarmPool API.

", - "RecordLifecycleActionHeartbeat": "

Records a heartbeat for the lifecycle action associated with the specified token or instance. This extends the timeout by the length of time defined using the PutLifecycleHook API call.

This step is a part of the procedure for adding a lifecycle hook to an Auto Scaling group:

  1. (Optional) Create a Lambda function and a rule that allows CloudWatch Events to invoke your Lambda function when Amazon EC2 Auto Scaling launches or terminates instances.

  2. (Optional) Create a notification target and an IAM role. The target can be either an Amazon SQS queue or an Amazon SNS topic. The role allows Amazon EC2 Auto Scaling to publish lifecycle notifications to the target.

  3. Create the lifecycle hook. Specify whether the hook is used when the instances launch or terminate.

  4. If you need more time, record the lifecycle action heartbeat to keep the instance in a pending state.

  5. If you finish before the timeout period ends, complete the lifecycle action.

For more information, see Amazon EC2 Auto Scaling lifecycle hooks in the Amazon EC2 Auto Scaling User Guide.

", + "RecordLifecycleActionHeartbeat": "

Records a heartbeat for the lifecycle action associated with the specified token or instance. This extends the timeout by the length of time defined using the PutLifecycleHook API call.

This step is a part of the procedure for adding a lifecycle hook to an Auto Scaling group:

  1. (Optional) Create a Lambda function and a rule that allows Amazon EventBridge to invoke your Lambda function when Amazon EC2 Auto Scaling launches or terminates instances.

  2. (Optional) Create a notification target and an IAM role. The target can be either an Amazon SQS queue or an Amazon SNS topic. The role allows Amazon EC2 Auto Scaling to publish lifecycle notifications to the target.

  3. Create the lifecycle hook. Specify whether the hook is used when the instances launch or terminate.

  4. If you need more time, record the lifecycle action heartbeat to keep the instance in a pending state.

  5. If you finish before the timeout period ends, send a callback by using the CompleteLifecycleAction API call.

For more information, see Amazon EC2 Auto Scaling lifecycle hooks in the Amazon EC2 Auto Scaling User Guide.

", "ResumeProcesses": "

Resumes the specified suspended auto scaling processes, or all suspended process, for the specified Auto Scaling group.

For more information, see Suspending and resuming scaling processes in the Amazon EC2 Auto Scaling User Guide.

", "SetDesiredCapacity": "

Sets the size of the specified Auto Scaling group.

If a scale-in activity occurs as a result of a new DesiredCapacity value that is lower than the current size of the group, the Auto Scaling group uses its termination policy to determine which instances to terminate.

For more information, see Manual scaling in the Amazon EC2 Auto Scaling User Guide.

", "SetInstanceHealth": "

Sets the health status of the specified instance.

For more information, see Health checks for Auto Scaling instances in the Amazon EC2 Auto Scaling User Guide.

", - "SetInstanceProtection": "

Updates the instance protection settings of the specified instances. This operation cannot be called on instances in a warm pool.

For more information about preventing instances that are part of an Auto Scaling group from terminating on scale in, see Instance scale-in protection in the Amazon EC2 Auto Scaling User Guide.

If you exceed your maximum limit of instance IDs, which is 50 per Auto Scaling group, the call fails.

", + "SetInstanceProtection": "

Updates the instance protection settings of the specified instances. This operation cannot be called on instances in a warm pool.

For more information about preventing instances that are part of an Auto Scaling group from terminating on scale in, see Using instance scale-in protection in the Amazon EC2 Auto Scaling User Guide.

If you exceed your maximum limit of instance IDs, which is 50 per Auto Scaling group, the call fails.

", "StartInstanceRefresh": "

Starts a new instance refresh operation. An instance refresh performs a rolling replacement of all or some instances in an Auto Scaling group. Each instance is terminated first and then replaced, which temporarily reduces the capacity available within your Auto Scaling group.

This operation is part of the instance refresh feature in Amazon EC2 Auto Scaling, which helps you update instances in your Auto Scaling group. This feature is helpful, for example, when you have a new AMI or a new user data script. You just need to create a new launch template that specifies the new AMI or user data script. Then start an instance refresh to immediately begin the process of updating instances in the group.

If the call succeeds, it creates a new instance refresh request with a unique ID that you can use to track its progress. To query its status, call the DescribeInstanceRefreshes API. To describe the instance refreshes that have already run, call the DescribeInstanceRefreshes API. To cancel an instance refresh operation in progress, use the CancelInstanceRefresh API.

", "SuspendProcesses": "

Suspends the specified auto scaling processes, or all processes, for the specified Auto Scaling group.

If you suspend either the Launch or Terminate process types, it can prevent other process types from functioning properly. For more information, see Suspending and resuming scaling processes in the Amazon EC2 Auto Scaling User Guide.

To resume processes that have been suspended, call the ResumeProcesses API.

", "TerminateInstanceInAutoScalingGroup": "

Terminates the specified instance and optionally adjusts the desired group size. This operation cannot be called on instances in a warm pool.

This call simply makes a termination request. The instance is not terminated immediately. When an instance is terminated, the instance status changes to terminated. You can't connect to or start an instance after you've terminated it.

If you do not specify the option to decrement the desired capacity, Amazon EC2 Auto Scaling launches instances to replace the ones that are terminated.

By default, Amazon EC2 Auto Scaling balances instances across all Availability Zones. If you decrement the desired capacity, your Auto Scaling group can become unbalanced between Availability Zones. Amazon EC2 Auto Scaling tries to rebalance the group, and rebalancing might terminate instances in other zones. For more information, see Rebalancing activities in the Amazon EC2 Auto Scaling User Guide.

", @@ -439,8 +439,8 @@ "base": null, "refs": { "AutoScalingGroup$CapacityRebalance": "

Indicates whether Capacity Rebalancing is enabled.

", - "CreateAutoScalingGroupType$CapacityRebalance": "

Indicates whether Capacity Rebalancing is enabled. Otherwise, Capacity Rebalancing is disabled. When you turn on Capacity Rebalancing, Amazon EC2 Auto Scaling attempts to launch a Spot Instance whenever Amazon EC2 notifies that a Spot Instance is at an elevated risk of interruption. After launching a new instance, it then terminates an old instance. For more information, see Amazon EC2 Auto Scaling Capacity Rebalancing in the Amazon EC2 Auto Scaling User Guide.

", - "UpdateAutoScalingGroupType$CapacityRebalance": "

Enables or disables Capacity Rebalancing. For more information, see Amazon EC2 Auto Scaling Capacity Rebalancing in the Amazon EC2 Auto Scaling User Guide.

" + "CreateAutoScalingGroupType$CapacityRebalance": "

Indicates whether Capacity Rebalancing is enabled. Otherwise, Capacity Rebalancing is disabled. When you turn on Capacity Rebalancing, Amazon EC2 Auto Scaling attempts to launch a Spot Instance whenever Amazon EC2 notifies that a Spot Instance is at an elevated risk of interruption. After launching a new instance, it then terminates an old instance. For more information, see Amazon EC2 Auto Scaling Capacity Rebalancing in the Amazon EC2 Auto Scaling User Guide.

", + "UpdateAutoScalingGroupType$CapacityRebalance": "

Enables or disables Capacity Rebalancing. For more information, see Amazon EC2 Auto Scaling Capacity Rebalancing in the Amazon EC2 Auto Scaling User Guide.

" } }, "CheckpointDelay": { @@ -518,7 +518,7 @@ } }, "CustomizedMetricSpecification": { - "base": "

Represents a CloudWatch metric of your choosing for a target tracking scaling policy to use with Amazon EC2 Auto Scaling.

To create your customized metric specification:

For more information about CloudWatch, see Amazon CloudWatch Concepts.

", + "base": "

Represents a CloudWatch metric of your choosing for a target tracking scaling policy to use with Amazon EC2 Auto Scaling.

To create your customized metric specification:

For more information about the CloudWatch terminology below, see Amazon CloudWatch concepts.

Each individual service provides information about the metrics, namespace, and dimensions they use. For more information, see Amazon Web Services services that publish CloudWatch metrics in the Amazon CloudWatch User Guide.

", "refs": { "TargetTrackingConfiguration$CustomizedMetricSpecification": "

A customized metric. You must specify either a predefined metric or a customized metric.

" } @@ -857,9 +857,9 @@ "HealthCheckGracePeriod": { "base": null, "refs": { - "AutoScalingGroup$HealthCheckGracePeriod": "

The amount of time, in seconds, that Amazon EC2 Auto Scaling waits before checking the health status of an EC2 instance that has come into service.

", - "CreateAutoScalingGroupType$HealthCheckGracePeriod": "

The amount of time, in seconds, that Amazon EC2 Auto Scaling waits before checking the health status of an EC2 instance that has come into service. During this time, any health check failures for the instance are ignored. The default value is 0. For more information, see Health check grace period in the Amazon EC2 Auto Scaling User Guide.

Conditional: Required if you are adding an ELB health check.

", - "UpdateAutoScalingGroupType$HealthCheckGracePeriod": "

The amount of time, in seconds, that Amazon EC2 Auto Scaling waits before checking the health status of an EC2 instance that has come into service. The default value is 0. For more information, see Health check grace period in the Amazon EC2 Auto Scaling User Guide.

Conditional: Required if you are adding an ELB health check.

" + "AutoScalingGroup$HealthCheckGracePeriod": "

The amount of time, in seconds, that Amazon EC2 Auto Scaling waits before checking the health status of an EC2 instance that has come into service and marking it unhealthy due to a failed health check.

", + "CreateAutoScalingGroupType$HealthCheckGracePeriod": "

The amount of time, in seconds, that Amazon EC2 Auto Scaling waits before checking the health status of an EC2 instance that has come into service and marking it unhealthy due to a failed health check. The default value is 0. For more information, see Health check grace period in the Amazon EC2 Auto Scaling User Guide.

Conditional: Required if you are adding an ELB health check.

", + "UpdateAutoScalingGroupType$HealthCheckGracePeriod": "

The amount of time, in seconds, that Amazon EC2 Auto Scaling waits before checking the health status of an EC2 instance that has come into service and marking it unhealthy due to a failed health check. The default value is 0. For more information, see Health check grace period in the Amazon EC2 Auto Scaling User Guide.

Conditional: Required if you are adding an ELB health check.

" } }, "HeartbeatTimeout": { @@ -949,9 +949,9 @@ "refs": { "AutoScalingGroup$NewInstancesProtectedFromScaleIn": "

Indicates whether newly launched instances are protected from termination by Amazon EC2 Auto Scaling when scaling in.

", "AutoScalingInstanceDetails$ProtectedFromScaleIn": "

Indicates whether the instance is protected from termination by Amazon EC2 Auto Scaling when scaling in.

", - "CreateAutoScalingGroupType$NewInstancesProtectedFromScaleIn": "

Indicates whether newly launched instances are protected from termination by Amazon EC2 Auto Scaling when scaling in. For more information about preventing instances from terminating on scale in, see Instance scale-in protection in the Amazon EC2 Auto Scaling User Guide.

", + "CreateAutoScalingGroupType$NewInstancesProtectedFromScaleIn": "

Indicates whether newly launched instances are protected from termination by Amazon EC2 Auto Scaling when scaling in. For more information about preventing instances from terminating on scale in, see Using instance scale-in protection in the Amazon EC2 Auto Scaling User Guide.

", "Instance$ProtectedFromScaleIn": "

Indicates whether the instance is protected from termination by Amazon EC2 Auto Scaling when scaling in.

", - "UpdateAutoScalingGroupType$NewInstancesProtectedFromScaleIn": "

Indicates whether newly launched instances are protected from termination by Amazon EC2 Auto Scaling when scaling in. For more information about preventing instances from terminating on scale in, see Instance scale-in protection in the Amazon EC2 Auto Scaling User Guide.

" + "UpdateAutoScalingGroupType$NewInstancesProtectedFromScaleIn": "

Indicates whether newly launched instances are protected from termination by Amazon EC2 Auto Scaling when scaling in. For more information about preventing instances from terminating on scale in, see Using instance scale-in protection in the Amazon EC2 Auto Scaling User Guide.

" } }, "InstanceRefresh": { @@ -1088,7 +1088,7 @@ } }, "LaunchTemplateOverrides": { - "base": "

Describes an override for a launch template. For more information, see Configuring overrides in the Amazon EC2 Auto Scaling User Guide.

", + "base": "

Describes an override for a launch template. For more information, see Configuring overrides in the Amazon EC2 Auto Scaling User Guide.

", "refs": { "Overrides$member": null } @@ -1102,7 +1102,7 @@ "DesiredConfiguration$LaunchTemplate": null, "Instance$LaunchTemplate": "

The launch template for the instance.

", "LaunchTemplate$LaunchTemplateSpecification": "

The launch template to use.

", - "LaunchTemplateOverrides$LaunchTemplateSpecification": "

Provides the launch template to be used when launching the instance type specified in InstanceType. For example, some instance types might require a launch template with a different AMI. If not provided, Amazon EC2 Auto Scaling uses the launch template that's defined for your mixed instances policy. For more information, see Specifying a different launch template for an instance type in the Amazon EC2 Auto Scaling User Guide.

", + "LaunchTemplateOverrides$LaunchTemplateSpecification": "

Provides the launch template to be used when launching the instance type specified in InstanceType. For example, some instance types might require a launch template with a different AMI. If not provided, Amazon EC2 Auto Scaling uses the launch template that's defined for your mixed instances policy. For more information, see Specifying a different launch template for an instance type in the Amazon EC2 Auto Scaling User Guide.

", "UpdateAutoScalingGroupType$LaunchTemplate": "

The launch template and version to use to specify the updates. If you specify LaunchTemplate in your update request, you can't specify LaunchConfigurationName or MixedInstancesPolicy.

" } }, @@ -1123,7 +1123,7 @@ } }, "LifecycleHook": { - "base": "

Describes a lifecycle hook, which tells Amazon EC2 Auto Scaling that you want to perform an action whenever it launches instances or terminates instances.

", + "base": "

Describes a lifecycle hook, which enables an Auto Scaling group to be aware of events in the Auto Scaling instance lifecycle, and then perform a custom action when the corresponding lifecycle event occurs.

", "refs": { "LifecycleHooks$member": null } @@ -1135,7 +1135,7 @@ } }, "LifecycleHookSpecification": { - "base": "

Describes information used to specify a lifecycle hook for an Auto Scaling group.

A lifecycle hook tells Amazon EC2 Auto Scaling to perform an action on an instance when the instance launches (before it is put into service) or as the instance terminates (before it is fully terminated).

This step is a part of the procedure for creating a lifecycle hook for an Auto Scaling group:

  1. (Optional) Create a Lambda function and a rule that allows CloudWatch Events to invoke your Lambda function when Amazon EC2 Auto Scaling launches or terminates instances.

  2. (Optional) Create a notification target and an IAM role. The target can be either an Amazon SQS queue or an Amazon SNS topic. The role allows Amazon EC2 Auto Scaling to publish lifecycle notifications to the target.

  3. Create the lifecycle hook. Specify whether the hook is used when the instances launch or terminate.

  4. If you need more time, record the lifecycle action heartbeat to keep the instance in a pending state.

  5. If you finish before the timeout period ends, complete the lifecycle action.

For more information, see Amazon EC2 Auto Scaling lifecycle hooks in the Amazon EC2 Auto Scaling User Guide.

", + "base": "

Describes information used to specify a lifecycle hook for an Auto Scaling group.

For more information, see Amazon EC2 Auto Scaling lifecycle hooks in the Amazon EC2 Auto Scaling User Guide.

", "refs": { "LifecycleHookSpecifications$member": null } @@ -1317,7 +1317,7 @@ } }, "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.

", + "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 custom metrics in the Amazon EC2 Auto Scaling User Guide.

", "refs": { "MetricDataQueries$member": null } @@ -1362,7 +1362,7 @@ "MetricName": { "base": null, "refs": { - "CustomizedMetricSpecification$MetricName": "

The name of the metric.

", + "CustomizedMetricSpecification$MetricName": "

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

", "Metric$MetricName": "

The name of the metric.

" } }, @@ -1406,8 +1406,8 @@ "MetricUnit": { "base": null, "refs": { - "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.

" + "CustomizedMetricSpecification$Unit": "

The unit of the metric. For a complete list of the units that CloudWatch supports, see the MetricDatum data type in the Amazon CloudWatch API Reference.

", + "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": { @@ -1438,12 +1438,12 @@ } }, "MixedInstancesPolicy": { - "base": "

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 your costs. For more information, see Auto Scaling groups with multiple instance types and purchase options in the Amazon EC2 Auto Scaling User Guide.

", + "base": "

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 your costs. For more information, see Auto Scaling groups with multiple instance types and purchase options in the Amazon EC2 Auto Scaling User Guide.

", "refs": { "AutoScalingGroup$MixedInstancesPolicy": "

The mixed instances policy for the group.

", - "CreateAutoScalingGroupType$MixedInstancesPolicy": "

An embedded object that specifies a mixed instances policy.

For more information, see Auto Scaling groups with multiple instance types and purchase options in the Amazon EC2 Auto Scaling User Guide.

", + "CreateAutoScalingGroupType$MixedInstancesPolicy": "

An embedded object that specifies a mixed instances policy.

For more information, see Auto Scaling groups with multiple instance types and purchase options in the Amazon EC2 Auto Scaling User Guide.

", "DesiredConfiguration$MixedInstancesPolicy": null, - "UpdateAutoScalingGroupType$MixedInstancesPolicy": "

An embedded object that specifies a mixed instances policy. For more information, see Auto Scaling groups with multiple instance types and purchase options in the Amazon EC2 Auto Scaling User Guide.

" + "UpdateAutoScalingGroupType$MixedInstancesPolicy": "

An embedded object that specifies a mixed instances policy. For more information, see Auto Scaling groups with multiple instance types and purchase options in the Amazon EC2 Auto Scaling User Guide.

" } }, "MonitoringEnabled": { @@ -1611,7 +1611,7 @@ "PredictiveScalingConfiguration": { "base": "

Represents a predictive scaling policy configuration to use with Amazon EC2 Auto Scaling.

", "refs": { - "PutScalingPolicyType$PredictiveScalingConfiguration": "

A predictive scaling policy. Provides support for only predefined metrics.

Predictive scaling works with CPU utilization, network in/out, and the Application Load Balancer request count.

For more information, see PredictiveScalingConfiguration in the Amazon EC2 Auto Scaling API Reference.

Required if the policy type is PredictiveScaling.

", + "PutScalingPolicyType$PredictiveScalingConfiguration": "

A predictive scaling policy. Provides support for predefined and custom metrics.

Predefined metrics include CPU utilization, network in/out, and the Application Load Balancer request count.

For more information, see PredictiveScalingConfiguration in the Amazon EC2 Auto Scaling API Reference.

Required if the policy type is PredictiveScaling.

", "ScalingPolicy$PredictiveScalingConfiguration": "

A predictive scaling policy.

" } }, @@ -1622,13 +1622,13 @@ } }, "PredictiveScalingCustomizedLoadMetric": { - "base": "

Describes a customized load metric for a predictive scaling policy.

", + "base": "

Describes a custom 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.

", + "base": "

Describes a custom scaling metric for a predictive scaling policy.

", "refs": { "PredictiveScalingMetricSpecification$CustomizedScalingMetricSpecification": "

The customized scaling metric specification.

" } @@ -1660,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

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.

", + "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

For information about using custom metrics with predictive scaling, see Advanced predictive scaling policy configurations using custom metrics in the Amazon EC2 Auto Scaling User Guide.

", "refs": { "LoadForecast$MetricSpecification": "

The metric specification for the load forecast.

", "PredictiveScalingMetricSpecifications$member": null @@ -1841,7 +1841,7 @@ "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).

" + "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).

" } }, "ScalingActivityInProgressFault": { @@ -2073,7 +2073,7 @@ "TargetTrackingConfiguration": { "base": "

Represents a target tracking scaling policy configuration to use with Amazon EC2 Auto Scaling.

", "refs": { - "PutScalingPolicyType$TargetTrackingConfiguration": "

A target tracking scaling policy. Provides support for predefined or customized metrics.

The following predefined metrics are available:

If you specify ALBRequestCountPerTarget for the metric, you must specify the ResourceLabel parameter with the PredefinedMetricSpecification.

For more information, see TargetTrackingConfiguration in the Amazon EC2 Auto Scaling API Reference.

Required if the policy type is TargetTrackingScaling.

", + "PutScalingPolicyType$TargetTrackingConfiguration": "

A target tracking scaling policy. Provides support for predefined or custom metrics.

The following predefined metrics are available:

If you specify ALBRequestCountPerTarget for the metric, you must specify the ResourceLabel parameter with the PredefinedMetricSpecification.

For more information, see TargetTrackingConfiguration in the Amazon EC2 Auto Scaling API Reference.

Required if the policy type is TargetTrackingScaling.

", "ScalingPolicy$TargetTrackingConfiguration": "

A target tracking scaling policy.

" } }, @@ -2222,7 +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.

", + "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.

Conditional: Within each MetricDataQuery object, you must specify either Expression or MetricStat, but not both.

", "PredefinedMetricSpecification$ResourceLabel": "

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:

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:

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:

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.

", @@ -2305,7 +2305,7 @@ "DeleteAutoScalingGroupType$AutoScalingGroupName": "

The name of the Auto Scaling group.

", "DeleteLifecycleHookType$AutoScalingGroupName": "

The name of the Auto Scaling group.

", "DeleteNotificationConfigurationType$AutoScalingGroupName": "

The name of the Auto Scaling group.

", - "DeleteNotificationConfigurationType$TopicARN": "

The Amazon Resource Name (ARN) of the Amazon Simple Notification Service (Amazon SNS) topic.

", + "DeleteNotificationConfigurationType$TopicARN": "

The Amazon Resource Name (ARN) of the Amazon SNS topic.

", "DeletePolicyType$AutoScalingGroupName": "

The name of the Auto Scaling group.

", "DeleteScheduledActionType$AutoScalingGroupName": "

The name of the Auto Scaling group.

", "DeleteScheduledActionType$ScheduledActionName": "

The name of the action to delete.

", @@ -2366,14 +2366,14 @@ "MetricGranularityType$Granularity": "

The granularity. The only valid value is 1Minute.

", "Metrics$member": null, "NotificationConfiguration$AutoScalingGroupName": "

The name of the Auto Scaling group.

", - "NotificationConfiguration$TopicARN": "

The Amazon Resource Name (ARN) of the Amazon Simple Notification Service (Amazon SNS) topic.

", + "NotificationConfiguration$TopicARN": "

The Amazon Resource Name (ARN) of the Amazon SNS topic.

", "NotificationConfiguration$NotificationType": "

One of the following event notification types:

", "ProcessNames$member": null, "ProcessType$ProcessName": "

One of the following processes:

", "PutLifecycleHookType$AutoScalingGroupName": "

The name of the Auto Scaling group.

", "PutLifecycleHookType$RoleARN": "

The ARN of the IAM role that allows the Auto Scaling group to publish to the specified notification target, for example, an Amazon SNS topic or an Amazon SQS queue.

Required for new lifecycle hooks, but optional when updating existing hooks.

", "PutNotificationConfigurationType$AutoScalingGroupName": "

The name of the Auto Scaling group.

", - "PutNotificationConfigurationType$TopicARN": "

The Amazon Resource Name (ARN) of the Amazon Simple Notification Service (Amazon SNS) topic.

", + "PutNotificationConfigurationType$TopicARN": "

The Amazon Resource Name (ARN) of the Amazon SNS topic.

", "PutScalingPolicyType$AutoScalingGroupName": "

The name of the Auto Scaling group.

", "PutScalingPolicyType$PolicyName": "

The name of the policy.

", "PutScalingPolicyType$AdjustmentType": "

Specifies how the scaling adjustment is interpreted (for example, an absolute number or a percentage). The valid values are ChangeInCapacity, ExactCapacity, and PercentChangeInCapacity.

Required if the policy type is StepScaling or SimpleScaling. For more information, see Scaling adjustment types in the Amazon EC2 Auto Scaling User Guide.

", @@ -2420,7 +2420,7 @@ "CreateAutoScalingGroupType$HealthCheckType": "

The service to use for the health checks. The valid values are EC2 (default) and ELB. If you configure an Auto Scaling group to use load balancer (ELB) health checks, it considers the instance unhealthy if it fails either the EC2 status checks or the load balancer health checks. For more information, see Health checks for Auto Scaling instances in the Amazon EC2 Auto Scaling User Guide.

", "Instance$HealthStatus": "

The last reported health status of the instance. \"Healthy\" means that the instance is healthy and should remain in service. \"Unhealthy\" means that the instance is unhealthy and that Amazon EC2 Auto Scaling should terminate and replace it.

", "Instance$WeightedCapacity": "

The number of capacity units contributed by the instance based on its instance type.

Valid Range: Minimum value of 1. Maximum value of 999.

", - "LaunchTemplateOverrides$WeightedCapacity": "

The number of capacity units provided by the instance type specified in InstanceType in terms of virtual CPUs, memory, storage, throughput, or other relative performance characteristic. When a Spot or On-Demand Instance is launched, the capacity units count toward the desired capacity. Amazon EC2 Auto Scaling launches instances until the desired capacity is totally fulfilled, even if this results in an overage. For example, if there are two units remaining to fulfill capacity, and Amazon EC2 Auto Scaling can only launch an instance with a WeightedCapacity of five units, the instance is launched, and the desired capacity is exceeded by three units. For more information, see Instance weighting for Amazon EC2 Auto Scaling in the Amazon EC2 Auto Scaling User Guide. Value must be in the range of 1–999.

", + "LaunchTemplateOverrides$WeightedCapacity": "

The number of capacity units provided by the instance type specified in InstanceType in terms of virtual CPUs, memory, storage, throughput, or other relative performance characteristic. When a Spot or On-Demand Instance is launched, the capacity units count toward the desired capacity. Amazon EC2 Auto Scaling launches instances until the desired capacity is totally fulfilled, even if this results in an overage. For example, if there are two units remaining to fulfill capacity, and Amazon EC2 Auto Scaling can only launch an instance with a WeightedCapacity of five units, the instance is launched, and the desired capacity is exceeded by three units. For more information, see Instance weighting for Amazon EC2 Auto Scaling in the Amazon EC2 Auto Scaling User Guide. Value must be in the range of 1–999.

", "PutScalingPolicyType$MetricAggregationType": "

The aggregation type for the CloudWatch metrics. The valid values are Minimum, Maximum, and Average. If the aggregation type is null, the value is treated as Average.

Valid only if the policy type is StepScaling.

", "ScalingPolicy$MetricAggregationType": "

The aggregation type for the CloudWatch metrics. The valid values are Minimum, Maximum, and Average.

", "SetInstanceHealthQuery$HealthStatus": "

The health status of the instance. Set to Healthy to have the instance remain in service. Set to Unhealthy to have the instance be out of service. Amazon EC2 Auto Scaling terminates and replaces the unhealthy instance.

", diff --git a/models/apis/ec2/2016-11-15/docs-2.json b/models/apis/ec2/2016-11-15/docs-2.json index 46e55f22c5..3187245f82 100755 --- a/models/apis/ec2/2016-11-15/docs-2.json +++ b/models/apis/ec2/2016-11-15/docs-2.json @@ -32,7 +32,7 @@ "AttachVolume": "

Attaches an EBS volume to a running or stopped instance and exposes it to the instance with the specified device name.

Encrypted EBS volumes must be attached to instances that support Amazon EBS encryption. For more information, see Amazon EBS encryption in the Amazon Elastic Compute Cloud User Guide.

After you attach an EBS volume, you must make it available. For more information, see Make an EBS volume available for use.

If a volume has an Amazon Web Services Marketplace product code:

For more information, see Attach an Amazon EBS volume to an instance in the Amazon Elastic Compute Cloud User Guide.

", "AttachVpnGateway": "

Attaches a virtual private gateway to a VPC. You can attach one virtual private gateway to one VPC at a time.

For more information, see Amazon Web Services Site-to-Site VPN in the Amazon Web Services Site-to-Site VPN User Guide.

", "AuthorizeClientVpnIngress": "

Adds an ingress authorization rule to a Client VPN endpoint. Ingress authorization rules act as firewall rules that grant access to networks. You must configure ingress authorization rules to enable clients to access resources in Amazon Web Services or on-premises networks.

", - "AuthorizeSecurityGroupEgress": "

[VPC only] Adds the specified outbound (egress) rules to a security group for use with a VPC.

An outbound rule permits instances to send traffic to the specified IPv4 or IPv6 CIDR address ranges, or to the instances that are associated with the specified destination security groups.

You specify a protocol for each rule (for example, TCP). For the TCP and UDP protocols, you must also specify the destination port or port range. For the ICMP protocol, you must also specify the ICMP type and code. You can use -1 for the type or code to mean all types or all codes.

Rule changes are propagated to affected instances as quickly as possible. However, a small delay might occur.

For information about VPC security group quotas, see Amazon VPC quotas.

", + "AuthorizeSecurityGroupEgress": "

[VPC only] Adds the specified outbound (egress) rules to a security group for use with a VPC.

An outbound rule permits instances to send traffic to the specified IPv4 or IPv6 CIDR address ranges, or to the instances that are associated with the specified source security groups.

You specify a protocol for each rule (for example, TCP). For the TCP and UDP protocols, you must also specify the destination port or port range. For the ICMP protocol, you must also specify the ICMP type and code. You can use -1 for the type or code to mean all types or all codes.

Rule changes are propagated to affected instances as quickly as possible. However, a small delay might occur.

For information about VPC security group quotas, see Amazon VPC quotas.

", "AuthorizeSecurityGroupIngress": "

Adds the specified inbound (ingress) rules to a security group.

An inbound rule permits instances to receive traffic from the specified IPv4 or IPv6 CIDR address range, or from the instances that are associated with the specified destination security groups.

You specify a protocol for each rule (for example, TCP). For TCP and UDP, you must also specify the destination port or port range. For ICMP/ICMPv6, you must also specify the ICMP/ICMPv6 type and code. You can use -1 to mean all types or all codes.

Rule changes are propagated to instances within the security group as quickly as possible. However, a small delay might occur.

For more information about VPC security group quotas, see Amazon VPC quotas.

", "BundleInstance": "

Bundles an Amazon instance store-backed Windows instance.

During bundling, only the root device volume (C:\\) is bundled. Data on other instance store volumes is not preserved.

This action is not applicable for Linux/Unix instances or Windows instances that are backed by Amazon EBS.

", "CancelBundleTask": "

Cancels a bundling operation for an instance store-backed Windows instance.

", @@ -3153,9 +3153,9 @@ "CoreNetworkArn": { "base": null, "refs": { - "CreateRouteRequest$CoreNetworkArn": null, - "ReplaceRouteRequest$CoreNetworkArn": null, - "Route$CoreNetworkArn": null + "CreateRouteRequest$CoreNetworkArn": "

The Amazon Resource Name (ARN) of the core network.

", + "ReplaceRouteRequest$CoreNetworkArn": "

The Amazon Resource Name (ARN) of the core network.

", + "Route$CoreNetworkArn": "

The Amazon Resource Name (ARN) of the core network.

" } }, "CpuManufacturer": { @@ -16726,7 +16726,7 @@ "CreateSecurityGroupResult$Tags": "

The tags assigned to the security group.

", "CreateTagsRequest$Tags": "

The tags. The value parameter is required, but if you don't want the tag to have a value, specify the parameter with no value, and we set the value to an empty string.

", "CustomerGateway$Tags": "

Any tags assigned to the customer gateway.

", - "DeleteTagsRequest$Tags": "

The tags to delete. Specify a tag key and an optional tag value to delete specific tags. If you specify a tag key without a tag value, we delete any tag with this key regardless of its value. If you specify a tag key with an empty string as the tag value, we delete the tag only if its value is an empty string.

If you omit this parameter, we delete all user-defined tags for the specified resources. We do not delete Amazon Web Services-generated tags (tags that have the aws: prefix).

", + "DeleteTagsRequest$Tags": "

The tags to delete. Specify a tag key and an optional tag value to delete specific tags. If you specify a tag key without a tag value, we delete any tag with this key regardless of its value. If you specify a tag key with an empty string as the tag value, we delete the tag only if its value is an empty string.

If you omit this parameter, we delete all user-defined tags for the specified resources. We do not delete Amazon Web Services-generated tags (tags that have the aws: prefix).

Constraints: Up to 1000 tags.

", "DhcpOptions$Tags": "

Any tags assigned to the DHCP options set.

", "EgressOnlyInternetGateway$Tags": "

The tags assigned to the egress-only internet gateway.

", "ElasticGpus$Tags": "

The tags assigned to the Elastic Graphics accelerator.

", diff --git a/models/apis/iotdeviceadvisor/2020-09-18/docs-2.json b/models/apis/iotdeviceadvisor/2020-09-18/docs-2.json index 22e61c8586..15491ee90d 100644 --- a/models/apis/iotdeviceadvisor/2020-09-18/docs-2.json +++ b/models/apis/iotdeviceadvisor/2020-09-18/docs-2.json @@ -4,12 +4,12 @@ "operations": { "CreateSuiteDefinition": "

Creates a Device Advisor test suite.

Requires permission to access the CreateSuiteDefinition action.

", "DeleteSuiteDefinition": "

Deletes a Device Advisor test suite.

Requires permission to access the DeleteSuiteDefinition action.

", - "GetEndpoint": null, + "GetEndpoint": "

Gets information about an Device Advisor endpoint.

", "GetSuiteDefinition": "

Gets information about a Device Advisor test suite.

Requires permission to access the GetSuiteDefinition action.

", "GetSuiteRun": "

Gets information about a Device Advisor test suite run.

Requires permission to access the GetSuiteRun action.

", "GetSuiteRunReport": "

Gets a report download link for a successful Device Advisor qualifying test suite run.

Requires permission to access the GetSuiteRunReport action.

", "ListSuiteDefinitions": "

Lists the Device Advisor test suites you have created.

Requires permission to access the ListSuiteDefinitions action.

", - "ListSuiteRuns": "

Lists the runs of the specified Device Advisor test suite. You can list all runs of the test suite, or the runs of a specific version of the test suite.

Requires permission to access the ListSuiteRuns action.

", + "ListSuiteRuns": "

Lists runs of the specified Device Advisor test suite. You can list all runs of the test suite, or the runs of a specific version of the test suite.

Requires permission to access the ListSuiteRuns action.

", "ListTagsForResource": "

Lists the tags attached to an IoT Device Advisor resource.

Requires permission to access the ListTagsForResource action.

", "StartSuiteRun": "

Starts a Device Advisor test suite run.

Requires permission to access the StartSuiteRun action.

", "StopSuiteRun": "

Stops a Device Advisor test suite run that is currently running.

Requires permission to access the StopSuiteRun action.

", @@ -24,20 +24,20 @@ "CreateSuiteDefinitionResponse$suiteDefinitionArn": "

Creates a Device Advisor test suite with Amazon Resource Name (ARN).

", "DeviceUnderTest$thingArn": "

Lists devices thing ARN.

", "DeviceUnderTest$certificateArn": "

Lists devices certificate ARN.

", - "GetEndpointRequest$thingArn": null, - "GetEndpointRequest$certificateArn": null, + "GetEndpointRequest$thingArn": "

The thing ARN of the device. This is an optional parameter.

", + "GetEndpointRequest$certificateArn": "

The certificate ARN of the device. This is an optional parameter.

", "GetSuiteDefinitionResponse$suiteDefinitionArn": "

The ARN of the suite definition.

", "GetSuiteRunResponse$suiteRunArn": "

The ARN of the suite run.

", "ListTagsForResourceRequest$resourceArn": "

The ARN of the IoT Device Advisor resource.

", "StartSuiteRunResponse$suiteRunArn": "

Amazon Resource Name (ARN) of the started suite run.

", - "SuiteDefinitionConfiguration$devicePermissionRoleArn": "

Gets device permission ARN.

", + "SuiteDefinitionConfiguration$devicePermissionRoleArn": "

Gets the device permission ARN.

", "TagResourceRequest$resourceArn": "

The resource ARN of an IoT Device Advisor resource.

", "UntagResourceRequest$resourceArn": "

The resource ARN of an IoT Device Advisor resource.

", "UpdateSuiteDefinitionResponse$suiteDefinitionArn": "

Amazon Resource Name (ARN) of the updated test suite.

" } }, "ConflictException": { - "base": "

Sends Conflict Exception.

", + "base": "

Sends a Conflict Exception.

", "refs": { } }, @@ -62,7 +62,7 @@ } }, "DeviceUnderTest": { - "base": "

Information of a test device. Required to provide either a thing ARN or a certificate ARN.

", + "base": "

Information of a test device. A thing ARN or a certificate ARN is required.

", "refs": { "DeviceUnderTestList$member": null, "SuiteRunConfiguration$primaryDevice": "

Gets the primary device for suite run.

" @@ -72,13 +72,13 @@ "base": null, "refs": { "SuiteDefinitionConfiguration$devices": "

Gets the devices configured.

", - "SuiteDefinitionInformation$defaultDevices": "

Specifies the devices under test for the test suite.

" + "SuiteDefinitionInformation$defaultDevices": "

Specifies the devices that are under test for the test suite.

" } }, "Endpoint": { "base": null, "refs": { - "GetEndpointResponse$endpoint": null + "GetEndpointResponse$endpoint": "

The response of an Device Advisor endpoint.

" } }, "ErrorReason": { @@ -159,7 +159,7 @@ } }, "InternalServerException": { - "base": "

Sends Internal Failure Exception.

", + "base": "

Sends an Internal Failure exception.

", "refs": { } }, @@ -196,7 +196,7 @@ "LogUrl": { "base": null, "refs": { - "TestCaseRun$logUrl": "

Provides test case run log Url.

" + "TestCaseRun$logUrl": "

Provides test case run log URL.

" } }, "MaxResults": { @@ -209,16 +209,16 @@ "Message": { "base": null, "refs": { - "ConflictException$message": "

Sends Conflict Exception message.

", - "InternalServerException$message": "

Sends Internal Failure Exception message.

", - "ResourceNotFoundException$message": "

Sends Resource Not Found Exception message.

", - "ValidationException$message": "

Sends invalid request exception message.

" + "ConflictException$message": "

Sends a Conflict Exception message.

", + "InternalServerException$message": "

Sends an Internal Failure Exception message.

", + "ResourceNotFoundException$message": "

Sends a Resource Not Found Exception message.

", + "ValidationException$message": "

Sends a Validation Exception message.

" } }, "ParallelRun": { "base": null, "refs": { - "SuiteRunConfiguration$parallelRun": null + "SuiteRunConfiguration$parallelRun": "

TRUE if multiple test suites run in parallel.

" } }, "QualificationReportDownloadUrl": { @@ -228,7 +228,7 @@ } }, "ResourceNotFoundException": { - "base": "

Sends Resource Not Found Exception.

", + "base": "

Sends a Resource Not Found exception.

", "refs": { } }, @@ -257,7 +257,7 @@ "Status": { "base": null, "refs": { - "TestCaseRun$status": "

Provides test case run status.

" + "TestCaseRun$status": "

Provides the test case run status. Status is one of the following:

" } }, "StopSuiteRunRequest": { @@ -320,7 +320,7 @@ "GetSuiteDefinitionResponse$suiteDefinitionVersion": "

Suite definition version of the suite definition.

", "GetSuiteDefinitionResponse$latestVersion": "

Latest suite definition version of the suite definition.

", "GetSuiteRunResponse$suiteDefinitionVersion": "

Suite definition version for the test suite run.

", - "ListSuiteRunsRequest$suiteDefinitionVersion": "

Must be passed along with suiteDefinitionId. Lists the test suite runs of the specified test suite based on suite definition version.

", + "ListSuiteRunsRequest$suiteDefinitionVersion": "

Must be passed along with suiteDefinitionId. Lists the test suite runs of the specified test suite based on suite definition version.

", "StartSuiteRunRequest$suiteDefinitionVersion": "

Suite definition version of the test suite.

", "SuiteRunInformation$suiteDefinitionVersion": "

Suite definition version of the suite run.

", "UpdateSuiteDefinitionResponse$suiteDefinitionVersion": "

Suite definition version of the updated test suite.

" @@ -389,11 +389,11 @@ "TestCaseDefinitionName": { "base": null, "refs": { - "TestCaseRun$testCaseDefinitionName": "

Provides test case run definition Name.

" + "TestCaseRun$testCaseDefinitionName": "

Provides the test case run definition name.

" } }, "TestCaseRun": { - "base": "

Provides test case run.

", + "base": "

Provides the test case run.

", "refs": { "TestCaseRuns$member": null } @@ -416,7 +416,7 @@ "CreateSuiteDefinitionResponse$createdAt": "

Creates a Device Advisor test suite with TimeStamp of when it was created.

", "GetSuiteDefinitionResponse$createdAt": "

Date (in Unix epoch time) when the suite definition was created.

", "GetSuiteDefinitionResponse$lastModifiedAt": "

Date (in Unix epoch time) when the suite definition was last modified.

", - "GetSuiteRunResponse$startTime": "

Date (in Unix epoch time) when the test suite run was started.

", + "GetSuiteRunResponse$startTime": "

Date (in Unix epoch time) when the test suite run started.

", "GetSuiteRunResponse$endTime": "

Date (in Unix epoch time) when the test suite run ended.

", "StartSuiteRunResponse$createdAt": "

Starts a Device Advisor test suite run based on suite create time.

", "SuiteDefinitionInformation$createdAt": "

Date (in Unix epoch time) when the test suite was created.

", @@ -461,8 +461,8 @@ "SuiteDefinitionInformation$suiteDefinitionId": "

Suite definition ID of the test suite.

", "SuiteRunInformation$suiteDefinitionId": "

Suite definition ID of the suite run.

", "SuiteRunInformation$suiteRunId": "

Suite run ID of the suite run.

", - "TestCaseRun$testCaseRunId": "

Provides test case run ID.

", - "TestCaseRun$testCaseDefinitionId": "

Provides test case run definition ID.

", + "TestCaseRun$testCaseRunId": "

Provides the test case run ID.

", + "TestCaseRun$testCaseDefinitionId": "

Provides the test case run definition ID.

", "UpdateSuiteDefinitionRequest$suiteDefinitionId": "

Suite definition ID of the test suite to be updated.

", "UpdateSuiteDefinitionResponse$suiteDefinitionId": "

Suite definition ID of the updated test suite.

" } @@ -488,7 +488,7 @@ } }, "ValidationException": { - "base": "

Sends invalid request exception.

", + "base": "

Sends a validation exception.

", "refs": { } }, diff --git a/models/apis/mgn/2020-02-26/api-2.json b/models/apis/mgn/2020-02-26/api-2.json index f4312b5051..d7fa28bc7e 100644 --- a/models/apis/mgn/2020-02-26/api-2.json +++ b/models/apis/mgn/2020-02-26/api-2.json @@ -92,6 +92,21 @@ ], "idempotent":true }, + "DeleteVcenterClient":{ + "name":"DeleteVcenterClient", + "http":{ + "method":"POST", + "requestUri":"/DeleteVcenterClient", + "responseCode":204 + }, + "input":{"shape":"DeleteVcenterClientRequest"}, + "errors":[ + {"shape":"UninitializedAccountException"}, + {"shape":"ResourceNotFoundException"}, + {"shape":"ValidationException"} + ], + "idempotent":true + }, "DescribeJobLogItems":{ "name":"DescribeJobLogItems", "http":{ @@ -149,6 +164,21 @@ {"shape":"ValidationException"} ] }, + "DescribeVcenterClients":{ + "name":"DescribeVcenterClients", + "http":{ + "method":"GET", + "requestUri":"/DescribeVcenterClients", + "responseCode":200 + }, + "input":{"shape":"DescribeVcenterClientsRequest"}, + "output":{"shape":"DescribeVcenterClientsResponse"}, + "errors":[ + {"shape":"UninitializedAccountException"}, + {"shape":"ResourceNotFoundException"}, + {"shape":"ValidationException"} + ] + }, "DisconnectFromService":{ "name":"DisconnectFromService", "http":{ @@ -284,6 +314,23 @@ {"shape":"ConflictException"} ] }, + "StartReplication":{ + "name":"StartReplication", + "http":{ + "method":"POST", + "requestUri":"/StartReplication", + "responseCode":200 + }, + "input":{"shape":"StartReplicationRequest"}, + "output":{"shape":"SourceServer"}, + "errors":[ + {"shape":"UninitializedAccountException"}, + {"shape":"ResourceNotFoundException"}, + {"shape":"ValidationException"}, + {"shape":"ServiceQuotaExceededException"}, + {"shape":"ConflictException"} + ] + }, "StartTest":{ "name":"StartTest", "http":{ @@ -398,6 +445,22 @@ {"shape":"ValidationException"}, {"shape":"AccessDeniedException"} ] + }, + "UpdateSourceServerReplicationType":{ + "name":"UpdateSourceServerReplicationType", + "http":{ + "method":"POST", + "requestUri":"/UpdateSourceServerReplicationType", + "responseCode":200 + }, + "input":{"shape":"UpdateSourceServerReplicationTypeRequest"}, + "output":{"shape":"SourceServer"}, + "errors":[ + {"shape":"UninitializedAccountException"}, + {"shape":"ResourceNotFoundException"}, + {"shape":"ValidationException"}, + {"shape":"ConflictException"} + ] } }, "shapes":{ @@ -534,7 +597,9 @@ "FAILED_TO_ATTACH_STAGING_DISKS", "FAILED_TO_PAIR_REPLICATION_SERVER_WITH_AGENT", "FAILED_TO_CONNECT_AGENT_TO_REPLICATION_SERVER", - "FAILED_TO_START_DATA_TRANSFER" + "FAILED_TO_START_DATA_TRANSFER", + "UNSUPPORTED_VM_CONFIGURATION", + "LAST_SNAPSHOT_JOB_FAILED" ] }, "DataReplicationInfo":{ @@ -545,6 +610,7 @@ "dataReplicationState":{"shape":"DataReplicationState"}, "etaDateTime":{"shape":"ISO8601DatetimeString"}, "lagDuration":{"shape":"ISO8601DatetimeString"}, + "lastSnapshotDateTime":{"shape":"ISO8601DatetimeString"}, "replicatedDisks":{"shape":"DataReplicationInfoReplicatedDisks"} } }, @@ -621,7 +687,9 @@ "PAUSED", "RESCAN", "STALLED", - "DISCONNECTED" + "DISCONNECTED", + "PENDING_SNAPSHOT_SHIPPING", + "SHIPPING_SNAPSHOT" ] }, "DeleteJobRequest":{ @@ -660,6 +728,13 @@ "members":{ } }, + "DeleteVcenterClientRequest":{ + "type":"structure", + "required":["vcenterClientID"], + "members":{ + "vcenterClientID":{"shape":"VcenterClientID"} + } + }, "DescribeJobLogItemsRequest":{ "type":"structure", "required":["jobID"], @@ -735,6 +810,8 @@ "type":"structure", "members":{ "isArchived":{"shape":"Boolean"}, + "lifeCycleStates":{"shape":"LifeCycleStates"}, + "replicationTypes":{"shape":"ReplicationTypes"}, "sourceServerIDs":{"shape":"DescribeSourceServersRequestFiltersIDs"} } }, @@ -751,6 +828,28 @@ "nextToken":{"shape":"PaginationToken"} } }, + "DescribeVcenterClientsRequest":{ + "type":"structure", + "members":{ + "maxResults":{ + "shape":"StrictlyPositiveInteger", + "location":"querystring", + "locationName":"maxResults" + }, + "nextToken":{ + "shape":"PaginationToken", + "location":"querystring", + "locationName":"nextToken" + } + } + }, + "DescribeVcenterClientsResponse":{ + "type":"structure", + "members":{ + "items":{"shape":"VcenterClientList"}, + "nextToken":{"shape":"PaginationToken"} + } + }, "DisconnectFromServiceRequest":{ "type":"structure", "required":["sourceServerID"], @@ -828,6 +927,7 @@ "awsInstanceID":{"shape":"EC2InstanceID"}, "fqdn":{"shape":"BoundedString"}, "hostname":{"shape":"BoundedString"}, + "vmPath":{"shape":"BoundedString"}, "vmWareUuid":{"shape":"BoundedString"} } }, @@ -1072,9 +1172,16 @@ "READY_FOR_CUTOVER", "CUTTING_OVER", "CUTOVER", - "DISCONNECTED" + "DISCONNECTED", + "DISCOVERED" ] }, + "LifeCycleStates":{ + "type":"list", + "member":{"shape":"LifeCycleState"}, + "max":10, + "min":0 + }, "ListTagsForResourceRequest":{ "type":"structure", "required":["resourceArn"], @@ -1249,6 +1356,19 @@ "max":32, "min":0 }, + "ReplicationType":{ + "type":"string", + "enum":[ + "AGENT_BASED", + "SNAPSHOT_SHIPPING" + ] + }, + "ReplicationTypes":{ + "type":"list", + "member":{"shape":"ReplicationType"}, + "max":2, + "min":0 + }, "ResourceNotFoundException":{ "type":"structure", "members":{ @@ -1276,6 +1396,22 @@ "min":0, "pattern":"^sg-[0-9a-fA-F]{8,}$" }, + "ServiceQuotaExceededException":{ + "type":"structure", + "members":{ + "code":{"shape":"LargeBoundedString"}, + "message":{"shape":"LargeBoundedString"}, + "quotaCode":{"shape":"LargeBoundedString"}, + "resourceId":{"shape":"LargeBoundedString"}, + "resourceType":{"shape":"LargeBoundedString"}, + "serviceCode":{"shape":"LargeBoundedString"} + }, + "error":{ + "httpStatusCode":402, + "senderFault":true + }, + "exception":true + }, "SmallBoundedString":{ "type":"string", "max":128, @@ -1302,9 +1438,11 @@ "isArchived":{"shape":"Boolean"}, "launchedInstance":{"shape":"LaunchedInstance"}, "lifeCycle":{"shape":"LifeCycle"}, + "replicationType":{"shape":"ReplicationType"}, "sourceProperties":{"shape":"SourceProperties"}, "sourceServerID":{"shape":"SourceServerID"}, - "tags":{"shape":"TagsMap"} + "tags":{"shape":"TagsMap"}, + "vcenterClientID":{"shape":"VcenterClientID"} } }, "SourceServerID":{ @@ -1337,6 +1475,13 @@ "job":{"shape":"Job"} } }, + "StartReplicationRequest":{ + "type":"structure", + "required":["sourceServerID"], + "members":{ + "sourceServerID":{"shape":"SourceServerID"} + } + }, "StartTestRequest":{ "type":"structure", "required":["sourceServerIDs"], @@ -1534,6 +1679,17 @@ "useDedicatedReplicationServer":{"shape":"Boolean"} } }, + "UpdateSourceServerReplicationTypeRequest":{ + "type":"structure", + "required":[ + "replicationType", + "sourceServerID" + ], + "members":{ + "replicationType":{"shape":"ReplicationType"}, + "sourceServerID":{"shape":"SourceServerID"} + } + }, "ValidationException":{ "type":"structure", "members":{ @@ -1567,6 +1723,29 @@ "fieldValidationFailed", "other" ] + }, + "VcenterClient":{ + "type":"structure", + "members":{ + "arn":{"shape":"ARN"}, + "datacenterName":{"shape":"BoundedString"}, + "hostname":{"shape":"BoundedString"}, + "lastSeenDatetime":{"shape":"ISO8601DatetimeString"}, + "sourceServerTags":{"shape":"TagsMap"}, + "tags":{"shape":"TagsMap"}, + "vcenterClientID":{"shape":"VcenterClientID"}, + "vcenterUUID":{"shape":"BoundedString"} + } + }, + "VcenterClientID":{ + "type":"string", + "max":21, + "min":21, + "pattern":"^vcc-[0-9a-zA-Z]{17}$" + }, + "VcenterClientList":{ + "type":"list", + "member":{"shape":"VcenterClient"} } } } diff --git a/models/apis/mgn/2020-02-26/docs-2.json b/models/apis/mgn/2020-02-26/docs-2.json index 2e1f1065c4..8a0508c137 100644 --- a/models/apis/mgn/2020-02-26/docs-2.json +++ b/models/apis/mgn/2020-02-26/docs-2.json @@ -7,10 +7,12 @@ "DeleteJob": "

Deletes a single Job by ID.

", "DeleteReplicationConfigurationTemplate": "

Deletes a single Replication Configuration Template by ID

", "DeleteSourceServer": "

Deletes a single source server by ID.

", + "DeleteVcenterClient": "

Deletes a single vCenter client by ID.

", "DescribeJobLogItems": "

Retrieves detailed Job log with paging.

", "DescribeJobs": "

Returns a list of Jobs. Use the JobsID and fromDate and toData filters to limit which jobs are returned. The response is sorted by creationDataTime - latest date first. Jobs are normaly created by the StartTest, StartCutover, and TerminateTargetInstances APIs. Jobs are also created by DiagnosticLaunch and TerminateDiagnosticInstances, which are APIs available only to *Support* and only used in response to relevant support tickets.

", "DescribeReplicationConfigurationTemplates": "

Lists all ReplicationConfigurationTemplates, filtered by Source Server IDs.

", "DescribeSourceServers": "

Retrieves all SourceServers or multiple SourceServers by ID.

", + "DescribeVcenterClients": "

Lists all vCenter clients.

", "DisconnectFromService": "

Disconnects specific Source Servers from Application Migration Service. Data replication is stopped immediately. All AWS resources created by Application Migration Service for enabling the replication of these source servers will be terminated / deleted within 90 minutes. Launched Test or Cutover instances will NOT be terminated. If the agent on the source server has not been prevented from communciating with the Application Migration Service service, then it will receive a command to uninstall itself (within approximately 10 minutes). The following properties of the SourceServer will be changed immediately: dataReplicationInfo.dataReplicationState will be set to DISCONNECTED; The totalStorageBytes property for each of dataReplicationInfo.replicatedDisks will be set to zero; dataReplicationInfo.lagDuration and dataReplicationInfo.lagDurationwill be nullified.

", "FinalizeCutover": "

Finalizes the cutover immediately for specific Source Servers. All AWS resources created by Application Migration Service for enabling the replication of these source servers will be terminated / deleted within 90 minutes. Launched Test or Cutover instances will NOT be terminated. The AWS Replication Agent will receive a command to uninstall itself (within 10 minutes). The following properties of the SourceServer will be changed immediately: dataReplicationInfo.dataReplicationState will be to DISCONNECTED; The SourceServer.lifeCycle.state will be changed to CUTOVER; The totalStorageBytes property fo each of dataReplicationInfo.replicatedDisks will be set to zero; dataReplicationInfo.lagDuration and dataReplicationInfo.lagDurationwill be nullified.

", "GetLaunchConfiguration": "

Lists all LaunchConfigurations available, filtered by Source Server IDs.

", @@ -20,13 +22,15 @@ "MarkAsArchived": "

Archives specific Source Servers by setting the SourceServer.isArchived property to true for specified SourceServers by ID. This command only works for SourceServers with a lifecycle.state which equals DISCONNECTED or CUTOVER.

", "RetryDataReplication": "

Causes the data replication initiation sequence to begin immediately upon next Handshake for specified SourceServer IDs, regardless of when the previous initiation started. This command will not work if the SourceServer is not stalled or is in a DISCONNECTED or STOPPED state.

", "StartCutover": "

Launches a Cutover Instance for specific Source Servers. This command starts a LAUNCH job whose initiatedBy property is StartCutover and changes the SourceServer.lifeCycle.state property to CUTTING_OVER.

", + "StartReplication": "

Starts replication on source server by ID.

", "StartTest": "

Lauches a Test Instance for specific Source Servers. This command starts a LAUNCH job whose initiatedBy property is StartTest and changes the SourceServer.lifeCycle.state property to TESTING.

", "TagResource": "

Adds or overwrites only the specified tags for the specified Application Migration Service resource or resources. When you specify an existing tag key, the value is overwritten with the new value. Each resource can have a maximum of 50 tags. Each tag consists of a key and optional value.

", "TerminateTargetInstances": "

Starts a job that terminates specific launched EC2 Test and Cutover instances. This command will not work for any Source Server with a lifecycle.state of TESTING, CUTTING_OVER, or CUTOVER.

", "UntagResource": "

Deletes the specified set of tags from the specified set of Application Migration Service resources.

", "UpdateLaunchConfiguration": "

Updates multiple LaunchConfigurations by Source Server ID.

", "UpdateReplicationConfiguration": "

Allows you to update multiple ReplicationConfigurations by Source Server ID.

", - "UpdateReplicationConfigurationTemplate": "

Updates multiple ReplicationConfigurationTemplates by ID.

" + "UpdateReplicationConfigurationTemplate": "

Updates multiple ReplicationConfigurationTemplates by ID.

", + "UpdateSourceServerReplicationType": "

Updates source server Replication Type by ID.

" }, "shapes": { "ARN": { @@ -43,7 +47,8 @@ "UntagResourceRequest$resourceArn": "

Untag resource by ARN.

", "UpdateReplicationConfigurationRequest$ebsEncryptionKeyArn": "

Update replication configuration EBS encryption key ARN request.

", "UpdateReplicationConfigurationTemplateRequest$arn": "

Update replication configuration template ARN request.

", - "UpdateReplicationConfigurationTemplateRequest$ebsEncryptionKeyArn": "

Update replication configuration template EBS encryption key ARN request.

" + "UpdateReplicationConfigurationTemplateRequest$ebsEncryptionKeyArn": "

Update replication configuration template EBS encryption key ARN request.

", + "VcenterClient$arn": "

Arn of vCenter client.

" } }, "AccessDeniedException": { @@ -89,11 +94,15 @@ "IPsList$member": null, "IdentificationHints$fqdn": "

FQDN address identification hint.

", "IdentificationHints$hostname": "

Hostname identification hint.

", + "IdentificationHints$vmPath": "

vCenter VM path identification hint.

", "IdentificationHints$vmWareUuid": "

vmWare UUID identification hint.

", "LaunchConfiguration$ec2LaunchTemplateID": "

Configure EC2 lauch configuration template ID.

", "NetworkInterface$macAddress": "

Network interface Mac address.

", "OS$fullString": "

OS full string.

", - "ReplicationConfigurationReplicatedDisk$deviceName": "

Replication Configuration replicated disk device name.

" + "ReplicationConfigurationReplicatedDisk$deviceName": "

Replication Configuration replicated disk device name.

", + "VcenterClient$datacenterName": "

Datacenter name of vCenter client.

", + "VcenterClient$hostname": "

Hostname of vCenter client .

", + "VcenterClient$vcenterUUID": "

Vcenter UUID of vCenter client.

" } }, "CPU": { @@ -231,6 +240,11 @@ "refs": { } }, + "DeleteVcenterClientRequest": { + "base": null, + "refs": { + } + }, "DescribeJobLogItemsRequest": { "base": null, "refs": { @@ -295,6 +309,16 @@ "refs": { } }, + "DescribeVcenterClientsRequest": { + "base": null, + "refs": { + } + }, + "DescribeVcenterClientsResponse": { + "base": null, + "refs": { + } + }, "DisconnectFromServiceRequest": { "base": null, "refs": { @@ -364,6 +388,7 @@ "refs": { "DataReplicationInfo$etaDateTime": "

Request to query the time when data replication will be complete.

", "DataReplicationInfo$lagDuration": "

Request to query data replication lag durating.

", + "DataReplicationInfo$lastSnapshotDateTime": "

Request to query data replication last snapshot time.

", "DataReplicationInitiation$nextAttemptDateTime": "

Request to query next data initiation date and time.

", "DataReplicationInitiation$startDateTime": "

Request to query data initiation start date and time.

", "DescribeJobsRequestFilters$fromDate": "

Request to describe Job log filters by date.

", @@ -381,7 +406,8 @@ "LifeCycleLastTestFinalized$apiCallDateTime": "

Lifecycle Test failed API call date and time.

", "LifeCycleLastTestInitiated$apiCallDateTime": "

Lifecycle last Test initiated API call date and time.

", "LifeCycleLastTestReverted$apiCallDateTime": "

Lifecycle last Test reverted API call date and time.

", - "SourceProperties$lastUpdatedDateTime": "

Source server last update date and time.

" + "SourceProperties$lastUpdatedDateTime": "

Source server last update date and time.

", + "VcenterClient$lastSeenDatetime": "

Last seen time of vCenter client.

" } }, "IdentificationHints": { @@ -490,6 +516,12 @@ "ResourceNotFoundException$message": null, "ResourceNotFoundException$resourceId": "

Resource ID not found error.

", "ResourceNotFoundException$resourceType": "

Resource type not found error.

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

Exceeded the service quota code.

", + "ServiceQuotaExceededException$resourceId": "

Exceeded the service quota resource Id.

", + "ServiceQuotaExceededException$resourceType": "

Exceeded the service quota resource type.

", + "ServiceQuotaExceededException$serviceCode": "

Exceeded the service quota service code.

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

Reached throttling quota exception.

", "ThrottlingException$retryAfterSeconds": "

Reached throttling quota exception will retry after x seconds.

", @@ -590,7 +622,14 @@ "LifeCycleState": { "base": null, "refs": { - "LifeCycle$state": "

Lifecycle state.

" + "LifeCycle$state": "

Lifecycle state.

", + "LifeCycleStates$member": null + } + }, + "LifeCycleStates": { + "base": null, + "refs": { + "DescribeSourceServersRequestFilters$lifeCycleStates": "

Request to filter Source Servers list by life cycle states.

" } }, "ListTagsForResourceRequest": { @@ -636,7 +675,9 @@ "DescribeReplicationConfigurationTemplatesRequest$nextToken": "

Request to describe Replication Configuration template by next token.

", "DescribeReplicationConfigurationTemplatesResponse$nextToken": "

Request to describe Replication Configuration template by next token.

", "DescribeSourceServersRequest$nextToken": "

Request to filter Source Servers list by next token.

", - "DescribeSourceServersResponse$nextToken": "

Request to filter Source Servers next token.

" + "DescribeSourceServersResponse$nextToken": "

Request to filter Source Servers next token.

", + "DescribeVcenterClientsRequest$nextToken": "

Next pagination token to be provided for DescribeVcenterClients.

", + "DescribeVcenterClientsResponse$nextToken": "

Next pagination token returned from DescribeVcenterClients.

" } }, "ParticipatingServer": { @@ -761,6 +802,20 @@ "UpdateReplicationConfigurationTemplateRequest$replicationServersSecurityGroupsIDs": "

Update replication configuration template Replication Server Security groups IDs request.

" } }, + "ReplicationType": { + "base": null, + "refs": { + "ReplicationTypes$member": null, + "SourceServer$replicationType": "

Source server replication type.

", + "UpdateSourceServerReplicationTypeRequest$replicationType": "

Replication type to which to update source server.

" + } + }, + "ReplicationTypes": { + "base": null, + "refs": { + "DescribeSourceServersRequestFilters$replicationTypes": "

Request to filter Source Servers list by replication type.

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

Resource not found exception.

", "refs": { @@ -777,6 +832,11 @@ "ReplicationServersSecurityGroupsIDs$member": null } }, + "ServiceQuotaExceededException": { + "base": "

The request could not be completed because its exceeded the service quota.

", + "refs": { + } + }, "SmallBoundedString": { "base": null, "refs": { @@ -816,10 +876,12 @@ "RetryDataReplicationRequest$sourceServerID": "

Retry data replication for Source Server ID.

", "SourceServer$sourceServerID": "

Source server ID.

", "StartCutoverRequestSourceServerIDs$member": null, + "StartReplicationRequest$sourceServerID": "

ID of source server on which to start replication.

", "StartTestRequestSourceServerIDs$member": null, "TerminateTargetInstancesRequestSourceServerIDs$member": null, "UpdateLaunchConfigurationRequest$sourceServerID": "

Update Launch configuration by Source Server ID request.

", - "UpdateReplicationConfigurationRequest$sourceServerID": "

Update replication configuration Source Server ID request.

" + "UpdateReplicationConfigurationRequest$sourceServerID": "

Update replication configuration Source Server ID request.

", + "UpdateSourceServerReplicationTypeRequest$sourceServerID": "

ID of source server on which to update replication type.

" } }, "SourceServersList": { @@ -844,6 +906,11 @@ "refs": { } }, + "StartReplicationRequest": { + "base": null, + "refs": { + } + }, "StartTestRequest": { "base": null, "refs": { @@ -866,7 +933,8 @@ "DescribeJobLogItemsRequest$maxResults": "

Request to describe Job log item maximum results.

", "DescribeJobsRequest$maxResults": "

Request to describe Job log by max results.

", "DescribeReplicationConfigurationTemplatesRequest$maxResults": "

Request to describe Replication Configuration template by max results.

", - "DescribeSourceServersRequest$maxResults": "

Request to filter Source Servers list by maximum results.

" + "DescribeSourceServersRequest$maxResults": "

Request to filter Source Servers list by maximum results.

", + "DescribeVcenterClientsRequest$maxResults": "

Maximum results to be returned in DescribeVcenterClients.

" } }, "SubnetID": { @@ -919,7 +987,9 @@ "TagResourceRequest$tags": "

Tag resource by Tags.

", "TerminateTargetInstancesRequest$tags": "

Terminate Target instance by Tags.

", "UpdateReplicationConfigurationRequest$stagingAreaTags": "

Update replication configuration Staging Area Tags request.

", - "UpdateReplicationConfigurationTemplateRequest$stagingAreaTags": "

Update replication configuration template Staging Area Tags request.

" + "UpdateReplicationConfigurationTemplateRequest$stagingAreaTags": "

Update replication configuration template Staging Area Tags request.

", + "VcenterClient$sourceServerTags": "

Tags for Source Server of vCenter client.

", + "VcenterClient$tags": "

Tags for vCenter client.

" } }, "TargetInstanceTypeRightSizingMethod": { @@ -975,6 +1045,11 @@ "refs": { } }, + "UpdateSourceServerReplicationTypeRequest": { + "base": null, + "refs": { + } + }, "ValidationException": { "base": "

Validate exception.

", "refs": { @@ -997,6 +1072,26 @@ "refs": { "ValidationException$reason": "

Validate exception reason.

" } + }, + "VcenterClient": { + "base": "

vCenter client.

", + "refs": { + "VcenterClientList$member": null + } + }, + "VcenterClientID": { + "base": null, + "refs": { + "DeleteVcenterClientRequest$vcenterClientID": "

ID of resource to be deleted.

", + "SourceServer$vcenterClientID": "

Source server vCenter client id.

", + "VcenterClient$vcenterClientID": "

ID of vCenter client.

" + } + }, + "VcenterClientList": { + "base": null, + "refs": { + "DescribeVcenterClientsResponse$items": "

List of items returned by DescribeVcenterClients.

" + } } } } diff --git a/models/apis/mgn/2020-02-26/paginators-1.json b/models/apis/mgn/2020-02-26/paginators-1.json index 4f56fb4c98..95c756cedf 100644 --- a/models/apis/mgn/2020-02-26/paginators-1.json +++ b/models/apis/mgn/2020-02-26/paginators-1.json @@ -23,6 +23,12 @@ "output_token": "nextToken", "limit_key": "maxResults", "result_key": "items" + }, + "DescribeVcenterClients": { + "input_token": "nextToken", + "output_token": "nextToken", + "limit_key": "maxResults", + "result_key": "items" } } } diff --git a/models/apis/outposts/2019-12-03/api-2.json b/models/apis/outposts/2019-12-03/api-2.json index 77b5a948f4..5f6a19a1dc 100644 --- a/models/apis/outposts/2019-12-03/api-2.json +++ b/models/apis/outposts/2019-12-03/api-2.json @@ -13,6 +13,22 @@ "uid":"outposts-2019-12-03" }, "operations":{ + "CancelOrder":{ + "name":"CancelOrder", + "http":{ + "method":"POST", + "requestUri":"/orders/{OrderId}/cancel" + }, + "input":{"shape":"CancelOrderInput"}, + "output":{"shape":"CancelOrderOutput"}, + "errors":[ + {"shape":"ValidationException"}, + {"shape":"ConflictException"}, + {"shape":"AccessDeniedException"}, + {"shape":"NotFoundException"}, + {"shape":"InternalServerException"} + ] + }, "CreateOrder":{ "name":"CreateOrder", "http":{ @@ -47,6 +63,22 @@ {"shape":"ServiceQuotaExceededException"} ] }, + "CreateSite":{ + "name":"CreateSite", + "http":{ + "method":"POST", + "requestUri":"/sites" + }, + "input":{"shape":"CreateSiteInput"}, + "output":{"shape":"CreateSiteOutput"}, + "errors":[ + {"shape":"ValidationException"}, + {"shape":"ConflictException"}, + {"shape":"AccessDeniedException"}, + {"shape":"InternalServerException"}, + {"shape":"ServiceQuotaExceededException"} + ] + }, "DeleteOutpost":{ "name":"DeleteOutpost", "http":{ @@ -79,6 +111,34 @@ {"shape":"InternalServerException"} ] }, + "GetCatalogItem":{ + "name":"GetCatalogItem", + "http":{ + "method":"GET", + "requestUri":"/catalog/item/{CatalogItemId}" + }, + "input":{"shape":"GetCatalogItemInput"}, + "output":{"shape":"GetCatalogItemOutput"}, + "errors":[ + {"shape":"ValidationException"}, + {"shape":"NotFoundException"}, + {"shape":"InternalServerException"} + ] + }, + "GetOrder":{ + "name":"GetOrder", + "http":{ + "method":"GET", + "requestUri":"/orders/{OrderId}" + }, + "input":{"shape":"GetOrderInput"}, + "output":{"shape":"GetOrderOutput"}, + "errors":[ + {"shape":"ValidationException"}, + {"shape":"NotFoundException"}, + {"shape":"InternalServerException"} + ] + }, "GetOutpost":{ "name":"GetOutpost", "http":{ @@ -109,6 +169,65 @@ {"shape":"InternalServerException"} ] }, + "GetSite":{ + "name":"GetSite", + "http":{ + "method":"GET", + "requestUri":"/sites/{SiteId}" + }, + "input":{"shape":"GetSiteInput"}, + "output":{"shape":"GetSiteOutput"}, + "errors":[ + {"shape":"ValidationException"}, + {"shape":"NotFoundException"}, + {"shape":"AccessDeniedException"}, + {"shape":"InternalServerException"} + ] + }, + "GetSiteAddress":{ + "name":"GetSiteAddress", + "http":{ + "method":"GET", + "requestUri":"/sites/{SiteId}/address" + }, + "input":{"shape":"GetSiteAddressInput"}, + "output":{"shape":"GetSiteAddressOutput"}, + "errors":[ + {"shape":"ValidationException"}, + {"shape":"AccessDeniedException"}, + {"shape":"NotFoundException"}, + {"shape":"InternalServerException"} + ] + }, + "ListCatalogItems":{ + "name":"ListCatalogItems", + "http":{ + "method":"GET", + "requestUri":"/catalog/items" + }, + "input":{"shape":"ListCatalogItemsInput"}, + "output":{"shape":"ListCatalogItemsOutput"}, + "errors":[ + {"shape":"ValidationException"}, + {"shape":"NotFoundException"}, + {"shape":"InternalServerException"} + ] + }, + "ListOrders":{ + "name":"ListOrders", + "http":{ + "method":"GET", + "requestUri":"/list-orders" + }, + "input":{"shape":"ListOrdersInput"}, + "output":{"shape":"ListOrdersOutput"}, + "errors":[ + {"shape":"ValidationException"}, + {"shape":"NotFoundException"}, + {"shape":"AccessDeniedException"}, + {"shape":"InternalServerException"} + ] + }, "ListOutposts":{ "name":"ListOutposts", "http":{ @@ -178,6 +297,54 @@ {"shape":"ValidationException"}, {"shape":"NotFoundException"} ] + }, + "UpdateSite":{ + "name":"UpdateSite", + "http":{ + "method":"PATCH", + "requestUri":"/sites/{SiteId}" + }, + "input":{"shape":"UpdateSiteInput"}, + "output":{"shape":"UpdateSiteOutput"}, + "errors":[ + {"shape":"ValidationException"}, + {"shape":"ConflictException"}, + {"shape":"NotFoundException"}, + {"shape":"AccessDeniedException"}, + {"shape":"InternalServerException"} + ] + }, + "UpdateSiteAddress":{ + "name":"UpdateSiteAddress", + "http":{ + "method":"PUT", + "requestUri":"/sites/{SiteId}/address" + }, + "input":{"shape":"UpdateSiteAddressInput"}, + "output":{"shape":"UpdateSiteAddressOutput"}, + "errors":[ + {"shape":"ValidationException"}, + {"shape":"AccessDeniedException"}, + {"shape":"NotFoundException"}, + {"shape":"ConflictException"}, + {"shape":"InternalServerException"} + ] + }, + "UpdateSiteRackPhysicalProperties":{ + "name":"UpdateSiteRackPhysicalProperties", + "http":{ + "method":"PATCH", + "requestUri":"/sites/{SiteId}/rackPhysicalProperties" + }, + "input":{"shape":"UpdateSiteRackPhysicalPropertiesInput"}, + "output":{"shape":"UpdateSiteRackPhysicalPropertiesOutput"}, + "errors":[ + {"shape":"ValidationException"}, + {"shape":"ConflictException"}, + {"shape":"NotFoundException"}, + {"shape":"AccessDeniedException"}, + {"shape":"InternalServerException"} + ] } }, "shapes":{ @@ -195,6 +362,54 @@ "min":12, "pattern":"\\d{12}" }, + "Address":{ + "type":"structure", + "required":[ + "AddressLine1", + "City", + "StateOrRegion", + "PostalCode", + "CountryCode" + ], + "members":{ + "ContactName":{"shape":"ContactName"}, + "ContactPhoneNumber":{"shape":"ContactPhoneNumber"}, + "AddressLine1":{"shape":"AddressLine1"}, + "AddressLine2":{"shape":"AddressLine2"}, + "AddressLine3":{"shape":"AddressLine3"}, + "City":{"shape":"City"}, + "StateOrRegion":{"shape":"StateOrRegion"}, + "DistrictOrCounty":{"shape":"DistrictOrCounty"}, + "PostalCode":{"shape":"PostalCode"}, + "CountryCode":{"shape":"CountryCode"}, + "Municipality":{"shape":"Municipality"} + } + }, + "AddressLine1":{ + "type":"string", + "max":180, + "min":1, + "pattern":"^\\S[\\S ]*$" + }, + "AddressLine2":{ + "type":"string", + "max":60, + "min":0, + "pattern":"^\\S[\\S ]*$" + }, + "AddressLine3":{ + "type":"string", + "max":60, + "min":0, + "pattern":"^\\S[\\S ]*$" + }, + "AddressType":{ + "type":"string", + "enum":[ + "SHIPPING_ADDRESS", + "OPERATING_ADDRESS" + ] + }, "Arn":{ "type":"string", "max":1011, @@ -224,6 +439,70 @@ "max":5, "min":1 }, + "CancelOrderInput":{ + "type":"structure", + "required":["OrderId"], + "members":{ + "OrderId":{ + "shape":"OrderId", + "location":"uri", + "locationName":"OrderId" + } + } + }, + "CancelOrderOutput":{ + "type":"structure", + "members":{ + } + }, + "CatalogItem":{ + "type":"structure", + "members":{ + "CatalogItemId":{"shape":"SkuCode"}, + "ItemStatus":{"shape":"CatalogItemStatus"}, + "EC2Capacities":{"shape":"EC2CapacityListDefinition"}, + "PowerKva":{"shape":"CatalogItemPowerKva"}, + "WeightLbs":{"shape":"CatalogItemWeightLbs"}, + "SupportedUplinkGbps":{"shape":"SupportedUplinkGbpsListDefinition"}, + "SupportedStorage":{"shape":"SupportedStorageList"} + } + }, + "CatalogItemClass":{ + "type":"string", + "enum":[ + "RACK", + "SERVER" + ] + }, + "CatalogItemClassList":{ + "type":"list", + "member":{"shape":"CatalogItemClass"} + }, + "CatalogItemListDefinition":{ + "type":"list", + "member":{"shape":"CatalogItem"} + }, + "CatalogItemPowerKva":{ + "type":"float", + "box":true + }, + "CatalogItemStatus":{ + "type":"string", + "enum":[ + "AVAILABLE", + "DISCONTINUED" + ] + }, + "CatalogItemWeightLbs":{ + "type":"integer", + "box":true + }, + "City":{ + "type":"string", + "max":50, + "min":1, + "pattern":"^\\S[\\S ]*$" + }, "ConflictException":{ "type":"structure", "members":{ @@ -234,6 +513,24 @@ "error":{"httpStatusCode":409}, "exception":true }, + "ContactName":{ + "type":"string", + "max":255, + "min":1, + "pattern":"^\\S[\\S ]*$" + }, + "ContactPhoneNumber":{ + "type":"string", + "max":20, + "min":1, + "pattern":"^[\\S ]+$" + }, + "CountryCode":{ + "type":"string", + "max":2, + "min":2, + "pattern":"^[A-Z]{2}$" + }, "CreateOrderInput":{ "type":"structure", "required":[ @@ -275,6 +572,25 @@ "Outpost":{"shape":"Outpost"} } }, + "CreateSiteInput":{ + "type":"structure", + "required":["Name"], + "members":{ + "Name":{"shape":"SiteName"}, + "Description":{"shape":"SiteDescription"}, + "Notes":{"shape":"SiteNotes"}, + "Tags":{"shape":"TagMap"}, + "OperatingAddress":{"shape":"Address"}, + "ShippingAddress":{"shape":"Address"}, + "RackPhysicalProperties":{"shape":"RackPhysicalProperties"} + } + }, + "CreateSiteOutput":{ + "type":"structure", + "members":{ + "Site":{"shape":"Site"} + } + }, "DeleteOutpostInput":{ "type":"structure", "required":["OutpostId"], @@ -307,12 +623,81 @@ "members":{ } }, + "DistrictOrCounty":{ + "type":"string", + "max":60, + "min":1, + "pattern":"^\\S[\\S ]*" + }, + "EC2Capacity":{ + "type":"structure", + "members":{ + "Family":{"shape":"Family"}, + "MaxSize":{"shape":"MaxSize"}, + "Quantity":{"shape":"Quantity"} + } + }, + "EC2CapacityListDefinition":{ + "type":"list", + "member":{"shape":"EC2Capacity"} + }, + "EC2FamilyList":{ + "type":"list", + "member":{"shape":"Family"} + }, "ErrorMessage":{ "type":"string", "max":1000, "min":1, "pattern":"^[\\S \\n]+$" }, + "Family":{ + "type":"string", + "max":10, + "min":1, + "pattern":"[a-z0-9]+" + }, + "FiberOpticCableType":{ + "type":"string", + "enum":[ + "SINGLE_MODE", + "MULTI_MODE" + ] + }, + "GetCatalogItemInput":{ + "type":"structure", + "required":["CatalogItemId"], + "members":{ + "CatalogItemId":{ + "shape":"SkuCode", + "location":"uri", + "locationName":"CatalogItemId" + } + } + }, + "GetCatalogItemOutput":{ + "type":"structure", + "members":{ + "CatalogItem":{"shape":"CatalogItem"} + } + }, + "GetOrderInput":{ + "type":"structure", + "required":["OrderId"], + "members":{ + "OrderId":{ + "shape":"OrderId", + "location":"uri", + "locationName":"OrderId" + } + } + }, + "GetOrderOutput":{ + "type":"structure", + "members":{ + "Order":{"shape":"Order"} + } + }, "GetOutpostInput":{ "type":"structure", "required":["OutpostId"], @@ -360,6 +745,50 @@ "Outpost":{"shape":"Outpost"} } }, + "GetSiteAddressInput":{ + "type":"structure", + "required":[ + "SiteId", + "AddressType" + ], + "members":{ + "SiteId":{ + "shape":"SiteId", + "location":"uri", + "locationName":"SiteId" + }, + "AddressType":{ + "shape":"AddressType", + "location":"querystring", + "locationName":"AddressType" + } + } + }, + "GetSiteAddressOutput":{ + "type":"structure", + "members":{ + "SiteId":{"shape":"SiteId"}, + "AddressType":{"shape":"AddressType"}, + "Address":{"shape":"Address"} + } + }, + "GetSiteInput":{ + "type":"structure", + "required":["SiteId"], + "members":{ + "SiteId":{ + "shape":"SiteId", + "location":"uri", + "locationName":"SiteId" + } + } + }, + "GetSiteOutput":{ + "type":"structure", + "members":{ + "Site":{"shape":"Site"} + } + }, "ISO8601Timestamp":{"type":"timestamp"}, "InstanceType":{"type":"string"}, "InstanceTypeItem":{ @@ -398,7 +827,7 @@ "CatalogItemId":{"shape":"SkuCode"}, "LineItemId":{"shape":"LineItemId"}, "Quantity":{"shape":"LineItemQuantity"}, - "Status":{"shape":"Status"} + "Status":{"shape":"LineItemStatus"} } }, "LineItemId":{ @@ -427,6 +856,88 @@ "max":20, "min":1 }, + "LineItemStatus":{ + "type":"string", + "enum":[ + "PREPARING", + "BUILDING", + "SHIPPED", + "DELIVERED", + "INSTALLING", + "INSTALLED", + "ERROR", + "CANCELLED" + ] + }, + "LineItemStatusCounts":{ + "type":"map", + "key":{"shape":"LineItemStatus"}, + "value":{"shape":"LineItemQuantity"} + }, + "ListCatalogItemsInput":{ + "type":"structure", + "members":{ + "NextToken":{ + "shape":"Token", + "location":"querystring", + "locationName":"NextToken" + }, + "MaxResults":{ + "shape":"MaxResults1000", + "location":"querystring", + "locationName":"MaxResults" + }, + "ItemClassFilter":{ + "shape":"CatalogItemClassList", + "location":"querystring", + "locationName":"ItemClassFilter" + }, + "SupportedStorageFilter":{ + "shape":"SupportedStorageList", + "location":"querystring", + "locationName":"SupportedStorageFilter" + }, + "EC2FamilyFilter":{ + "shape":"EC2FamilyList", + "location":"querystring", + "locationName":"EC2FamilyFilter" + } + } + }, + "ListCatalogItemsOutput":{ + "type":"structure", + "members":{ + "CatalogItems":{"shape":"CatalogItemListDefinition"}, + "NextToken":{"shape":"Token"} + } + }, + "ListOrdersInput":{ + "type":"structure", + "members":{ + "OutpostIdentifierFilter":{ + "shape":"OutpostIdentifier", + "location":"querystring", + "locationName":"OutpostIdentifierFilter" + }, + "NextToken":{ + "shape":"Token", + "location":"querystring", + "locationName":"NextToken" + }, + "MaxResults":{ + "shape":"MaxResults1000", + "location":"querystring", + "locationName":"MaxResults" + } + } + }, + "ListOrdersOutput":{ + "type":"structure", + "members":{ + "Orders":{"shape":"OrderSummaryListDefinition"}, + "NextToken":{"shape":"Token"} + } + }, "ListOutpostsInput":{ "type":"structure", "members":{ @@ -509,6 +1020,23 @@ "max":1000, "min":1 }, + "MaxSize":{"type":"string"}, + "MaximumSupportedWeightLbs":{ + "type":"string", + "enum":[ + "NO_LIMIT", + "MAX_1400_LBS", + "MAX_1600_LBS", + "MAX_1800_LBS", + "MAX_2000_LBS" + ] + }, + "Municipality":{ + "type":"string", + "max":180, + "min":0, + "pattern":"^\\S[\\S ]*$" + }, "NotFoundException":{ "type":"structure", "members":{ @@ -517,6 +1045,24 @@ "error":{"httpStatusCode":404}, "exception":true }, + "OpticalStandard":{ + "type":"string", + "enum":[ + "OPTIC_10GBASE_SR", + "OPTIC_10GBASE_IR", + "OPTIC_10GBASE_LR", + "OPTIC_40GBASE_SR", + "OPTIC_40GBASE_ESR", + "OPTIC_40GBASE_IR4_LR4L", + "OPTIC_40GBASE_LR4", + "OPTIC_100GBASE_SR4", + "OPTIC_100GBASE_CWDM4", + "OPTIC_100GBASE_LR4", + "OPTIC_100G_PSM4_MSA", + "OPTIC_1000BASE_LX", + "OPTIC_1000BASE_SX" + ] + }, "Order":{ "type":"structure", "members":{ @@ -543,7 +1089,34 @@ "PROCESSING", "INSTALLING", "FULFILLED", - "CANCELLED" + "CANCELLED", + "PREPARING", + "IN_PROGRESS", + "COMPLETED", + "ERROR" + ] + }, + "OrderSummary":{ + "type":"structure", + "members":{ + "OutpostId":{"shape":"OutpostIdOnly"}, + "OrderId":{"shape":"OrderId"}, + "OrderType":{"shape":"OrderType"}, + "Status":{"shape":"OrderStatus"}, + "LineItemCountsByStatus":{"shape":"LineItemStatusCounts"}, + "OrderSubmissionDate":{"shape":"ISO8601Timestamp"}, + "OrderFulfilledDate":{"shape":"ISO8601Timestamp"} + } + }, + "OrderSummaryListDefinition":{ + "type":"list", + "member":{"shape":"OrderSummary"} + }, + "OrderType":{ + "type":"string", + "enum":[ + "OUTPOST", + "REPLACEMENT" ] }, "Outpost":{ @@ -616,9 +1189,64 @@ "type":"string", "enum":["THREE_YEARS"] }, + "PostalCode":{ + "type":"string", + "max":20, + "min":1, + "pattern":"^[a-zA-Z0-9 -]+$" + }, + "PowerConnector":{ + "type":"string", + "enum":[ + "L6_30P", + "IEC309", + "AH530P7W", + "AH532P6W" + ] + }, + "PowerDrawKva":{ + "type":"string", + "enum":[ + "POWER_5_KVA", + "POWER_10_KVA", + "POWER_15_KVA" + ] + }, + "PowerFeedDrop":{ + "type":"string", + "enum":[ + "ABOVE_RACK", + "BELOW_RACK" + ] + }, + "PowerPhase":{ + "type":"string", + "enum":[ + "SINGLE_PHASE", + "THREE_PHASE" + ] + }, + "Quantity":{"type":"string"}, + "RackPhysicalProperties":{ + "type":"structure", + "members":{ + "PowerDrawKva":{"shape":"PowerDrawKva"}, + "PowerPhase":{"shape":"PowerPhase"}, + "PowerConnector":{"shape":"PowerConnector"}, + "PowerFeedDrop":{"shape":"PowerFeedDrop"}, + "UplinkGbps":{"shape":"UplinkGbps"}, + "UplinkCount":{"shape":"UplinkCount"}, + "FiberOpticCableType":{"shape":"FiberOpticCableType"}, + "OpticalStandard":{"shape":"OpticalStandard"}, + "MaximumSupportedWeightLbs":{"shape":"MaximumSupportedWeightLbs"} + } + }, "ResourceType":{ "type":"string", - "enum":["OUTPOST"] + "enum":[ + "OUTPOST", + "ORDER" + ] }, "ServiceQuotaExceededException":{ "type":"structure", @@ -636,7 +1264,12 @@ "Name":{"shape":"SiteName"}, "Description":{"shape":"SiteDescription"}, "Tags":{"shape":"TagMap"}, - "SiteArn":{"shape":"SiteArn"} + "SiteArn":{"shape":"SiteArn"}, + "Notes":{"shape":"SiteNotes"}, + "OperatingAddressCountryCode":{"shape":"CountryCode"}, + "OperatingAddressStateOrRegion":{"shape":"StateOrRegion"}, + "OperatingAddressCity":{"shape":"City"}, + "RackPhysicalProperties":{"shape":"RackPhysicalProperties"} } }, "SiteArn":{ @@ -663,17 +1296,23 @@ "min":1, "pattern":"^[\\S ]+$" }, + "SiteNotes":{ + "type":"string", + "max":2000, + "min":1, + "pattern":"^[\\S \\n]+$" + }, "SkuCode":{ "type":"string", "max":10, "min":1, "pattern":"OR-[A-Z0-9]{7}" }, - "Status":{ + "StateOrRegion":{ "type":"string", - "max":1000, + "max":50, "min":1, - "pattern":"^[\\S ]+$" + "pattern":"^\\S[\\S ]*$" }, "String":{ "type":"string", @@ -681,6 +1320,22 @@ "min":1, "pattern":"^[\\S \\n]+$" }, + "SupportedStorageEnum":{ + "type":"string", + "enum":[ + "EBS", + "S3" + ] + }, + "SupportedStorageList":{ + "type":"list", + "member":{"shape":"SupportedStorageEnum"} + }, + "SupportedUplinkGbps":{"type":"integer"}, + "SupportedUplinkGbpsListDefinition":{ + "type":"list", + "member":{"shape":"SupportedUplinkGbps"} + }, "TagKey":{ "type":"string", "max":128, @@ -755,6 +1410,100 @@ "members":{ } }, + "UpdateSiteAddressInput":{ + "type":"structure", + "required":[ + "SiteId", + "AddressType", + "Address" + ], + "members":{ + "SiteId":{ + "shape":"SiteId", + "location":"uri", + "locationName":"SiteId" + }, + "AddressType":{"shape":"AddressType"}, + "Address":{"shape":"Address"} + } + }, + "UpdateSiteAddressOutput":{ + "type":"structure", + "members":{ + "AddressType":{"shape":"AddressType"}, + "Address":{"shape":"Address"} + } + }, + "UpdateSiteInput":{ + "type":"structure", + "required":["SiteId"], + "members":{ + "SiteId":{ + "shape":"SiteId", + "location":"uri", + "locationName":"SiteId" + }, + "Name":{"shape":"SiteName"}, + "Description":{"shape":"SiteDescription"}, + "Notes":{"shape":"SiteNotes"} + } + }, + "UpdateSiteOutput":{ + "type":"structure", + "members":{ + "Site":{"shape":"Site"} + } + }, + "UpdateSiteRackPhysicalPropertiesInput":{ + "type":"structure", + "required":["SiteId"], + "members":{ + "SiteId":{ + "shape":"SiteId", + "location":"uri", + "locationName":"SiteId" + }, + "PowerDrawKva":{"shape":"PowerDrawKva"}, + "PowerPhase":{"shape":"PowerPhase"}, + "PowerConnector":{"shape":"PowerConnector"}, + "PowerFeedDrop":{"shape":"PowerFeedDrop"}, + "UplinkGbps":{"shape":"UplinkGbps"}, + "UplinkCount":{"shape":"UplinkCount"}, + "FiberOpticCableType":{"shape":"FiberOpticCableType"}, + "OpticalStandard":{"shape":"OpticalStandard"}, + "MaximumSupportedWeightLbs":{"shape":"MaximumSupportedWeightLbs"} + } + }, + "UpdateSiteRackPhysicalPropertiesOutput":{ + "type":"structure", + "members":{ + "Site":{"shape":"Site"} + } + }, + "UplinkCount":{ + "type":"string", + "enum":[ + "UPLINK_COUNT_1", + "UPLINK_COUNT_2", + "UPLINK_COUNT_3", + "UPLINK_COUNT_4", + "UPLINK_COUNT_5", + "UPLINK_COUNT_6", + "UPLINK_COUNT_7", + "UPLINK_COUNT_8", + "UPLINK_COUNT_12", + "UPLINK_COUNT_16" + ] + }, + "UplinkGbps":{ + "type":"string", + "enum":[ + "UPLINK_1G", + "UPLINK_10G", + "UPLINK_40G", + "UPLINK_100G" + ] + }, "ValidationException":{ "type":"structure", "members":{ diff --git a/models/apis/outposts/2019-12-03/docs-2.json b/models/apis/outposts/2019-12-03/docs-2.json index ee8664c108..8fa8faac59 100644 --- a/models/apis/outposts/2019-12-03/docs-2.json +++ b/models/apis/outposts/2019-12-03/docs-2.json @@ -1,18 +1,29 @@ { "version": "2.0", - "service": "

AWS Outposts is a fully managed service that extends AWS infrastructure, APIs, and tools to customer premises. By providing local access to AWS managed infrastructure, AWS Outposts enables customers to build and run applications on premises using the same programming interfaces as in AWS Regions, while using local compute and storage resources for lower latency and local data processing needs.

", + "service": "

Amazon Web Services Outposts is a fully managed service that extends Amazon Web Services infrastructure, APIs, and tools to customer premises. By providing local access to Amazon Web Services managed infrastructure, Amazon Web Services Outposts enables customers to build and run applications on premises using the same programming interfaces as in Amazon Web Services Regions, while using local compute and storage resources for lower latency and local data processing needs.

", "operations": { + "CancelOrder": "

Cancels an order for an Outpost.

", "CreateOrder": "

Creates an order for an Outpost.

", "CreateOutpost": "

Creates an Outpost.

You can specify AvailabilityZone or AvailabilityZoneId.

", + "CreateSite": "

Creates a site for an Outpost.

", "DeleteOutpost": "

Deletes the Outpost.

", "DeleteSite": "

Deletes the site.

", + "GetCatalogItem": "

Gets information about a catalog item.

", + "GetOrder": "

Gets an order.

", "GetOutpost": "

Gets information about the specified Outpost.

", "GetOutpostInstanceTypes": "

Lists the instance types for the specified Outpost.

", - "ListOutposts": "

Create a list of the Outposts for your AWS account. Add filters to your request to return a more specific list of results. Use filters to match an Outpost lifecycle status, Availibility Zone (us-east-1a), and AZ ID (use1-az1).

If you specify multiple filters, the filters are joined with an AND, and the request returns only results that match all of the specified filters.

", - "ListSites": "

Lists the sites for the specified AWS account.

", + "GetSite": "

Gets information about the specified Outpost site.

", + "GetSiteAddress": "

Gets the site address.

", + "ListCatalogItems": "

Use to create a list of every item in the catalog. Add filters to your request to return a more specific list of results. Use filters to match an item class, storage option, or EC2 family.

If you specify multiple filters, the filters are joined with an AND, and the request returns only results that match all of the specified filters.

", + "ListOrders": "

Create a list of the Outpost orders for your Amazon Web Services account. You can filter your request by Outpost to return a more specific list of results.

", + "ListOutposts": "

Create a list of the Outposts for your Amazon Web Services account. Add filters to your request to return a more specific list of results. Use filters to match an Outpost lifecycle status, Availability Zone (us-east-1a), and AZ ID (use1-az1).

If you specify multiple filters, the filters are joined with an AND, and the request returns only results that match all of the specified filters.

", + "ListSites": "

Lists the sites for your Amazon Web Services account.

", "ListTagsForResource": "

Lists the tags for the specified resource.

", "TagResource": "

Adds tags to the specified resource.

", - "UntagResource": "

Removes tags from the specified resource.

" + "UntagResource": "

Removes tags from the specified resource.

", + "UpdateSite": "

Updates the site.

", + "UpdateSiteAddress": "

Updates the site address.

To update a site address with an order IN_PROGRESS, you must wait for the order to complete or cancel the order.

You can update the operating address before you place an order at the site, or after all Outposts that belong to the site have been deactivated.

", + "UpdateSiteRackPhysicalProperties": "

Update the physical and logistical details for a rack at a site. For more information about hardware requirements for racks, see Network readiness checklist in the Amazon Web Services Outposts User Guide.

To update a rack at a site with an order of IN_PROGRESS, you must wait for the order to complete or cancel the order.

" }, "shapes": { "AccessDeniedException": { @@ -21,11 +32,48 @@ } }, "AccountId": { - "base": "

The ID of the AWS account.

", + "base": "

The ID of the Amazon Web Services account.

", "refs": { "Site$AccountId": null } }, + "Address": { + "base": "

Information about an address.

", + "refs": { + "CreateSiteInput$OperatingAddress": "

The location to install and power on the hardware. This address might be different from the shipping address.

", + "CreateSiteInput$ShippingAddress": "

The location to ship the hardware. This address might be different from the operating address.

", + "GetSiteAddressOutput$Address": "

Information about the address.

", + "UpdateSiteAddressInput$Address": "

The address for the site.

", + "UpdateSiteAddressOutput$Address": "

Information about an address.

" + } + }, + "AddressLine1": { + "base": null, + "refs": { + "Address$AddressLine1": "

The first line of the address.

" + } + }, + "AddressLine2": { + "base": null, + "refs": { + "Address$AddressLine2": "

The second line of the address.

" + } + }, + "AddressLine3": { + "base": null, + "refs": { + "Address$AddressLine3": "

The third line of the address.

" + } + }, + "AddressType": { + "base": null, + "refs": { + "GetSiteAddressInput$AddressType": "

The type of the address you request.

", + "GetSiteAddressOutput$AddressType": "

The type of the address you receive.

", + "UpdateSiteAddressInput$AddressType": "

The type of the address.

", + "UpdateSiteAddressOutput$AddressType": "

The type of the address.

" + } + }, "Arn": { "base": null, "refs": { @@ -53,13 +101,73 @@ "AvailabilityZoneIdList": { "base": null, "refs": { - "ListOutpostsInput$AvailabilityZoneIdFilter": "

A filter for the AZ IDs (use1-az1) of the Outpost.

Filter values are case sensitive. If you specify multiple values for a filter, the values are joined with an OR, and the request returns all results that match any of the specified values.

" + "ListOutpostsInput$AvailabilityZoneIdFilter": "

A filter for the AZ IDs (use1-az1) of the Outpost.

Filter values are case sensitive. If you specify multiple values for a filter, the values are joined with an OR, and the request returns all results that match any of the specified values.

" } }, "AvailabilityZoneList": { "base": null, "refs": { - "ListOutpostsInput$AvailabilityZoneFilter": "

A filter for the Availibility Zone (us-east-1a) of the Outpost.

Filter values are case sensitive. If you specify multiple values for a filter, the values are joined with an OR, and the request returns all results that match any of the specified values.

" + "ListOutpostsInput$AvailabilityZoneFilter": "

A filter for the Availability Zone (us-east-1a) of the Outpost.

Filter values are case sensitive. If you specify multiple values for a filter, the values are joined with an OR, and the request returns all results that match any of the specified values.

" + } + }, + "CancelOrderInput": { + "base": null, + "refs": { + } + }, + "CancelOrderOutput": { + "base": null, + "refs": { + } + }, + "CatalogItem": { + "base": "

Information about a catalog item.

", + "refs": { + "CatalogItemListDefinition$member": null, + "GetCatalogItemOutput$CatalogItem": "

Information about this catalog item.

" + } + }, + "CatalogItemClass": { + "base": null, + "refs": { + "CatalogItemClassList$member": null + } + }, + "CatalogItemClassList": { + "base": null, + "refs": { + "ListCatalogItemsInput$ItemClassFilter": "

A filter for the class of items in the catalog.

Filter values are case sensitive. If you specify multiple values for a filter, the values are joined with an OR, and the request returns all results that match any of the specified values.

" + } + }, + "CatalogItemListDefinition": { + "base": null, + "refs": { + "ListCatalogItemsOutput$CatalogItems": "

Information about the catalog items.

" + } + }, + "CatalogItemPowerKva": { + "base": null, + "refs": { + "CatalogItem$PowerKva": "

Information about the power draw of an item.

" + } + }, + "CatalogItemStatus": { + "base": null, + "refs": { + "CatalogItem$ItemStatus": "

The status of a catalog item.

" + } + }, + "CatalogItemWeightLbs": { + "base": null, + "refs": { + "CatalogItem$WeightLbs": "

The weight of the item in pounds.

" + } + }, + "City": { + "base": null, + "refs": { + "Address$City": "

The city for the address.

", + "Site$OperatingAddressCity": "

City where the hardware is installed and powered on.

" } }, "ConflictException": { @@ -67,6 +175,25 @@ "refs": { } }, + "ContactName": { + "base": null, + "refs": { + "Address$ContactName": "

The name of the contact.

" + } + }, + "ContactPhoneNumber": { + "base": null, + "refs": { + "Address$ContactPhoneNumber": "

The phone number of the contact.

" + } + }, + "CountryCode": { + "base": null, + "refs": { + "Address$CountryCode": "

The ISO-3166 two-letter country code for the address.

", + "Site$OperatingAddressCountryCode": "

The ISO-3166 two-letter country code where the hardware is installed and powered on.

" + } + }, "CreateOrderInput": { "base": null, "refs": { @@ -87,6 +214,16 @@ "refs": { } }, + "CreateSiteInput": { + "base": null, + "refs": { + } + }, + "CreateSiteOutput": { + "base": null, + "refs": { + } + }, "DeleteOutpostInput": { "base": null, "refs": { @@ -107,6 +244,30 @@ "refs": { } }, + "DistrictOrCounty": { + "base": null, + "refs": { + "Address$DistrictOrCounty": "

The district or county for the address.

" + } + }, + "EC2Capacity": { + "base": "

Information about EC2 capacity.

", + "refs": { + "EC2CapacityListDefinition$member": null + } + }, + "EC2CapacityListDefinition": { + "base": null, + "refs": { + "CatalogItem$EC2Capacities": "

Information about the EC2 capacity of an item.

" + } + }, + "EC2FamilyList": { + "base": null, + "refs": { + "ListCatalogItemsInput$EC2FamilyFilter": "

A filter for EC2 family options for items in the catalog.

Filter values are case sensitive. If you specify multiple values for a filter, the values are joined with an OR, and the request returns all results that match any of the specified values.

" + } + }, "ErrorMessage": { "base": null, "refs": { @@ -118,6 +279,40 @@ "ValidationException$Message": null } }, + "Family": { + "base": null, + "refs": { + "EC2Capacity$Family": "

The family of the EC2 capacity.

", + "EC2FamilyList$member": null + } + }, + "FiberOpticCableType": { + "base": null, + "refs": { + "RackPhysicalProperties$FiberOpticCableType": "

The type of fiber used to attach the Outpost to the network.

", + "UpdateSiteRackPhysicalPropertiesInput$FiberOpticCableType": "

Specify the type of fiber that you will use to attach the Outpost to your network.

" + } + }, + "GetCatalogItemInput": { + "base": null, + "refs": { + } + }, + "GetCatalogItemOutput": { + "base": null, + "refs": { + } + }, + "GetOrderInput": { + "base": null, + "refs": { + } + }, + "GetOrderOutput": { + "base": null, + "refs": { + } + }, "GetOutpostInput": { "base": null, "refs": { @@ -138,11 +333,33 @@ "refs": { } }, + "GetSiteAddressInput": { + "base": null, + "refs": { + } + }, + "GetSiteAddressOutput": { + "base": null, + "refs": { + } + }, + "GetSiteInput": { + "base": null, + "refs": { + } + }, + "GetSiteOutput": { + "base": null, + "refs": { + } + }, "ISO8601Timestamp": { "base": null, "refs": { "Order$OrderSubmissionDate": "

The submission date for the order.

", - "Order$OrderFulfilledDate": "

The fulfillment date of the order.

" + "Order$OrderFulfilledDate": "

The fulfillment date of the order.

", + "OrderSummary$OrderSubmissionDate": "

Submission date for the order.

", + "OrderSummary$OrderFulfilledDate": "

Fulfilment date for the order.

" } }, "InstanceType": { @@ -178,7 +395,7 @@ "LifeCycleStatusList": { "base": null, "refs": { - "ListOutpostsInput$LifeCycleStatusFilter": "

A filter for the lifecycle status of the Outpost.

Filter values are case sensitive. If you specify multiple values for a filter, the values are joined with an OR, and the request returns all results that match any of the specified values.

" + "ListOutpostsInput$LifeCycleStatusFilter": "

A filter for the lifecycle status of the Outpost.

Filter values are case sensitive. If you specify multiple values for a filter, the values are joined with an OR, and the request returns all results that match any of the specified values.

" } }, "LineItem": { @@ -203,7 +420,8 @@ "base": null, "refs": { "LineItem$Quantity": "

The quantity of the line item.

", - "LineItemRequest$Quantity": "

The quantity of a line item request.

" + "LineItemRequest$Quantity": "

The quantity of a line item request.

", + "LineItemStatusCounts$value": null } }, "LineItemRequest": { @@ -218,6 +436,39 @@ "CreateOrderInput$LineItems": "

The line items that make up the order.

" } }, + "LineItemStatus": { + "base": null, + "refs": { + "LineItem$Status": "

The status of the line item.

", + "LineItemStatusCounts$key": null + } + }, + "LineItemStatusCounts": { + "base": null, + "refs": { + "OrderSummary$LineItemCountsByStatus": "

The status of all line items in the order.

" + } + }, + "ListCatalogItemsInput": { + "base": null, + "refs": { + } + }, + "ListCatalogItemsOutput": { + "base": null, + "refs": { + } + }, + "ListOrdersInput": { + "base": null, + "refs": { + } + }, + "ListOrdersOutput": { + "base": null, + "refs": { + } + }, "ListOutpostsInput": { "base": null, "refs": { @@ -252,31 +503,82 @@ "base": "

The maximum page size.

", "refs": { "GetOutpostInstanceTypesInput$MaxResults": null, + "ListCatalogItemsInput$MaxResults": null, + "ListOrdersInput$MaxResults": null, "ListOutpostsInput$MaxResults": null, "ListSitesInput$MaxResults": null } }, + "MaxSize": { + "base": null, + "refs": { + "EC2Capacity$MaxSize": "

The maximum size of the EC2 capacity.

" + } + }, + "MaximumSupportedWeightLbs": { + "base": null, + "refs": { + "RackPhysicalProperties$MaximumSupportedWeightLbs": "

The maximum rack weight that this site can support. NO_LIMIT is over 2000 lbs (907 kg).

", + "UpdateSiteRackPhysicalPropertiesInput$MaximumSupportedWeightLbs": "

Specify the maximum rack weight that this site can support. NO_LIMIT is over 2000lbs.

" + } + }, + "Municipality": { + "base": null, + "refs": { + "Address$Municipality": "

The municipality for the address.

" + } + }, "NotFoundException": { "base": "

The specified request is not valid.

", "refs": { } }, + "OpticalStandard": { + "base": null, + "refs": { + "RackPhysicalProperties$OpticalStandard": "

The type of optical standard used to attach the Outpost to the network. This field is dependent on uplink speed, fiber type, and distance to the upstream device. For more information about networking requirements for racks, see Network in the Amazon Web Services Outposts User Guide.

", + "UpdateSiteRackPhysicalPropertiesInput$OpticalStandard": "

Specify the type of optical standard that you will use to attach the Outpost to your network. This field is dependent on uplink speed, fiber type, and distance to the upstream device. For more information about networking requirements for racks, see Network in the Amazon Web Services Outposts User Guide.

" + } + }, "Order": { "base": "

Information about an order.

", "refs": { - "CreateOrderOutput$Order": "

Information about this order.

" + "CreateOrderOutput$Order": "

Information about this order.

", + "GetOrderOutput$Order": null } }, "OrderId": { "base": null, "refs": { - "Order$OrderId": "

The ID of the order.

" + "CancelOrderInput$OrderId": "

The ID of the order to cancel.

", + "GetOrderInput$OrderId": "

The ID of the order.

", + "Order$OrderId": "

The ID of the order.

", + "OrderSummary$OrderId": "

The ID of the order.

" } }, "OrderStatus": { "base": null, "refs": { - "Order$Status": "

The status of the order

" + "Order$Status": "

The status of the order.

The following status are deprecated: RECEIVED, PENDING, PROCESSING, INSTALLING, and FULFILLED.

", + "OrderSummary$Status": "

The status of the order.

The following statuses are deprecated: RECEIVED, PENDING, PROCESSING, INSTALLING, and FULFILLED.

" + } + }, + "OrderSummary": { + "base": "

A summary of line items in your order.

", + "refs": { + "OrderSummaryListDefinition$member": null + } + }, + "OrderSummaryListDefinition": { + "base": null, + "refs": { + "ListOrdersOutput$Orders": "

Information about the orders.

" + } + }, + "OrderType": { + "base": null, + "refs": { + "OrderSummary$OrderType": "

The type of order.

" } }, "Outpost": { @@ -314,13 +616,15 @@ "OutpostIdOnly": { "base": null, "refs": { - "Order$OutpostId": "

The ID of the Outpost.

" + "Order$OutpostId": "

The ID of the Outpost in the order.

", + "OrderSummary$OutpostId": "

The ID of the Outpost.

" } }, "OutpostIdentifier": { "base": null, "refs": { - "CreateOrderInput$OutpostIdentifier": "

The ID or the Amazon Resource Name (ARN) of the Outpost.

" + "CreateOrderInput$OutpostIdentifier": "

The ID or the Amazon Resource Name (ARN) of the Outpost.

", + "ListOrdersInput$OutpostIdentifierFilter": "

The ID or the Amazon Resource Name (ARN) of the Outpost.

" } }, "OutpostName": { @@ -331,7 +635,7 @@ } }, "OwnerId": { - "base": "

The AWS account ID of the Outpost owner.

", + "base": "

The Amazon Web Services account ID of the Outpost owner.

", "refs": { "Outpost$OwnerId": null } @@ -349,6 +653,53 @@ "CreateOrderInput$PaymentTerm": "

The payment terms for the order.

" } }, + "PostalCode": { + "base": null, + "refs": { + "Address$PostalCode": "

The postal code for the address.

" + } + }, + "PowerConnector": { + "base": null, + "refs": { + "RackPhysicalProperties$PowerConnector": "

The power connector for the hardware.

", + "UpdateSiteRackPhysicalPropertiesInput$PowerConnector": "

Specify the power connector that Amazon Web Services should plan to provide for connections to the hardware. Note the correlation between PowerPhase and PowerConnector.

" + } + }, + "PowerDrawKva": { + "base": null, + "refs": { + "RackPhysicalProperties$PowerDrawKva": "

The power draw available at the hardware placement position for the rack.

", + "UpdateSiteRackPhysicalPropertiesInput$PowerDrawKva": "

Specify in kVA the power draw available at the hardware placement position for the rack.

" + } + }, + "PowerFeedDrop": { + "base": null, + "refs": { + "RackPhysicalProperties$PowerFeedDrop": "

The position of the power feed.

", + "UpdateSiteRackPhysicalPropertiesInput$PowerFeedDrop": "

Specify whether the power feed comes above or below the rack.

" + } + }, + "PowerPhase": { + "base": null, + "refs": { + "RackPhysicalProperties$PowerPhase": "

The power option that you can provide for hardware.

", + "UpdateSiteRackPhysicalPropertiesInput$PowerPhase": "

Specify the power option that you can provide for hardware.

" + } + }, + "Quantity": { + "base": null, + "refs": { + "EC2Capacity$Quantity": "

The quantity of the EC2 capacity.

" + } + }, + "RackPhysicalProperties": { + "base": "

Information about the physical and logistical details for racks at sites. For more information about hardware requirements for racks, see Network readiness checklist in the Amazon Web Services Outposts User Guide.

", + "refs": { + "CreateSiteInput$RackPhysicalProperties": "

Information about the physical and logistical details for the rack at this site. For more information about hardware requirements for racks, see Network readiness checklist in the Amazon Web Services Outposts User Guide.

", + "Site$RackPhysicalProperties": "

Information about the physical and logistical details for a rack at the site.

" + } + }, "ResourceType": { "base": null, "refs": { @@ -363,6 +714,10 @@ "Site": { "base": "

Information about a site.

", "refs": { + "CreateSiteOutput$Site": null, + "GetSiteOutput$Site": null, + "UpdateSiteOutput$Site": null, + "UpdateSiteRackPhysicalPropertiesOutput$Site": null, "siteListDefinition$member": null } }, @@ -376,7 +731,9 @@ "SiteDescription": { "base": "

The description of the site.

", "refs": { - "Site$Description": null + "CreateSiteInput$Description": null, + "Site$Description": null, + "UpdateSiteInput$Description": null } }, "SiteId": { @@ -384,27 +741,46 @@ "refs": { "CreateOutpostInput$SiteId": null, "DeleteSiteInput$SiteId": null, + "GetSiteAddressInput$SiteId": null, + "GetSiteAddressOutput$SiteId": null, + "GetSiteInput$SiteId": null, "Outpost$SiteId": null, - "Site$SiteId": null + "Site$SiteId": null, + "UpdateSiteAddressInput$SiteId": null, + "UpdateSiteInput$SiteId": null, + "UpdateSiteRackPhysicalPropertiesInput$SiteId": null } }, "SiteName": { "base": "

The name of the site.

", "refs": { - "Site$Name": null + "CreateSiteInput$Name": null, + "Site$Name": null, + "UpdateSiteInput$Name": null + } + }, + "SiteNotes": { + "base": null, + "refs": { + "CreateSiteInput$Notes": "

Additional information that you provide about site access requirements, electrician scheduling, personal protective equipment, or regulation of equipment materials that could affect your installation process.

", + "Site$Notes": "

Notes about a site.

", + "UpdateSiteInput$Notes": "

Notes about a site.

" } }, "SkuCode": { "base": null, "refs": { + "CatalogItem$CatalogItemId": "

The ID of the catalog item.

", + "GetCatalogItemInput$CatalogItemId": "

The ID of the catalog item.

", "LineItem$CatalogItemId": "

The ID of the catalog item.

", "LineItemRequest$CatalogItemId": "

The ID of the catalog item.

" } }, - "Status": { + "StateOrRegion": { "base": null, "refs": { - "LineItem$Status": "

The status of the line item.

" + "Address$StateOrRegion": "

The state for the address.

", + "Site$OperatingAddressStateOrRegion": "

State or region where the hardware is installed and powered on.

" } }, "String": { @@ -413,6 +789,31 @@ "ConflictException$ResourceId": "

The ID of the resource causing the conflict.

" } }, + "SupportedStorageEnum": { + "base": null, + "refs": { + "SupportedStorageList$member": null + } + }, + "SupportedStorageList": { + "base": null, + "refs": { + "CatalogItem$SupportedStorage": "

The supported storage options for the catalog item.

", + "ListCatalogItemsInput$SupportedStorageFilter": "

A filter for the storage options of items in the catalog.

Filter values are case sensitive. If you specify multiple values for a filter, the values are joined with an OR, and the request returns all results that match any of the specified values.

" + } + }, + "SupportedUplinkGbps": { + "base": null, + "refs": { + "SupportedUplinkGbpsListDefinition$member": null + } + }, + "SupportedUplinkGbpsListDefinition": { + "base": null, + "refs": { + "CatalogItem$SupportedUplinkGbps": "

The uplink speed this catalog item requires for the connection to the Region.

" + } + }, "TagKey": { "base": null, "refs": { @@ -430,6 +831,7 @@ "base": null, "refs": { "CreateOutpostInput$Tags": "

The tags to apply to the Outpost.

", + "CreateSiteInput$Tags": "

The tags to apply to a site.

", "ListTagsForResourceResponse$Tags": "

The resource tags.

", "Outpost$Tags": "

The Outpost tags.

", "Site$Tags": "

The site tags.

", @@ -457,6 +859,10 @@ "refs": { "GetOutpostInstanceTypesInput$NextToken": null, "GetOutpostInstanceTypesOutput$NextToken": null, + "ListCatalogItemsInput$NextToken": null, + "ListCatalogItemsOutput$NextToken": null, + "ListOrdersInput$NextToken": null, + "ListOrdersOutput$NextToken": null, "ListOutpostsInput$NextToken": null, "ListOutpostsOutput$NextToken": null, "ListSitesInput$NextToken": null, @@ -473,6 +879,50 @@ "refs": { } }, + "UpdateSiteAddressInput": { + "base": null, + "refs": { + } + }, + "UpdateSiteAddressOutput": { + "base": null, + "refs": { + } + }, + "UpdateSiteInput": { + "base": null, + "refs": { + } + }, + "UpdateSiteOutput": { + "base": null, + "refs": { + } + }, + "UpdateSiteRackPhysicalPropertiesInput": { + "base": null, + "refs": { + } + }, + "UpdateSiteRackPhysicalPropertiesOutput": { + "base": null, + "refs": { + } + }, + "UplinkCount": { + "base": null, + "refs": { + "RackPhysicalProperties$UplinkCount": "

The number of uplinks each Outpost network device.

", + "UpdateSiteRackPhysicalPropertiesInput$UplinkCount": "

Racks come with two Outpost network devices. Depending on the supported uplink speed at the site, the Outpost network devices provide a variable number of uplinks. Specify the number of uplinks for each Outpost network device that you intend to use to connect the rack to your network. Note the correlation between UplinkGbps and UplinkCount.

" + } + }, + "UplinkGbps": { + "base": null, + "refs": { + "RackPhysicalProperties$UplinkGbps": "

The uplink speed the rack supports for the connection to the Region.

", + "UpdateSiteRackPhysicalPropertiesInput$UplinkGbps": "

Specify the uplink speed the rack should support for the connection to the Region.

" + } + }, "ValidationException": { "base": "

A parameter is not valid.

", "refs": { diff --git a/models/apis/outposts/2019-12-03/paginators-1.json b/models/apis/outposts/2019-12-03/paginators-1.json index a22e9d094c..8c53cd893a 100644 --- a/models/apis/outposts/2019-12-03/paginators-1.json +++ b/models/apis/outposts/2019-12-03/paginators-1.json @@ -1,5 +1,15 @@ { "pagination": { + "ListCatalogItems": { + "input_token": "NextToken", + "output_token": "NextToken", + "limit_key": "MaxResults" + }, + "ListOrders": { + "input_token": "NextToken", + "output_token": "NextToken", + "limit_key": "MaxResults" + }, "ListOutposts": { "input_token": "NextToken", "output_token": "NextToken", diff --git a/models/apis/pinpoint/2016-12-01/api-2.json b/models/apis/pinpoint/2016-12-01/api-2.json index e9c4bbe547..c68a592790 100644 --- a/models/apis/pinpoint/2016-12-01/api-2.json +++ b/models/apis/pinpoint/2016-12-01/api-2.json @@ -3283,6 +3283,43 @@ } ] }, + "SendOTPMessage": { + "name": "SendOTPMessage", + "http": { + "method": "POST", + "requestUri": "/v1/apps/{application-id}/otp", + "responseCode": 200 + }, + "input": { + "shape": "SendOTPMessageRequest" + }, + "output": { + "shape": "SendOTPMessageResponse" + }, + "errors": [ + { + "shape": "BadRequestException" + }, + { + "shape": "InternalServerErrorException" + }, + { + "shape": "PayloadTooLargeException" + }, + { + "shape": "ForbiddenException" + }, + { + "shape": "NotFoundException" + }, + { + "shape": "MethodNotAllowedException" + }, + { + "shape": "TooManyRequestsException" + } + ] + }, "SendUsersMessages": { "name": "SendUsersMessages", "http": { @@ -4236,6 +4273,43 @@ ] } }, + "VerifyOTPMessage": { + "name": "VerifyOTPMessage", + "http": { + "method": "POST", + "requestUri": "/v1/apps/{application-id}/verify-otp", + "responseCode": 200 + }, + "input": { + "shape": "VerifyOTPMessageRequest" + }, + "output": { + "shape": "VerifyOTPMessageResponse" + }, + "errors": [ + { + "shape": "BadRequestException" + }, + { + "shape": "InternalServerErrorException" + }, + { + "shape": "PayloadTooLargeException" + }, + { + "shape": "ForbiddenException" + }, + { + "shape": "NotFoundException" + }, + { + "shape": "MethodNotAllowedException" + }, + { + "shape": "TooManyRequestsException" + } + ] + }, "shapes": { "ADMChannelRequest": { "type": "structure", @@ -11218,6 +11292,81 @@ ], "payload": "MessageResponse" }, + "SendOTPMessageRequest": { + "type": "structure", + "members": { + "ApplicationId": { + "shape": "__string", + "location": "uri", + "locationName": "application-id" + }, + "SendOTPMessageRequestParameters": { + "shape": "SendOTPMessageRequestParameters" + } + }, + "required": [ + "ApplicationId", + "SendOTPMessageRequestParameters" + ], + "payload": "SendOTPMessageRequestParameters" + }, + "SendOTPMessageRequestParameters": { + "type": "structure", + "members": { + "AllowedAttempts": { + "shape": "__integer" + }, + "BrandName": { + "shape": "__string" + }, + "Channel": { + "shape": "__string" + }, + "CodeLength": { + "shape": "__integer" + }, + "DestinationIdentity": { + "shape": "__string" + }, + "EntityId": { + "shape": "__string" + }, + "Language": { + "shape": "__string" + }, + "OriginationIdentity": { + "shape": "__string" + }, + "ReferenceId": { + "shape": "__string" + }, + "TemplateId": { + "shape": "__string" + }, + "ValidityPeriod": { + "shape": "__integer" + } + }, + "required": [ + "BrandName", + "ReferenceId", + "Channel", + "DestinationIdentity", + "OriginationIdentity" + ] + }, + "SendOTPMessageResponse": { + "type": "structure", + "members": { + "MessageResponse": { + "shape": "MessageResponse" + } + }, + "required": [ + "MessageResponse" + ], + "payload": "MessageResponse" + }, "SendUsersMessageRequest": { "type": "structure", "members": { @@ -12520,6 +12669,63 @@ ], "payload": "MessageBody" }, + "VerificationResponse": { + "type": "structure", + "members": { + "Valid": { + "shape": "__boolean" + } + } + }, + "VerifyOTPMessageRequest": { + "type": "structure", + "members": { + "ApplicationId": { + "shape": "__string", + "location": "uri", + "locationName": "application-id" + }, + "VerifyOTPMessageRequestParameters": { + "shape": "VerifyOTPMessageRequestParameters" + } + }, + "required": [ + "ApplicationId", + "VerifyOTPMessageRequestParameters" + ], + "payload": "VerifyOTPMessageRequestParameters" + }, + "VerifyOTPMessageRequestParameters": { + "type": "structure", + "members": { + "DestinationIdentity": { + "shape": "__string" + }, + "Otp": { + "shape": "__string" + }, + "ReferenceId": { + "shape": "__string" + } + }, + "required": [ + "ReferenceId", + "Otp", + "DestinationIdentity" + ] + }, + "VerifyOTPMessageResponse": { + "type": "structure", + "members": { + "VerificationResponse": { + "shape": "VerificationResponse" + } + }, + "required": [ + "VerificationResponse" + ], + "payload": "VerificationResponse" + }, "VoiceChannelRequest": { "type": "structure", "members": { diff --git a/models/apis/pinpoint/2016-12-01/docs-2.json b/models/apis/pinpoint/2016-12-01/docs-2.json index 39b584b341..c484df3e35 100644 --- a/models/apis/pinpoint/2016-12-01/docs-2.json +++ b/models/apis/pinpoint/2016-12-01/docs-2.json @@ -92,6 +92,7 @@ "PutEvents" : "

Creates a new event to record for endpoints, or creates or updates endpoint data that existing events are associated with.

", "RemoveAttributes" : "

Removes one or more attributes, of the same attribute type, from all the endpoints that are associated with an application.

", "SendMessages" : "

Creates and sends a direct message.

", + "SendOTPMessage" : "

Send an OTP message

", "SendUsersMessages" : "

Creates and sends a message to a list of users.

", "TagResource" : "

Adds one or more tags (keys and values) to an application, campaign, message template, or segment.

", "UntagResource" : "

Removes one or more tags (keys and values) from an application, campaign, message template, or segment.

", @@ -118,7 +119,8 @@ "UpdateSmsTemplate" : "

Updates an existing message template for messages that are sent through the SMS channel.

", "UpdateTemplateActiveVersion" : "

Changes the status of a specific version of a message template to active.

", "UpdateVoiceChannel" : "

Enables the voice channel for an application or updates the status and settings of the voice channel for an application.

", - "UpdateVoiceTemplate" : "

Updates an existing message template for messages that are sent through the voice channel.

" + "UpdateVoiceTemplate" : "

Updates an existing message template for messages that are sent through the voice channel.

", + "VerifyOTPMessage" : "

Verify an OTP

" }, "shapes" : { "ADMChannelRequest" : { @@ -1204,6 +1206,10 @@ "base" : "

Provides information about all the segments that are associated with an application.

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

Send OTP message request parameters.

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

Specifies the configuration and other settings for a message to send to all the endpoints that are associated with a list of users.

", "refs" : { } @@ -1360,6 +1366,14 @@ "base" : "

Specifies Amazon Pinpoint configuration settings for retrieving and processing recommendation data from a recommender model.

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

Verify OTP Message Response.

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

Verify OTP message request.

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

Specifies the status and settings of the voice channel for an application.

", "refs" : { } @@ -1487,6 +1501,7 @@ "SMSChannelResponse$HasCredential" : "

(Not used) This property is retained only for backward compatibility.

", "SMSChannelResponse$IsArchived" : "

Specifies whether the SMS channel is archived.

", "Schedule$IsLocalTime" : "

Specifies whether the start and end times for the campaign schedule use each recipient's local time. To base the schedule on each recipient's local time, set this value to true.

", + "VerificationResponse$Valid" : "

Specifies whether the OTP is valid or not.

", "VoiceChannelRequest$Enabled" : "

Specifies whether to enable the voice channel for the application.

", "VoiceChannelResponse$Enabled" : "

Specifies whether the voice channel is enabled for the application.

", "VoiceChannelResponse$HasCredential" : "

(Not used) This property is retained only for backward compatibility.

", @@ -1575,6 +1590,9 @@ "SegmentImportResource$Size" : "

The number of endpoint definitions that were imported successfully to create the segment.

", "SegmentReference$Version" : "

The version number of the segment.

", "SegmentResponse$Version" : "

The version number of the segment.

", + "SendOTPMessageRequestParameters$AllowedAttempts" : "

The attempts allowed to validate an OTP.

", + "SendOTPMessageRequestParameters$CodeLength" : "

The number of characters in the generated OTP.

", + "SendOTPMessageRequestParameters$ValidityPeriod" : "

The time in minutes before the OTP is no longer valid.

", "Session$Duration" : "

The duration of the session, in milliseconds.

", "TreatmentResource$SizePercent" : "

The allocated percentage of users (segment members) that the treatment is sent to.

", "UpdateRecommenderConfiguration$RecommendationsPerMessage" : "

The number of recommended items to retrieve from the model for each endpoint or user, depending on the value for the RecommendationProviderIdType property. This number determines how many recommended items are available for use in message variables. The minimum value is 1. The maximum value is 5. The default value is 5.

To use multiple recommended items and custom attributes with message variables, you have to use an AWS Lambda function (RecommendationTransformerUri) to perform additional processing of recommendation data.

", @@ -2448,6 +2466,14 @@ "SegmentResponse$LastModifiedDate" : "

The date and time when the segment was last modified.

", "SegmentResponse$Name" : "

The name of the segment.

", "SegmentsResponse$NextToken" : "

The string to use in a subsequent request to get the next page of results in a paginated response. This value is null if there are no additional pages.

", + "SendOTPMessageRequestParameters$BrandName" : "

The brand name that will be substituted into the OTP message body. Should be owned by calling AWS account.

", + "SendOTPMessageRequestParameters$Channel" : "

Channel type for the OTP message. Supported values: [SMS].

", + "SendOTPMessageRequestParameters$DestinationIdentity" : "

The destination identity to send OTP to.

", + "SendOTPMessageRequestParameters$EntityId" : "

A unique Entity ID received from DLT after entity registration is approved.

", + "SendOTPMessageRequestParameters$Language" : "

The language to be used for the outgoing message body containing the OTP.

", + "SendOTPMessageRequestParameters$OriginationIdentity" : "

The origination identity used to send OTP from.

", + "SendOTPMessageRequestParameters$ReferenceId" : "

Developer-specified reference identifier. Required to match during OTP verification.

", + "SendOTPMessageRequestParameters$TemplateId" : "

A unique Template ID received from DLT after entity registration is approved.

", "SendUsersMessageRequest$TraceId" : "

The unique identifier for tracing the message. This identifier is visible to message recipients.

", "SendUsersMessageResponse$ApplicationId" : "

The unique identifier for the application that was used to send the message.

", "SendUsersMessageResponse$RequestId" : "

The unique identifier that was assigned to the message request.

", @@ -2491,6 +2517,9 @@ "UpdateRecommenderConfiguration$RecommendationProviderUri" : "

The Amazon Resource Name (ARN) of the recommender model to retrieve recommendation data from. This value must match the ARN of an Amazon Personalize campaign.

", "UpdateRecommenderConfiguration$RecommendationTransformerUri" : "

The name or Amazon Resource Name (ARN) of the AWS Lambda function to invoke for additional processing of recommendation data that's retrieved from the recommender model.

", "UpdateRecommenderConfiguration$RecommendationsDisplayName" : "

A custom display name for the standard endpoint or user attribute (RecommendationItems) that temporarily stores recommended items for each endpoint or user, depending on the value for the RecommendationProviderIdType property. This value is required if the configuration doesn't invoke an AWS Lambda function (RecommendationTransformerUri) to perform additional processing of recommendation data.

This name appears in the Attribute finder of the template editor on the Amazon Pinpoint console. The name can contain up to 25 characters. The characters can be letters, numbers, spaces, underscores (_), or hyphens (-). These restrictions don't apply to attribute values.

", + "VerifyOTPMessageRequestParameters$DestinationIdentity" : "

The destination identity to send OTP to.

", + "VerifyOTPMessageRequestParameters$Otp" : "

The OTP the end user provided for verification.

", + "VerifyOTPMessageRequestParameters$ReferenceId" : "

The reference identifier provided when the OTP was previously sent.

", "VoiceChannelResponse$ApplicationId" : "

The unique identifier for the application that the voice channel applies to.

", "VoiceChannelResponse$CreationDate" : "

The date and time, in ISO 8601 format, when the voice channel was enabled.

", "VoiceChannelResponse$Id" : "

(Deprecated) An identifier for the voice channel. This property is retained only for backward compatibility.

", diff --git a/service/autoscaling/api.go b/service/autoscaling/api.go index 55ec91f969..0073cf94d4 100644 --- a/service/autoscaling/api.go +++ b/service/autoscaling/api.go @@ -172,6 +172,9 @@ func (c *AutoScaling) AttachLoadBalancerTargetGroupsRequest(input *AttachLoadBal // API. To detach the target group from the Auto Scaling group, call the DetachLoadBalancerTargetGroups // API. // +// This operation is additive and does not detach existing target groups or +// Classic Load Balancers from the Auto Scaling group. +// // For more information, see Elastic Load Balancing and Amazon EC2 Auto Scaling // (https://docs.aws.amazon.com/autoscaling/ec2/userguide/autoscaling-load-balancer.html) // in the Amazon EC2 Auto Scaling User Guide. @@ -270,6 +273,9 @@ func (c *AutoScaling) AttachLoadBalancersRequest(input *AttachLoadBalancersInput // API. To detach the load balancer from the Auto Scaling group, call the DetachLoadBalancers // API. // +// This operation is additive and does not detach existing Classic Load Balancers +// or target groups from the Auto Scaling group. +// // For more information, see Elastic Load Balancing and Amazon EC2 Auto Scaling // (https://docs.aws.amazon.com/autoscaling/ec2/userguide/autoscaling-load-balancer.html) // in the Amazon EC2 Auto Scaling User Guide. @@ -629,7 +635,7 @@ func (c *AutoScaling) CompleteLifecycleActionRequest(input *CompleteLifecycleAct // This step is a part of the procedure for adding a lifecycle hook to an Auto // Scaling group: // -// (Optional) Create a Lambda function and a rule that allows CloudWatch Events +// (Optional) Create a Lambda function and a rule that allows Amazon EventBridge // to invoke your Lambda function when Amazon EC2 Auto Scaling launches or terminates // instances. // @@ -643,7 +649,8 @@ func (c *AutoScaling) CompleteLifecycleActionRequest(input *CompleteLifecycleAct // If you need more time, record the lifecycle action heartbeat to keep the // instance in a pending state. // -// If you finish before the timeout period ends, complete the lifecycle action. +// If you finish before the timeout period ends, send a callback by using the +// CompleteLifecycleAction API call. // // For more information, see Amazon EC2 Auto Scaling lifecycle hooks (https://docs.aws.amazon.com/autoscaling/ec2/userguide/lifecycle-hooks.html) // in the Amazon EC2 Auto Scaling User Guide. @@ -4801,14 +4808,14 @@ func (c *AutoScaling) PutLifecycleHookRequest(input *PutLifecycleHookInput) (req // // Creates or updates a lifecycle hook for the specified Auto Scaling group. // -// A lifecycle hook tells Amazon EC2 Auto Scaling to perform an action on an -// instance when the instance launches (before it is put into service) or as -// the instance terminates (before it is fully terminated). +// A lifecycle hook enables an Auto Scaling group to be aware of events in the +// Auto Scaling instance lifecycle, and then perform a custom action when the +// corresponding lifecycle event occurs. // // This step is a part of the procedure for adding a lifecycle hook to an Auto // Scaling group: // -// (Optional) Create a Lambda function and a rule that allows CloudWatch Events +// (Optional) Create a Lambda function and a rule that allows Amazon EventBridge // to invoke your Lambda function when Amazon EC2 Auto Scaling launches or terminates // instances. // @@ -4823,8 +4830,8 @@ func (c *AutoScaling) PutLifecycleHookRequest(input *PutLifecycleHookInput) (req // instance in a pending state using the RecordLifecycleActionHeartbeat API // call. // -// If you finish before the timeout period ends, complete the lifecycle action -// using the CompleteLifecycleAction API call. +// If you finish before the timeout period ends, send a callback by using the +// CompleteLifecycleAction API call. // // For more information, see Amazon EC2 Auto Scaling lifecycle hooks (https://docs.aws.amazon.com/autoscaling/ec2/userguide/lifecycle-hooks.html) // in the Amazon EC2 Auto Scaling User Guide. @@ -5334,7 +5341,7 @@ func (c *AutoScaling) RecordLifecycleActionHeartbeatRequest(input *RecordLifecyc // This step is a part of the procedure for adding a lifecycle hook to an Auto // Scaling group: // -// (Optional) Create a Lambda function and a rule that allows CloudWatch Events +// (Optional) Create a Lambda function and a rule that allows Amazon EventBridge // to invoke your Lambda function when Amazon EC2 Auto Scaling launches or terminates // instances. // @@ -5348,7 +5355,8 @@ func (c *AutoScaling) RecordLifecycleActionHeartbeatRequest(input *RecordLifecyc // If you need more time, record the lifecycle action heartbeat to keep the // instance in a pending state. // -// If you finish before the timeout period ends, complete the lifecycle action. +// If you finish before the timeout period ends, send a callback by using the +// CompleteLifecycleAction API call. // // For more information, see Amazon EC2 Auto Scaling lifecycle hooks (https://docs.aws.amazon.com/autoscaling/ec2/userguide/lifecycle-hooks.html) // in the Amazon EC2 Auto Scaling User Guide. @@ -5700,8 +5708,8 @@ func (c *AutoScaling) SetInstanceProtectionRequest(input *SetInstanceProtectionI // operation cannot be called on instances in a warm pool. // // For more information about preventing instances that are part of an Auto -// Scaling group from terminating on scale in, see Instance scale-in protection -// (https://docs.aws.amazon.com/autoscaling/ec2/userguide/as-instance-termination.html#instance-protection) +// Scaling group from terminating on scale in, see Using instance scale-in protection +// (https://docs.aws.amazon.com/autoscaling/ec2/userguide/ec2-auto-scaling-instance-protection.html) // in the Amazon EC2 Auto Scaling User Guide. // // If you exceed your maximum limit of instance IDs, which is 50 per Auto Scaling @@ -7346,7 +7354,7 @@ type CreateAutoScalingGroupInput struct { // attempts to launch a Spot Instance whenever Amazon EC2 notifies that a Spot // Instance is at an elevated risk of interruption. After launching a new instance, // it then terminates an old instance. For more information, see Amazon EC2 - // Auto Scaling Capacity Rebalancing (https://docs.aws.amazon.com/autoscaling/ec2/userguide/capacity-rebalance.html) + // Auto Scaling Capacity Rebalancing (https://docs.aws.amazon.com/autoscaling/ec2/userguide/ec2-auto-scaling-capacity-rebalancing.html) // in the Amazon EC2 Auto Scaling User Guide. CapacityRebalance *bool `type:"boolean"` @@ -7382,10 +7390,9 @@ type CreateAutoScalingGroupInput struct { DesiredCapacityType *string `min:"1" type:"string"` // The amount of time, in seconds, that Amazon EC2 Auto Scaling waits before - // checking the health status of an EC2 instance that has come into service. - // During this time, any health check failures for the instance are ignored. - // The default value is 0. For more information, see Health check grace period - // (https://docs.aws.amazon.com/autoscaling/ec2/userguide/healthcheck.html#health-check-grace-period) + // checking the health status of an EC2 instance that has come into service + // and marking it unhealthy due to a failed health check. The default value + // is 0. For more information, see Health check grace period (https://docs.aws.amazon.com/autoscaling/ec2/userguide/healthcheck.html#health-check-grace-period) // in the Amazon EC2 Auto Scaling User Guide. // // Conditional: Required if you are adding an ELB health check. @@ -7463,14 +7470,14 @@ type CreateAutoScalingGroupInput struct { // An embedded object that specifies a mixed instances policy. // // For more information, see Auto Scaling groups with multiple instance types - // and purchase options (https://docs.aws.amazon.com/autoscaling/ec2/userguide/asg-purchase-options.html) + // and purchase options (https://docs.aws.amazon.com/autoscaling/ec2/userguide/ec2-auto-scaling-mixed-instances-groups.html) // in the Amazon EC2 Auto Scaling User Guide. MixedInstancesPolicy *MixedInstancesPolicy `type:"structure"` // Indicates whether newly launched instances are protected from termination // by Amazon EC2 Auto Scaling when scaling in. For more information about preventing - // instances from terminating on scale in, see Instance scale-in protection - // (https://docs.aws.amazon.com/autoscaling/ec2/userguide/as-instance-termination.html#instance-protection) + // instances from terminating on scale in, see Using instance scale-in protection + // (https://docs.aws.amazon.com/autoscaling/ec2/userguide/ec2-auto-scaling-instance-protection.html) // in the Amazon EC2 Auto Scaling User Guide. NewInstancesProtectedFromScaleIn *bool `type:"boolean"` @@ -8265,7 +8272,7 @@ func (s CreateOrUpdateTagsOutput) GoString() string { // * Add values for each required parameter from CloudWatch. You can use // an existing metric, or a new metric that you create. To use your own metric, // you must first publish the metric to CloudWatch. For more information, -// see Publish Custom Metrics (https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/publishingMetrics.html) +// see Publish custom metrics (https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/publishingMetrics.html) // in the Amazon CloudWatch User Guide. // // * Choose a metric that changes proportionally with capacity. The value @@ -8273,7 +8280,13 @@ func (s CreateOrUpdateTagsOutput) GoString() string { // number of capacity units. That is, the value of the metric should decrease // when capacity increases. // -// For more information about CloudWatch, see Amazon CloudWatch Concepts (https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/cloudwatch_concepts.html). +// For more information about the CloudWatch terminology below, see Amazon CloudWatch +// concepts (https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/cloudwatch_concepts.html). +// +// Each individual service provides information about the metrics, namespace, +// and dimensions they use. For more information, see 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. type CustomizedMetricSpecification struct { _ struct{} `type:"structure"` @@ -8283,7 +8296,9 @@ type CustomizedMetricSpecification struct { // the same dimensions in your scaling policy. Dimensions []*MetricDimension `type:"list"` - // The name of the metric. + // The name of the metric. To get the exact metric name, namespace, and dimensions, + // inspect the Metric (https://docs.aws.amazon.com/AmazonCloudWatch/latest/APIReference/API_Metric.html) + // object that is returned by a call to ListMetrics (https://docs.aws.amazon.com/AmazonCloudWatch/latest/APIReference/API_ListMetrics.html). // // MetricName is a required field MetricName *string `type:"string" required:"true"` @@ -8298,7 +8313,9 @@ type CustomizedMetricSpecification struct { // Statistic is a required field Statistic *string `type:"string" required:"true" enum:"MetricStatistic"` - // The unit of the metric. + // The unit of the metric. 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"` } @@ -8629,8 +8646,7 @@ type DeleteNotificationConfigurationInput struct { // AutoScalingGroupName is a required field AutoScalingGroupName *string `min:"1" type:"string" required:"true"` - // The Amazon Resource Name (ARN) of the Amazon Simple Notification Service - // (Amazon SNS) topic. + // The Amazon Resource Name (ARN) of the Amazon SNS topic. // // TopicARN is a required field TopicARN *string `min:"1" type:"string" required:"true"` @@ -10924,7 +10940,7 @@ type DesiredConfiguration struct { // 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 // your costs. For more information, see Auto Scaling groups with multiple instance - // types and purchase options (https://docs.aws.amazon.com/autoscaling/ec2/userguide/asg-purchase-options.html) + // types and purchase options (https://docs.aws.amazon.com/autoscaling/ec2/userguide/ec2-auto-scaling-mixed-instances-groups.html) // in the Amazon EC2 Auto Scaling User Guide. MixedInstancesPolicy *MixedInstancesPolicy `type:"structure"` } @@ -12437,7 +12453,8 @@ type Group struct { EnabledMetrics []*EnabledMetric `type:"list"` // The amount of time, in seconds, that Amazon EC2 Auto Scaling waits before - // checking the health status of an EC2 instance that has come into service. + // checking the health status of an EC2 instance that has come into service + // and marking it unhealthy due to a failed health check. HealthCheckGracePeriod *int64 `type:"integer"` // The service to use for the health checks. The valid values are EC2 and ELB. @@ -14225,7 +14242,7 @@ func (s *LaunchTemplate) SetOverrides(v []*LaunchTemplateOverrides) *LaunchTempl } // Describes an override for a launch template. For more information, see Configuring -// overrides (https://docs.aws.amazon.com/autoscaling/ec2/userguide/asg-override-options.html) +// overrides (https://docs.aws.amazon.com/autoscaling/ec2/userguide/ec2-auto-scaling-configuring-overrides.html) // in the Amazon EC2 Auto Scaling User Guide. type LaunchTemplateOverrides struct { _ struct{} `type:"structure"` @@ -14248,7 +14265,7 @@ type LaunchTemplateOverrides struct { // a launch template with a different AMI. If not provided, Amazon EC2 Auto // Scaling uses the launch template that's defined for your mixed instances // policy. For more information, see Specifying a different launch template - // for an instance type (https://docs.aws.amazon.com/autoscaling/ec2/userguide/asg-launch-template-overrides.html) + // for an instance type (https://docs.aws.amazon.com/autoscaling/ec2/userguide/ec2-auto-scaling-mixed-instances-groups-launch-template-overrides.html) // in the Amazon EC2 Auto Scaling User Guide. LaunchTemplateSpecification *LaunchTemplateSpecification `type:"structure"` @@ -14261,7 +14278,7 @@ type LaunchTemplateOverrides struct { // to fulfill capacity, and Amazon EC2 Auto Scaling can only launch an instance // with a WeightedCapacity of five units, the instance is launched, and the // desired capacity is exceeded by three units. For more information, see Instance - // weighting for Amazon EC2 Auto Scaling (https://docs.aws.amazon.com/autoscaling/ec2/userguide/asg-instance-weighting.html) + // weighting for Amazon EC2 Auto Scaling (https://docs.aws.amazon.com/ec2-auto-scaling-mixed-instances-groups-instance-weighting.html) // in the Amazon EC2 Auto Scaling User Guide. Value must be in the range of // 1–999. WeightedCapacity *string `min:"1" type:"string"` @@ -14426,8 +14443,9 @@ func (s *LaunchTemplateSpecification) SetVersion(v string) *LaunchTemplateSpecif return s } -// Describes a lifecycle hook, which tells Amazon EC2 Auto Scaling that you -// want to perform an action whenever it launches instances or terminates instances. +// Describes a lifecycle hook, which enables an Auto Scaling group to be aware +// of events in the Auto Scaling instance lifecycle, and then perform a custom +// action when the corresponding lifecycle event occurs. type LifecycleHook struct { _ struct{} `type:"structure"` @@ -14549,29 +14567,6 @@ func (s *LifecycleHook) SetRoleARN(v string) *LifecycleHook { // Describes information used to specify a lifecycle hook for an Auto Scaling // group. // -// A lifecycle hook tells Amazon EC2 Auto Scaling to perform an action on an -// instance when the instance launches (before it is put into service) or as -// the instance terminates (before it is fully terminated). -// -// This step is a part of the procedure for creating a lifecycle hook for an -// Auto Scaling group: -// -// (Optional) Create a Lambda function and a rule that allows CloudWatch Events -// to invoke your Lambda function when Amazon EC2 Auto Scaling launches or terminates -// instances. -// -// (Optional) Create a notification target and an IAM role. The target can be -// either an Amazon SQS queue or an Amazon SNS topic. The role allows Amazon -// EC2 Auto Scaling to publish lifecycle notifications to the target. -// -// Create the lifecycle hook. Specify whether the hook is used when the instances -// launch or terminate. -// -// If you need more time, record the lifecycle action heartbeat to keep the -// instance in a pending state. -// -// If you finish before the timeout period ends, complete the lifecycle action. -// // For more information, see Amazon EC2 Auto Scaling lifecycle hooks (https://docs.aws.amazon.com/autoscaling/ec2/userguide/lifecycle-hooks.html) // in the Amazon EC2 Auto Scaling User Guide. type LifecycleHookSpecification struct { @@ -15140,7 +15135,7 @@ func (s *MetricCollectionType) SetMetric(v string) *MetricCollectionType { // 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) +// configurations using custom 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"` @@ -15150,10 +15145,6 @@ type MetricDataQuery struct { // 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"` @@ -15180,13 +15171,13 @@ type MetricDataQuery struct { // 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 + // 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 + // 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). + // do not specify anything for ReturnData. This sets it to its default (true). ReturnData *bool `type:"boolean"` } @@ -15451,7 +15442,7 @@ func (s *MetricStat) SetUnit(v string) *MetricStat { // 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 // your costs. For more information, see Auto Scaling groups with multiple instance -// types and purchase options (https://docs.aws.amazon.com/autoscaling/ec2/userguide/asg-purchase-options.html) +// types and purchase options (https://docs.aws.amazon.com/autoscaling/ec2/userguide/ec2-auto-scaling-mixed-instances-groups.html) // in the Amazon EC2 Auto Scaling User Guide. type MixedInstancesPolicy struct { _ struct{} `type:"structure"` @@ -15572,8 +15563,7 @@ type NotificationConfiguration struct { // * autoscaling:TEST_NOTIFICATION NotificationType *string `min:"1" type:"string"` - // The Amazon Resource Name (ARN) of the Amazon Simple Notification Service - // (Amazon SNS) topic. + // The Amazon Resource Name (ARN) of the Amazon SNS topic. TopicARN *string `min:"1" type:"string"` } @@ -15899,7 +15889,7 @@ func (s *PredictiveScalingCustomizedCapacityMetric) SetMetricDataQueries(v []*Me return s } -// Describes a customized load metric for a predictive scaling policy. +// Describes a custom load metric for a predictive scaling policy. type PredictiveScalingCustomizedLoadMetric struct { _ struct{} `type:"structure"` @@ -15958,7 +15948,7 @@ func (s *PredictiveScalingCustomizedLoadMetric) SetMetricDataQueries(v []*Metric return s } -// Describes a customized scaling metric for a predictive scaling policy. +// Describes a custom scaling metric for a predictive scaling policy. type PredictiveScalingCustomizedScalingMetric struct { _ struct{} `type:"structure"` @@ -16054,9 +16044,8 @@ func (s *PredictiveScalingCustomizedScalingMetric) SetMetricDataQueries(v []*Met // 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) +// For information about using custom metrics with predictive scaling, see Advanced +// predictive scaling policy configurations using custom 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"` @@ -16706,8 +16695,7 @@ type PutNotificationConfigurationInput struct { // NotificationTypes is a required field NotificationTypes []*string `type:"list" required:"true"` - // The Amazon Resource Name (ARN) of the Amazon Simple Notification Service - // (Amazon SNS) topic. + // The Amazon Resource Name (ARN) of the Amazon SNS topic. // // TopicARN is a required field TopicARN *string `min:"1" type:"string" required:"true"` @@ -16876,9 +16864,9 @@ type PutScalingPolicyInput struct { // * PredictiveScaling PolicyType *string `min:"1" type:"string"` - // A predictive scaling policy. Provides support for only predefined metrics. + // A predictive scaling policy. Provides support for predefined and custom metrics. // - // Predictive scaling works with CPU utilization, network in/out, and the Application + // Predefined metrics include CPU utilization, network in/out, and the Application // Load Balancer request count. // // For more information, see PredictiveScalingConfiguration (https://docs.aws.amazon.com/autoscaling/ec2/APIReference/API_PredictiveScalingConfiguration.html) @@ -16902,7 +16890,7 @@ type PutScalingPolicyInput struct { // type.) StepAdjustments []*StepAdjustment `type:"list"` - // A target tracking scaling policy. Provides support for predefined or customized + // A target tracking scaling policy. Provides support for predefined or custom // metrics. // // The following predefined metrics are available: @@ -19193,7 +19181,7 @@ type UpdateAutoScalingGroupInput struct { AvailabilityZones []*string `type:"list"` // Enables or disables Capacity Rebalancing. For more information, see Amazon - // EC2 Auto Scaling Capacity Rebalancing (https://docs.aws.amazon.com/autoscaling/ec2/userguide/capacity-rebalance.html) + // EC2 Auto Scaling Capacity Rebalancing (https://docs.aws.amazon.com/autoscaling/ec2/userguide/ec2-auto-scaling-capacity-rebalancing.html) // in the Amazon EC2 Auto Scaling User Guide. CapacityRebalance *bool `type:"boolean"` @@ -19227,9 +19215,9 @@ type UpdateAutoScalingGroupInput struct { DesiredCapacityType *string `min:"1" type:"string"` // The amount of time, in seconds, that Amazon EC2 Auto Scaling waits before - // checking the health status of an EC2 instance that has come into service. - // The default value is 0. For more information, see Health check grace period - // (https://docs.aws.amazon.com/autoscaling/ec2/userguide/healthcheck.html#health-check-grace-period) + // checking the health status of an EC2 instance that has come into service + // and marking it unhealthy due to a failed health check. The default value + // is 0. For more information, see Health check grace period (https://docs.aws.amazon.com/autoscaling/ec2/userguide/healthcheck.html#health-check-grace-period) // in the Amazon EC2 Auto Scaling User Guide. // // Conditional: Required if you are adding an ELB health check. @@ -19272,14 +19260,14 @@ type UpdateAutoScalingGroupInput struct { // An embedded object that specifies a mixed instances policy. For more information, // see Auto Scaling groups with multiple instance types and purchase options - // (https://docs.aws.amazon.com/autoscaling/ec2/userguide/asg-purchase-options.html) + // (https://docs.aws.amazon.com/autoscaling/ec2/userguide/ec2-auto-scaling-mixed-instances-groups.html) // in the Amazon EC2 Auto Scaling User Guide. MixedInstancesPolicy *MixedInstancesPolicy `type:"structure"` // Indicates whether newly launched instances are protected from termination // by Amazon EC2 Auto Scaling when scaling in. For more information about preventing - // instances from terminating on scale in, see Instance scale-in protection - // (https://docs.aws.amazon.com/autoscaling/ec2/userguide/as-instance-termination.html#instance-protection) + // instances from terminating on scale in, see Using instance scale-in protection + // (https://docs.aws.amazon.com/autoscaling/ec2/userguide/ec2-auto-scaling-instance-protection.html) // in the Amazon EC2 Auto Scaling User Guide. NewInstancesProtectedFromScaleIn *bool `type:"boolean"` diff --git a/service/ec2/api.go b/service/ec2/api.go index 64faee112a..b0ffb13cef 100644 --- a/service/ec2/api.go +++ b/service/ec2/api.go @@ -2543,7 +2543,7 @@ func (c *EC2) AuthorizeSecurityGroupEgressRequest(input *AuthorizeSecurityGroupE // // An outbound rule permits instances to send traffic to the specified IPv4 // or IPv6 CIDR address ranges, or to the instances that are associated with -// the specified destination security groups. +// the specified source security groups. // // You specify a protocol for each rule (for example, TCP). For the TCP and // UDP protocols, you must also specify the destination port or port range. @@ -60072,6 +60072,7 @@ type CreateRouteInput struct { // with a Wavelength Zone. CarrierGatewayId *string `type:"string"` + // The Amazon Resource Name (ARN) of the core network. CoreNetworkArn *string `type:"string"` // The IPv4 CIDR address block used for the destination match. Routing decisions @@ -68187,6 +68188,8 @@ type DeleteTagsInput struct { // If you omit this parameter, we delete all user-defined tags for the specified // resources. We do not delete Amazon Web Services-generated tags (tags that // have the aws: prefix). + // + // Constraints: Up to 1000 tags. Tags []*Tag `locationName:"tag" locationNameList:"item" type:"list"` } @@ -126735,6 +126738,7 @@ type ReplaceRouteInput struct { // [IPv4 traffic only] The ID of a carrier gateway. CarrierGatewayId *string `type:"string"` + // The Amazon Resource Name (ARN) of the core network. CoreNetworkArn *string `type:"string"` // The IPv4 CIDR address block used for the destination match. The value that @@ -130983,6 +130987,7 @@ type Route struct { // The ID of the carrier gateway. CarrierGatewayId *string `locationName:"carrierGatewayId" type:"string"` + // The Amazon Resource Name (ARN) of the core network. CoreNetworkArn *string `locationName:"coreNetworkArn" type:"string"` // The IPv4 CIDR block used for the destination match. diff --git a/service/iotdeviceadvisor/api.go b/service/iotdeviceadvisor/api.go index 004546d538..ae7f80149c 100644 --- a/service/iotdeviceadvisor/api.go +++ b/service/iotdeviceadvisor/api.go @@ -71,10 +71,10 @@ func (c *IoTDeviceAdvisor) CreateSuiteDefinitionRequest(input *CreateSuiteDefini // // Returned Error Types: // * ValidationException -// Sends invalid request exception. +// Sends a validation exception. // // * InternalServerException -// Sends Internal Failure Exception. +// Sends an Internal Failure exception. // // See also, https://docs.aws.amazon.com/goto/WebAPI/iotdeviceadvisor-2020-09-18/CreateSuiteDefinition func (c *IoTDeviceAdvisor) CreateSuiteDefinition(input *CreateSuiteDefinitionInput) (*CreateSuiteDefinitionOutput, error) { @@ -157,10 +157,10 @@ func (c *IoTDeviceAdvisor) DeleteSuiteDefinitionRequest(input *DeleteSuiteDefini // // Returned Error Types: // * ValidationException -// Sends invalid request exception. +// Sends a validation exception. // // * InternalServerException -// Sends Internal Failure Exception. +// Sends an Internal Failure exception. // // See also, https://docs.aws.amazon.com/goto/WebAPI/iotdeviceadvisor-2020-09-18/DeleteSuiteDefinition func (c *IoTDeviceAdvisor) DeleteSuiteDefinition(input *DeleteSuiteDefinitionInput) (*DeleteSuiteDefinitionOutput, error) { @@ -228,6 +228,8 @@ func (c *IoTDeviceAdvisor) GetEndpointRequest(input *GetEndpointInput) (req *req // GetEndpoint API operation for AWS IoT Core Device Advisor. // +// Gets information about an Device Advisor endpoint. +// // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. @@ -237,13 +239,13 @@ func (c *IoTDeviceAdvisor) GetEndpointRequest(input *GetEndpointInput) (req *req // // Returned Error Types: // * ValidationException -// Sends invalid request exception. +// Sends a validation exception. // // * InternalServerException -// Sends Internal Failure Exception. +// Sends an Internal Failure exception. // // * ResourceNotFoundException -// Sends Resource Not Found Exception. +// Sends a Resource Not Found exception. // // See also, https://docs.aws.amazon.com/goto/WebAPI/iotdeviceadvisor-2020-09-18/GetEndpoint func (c *IoTDeviceAdvisor) GetEndpoint(input *GetEndpointInput) (*GetEndpointOutput, error) { @@ -325,13 +327,13 @@ func (c *IoTDeviceAdvisor) GetSuiteDefinitionRequest(input *GetSuiteDefinitionIn // // Returned Error Types: // * ValidationException -// Sends invalid request exception. +// Sends a validation exception. // // * InternalServerException -// Sends Internal Failure Exception. +// Sends an Internal Failure exception. // // * ResourceNotFoundException -// Sends Resource Not Found Exception. +// Sends a Resource Not Found exception. // // See also, https://docs.aws.amazon.com/goto/WebAPI/iotdeviceadvisor-2020-09-18/GetSuiteDefinition func (c *IoTDeviceAdvisor) GetSuiteDefinition(input *GetSuiteDefinitionInput) (*GetSuiteDefinitionOutput, error) { @@ -413,13 +415,13 @@ func (c *IoTDeviceAdvisor) GetSuiteRunRequest(input *GetSuiteRunInput) (req *req // // Returned Error Types: // * ValidationException -// Sends invalid request exception. +// Sends a validation exception. // // * InternalServerException -// Sends Internal Failure Exception. +// Sends an Internal Failure exception. // // * ResourceNotFoundException -// Sends Resource Not Found Exception. +// Sends a Resource Not Found exception. // // See also, https://docs.aws.amazon.com/goto/WebAPI/iotdeviceadvisor-2020-09-18/GetSuiteRun func (c *IoTDeviceAdvisor) GetSuiteRun(input *GetSuiteRunInput) (*GetSuiteRunOutput, error) { @@ -502,13 +504,13 @@ func (c *IoTDeviceAdvisor) GetSuiteRunReportRequest(input *GetSuiteRunReportInpu // // Returned Error Types: // * ValidationException -// Sends invalid request exception. +// Sends a validation exception. // // * InternalServerException -// Sends Internal Failure Exception. +// Sends an Internal Failure exception. // // * ResourceNotFoundException -// Sends Resource Not Found Exception. +// Sends a Resource Not Found exception. // // See also, https://docs.aws.amazon.com/goto/WebAPI/iotdeviceadvisor-2020-09-18/GetSuiteRunReport func (c *IoTDeviceAdvisor) GetSuiteRunReport(input *GetSuiteRunReportInput) (*GetSuiteRunReportOutput, error) { @@ -596,10 +598,10 @@ func (c *IoTDeviceAdvisor) ListSuiteDefinitionsRequest(input *ListSuiteDefinitio // // Returned Error Types: // * ValidationException -// Sends invalid request exception. +// Sends a validation exception. // // * InternalServerException -// Sends Internal Failure Exception. +// Sends an Internal Failure exception. // // See also, https://docs.aws.amazon.com/goto/WebAPI/iotdeviceadvisor-2020-09-18/ListSuiteDefinitions func (c *IoTDeviceAdvisor) ListSuiteDefinitions(input *ListSuiteDefinitionsInput) (*ListSuiteDefinitionsOutput, error) { @@ -725,8 +727,8 @@ func (c *IoTDeviceAdvisor) ListSuiteRunsRequest(input *ListSuiteRunsInput) (req // ListSuiteRuns API operation for AWS IoT Core Device Advisor. // -// Lists the runs of the specified Device Advisor test suite. You can list all -// runs of the test suite, or the runs of a specific version of the test suite. +// Lists runs of the specified Device Advisor test suite. You can list all runs +// of the test suite, or the runs of a specific version of the test suite. // // Requires permission to access the ListSuiteRuns (https://docs.aws.amazon.com/service-authorization/latest/reference/list_awsiot.html#awsiot-actions-as-permissions) // action. @@ -740,10 +742,10 @@ func (c *IoTDeviceAdvisor) ListSuiteRunsRequest(input *ListSuiteRunsInput) (req // // Returned Error Types: // * ValidationException -// Sends invalid request exception. +// Sends a validation exception. // // * InternalServerException -// Sends Internal Failure Exception. +// Sends an Internal Failure exception. // // See also, https://docs.aws.amazon.com/goto/WebAPI/iotdeviceadvisor-2020-09-18/ListSuiteRuns func (c *IoTDeviceAdvisor) ListSuiteRuns(input *ListSuiteRunsInput) (*ListSuiteRunsOutput, error) { @@ -877,13 +879,13 @@ func (c *IoTDeviceAdvisor) ListTagsForResourceRequest(input *ListTagsForResource // // Returned Error Types: // * InternalServerException -// Sends Internal Failure Exception. +// Sends an Internal Failure exception. // // * ValidationException -// Sends invalid request exception. +// Sends a validation exception. // // * ResourceNotFoundException -// Sends Resource Not Found Exception. +// Sends a Resource Not Found exception. // // See also, https://docs.aws.amazon.com/goto/WebAPI/iotdeviceadvisor-2020-09-18/ListTagsForResource func (c *IoTDeviceAdvisor) ListTagsForResource(input *ListTagsForResourceInput) (*ListTagsForResourceOutput, error) { @@ -965,13 +967,13 @@ func (c *IoTDeviceAdvisor) StartSuiteRunRequest(input *StartSuiteRunInput) (req // // Returned Error Types: // * ValidationException -// Sends invalid request exception. +// Sends a validation exception. // // * InternalServerException -// Sends Internal Failure Exception. +// Sends an Internal Failure exception. // // * ConflictException -// Sends Conflict Exception. +// Sends a Conflict Exception. // // See also, https://docs.aws.amazon.com/goto/WebAPI/iotdeviceadvisor-2020-09-18/StartSuiteRun func (c *IoTDeviceAdvisor) StartSuiteRun(input *StartSuiteRunInput) (*StartSuiteRunOutput, error) { @@ -1054,13 +1056,13 @@ func (c *IoTDeviceAdvisor) StopSuiteRunRequest(input *StopSuiteRunInput) (req *r // // Returned Error Types: // * ValidationException -// Sends invalid request exception. +// Sends a validation exception. // // * ResourceNotFoundException -// Sends Resource Not Found Exception. +// Sends a Resource Not Found exception. // // * InternalServerException -// Sends Internal Failure Exception. +// Sends an Internal Failure exception. // // See also, https://docs.aws.amazon.com/goto/WebAPI/iotdeviceadvisor-2020-09-18/StopSuiteRun func (c *IoTDeviceAdvisor) StopSuiteRun(input *StopSuiteRunInput) (*StopSuiteRunOutput, error) { @@ -1143,13 +1145,13 @@ func (c *IoTDeviceAdvisor) TagResourceRequest(input *TagResourceInput) (req *req // // Returned Error Types: // * InternalServerException -// Sends Internal Failure Exception. +// Sends an Internal Failure exception. // // * ValidationException -// Sends invalid request exception. +// Sends a validation exception. // // * ResourceNotFoundException -// Sends Resource Not Found Exception. +// Sends a Resource Not Found exception. // // See also, https://docs.aws.amazon.com/goto/WebAPI/iotdeviceadvisor-2020-09-18/TagResource func (c *IoTDeviceAdvisor) TagResource(input *TagResourceInput) (*TagResourceOutput, error) { @@ -1232,13 +1234,13 @@ func (c *IoTDeviceAdvisor) UntagResourceRequest(input *UntagResourceInput) (req // // Returned Error Types: // * InternalServerException -// Sends Internal Failure Exception. +// Sends an Internal Failure exception. // // * ValidationException -// Sends invalid request exception. +// Sends a validation exception. // // * ResourceNotFoundException -// Sends Resource Not Found Exception. +// Sends a Resource Not Found exception. // // See also, https://docs.aws.amazon.com/goto/WebAPI/iotdeviceadvisor-2020-09-18/UntagResource func (c *IoTDeviceAdvisor) UntagResource(input *UntagResourceInput) (*UntagResourceOutput, error) { @@ -1320,10 +1322,10 @@ func (c *IoTDeviceAdvisor) UpdateSuiteDefinitionRequest(input *UpdateSuiteDefini // // Returned Error Types: // * ValidationException -// Sends invalid request exception. +// Sends a validation exception. // // * InternalServerException -// Sends Internal Failure Exception. +// Sends an Internal Failure exception. // // See also, https://docs.aws.amazon.com/goto/WebAPI/iotdeviceadvisor-2020-09-18/UpdateSuiteDefinition func (c *IoTDeviceAdvisor) UpdateSuiteDefinition(input *UpdateSuiteDefinitionInput) (*UpdateSuiteDefinitionOutput, error) { @@ -1347,12 +1349,12 @@ func (c *IoTDeviceAdvisor) UpdateSuiteDefinitionWithContext(ctx aws.Context, inp return out, req.Send() } -// Sends Conflict Exception. +// Sends a Conflict Exception. type ConflictException struct { _ struct{} `type:"structure"` RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` - // Sends Conflict Exception message. + // Sends a Conflict Exception message. Message_ *string `locationName:"message" min:"1" type:"string"` } @@ -1596,8 +1598,7 @@ func (s DeleteSuiteDefinitionOutput) GoString() string { return s.String() } -// Information of a test device. Required to provide either a thing ARN or a -// certificate ARN. +// Information of a test device. A thing ARN or a certificate ARN is required. type DeviceUnderTest struct { _ struct{} `type:"structure"` @@ -1657,8 +1658,10 @@ func (s *DeviceUnderTest) SetThingArn(v string) *DeviceUnderTest { type GetEndpointInput struct { _ struct{} `type:"structure" nopayload:"true"` + // The certificate ARN of the device. This is an optional parameter. CertificateArn *string `location:"querystring" locationName:"certificateArn" min:"20" type:"string"` + // The thing ARN of the device. This is an optional parameter. ThingArn *string `location:"querystring" locationName:"thingArn" min:"20" type:"string"` } @@ -1711,6 +1714,7 @@ func (s *GetEndpointInput) SetThingArn(v string) *GetEndpointInput { type GetEndpointOutput struct { _ struct{} `type:"structure"` + // The response of an Device Advisor endpoint. Endpoint *string `locationName:"endpoint" min:"45" type:"string"` } @@ -1968,7 +1972,7 @@ type GetSuiteRunOutput struct { // Error reason for any test suite run failure. ErrorReason *string `locationName:"errorReason" type:"string"` - // Date (in Unix epoch time) when the test suite run was started. + // Date (in Unix epoch time) when the test suite run started. StartTime *time.Time `locationName:"startTime" type:"timestamp"` // Status for the test suite run. @@ -2227,12 +2231,12 @@ func (s *GroupResult) SetTests(v []*TestCaseRun) *GroupResult { return s } -// Sends Internal Failure Exception. +// Sends an Internal Failure exception. type InternalServerException struct { _ struct{} `type:"structure"` RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` - // Sends Internal Failure Exception message. + // Sends an Internal Failure Exception message. Message_ *string `locationName:"message" min:"1" type:"string"` } @@ -2586,12 +2590,12 @@ func (s *ListTagsForResourceOutput) SetTags(v map[string]*string) *ListTagsForRe return s } -// Sends Resource Not Found Exception. +// Sends a Resource Not Found exception. type ResourceNotFoundException struct { _ struct{} `type:"structure"` RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` - // Sends Resource Not Found Exception message. + // Sends a Resource Not Found Exception message. Message_ *string `locationName:"message" min:"1" type:"string"` } @@ -2876,7 +2880,7 @@ func (s StopSuiteRunOutput) GoString() string { type SuiteDefinitionConfiguration struct { _ struct{} `type:"structure"` - // Gets device permission ARN. + // Gets the device permission ARN. DevicePermissionRoleArn *string `locationName:"devicePermissionRoleArn" min:"20" type:"string"` // Gets the devices configured. @@ -2976,7 +2980,7 @@ type SuiteDefinitionInformation struct { // Date (in Unix epoch time) when the test suite was created. CreatedAt *time.Time `locationName:"createdAt" type:"timestamp"` - // Specifies the devices under test for the test suite. + // Specifies the devices that are under test for the test suite. DefaultDevices []*DeviceUnderTest `locationName:"defaultDevices" type:"list"` // Specifies if the test suite is intended for qualification. @@ -3041,6 +3045,7 @@ func (s *SuiteDefinitionInformation) SetSuiteDefinitionName(v string) *SuiteDefi type SuiteRunConfiguration struct { _ struct{} `type:"structure"` + // TRUE if multiple test suites run in parallel. ParallelRun *bool `locationName:"parallelRun" type:"boolean"` // Gets the primary device for suite run. @@ -3302,7 +3307,7 @@ func (s TagResourceOutput) GoString() string { return s.String() } -// Provides test case run. +// Provides the test case run. type TestCaseRun struct { _ struct{} `type:"structure"` @@ -3312,13 +3317,13 @@ type TestCaseRun struct { // Provides test case run failure result. Failure *string `locationName:"failure" type:"string"` - // Provides test case run log Url. + // Provides test case run log URL. LogUrl *string `locationName:"logUrl" type:"string"` // Provides test case run start time. StartTime *time.Time `locationName:"startTime" type:"timestamp"` - // Provides test case run status. + // Provides the test case run status. Status is one of the following: // // * PASS: Test passed. // @@ -3326,7 +3331,7 @@ type TestCaseRun struct { // // * PENDING: Test has not started running but is scheduled. // - // * RUNNING: Test is running + // * RUNNING: Test is running. // // * STOPPING: Test is performing cleanup steps. You will see this status // only if you stop a suite run. @@ -3339,13 +3344,13 @@ type TestCaseRun struct { // * ERORR: Test faced an error when running due to an internal issue. Status *string `locationName:"status" type:"string" enum:"Status"` - // Provides test case run definition ID. + // Provides the test case run definition ID. TestCaseDefinitionId *string `locationName:"testCaseDefinitionId" min:"12" type:"string"` - // Provides test case run definition Name. + // Provides the test case run definition name. TestCaseDefinitionName *string `locationName:"testCaseDefinitionName" type:"string"` - // Provides test case run ID. + // Provides the test case run ID. TestCaseRunId *string `locationName:"testCaseRunId" min:"12" type:"string"` // Provides test case run warnings. @@ -3680,12 +3685,12 @@ func (s *UpdateSuiteDefinitionOutput) SetSuiteDefinitionVersion(v string) *Updat return s } -// Sends invalid request exception. +// Sends a validation exception. type ValidationException struct { _ struct{} `type:"structure"` RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` - // Sends invalid request exception message. + // Sends a Validation Exception message. Message_ *string `locationName:"message" min:"1" type:"string"` } diff --git a/service/iotdeviceadvisor/errors.go b/service/iotdeviceadvisor/errors.go index fb30c9444b..af35414bd6 100644 --- a/service/iotdeviceadvisor/errors.go +++ b/service/iotdeviceadvisor/errors.go @@ -11,25 +11,25 @@ const ( // ErrCodeConflictException for service response error code // "ConflictException". // - // Sends Conflict Exception. + // Sends a Conflict Exception. ErrCodeConflictException = "ConflictException" // ErrCodeInternalServerException for service response error code // "InternalServerException". // - // Sends Internal Failure Exception. + // Sends an Internal Failure exception. ErrCodeInternalServerException = "InternalServerException" // ErrCodeResourceNotFoundException for service response error code // "ResourceNotFoundException". // - // Sends Resource Not Found Exception. + // Sends a Resource Not Found exception. ErrCodeResourceNotFoundException = "ResourceNotFoundException" // ErrCodeValidationException for service response error code // "ValidationException". // - // Sends invalid request exception. + // Sends a validation exception. ErrCodeValidationException = "ValidationException" ) diff --git a/service/mgn/api.go b/service/mgn/api.go index 5c4f738846..5e68243b80 100644 --- a/service/mgn/api.go +++ b/service/mgn/api.go @@ -450,6 +450,92 @@ func (c *Mgn) DeleteSourceServerWithContext(ctx aws.Context, input *DeleteSource return out, req.Send() } +const opDeleteVcenterClient = "DeleteVcenterClient" + +// DeleteVcenterClientRequest generates a "aws/request.Request" representing the +// client's request for the DeleteVcenterClient 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 DeleteVcenterClient for more information on using the DeleteVcenterClient +// 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 DeleteVcenterClientRequest method. +// req, resp := client.DeleteVcenterClientRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/mgn-2020-02-26/DeleteVcenterClient +func (c *Mgn) DeleteVcenterClientRequest(input *DeleteVcenterClientInput) (req *request.Request, output *DeleteVcenterClientOutput) { + op := &request.Operation{ + Name: opDeleteVcenterClient, + HTTPMethod: "POST", + HTTPPath: "/DeleteVcenterClient", + } + + if input == nil { + input = &DeleteVcenterClientInput{} + } + + output = &DeleteVcenterClientOutput{} + req = c.newRequest(op, input, output) + req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) + return +} + +// DeleteVcenterClient API operation for Application Migration Service. +// +// Deletes a single vCenter client by ID. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Application Migration Service's +// API operation DeleteVcenterClient for usage and error information. +// +// Returned Error Types: +// * UninitializedAccountException +// Unitialized account exception. +// +// * ResourceNotFoundException +// Resource not found exception. +// +// * ValidationException +// Validate exception. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/mgn-2020-02-26/DeleteVcenterClient +func (c *Mgn) DeleteVcenterClient(input *DeleteVcenterClientInput) (*DeleteVcenterClientOutput, error) { + req, out := c.DeleteVcenterClientRequest(input) + return out, req.Send() +} + +// DeleteVcenterClientWithContext is the same as DeleteVcenterClient with the addition of +// the ability to pass a context and additional request options. +// +// See DeleteVcenterClient 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 *Mgn) DeleteVcenterClientWithContext(ctx aws.Context, input *DeleteVcenterClientInput, opts ...request.Option) (*DeleteVcenterClientOutput, error) { + req, out := c.DeleteVcenterClientRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + const opDescribeJobLogItems = "DescribeJobLogItems" // DescribeJobLogItemsRequest generates a "aws/request.Request" representing the @@ -1018,6 +1104,149 @@ func (c *Mgn) DescribeSourceServersPagesWithContext(ctx aws.Context, input *Desc return p.Err() } +const opDescribeVcenterClients = "DescribeVcenterClients" + +// DescribeVcenterClientsRequest generates a "aws/request.Request" representing the +// client's request for the DescribeVcenterClients 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 DescribeVcenterClients for more information on using the DescribeVcenterClients +// 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 DescribeVcenterClientsRequest method. +// req, resp := client.DescribeVcenterClientsRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/mgn-2020-02-26/DescribeVcenterClients +func (c *Mgn) DescribeVcenterClientsRequest(input *DescribeVcenterClientsInput) (req *request.Request, output *DescribeVcenterClientsOutput) { + op := &request.Operation{ + Name: opDescribeVcenterClients, + HTTPMethod: "GET", + HTTPPath: "/DescribeVcenterClients", + Paginator: &request.Paginator{ + InputTokens: []string{"nextToken"}, + OutputTokens: []string{"nextToken"}, + LimitToken: "maxResults", + TruncationToken: "", + }, + } + + if input == nil { + input = &DescribeVcenterClientsInput{} + } + + output = &DescribeVcenterClientsOutput{} + req = c.newRequest(op, input, output) + return +} + +// DescribeVcenterClients API operation for Application Migration Service. +// +// Lists all vCenter clients. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Application Migration Service's +// API operation DescribeVcenterClients for usage and error information. +// +// Returned Error Types: +// * UninitializedAccountException +// Unitialized account exception. +// +// * ResourceNotFoundException +// Resource not found exception. +// +// * ValidationException +// Validate exception. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/mgn-2020-02-26/DescribeVcenterClients +func (c *Mgn) DescribeVcenterClients(input *DescribeVcenterClientsInput) (*DescribeVcenterClientsOutput, error) { + req, out := c.DescribeVcenterClientsRequest(input) + return out, req.Send() +} + +// DescribeVcenterClientsWithContext is the same as DescribeVcenterClients with the addition of +// the ability to pass a context and additional request options. +// +// See DescribeVcenterClients 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 *Mgn) DescribeVcenterClientsWithContext(ctx aws.Context, input *DescribeVcenterClientsInput, opts ...request.Option) (*DescribeVcenterClientsOutput, error) { + req, out := c.DescribeVcenterClientsRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +// DescribeVcenterClientsPages iterates over the pages of a DescribeVcenterClients operation, +// calling the "fn" function with the response data for each page. To stop +// iterating, return false from the fn function. +// +// See DescribeVcenterClients 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 DescribeVcenterClients operation. +// pageNum := 0 +// err := client.DescribeVcenterClientsPages(params, +// func(page *mgn.DescribeVcenterClientsOutput, lastPage bool) bool { +// pageNum++ +// fmt.Println(page) +// return pageNum <= 3 +// }) +// +func (c *Mgn) DescribeVcenterClientsPages(input *DescribeVcenterClientsInput, fn func(*DescribeVcenterClientsOutput, bool) bool) error { + return c.DescribeVcenterClientsPagesWithContext(aws.BackgroundContext(), input, fn) +} + +// DescribeVcenterClientsPagesWithContext same as DescribeVcenterClientsPages 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 *Mgn) DescribeVcenterClientsPagesWithContext(ctx aws.Context, input *DescribeVcenterClientsInput, fn func(*DescribeVcenterClientsOutput, bool) bool, opts ...request.Option) error { + p := request.Pagination{ + NewRequest: func() (*request.Request, error) { + var inCpy *DescribeVcenterClientsInput + if input != nil { + tmp := *input + inCpy = &tmp + } + req, _ := c.DescribeVcenterClientsRequest(inCpy) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return req, nil + }, + } + + for p.Next() { + if !fn(p.Page().(*DescribeVcenterClientsOutput), !p.HasNextPage()) { + break + } + } + + return p.Err() +} + const opDisconnectFromService = "DisconnectFromService" // DisconnectFromServiceRequest generates a "aws/request.Request" representing the @@ -1816,6 +2045,98 @@ func (c *Mgn) StartCutoverWithContext(ctx aws.Context, input *StartCutoverInput, return out, req.Send() } +const opStartReplication = "StartReplication" + +// StartReplicationRequest generates a "aws/request.Request" representing the +// client's request for the StartReplication 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 StartReplication for more information on using the StartReplication +// 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 StartReplicationRequest method. +// req, resp := client.StartReplicationRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/mgn-2020-02-26/StartReplication +func (c *Mgn) StartReplicationRequest(input *StartReplicationInput) (req *request.Request, output *StartReplicationOutput) { + op := &request.Operation{ + Name: opStartReplication, + HTTPMethod: "POST", + HTTPPath: "/StartReplication", + } + + if input == nil { + input = &StartReplicationInput{} + } + + output = &StartReplicationOutput{} + req = c.newRequest(op, input, output) + return +} + +// StartReplication API operation for Application Migration Service. +// +// Starts replication on source server by ID. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Application Migration Service's +// API operation StartReplication for usage and error information. +// +// Returned Error Types: +// * UninitializedAccountException +// Unitialized account exception. +// +// * ResourceNotFoundException +// Resource not found exception. +// +// * ValidationException +// Validate exception. +// +// * ServiceQuotaExceededException +// The request could not be completed because its exceeded the service quota. +// +// * ConflictException +// The request could not be completed due to a conflict with the current state +// of the target resource. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/mgn-2020-02-26/StartReplication +func (c *Mgn) StartReplication(input *StartReplicationInput) (*StartReplicationOutput, error) { + req, out := c.StartReplicationRequest(input) + return out, req.Send() +} + +// StartReplicationWithContext is the same as StartReplication with the addition of +// the ability to pass a context and additional request options. +// +// See StartReplication 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 *Mgn) StartReplicationWithContext(ctx aws.Context, input *StartReplicationInput, opts ...request.Option) (*StartReplicationOutput, error) { + req, out := c.StartReplicationRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + const opStartTest = "StartTest" // StartTestRequest generates a "aws/request.Request" representing the @@ -2452,6 +2773,95 @@ func (c *Mgn) UpdateReplicationConfigurationTemplateWithContext(ctx aws.Context, return out, req.Send() } +const opUpdateSourceServerReplicationType = "UpdateSourceServerReplicationType" + +// UpdateSourceServerReplicationTypeRequest generates a "aws/request.Request" representing the +// client's request for the UpdateSourceServerReplicationType 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 UpdateSourceServerReplicationType for more information on using the UpdateSourceServerReplicationType +// 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 UpdateSourceServerReplicationTypeRequest method. +// req, resp := client.UpdateSourceServerReplicationTypeRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/mgn-2020-02-26/UpdateSourceServerReplicationType +func (c *Mgn) UpdateSourceServerReplicationTypeRequest(input *UpdateSourceServerReplicationTypeInput) (req *request.Request, output *UpdateSourceServerReplicationTypeOutput) { + op := &request.Operation{ + Name: opUpdateSourceServerReplicationType, + HTTPMethod: "POST", + HTTPPath: "/UpdateSourceServerReplicationType", + } + + if input == nil { + input = &UpdateSourceServerReplicationTypeInput{} + } + + output = &UpdateSourceServerReplicationTypeOutput{} + req = c.newRequest(op, input, output) + return +} + +// UpdateSourceServerReplicationType API operation for Application Migration Service. +// +// Updates source server Replication Type by ID. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Application Migration Service's +// API operation UpdateSourceServerReplicationType for usage and error information. +// +// Returned Error Types: +// * UninitializedAccountException +// Unitialized account exception. +// +// * ResourceNotFoundException +// Resource not found exception. +// +// * ValidationException +// Validate exception. +// +// * ConflictException +// The request could not be completed due to a conflict with the current state +// of the target resource. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/mgn-2020-02-26/UpdateSourceServerReplicationType +func (c *Mgn) UpdateSourceServerReplicationType(input *UpdateSourceServerReplicationTypeInput) (*UpdateSourceServerReplicationTypeOutput, error) { + req, out := c.UpdateSourceServerReplicationTypeRequest(input) + return out, req.Send() +} + +// UpdateSourceServerReplicationTypeWithContext is the same as UpdateSourceServerReplicationType with the addition of +// the ability to pass a context and additional request options. +// +// See UpdateSourceServerReplicationType 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 *Mgn) UpdateSourceServerReplicationTypeWithContext(ctx aws.Context, input *UpdateSourceServerReplicationTypeInput, opts ...request.Option) (*UpdateSourceServerReplicationTypeOutput, error) { + req, out := c.UpdateSourceServerReplicationTypeRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + // Operating denied due to a file permission or access check error. type AccessDeniedException struct { _ struct{} `type:"structure"` @@ -2646,6 +3056,9 @@ type ChangeServerLifeCycleStateOutput struct { // Source server lifecycle state. LifeCycle *LifeCycle `locationName:"lifeCycle" type:"structure"` + // Source server replication type. + ReplicationType *string `locationName:"replicationType" type:"string" enum:"ReplicationType"` + // Source server properties. SourceProperties *SourceProperties `locationName:"sourceProperties" type:"structure"` @@ -2658,6 +3071,9 @@ type ChangeServerLifeCycleStateOutput struct { // replaced with "sensitive" in string returned by ChangeServerLifeCycleStateOutput's // String and GoString methods. Tags map[string]*string `locationName:"tags" type:"map" sensitive:"true"` + + // Source server vCenter client id. + VcenterClientID *string `locationName:"vcenterClientID" min:"21" type:"string"` } // String returns the string representation. @@ -2708,6 +3124,12 @@ func (s *ChangeServerLifeCycleStateOutput) SetLifeCycle(v *LifeCycle) *ChangeSer return s } +// SetReplicationType sets the ReplicationType field's value. +func (s *ChangeServerLifeCycleStateOutput) SetReplicationType(v string) *ChangeServerLifeCycleStateOutput { + s.ReplicationType = &v + return s +} + // SetSourceProperties sets the SourceProperties field's value. func (s *ChangeServerLifeCycleStateOutput) SetSourceProperties(v *SourceProperties) *ChangeServerLifeCycleStateOutput { s.SourceProperties = v @@ -2726,6 +3148,12 @@ func (s *ChangeServerLifeCycleStateOutput) SetTags(v map[string]*string) *Change return s } +// SetVcenterClientID sets the VcenterClientID field's value. +func (s *ChangeServerLifeCycleStateOutput) SetVcenterClientID(v string) *ChangeServerLifeCycleStateOutput { + s.VcenterClientID = &v + return s +} + // The request to change the source server migration lifecycle state. type ChangeServerLifeCycleStateSourceServerLifecycle struct { _ struct{} `type:"structure"` @@ -3299,6 +3727,9 @@ type DataReplicationInfo struct { // Request to query data replication lag durating. LagDuration *string `locationName:"lagDuration" min:"19" type:"string"` + // Request to query data replication last snapshot time. + LastSnapshotDateTime *string `locationName:"lastSnapshotDateTime" min:"19" type:"string"` + // Request to query disks replicated. ReplicatedDisks []*DataReplicationInfoReplicatedDisk `locationName:"replicatedDisks" type:"list"` } @@ -3351,6 +3782,12 @@ func (s *DataReplicationInfo) SetLagDuration(v string) *DataReplicationInfo { return s } +// SetLastSnapshotDateTime sets the LastSnapshotDateTime field's value. +func (s *DataReplicationInfo) SetLastSnapshotDateTime(v string) *DataReplicationInfo { + s.LastSnapshotDateTime = &v + return s +} + // SetReplicatedDisks sets the ReplicatedDisks field's value. func (s *DataReplicationInfo) SetReplicatedDisks(v []*DataReplicationInfoReplicatedDisk) *DataReplicationInfo { s.ReplicatedDisks = v @@ -3730,6 +4167,77 @@ func (s DeleteSourceServerOutput) GoString() string { return s.String() } +type DeleteVcenterClientInput struct { + _ struct{} `type:"structure"` + + // ID of resource to be deleted. + // + // VcenterClientID is a required field + VcenterClientID *string `locationName:"vcenterClientID" min:"21" 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 DeleteVcenterClientInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s DeleteVcenterClientInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DeleteVcenterClientInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DeleteVcenterClientInput"} + if s.VcenterClientID == nil { + invalidParams.Add(request.NewErrParamRequired("VcenterClientID")) + } + if s.VcenterClientID != nil && len(*s.VcenterClientID) < 21 { + invalidParams.Add(request.NewErrParamMinLen("VcenterClientID", 21)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetVcenterClientID sets the VcenterClientID field's value. +func (s *DeleteVcenterClientInput) SetVcenterClientID(v string) *DeleteVcenterClientInput { + s.VcenterClientID = &v + return s +} + +type DeleteVcenterClientOutput 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 DeleteVcenterClientOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s DeleteVcenterClientOutput) GoString() string { + return s.String() +} + type DescribeJobLogItemsInput struct { _ struct{} `type:"structure"` @@ -4239,6 +4747,12 @@ type DescribeSourceServersRequestFilters struct { // Request to filter Source Servers list by archived. IsArchived *bool `locationName:"isArchived" type:"boolean"` + // Request to filter Source Servers list by life cycle states. + LifeCycleStates []*string `locationName:"lifeCycleStates" type:"list"` + + // Request to filter Source Servers list by replication type. + ReplicationTypes []*string `locationName:"replicationTypes" type:"list"` + // Request to filter Source Servers list by Source Server ID. SourceServerIDs []*string `locationName:"sourceServerIDs" type:"list"` } @@ -4267,12 +4781,117 @@ func (s *DescribeSourceServersRequestFilters) SetIsArchived(v bool) *DescribeSou return s } +// SetLifeCycleStates sets the LifeCycleStates field's value. +func (s *DescribeSourceServersRequestFilters) SetLifeCycleStates(v []*string) *DescribeSourceServersRequestFilters { + s.LifeCycleStates = v + return s +} + +// SetReplicationTypes sets the ReplicationTypes field's value. +func (s *DescribeSourceServersRequestFilters) SetReplicationTypes(v []*string) *DescribeSourceServersRequestFilters { + s.ReplicationTypes = v + return s +} + // SetSourceServerIDs sets the SourceServerIDs field's value. func (s *DescribeSourceServersRequestFilters) SetSourceServerIDs(v []*string) *DescribeSourceServersRequestFilters { s.SourceServerIDs = v return s } +type DescribeVcenterClientsInput struct { + _ struct{} `type:"structure" nopayload:"true"` + + // Maximum results to be returned in DescribeVcenterClients. + MaxResults *int64 `location:"querystring" locationName:"maxResults" min:"1" type:"integer"` + + // Next pagination token to be provided for DescribeVcenterClients. + NextToken *string `location:"querystring" locationName:"nextToken" type:"string"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s DescribeVcenterClientsInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s DescribeVcenterClientsInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DescribeVcenterClientsInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DescribeVcenterClientsInput"} + 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 *DescribeVcenterClientsInput) SetMaxResults(v int64) *DescribeVcenterClientsInput { + s.MaxResults = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *DescribeVcenterClientsInput) SetNextToken(v string) *DescribeVcenterClientsInput { + s.NextToken = &v + return s +} + +type DescribeVcenterClientsOutput struct { + _ struct{} `type:"structure"` + + // List of items returned by DescribeVcenterClients. + Items []*VcenterClient `locationName:"items" type:"list"` + + // Next pagination token returned from DescribeVcenterClients. + NextToken *string `locationName:"nextToken" type:"string"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s DescribeVcenterClientsOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s DescribeVcenterClientsOutput) GoString() string { + return s.String() +} + +// SetItems sets the Items field's value. +func (s *DescribeVcenterClientsOutput) SetItems(v []*VcenterClient) *DescribeVcenterClientsOutput { + s.Items = v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *DescribeVcenterClientsOutput) SetNextToken(v string) *DescribeVcenterClientsOutput { + s.NextToken = &v + return s +} + type DisconnectFromServiceInput struct { _ struct{} `type:"structure"` @@ -4340,6 +4959,9 @@ type DisconnectFromServiceOutput struct { // Source server lifecycle state. LifeCycle *LifeCycle `locationName:"lifeCycle" type:"structure"` + // Source server replication type. + ReplicationType *string `locationName:"replicationType" type:"string" enum:"ReplicationType"` + // Source server properties. SourceProperties *SourceProperties `locationName:"sourceProperties" type:"structure"` @@ -4352,6 +4974,9 @@ type DisconnectFromServiceOutput struct { // replaced with "sensitive" in string returned by DisconnectFromServiceOutput's // String and GoString methods. Tags map[string]*string `locationName:"tags" type:"map" sensitive:"true"` + + // Source server vCenter client id. + VcenterClientID *string `locationName:"vcenterClientID" min:"21" type:"string"` } // String returns the string representation. @@ -4402,6 +5027,12 @@ func (s *DisconnectFromServiceOutput) SetLifeCycle(v *LifeCycle) *DisconnectFrom return s } +// SetReplicationType sets the ReplicationType field's value. +func (s *DisconnectFromServiceOutput) SetReplicationType(v string) *DisconnectFromServiceOutput { + s.ReplicationType = &v + return s +} + // SetSourceProperties sets the SourceProperties field's value. func (s *DisconnectFromServiceOutput) SetSourceProperties(v *SourceProperties) *DisconnectFromServiceOutput { s.SourceProperties = v @@ -4420,6 +5051,12 @@ func (s *DisconnectFromServiceOutput) SetTags(v map[string]*string) *DisconnectF return s } +// SetVcenterClientID sets the VcenterClientID field's value. +func (s *DisconnectFromServiceOutput) SetVcenterClientID(v string) *DisconnectFromServiceOutput { + s.VcenterClientID = &v + return s +} + // The disk identifier. type Disk struct { _ struct{} `type:"structure"` @@ -4528,6 +5165,9 @@ type FinalizeCutoverOutput struct { // Source server lifecycle state. LifeCycle *LifeCycle `locationName:"lifeCycle" type:"structure"` + // Source server replication type. + ReplicationType *string `locationName:"replicationType" type:"string" enum:"ReplicationType"` + // Source server properties. SourceProperties *SourceProperties `locationName:"sourceProperties" type:"structure"` @@ -4540,6 +5180,9 @@ type FinalizeCutoverOutput struct { // replaced with "sensitive" in string returned by FinalizeCutoverOutput's // String and GoString methods. Tags map[string]*string `locationName:"tags" type:"map" sensitive:"true"` + + // Source server vCenter client id. + VcenterClientID *string `locationName:"vcenterClientID" min:"21" type:"string"` } // String returns the string representation. @@ -4590,6 +5233,12 @@ func (s *FinalizeCutoverOutput) SetLifeCycle(v *LifeCycle) *FinalizeCutoverOutpu return s } +// SetReplicationType sets the ReplicationType field's value. +func (s *FinalizeCutoverOutput) SetReplicationType(v string) *FinalizeCutoverOutput { + s.ReplicationType = &v + return s +} + // SetSourceProperties sets the SourceProperties field's value. func (s *FinalizeCutoverOutput) SetSourceProperties(v *SourceProperties) *FinalizeCutoverOutput { s.SourceProperties = v @@ -4608,6 +5257,12 @@ func (s *FinalizeCutoverOutput) SetTags(v map[string]*string) *FinalizeCutoverOu return s } +// SetVcenterClientID sets the VcenterClientID field's value. +func (s *FinalizeCutoverOutput) SetVcenterClientID(v string) *FinalizeCutoverOutput { + s.VcenterClientID = &v + return s +} + type GetLaunchConfigurationInput struct { _ struct{} `type:"structure"` @@ -4975,6 +5630,9 @@ type IdentificationHints struct { // Hostname identification hint. Hostname *string `locationName:"hostname" type:"string"` + // vCenter VM path identification hint. + VmPath *string `locationName:"vmPath" type:"string"` + // vmWare UUID identification hint. VmWareUuid *string `locationName:"vmWareUuid" type:"string"` } @@ -5015,6 +5673,12 @@ func (s *IdentificationHints) SetHostname(v string) *IdentificationHints { return s } +// SetVmPath sets the VmPath field's value. +func (s *IdentificationHints) SetVmPath(v string) *IdentificationHints { + s.VmPath = &v + return s +} + // SetVmWareUuid sets the VmWareUuid field's value. func (s *IdentificationHints) SetVmWareUuid(v string) *IdentificationHints { s.VmWareUuid = &v @@ -5981,6 +6645,9 @@ type MarkAsArchivedOutput struct { // Source server lifecycle state. LifeCycle *LifeCycle `locationName:"lifeCycle" type:"structure"` + // Source server replication type. + ReplicationType *string `locationName:"replicationType" type:"string" enum:"ReplicationType"` + // Source server properties. SourceProperties *SourceProperties `locationName:"sourceProperties" type:"structure"` @@ -5993,6 +6660,9 @@ type MarkAsArchivedOutput struct { // replaced with "sensitive" in string returned by MarkAsArchivedOutput's // String and GoString methods. Tags map[string]*string `locationName:"tags" type:"map" sensitive:"true"` + + // Source server vCenter client id. + VcenterClientID *string `locationName:"vcenterClientID" min:"21" type:"string"` } // String returns the string representation. @@ -6043,6 +6713,12 @@ func (s *MarkAsArchivedOutput) SetLifeCycle(v *LifeCycle) *MarkAsArchivedOutput return s } +// SetReplicationType sets the ReplicationType field's value. +func (s *MarkAsArchivedOutput) SetReplicationType(v string) *MarkAsArchivedOutput { + s.ReplicationType = &v + return s +} + // SetSourceProperties sets the SourceProperties field's value. func (s *MarkAsArchivedOutput) SetSourceProperties(v *SourceProperties) *MarkAsArchivedOutput { s.SourceProperties = v @@ -6061,6 +6737,12 @@ func (s *MarkAsArchivedOutput) SetTags(v map[string]*string) *MarkAsArchivedOutp return s } +// SetVcenterClientID sets the VcenterClientID field's value. +func (s *MarkAsArchivedOutput) SetVcenterClientID(v string) *MarkAsArchivedOutput { + s.VcenterClientID = &v + return s +} + // Network interface. type NetworkInterface struct { _ struct{} `type:"structure"` @@ -6550,6 +7232,9 @@ type RetryDataReplicationOutput struct { // Source server lifecycle state. LifeCycle *LifeCycle `locationName:"lifeCycle" type:"structure"` + // Source server replication type. + ReplicationType *string `locationName:"replicationType" type:"string" enum:"ReplicationType"` + // Source server properties. SourceProperties *SourceProperties `locationName:"sourceProperties" type:"structure"` @@ -6562,6 +7247,9 @@ type RetryDataReplicationOutput struct { // replaced with "sensitive" in string returned by RetryDataReplicationOutput's // String and GoString methods. Tags map[string]*string `locationName:"tags" type:"map" sensitive:"true"` + + // Source server vCenter client id. + VcenterClientID *string `locationName:"vcenterClientID" min:"21" type:"string"` } // String returns the string representation. @@ -6612,6 +7300,12 @@ func (s *RetryDataReplicationOutput) SetLifeCycle(v *LifeCycle) *RetryDataReplic return s } +// SetReplicationType sets the ReplicationType field's value. +func (s *RetryDataReplicationOutput) SetReplicationType(v string) *RetryDataReplicationOutput { + s.ReplicationType = &v + return s +} + // SetSourceProperties sets the SourceProperties field's value. func (s *RetryDataReplicationOutput) SetSourceProperties(v *SourceProperties) *RetryDataReplicationOutput { s.SourceProperties = v @@ -6630,6 +7324,90 @@ func (s *RetryDataReplicationOutput) SetTags(v map[string]*string) *RetryDataRep return s } +// SetVcenterClientID sets the VcenterClientID field's value. +func (s *RetryDataReplicationOutput) SetVcenterClientID(v string) *RetryDataReplicationOutput { + s.VcenterClientID = &v + return s +} + +// The request could not be completed because its exceeded the service quota. +type ServiceQuotaExceededException struct { + _ struct{} `type:"structure"` + RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` + + Code_ *string `locationName:"code" type:"string"` + + Message_ *string `locationName:"message" type:"string"` + + // Exceeded the service quota code. + QuotaCode *string `locationName:"quotaCode" type:"string"` + + // Exceeded the service quota resource Id. + ResourceId *string `locationName:"resourceId" type:"string"` + + // Exceeded the service quota resource type. + ResourceType *string `locationName:"resourceType" type:"string"` + + // Exceeded the service quota service code. + ServiceCode *string `locationName:"serviceCode" type:"string"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s ServiceQuotaExceededException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s ServiceQuotaExceededException) GoString() string { + return s.String() +} + +func newErrorServiceQuotaExceededException(v protocol.ResponseMetadata) error { + return &ServiceQuotaExceededException{ + RespMetadata: v, + } +} + +// Code returns the exception type name. +func (s *ServiceQuotaExceededException) Code() string { + return "ServiceQuotaExceededException" +} + +// Message returns the exception's message. +func (s *ServiceQuotaExceededException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s *ServiceQuotaExceededException) OrigErr() error { + return nil +} + +func (s *ServiceQuotaExceededException) Error() string { + return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s *ServiceQuotaExceededException) StatusCode() int { + return s.RespMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s *ServiceQuotaExceededException) RequestID() string { + return s.RespMetadata.RequestID +} + // Source server properties. type SourceProperties struct { _ struct{} `type:"structure"` @@ -6743,6 +7521,9 @@ type SourceServer struct { // Source server lifecycle state. LifeCycle *LifeCycle `locationName:"lifeCycle" type:"structure"` + // Source server replication type. + ReplicationType *string `locationName:"replicationType" type:"string" enum:"ReplicationType"` + // Source server properties. SourceProperties *SourceProperties `locationName:"sourceProperties" type:"structure"` @@ -6755,6 +7536,9 @@ type SourceServer struct { // replaced with "sensitive" in string returned by SourceServer's // String and GoString methods. Tags map[string]*string `locationName:"tags" type:"map" sensitive:"true"` + + // Source server vCenter client id. + VcenterClientID *string `locationName:"vcenterClientID" min:"21" type:"string"` } // String returns the string representation. @@ -6805,6 +7589,12 @@ func (s *SourceServer) SetLifeCycle(v *LifeCycle) *SourceServer { return s } +// SetReplicationType sets the ReplicationType field's value. +func (s *SourceServer) SetReplicationType(v string) *SourceServer { + s.ReplicationType = &v + return s +} + // SetSourceProperties sets the SourceProperties field's value. func (s *SourceServer) SetSourceProperties(v *SourceProperties) *SourceServer { s.SourceProperties = v @@ -6823,6 +7613,12 @@ func (s *SourceServer) SetTags(v map[string]*string) *SourceServer { return s } +// SetVcenterClientID sets the VcenterClientID field's value. +func (s *SourceServer) SetVcenterClientID(v string) *SourceServer { + s.VcenterClientID = &v + return s +} + type StartCutoverInput struct { _ struct{} `type:"structure"` @@ -6879,40 +7675,205 @@ func (s *StartCutoverInput) SetSourceServerIDs(v []*string) *StartCutoverInput { return s } -// SetTags sets the Tags field's value. -func (s *StartCutoverInput) SetTags(v map[string]*string) *StartCutoverInput { - s.Tags = v +// SetTags sets the Tags field's value. +func (s *StartCutoverInput) SetTags(v map[string]*string) *StartCutoverInput { + s.Tags = v + return s +} + +type StartCutoverOutput struct { + _ struct{} `type:"structure"` + + // Start Cutover Job response. + Job *Job `locationName:"job" 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 StartCutoverOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s StartCutoverOutput) GoString() string { + return s.String() +} + +// SetJob sets the Job field's value. +func (s *StartCutoverOutput) SetJob(v *Job) *StartCutoverOutput { + s.Job = v + return s +} + +type StartReplicationInput struct { + _ struct{} `type:"structure"` + + // ID of source server on which to start replication. + // + // SourceServerID is a required field + SourceServerID *string `locationName:"sourceServerID" min:"19" 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 StartReplicationInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s StartReplicationInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *StartReplicationInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "StartReplicationInput"} + if s.SourceServerID == nil { + invalidParams.Add(request.NewErrParamRequired("SourceServerID")) + } + if s.SourceServerID != nil && len(*s.SourceServerID) < 19 { + invalidParams.Add(request.NewErrParamMinLen("SourceServerID", 19)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetSourceServerID sets the SourceServerID field's value. +func (s *StartReplicationInput) SetSourceServerID(v string) *StartReplicationInput { + s.SourceServerID = &v + return s +} + +type StartReplicationOutput struct { + _ struct{} `type:"structure"` + + // Source server ARN. + Arn *string `locationName:"arn" min:"20" type:"string"` + + // Source server data replication info. + DataReplicationInfo *DataReplicationInfo `locationName:"dataReplicationInfo" type:"structure"` + + // Source server archived status. + IsArchived *bool `locationName:"isArchived" type:"boolean"` + + // Source server launched instance. + LaunchedInstance *LaunchedInstance `locationName:"launchedInstance" type:"structure"` + + // Source server lifecycle state. + LifeCycle *LifeCycle `locationName:"lifeCycle" type:"structure"` + + // Source server replication type. + ReplicationType *string `locationName:"replicationType" type:"string" enum:"ReplicationType"` + + // Source server properties. + SourceProperties *SourceProperties `locationName:"sourceProperties" type:"structure"` + + // Source server ID. + SourceServerID *string `locationName:"sourceServerID" min:"19" type:"string"` + + // Source server Tags. + // + // Tags is a sensitive parameter and its value will be + // replaced with "sensitive" in string returned by StartReplicationOutput's + // String and GoString methods. + Tags map[string]*string `locationName:"tags" type:"map" sensitive:"true"` + + // Source server vCenter client id. + VcenterClientID *string `locationName:"vcenterClientID" min:"21" 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 StartReplicationOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s StartReplicationOutput) GoString() string { + return s.String() +} + +// SetArn sets the Arn field's value. +func (s *StartReplicationOutput) SetArn(v string) *StartReplicationOutput { + s.Arn = &v + return s +} + +// SetDataReplicationInfo sets the DataReplicationInfo field's value. +func (s *StartReplicationOutput) SetDataReplicationInfo(v *DataReplicationInfo) *StartReplicationOutput { + s.DataReplicationInfo = v + return s +} + +// SetIsArchived sets the IsArchived field's value. +func (s *StartReplicationOutput) SetIsArchived(v bool) *StartReplicationOutput { + s.IsArchived = &v + return s +} + +// SetLaunchedInstance sets the LaunchedInstance field's value. +func (s *StartReplicationOutput) SetLaunchedInstance(v *LaunchedInstance) *StartReplicationOutput { + s.LaunchedInstance = v + return s +} + +// SetLifeCycle sets the LifeCycle field's value. +func (s *StartReplicationOutput) SetLifeCycle(v *LifeCycle) *StartReplicationOutput { + s.LifeCycle = v + return s +} + +// SetReplicationType sets the ReplicationType field's value. +func (s *StartReplicationOutput) SetReplicationType(v string) *StartReplicationOutput { + s.ReplicationType = &v return s } -type StartCutoverOutput struct { - _ struct{} `type:"structure"` - - // Start Cutover Job response. - Job *Job `locationName:"job" type:"structure"` +// SetSourceProperties sets the SourceProperties field's value. +func (s *StartReplicationOutput) SetSourceProperties(v *SourceProperties) *StartReplicationOutput { + s.SourceProperties = 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 StartCutoverOutput) String() string { - return awsutil.Prettify(s) +// SetSourceServerID sets the SourceServerID field's value. +func (s *StartReplicationOutput) SetSourceServerID(v string) *StartReplicationOutput { + s.SourceServerID = &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 StartCutoverOutput) GoString() string { - return s.String() +// SetTags sets the Tags field's value. +func (s *StartReplicationOutput) SetTags(v map[string]*string) *StartReplicationOutput { + s.Tags = v + return s } -// SetJob sets the Job field's value. -func (s *StartCutoverOutput) SetJob(v *Job) *StartCutoverOutput { - s.Job = v +// SetVcenterClientID sets the VcenterClientID field's value. +func (s *StartReplicationOutput) SetVcenterClientID(v string) *StartReplicationOutput { + s.VcenterClientID = &v return s } @@ -8310,6 +9271,185 @@ func (s *UpdateReplicationConfigurationTemplateOutput) SetUseDedicatedReplicatio return s } +type UpdateSourceServerReplicationTypeInput struct { + _ struct{} `type:"structure"` + + // Replication type to which to update source server. + // + // ReplicationType is a required field + ReplicationType *string `locationName:"replicationType" type:"string" required:"true" enum:"ReplicationType"` + + // ID of source server on which to update replication type. + // + // SourceServerID is a required field + SourceServerID *string `locationName:"sourceServerID" min:"19" 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 UpdateSourceServerReplicationTypeInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s UpdateSourceServerReplicationTypeInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *UpdateSourceServerReplicationTypeInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "UpdateSourceServerReplicationTypeInput"} + if s.ReplicationType == nil { + invalidParams.Add(request.NewErrParamRequired("ReplicationType")) + } + if s.SourceServerID == nil { + invalidParams.Add(request.NewErrParamRequired("SourceServerID")) + } + if s.SourceServerID != nil && len(*s.SourceServerID) < 19 { + invalidParams.Add(request.NewErrParamMinLen("SourceServerID", 19)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetReplicationType sets the ReplicationType field's value. +func (s *UpdateSourceServerReplicationTypeInput) SetReplicationType(v string) *UpdateSourceServerReplicationTypeInput { + s.ReplicationType = &v + return s +} + +// SetSourceServerID sets the SourceServerID field's value. +func (s *UpdateSourceServerReplicationTypeInput) SetSourceServerID(v string) *UpdateSourceServerReplicationTypeInput { + s.SourceServerID = &v + return s +} + +type UpdateSourceServerReplicationTypeOutput struct { + _ struct{} `type:"structure"` + + // Source server ARN. + Arn *string `locationName:"arn" min:"20" type:"string"` + + // Source server data replication info. + DataReplicationInfo *DataReplicationInfo `locationName:"dataReplicationInfo" type:"structure"` + + // Source server archived status. + IsArchived *bool `locationName:"isArchived" type:"boolean"` + + // Source server launched instance. + LaunchedInstance *LaunchedInstance `locationName:"launchedInstance" type:"structure"` + + // Source server lifecycle state. + LifeCycle *LifeCycle `locationName:"lifeCycle" type:"structure"` + + // Source server replication type. + ReplicationType *string `locationName:"replicationType" type:"string" enum:"ReplicationType"` + + // Source server properties. + SourceProperties *SourceProperties `locationName:"sourceProperties" type:"structure"` + + // Source server ID. + SourceServerID *string `locationName:"sourceServerID" min:"19" type:"string"` + + // Source server Tags. + // + // Tags is a sensitive parameter and its value will be + // replaced with "sensitive" in string returned by UpdateSourceServerReplicationTypeOutput's + // String and GoString methods. + Tags map[string]*string `locationName:"tags" type:"map" sensitive:"true"` + + // Source server vCenter client id. + VcenterClientID *string `locationName:"vcenterClientID" min:"21" 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 UpdateSourceServerReplicationTypeOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s UpdateSourceServerReplicationTypeOutput) GoString() string { + return s.String() +} + +// SetArn sets the Arn field's value. +func (s *UpdateSourceServerReplicationTypeOutput) SetArn(v string) *UpdateSourceServerReplicationTypeOutput { + s.Arn = &v + return s +} + +// SetDataReplicationInfo sets the DataReplicationInfo field's value. +func (s *UpdateSourceServerReplicationTypeOutput) SetDataReplicationInfo(v *DataReplicationInfo) *UpdateSourceServerReplicationTypeOutput { + s.DataReplicationInfo = v + return s +} + +// SetIsArchived sets the IsArchived field's value. +func (s *UpdateSourceServerReplicationTypeOutput) SetIsArchived(v bool) *UpdateSourceServerReplicationTypeOutput { + s.IsArchived = &v + return s +} + +// SetLaunchedInstance sets the LaunchedInstance field's value. +func (s *UpdateSourceServerReplicationTypeOutput) SetLaunchedInstance(v *LaunchedInstance) *UpdateSourceServerReplicationTypeOutput { + s.LaunchedInstance = v + return s +} + +// SetLifeCycle sets the LifeCycle field's value. +func (s *UpdateSourceServerReplicationTypeOutput) SetLifeCycle(v *LifeCycle) *UpdateSourceServerReplicationTypeOutput { + s.LifeCycle = v + return s +} + +// SetReplicationType sets the ReplicationType field's value. +func (s *UpdateSourceServerReplicationTypeOutput) SetReplicationType(v string) *UpdateSourceServerReplicationTypeOutput { + s.ReplicationType = &v + return s +} + +// SetSourceProperties sets the SourceProperties field's value. +func (s *UpdateSourceServerReplicationTypeOutput) SetSourceProperties(v *SourceProperties) *UpdateSourceServerReplicationTypeOutput { + s.SourceProperties = v + return s +} + +// SetSourceServerID sets the SourceServerID field's value. +func (s *UpdateSourceServerReplicationTypeOutput) SetSourceServerID(v string) *UpdateSourceServerReplicationTypeOutput { + s.SourceServerID = &v + return s +} + +// SetTags sets the Tags field's value. +func (s *UpdateSourceServerReplicationTypeOutput) SetTags(v map[string]*string) *UpdateSourceServerReplicationTypeOutput { + s.Tags = v + return s +} + +// SetVcenterClientID sets the VcenterClientID field's value. +func (s *UpdateSourceServerReplicationTypeOutput) SetVcenterClientID(v string) *UpdateSourceServerReplicationTypeOutput { + s.VcenterClientID = &v + return s +} + // Validate exception. type ValidationException struct { _ struct{} `type:"structure"` @@ -8423,6 +9563,109 @@ func (s *ValidationExceptionField) SetName(v string) *ValidationExceptionField { return s } +// vCenter client. +type VcenterClient struct { + _ struct{} `type:"structure"` + + // Arn of vCenter client. + Arn *string `locationName:"arn" min:"20" type:"string"` + + // Datacenter name of vCenter client. + DatacenterName *string `locationName:"datacenterName" type:"string"` + + // Hostname of vCenter client . + Hostname *string `locationName:"hostname" type:"string"` + + // Last seen time of vCenter client. + LastSeenDatetime *string `locationName:"lastSeenDatetime" min:"19" type:"string"` + + // Tags for Source Server of vCenter client. + // + // SourceServerTags is a sensitive parameter and its value will be + // replaced with "sensitive" in string returned by VcenterClient's + // String and GoString methods. + SourceServerTags map[string]*string `locationName:"sourceServerTags" type:"map" sensitive:"true"` + + // Tags for vCenter client. + // + // Tags is a sensitive parameter and its value will be + // replaced with "sensitive" in string returned by VcenterClient's + // String and GoString methods. + Tags map[string]*string `locationName:"tags" type:"map" sensitive:"true"` + + // ID of vCenter client. + VcenterClientID *string `locationName:"vcenterClientID" min:"21" type:"string"` + + // Vcenter UUID of vCenter client. + VcenterUUID *string `locationName:"vcenterUUID" 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 VcenterClient) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s VcenterClient) GoString() string { + return s.String() +} + +// SetArn sets the Arn field's value. +func (s *VcenterClient) SetArn(v string) *VcenterClient { + s.Arn = &v + return s +} + +// SetDatacenterName sets the DatacenterName field's value. +func (s *VcenterClient) SetDatacenterName(v string) *VcenterClient { + s.DatacenterName = &v + return s +} + +// SetHostname sets the Hostname field's value. +func (s *VcenterClient) SetHostname(v string) *VcenterClient { + s.Hostname = &v + return s +} + +// SetLastSeenDatetime sets the LastSeenDatetime field's value. +func (s *VcenterClient) SetLastSeenDatetime(v string) *VcenterClient { + s.LastSeenDatetime = &v + return s +} + +// SetSourceServerTags sets the SourceServerTags field's value. +func (s *VcenterClient) SetSourceServerTags(v map[string]*string) *VcenterClient { + s.SourceServerTags = v + return s +} + +// SetTags sets the Tags field's value. +func (s *VcenterClient) SetTags(v map[string]*string) *VcenterClient { + s.Tags = v + return s +} + +// SetVcenterClientID sets the VcenterClientID field's value. +func (s *VcenterClient) SetVcenterClientID(v string) *VcenterClient { + s.VcenterClientID = &v + return s +} + +// SetVcenterUUID sets the VcenterUUID field's value. +func (s *VcenterClient) SetVcenterUUID(v string) *VcenterClient { + s.VcenterUUID = &v + return s +} + const ( // ChangeServerLifeCycleStateSourceServerLifecycleStateReadyForTest is a ChangeServerLifeCycleStateSourceServerLifecycleState enum value ChangeServerLifeCycleStateSourceServerLifecycleStateReadyForTest = "READY_FOR_TEST" @@ -8485,6 +9728,12 @@ const ( // DataReplicationErrorStringFailedToStartDataTransfer is a DataReplicationErrorString enum value DataReplicationErrorStringFailedToStartDataTransfer = "FAILED_TO_START_DATA_TRANSFER" + + // DataReplicationErrorStringUnsupportedVmConfiguration is a DataReplicationErrorString enum value + DataReplicationErrorStringUnsupportedVmConfiguration = "UNSUPPORTED_VM_CONFIGURATION" + + // DataReplicationErrorStringLastSnapshotJobFailed is a DataReplicationErrorString enum value + DataReplicationErrorStringLastSnapshotJobFailed = "LAST_SNAPSHOT_JOB_FAILED" ) // DataReplicationErrorString_Values returns all elements of the DataReplicationErrorString enum @@ -8504,6 +9753,8 @@ func DataReplicationErrorString_Values() []string { DataReplicationErrorStringFailedToPairReplicationServerWithAgent, DataReplicationErrorStringFailedToConnectAgentToReplicationServer, DataReplicationErrorStringFailedToStartDataTransfer, + DataReplicationErrorStringUnsupportedVmConfiguration, + DataReplicationErrorStringLastSnapshotJobFailed, } } @@ -8617,6 +9868,12 @@ const ( // DataReplicationStateDisconnected is a DataReplicationState enum value DataReplicationStateDisconnected = "DISCONNECTED" + + // DataReplicationStatePendingSnapshotShipping is a DataReplicationState enum value + DataReplicationStatePendingSnapshotShipping = "PENDING_SNAPSHOT_SHIPPING" + + // DataReplicationStateShippingSnapshot is a DataReplicationState enum value + DataReplicationStateShippingSnapshot = "SHIPPING_SNAPSHOT" ) // DataReplicationState_Values returns all elements of the DataReplicationState enum @@ -8632,6 +9889,8 @@ func DataReplicationState_Values() []string { DataReplicationStateRescan, DataReplicationStateStalled, DataReplicationStateDisconnected, + DataReplicationStatePendingSnapshotShipping, + DataReplicationStateShippingSnapshot, } } @@ -8859,6 +10118,9 @@ const ( // LifeCycleStateDisconnected is a LifeCycleState enum value LifeCycleStateDisconnected = "DISCONNECTED" + + // LifeCycleStateDiscovered is a LifeCycleState enum value + LifeCycleStateDiscovered = "DISCOVERED" ) // LifeCycleState_Values returns all elements of the LifeCycleState enum @@ -8872,6 +10134,7 @@ func LifeCycleState_Values() []string { LifeCycleStateCuttingOver, LifeCycleStateCutover, LifeCycleStateDisconnected, + LifeCycleStateDiscovered, } } @@ -8955,6 +10218,22 @@ func ReplicationConfigurationReplicatedDiskStagingDiskType_Values() []string { } } +const ( + // ReplicationTypeAgentBased is a ReplicationType enum value + ReplicationTypeAgentBased = "AGENT_BASED" + + // ReplicationTypeSnapshotShipping is a ReplicationType enum value + ReplicationTypeSnapshotShipping = "SNAPSHOT_SHIPPING" +) + +// ReplicationType_Values returns all elements of the ReplicationType enum +func ReplicationType_Values() []string { + return []string{ + ReplicationTypeAgentBased, + ReplicationTypeSnapshotShipping, + } +} + const ( // TargetInstanceTypeRightSizingMethodNone is a TargetInstanceTypeRightSizingMethod enum value TargetInstanceTypeRightSizingMethodNone = "NONE" diff --git a/service/mgn/errors.go b/service/mgn/errors.go index 5dfcd65cbf..95ebe05718 100644 --- a/service/mgn/errors.go +++ b/service/mgn/errors.go @@ -34,6 +34,12 @@ const ( // Resource not found exception. ErrCodeResourceNotFoundException = "ResourceNotFoundException" + // ErrCodeServiceQuotaExceededException for service response error code + // "ServiceQuotaExceededException". + // + // The request could not be completed because its exceeded the service quota. + ErrCodeServiceQuotaExceededException = "ServiceQuotaExceededException" + // ErrCodeThrottlingException for service response error code // "ThrottlingException". // @@ -58,6 +64,7 @@ var exceptionFromCode = map[string]func(protocol.ResponseMetadata) error{ "ConflictException": newErrorConflictException, "InternalServerException": newErrorInternalServerException, "ResourceNotFoundException": newErrorResourceNotFoundException, + "ServiceQuotaExceededException": newErrorServiceQuotaExceededException, "ThrottlingException": newErrorThrottlingException, "UninitializedAccountException": newErrorUninitializedAccountException, "ValidationException": newErrorValidationException, diff --git a/service/mgn/mgniface/interface.go b/service/mgn/mgniface/interface.go index 6a24f1c52c..3f6bf63507 100644 --- a/service/mgn/mgniface/interface.go +++ b/service/mgn/mgniface/interface.go @@ -80,6 +80,10 @@ type MgnAPI interface { DeleteSourceServerWithContext(aws.Context, *mgn.DeleteSourceServerInput, ...request.Option) (*mgn.DeleteSourceServerOutput, error) DeleteSourceServerRequest(*mgn.DeleteSourceServerInput) (*request.Request, *mgn.DeleteSourceServerOutput) + DeleteVcenterClient(*mgn.DeleteVcenterClientInput) (*mgn.DeleteVcenterClientOutput, error) + DeleteVcenterClientWithContext(aws.Context, *mgn.DeleteVcenterClientInput, ...request.Option) (*mgn.DeleteVcenterClientOutput, error) + DeleteVcenterClientRequest(*mgn.DeleteVcenterClientInput) (*request.Request, *mgn.DeleteVcenterClientOutput) + DescribeJobLogItems(*mgn.DescribeJobLogItemsInput) (*mgn.DescribeJobLogItemsOutput, error) DescribeJobLogItemsWithContext(aws.Context, *mgn.DescribeJobLogItemsInput, ...request.Option) (*mgn.DescribeJobLogItemsOutput, error) DescribeJobLogItemsRequest(*mgn.DescribeJobLogItemsInput) (*request.Request, *mgn.DescribeJobLogItemsOutput) @@ -108,6 +112,13 @@ type MgnAPI interface { DescribeSourceServersPages(*mgn.DescribeSourceServersInput, func(*mgn.DescribeSourceServersOutput, bool) bool) error DescribeSourceServersPagesWithContext(aws.Context, *mgn.DescribeSourceServersInput, func(*mgn.DescribeSourceServersOutput, bool) bool, ...request.Option) error + DescribeVcenterClients(*mgn.DescribeVcenterClientsInput) (*mgn.DescribeVcenterClientsOutput, error) + DescribeVcenterClientsWithContext(aws.Context, *mgn.DescribeVcenterClientsInput, ...request.Option) (*mgn.DescribeVcenterClientsOutput, error) + DescribeVcenterClientsRequest(*mgn.DescribeVcenterClientsInput) (*request.Request, *mgn.DescribeVcenterClientsOutput) + + DescribeVcenterClientsPages(*mgn.DescribeVcenterClientsInput, func(*mgn.DescribeVcenterClientsOutput, bool) bool) error + DescribeVcenterClientsPagesWithContext(aws.Context, *mgn.DescribeVcenterClientsInput, func(*mgn.DescribeVcenterClientsOutput, bool) bool, ...request.Option) error + DisconnectFromService(*mgn.DisconnectFromServiceInput) (*mgn.DisconnectFromServiceOutput, error) DisconnectFromServiceWithContext(aws.Context, *mgn.DisconnectFromServiceInput, ...request.Option) (*mgn.DisconnectFromServiceOutput, error) DisconnectFromServiceRequest(*mgn.DisconnectFromServiceInput) (*request.Request, *mgn.DisconnectFromServiceOutput) @@ -144,6 +155,10 @@ type MgnAPI interface { StartCutoverWithContext(aws.Context, *mgn.StartCutoverInput, ...request.Option) (*mgn.StartCutoverOutput, error) StartCutoverRequest(*mgn.StartCutoverInput) (*request.Request, *mgn.StartCutoverOutput) + StartReplication(*mgn.StartReplicationInput) (*mgn.StartReplicationOutput, error) + StartReplicationWithContext(aws.Context, *mgn.StartReplicationInput, ...request.Option) (*mgn.StartReplicationOutput, error) + StartReplicationRequest(*mgn.StartReplicationInput) (*request.Request, *mgn.StartReplicationOutput) + StartTest(*mgn.StartTestInput) (*mgn.StartTestOutput, error) StartTestWithContext(aws.Context, *mgn.StartTestInput, ...request.Option) (*mgn.StartTestOutput, error) StartTestRequest(*mgn.StartTestInput) (*request.Request, *mgn.StartTestOutput) @@ -171,6 +186,10 @@ type MgnAPI interface { UpdateReplicationConfigurationTemplate(*mgn.UpdateReplicationConfigurationTemplateInput) (*mgn.UpdateReplicationConfigurationTemplateOutput, error) UpdateReplicationConfigurationTemplateWithContext(aws.Context, *mgn.UpdateReplicationConfigurationTemplateInput, ...request.Option) (*mgn.UpdateReplicationConfigurationTemplateOutput, error) UpdateReplicationConfigurationTemplateRequest(*mgn.UpdateReplicationConfigurationTemplateInput) (*request.Request, *mgn.UpdateReplicationConfigurationTemplateOutput) + + UpdateSourceServerReplicationType(*mgn.UpdateSourceServerReplicationTypeInput) (*mgn.UpdateSourceServerReplicationTypeOutput, error) + UpdateSourceServerReplicationTypeWithContext(aws.Context, *mgn.UpdateSourceServerReplicationTypeInput, ...request.Option) (*mgn.UpdateSourceServerReplicationTypeOutput, error) + UpdateSourceServerReplicationTypeRequest(*mgn.UpdateSourceServerReplicationTypeInput) (*request.Request, *mgn.UpdateSourceServerReplicationTypeOutput) } var _ MgnAPI = (*mgn.Mgn)(nil) diff --git a/service/outposts/api.go b/service/outposts/api.go index 800488b20e..71bb39dc75 100644 --- a/service/outposts/api.go +++ b/service/outposts/api.go @@ -13,6 +13,98 @@ import ( "github.com/aws/aws-sdk-go/private/protocol/restjson" ) +const opCancelOrder = "CancelOrder" + +// CancelOrderRequest generates a "aws/request.Request" representing the +// client's request for the CancelOrder 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 CancelOrder for more information on using the CancelOrder +// 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 CancelOrderRequest method. +// req, resp := client.CancelOrderRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/outposts-2019-12-03/CancelOrder +func (c *Outposts) CancelOrderRequest(input *CancelOrderInput) (req *request.Request, output *CancelOrderOutput) { + op := &request.Operation{ + Name: opCancelOrder, + HTTPMethod: "POST", + HTTPPath: "/orders/{OrderId}/cancel", + } + + if input == nil { + input = &CancelOrderInput{} + } + + output = &CancelOrderOutput{} + req = c.newRequest(op, input, output) + req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) + return +} + +// CancelOrder API operation for AWS Outposts. +// +// Cancels an order for an Outpost. +// +// Returns awserr.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 Outposts's +// API operation CancelOrder for usage and error information. +// +// Returned Error Types: +// * ValidationException +// A parameter is not valid. +// +// * ConflictException +// Updating or deleting this resource can cause an inconsistent state. +// +// * AccessDeniedException +// You do not have permission to perform this operation. +// +// * NotFoundException +// The specified request is not valid. +// +// * InternalServerException +// An internal error has occurred. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/outposts-2019-12-03/CancelOrder +func (c *Outposts) CancelOrder(input *CancelOrderInput) (*CancelOrderOutput, error) { + req, out := c.CancelOrderRequest(input) + return out, req.Send() +} + +// CancelOrderWithContext is the same as CancelOrder with the addition of +// the ability to pass a context and additional request options. +// +// See CancelOrder 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 *Outposts) CancelOrderWithContext(ctx aws.Context, input *CancelOrderInput, opts ...request.Option) (*CancelOrderOutput, error) { + req, out := c.CancelOrderRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + const opCreateOrder = "CreateOrder" // CreateOrderRequest generates a "aws/request.Request" representing the @@ -203,6 +295,97 @@ func (c *Outposts) CreateOutpostWithContext(ctx aws.Context, input *CreateOutpos return out, req.Send() } +const opCreateSite = "CreateSite" + +// CreateSiteRequest generates a "aws/request.Request" representing the +// client's request for the CreateSite 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 CreateSite for more information on using the CreateSite +// 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 CreateSiteRequest method. +// req, resp := client.CreateSiteRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/outposts-2019-12-03/CreateSite +func (c *Outposts) CreateSiteRequest(input *CreateSiteInput) (req *request.Request, output *CreateSiteOutput) { + op := &request.Operation{ + Name: opCreateSite, + HTTPMethod: "POST", + HTTPPath: "/sites", + } + + if input == nil { + input = &CreateSiteInput{} + } + + output = &CreateSiteOutput{} + req = c.newRequest(op, input, output) + return +} + +// CreateSite API operation for AWS Outposts. +// +// Creates a site for an Outpost. +// +// Returns awserr.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 Outposts's +// API operation CreateSite for usage and error information. +// +// Returned Error Types: +// * ValidationException +// A parameter is not valid. +// +// * ConflictException +// Updating or deleting this resource can cause an inconsistent state. +// +// * AccessDeniedException +// You do not have permission to perform this operation. +// +// * InternalServerException +// An internal error has occurred. +// +// * ServiceQuotaExceededException +// You have exceeded a service quota. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/outposts-2019-12-03/CreateSite +func (c *Outposts) CreateSite(input *CreateSiteInput) (*CreateSiteOutput, error) { + req, out := c.CreateSiteRequest(input) + return out, req.Send() +} + +// CreateSiteWithContext is the same as CreateSite with the addition of +// the ability to pass a context and additional request options. +// +// See CreateSite 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 *Outposts) CreateSiteWithContext(ctx aws.Context, input *CreateSiteInput, opts ...request.Option) (*CreateSiteOutput, error) { + req, out := c.CreateSiteRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + const opDeleteOutpost = "DeleteOutpost" // DeleteOutpostRequest generates a "aws/request.Request" representing the @@ -387,58 +570,58 @@ func (c *Outposts) DeleteSiteWithContext(ctx aws.Context, input *DeleteSiteInput return out, req.Send() } -const opGetOutpost = "GetOutpost" +const opGetCatalogItem = "GetCatalogItem" -// GetOutpostRequest generates a "aws/request.Request" representing the -// client's request for the GetOutpost operation. The "output" return +// GetCatalogItemRequest generates a "aws/request.Request" representing the +// client's request for the GetCatalogItem 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 GetOutpost for more information on using the GetOutpost +// See GetCatalogItem for more information on using the GetCatalogItem // 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 GetOutpostRequest method. -// req, resp := client.GetOutpostRequest(params) +// // Example sending a request using the GetCatalogItemRequest method. +// req, resp := client.GetCatalogItemRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/outposts-2019-12-03/GetOutpost -func (c *Outposts) GetOutpostRequest(input *GetOutpostInput) (req *request.Request, output *GetOutpostOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/outposts-2019-12-03/GetCatalogItem +func (c *Outposts) GetCatalogItemRequest(input *GetCatalogItemInput) (req *request.Request, output *GetCatalogItemOutput) { op := &request.Operation{ - Name: opGetOutpost, + Name: opGetCatalogItem, HTTPMethod: "GET", - HTTPPath: "/outposts/{OutpostId}", + HTTPPath: "/catalog/item/{CatalogItemId}", } if input == nil { - input = &GetOutpostInput{} + input = &GetCatalogItemInput{} } - output = &GetOutpostOutput{} + output = &GetCatalogItemOutput{} req = c.newRequest(op, input, output) return } -// GetOutpost API operation for AWS Outposts. +// GetCatalogItem API operation for AWS Outposts. // -// Gets information about the specified Outpost. +// Gets information about a catalog item. // // Returns awserr.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 Outposts's -// API operation GetOutpost for usage and error information. +// API operation GetCatalogItem for usage and error information. // // Returned Error Types: // * ValidationException @@ -447,86 +630,83 @@ func (c *Outposts) GetOutpostRequest(input *GetOutpostInput) (req *request.Reque // * NotFoundException // The specified request is not valid. // -// * AccessDeniedException -// You do not have permission to perform this operation. -// // * InternalServerException // An internal error has occurred. // -// See also, https://docs.aws.amazon.com/goto/WebAPI/outposts-2019-12-03/GetOutpost -func (c *Outposts) GetOutpost(input *GetOutpostInput) (*GetOutpostOutput, error) { - req, out := c.GetOutpostRequest(input) +// See also, https://docs.aws.amazon.com/goto/WebAPI/outposts-2019-12-03/GetCatalogItem +func (c *Outposts) GetCatalogItem(input *GetCatalogItemInput) (*GetCatalogItemOutput, error) { + req, out := c.GetCatalogItemRequest(input) return out, req.Send() } -// GetOutpostWithContext is the same as GetOutpost with the addition of +// GetCatalogItemWithContext is the same as GetCatalogItem with the addition of // the ability to pass a context and additional request options. // -// See GetOutpost for details on how to use this API operation. +// See GetCatalogItem 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 *Outposts) GetOutpostWithContext(ctx aws.Context, input *GetOutpostInput, opts ...request.Option) (*GetOutpostOutput, error) { - req, out := c.GetOutpostRequest(input) +func (c *Outposts) GetCatalogItemWithContext(ctx aws.Context, input *GetCatalogItemInput, opts ...request.Option) (*GetCatalogItemOutput, error) { + req, out := c.GetCatalogItemRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -const opGetOutpostInstanceTypes = "GetOutpostInstanceTypes" +const opGetOrder = "GetOrder" -// GetOutpostInstanceTypesRequest generates a "aws/request.Request" representing the -// client's request for the GetOutpostInstanceTypes operation. The "output" return +// GetOrderRequest generates a "aws/request.Request" representing the +// client's request for the GetOrder 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 GetOutpostInstanceTypes for more information on using the GetOutpostInstanceTypes +// See GetOrder for more information on using the GetOrder // 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 GetOutpostInstanceTypesRequest method. -// req, resp := client.GetOutpostInstanceTypesRequest(params) +// // Example sending a request using the GetOrderRequest method. +// req, resp := client.GetOrderRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/outposts-2019-12-03/GetOutpostInstanceTypes -func (c *Outposts) GetOutpostInstanceTypesRequest(input *GetOutpostInstanceTypesInput) (req *request.Request, output *GetOutpostInstanceTypesOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/outposts-2019-12-03/GetOrder +func (c *Outposts) GetOrderRequest(input *GetOrderInput) (req *request.Request, output *GetOrderOutput) { op := &request.Operation{ - Name: opGetOutpostInstanceTypes, + Name: opGetOrder, HTTPMethod: "GET", - HTTPPath: "/outposts/{OutpostId}/instanceTypes", + HTTPPath: "/orders/{OrderId}", } if input == nil { - input = &GetOutpostInstanceTypesInput{} + input = &GetOrderInput{} } - output = &GetOutpostInstanceTypesOutput{} + output = &GetOrderOutput{} req = c.newRequest(op, input, output) return } -// GetOutpostInstanceTypes API operation for AWS Outposts. +// GetOrder API operation for AWS Outposts. // -// Lists the instance types for the specified Outpost. +// Gets an order. // // Returns awserr.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 Outposts's -// API operation GetOutpostInstanceTypes for usage and error information. +// API operation GetOrder for usage and error information. // // Returned Error Types: // * ValidationException @@ -535,588 +715,2954 @@ func (c *Outposts) GetOutpostInstanceTypesRequest(input *GetOutpostInstanceTypes // * NotFoundException // The specified request is not valid. // -// * AccessDeniedException -// You do not have permission to perform this operation. -// // * InternalServerException // An internal error has occurred. // -// See also, https://docs.aws.amazon.com/goto/WebAPI/outposts-2019-12-03/GetOutpostInstanceTypes -func (c *Outposts) GetOutpostInstanceTypes(input *GetOutpostInstanceTypesInput) (*GetOutpostInstanceTypesOutput, error) { - req, out := c.GetOutpostInstanceTypesRequest(input) +// See also, https://docs.aws.amazon.com/goto/WebAPI/outposts-2019-12-03/GetOrder +func (c *Outposts) GetOrder(input *GetOrderInput) (*GetOrderOutput, error) { + req, out := c.GetOrderRequest(input) return out, req.Send() } -// GetOutpostInstanceTypesWithContext is the same as GetOutpostInstanceTypes with the addition of +// GetOrderWithContext is the same as GetOrder with the addition of // the ability to pass a context and additional request options. // -// See GetOutpostInstanceTypes for details on how to use this API operation. +// See GetOrder 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 *Outposts) GetOutpostInstanceTypesWithContext(ctx aws.Context, input *GetOutpostInstanceTypesInput, opts ...request.Option) (*GetOutpostInstanceTypesOutput, error) { - req, out := c.GetOutpostInstanceTypesRequest(input) +func (c *Outposts) GetOrderWithContext(ctx aws.Context, input *GetOrderInput, opts ...request.Option) (*GetOrderOutput, error) { + req, out := c.GetOrderRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -const opListOutposts = "ListOutposts" +const opGetOutpost = "GetOutpost" -// ListOutpostsRequest generates a "aws/request.Request" representing the -// client's request for the ListOutposts operation. The "output" return +// GetOutpostRequest generates a "aws/request.Request" representing the +// client's request for the GetOutpost 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 ListOutposts for more information on using the ListOutposts +// See GetOutpost for more information on using the GetOutpost // 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 ListOutpostsRequest method. -// req, resp := client.ListOutpostsRequest(params) +// // Example sending a request using the GetOutpostRequest method. +// req, resp := client.GetOutpostRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/outposts-2019-12-03/ListOutposts -func (c *Outposts) ListOutpostsRequest(input *ListOutpostsInput) (req *request.Request, output *ListOutpostsOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/outposts-2019-12-03/GetOutpost +func (c *Outposts) GetOutpostRequest(input *GetOutpostInput) (req *request.Request, output *GetOutpostOutput) { op := &request.Operation{ - Name: opListOutposts, + Name: opGetOutpost, HTTPMethod: "GET", - HTTPPath: "/outposts", - Paginator: &request.Paginator{ - InputTokens: []string{"NextToken"}, - OutputTokens: []string{"NextToken"}, - LimitToken: "MaxResults", - TruncationToken: "", - }, + HTTPPath: "/outposts/{OutpostId}", } if input == nil { - input = &ListOutpostsInput{} + input = &GetOutpostInput{} } - output = &ListOutpostsOutput{} + output = &GetOutpostOutput{} req = c.newRequest(op, input, output) return } -// ListOutposts API operation for AWS Outposts. -// -// Create a list of the Outposts for your AWS account. Add filters to your request -// to return a more specific list of results. Use filters to match an Outpost -// lifecycle status, Availibility Zone (us-east-1a), and AZ ID (use1-az1). +// GetOutpost API operation for AWS Outposts. // -// If you specify multiple filters, the filters are joined with an AND, and -// the request returns only results that match all of the specified filters. +// Gets information about the specified Outpost. // // Returns awserr.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 Outposts's -// API operation ListOutposts for usage and error information. +// API operation GetOutpost for usage and error information. // // Returned Error Types: // * ValidationException // A parameter is not valid. // +// * NotFoundException +// The specified request is not valid. +// // * AccessDeniedException // You do not have permission to perform this operation. // // * InternalServerException // An internal error has occurred. // -// See also, https://docs.aws.amazon.com/goto/WebAPI/outposts-2019-12-03/ListOutposts -func (c *Outposts) ListOutposts(input *ListOutpostsInput) (*ListOutpostsOutput, error) { - req, out := c.ListOutpostsRequest(input) +// See also, https://docs.aws.amazon.com/goto/WebAPI/outposts-2019-12-03/GetOutpost +func (c *Outposts) GetOutpost(input *GetOutpostInput) (*GetOutpostOutput, error) { + req, out := c.GetOutpostRequest(input) return out, req.Send() } -// ListOutpostsWithContext is the same as ListOutposts with the addition of +// GetOutpostWithContext is the same as GetOutpost with the addition of // the ability to pass a context and additional request options. // -// See ListOutposts for details on how to use this API operation. +// See GetOutpost 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 *Outposts) ListOutpostsWithContext(ctx aws.Context, input *ListOutpostsInput, opts ...request.Option) (*ListOutpostsOutput, error) { - req, out := c.ListOutpostsRequest(input) +func (c *Outposts) GetOutpostWithContext(ctx aws.Context, input *GetOutpostInput, opts ...request.Option) (*GetOutpostOutput, error) { + req, out := c.GetOutpostRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -// ListOutpostsPages iterates over the pages of a ListOutposts operation, -// calling the "fn" function with the response data for each page. To stop -// iterating, return false from the fn function. -// -// See ListOutposts 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 ListOutposts operation. -// pageNum := 0 -// err := client.ListOutpostsPages(params, -// func(page *outposts.ListOutpostsOutput, lastPage bool) bool { -// pageNum++ -// fmt.Println(page) -// return pageNum <= 3 -// }) -// -func (c *Outposts) ListOutpostsPages(input *ListOutpostsInput, fn func(*ListOutpostsOutput, bool) bool) error { - return c.ListOutpostsPagesWithContext(aws.BackgroundContext(), input, fn) -} - -// ListOutpostsPagesWithContext same as ListOutpostsPages 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 *Outposts) ListOutpostsPagesWithContext(ctx aws.Context, input *ListOutpostsInput, fn func(*ListOutpostsOutput, bool) bool, opts ...request.Option) error { - p := request.Pagination{ - NewRequest: func() (*request.Request, error) { - var inCpy *ListOutpostsInput - if input != nil { - tmp := *input - inCpy = &tmp - } - req, _ := c.ListOutpostsRequest(inCpy) - req.SetContext(ctx) - req.ApplyOptions(opts...) - return req, nil - }, - } - - for p.Next() { - if !fn(p.Page().(*ListOutpostsOutput), !p.HasNextPage()) { - break - } - } - - return p.Err() -} - -const opListSites = "ListSites" - -// ListSitesRequest generates a "aws/request.Request" representing the -// client's request for the ListSites operation. The "output" return -// value will be populated with the request's response once the request completes -// successfully. +const opGetOutpostInstanceTypes = "GetOutpostInstanceTypes" + +// GetOutpostInstanceTypesRequest generates a "aws/request.Request" representing the +// client's request for the GetOutpostInstanceTypes 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 ListSites for more information on using the ListSites +// See GetOutpostInstanceTypes for more information on using the GetOutpostInstanceTypes // 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 ListSitesRequest method. -// req, resp := client.ListSitesRequest(params) +// // Example sending a request using the GetOutpostInstanceTypesRequest method. +// req, resp := client.GetOutpostInstanceTypesRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/outposts-2019-12-03/ListSites -func (c *Outposts) ListSitesRequest(input *ListSitesInput) (req *request.Request, output *ListSitesOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/outposts-2019-12-03/GetOutpostInstanceTypes +func (c *Outposts) GetOutpostInstanceTypesRequest(input *GetOutpostInstanceTypesInput) (req *request.Request, output *GetOutpostInstanceTypesOutput) { op := &request.Operation{ - Name: opListSites, + Name: opGetOutpostInstanceTypes, HTTPMethod: "GET", - HTTPPath: "/sites", - Paginator: &request.Paginator{ - InputTokens: []string{"NextToken"}, - OutputTokens: []string{"NextToken"}, - LimitToken: "MaxResults", - TruncationToken: "", - }, + HTTPPath: "/outposts/{OutpostId}/instanceTypes", } if input == nil { - input = &ListSitesInput{} + input = &GetOutpostInstanceTypesInput{} } - output = &ListSitesOutput{} + output = &GetOutpostInstanceTypesOutput{} req = c.newRequest(op, input, output) return } -// ListSites API operation for AWS Outposts. +// GetOutpostInstanceTypes API operation for AWS Outposts. // -// Lists the sites for the specified AWS account. +// Lists the instance types for the specified Outpost. // // Returns awserr.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 Outposts's -// API operation ListSites for usage and error information. +// API operation GetOutpostInstanceTypes for usage and error information. // // Returned Error Types: // * ValidationException // A parameter is not valid. // +// * NotFoundException +// The specified request is not valid. +// // * AccessDeniedException // You do not have permission to perform this operation. // // * InternalServerException // An internal error has occurred. // -// See also, https://docs.aws.amazon.com/goto/WebAPI/outposts-2019-12-03/ListSites -func (c *Outposts) ListSites(input *ListSitesInput) (*ListSitesOutput, error) { - req, out := c.ListSitesRequest(input) +// See also, https://docs.aws.amazon.com/goto/WebAPI/outposts-2019-12-03/GetOutpostInstanceTypes +func (c *Outposts) GetOutpostInstanceTypes(input *GetOutpostInstanceTypesInput) (*GetOutpostInstanceTypesOutput, error) { + req, out := c.GetOutpostInstanceTypesRequest(input) return out, req.Send() } -// ListSitesWithContext is the same as ListSites with the addition of +// GetOutpostInstanceTypesWithContext is the same as GetOutpostInstanceTypes with the addition of // the ability to pass a context and additional request options. // -// See ListSites for details on how to use this API operation. +// See GetOutpostInstanceTypes 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 *Outposts) ListSitesWithContext(ctx aws.Context, input *ListSitesInput, opts ...request.Option) (*ListSitesOutput, error) { - req, out := c.ListSitesRequest(input) +func (c *Outposts) GetOutpostInstanceTypesWithContext(ctx aws.Context, input *GetOutpostInstanceTypesInput, opts ...request.Option) (*GetOutpostInstanceTypesOutput, error) { + req, out := c.GetOutpostInstanceTypesRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -// ListSitesPages iterates over the pages of a ListSites operation, -// calling the "fn" function with the response data for each page. To stop -// iterating, return false from the fn function. -// -// See ListSites 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 ListSites operation. -// pageNum := 0 -// err := client.ListSitesPages(params, -// func(page *outposts.ListSitesOutput, lastPage bool) bool { -// pageNum++ -// fmt.Println(page) -// return pageNum <= 3 -// }) -// -func (c *Outposts) ListSitesPages(input *ListSitesInput, fn func(*ListSitesOutput, bool) bool) error { - return c.ListSitesPagesWithContext(aws.BackgroundContext(), input, fn) -} - -// ListSitesPagesWithContext same as ListSitesPages 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 *Outposts) ListSitesPagesWithContext(ctx aws.Context, input *ListSitesInput, fn func(*ListSitesOutput, bool) bool, opts ...request.Option) error { - p := request.Pagination{ - NewRequest: func() (*request.Request, error) { - var inCpy *ListSitesInput - if input != nil { - tmp := *input - inCpy = &tmp - } - req, _ := c.ListSitesRequest(inCpy) - req.SetContext(ctx) - req.ApplyOptions(opts...) - return req, nil - }, - } - - for p.Next() { - if !fn(p.Page().(*ListSitesOutput), !p.HasNextPage()) { - break - } - } - - return p.Err() -} - -const opListTagsForResource = "ListTagsForResource" +const opGetSite = "GetSite" -// ListTagsForResourceRequest generates a "aws/request.Request" representing the -// client's request for the ListTagsForResource operation. The "output" return +// GetSiteRequest generates a "aws/request.Request" representing the +// client's request for the GetSite 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 GetSite for more information on using the GetSite // 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 GetSiteRequest method. +// req, resp := client.GetSiteRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/outposts-2019-12-03/ListTagsForResource -func (c *Outposts) ListTagsForResourceRequest(input *ListTagsForResourceInput) (req *request.Request, output *ListTagsForResourceOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/outposts-2019-12-03/GetSite +func (c *Outposts) GetSiteRequest(input *GetSiteInput) (req *request.Request, output *GetSiteOutput) { op := &request.Operation{ - Name: opListTagsForResource, + Name: opGetSite, HTTPMethod: "GET", - HTTPPath: "/tags/{ResourceArn}", + HTTPPath: "/sites/{SiteId}", } if input == nil { - input = &ListTagsForResourceInput{} + input = &GetSiteInput{} } - output = &ListTagsForResourceOutput{} + output = &GetSiteOutput{} req = c.newRequest(op, input, output) return } -// ListTagsForResource API operation for AWS Outposts. +// GetSite API operation for AWS Outposts. // -// Lists the tags for the specified resource. +// Gets information about the specified Outpost site. // // Returns awserr.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 Outposts's -// API operation ListTagsForResource for usage and error information. +// API operation GetSite for usage and error information. // // Returned Error Types: -// * InternalServerException -// An internal error has occurred. -// // * ValidationException // A parameter is not valid. // // * NotFoundException // The specified request is not valid. // -// See also, https://docs.aws.amazon.com/goto/WebAPI/outposts-2019-12-03/ListTagsForResource -func (c *Outposts) ListTagsForResource(input *ListTagsForResourceInput) (*ListTagsForResourceOutput, error) { - req, out := c.ListTagsForResourceRequest(input) +// * AccessDeniedException +// You do not have permission to perform this operation. +// +// * InternalServerException +// An internal error has occurred. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/outposts-2019-12-03/GetSite +func (c *Outposts) GetSite(input *GetSiteInput) (*GetSiteOutput, error) { + req, out := c.GetSiteRequest(input) return out, req.Send() } -// ListTagsForResourceWithContext is the same as ListTagsForResource with the addition of +// GetSiteWithContext is the same as GetSite 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 GetSite 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 *Outposts) ListTagsForResourceWithContext(ctx aws.Context, input *ListTagsForResourceInput, opts ...request.Option) (*ListTagsForResourceOutput, error) { - req, out := c.ListTagsForResourceRequest(input) +func (c *Outposts) GetSiteWithContext(ctx aws.Context, input *GetSiteInput, opts ...request.Option) (*GetSiteOutput, error) { + req, out := c.GetSiteRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -const opTagResource = "TagResource" +const opGetSiteAddress = "GetSiteAddress" -// TagResourceRequest generates a "aws/request.Request" representing the -// client's request for the TagResource operation. The "output" return +// GetSiteAddressRequest generates a "aws/request.Request" representing the +// client's request for the GetSiteAddress 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 GetSiteAddress for more information on using the GetSiteAddress // 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 GetSiteAddressRequest method. +// req, resp := client.GetSiteAddressRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/outposts-2019-12-03/TagResource -func (c *Outposts) TagResourceRequest(input *TagResourceInput) (req *request.Request, output *TagResourceOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/outposts-2019-12-03/GetSiteAddress +func (c *Outposts) GetSiteAddressRequest(input *GetSiteAddressInput) (req *request.Request, output *GetSiteAddressOutput) { op := &request.Operation{ - Name: opTagResource, - HTTPMethod: "POST", - HTTPPath: "/tags/{ResourceArn}", + Name: opGetSiteAddress, + HTTPMethod: "GET", + HTTPPath: "/sites/{SiteId}/address", } if input == nil { - input = &TagResourceInput{} + input = &GetSiteAddressInput{} } - output = &TagResourceOutput{} + output = &GetSiteAddressOutput{} req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) return } -// TagResource API operation for AWS Outposts. +// GetSiteAddress API operation for AWS Outposts. // -// Adds tags to the specified resource. +// Gets the site address. // // Returns awserr.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 Outposts's -// API operation TagResource for usage and error information. +// API operation GetSiteAddress for usage and error information. // // Returned Error Types: -// * InternalServerException -// An internal error has occurred. -// // * ValidationException // A parameter is not valid. // +// * AccessDeniedException +// You do not have permission to perform this operation. +// // * NotFoundException // The specified request is not valid. // -// See also, https://docs.aws.amazon.com/goto/WebAPI/outposts-2019-12-03/TagResource -func (c *Outposts) TagResource(input *TagResourceInput) (*TagResourceOutput, error) { - req, out := c.TagResourceRequest(input) +// * InternalServerException +// An internal error has occurred. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/outposts-2019-12-03/GetSiteAddress +func (c *Outposts) GetSiteAddress(input *GetSiteAddressInput) (*GetSiteAddressOutput, error) { + req, out := c.GetSiteAddressRequest(input) return out, req.Send() } -// TagResourceWithContext is the same as TagResource with the addition of +// GetSiteAddressWithContext is the same as GetSiteAddress 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 GetSiteAddress 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 *Outposts) TagResourceWithContext(ctx aws.Context, input *TagResourceInput, opts ...request.Option) (*TagResourceOutput, error) { - req, out := c.TagResourceRequest(input) +func (c *Outposts) GetSiteAddressWithContext(ctx aws.Context, input *GetSiteAddressInput, opts ...request.Option) (*GetSiteAddressOutput, error) { + req, out := c.GetSiteAddressRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -const opUntagResource = "UntagResource" +const opListCatalogItems = "ListCatalogItems" -// UntagResourceRequest generates a "aws/request.Request" representing the -// client's request for the UntagResource operation. The "output" return +// ListCatalogItemsRequest generates a "aws/request.Request" representing the +// client's request for the ListCatalogItems 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 ListCatalogItems for more information on using the ListCatalogItems // 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 ListCatalogItemsRequest method. +// req, resp := client.ListCatalogItemsRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/outposts-2019-12-03/UntagResource -func (c *Outposts) UntagResourceRequest(input *UntagResourceInput) (req *request.Request, output *UntagResourceOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/outposts-2019-12-03/ListCatalogItems +func (c *Outposts) ListCatalogItemsRequest(input *ListCatalogItemsInput) (req *request.Request, output *ListCatalogItemsOutput) { op := &request.Operation{ - Name: opUntagResource, - HTTPMethod: "DELETE", - HTTPPath: "/tags/{ResourceArn}", + Name: opListCatalogItems, + HTTPMethod: "GET", + HTTPPath: "/catalog/items", + Paginator: &request.Paginator{ + InputTokens: []string{"NextToken"}, + OutputTokens: []string{"NextToken"}, + LimitToken: "MaxResults", + TruncationToken: "", + }, } if input == nil { - input = &UntagResourceInput{} + input = &ListCatalogItemsInput{} } - output = &UntagResourceOutput{} + output = &ListCatalogItemsOutput{} req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) return } -// UntagResource API operation for AWS Outposts. +// ListCatalogItems API operation for AWS Outposts. // -// Removes tags from the specified resource. +// Use to create a list of every item in the catalog. Add filters to your request +// to return a more specific list of results. Use filters to match an item class, +// storage option, or EC2 family. +// +// If you specify multiple filters, the filters are joined with an AND, and +// the request returns only results that match all of the specified filters. // // Returns awserr.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 Outposts's -// API operation UntagResource for usage and error information. +// API operation ListCatalogItems for usage and error information. // // Returned Error Types: -// * InternalServerException -// An internal error has occurred. -// // * ValidationException // A parameter is not valid. // // * NotFoundException // The specified request is not valid. // -// See also, https://docs.aws.amazon.com/goto/WebAPI/outposts-2019-12-03/UntagResource -func (c *Outposts) UntagResource(input *UntagResourceInput) (*UntagResourceOutput, error) { - req, out := c.UntagResourceRequest(input) +// * InternalServerException +// An internal error has occurred. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/outposts-2019-12-03/ListCatalogItems +func (c *Outposts) ListCatalogItems(input *ListCatalogItemsInput) (*ListCatalogItemsOutput, error) { + req, out := c.ListCatalogItemsRequest(input) return out, req.Send() } -// UntagResourceWithContext is the same as UntagResource with the addition of +// ListCatalogItemsWithContext is the same as ListCatalogItems 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 ListCatalogItems 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 *Outposts) UntagResourceWithContext(ctx aws.Context, input *UntagResourceInput, opts ...request.Option) (*UntagResourceOutput, error) { - req, out := c.UntagResourceRequest(input) +func (c *Outposts) ListCatalogItemsWithContext(ctx aws.Context, input *ListCatalogItemsInput, opts ...request.Option) (*ListCatalogItemsOutput, error) { + req, out := c.ListCatalogItemsRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +// ListCatalogItemsPages iterates over the pages of a ListCatalogItems operation, +// calling the "fn" function with the response data for each page. To stop +// iterating, return false from the fn function. +// +// See ListCatalogItems 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 ListCatalogItems operation. +// pageNum := 0 +// err := client.ListCatalogItemsPages(params, +// func(page *outposts.ListCatalogItemsOutput, lastPage bool) bool { +// pageNum++ +// fmt.Println(page) +// return pageNum <= 3 +// }) +// +func (c *Outposts) ListCatalogItemsPages(input *ListCatalogItemsInput, fn func(*ListCatalogItemsOutput, bool) bool) error { + return c.ListCatalogItemsPagesWithContext(aws.BackgroundContext(), input, fn) +} + +// ListCatalogItemsPagesWithContext same as ListCatalogItemsPages 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 *Outposts) ListCatalogItemsPagesWithContext(ctx aws.Context, input *ListCatalogItemsInput, fn func(*ListCatalogItemsOutput, bool) bool, opts ...request.Option) error { + p := request.Pagination{ + NewRequest: func() (*request.Request, error) { + var inCpy *ListCatalogItemsInput + if input != nil { + tmp := *input + inCpy = &tmp + } + req, _ := c.ListCatalogItemsRequest(inCpy) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return req, nil + }, + } + + for p.Next() { + if !fn(p.Page().(*ListCatalogItemsOutput), !p.HasNextPage()) { + break + } + } + + return p.Err() +} + +const opListOrders = "ListOrders" + +// ListOrdersRequest generates a "aws/request.Request" representing the +// client's request for the ListOrders 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 ListOrders for more information on using the ListOrders +// 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 ListOrdersRequest method. +// req, resp := client.ListOrdersRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/outposts-2019-12-03/ListOrders +func (c *Outposts) ListOrdersRequest(input *ListOrdersInput) (req *request.Request, output *ListOrdersOutput) { + op := &request.Operation{ + Name: opListOrders, + HTTPMethod: "GET", + HTTPPath: "/list-orders", + Paginator: &request.Paginator{ + InputTokens: []string{"NextToken"}, + OutputTokens: []string{"NextToken"}, + LimitToken: "MaxResults", + TruncationToken: "", + }, + } + + if input == nil { + input = &ListOrdersInput{} + } + + output = &ListOrdersOutput{} + req = c.newRequest(op, input, output) + return +} + +// ListOrders API operation for AWS Outposts. +// +// Create a list of the Outpost orders for your Amazon Web Services account. +// You can filter your request by Outpost to return a more specific list of +// results. +// +// Returns awserr.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 Outposts's +// API operation ListOrders for usage and error information. +// +// Returned Error Types: +// * ValidationException +// A parameter is not valid. +// +// * NotFoundException +// The specified request is not valid. +// +// * AccessDeniedException +// You do not have permission to perform this operation. +// +// * InternalServerException +// An internal error has occurred. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/outposts-2019-12-03/ListOrders +func (c *Outposts) ListOrders(input *ListOrdersInput) (*ListOrdersOutput, error) { + req, out := c.ListOrdersRequest(input) + return out, req.Send() +} + +// ListOrdersWithContext is the same as ListOrders with the addition of +// the ability to pass a context and additional request options. +// +// See ListOrders 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 *Outposts) ListOrdersWithContext(ctx aws.Context, input *ListOrdersInput, opts ...request.Option) (*ListOrdersOutput, error) { + req, out := c.ListOrdersRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +// ListOrdersPages iterates over the pages of a ListOrders operation, +// calling the "fn" function with the response data for each page. To stop +// iterating, return false from the fn function. +// +// See ListOrders 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 ListOrders operation. +// pageNum := 0 +// err := client.ListOrdersPages(params, +// func(page *outposts.ListOrdersOutput, lastPage bool) bool { +// pageNum++ +// fmt.Println(page) +// return pageNum <= 3 +// }) +// +func (c *Outposts) ListOrdersPages(input *ListOrdersInput, fn func(*ListOrdersOutput, bool) bool) error { + return c.ListOrdersPagesWithContext(aws.BackgroundContext(), input, fn) +} + +// ListOrdersPagesWithContext same as ListOrdersPages 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 *Outposts) ListOrdersPagesWithContext(ctx aws.Context, input *ListOrdersInput, fn func(*ListOrdersOutput, bool) bool, opts ...request.Option) error { + p := request.Pagination{ + NewRequest: func() (*request.Request, error) { + var inCpy *ListOrdersInput + if input != nil { + tmp := *input + inCpy = &tmp + } + req, _ := c.ListOrdersRequest(inCpy) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return req, nil + }, + } + + for p.Next() { + if !fn(p.Page().(*ListOrdersOutput), !p.HasNextPage()) { + break + } + } + + return p.Err() +} + +const opListOutposts = "ListOutposts" + +// ListOutpostsRequest generates a "aws/request.Request" representing the +// client's request for the ListOutposts 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 ListOutposts for more information on using the ListOutposts +// 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 ListOutpostsRequest method. +// req, resp := client.ListOutpostsRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/outposts-2019-12-03/ListOutposts +func (c *Outposts) ListOutpostsRequest(input *ListOutpostsInput) (req *request.Request, output *ListOutpostsOutput) { + op := &request.Operation{ + Name: opListOutposts, + HTTPMethod: "GET", + HTTPPath: "/outposts", + Paginator: &request.Paginator{ + InputTokens: []string{"NextToken"}, + OutputTokens: []string{"NextToken"}, + LimitToken: "MaxResults", + TruncationToken: "", + }, + } + + if input == nil { + input = &ListOutpostsInput{} + } + + output = &ListOutpostsOutput{} + req = c.newRequest(op, input, output) + return +} + +// ListOutposts API operation for AWS Outposts. +// +// Create a list of the Outposts for your Amazon Web Services account. Add filters +// to your request to return a more specific list of results. Use filters to +// match an Outpost lifecycle status, Availability Zone (us-east-1a), and AZ +// ID (use1-az1). +// +// If you specify multiple filters, the filters are joined with an AND, and +// the request returns only results that match all of the specified filters. +// +// Returns awserr.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 Outposts's +// API operation ListOutposts for usage and error information. +// +// Returned Error Types: +// * ValidationException +// A parameter is not valid. +// +// * AccessDeniedException +// You do not have permission to perform this operation. +// +// * InternalServerException +// An internal error has occurred. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/outposts-2019-12-03/ListOutposts +func (c *Outposts) ListOutposts(input *ListOutpostsInput) (*ListOutpostsOutput, error) { + req, out := c.ListOutpostsRequest(input) + return out, req.Send() +} + +// ListOutpostsWithContext is the same as ListOutposts with the addition of +// the ability to pass a context and additional request options. +// +// See ListOutposts 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 *Outposts) ListOutpostsWithContext(ctx aws.Context, input *ListOutpostsInput, opts ...request.Option) (*ListOutpostsOutput, error) { + req, out := c.ListOutpostsRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -// You do not have permission to perform this operation. -type AccessDeniedException struct { - _ struct{} `type:"structure"` - RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` +// ListOutpostsPages iterates over the pages of a ListOutposts operation, +// calling the "fn" function with the response data for each page. To stop +// iterating, return false from the fn function. +// +// See ListOutposts 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 ListOutposts operation. +// pageNum := 0 +// err := client.ListOutpostsPages(params, +// func(page *outposts.ListOutpostsOutput, lastPage bool) bool { +// pageNum++ +// fmt.Println(page) +// return pageNum <= 3 +// }) +// +func (c *Outposts) ListOutpostsPages(input *ListOutpostsInput, fn func(*ListOutpostsOutput, bool) bool) error { + return c.ListOutpostsPagesWithContext(aws.BackgroundContext(), input, fn) +} + +// ListOutpostsPagesWithContext same as ListOutpostsPages 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 *Outposts) ListOutpostsPagesWithContext(ctx aws.Context, input *ListOutpostsInput, fn func(*ListOutpostsOutput, bool) bool, opts ...request.Option) error { + p := request.Pagination{ + NewRequest: func() (*request.Request, error) { + var inCpy *ListOutpostsInput + if input != nil { + tmp := *input + inCpy = &tmp + } + req, _ := c.ListOutpostsRequest(inCpy) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return req, nil + }, + } + + for p.Next() { + if !fn(p.Page().(*ListOutpostsOutput), !p.HasNextPage()) { + break + } + } + + return p.Err() +} + +const opListSites = "ListSites" + +// ListSitesRequest generates a "aws/request.Request" representing the +// client's request for the ListSites 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 ListSites for more information on using the ListSites +// 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 ListSitesRequest method. +// req, resp := client.ListSitesRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/outposts-2019-12-03/ListSites +func (c *Outposts) ListSitesRequest(input *ListSitesInput) (req *request.Request, output *ListSitesOutput) { + op := &request.Operation{ + Name: opListSites, + HTTPMethod: "GET", + HTTPPath: "/sites", + Paginator: &request.Paginator{ + InputTokens: []string{"NextToken"}, + OutputTokens: []string{"NextToken"}, + LimitToken: "MaxResults", + TruncationToken: "", + }, + } + + if input == nil { + input = &ListSitesInput{} + } + + output = &ListSitesOutput{} + req = c.newRequest(op, input, output) + return +} + +// ListSites API operation for AWS Outposts. +// +// Lists the sites for your Amazon Web Services account. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Outposts's +// API operation ListSites for usage and error information. +// +// Returned Error Types: +// * ValidationException +// A parameter is not valid. +// +// * AccessDeniedException +// You do not have permission to perform this operation. +// +// * InternalServerException +// An internal error has occurred. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/outposts-2019-12-03/ListSites +func (c *Outposts) ListSites(input *ListSitesInput) (*ListSitesOutput, error) { + req, out := c.ListSitesRequest(input) + return out, req.Send() +} + +// ListSitesWithContext is the same as ListSites with the addition of +// the ability to pass a context and additional request options. +// +// See ListSites 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 *Outposts) ListSitesWithContext(ctx aws.Context, input *ListSitesInput, opts ...request.Option) (*ListSitesOutput, error) { + req, out := c.ListSitesRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +// ListSitesPages iterates over the pages of a ListSites operation, +// calling the "fn" function with the response data for each page. To stop +// iterating, return false from the fn function. +// +// See ListSites 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 ListSites operation. +// pageNum := 0 +// err := client.ListSitesPages(params, +// func(page *outposts.ListSitesOutput, lastPage bool) bool { +// pageNum++ +// fmt.Println(page) +// return pageNum <= 3 +// }) +// +func (c *Outposts) ListSitesPages(input *ListSitesInput, fn func(*ListSitesOutput, bool) bool) error { + return c.ListSitesPagesWithContext(aws.BackgroundContext(), input, fn) +} + +// ListSitesPagesWithContext same as ListSitesPages 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 *Outposts) ListSitesPagesWithContext(ctx aws.Context, input *ListSitesInput, fn func(*ListSitesOutput, bool) bool, opts ...request.Option) error { + p := request.Pagination{ + NewRequest: func() (*request.Request, error) { + var inCpy *ListSitesInput + if input != nil { + tmp := *input + inCpy = &tmp + } + req, _ := c.ListSitesRequest(inCpy) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return req, nil + }, + } + + for p.Next() { + if !fn(p.Page().(*ListSitesOutput), !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/outposts-2019-12-03/ListTagsForResource +func (c *Outposts) ListTagsForResourceRequest(input *ListTagsForResourceInput) (req *request.Request, output *ListTagsForResourceOutput) { + op := &request.Operation{ + Name: opListTagsForResource, + HTTPMethod: "GET", + HTTPPath: "/tags/{ResourceArn}", + } + + if input == nil { + input = &ListTagsForResourceInput{} + } + + output = &ListTagsForResourceOutput{} + req = c.newRequest(op, input, output) + return +} + +// ListTagsForResource API operation for AWS Outposts. +// +// Lists the tags for the specified resource. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Outposts's +// API operation ListTagsForResource for usage and error information. +// +// Returned Error Types: +// * InternalServerException +// An internal error has occurred. +// +// * ValidationException +// A parameter is not valid. +// +// * NotFoundException +// The specified request is not valid. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/outposts-2019-12-03/ListTagsForResource +func (c *Outposts) 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 *Outposts) 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 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/outposts-2019-12-03/TagResource +func (c *Outposts) TagResourceRequest(input *TagResourceInput) (req *request.Request, output *TagResourceOutput) { + op := &request.Operation{ + Name: opTagResource, + HTTPMethod: "POST", + HTTPPath: "/tags/{ResourceArn}", + } + + if input == nil { + input = &TagResourceInput{} + } + + output = &TagResourceOutput{} + req = c.newRequest(op, input, output) + req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) + return +} + +// TagResource API operation for AWS Outposts. +// +// Adds tags to the specified resource. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Outposts's +// API operation TagResource for usage and error information. +// +// Returned Error Types: +// * InternalServerException +// An internal error has occurred. +// +// * ValidationException +// A parameter is not valid. +// +// * NotFoundException +// The specified request is not valid. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/outposts-2019-12-03/TagResource +func (c *Outposts) 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 *Outposts) 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/outposts-2019-12-03/UntagResource +func (c *Outposts) UntagResourceRequest(input *UntagResourceInput) (req *request.Request, output *UntagResourceOutput) { + op := &request.Operation{ + Name: opUntagResource, + HTTPMethod: "DELETE", + HTTPPath: "/tags/{ResourceArn}", + } + + if input == nil { + input = &UntagResourceInput{} + } + + output = &UntagResourceOutput{} + req = c.newRequest(op, input, output) + req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) + return +} + +// UntagResource API operation for AWS Outposts. +// +// Removes tags from the specified resource. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Outposts's +// API operation UntagResource for usage and error information. +// +// Returned Error Types: +// * InternalServerException +// An internal error has occurred. +// +// * ValidationException +// A parameter is not valid. +// +// * NotFoundException +// The specified request is not valid. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/outposts-2019-12-03/UntagResource +func (c *Outposts) 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 *Outposts) 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 opUpdateSite = "UpdateSite" + +// UpdateSiteRequest generates a "aws/request.Request" representing the +// client's request for the UpdateSite 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 UpdateSite for more information on using the UpdateSite +// 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 UpdateSiteRequest method. +// req, resp := client.UpdateSiteRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/outposts-2019-12-03/UpdateSite +func (c *Outposts) UpdateSiteRequest(input *UpdateSiteInput) (req *request.Request, output *UpdateSiteOutput) { + op := &request.Operation{ + Name: opUpdateSite, + HTTPMethod: "PATCH", + HTTPPath: "/sites/{SiteId}", + } + + if input == nil { + input = &UpdateSiteInput{} + } + + output = &UpdateSiteOutput{} + req = c.newRequest(op, input, output) + return +} + +// UpdateSite API operation for AWS Outposts. +// +// Updates the site. +// +// Returns awserr.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 Outposts's +// API operation UpdateSite for usage and error information. +// +// Returned Error Types: +// * ValidationException +// A parameter is not valid. +// +// * ConflictException +// Updating or deleting this resource can cause an inconsistent state. +// +// * NotFoundException +// The specified request is not valid. +// +// * AccessDeniedException +// You do not have permission to perform this operation. +// +// * InternalServerException +// An internal error has occurred. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/outposts-2019-12-03/UpdateSite +func (c *Outposts) UpdateSite(input *UpdateSiteInput) (*UpdateSiteOutput, error) { + req, out := c.UpdateSiteRequest(input) + return out, req.Send() +} + +// UpdateSiteWithContext is the same as UpdateSite with the addition of +// the ability to pass a context and additional request options. +// +// See UpdateSite 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 *Outposts) UpdateSiteWithContext(ctx aws.Context, input *UpdateSiteInput, opts ...request.Option) (*UpdateSiteOutput, error) { + req, out := c.UpdateSiteRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opUpdateSiteAddress = "UpdateSiteAddress" + +// UpdateSiteAddressRequest generates a "aws/request.Request" representing the +// client's request for the UpdateSiteAddress 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 UpdateSiteAddress for more information on using the UpdateSiteAddress +// 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 UpdateSiteAddressRequest method. +// req, resp := client.UpdateSiteAddressRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/outposts-2019-12-03/UpdateSiteAddress +func (c *Outposts) UpdateSiteAddressRequest(input *UpdateSiteAddressInput) (req *request.Request, output *UpdateSiteAddressOutput) { + op := &request.Operation{ + Name: opUpdateSiteAddress, + HTTPMethod: "PUT", + HTTPPath: "/sites/{SiteId}/address", + } + + if input == nil { + input = &UpdateSiteAddressInput{} + } + + output = &UpdateSiteAddressOutput{} + req = c.newRequest(op, input, output) + return +} + +// UpdateSiteAddress API operation for AWS Outposts. +// +// Updates the site address. +// +// To update a site address with an order IN_PROGRESS, you must wait for the +// order to complete or cancel the order. +// +// You can update the operating address before you place an order at the site, +// or after all Outposts that belong to the site have been deactivated. +// +// Returns awserr.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 Outposts's +// API operation UpdateSiteAddress for usage and error information. +// +// Returned Error Types: +// * ValidationException +// A parameter is not valid. +// +// * AccessDeniedException +// You do not have permission to perform this operation. +// +// * NotFoundException +// The specified request is not valid. +// +// * ConflictException +// Updating or deleting this resource can cause an inconsistent state. +// +// * InternalServerException +// An internal error has occurred. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/outposts-2019-12-03/UpdateSiteAddress +func (c *Outposts) UpdateSiteAddress(input *UpdateSiteAddressInput) (*UpdateSiteAddressOutput, error) { + req, out := c.UpdateSiteAddressRequest(input) + return out, req.Send() +} + +// UpdateSiteAddressWithContext is the same as UpdateSiteAddress with the addition of +// the ability to pass a context and additional request options. +// +// See UpdateSiteAddress 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 *Outposts) UpdateSiteAddressWithContext(ctx aws.Context, input *UpdateSiteAddressInput, opts ...request.Option) (*UpdateSiteAddressOutput, error) { + req, out := c.UpdateSiteAddressRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opUpdateSiteRackPhysicalProperties = "UpdateSiteRackPhysicalProperties" + +// UpdateSiteRackPhysicalPropertiesRequest generates a "aws/request.Request" representing the +// client's request for the UpdateSiteRackPhysicalProperties 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 UpdateSiteRackPhysicalProperties for more information on using the UpdateSiteRackPhysicalProperties +// 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 UpdateSiteRackPhysicalPropertiesRequest method. +// req, resp := client.UpdateSiteRackPhysicalPropertiesRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/outposts-2019-12-03/UpdateSiteRackPhysicalProperties +func (c *Outposts) UpdateSiteRackPhysicalPropertiesRequest(input *UpdateSiteRackPhysicalPropertiesInput) (req *request.Request, output *UpdateSiteRackPhysicalPropertiesOutput) { + op := &request.Operation{ + Name: opUpdateSiteRackPhysicalProperties, + HTTPMethod: "PATCH", + HTTPPath: "/sites/{SiteId}/rackPhysicalProperties", + } + + if input == nil { + input = &UpdateSiteRackPhysicalPropertiesInput{} + } + + output = &UpdateSiteRackPhysicalPropertiesOutput{} + req = c.newRequest(op, input, output) + return +} + +// UpdateSiteRackPhysicalProperties API operation for AWS Outposts. +// +// Update the physical and logistical details for a rack at a site. For more +// information about hardware requirements for racks, see Network readiness +// checklist (https://docs.aws.amazon.com/outposts/latest/userguide/outposts-requirements.html#checklist) +// in the Amazon Web Services Outposts User Guide. +// +// To update a rack at a site with an order of IN_PROGRESS, you must wait for +// the order to complete or cancel the order. +// +// Returns awserr.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 Outposts's +// API operation UpdateSiteRackPhysicalProperties for usage and error information. +// +// Returned Error Types: +// * ValidationException +// A parameter is not valid. +// +// * ConflictException +// Updating or deleting this resource can cause an inconsistent state. +// +// * NotFoundException +// The specified request is not valid. +// +// * AccessDeniedException +// You do not have permission to perform this operation. +// +// * InternalServerException +// An internal error has occurred. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/outposts-2019-12-03/UpdateSiteRackPhysicalProperties +func (c *Outposts) UpdateSiteRackPhysicalProperties(input *UpdateSiteRackPhysicalPropertiesInput) (*UpdateSiteRackPhysicalPropertiesOutput, error) { + req, out := c.UpdateSiteRackPhysicalPropertiesRequest(input) + return out, req.Send() +} + +// UpdateSiteRackPhysicalPropertiesWithContext is the same as UpdateSiteRackPhysicalProperties with the addition of +// the ability to pass a context and additional request options. +// +// See UpdateSiteRackPhysicalProperties 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 *Outposts) UpdateSiteRackPhysicalPropertiesWithContext(ctx aws.Context, input *UpdateSiteRackPhysicalPropertiesInput, opts ...request.Option) (*UpdateSiteRackPhysicalPropertiesOutput, error) { + req, out := c.UpdateSiteRackPhysicalPropertiesRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +// You do not have permission to perform this operation. +type AccessDeniedException struct { + _ struct{} `type:"structure"` + RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` + + Message_ *string `locationName:"Message" 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 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 +} + +// Information about an address. +type Address struct { + _ struct{} `type:"structure"` + + // The first line of the address. + // + // AddressLine1 is a required field + AddressLine1 *string `min:"1" type:"string" required:"true"` + + // The second line of the address. + AddressLine2 *string `type:"string"` + + // The third line of the address. + AddressLine3 *string `type:"string"` + + // The city for the address. + // + // City is a required field + City *string `min:"1" type:"string" required:"true"` + + // The name of the contact. + ContactName *string `min:"1" type:"string"` + + // The phone number of the contact. + ContactPhoneNumber *string `min:"1" type:"string"` + + // The ISO-3166 two-letter country code for the address. + // + // CountryCode is a required field + CountryCode *string `min:"2" type:"string" required:"true"` + + // The district or county for the address. + DistrictOrCounty *string `min:"1" type:"string"` + + // The municipality for the address. + Municipality *string `type:"string"` + + // The postal code for the address. + // + // PostalCode is a required field + PostalCode *string `min:"1" type:"string" required:"true"` + + // The state for the address. + // + // StateOrRegion is a required field + StateOrRegion *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 Address) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s Address) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *Address) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "Address"} + if s.AddressLine1 == nil { + invalidParams.Add(request.NewErrParamRequired("AddressLine1")) + } + if s.AddressLine1 != nil && len(*s.AddressLine1) < 1 { + invalidParams.Add(request.NewErrParamMinLen("AddressLine1", 1)) + } + if s.City == nil { + invalidParams.Add(request.NewErrParamRequired("City")) + } + if s.City != nil && len(*s.City) < 1 { + invalidParams.Add(request.NewErrParamMinLen("City", 1)) + } + if s.ContactName != nil && len(*s.ContactName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ContactName", 1)) + } + if s.ContactPhoneNumber != nil && len(*s.ContactPhoneNumber) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ContactPhoneNumber", 1)) + } + if s.CountryCode == nil { + invalidParams.Add(request.NewErrParamRequired("CountryCode")) + } + if s.CountryCode != nil && len(*s.CountryCode) < 2 { + invalidParams.Add(request.NewErrParamMinLen("CountryCode", 2)) + } + if s.DistrictOrCounty != nil && len(*s.DistrictOrCounty) < 1 { + invalidParams.Add(request.NewErrParamMinLen("DistrictOrCounty", 1)) + } + if s.PostalCode == nil { + invalidParams.Add(request.NewErrParamRequired("PostalCode")) + } + if s.PostalCode != nil && len(*s.PostalCode) < 1 { + invalidParams.Add(request.NewErrParamMinLen("PostalCode", 1)) + } + if s.StateOrRegion == nil { + invalidParams.Add(request.NewErrParamRequired("StateOrRegion")) + } + if s.StateOrRegion != nil && len(*s.StateOrRegion) < 1 { + invalidParams.Add(request.NewErrParamMinLen("StateOrRegion", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetAddressLine1 sets the AddressLine1 field's value. +func (s *Address) SetAddressLine1(v string) *Address { + s.AddressLine1 = &v + return s +} + +// SetAddressLine2 sets the AddressLine2 field's value. +func (s *Address) SetAddressLine2(v string) *Address { + s.AddressLine2 = &v + return s +} + +// SetAddressLine3 sets the AddressLine3 field's value. +func (s *Address) SetAddressLine3(v string) *Address { + s.AddressLine3 = &v + return s +} + +// SetCity sets the City field's value. +func (s *Address) SetCity(v string) *Address { + s.City = &v + return s +} + +// SetContactName sets the ContactName field's value. +func (s *Address) SetContactName(v string) *Address { + s.ContactName = &v + return s +} + +// SetContactPhoneNumber sets the ContactPhoneNumber field's value. +func (s *Address) SetContactPhoneNumber(v string) *Address { + s.ContactPhoneNumber = &v + return s +} + +// SetCountryCode sets the CountryCode field's value. +func (s *Address) SetCountryCode(v string) *Address { + s.CountryCode = &v + return s +} + +// SetDistrictOrCounty sets the DistrictOrCounty field's value. +func (s *Address) SetDistrictOrCounty(v string) *Address { + s.DistrictOrCounty = &v + return s +} + +// SetMunicipality sets the Municipality field's value. +func (s *Address) SetMunicipality(v string) *Address { + s.Municipality = &v + return s +} + +// SetPostalCode sets the PostalCode field's value. +func (s *Address) SetPostalCode(v string) *Address { + s.PostalCode = &v + return s +} + +// SetStateOrRegion sets the StateOrRegion field's value. +func (s *Address) SetStateOrRegion(v string) *Address { + s.StateOrRegion = &v + return s +} + +type CancelOrderInput struct { + _ struct{} `type:"structure" nopayload:"true"` + + // The ID of the order to cancel. + // + // OrderId is a required field + OrderId *string `location:"uri" locationName:"OrderId" 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 CancelOrderInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s CancelOrderInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *CancelOrderInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "CancelOrderInput"} + if s.OrderId == nil { + invalidParams.Add(request.NewErrParamRequired("OrderId")) + } + if s.OrderId != nil && len(*s.OrderId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("OrderId", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetOrderId sets the OrderId field's value. +func (s *CancelOrderInput) SetOrderId(v string) *CancelOrderInput { + s.OrderId = &v + return s +} + +type CancelOrderOutput 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 CancelOrderOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s CancelOrderOutput) GoString() string { + return s.String() +} + +// Information about a catalog item. +type CatalogItem struct { + _ struct{} `type:"structure"` + + // The ID of the catalog item. + CatalogItemId *string `min:"1" type:"string"` + + // Information about the EC2 capacity of an item. + EC2Capacities []*EC2Capacity `type:"list"` + + // The status of a catalog item. + ItemStatus *string `type:"string" enum:"CatalogItemStatus"` + + // Information about the power draw of an item. + PowerKva *float64 `type:"float"` + + // The supported storage options for the catalog item. + SupportedStorage []*string `type:"list"` + + // The uplink speed this catalog item requires for the connection to the Region. + SupportedUplinkGbps []*int64 `type:"list"` + + // The weight of the item in pounds. + WeightLbs *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 CatalogItem) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s CatalogItem) GoString() string { + return s.String() +} + +// SetCatalogItemId sets the CatalogItemId field's value. +func (s *CatalogItem) SetCatalogItemId(v string) *CatalogItem { + s.CatalogItemId = &v + return s +} + +// SetEC2Capacities sets the EC2Capacities field's value. +func (s *CatalogItem) SetEC2Capacities(v []*EC2Capacity) *CatalogItem { + s.EC2Capacities = v + return s +} + +// SetItemStatus sets the ItemStatus field's value. +func (s *CatalogItem) SetItemStatus(v string) *CatalogItem { + s.ItemStatus = &v + return s +} + +// SetPowerKva sets the PowerKva field's value. +func (s *CatalogItem) SetPowerKva(v float64) *CatalogItem { + s.PowerKva = &v + return s +} + +// SetSupportedStorage sets the SupportedStorage field's value. +func (s *CatalogItem) SetSupportedStorage(v []*string) *CatalogItem { + s.SupportedStorage = v + return s +} + +// SetSupportedUplinkGbps sets the SupportedUplinkGbps field's value. +func (s *CatalogItem) SetSupportedUplinkGbps(v []*int64) *CatalogItem { + s.SupportedUplinkGbps = v + return s +} + +// SetWeightLbs sets the WeightLbs field's value. +func (s *CatalogItem) SetWeightLbs(v int64) *CatalogItem { + s.WeightLbs = &v + return s +} + +// Updating or deleting this resource can cause an inconsistent state. +type ConflictException struct { + _ struct{} `type:"structure"` + RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` + + Message_ *string `locationName:"Message" min:"1" type:"string"` + + // The ID of the resource causing the conflict. + ResourceId *string `min:"1" type:"string"` + + // The type of the resource causing the conflict. + ResourceType *string `type:"string" enum:"ResourceType"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s ConflictException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s ConflictException) GoString() string { + return s.String() +} + +func newErrorConflictException(v protocol.ResponseMetadata) error { + return &ConflictException{ + RespMetadata: v, + } +} + +// Code returns the exception type name. +func (s *ConflictException) Code() string { + return "ConflictException" +} + +// Message returns the exception's message. +func (s *ConflictException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s *ConflictException) OrigErr() error { + return nil +} + +func (s *ConflictException) Error() string { + return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s *ConflictException) StatusCode() int { + return s.RespMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s *ConflictException) RequestID() string { + return s.RespMetadata.RequestID +} + +type CreateOrderInput struct { + _ struct{} `type:"structure"` + + // The line items that make up the order. + // + // LineItems is a required field + LineItems []*LineItemRequest `min:"1" type:"list" required:"true"` + + // The ID or the Amazon Resource Name (ARN) of the Outpost. + // + // OutpostIdentifier is a required field + OutpostIdentifier *string `min:"1" type:"string" required:"true"` + + // The payment option for the order. + // + // PaymentOption is a required field + PaymentOption *string `type:"string" required:"true" enum:"PaymentOption"` + + // The payment terms for the order. + PaymentTerm *string `type:"string" enum:"PaymentTerm"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s CreateOrderInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s CreateOrderInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *CreateOrderInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "CreateOrderInput"} + if s.LineItems == nil { + invalidParams.Add(request.NewErrParamRequired("LineItems")) + } + if s.LineItems != nil && len(s.LineItems) < 1 { + invalidParams.Add(request.NewErrParamMinLen("LineItems", 1)) + } + if s.OutpostIdentifier == nil { + invalidParams.Add(request.NewErrParamRequired("OutpostIdentifier")) + } + if s.OutpostIdentifier != nil && len(*s.OutpostIdentifier) < 1 { + invalidParams.Add(request.NewErrParamMinLen("OutpostIdentifier", 1)) + } + if s.PaymentOption == nil { + invalidParams.Add(request.NewErrParamRequired("PaymentOption")) + } + if s.LineItems != nil { + for i, v := range s.LineItems { + if v == nil { + continue + } + if err := v.Validate(); err != nil { + invalidParams.AddNested(fmt.Sprintf("%s[%v]", "LineItems", i), err.(request.ErrInvalidParams)) + } + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetLineItems sets the LineItems field's value. +func (s *CreateOrderInput) SetLineItems(v []*LineItemRequest) *CreateOrderInput { + s.LineItems = v + return s +} + +// SetOutpostIdentifier sets the OutpostIdentifier field's value. +func (s *CreateOrderInput) SetOutpostIdentifier(v string) *CreateOrderInput { + s.OutpostIdentifier = &v + return s +} + +// SetPaymentOption sets the PaymentOption field's value. +func (s *CreateOrderInput) SetPaymentOption(v string) *CreateOrderInput { + s.PaymentOption = &v + return s +} + +// SetPaymentTerm sets the PaymentTerm field's value. +func (s *CreateOrderInput) SetPaymentTerm(v string) *CreateOrderInput { + s.PaymentTerm = &v + return s +} + +type CreateOrderOutput struct { + _ struct{} `type:"structure"` + + // Information about this order. + Order *Order `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 CreateOrderOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s CreateOrderOutput) GoString() string { + return s.String() +} + +// SetOrder sets the Order field's value. +func (s *CreateOrderOutput) SetOrder(v *Order) *CreateOrderOutput { + s.Order = v + return s +} + +type CreateOutpostInput struct { + _ struct{} `type:"structure"` + + // The Availability Zone. + AvailabilityZone *string `min:"1" type:"string"` + + // The ID of the Availability Zone. + AvailabilityZoneId *string `min:"1" type:"string"` + + // The description of the Outpost. + Description *string `type:"string"` + + // The name of the Outpost. + // + // Name is a required field + Name *string `min:"1" type:"string" required:"true"` + + // The ID of the site. + // + // SiteId is a required field + SiteId *string `min:"1" type:"string" required:"true"` + + // The tags to apply to the Outpost. + 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 CreateOutpostInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s CreateOutpostInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *CreateOutpostInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "CreateOutpostInput"} + if s.AvailabilityZone != nil && len(*s.AvailabilityZone) < 1 { + invalidParams.Add(request.NewErrParamMinLen("AvailabilityZone", 1)) + } + if s.AvailabilityZoneId != nil && len(*s.AvailabilityZoneId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("AvailabilityZoneId", 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.SiteId == nil { + invalidParams.Add(request.NewErrParamRequired("SiteId")) + } + if s.SiteId != nil && len(*s.SiteId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("SiteId", 1)) + } + if s.Tags != nil && len(s.Tags) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Tags", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetAvailabilityZone sets the AvailabilityZone field's value. +func (s *CreateOutpostInput) SetAvailabilityZone(v string) *CreateOutpostInput { + s.AvailabilityZone = &v + return s +} + +// SetAvailabilityZoneId sets the AvailabilityZoneId field's value. +func (s *CreateOutpostInput) SetAvailabilityZoneId(v string) *CreateOutpostInput { + s.AvailabilityZoneId = &v + return s +} + +// SetDescription sets the Description field's value. +func (s *CreateOutpostInput) SetDescription(v string) *CreateOutpostInput { + s.Description = &v + return s +} + +// SetName sets the Name field's value. +func (s *CreateOutpostInput) SetName(v string) *CreateOutpostInput { + s.Name = &v + return s +} + +// SetSiteId sets the SiteId field's value. +func (s *CreateOutpostInput) SetSiteId(v string) *CreateOutpostInput { + s.SiteId = &v + return s +} + +// SetTags sets the Tags field's value. +func (s *CreateOutpostInput) SetTags(v map[string]*string) *CreateOutpostInput { + s.Tags = v + return s +} + +type CreateOutpostOutput struct { + _ struct{} `type:"structure"` + + // Information about an Outpost. + Outpost *Outpost `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 CreateOutpostOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s CreateOutpostOutput) GoString() string { + return s.String() +} + +// SetOutpost sets the Outpost field's value. +func (s *CreateOutpostOutput) SetOutpost(v *Outpost) *CreateOutpostOutput { + s.Outpost = v + return s +} + +type CreateSiteInput struct { + _ struct{} `type:"structure"` + + // The description of the site. + Description *string `min:"1" type:"string"` + + // The name of the site. + // + // Name is a required field + Name *string `min:"1" type:"string" required:"true"` + + // Additional information that you provide about site access requirements, electrician + // scheduling, personal protective equipment, or regulation of equipment materials + // that could affect your installation process. + Notes *string `min:"1" type:"string"` + + // The location to install and power on the hardware. This address might be + // different from the shipping address. + OperatingAddress *Address `type:"structure"` + + // Information about the physical and logistical details for the rack at this + // site. For more information about hardware requirements for racks, see Network + // readiness checklist (https://docs.aws.amazon.com/outposts/latest/userguide/outposts-requirements.html#checklist) + // in the Amazon Web Services Outposts User Guide. + RackPhysicalProperties *RackPhysicalProperties `type:"structure"` + + // The location to ship the hardware. This address might be different from the + // operating address. + ShippingAddress *Address `type:"structure"` + + // The tags to apply to a site. + 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 CreateSiteInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s CreateSiteInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *CreateSiteInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "CreateSiteInput"} + if s.Description != nil && len(*s.Description) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Description", 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.Notes != nil && len(*s.Notes) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Notes", 1)) + } + if s.Tags != nil && len(s.Tags) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Tags", 1)) + } + if s.OperatingAddress != nil { + if err := s.OperatingAddress.Validate(); err != nil { + invalidParams.AddNested("OperatingAddress", err.(request.ErrInvalidParams)) + } + } + if s.ShippingAddress != nil { + if err := s.ShippingAddress.Validate(); err != nil { + invalidParams.AddNested("ShippingAddress", err.(request.ErrInvalidParams)) + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetDescription sets the Description field's value. +func (s *CreateSiteInput) SetDescription(v string) *CreateSiteInput { + s.Description = &v + return s +} + +// SetName sets the Name field's value. +func (s *CreateSiteInput) SetName(v string) *CreateSiteInput { + s.Name = &v + return s +} + +// SetNotes sets the Notes field's value. +func (s *CreateSiteInput) SetNotes(v string) *CreateSiteInput { + s.Notes = &v + return s +} + +// SetOperatingAddress sets the OperatingAddress field's value. +func (s *CreateSiteInput) SetOperatingAddress(v *Address) *CreateSiteInput { + s.OperatingAddress = v + return s +} + +// SetRackPhysicalProperties sets the RackPhysicalProperties field's value. +func (s *CreateSiteInput) SetRackPhysicalProperties(v *RackPhysicalProperties) *CreateSiteInput { + s.RackPhysicalProperties = v + return s +} + +// SetShippingAddress sets the ShippingAddress field's value. +func (s *CreateSiteInput) SetShippingAddress(v *Address) *CreateSiteInput { + s.ShippingAddress = v + return s +} + +// SetTags sets the Tags field's value. +func (s *CreateSiteInput) SetTags(v map[string]*string) *CreateSiteInput { + s.Tags = v + return s +} + +type CreateSiteOutput struct { + _ struct{} `type:"structure"` + + // Information about a site. + Site *Site `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 CreateSiteOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s CreateSiteOutput) GoString() string { + return s.String() +} + +// SetSite sets the Site field's value. +func (s *CreateSiteOutput) SetSite(v *Site) *CreateSiteOutput { + s.Site = v + return s +} + +type DeleteOutpostInput struct { + _ struct{} `type:"structure" nopayload:"true"` + + // The ID of the Outpost. + // + // OutpostId is a required field + OutpostId *string `location:"uri" locationName:"OutpostId" 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 DeleteOutpostInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s DeleteOutpostInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DeleteOutpostInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DeleteOutpostInput"} + if s.OutpostId == nil { + invalidParams.Add(request.NewErrParamRequired("OutpostId")) + } + if s.OutpostId != nil && len(*s.OutpostId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("OutpostId", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetOutpostId sets the OutpostId field's value. +func (s *DeleteOutpostInput) SetOutpostId(v string) *DeleteOutpostInput { + s.OutpostId = &v + return s +} + +type DeleteOutpostOutput 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 DeleteOutpostOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s DeleteOutpostOutput) GoString() string { + return s.String() +} + +type DeleteSiteInput struct { + _ struct{} `type:"structure" nopayload:"true"` + + // The ID of the site. + // + // SiteId is a required field + SiteId *string `location:"uri" locationName:"SiteId" 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 DeleteSiteInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s DeleteSiteInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DeleteSiteInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DeleteSiteInput"} + if s.SiteId == nil { + invalidParams.Add(request.NewErrParamRequired("SiteId")) + } + if s.SiteId != nil && len(*s.SiteId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("SiteId", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetSiteId sets the SiteId field's value. +func (s *DeleteSiteInput) SetSiteId(v string) *DeleteSiteInput { + s.SiteId = &v + return s +} + +type DeleteSiteOutput 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 DeleteSiteOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s DeleteSiteOutput) GoString() string { + return s.String() +} + +// Information about EC2 capacity. +type EC2Capacity struct { + _ struct{} `type:"structure"` + + // The family of the EC2 capacity. + Family *string `min:"1" type:"string"` + + // The maximum size of the EC2 capacity. + MaxSize *string `type:"string"` + + // The quantity of the EC2 capacity. + Quantity *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 EC2Capacity) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s EC2Capacity) GoString() string { + return s.String() +} + +// SetFamily sets the Family field's value. +func (s *EC2Capacity) SetFamily(v string) *EC2Capacity { + s.Family = &v + return s +} + +// SetMaxSize sets the MaxSize field's value. +func (s *EC2Capacity) SetMaxSize(v string) *EC2Capacity { + s.MaxSize = &v + return s +} + +// SetQuantity sets the Quantity field's value. +func (s *EC2Capacity) SetQuantity(v string) *EC2Capacity { + s.Quantity = &v + return s +} + +type GetCatalogItemInput struct { + _ struct{} `type:"structure" nopayload:"true"` + + // The ID of the catalog item. + // + // CatalogItemId is a required field + CatalogItemId *string `location:"uri" locationName:"CatalogItemId" 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 GetCatalogItemInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s GetCatalogItemInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *GetCatalogItemInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "GetCatalogItemInput"} + if s.CatalogItemId == nil { + invalidParams.Add(request.NewErrParamRequired("CatalogItemId")) + } + if s.CatalogItemId != nil && len(*s.CatalogItemId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("CatalogItemId", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetCatalogItemId sets the CatalogItemId field's value. +func (s *GetCatalogItemInput) SetCatalogItemId(v string) *GetCatalogItemInput { + s.CatalogItemId = &v + return s +} + +type GetCatalogItemOutput struct { + _ struct{} `type:"structure"` + + // Information about this catalog item. + CatalogItem *CatalogItem `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 GetCatalogItemOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s GetCatalogItemOutput) GoString() string { + return s.String() +} + +// SetCatalogItem sets the CatalogItem field's value. +func (s *GetCatalogItemOutput) SetCatalogItem(v *CatalogItem) *GetCatalogItemOutput { + s.CatalogItem = v + return s +} + +type GetOrderInput struct { + _ struct{} `type:"structure" nopayload:"true"` + + // The ID of the order. + // + // OrderId is a required field + OrderId *string `location:"uri" locationName:"OrderId" 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 GetOrderInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s GetOrderInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *GetOrderInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "GetOrderInput"} + if s.OrderId == nil { + invalidParams.Add(request.NewErrParamRequired("OrderId")) + } + if s.OrderId != nil && len(*s.OrderId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("OrderId", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetOrderId sets the OrderId field's value. +func (s *GetOrderInput) SetOrderId(v string) *GetOrderInput { + s.OrderId = &v + return s +} + +type GetOrderOutput struct { + _ struct{} `type:"structure"` + + // Information about an order. + Order *Order `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 GetOrderOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s GetOrderOutput) GoString() string { + return s.String() +} + +// SetOrder sets the Order field's value. +func (s *GetOrderOutput) SetOrder(v *Order) *GetOrderOutput { + s.Order = v + return s +} + +type GetOutpostInput struct { + _ struct{} `type:"structure" nopayload:"true"` + + // The ID of the Outpost. + // + // OutpostId is a required field + OutpostId *string `location:"uri" locationName:"OutpostId" 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 GetOutpostInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s GetOutpostInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *GetOutpostInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "GetOutpostInput"} + if s.OutpostId == nil { + invalidParams.Add(request.NewErrParamRequired("OutpostId")) + } + if s.OutpostId != nil && len(*s.OutpostId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("OutpostId", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetOutpostId sets the OutpostId field's value. +func (s *GetOutpostInput) SetOutpostId(v string) *GetOutpostInput { + s.OutpostId = &v + return s +} + +type GetOutpostInstanceTypesInput struct { + _ struct{} `type:"structure" nopayload:"true"` + + // The maximum page size. + MaxResults *int64 `location:"querystring" locationName:"MaxResults" min:"1" type:"integer"` + + // The pagination token. + NextToken *string `location:"querystring" locationName:"NextToken" min:"1" type:"string"` + + // The ID of the Outpost. + // + // OutpostId is a required field + OutpostId *string `location:"uri" locationName:"OutpostId" 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 GetOutpostInstanceTypesInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s GetOutpostInstanceTypesInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *GetOutpostInstanceTypesInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "GetOutpostInstanceTypesInput"} + 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 s.OutpostId == nil { + invalidParams.Add(request.NewErrParamRequired("OutpostId")) + } + if s.OutpostId != nil && len(*s.OutpostId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("OutpostId", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetMaxResults sets the MaxResults field's value. +func (s *GetOutpostInstanceTypesInput) SetMaxResults(v int64) *GetOutpostInstanceTypesInput { + s.MaxResults = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *GetOutpostInstanceTypesInput) SetNextToken(v string) *GetOutpostInstanceTypesInput { + s.NextToken = &v + return s +} + +// SetOutpostId sets the OutpostId field's value. +func (s *GetOutpostInstanceTypesInput) SetOutpostId(v string) *GetOutpostInstanceTypesInput { + s.OutpostId = &v + return s +} + +type GetOutpostInstanceTypesOutput struct { + _ struct{} `type:"structure"` + + // Information about the instance types. + InstanceTypes []*InstanceTypeItem `type:"list"` + + // The pagination token. + NextToken *string `min:"1" type:"string"` + + // The Amazon Resource Name (ARN) of the Outpost. + OutpostArn *string `min:"1" type:"string"` + + // The ID of the Outpost. + OutpostId *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 GetOutpostInstanceTypesOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s GetOutpostInstanceTypesOutput) GoString() string { + return s.String() +} + +// SetInstanceTypes sets the InstanceTypes field's value. +func (s *GetOutpostInstanceTypesOutput) SetInstanceTypes(v []*InstanceTypeItem) *GetOutpostInstanceTypesOutput { + s.InstanceTypes = v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *GetOutpostInstanceTypesOutput) SetNextToken(v string) *GetOutpostInstanceTypesOutput { + s.NextToken = &v + return s +} + +// SetOutpostArn sets the OutpostArn field's value. +func (s *GetOutpostInstanceTypesOutput) SetOutpostArn(v string) *GetOutpostInstanceTypesOutput { + s.OutpostArn = &v + return s +} + +// SetOutpostId sets the OutpostId field's value. +func (s *GetOutpostInstanceTypesOutput) SetOutpostId(v string) *GetOutpostInstanceTypesOutput { + s.OutpostId = &v + return s +} - Message_ *string `locationName:"Message" min:"1" type:"string"` +type GetOutpostOutput struct { + _ struct{} `type:"structure"` + + // Information about an Outpost. + Outpost *Outpost `type:"structure"` } // String returns the string representation. @@ -1124,7 +3670,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 GetOutpostOutput) String() string { return awsutil.Prettify(s) } @@ -1133,60 +3679,246 @@ 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 GetOutpostOutput) GoString() string { return s.String() } -func newErrorAccessDeniedException(v protocol.ResponseMetadata) error { - return &AccessDeniedException{ - RespMetadata: v, - } +// SetOutpost sets the Outpost field's value. +func (s *GetOutpostOutput) SetOutpost(v *Outpost) *GetOutpostOutput { + s.Outpost = v + return s } -// Code returns the exception type name. -func (s *AccessDeniedException) Code() string { - return "AccessDeniedException" +type GetSiteAddressInput struct { + _ struct{} `type:"structure" nopayload:"true"` + + // The type of the address you request. + // + // AddressType is a required field + AddressType *string `location:"querystring" locationName:"AddressType" type:"string" required:"true" enum:"AddressType"` + + // The ID of the site. + // + // SiteId is a required field + SiteId *string `location:"uri" locationName:"SiteId" min:"1" type:"string" required:"true"` } -// Message returns the exception's message. -func (s *AccessDeniedException) Message() string { - if s.Message_ != nil { - return *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 GetSiteAddressInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s GetSiteAddressInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *GetSiteAddressInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "GetSiteAddressInput"} + if s.AddressType == nil { + invalidParams.Add(request.NewErrParamRequired("AddressType")) } - return "" + if s.SiteId == nil { + invalidParams.Add(request.NewErrParamRequired("SiteId")) + } + if s.SiteId != nil && len(*s.SiteId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("SiteId", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil } -// OrigErr always returns nil, satisfies awserr.Error interface. -func (s *AccessDeniedException) OrigErr() error { +// SetAddressType sets the AddressType field's value. +func (s *GetSiteAddressInput) SetAddressType(v string) *GetSiteAddressInput { + s.AddressType = &v + return s +} + +// SetSiteId sets the SiteId field's value. +func (s *GetSiteAddressInput) SetSiteId(v string) *GetSiteAddressInput { + s.SiteId = &v + return s +} + +type GetSiteAddressOutput struct { + _ struct{} `type:"structure"` + + // Information about the address. + Address *Address `type:"structure"` + + // The type of the address you receive. + AddressType *string `type:"string" enum:"AddressType"` + + // The ID of the site. + SiteId *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 GetSiteAddressOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s GetSiteAddressOutput) GoString() string { + return s.String() +} + +// SetAddress sets the Address field's value. +func (s *GetSiteAddressOutput) SetAddress(v *Address) *GetSiteAddressOutput { + s.Address = v + return s +} + +// SetAddressType sets the AddressType field's value. +func (s *GetSiteAddressOutput) SetAddressType(v string) *GetSiteAddressOutput { + s.AddressType = &v + return s +} + +// SetSiteId sets the SiteId field's value. +func (s *GetSiteAddressOutput) SetSiteId(v string) *GetSiteAddressOutput { + s.SiteId = &v + return s +} + +type GetSiteInput struct { + _ struct{} `type:"structure" nopayload:"true"` + + // The ID of the site. + // + // SiteId is a required field + SiteId *string `location:"uri" locationName:"SiteId" 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 GetSiteInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s GetSiteInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *GetSiteInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "GetSiteInput"} + if s.SiteId == nil { + invalidParams.Add(request.NewErrParamRequired("SiteId")) + } + if s.SiteId != nil && len(*s.SiteId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("SiteId", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } return nil } -func (s *AccessDeniedException) Error() string { - return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +// SetSiteId sets the SiteId field's value. +func (s *GetSiteInput) SetSiteId(v string) *GetSiteInput { + s.SiteId = &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 +type GetSiteOutput struct { + _ struct{} `type:"structure"` + + // Information about a site. + Site *Site `type:"structure"` } -// RequestID returns the service's response RequestID for request. -func (s *AccessDeniedException) RequestID() string { - return s.RespMetadata.RequestID +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s GetSiteOutput) String() string { + return awsutil.Prettify(s) } -// Updating or deleting this resource can cause an inconsistent state. -type ConflictException struct { +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s GetSiteOutput) GoString() string { + return s.String() +} + +// SetSite sets the Site field's value. +func (s *GetSiteOutput) SetSite(v *Site) *GetSiteOutput { + s.Site = v + return s +} + +// Information about an instance type. +type InstanceTypeItem struct { + _ struct{} `type:"structure"` + + // The instance type. + InstanceType *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 InstanceTypeItem) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s InstanceTypeItem) GoString() string { + return s.String() +} + +// SetInstanceType sets the InstanceType field's value. +func (s *InstanceTypeItem) SetInstanceType(v string) *InstanceTypeItem { + s.InstanceType = &v + return s +} + +// An internal error has occurred. +type InternalServerException struct { _ struct{} `type:"structure"` RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` Message_ *string `locationName:"Message" min:"1" type:"string"` - - // The ID of the resource causing the conflict. - ResourceId *string `min:"1" type:"string"` - - // The type of the resource causing the conflict. - ResourceType *string `type:"string" enum:"ResourceType"` } // String returns the string representation. @@ -1194,7 +3926,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 InternalServerException) String() string { return awsutil.Prettify(s) } @@ -1203,23 +3935,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 InternalServerException) GoString() string { return s.String() } -func newErrorConflictException(v protocol.ResponseMetadata) error { - return &ConflictException{ +func newErrorInternalServerException(v protocol.ResponseMetadata) error { + return &InternalServerException{ RespMetadata: v, } } // Code returns the exception type name. -func (s *ConflictException) Code() string { - return "ConflictException" +func (s *InternalServerException) Code() string { + return "InternalServerException" } // Message returns the exception's message. -func (s *ConflictException) Message() string { +func (s *InternalServerException) Message() string { if s.Message_ != nil { return *s.Message_ } @@ -1227,44 +3959,39 @@ func (s *ConflictException) Message() string { } // OrigErr always returns nil, satisfies awserr.Error interface. -func (s *ConflictException) OrigErr() error { +func (s *InternalServerException) OrigErr() error { return nil } -func (s *ConflictException) Error() string { - return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String()) +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 *ConflictException) StatusCode() int { +func (s *InternalServerException) StatusCode() int { return s.RespMetadata.StatusCode } // RequestID returns the service's response RequestID for request. -func (s *ConflictException) RequestID() string { +func (s *InternalServerException) RequestID() string { return s.RespMetadata.RequestID } -type CreateOrderInput struct { - _ struct{} `type:"structure"` - - // The line items that make up the order. - // - // LineItems is a required field - LineItems []*LineItemRequest `min:"1" type:"list" required:"true"` +// Information about a line item. +type LineItem struct { + _ struct{} `type:"structure"` - // The ID or the Amazon Resource Name (ARN) of the Outpost. - // - // OutpostIdentifier is a required field - OutpostIdentifier *string `min:"1" type:"string" required:"true"` + // The ID of the catalog item. + CatalogItemId *string `min:"1" type:"string"` - // The payment option for the order. - // - // PaymentOption is a required field - PaymentOption *string `type:"string" required:"true" enum:"PaymentOption"` + // The ID of the line item. + LineItemId *string `type:"string"` - // The payment terms for the order. - PaymentTerm *string `type:"string" enum:"PaymentTerm"` + // The quantity of the line item. + Quantity *int64 `min:"1" type:"integer"` + + // The status of the line item. + Status *string `type:"string" enum:"LineItemStatus"` } // String returns the string representation. @@ -1272,7 +3999,7 @@ type CreateOrderInput 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 CreateOrderInput) String() string { +func (s LineItem) String() string { return awsutil.Prettify(s) } @@ -1281,74 +4008,43 @@ func (s CreateOrderInput) 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 CreateOrderInput) GoString() string { +func (s LineItem) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *CreateOrderInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "CreateOrderInput"} - if s.LineItems == nil { - invalidParams.Add(request.NewErrParamRequired("LineItems")) - } - if s.LineItems != nil && len(s.LineItems) < 1 { - invalidParams.Add(request.NewErrParamMinLen("LineItems", 1)) - } - if s.OutpostIdentifier == nil { - invalidParams.Add(request.NewErrParamRequired("OutpostIdentifier")) - } - if s.OutpostIdentifier != nil && len(*s.OutpostIdentifier) < 1 { - invalidParams.Add(request.NewErrParamMinLen("OutpostIdentifier", 1)) - } - if s.PaymentOption == nil { - invalidParams.Add(request.NewErrParamRequired("PaymentOption")) - } - if s.LineItems != nil { - for i, v := range s.LineItems { - if v == nil { - continue - } - if err := v.Validate(); err != nil { - invalidParams.AddNested(fmt.Sprintf("%s[%v]", "LineItems", i), err.(request.ErrInvalidParams)) - } - } - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -// SetLineItems sets the LineItems field's value. -func (s *CreateOrderInput) SetLineItems(v []*LineItemRequest) *CreateOrderInput { - s.LineItems = v +// SetCatalogItemId sets the CatalogItemId field's value. +func (s *LineItem) SetCatalogItemId(v string) *LineItem { + s.CatalogItemId = &v return s } -// SetOutpostIdentifier sets the OutpostIdentifier field's value. -func (s *CreateOrderInput) SetOutpostIdentifier(v string) *CreateOrderInput { - s.OutpostIdentifier = &v +// SetLineItemId sets the LineItemId field's value. +func (s *LineItem) SetLineItemId(v string) *LineItem { + s.LineItemId = &v return s } -// SetPaymentOption sets the PaymentOption field's value. -func (s *CreateOrderInput) SetPaymentOption(v string) *CreateOrderInput { - s.PaymentOption = &v +// SetQuantity sets the Quantity field's value. +func (s *LineItem) SetQuantity(v int64) *LineItem { + s.Quantity = &v return s } -// SetPaymentTerm sets the PaymentTerm field's value. -func (s *CreateOrderInput) SetPaymentTerm(v string) *CreateOrderInput { - s.PaymentTerm = &v +// SetStatus sets the Status field's value. +func (s *LineItem) SetStatus(v string) *LineItem { + s.Status = &v return s } -type CreateOrderOutput struct { +// Information about a line item request. +type LineItemRequest struct { _ struct{} `type:"structure"` - // Information about this order. - Order *Order `type:"structure"` + // The ID of the catalog item. + CatalogItemId *string `min:"1" type:"string"` + + // The quantity of a line item request. + Quantity *int64 `min:"1" type:"integer"` } // String returns the string representation. @@ -1356,7 +4052,7 @@ type CreateOrderOutput 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 CreateOrderOutput) String() string { +func (s LineItemRequest) String() string { return awsutil.Prettify(s) } @@ -1365,40 +4061,67 @@ func (s CreateOrderOutput) 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 CreateOrderOutput) GoString() string { +func (s LineItemRequest) GoString() string { return s.String() } -// SetOrder sets the Order field's value. -func (s *CreateOrderOutput) SetOrder(v *Order) *CreateOrderOutput { - s.Order = v - return s -} +// Validate inspects the fields of the type to determine if they are valid. +func (s *LineItemRequest) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "LineItemRequest"} + if s.CatalogItemId != nil && len(*s.CatalogItemId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("CatalogItemId", 1)) + } + if s.Quantity != nil && *s.Quantity < 1 { + invalidParams.Add(request.NewErrParamMinValue("Quantity", 1)) + } -type CreateOutpostInput struct { - _ struct{} `type:"structure"` + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} - // The Availability Zone. - AvailabilityZone *string `min:"1" type:"string"` +// SetCatalogItemId sets the CatalogItemId field's value. +func (s *LineItemRequest) SetCatalogItemId(v string) *LineItemRequest { + s.CatalogItemId = &v + return s +} - // The ID of the Availability Zone. - AvailabilityZoneId *string `min:"1" type:"string"` +// SetQuantity sets the Quantity field's value. +func (s *LineItemRequest) SetQuantity(v int64) *LineItemRequest { + s.Quantity = &v + return s +} - // The description of the Outpost. - Description *string `type:"string"` +type ListCatalogItemsInput struct { + _ struct{} `type:"structure" nopayload:"true"` - // The name of the Outpost. + // A filter for EC2 family options for items in the catalog. // - // Name is a required field - Name *string `min:"1" type:"string" required:"true"` + // Filter values are case sensitive. If you specify multiple values for a filter, + // the values are joined with an OR, and the request returns all results that + // match any of the specified values. + EC2FamilyFilter []*string `location:"querystring" locationName:"EC2FamilyFilter" type:"list"` - // The ID of the site. + // A filter for the class of items in the catalog. // - // SiteId is a required field - SiteId *string `min:"1" type:"string" required:"true"` + // Filter values are case sensitive. If you specify multiple values for a filter, + // the values are joined with an OR, and the request returns all results that + // match any of the specified values. + ItemClassFilter []*string `location:"querystring" locationName:"ItemClassFilter" type:"list"` - // The tags to apply to the Outpost. - Tags map[string]*string `min:"1" type:"map"` + // The maximum page size. + MaxResults *int64 `location:"querystring" locationName:"MaxResults" min:"1" type:"integer"` + + // The pagination token. + NextToken *string `location:"querystring" locationName:"NextToken" min:"1" type:"string"` + + // A filter for the storage options of items in the catalog. + // + // Filter values are case sensitive. If you specify multiple values for a filter, + // the values are joined with an OR, and the request returns all results that + // match any of the specified values. + SupportedStorageFilter []*string `location:"querystring" locationName:"SupportedStorageFilter" type:"list"` } // String returns the string representation. @@ -1406,7 +4129,7 @@ type CreateOutpostInput 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 CreateOutpostInput) String() string { +func (s ListCatalogItemsInput) String() string { return awsutil.Prettify(s) } @@ -1415,33 +4138,18 @@ func (s CreateOutpostInput) 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 CreateOutpostInput) GoString() string { +func (s ListCatalogItemsInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *CreateOutpostInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "CreateOutpostInput"} - if s.AvailabilityZone != nil && len(*s.AvailabilityZone) < 1 { - invalidParams.Add(request.NewErrParamMinLen("AvailabilityZone", 1)) - } - if s.AvailabilityZoneId != nil && len(*s.AvailabilityZoneId) < 1 { - invalidParams.Add(request.NewErrParamMinLen("AvailabilityZoneId", 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.SiteId == nil { - invalidParams.Add(request.NewErrParamRequired("SiteId")) - } - if s.SiteId != nil && len(*s.SiteId) < 1 { - invalidParams.Add(request.NewErrParamMinLen("SiteId", 1)) +func (s *ListCatalogItemsInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ListCatalogItemsInput"} + if s.MaxResults != nil && *s.MaxResults < 1 { + invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) } - if s.Tags != nil && len(s.Tags) < 1 { - invalidParams.Add(request.NewErrParamMinLen("Tags", 1)) + if s.NextToken != nil && len(*s.NextToken) < 1 { + invalidParams.Add(request.NewErrParamMinLen("NextToken", 1)) } if invalidParams.Len() > 0 { @@ -1450,47 +4158,44 @@ func (s *CreateOutpostInput) Validate() error { return nil } -// SetAvailabilityZone sets the AvailabilityZone field's value. -func (s *CreateOutpostInput) SetAvailabilityZone(v string) *CreateOutpostInput { - s.AvailabilityZone = &v - return s -} - -// SetAvailabilityZoneId sets the AvailabilityZoneId field's value. -func (s *CreateOutpostInput) SetAvailabilityZoneId(v string) *CreateOutpostInput { - s.AvailabilityZoneId = &v +// SetEC2FamilyFilter sets the EC2FamilyFilter field's value. +func (s *ListCatalogItemsInput) SetEC2FamilyFilter(v []*string) *ListCatalogItemsInput { + s.EC2FamilyFilter = v return s } -// SetDescription sets the Description field's value. -func (s *CreateOutpostInput) SetDescription(v string) *CreateOutpostInput { - s.Description = &v +// SetItemClassFilter sets the ItemClassFilter field's value. +func (s *ListCatalogItemsInput) SetItemClassFilter(v []*string) *ListCatalogItemsInput { + s.ItemClassFilter = v return s } -// SetName sets the Name field's value. -func (s *CreateOutpostInput) SetName(v string) *CreateOutpostInput { - s.Name = &v +// SetMaxResults sets the MaxResults field's value. +func (s *ListCatalogItemsInput) SetMaxResults(v int64) *ListCatalogItemsInput { + s.MaxResults = &v return s } -// SetSiteId sets the SiteId field's value. -func (s *CreateOutpostInput) SetSiteId(v string) *CreateOutpostInput { - s.SiteId = &v +// SetNextToken sets the NextToken field's value. +func (s *ListCatalogItemsInput) SetNextToken(v string) *ListCatalogItemsInput { + s.NextToken = &v return s } -// SetTags sets the Tags field's value. -func (s *CreateOutpostInput) SetTags(v map[string]*string) *CreateOutpostInput { - s.Tags = v +// SetSupportedStorageFilter sets the SupportedStorageFilter field's value. +func (s *ListCatalogItemsInput) SetSupportedStorageFilter(v []*string) *ListCatalogItemsInput { + s.SupportedStorageFilter = v return s } -type CreateOutpostOutput struct { +type ListCatalogItemsOutput struct { _ struct{} `type:"structure"` - // Information about an Outpost. - Outpost *Outpost `type:"structure"` + // Information about the catalog items. + CatalogItems []*CatalogItem `type:"list"` + + // The pagination token. + NextToken *string `min:"1" type:"string"` } // String returns the string representation. @@ -1498,7 +4203,7 @@ type CreateOutpostOutput 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 CreateOutpostOutput) String() string { +func (s ListCatalogItemsOutput) String() string { return awsutil.Prettify(s) } @@ -1507,23 +4212,33 @@ func (s CreateOutpostOutput) 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 CreateOutpostOutput) GoString() string { +func (s ListCatalogItemsOutput) GoString() string { return s.String() } -// SetOutpost sets the Outpost field's value. -func (s *CreateOutpostOutput) SetOutpost(v *Outpost) *CreateOutpostOutput { - s.Outpost = v +// SetCatalogItems sets the CatalogItems field's value. +func (s *ListCatalogItemsOutput) SetCatalogItems(v []*CatalogItem) *ListCatalogItemsOutput { + s.CatalogItems = v return s } -type DeleteOutpostInput struct { +// SetNextToken sets the NextToken field's value. +func (s *ListCatalogItemsOutput) SetNextToken(v string) *ListCatalogItemsOutput { + s.NextToken = &v + return s +} + +type ListOrdersInput struct { _ struct{} `type:"structure" nopayload:"true"` - // The ID of the Outpost. - // - // OutpostId is a required field - OutpostId *string `location:"uri" locationName:"OutpostId" min:"1" type:"string" required:"true"` + // The maximum page size. + MaxResults *int64 `location:"querystring" locationName:"MaxResults" min:"1" type:"integer"` + + // The pagination token. + NextToken *string `location:"querystring" locationName:"NextToken" min:"1" type:"string"` + + // The ID or the Amazon Resource Name (ARN) of the Outpost. + OutpostIdentifierFilter *string `location:"querystring" locationName:"OutpostIdentifierFilter" min:"1" type:"string"` } // String returns the string representation. @@ -1531,7 +4246,7 @@ type DeleteOutpostInput 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 DeleteOutpostInput) String() string { +func (s ListOrdersInput) String() string { return awsutil.Prettify(s) } @@ -1540,18 +4255,21 @@ func (s DeleteOutpostInput) 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 DeleteOutpostInput) GoString() string { +func (s ListOrdersInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *DeleteOutpostInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DeleteOutpostInput"} - if s.OutpostId == nil { - invalidParams.Add(request.NewErrParamRequired("OutpostId")) +func (s *ListOrdersInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ListOrdersInput"} + if s.MaxResults != nil && *s.MaxResults < 1 { + invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) } - if s.OutpostId != nil && len(*s.OutpostId) < 1 { - invalidParams.Add(request.NewErrParamMinLen("OutpostId", 1)) + if s.NextToken != nil && len(*s.NextToken) < 1 { + invalidParams.Add(request.NewErrParamMinLen("NextToken", 1)) + } + if s.OutpostIdentifierFilter != nil && len(*s.OutpostIdentifierFilter) < 1 { + invalidParams.Add(request.NewErrParamMinLen("OutpostIdentifierFilter", 1)) } if invalidParams.Len() > 0 { @@ -1560,14 +4278,32 @@ func (s *DeleteOutpostInput) Validate() error { return nil } -// SetOutpostId sets the OutpostId field's value. -func (s *DeleteOutpostInput) SetOutpostId(v string) *DeleteOutpostInput { - s.OutpostId = &v +// SetMaxResults sets the MaxResults field's value. +func (s *ListOrdersInput) SetMaxResults(v int64) *ListOrdersInput { + s.MaxResults = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *ListOrdersInput) SetNextToken(v string) *ListOrdersInput { + s.NextToken = &v return s } -type DeleteOutpostOutput struct { +// SetOutpostIdentifierFilter sets the OutpostIdentifierFilter field's value. +func (s *ListOrdersInput) SetOutpostIdentifierFilter(v string) *ListOrdersInput { + s.OutpostIdentifierFilter = &v + return s +} + +type ListOrdersOutput struct { _ struct{} `type:"structure"` + + // The pagination token. + NextToken *string `min:"1" type:"string"` + + // Information about the orders. + Orders []*OrderSummary `type:"list"` } // String returns the string representation. @@ -1575,7 +4311,7 @@ type DeleteOutpostOutput 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 DeleteOutpostOutput) String() string { +func (s ListOrdersOutput) String() string { return awsutil.Prettify(s) } @@ -1584,17 +4320,51 @@ func (s DeleteOutpostOutput) 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 DeleteOutpostOutput) GoString() string { +func (s ListOrdersOutput) GoString() string { return s.String() } -type DeleteSiteInput struct { +// SetNextToken sets the NextToken field's value. +func (s *ListOrdersOutput) SetNextToken(v string) *ListOrdersOutput { + s.NextToken = &v + return s +} + +// SetOrders sets the Orders field's value. +func (s *ListOrdersOutput) SetOrders(v []*OrderSummary) *ListOrdersOutput { + s.Orders = v + return s +} + +type ListOutpostsInput struct { _ struct{} `type:"structure" nopayload:"true"` - // The ID of the site. + // A filter for the Availability Zone (us-east-1a) of the Outpost. // - // SiteId is a required field - SiteId *string `location:"uri" locationName:"SiteId" min:"1" type:"string" required:"true"` + // Filter values are case sensitive. If you specify multiple values for a filter, + // the values are joined with an OR, and the request returns all results that + // match any of the specified values. + AvailabilityZoneFilter []*string `location:"querystring" locationName:"AvailabilityZoneFilter" min:"1" type:"list"` + + // A filter for the AZ IDs (use1-az1) of the Outpost. + // + // Filter values are case sensitive. If you specify multiple values for a filter, + // the values are joined with an OR, and the request returns all results that + // match any of the specified values. + AvailabilityZoneIdFilter []*string `location:"querystring" locationName:"AvailabilityZoneIdFilter" min:"1" type:"list"` + + // A filter for the lifecycle status of the Outpost. + // + // Filter values are case sensitive. If you specify multiple values for a filter, + // the values are joined with an OR, and the request returns all results that + // match any of the specified values. + LifeCycleStatusFilter []*string `location:"querystring" locationName:"LifeCycleStatusFilter" min:"1" type:"list"` + + // The maximum page size. + MaxResults *int64 `location:"querystring" locationName:"MaxResults" min:"1" type:"integer"` + + // The pagination token. + NextToken *string `location:"querystring" locationName:"NextToken" min:"1" type:"string"` } // String returns the string representation. @@ -1602,7 +4372,7 @@ type DeleteSiteInput 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 DeleteSiteInput) String() string { +func (s ListOutpostsInput) String() string { return awsutil.Prettify(s) } @@ -1611,18 +4381,27 @@ func (s DeleteSiteInput) 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 DeleteSiteInput) GoString() string { +func (s ListOutpostsInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *DeleteSiteInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DeleteSiteInput"} - if s.SiteId == nil { - invalidParams.Add(request.NewErrParamRequired("SiteId")) +func (s *ListOutpostsInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ListOutpostsInput"} + if s.AvailabilityZoneFilter != nil && len(s.AvailabilityZoneFilter) < 1 { + invalidParams.Add(request.NewErrParamMinLen("AvailabilityZoneFilter", 1)) } - if s.SiteId != nil && len(*s.SiteId) < 1 { - invalidParams.Add(request.NewErrParamMinLen("SiteId", 1)) + if s.AvailabilityZoneIdFilter != nil && len(s.AvailabilityZoneIdFilter) < 1 { + invalidParams.Add(request.NewErrParamMinLen("AvailabilityZoneIdFilter", 1)) + } + if s.LifeCycleStatusFilter != nil && len(s.LifeCycleStatusFilter) < 1 { + invalidParams.Add(request.NewErrParamMinLen("LifeCycleStatusFilter", 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 { @@ -1631,41 +4410,44 @@ func (s *DeleteSiteInput) Validate() error { return nil } -// SetSiteId sets the SiteId field's value. -func (s *DeleteSiteInput) SetSiteId(v string) *DeleteSiteInput { - s.SiteId = &v +// SetAvailabilityZoneFilter sets the AvailabilityZoneFilter field's value. +func (s *ListOutpostsInput) SetAvailabilityZoneFilter(v []*string) *ListOutpostsInput { + s.AvailabilityZoneFilter = v return s } -type DeleteSiteOutput struct { - _ struct{} `type:"structure"` +// SetAvailabilityZoneIdFilter sets the AvailabilityZoneIdFilter field's value. +func (s *ListOutpostsInput) SetAvailabilityZoneIdFilter(v []*string) *ListOutpostsInput { + s.AvailabilityZoneIdFilter = 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 DeleteSiteOutput) String() string { - return awsutil.Prettify(s) +// SetLifeCycleStatusFilter sets the LifeCycleStatusFilter field's value. +func (s *ListOutpostsInput) SetLifeCycleStatusFilter(v []*string) *ListOutpostsInput { + s.LifeCycleStatusFilter = 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 DeleteSiteOutput) GoString() string { - return s.String() +// SetMaxResults sets the MaxResults field's value. +func (s *ListOutpostsInput) SetMaxResults(v int64) *ListOutpostsInput { + s.MaxResults = &v + return s } -type GetOutpostInput struct { - _ struct{} `type:"structure" nopayload:"true"` +// SetNextToken sets the NextToken field's value. +func (s *ListOutpostsInput) SetNextToken(v string) *ListOutpostsInput { + s.NextToken = &v + return s +} - // The ID of the Outpost. - // - // OutpostId is a required field - OutpostId *string `location:"uri" locationName:"OutpostId" min:"1" type:"string" required:"true"` +type ListOutpostsOutput struct { + _ struct{} `type:"structure"` + + // The pagination token. + NextToken *string `min:"1" type:"string"` + + // Information about the Outposts. + Outposts []*Outpost `type:"list"` } // String returns the string representation. @@ -1673,7 +4455,7 @@ type GetOutpostInput 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 GetOutpostInput) String() string { +func (s ListOutpostsOutput) String() string { return awsutil.Prettify(s) } @@ -1682,33 +4464,23 @@ func (s GetOutpostInput) 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 GetOutpostInput) GoString() string { +func (s ListOutpostsOutput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *GetOutpostInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "GetOutpostInput"} - if s.OutpostId == nil { - invalidParams.Add(request.NewErrParamRequired("OutpostId")) - } - if s.OutpostId != nil && len(*s.OutpostId) < 1 { - invalidParams.Add(request.NewErrParamMinLen("OutpostId", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil +// SetNextToken sets the NextToken field's value. +func (s *ListOutpostsOutput) SetNextToken(v string) *ListOutpostsOutput { + s.NextToken = &v + return s } -// SetOutpostId sets the OutpostId field's value. -func (s *GetOutpostInput) SetOutpostId(v string) *GetOutpostInput { - s.OutpostId = &v +// SetOutposts sets the Outposts field's value. +func (s *ListOutpostsOutput) SetOutposts(v []*Outpost) *ListOutpostsOutput { + s.Outposts = v return s } -type GetOutpostInstanceTypesInput struct { +type ListSitesInput struct { _ struct{} `type:"structure" nopayload:"true"` // The maximum page size. @@ -1716,11 +4488,6 @@ type GetOutpostInstanceTypesInput struct { // The pagination token. NextToken *string `location:"querystring" locationName:"NextToken" min:"1" type:"string"` - - // The ID of the Outpost. - // - // OutpostId is a required field - OutpostId *string `location:"uri" locationName:"OutpostId" min:"1" type:"string" required:"true"` } // String returns the string representation. @@ -1728,7 +4495,7 @@ type GetOutpostInstanceTypesInput 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 GetOutpostInstanceTypesInput) String() string { +func (s ListSitesInput) String() string { return awsutil.Prettify(s) } @@ -1737,25 +4504,19 @@ func (s GetOutpostInstanceTypesInput) 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 GetOutpostInstanceTypesInput) GoString() string { +func (s ListSitesInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *GetOutpostInstanceTypesInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "GetOutpostInstanceTypesInput"} +func (s *ListSitesInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ListSitesInput"} 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 s.OutpostId == nil { - invalidParams.Add(request.NewErrParamRequired("OutpostId")) - } - if s.OutpostId != nil && len(*s.OutpostId) < 1 { - invalidParams.Add(request.NewErrParamMinLen("OutpostId", 1)) - } if invalidParams.Len() > 0 { return invalidParams @@ -1764,37 +4525,25 @@ func (s *GetOutpostInstanceTypesInput) Validate() error { } // SetMaxResults sets the MaxResults field's value. -func (s *GetOutpostInstanceTypesInput) SetMaxResults(v int64) *GetOutpostInstanceTypesInput { +func (s *ListSitesInput) SetMaxResults(v int64) *ListSitesInput { s.MaxResults = &v return s } // SetNextToken sets the NextToken field's value. -func (s *GetOutpostInstanceTypesInput) SetNextToken(v string) *GetOutpostInstanceTypesInput { +func (s *ListSitesInput) SetNextToken(v string) *ListSitesInput { s.NextToken = &v return s } -// SetOutpostId sets the OutpostId field's value. -func (s *GetOutpostInstanceTypesInput) SetOutpostId(v string) *GetOutpostInstanceTypesInput { - s.OutpostId = &v - return s -} - -type GetOutpostInstanceTypesOutput struct { +type ListSitesOutput struct { _ struct{} `type:"structure"` - // Information about the instance types. - InstanceTypes []*InstanceTypeItem `type:"list"` - // The pagination token. NextToken *string `min:"1" type:"string"` - // The Amazon Resource Name (ARN) of the Outpost. - OutpostArn *string `min:"1" type:"string"` - - // The ID of the Outpost. - OutpostId *string `min:"1" type:"string"` + // Information about the sites. + Sites []*Site `type:"list"` } // String returns the string representation. @@ -1802,7 +4551,7 @@ type GetOutpostInstanceTypesOutput 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 GetOutpostInstanceTypesOutput) String() string { +func (s ListSitesOutput) String() string { return awsutil.Prettify(s) } @@ -1811,39 +4560,29 @@ func (s GetOutpostInstanceTypesOutput) 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 GetOutpostInstanceTypesOutput) GoString() string { +func (s ListSitesOutput) GoString() string { return s.String() } -// SetInstanceTypes sets the InstanceTypes field's value. -func (s *GetOutpostInstanceTypesOutput) SetInstanceTypes(v []*InstanceTypeItem) *GetOutpostInstanceTypesOutput { - s.InstanceTypes = v - return s -} - // SetNextToken sets the NextToken field's value. -func (s *GetOutpostInstanceTypesOutput) SetNextToken(v string) *GetOutpostInstanceTypesOutput { +func (s *ListSitesOutput) SetNextToken(v string) *ListSitesOutput { s.NextToken = &v return s } -// SetOutpostArn sets the OutpostArn field's value. -func (s *GetOutpostInstanceTypesOutput) SetOutpostArn(v string) *GetOutpostInstanceTypesOutput { - s.OutpostArn = &v - return s -} - -// SetOutpostId sets the OutpostId field's value. -func (s *GetOutpostInstanceTypesOutput) SetOutpostId(v string) *GetOutpostInstanceTypesOutput { - s.OutpostId = &v +// SetSites sets the Sites field's value. +func (s *ListSitesOutput) SetSites(v []*Site) *ListSitesOutput { + s.Sites = v return s } -type GetOutpostOutput struct { - _ struct{} `type:"structure"` +type ListTagsForResourceInput struct { + _ struct{} `type:"structure" nopayload:"true"` - // Information about an Outpost. - Outpost *Outpost `type:"structure"` + // The Amazon Resource Name (ARN) of the resource. + // + // ResourceArn is a required field + ResourceArn *string `location:"uri" locationName:"ResourceArn" type:"string" required:"true"` } // String returns the string representation. @@ -1851,7 +4590,7 @@ type GetOutpostOutput 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 GetOutpostOutput) String() string { +func (s ListTagsForResourceInput) String() string { return awsutil.Prettify(s) } @@ -1860,22 +4599,37 @@ func (s GetOutpostOutput) 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 GetOutpostOutput) GoString() string { +func (s ListTagsForResourceInput) GoString() string { return s.String() } -// SetOutpost sets the Outpost field's value. -func (s *GetOutpostOutput) SetOutpost(v *Outpost) *GetOutpostOutput { - s.Outpost = v +// Validate inspects the fields of the type to determine if they are valid. +func (s *ListTagsForResourceInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ListTagsForResourceInput"} + if s.ResourceArn == nil { + invalidParams.Add(request.NewErrParamRequired("ResourceArn")) + } + if s.ResourceArn != nil && len(*s.ResourceArn) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ResourceArn", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetResourceArn sets the ResourceArn field's value. +func (s *ListTagsForResourceInput) SetResourceArn(v string) *ListTagsForResourceInput { + s.ResourceArn = &v return s } -// Information about an instance type. -type InstanceTypeItem struct { +type ListTagsForResourceOutput struct { _ struct{} `type:"structure"` - // The instance type. - InstanceType *string `type:"string"` + // The resource tags. + Tags map[string]*string `min:"1" type:"map"` } // String returns the string representation. @@ -1883,7 +4637,7 @@ type InstanceTypeItem 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 InstanceTypeItem) String() string { +func (s ListTagsForResourceOutput) String() string { return awsutil.Prettify(s) } @@ -1892,18 +4646,18 @@ func (s InstanceTypeItem) 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 InstanceTypeItem) GoString() string { +func (s ListTagsForResourceOutput) GoString() string { return s.String() } -// SetInstanceType sets the InstanceType field's value. -func (s *InstanceTypeItem) SetInstanceType(v string) *InstanceTypeItem { - s.InstanceType = &v +// SetTags sets the Tags field's value. +func (s *ListTagsForResourceOutput) SetTags(v map[string]*string) *ListTagsForResourceOutput { + s.Tags = v return s } -// An internal error has occurred. -type InternalServerException struct { +// The specified request is not valid. +type NotFoundException struct { _ struct{} `type:"structure"` RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` @@ -1915,7 +4669,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 NotFoundException) String() string { return awsutil.Prettify(s) } @@ -1924,23 +4678,23 @@ 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 NotFoundException) GoString() string { return s.String() } -func newErrorInternalServerException(v protocol.ResponseMetadata) error { - return &InternalServerException{ +func newErrorNotFoundException(v protocol.ResponseMetadata) error { + return &NotFoundException{ RespMetadata: v, } } // Code returns the exception type name. -func (s *InternalServerException) Code() string { - return "InternalServerException" +func (s *NotFoundException) Code() string { + return "NotFoundException" } // Message returns the exception's message. -func (s *InternalServerException) Message() string { +func (s *NotFoundException) Message() string { if s.Message_ != nil { return *s.Message_ } @@ -1948,169 +4702,62 @@ func (s *InternalServerException) Message() string { } // OrigErr always returns nil, satisfies awserr.Error interface. -func (s *InternalServerException) OrigErr() error { +func (s *NotFoundException) OrigErr() error { return nil } -func (s *InternalServerException) Error() string { +func (s *NotFoundException) 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 { +func (s *NotFoundException) StatusCode() int { return s.RespMetadata.StatusCode } // RequestID returns the service's response RequestID for request. -func (s *InternalServerException) RequestID() string { +func (s *NotFoundException) RequestID() string { return s.RespMetadata.RequestID } -// Information about a line item. -type LineItem struct { - _ struct{} `type:"structure"` - - // The ID of the catalog item. - CatalogItemId *string `min:"1" type:"string"` - - // The ID of the line item. - LineItemId *string `type:"string"` - - // The quantity of the line item. - Quantity *int64 `min:"1" type:"integer"` - - // The status of the line item. - Status *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 LineItem) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s LineItem) GoString() string { - return s.String() -} - -// SetCatalogItemId sets the CatalogItemId field's value. -func (s *LineItem) SetCatalogItemId(v string) *LineItem { - s.CatalogItemId = &v - return s -} - -// SetLineItemId sets the LineItemId field's value. -func (s *LineItem) SetLineItemId(v string) *LineItem { - s.LineItemId = &v - return s -} - -// SetQuantity sets the Quantity field's value. -func (s *LineItem) SetQuantity(v int64) *LineItem { - s.Quantity = &v - return s -} - -// SetStatus sets the Status field's value. -func (s *LineItem) SetStatus(v string) *LineItem { - s.Status = &v - return s -} - -// Information about a line item request. -type LineItemRequest struct { +// Information about an order. +type Order struct { _ struct{} `type:"structure"` - // The ID of the catalog item. - CatalogItemId *string `min:"1" type:"string"` - - // The quantity of a line item request. - Quantity *int64 `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 LineItemRequest) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s LineItemRequest) GoString() string { - return s.String() -} + // The line items for the order + LineItems []*LineItem `type:"list"` -// Validate inspects the fields of the type to determine if they are valid. -func (s *LineItemRequest) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "LineItemRequest"} - if s.CatalogItemId != nil && len(*s.CatalogItemId) < 1 { - invalidParams.Add(request.NewErrParamMinLen("CatalogItemId", 1)) - } - if s.Quantity != nil && *s.Quantity < 1 { - invalidParams.Add(request.NewErrParamMinValue("Quantity", 1)) - } + // The fulfillment date of the order. + OrderFulfilledDate *time.Time `type:"timestamp"` - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} + // The ID of the order. + OrderId *string `min:"1" type:"string"` -// SetCatalogItemId sets the CatalogItemId field's value. -func (s *LineItemRequest) SetCatalogItemId(v string) *LineItemRequest { - s.CatalogItemId = &v - return s -} + // The submission date for the order. + OrderSubmissionDate *time.Time `type:"timestamp"` -// SetQuantity sets the Quantity field's value. -func (s *LineItemRequest) SetQuantity(v int64) *LineItemRequest { - s.Quantity = &v - return s -} + // The ID of the Outpost in the order. + OutpostId *string `min:"1" type:"string"` -type ListOutpostsInput struct { - _ struct{} `type:"structure" nopayload:"true"` + // The payment option for the order. + PaymentOption *string `type:"string" enum:"PaymentOption"` - // A filter for the Availibility Zone (us-east-1a) of the Outpost. + // The status of the order. // - // Filter values are case sensitive. If you specify multiple values for a filter, - // the values are joined with an OR, and the request returns all results that - // match any of the specified values. - AvailabilityZoneFilter []*string `location:"querystring" locationName:"AvailabilityZoneFilter" min:"1" type:"list"` - - // A filter for the AZ IDs (use1-az1) of the Outpost. + // * PREPARING - Order is received and being prepared. // - // Filter values are case sensitive. If you specify multiple values for a filter, - // the values are joined with an OR, and the request returns all results that - // match any of the specified values. - AvailabilityZoneIdFilter []*string `location:"querystring" locationName:"AvailabilityZoneIdFilter" min:"1" type:"list"` - - // A filter for the lifecycle status of the Outpost. + // * IN_PROGRESS - Order is either being built, shipped, or installed. To + // get more details, see the LineItem status. // - // Filter values are case sensitive. If you specify multiple values for a filter, - // the values are joined with an OR, and the request returns all results that - // match any of the specified values. - LifeCycleStatusFilter []*string `location:"querystring" locationName:"LifeCycleStatusFilter" min:"1" type:"list"` - - // The maximum page size. - MaxResults *int64 `location:"querystring" locationName:"MaxResults" min:"1" type:"integer"` - - // The pagination token. - NextToken *string `location:"querystring" locationName:"NextToken" min:"1" type:"string"` + // * COMPLETED - Order is complete. + // + // * CANCELLED - Order is cancelled. + // + // * ERROR - Customer should contact support. + // + // The following status are deprecated: RECEIVED, PENDING, PROCESSING, INSTALLING, + // and FULFILLED. + Status *string `type:"string" enum:"OrderStatus"` } // String returns the string representation. @@ -2118,7 +4765,7 @@ type ListOutpostsInput 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 ListOutpostsInput) String() string { +func (s Order) String() string { return awsutil.Prettify(s) } @@ -2127,73 +4774,90 @@ func (s ListOutpostsInput) 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 ListOutpostsInput) GoString() string { +func (s Order) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *ListOutpostsInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "ListOutpostsInput"} - if s.AvailabilityZoneFilter != nil && len(s.AvailabilityZoneFilter) < 1 { - invalidParams.Add(request.NewErrParamMinLen("AvailabilityZoneFilter", 1)) - } - if s.AvailabilityZoneIdFilter != nil && len(s.AvailabilityZoneIdFilter) < 1 { - invalidParams.Add(request.NewErrParamMinLen("AvailabilityZoneIdFilter", 1)) - } - if s.LifeCycleStatusFilter != nil && len(s.LifeCycleStatusFilter) < 1 { - invalidParams.Add(request.NewErrParamMinLen("LifeCycleStatusFilter", 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)) - } +// SetLineItems sets the LineItems field's value. +func (s *Order) SetLineItems(v []*LineItem) *Order { + s.LineItems = v + return s +} - if invalidParams.Len() > 0 { - return invalidParams - } - return nil +// SetOrderFulfilledDate sets the OrderFulfilledDate field's value. +func (s *Order) SetOrderFulfilledDate(v time.Time) *Order { + s.OrderFulfilledDate = &v + return s } -// SetAvailabilityZoneFilter sets the AvailabilityZoneFilter field's value. -func (s *ListOutpostsInput) SetAvailabilityZoneFilter(v []*string) *ListOutpostsInput { - s.AvailabilityZoneFilter = v +// SetOrderId sets the OrderId field's value. +func (s *Order) SetOrderId(v string) *Order { + s.OrderId = &v return s } -// SetAvailabilityZoneIdFilter sets the AvailabilityZoneIdFilter field's value. -func (s *ListOutpostsInput) SetAvailabilityZoneIdFilter(v []*string) *ListOutpostsInput { - s.AvailabilityZoneIdFilter = v +// SetOrderSubmissionDate sets the OrderSubmissionDate field's value. +func (s *Order) SetOrderSubmissionDate(v time.Time) *Order { + s.OrderSubmissionDate = &v return s } -// SetLifeCycleStatusFilter sets the LifeCycleStatusFilter field's value. -func (s *ListOutpostsInput) SetLifeCycleStatusFilter(v []*string) *ListOutpostsInput { - s.LifeCycleStatusFilter = v +// SetOutpostId sets the OutpostId field's value. +func (s *Order) SetOutpostId(v string) *Order { + s.OutpostId = &v return s } -// SetMaxResults sets the MaxResults field's value. -func (s *ListOutpostsInput) SetMaxResults(v int64) *ListOutpostsInput { - s.MaxResults = &v +// SetPaymentOption sets the PaymentOption field's value. +func (s *Order) SetPaymentOption(v string) *Order { + s.PaymentOption = &v return s } -// SetNextToken sets the NextToken field's value. -func (s *ListOutpostsInput) SetNextToken(v string) *ListOutpostsInput { - s.NextToken = &v +// SetStatus sets the Status field's value. +func (s *Order) SetStatus(v string) *Order { + s.Status = &v return s } -type ListOutpostsOutput struct { +// A summary of line items in your order. +type OrderSummary struct { _ struct{} `type:"structure"` - // The pagination token. - NextToken *string `min:"1" type:"string"` + // The status of all line items in the order. + LineItemCountsByStatus map[string]*int64 `type:"map"` - // Information about the Outposts. - Outposts []*Outpost `type:"list"` + // Fulfilment date for the order. + OrderFulfilledDate *time.Time `type:"timestamp"` + + // The ID of the order. + OrderId *string `min:"1" type:"string"` + + // Submission date for the order. + OrderSubmissionDate *time.Time `type:"timestamp"` + + // The type of order. + OrderType *string `type:"string" enum:"OrderType"` + + // The ID of the Outpost. + OutpostId *string `min:"1" type:"string"` + + // The status of the order. + // + // * PREPARING - Order is received and is being prepared. + // + // * IN_PROGRESS - Order is either being built, shipped, or installed. For + // more information, see the LineItem status. + // + // * COMPLETED - Order is complete. + // + // * CANCELLED - Order is cancelled. + // + // * ERROR - Customer should contact support. + // + // The following statuses are deprecated: RECEIVED, PENDING, PROCESSING, INSTALLING, + // and FULFILLED. + Status *string `type:"string" enum:"OrderStatus"` } // String returns the string representation. @@ -2201,7 +4865,7 @@ type ListOutpostsOutput 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 ListOutpostsOutput) String() string { +func (s OrderSummary) String() string { return awsutil.Prettify(s) } @@ -2210,30 +4874,88 @@ func (s ListOutpostsOutput) 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 ListOutpostsOutput) GoString() string { +func (s OrderSummary) GoString() string { return s.String() } -// SetNextToken sets the NextToken field's value. -func (s *ListOutpostsOutput) SetNextToken(v string) *ListOutpostsOutput { - s.NextToken = &v +// SetLineItemCountsByStatus sets the LineItemCountsByStatus field's value. +func (s *OrderSummary) SetLineItemCountsByStatus(v map[string]*int64) *OrderSummary { + s.LineItemCountsByStatus = v return s } -// SetOutposts sets the Outposts field's value. -func (s *ListOutpostsOutput) SetOutposts(v []*Outpost) *ListOutpostsOutput { - s.Outposts = v +// SetOrderFulfilledDate sets the OrderFulfilledDate field's value. +func (s *OrderSummary) SetOrderFulfilledDate(v time.Time) *OrderSummary { + s.OrderFulfilledDate = &v return s } -type ListSitesInput struct { - _ struct{} `type:"structure" nopayload:"true"` +// SetOrderId sets the OrderId field's value. +func (s *OrderSummary) SetOrderId(v string) *OrderSummary { + s.OrderId = &v + return s +} - // The maximum page size. - MaxResults *int64 `location:"querystring" locationName:"MaxResults" min:"1" type:"integer"` +// SetOrderSubmissionDate sets the OrderSubmissionDate field's value. +func (s *OrderSummary) SetOrderSubmissionDate(v time.Time) *OrderSummary { + s.OrderSubmissionDate = &v + return s +} - // The pagination token. - NextToken *string `location:"querystring" locationName:"NextToken" min:"1" type:"string"` +// SetOrderType sets the OrderType field's value. +func (s *OrderSummary) SetOrderType(v string) *OrderSummary { + s.OrderType = &v + return s +} + +// SetOutpostId sets the OutpostId field's value. +func (s *OrderSummary) SetOutpostId(v string) *OrderSummary { + s.OutpostId = &v + return s +} + +// SetStatus sets the Status field's value. +func (s *OrderSummary) SetStatus(v string) *OrderSummary { + s.Status = &v + return s +} + +// Information about an Outpost. +type Outpost struct { + _ struct{} `type:"structure"` + + // The Availability Zone. + AvailabilityZone *string `min:"1" type:"string"` + + // The ID of the Availability Zone. + AvailabilityZoneId *string `min:"1" type:"string"` + + // The description of the Outpost. + Description *string `type:"string"` + + // The life cycle status. + LifeCycleStatus *string `min:"1" type:"string"` + + // The name of the Outpost. + Name *string `min:"1" type:"string"` + + // The Amazon Resource Name (ARN) of the Outpost. + OutpostArn *string `min:"1" type:"string"` + + // The ID of the Outpost. + OutpostId *string `min:"1" type:"string"` + + // The Amazon Web Services account ID of the Outpost owner. + OwnerId *string `min:"12" type:"string"` + + // The Amazon Resource Name (ARN) of the site. + SiteArn *string `min:"1" type:"string"` + + // The ID of the site. + SiteId *string `min:"1" type:"string"` + + // The Outpost tags. + Tags map[string]*string `min:"1" type:"map"` } // String returns the string representation. @@ -2241,7 +4963,7 @@ type ListSitesInput 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 ListSitesInput) String() string { +func (s Outpost) String() string { return awsutil.Prettify(s) } @@ -2250,85 +4972,114 @@ func (s ListSitesInput) 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 ListSitesInput) GoString() string { +func (s Outpost) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *ListSitesInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "ListSitesInput"} - 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)) - } +// SetAvailabilityZone sets the AvailabilityZone field's value. +func (s *Outpost) SetAvailabilityZone(v string) *Outpost { + s.AvailabilityZone = &v + return s +} - if invalidParams.Len() > 0 { - return invalidParams - } - return nil +// SetAvailabilityZoneId sets the AvailabilityZoneId field's value. +func (s *Outpost) SetAvailabilityZoneId(v string) *Outpost { + s.AvailabilityZoneId = &v + return s } -// SetMaxResults sets the MaxResults field's value. -func (s *ListSitesInput) SetMaxResults(v int64) *ListSitesInput { - s.MaxResults = &v +// SetDescription sets the Description field's value. +func (s *Outpost) SetDescription(v string) *Outpost { + s.Description = &v return s } -// SetNextToken sets the NextToken field's value. -func (s *ListSitesInput) SetNextToken(v string) *ListSitesInput { - s.NextToken = &v +// SetLifeCycleStatus sets the LifeCycleStatus field's value. +func (s *Outpost) SetLifeCycleStatus(v string) *Outpost { + s.LifeCycleStatus = &v return s } -type ListSitesOutput struct { - _ struct{} `type:"structure"` +// SetName sets the Name field's value. +func (s *Outpost) SetName(v string) *Outpost { + s.Name = &v + return s +} - // The pagination token. - NextToken *string `min:"1" type:"string"` +// SetOutpostArn sets the OutpostArn field's value. +func (s *Outpost) SetOutpostArn(v string) *Outpost { + s.OutpostArn = &v + return s +} - // Information about the sites. - Sites []*Site `type:"list"` +// SetOutpostId sets the OutpostId field's value. +func (s *Outpost) SetOutpostId(v string) *Outpost { + s.OutpostId = &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 ListSitesOutput) String() string { - return awsutil.Prettify(s) +// SetOwnerId sets the OwnerId field's value. +func (s *Outpost) SetOwnerId(v string) *Outpost { + s.OwnerId = &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 ListSitesOutput) GoString() string { - return s.String() +// SetSiteArn sets the SiteArn field's value. +func (s *Outpost) SetSiteArn(v string) *Outpost { + s.SiteArn = &v + return s } -// SetNextToken sets the NextToken field's value. -func (s *ListSitesOutput) SetNextToken(v string) *ListSitesOutput { - s.NextToken = &v +// SetSiteId sets the SiteId field's value. +func (s *Outpost) SetSiteId(v string) *Outpost { + s.SiteId = &v return s } -// SetSites sets the Sites field's value. -func (s *ListSitesOutput) SetSites(v []*Site) *ListSitesOutput { - s.Sites = v +// SetTags sets the Tags field's value. +func (s *Outpost) SetTags(v map[string]*string) *Outpost { + s.Tags = v return s } -type ListTagsForResourceInput struct { - _ struct{} `type:"structure" nopayload:"true"` +// Information about the physical and logistical details for racks at sites. +// For more information about hardware requirements for racks, see Network readiness +// checklist (https://docs.aws.amazon.com/outposts/latest/userguide/outposts-requirements.html#checklist) +// in the Amazon Web Services Outposts User Guide. +type RackPhysicalProperties struct { + _ struct{} `type:"structure"` - // The Amazon Resource Name (ARN) of the resource. - // - // ResourceArn is a required field - ResourceArn *string `location:"uri" locationName:"ResourceArn" type:"string" required:"true"` + // The type of fiber used to attach the Outpost to the network. + FiberOpticCableType *string `type:"string" enum:"FiberOpticCableType"` + + // The maximum rack weight that this site can support. NO_LIMIT is over 2000 + // lbs (907 kg). + MaximumSupportedWeightLbs *string `type:"string" enum:"MaximumSupportedWeightLbs"` + + // The type of optical standard used to attach the Outpost to the network. This + // field is dependent on uplink speed, fiber type, and distance to the upstream + // device. For more information about networking requirements for racks, see + // Network (https://docs.aws.amazon.com/outposts/latest/userguide/outposts-requirements.html#facility-networking) + // in the Amazon Web Services Outposts User Guide. + OpticalStandard *string `type:"string" enum:"OpticalStandard"` + + // The power connector for the hardware. + PowerConnector *string `type:"string" enum:"PowerConnector"` + + // The power draw available at the hardware placement position for the rack. + PowerDrawKva *string `type:"string" enum:"PowerDrawKva"` + + // The position of the power feed. + PowerFeedDrop *string `type:"string" enum:"PowerFeedDrop"` + + // The power option that you can provide for hardware. + PowerPhase *string `type:"string" enum:"PowerPhase"` + + // The number of uplinks each Outpost network device. + UplinkCount *string `type:"string" enum:"UplinkCount"` + + // The uplink speed the rack supports for the connection to the Region. + UplinkGbps *string `type:"string" enum:"UplinkGbps"` } // String returns the string representation. @@ -2336,7 +5087,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 RackPhysicalProperties) String() string { return awsutil.Prettify(s) } @@ -2345,65 +5096,66 @@ 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 RackPhysicalProperties) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *ListTagsForResourceInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "ListTagsForResourceInput"} - if s.ResourceArn == nil { - invalidParams.Add(request.NewErrParamRequired("ResourceArn")) - } - if s.ResourceArn != nil && len(*s.ResourceArn) < 1 { - invalidParams.Add(request.NewErrParamMinLen("ResourceArn", 1)) - } +// SetFiberOpticCableType sets the FiberOpticCableType field's value. +func (s *RackPhysicalProperties) SetFiberOpticCableType(v string) *RackPhysicalProperties { + s.FiberOpticCableType = &v + return s +} - if invalidParams.Len() > 0 { - return invalidParams - } - return nil +// SetMaximumSupportedWeightLbs sets the MaximumSupportedWeightLbs field's value. +func (s *RackPhysicalProperties) SetMaximumSupportedWeightLbs(v string) *RackPhysicalProperties { + s.MaximumSupportedWeightLbs = &v + return s } -// SetResourceArn sets the ResourceArn field's value. -func (s *ListTagsForResourceInput) SetResourceArn(v string) *ListTagsForResourceInput { - s.ResourceArn = &v +// SetOpticalStandard sets the OpticalStandard field's value. +func (s *RackPhysicalProperties) SetOpticalStandard(v string) *RackPhysicalProperties { + s.OpticalStandard = &v return s } -type ListTagsForResourceOutput struct { - _ struct{} `type:"structure"` +// SetPowerConnector sets the PowerConnector field's value. +func (s *RackPhysicalProperties) SetPowerConnector(v string) *RackPhysicalProperties { + s.PowerConnector = &v + return s +} - // The resource tags. - Tags map[string]*string `min:"1" type:"map"` +// SetPowerDrawKva sets the PowerDrawKva field's value. +func (s *RackPhysicalProperties) SetPowerDrawKva(v string) *RackPhysicalProperties { + s.PowerDrawKva = &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 ListTagsForResourceOutput) String() string { - return awsutil.Prettify(s) +// SetPowerFeedDrop sets the PowerFeedDrop field's value. +func (s *RackPhysicalProperties) SetPowerFeedDrop(v string) *RackPhysicalProperties { + s.PowerFeedDrop = &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 ListTagsForResourceOutput) GoString() string { - return s.String() +// SetPowerPhase sets the PowerPhase field's value. +func (s *RackPhysicalProperties) SetPowerPhase(v string) *RackPhysicalProperties { + s.PowerPhase = &v + return s +} + +// SetUplinkCount sets the UplinkCount field's value. +func (s *RackPhysicalProperties) SetUplinkCount(v string) *RackPhysicalProperties { + s.UplinkCount = &v + return s } -// SetTags sets the Tags field's value. -func (s *ListTagsForResourceOutput) SetTags(v map[string]*string) *ListTagsForResourceOutput { - s.Tags = v +// SetUplinkGbps sets the UplinkGbps field's value. +func (s *RackPhysicalProperties) SetUplinkGbps(v string) *RackPhysicalProperties { + s.UplinkGbps = &v return s } -// The specified request is not valid. -type NotFoundException struct { +// You have exceeded a service quota. +type ServiceQuotaExceededException struct { _ struct{} `type:"structure"` RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` @@ -2415,7 +5167,7 @@ type NotFoundException 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 NotFoundException) String() string { +func (s ServiceQuotaExceededException) String() string { return awsutil.Prettify(s) } @@ -2424,23 +5176,23 @@ func (s NotFoundException) 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 NotFoundException) GoString() string { +func (s ServiceQuotaExceededException) GoString() string { return s.String() } -func newErrorNotFoundException(v protocol.ResponseMetadata) error { - return &NotFoundException{ +func newErrorServiceQuotaExceededException(v protocol.ResponseMetadata) error { + return &ServiceQuotaExceededException{ RespMetadata: v, } } // Code returns the exception type name. -func (s *NotFoundException) Code() string { - return "NotFoundException" +func (s *ServiceQuotaExceededException) Code() string { + return "ServiceQuotaExceededException" } // Message returns the exception's message. -func (s *NotFoundException) Message() string { +func (s *ServiceQuotaExceededException) Message() string { if s.Message_ != nil { return *s.Message_ } @@ -2448,48 +5200,61 @@ func (s *NotFoundException) Message() string { } // OrigErr always returns nil, satisfies awserr.Error interface. -func (s *NotFoundException) OrigErr() error { +func (s *ServiceQuotaExceededException) OrigErr() error { return nil } -func (s *NotFoundException) 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 *NotFoundException) StatusCode() int { +func (s *ServiceQuotaExceededException) StatusCode() int { return s.RespMetadata.StatusCode } // RequestID returns the service's response RequestID for request. -func (s *NotFoundException) RequestID() string { +func (s *ServiceQuotaExceededException) RequestID() string { return s.RespMetadata.RequestID } -// Information about an order. -type Order struct { +// Information about a site. +type Site struct { _ struct{} `type:"structure"` - // The line items for the order - LineItems []*LineItem `type:"list"` + // The ID of the Amazon Web Services account. + AccountId *string `min:"12" type:"string"` - // The fulfillment date of the order. - OrderFulfilledDate *time.Time `type:"timestamp"` + // The description of the site. + Description *string `min:"1" type:"string"` - // The ID of the order. - OrderId *string `min:"1" type:"string"` + // The name of the site. + Name *string `min:"1" type:"string"` - // The submission date for the order. - OrderSubmissionDate *time.Time `type:"timestamp"` + // Notes about a site. + Notes *string `min:"1" type:"string"` - // The ID of the Outpost. - OutpostId *string `min:"1" type:"string"` + // City where the hardware is installed and powered on. + OperatingAddressCity *string `min:"1" type:"string"` - // The payment option for the order. - PaymentOption *string `type:"string" enum:"PaymentOption"` + // The ISO-3166 two-letter country code where the hardware is installed and + // powered on. + OperatingAddressCountryCode *string `min:"2" type:"string"` - // The status of the order - Status *string `type:"string" enum:"OrderStatus"` + // State or region where the hardware is installed and powered on. + OperatingAddressStateOrRegion *string `min:"1" type:"string"` + + // Information about the physical and logistical details for a rack at the site. + RackPhysicalProperties *RackPhysicalProperties `type:"structure"` + + // The Amazon Resource Name (ARN) of the site. + SiteArn *string `min:"1" type:"string"` + + // The ID of the site. + SiteId *string `min:"1" type:"string"` + + // The site tags. + Tags map[string]*string `min:"1" type:"map"` } // String returns the string representation. @@ -2497,7 +5262,7 @@ type Order 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 Order) String() string { +func (s Site) String() string { return awsutil.Prettify(s) } @@ -2506,88 +5271,232 @@ func (s Order) 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 Order) GoString() string { +func (s Site) GoString() string { return s.String() } -// SetLineItems sets the LineItems field's value. -func (s *Order) SetLineItems(v []*LineItem) *Order { - s.LineItems = v +// SetAccountId sets the AccountId field's value. +func (s *Site) SetAccountId(v string) *Site { + s.AccountId = &v return s } -// SetOrderFulfilledDate sets the OrderFulfilledDate field's value. -func (s *Order) SetOrderFulfilledDate(v time.Time) *Order { - s.OrderFulfilledDate = &v +// SetDescription sets the Description field's value. +func (s *Site) SetDescription(v string) *Site { + s.Description = &v return s } -// SetOrderId sets the OrderId field's value. -func (s *Order) SetOrderId(v string) *Order { - s.OrderId = &v +// SetName sets the Name field's value. +func (s *Site) SetName(v string) *Site { + s.Name = &v return s } -// SetOrderSubmissionDate sets the OrderSubmissionDate field's value. -func (s *Order) SetOrderSubmissionDate(v time.Time) *Order { - s.OrderSubmissionDate = &v +// SetNotes sets the Notes field's value. +func (s *Site) SetNotes(v string) *Site { + s.Notes = &v return s } -// SetOutpostId sets the OutpostId field's value. -func (s *Order) SetOutpostId(v string) *Order { - s.OutpostId = &v +// SetOperatingAddressCity sets the OperatingAddressCity field's value. +func (s *Site) SetOperatingAddressCity(v string) *Site { + s.OperatingAddressCity = &v return s } -// SetPaymentOption sets the PaymentOption field's value. -func (s *Order) SetPaymentOption(v string) *Order { - s.PaymentOption = &v +// SetOperatingAddressCountryCode sets the OperatingAddressCountryCode field's value. +func (s *Site) SetOperatingAddressCountryCode(v string) *Site { + s.OperatingAddressCountryCode = &v return s } -// SetStatus sets the Status field's value. -func (s *Order) SetStatus(v string) *Order { - s.Status = &v +// SetOperatingAddressStateOrRegion sets the OperatingAddressStateOrRegion field's value. +func (s *Site) SetOperatingAddressStateOrRegion(v string) *Site { + s.OperatingAddressStateOrRegion = &v return s } -// Information about an Outpost. -type Outpost struct { +// SetRackPhysicalProperties sets the RackPhysicalProperties field's value. +func (s *Site) SetRackPhysicalProperties(v *RackPhysicalProperties) *Site { + s.RackPhysicalProperties = v + return s +} + +// SetSiteArn sets the SiteArn field's value. +func (s *Site) SetSiteArn(v string) *Site { + s.SiteArn = &v + return s +} + +// SetSiteId sets the SiteId field's value. +func (s *Site) SetSiteId(v string) *Site { + s.SiteId = &v + return s +} + +// SetTags sets the Tags field's value. +func (s *Site) SetTags(v map[string]*string) *Site { + s.Tags = v + return s +} + +type TagResourceInput struct { _ struct{} `type:"structure"` - // The Availability Zone. - AvailabilityZone *string `min:"1" type:"string"` + // The Amazon Resource Name (ARN) of the resource. + // + // ResourceArn is a required field + ResourceArn *string `location:"uri" locationName:"ResourceArn" type:"string" required:"true"` - // The ID of the Availability Zone. - AvailabilityZoneId *string `min:"1" type:"string"` + // The tags to add to the resource. + // + // Tags is a required field + Tags map[string]*string `min:"1" type:"map" required:"true"` +} - // The description of the Outpost. - Description *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 TagResourceInput) String() string { + return awsutil.Prettify(s) +} - // The life cycle status. - LifeCycleStatus *string `min:"1" type:"string"` +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s TagResourceInput) GoString() string { + return s.String() +} - // The name of the Outpost. - Name *string `min:"1" type:"string"` +// Validate inspects the fields of the type to determine if they are valid. +func (s *TagResourceInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "TagResourceInput"} + if s.ResourceArn == nil { + invalidParams.Add(request.NewErrParamRequired("ResourceArn")) + } + if s.ResourceArn != nil && len(*s.ResourceArn) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ResourceArn", 1)) + } + if s.Tags == nil { + invalidParams.Add(request.NewErrParamRequired("Tags")) + } + if s.Tags != nil && len(s.Tags) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Tags", 1)) + } - // The Amazon Resource Name (ARN) of the Outpost. - OutpostArn *string `min:"1" type:"string"` + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} - // The ID of the Outpost. - OutpostId *string `min:"1" type:"string"` +// SetResourceArn sets the ResourceArn field's value. +func (s *TagResourceInput) SetResourceArn(v string) *TagResourceInput { + s.ResourceArn = &v + return s +} + +// SetTags sets the Tags field's value. +func (s *TagResourceInput) SetTags(v map[string]*string) *TagResourceInput { + s.Tags = v + return s +} + +type TagResourceOutput struct { + _ struct{} `type:"structure"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s TagResourceOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s TagResourceOutput) GoString() string { + return s.String() +} + +type UntagResourceInput struct { + _ struct{} `type:"structure" nopayload:"true"` + + // The Amazon Resource Name (ARN) of the resource. + // + // ResourceArn is a required field + ResourceArn *string `location:"uri" locationName:"ResourceArn" type:"string" required:"true"` + + // The tag keys. + // + // TagKeys is a required field + TagKeys []*string `location:"querystring" locationName:"tagKeys" 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 UntagResourceInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s UntagResourceInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *UntagResourceInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "UntagResourceInput"} + if s.ResourceArn == nil { + invalidParams.Add(request.NewErrParamRequired("ResourceArn")) + } + if s.ResourceArn != nil && len(*s.ResourceArn) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ResourceArn", 1)) + } + if s.TagKeys == nil { + invalidParams.Add(request.NewErrParamRequired("TagKeys")) + } + if s.TagKeys != nil && len(s.TagKeys) < 1 { + invalidParams.Add(request.NewErrParamMinLen("TagKeys", 1)) + } - // The AWS account ID of the Outpost owner. - OwnerId *string `min:"12" type:"string"` + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} - // The Amazon Resource Name (ARN) of the site. - SiteArn *string `min:"1" type:"string"` +// SetResourceArn sets the ResourceArn field's value. +func (s *UntagResourceInput) SetResourceArn(v string) *UntagResourceInput { + s.ResourceArn = &v + return s +} - // The ID of the site. - SiteId *string `min:"1" type:"string"` +// SetTagKeys sets the TagKeys field's value. +func (s *UntagResourceInput) SetTagKeys(v []*string) *UntagResourceInput { + s.TagKeys = v + return s +} - // The Outpost tags. - Tags map[string]*string `min:"1" type:"map"` +type UntagResourceOutput struct { + _ struct{} `type:"structure"` } // String returns the string representation. @@ -2595,7 +5504,7 @@ type Outpost 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 Outpost) String() string { +func (s UntagResourceOutput) String() string { return awsutil.Prettify(s) } @@ -2604,82 +5513,100 @@ func (s Outpost) 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 Outpost) GoString() string { +func (s UntagResourceOutput) GoString() string { return s.String() } -// SetAvailabilityZone sets the AvailabilityZone field's value. -func (s *Outpost) SetAvailabilityZone(v string) *Outpost { - s.AvailabilityZone = &v - return s -} +type UpdateSiteAddressInput struct { + _ struct{} `type:"structure"` -// SetAvailabilityZoneId sets the AvailabilityZoneId field's value. -func (s *Outpost) SetAvailabilityZoneId(v string) *Outpost { - s.AvailabilityZoneId = &v - return s -} + // The address for the site. + // + // Address is a required field + Address *Address `type:"structure" required:"true"` -// SetDescription sets the Description field's value. -func (s *Outpost) SetDescription(v string) *Outpost { - s.Description = &v - return s -} + // The type of the address. + // + // AddressType is a required field + AddressType *string `type:"string" required:"true" enum:"AddressType"` -// SetLifeCycleStatus sets the LifeCycleStatus field's value. -func (s *Outpost) SetLifeCycleStatus(v string) *Outpost { - s.LifeCycleStatus = &v - return s + // The ID of the site. + // + // SiteId is a required field + SiteId *string `location:"uri" locationName:"SiteId" min:"1" type:"string" required:"true"` } -// SetName sets the Name field's value. -func (s *Outpost) SetName(v string) *Outpost { - s.Name = &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 UpdateSiteAddressInput) String() string { + return awsutil.Prettify(s) } -// SetOutpostArn sets the OutpostArn field's value. -func (s *Outpost) SetOutpostArn(v string) *Outpost { - s.OutpostArn = &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 UpdateSiteAddressInput) GoString() string { + return s.String() } -// SetOutpostId sets the OutpostId field's value. -func (s *Outpost) SetOutpostId(v string) *Outpost { - s.OutpostId = &v - return s +// Validate inspects the fields of the type to determine if they are valid. +func (s *UpdateSiteAddressInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "UpdateSiteAddressInput"} + if s.Address == nil { + invalidParams.Add(request.NewErrParamRequired("Address")) + } + if s.AddressType == nil { + invalidParams.Add(request.NewErrParamRequired("AddressType")) + } + if s.SiteId == nil { + invalidParams.Add(request.NewErrParamRequired("SiteId")) + } + if s.SiteId != nil && len(*s.SiteId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("SiteId", 1)) + } + if s.Address != nil { + if err := s.Address.Validate(); err != nil { + invalidParams.AddNested("Address", err.(request.ErrInvalidParams)) + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil } -// SetOwnerId sets the OwnerId field's value. -func (s *Outpost) SetOwnerId(v string) *Outpost { - s.OwnerId = &v +// SetAddress sets the Address field's value. +func (s *UpdateSiteAddressInput) SetAddress(v *Address) *UpdateSiteAddressInput { + s.Address = v return s } -// SetSiteArn sets the SiteArn field's value. -func (s *Outpost) SetSiteArn(v string) *Outpost { - s.SiteArn = &v +// SetAddressType sets the AddressType field's value. +func (s *UpdateSiteAddressInput) SetAddressType(v string) *UpdateSiteAddressInput { + s.AddressType = &v return s } // SetSiteId sets the SiteId field's value. -func (s *Outpost) SetSiteId(v string) *Outpost { +func (s *UpdateSiteAddressInput) SetSiteId(v string) *UpdateSiteAddressInput { s.SiteId = &v return s } -// SetTags sets the Tags field's value. -func (s *Outpost) SetTags(v map[string]*string) *Outpost { - s.Tags = v - return s -} +type UpdateSiteAddressOutput struct { + _ struct{} `type:"structure"` -// You have exceeded a service quota. -type ServiceQuotaExceededException struct { - _ struct{} `type:"structure"` - RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` + // Information about an address. + Address *Address `type:"structure"` - Message_ *string `locationName:"Message" min:"1" type:"string"` + // The type of the address. + AddressType *string `type:"string" enum:"AddressType"` } // String returns the string representation. @@ -2687,7 +5614,7 @@ type ServiceQuotaExceededException 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 ServiceQuotaExceededException) String() string { +func (s UpdateSiteAddressOutput) String() string { return awsutil.Prettify(s) } @@ -2696,69 +5623,38 @@ func (s ServiceQuotaExceededException) 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 ServiceQuotaExceededException) GoString() string { +func (s UpdateSiteAddressOutput) GoString() string { return s.String() } -func newErrorServiceQuotaExceededException(v protocol.ResponseMetadata) error { - return &ServiceQuotaExceededException{ - RespMetadata: v, - } -} - -// Code returns the exception type name. -func (s *ServiceQuotaExceededException) Code() string { - return "ServiceQuotaExceededException" -} - -// Message returns the exception's message. -func (s *ServiceQuotaExceededException) Message() string { - if s.Message_ != nil { - return *s.Message_ - } - return "" -} - -// OrigErr always returns nil, satisfies awserr.Error interface. -func (s *ServiceQuotaExceededException) OrigErr() error { - return nil -} - -func (s *ServiceQuotaExceededException) Error() string { - return fmt.Sprintf("%s: %s", s.Code(), s.Message()) -} - -// Status code returns the HTTP status code for the request's response error. -func (s *ServiceQuotaExceededException) StatusCode() int { - return s.RespMetadata.StatusCode +// SetAddress sets the Address field's value. +func (s *UpdateSiteAddressOutput) SetAddress(v *Address) *UpdateSiteAddressOutput { + s.Address = v + return s } -// RequestID returns the service's response RequestID for request. -func (s *ServiceQuotaExceededException) RequestID() string { - return s.RespMetadata.RequestID +// SetAddressType sets the AddressType field's value. +func (s *UpdateSiteAddressOutput) SetAddressType(v string) *UpdateSiteAddressOutput { + s.AddressType = &v + return s } -// Information about a site. -type Site struct { +type UpdateSiteInput struct { _ struct{} `type:"structure"` - // The ID of the AWS account. - AccountId *string `min:"12" type:"string"` - // The description of the site. Description *string `min:"1" type:"string"` // The name of the site. Name *string `min:"1" type:"string"` - // The Amazon Resource Name (ARN) of the site. - SiteArn *string `min:"1" type:"string"` + // Notes about a site. + Notes *string `min:"1" type:"string"` // The ID of the site. - SiteId *string `min:"1" type:"string"` - - // The site tags. - Tags map[string]*string `min:"1" type:"map"` + // + // SiteId is a required field + SiteId *string `location:"uri" locationName:"SiteId" min:"1" type:"string" required:"true"` } // String returns the string representation. @@ -2766,7 +5662,7 @@ type Site 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 Site) String() string { +func (s UpdateSiteInput) String() string { return awsutil.Prettify(s) } @@ -2775,58 +5671,64 @@ func (s Site) 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 Site) GoString() string { +func (s UpdateSiteInput) GoString() string { return s.String() } -// SetAccountId sets the AccountId field's value. -func (s *Site) SetAccountId(v string) *Site { - s.AccountId = &v - return s +// Validate inspects the fields of the type to determine if they are valid. +func (s *UpdateSiteInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "UpdateSiteInput"} + if s.Description != nil && len(*s.Description) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Description", 1)) + } + if s.Name != nil && len(*s.Name) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Name", 1)) + } + if s.Notes != nil && len(*s.Notes) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Notes", 1)) + } + if s.SiteId == nil { + invalidParams.Add(request.NewErrParamRequired("SiteId")) + } + if s.SiteId != nil && len(*s.SiteId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("SiteId", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil } // SetDescription sets the Description field's value. -func (s *Site) SetDescription(v string) *Site { +func (s *UpdateSiteInput) SetDescription(v string) *UpdateSiteInput { s.Description = &v return s } // SetName sets the Name field's value. -func (s *Site) SetName(v string) *Site { +func (s *UpdateSiteInput) SetName(v string) *UpdateSiteInput { s.Name = &v return s } -// SetSiteArn sets the SiteArn field's value. -func (s *Site) SetSiteArn(v string) *Site { - s.SiteArn = &v +// SetNotes sets the Notes field's value. +func (s *UpdateSiteInput) SetNotes(v string) *UpdateSiteInput { + s.Notes = &v return s } // SetSiteId sets the SiteId field's value. -func (s *Site) SetSiteId(v string) *Site { +func (s *UpdateSiteInput) SetSiteId(v string) *UpdateSiteInput { s.SiteId = &v return s } -// SetTags sets the Tags field's value. -func (s *Site) SetTags(v map[string]*string) *Site { - s.Tags = v - return s -} - -type TagResourceInput struct { +type UpdateSiteOutput struct { _ struct{} `type:"structure"` - // The Amazon Resource Name (ARN) of the resource. - // - // ResourceArn is a required field - ResourceArn *string `location:"uri" locationName:"ResourceArn" type:"string" required:"true"` - - // The tags to add to the resource. - // - // Tags is a required field - Tags map[string]*string `min:"1" type:"map" required:"true"` + // Information about a site. + Site *Site `type:"structure"` } // String returns the string representation. @@ -2834,7 +5736,7 @@ type TagResourceInput 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 TagResourceInput) String() string { +func (s UpdateSiteOutput) String() string { return awsutil.Prettify(s) } @@ -2843,78 +5745,106 @@ func (s TagResourceInput) 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 TagResourceInput) GoString() string { +func (s UpdateSiteOutput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *TagResourceInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "TagResourceInput"} - if s.ResourceArn == nil { - invalidParams.Add(request.NewErrParamRequired("ResourceArn")) - } - if s.ResourceArn != nil && len(*s.ResourceArn) < 1 { - invalidParams.Add(request.NewErrParamMinLen("ResourceArn", 1)) - } - if s.Tags == nil { - invalidParams.Add(request.NewErrParamRequired("Tags")) - } - if s.Tags != nil && len(s.Tags) < 1 { - invalidParams.Add(request.NewErrParamMinLen("Tags", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -// SetResourceArn sets the ResourceArn field's value. -func (s *TagResourceInput) SetResourceArn(v string) *TagResourceInput { - s.ResourceArn = &v +// SetSite sets the Site field's value. +func (s *UpdateSiteOutput) SetSite(v *Site) *UpdateSiteOutput { + s.Site = v return s } -// SetTags sets the Tags field's value. -func (s *TagResourceInput) SetTags(v map[string]*string) *TagResourceInput { - s.Tags = v - return s -} +type UpdateSiteRackPhysicalPropertiesInput struct { + _ struct{} `type:"structure"` + + // Specify the type of fiber that you will use to attach the Outpost to your + // network. + FiberOpticCableType *string `type:"string" enum:"FiberOpticCableType"` + + // Specify the maximum rack weight that this site can support. NO_LIMIT is over + // 2000lbs. + MaximumSupportedWeightLbs *string `type:"string" enum:"MaximumSupportedWeightLbs"` + + // Specify the type of optical standard that you will use to attach the Outpost + // to your network. This field is dependent on uplink speed, fiber type, and + // distance to the upstream device. For more information about networking requirements + // for racks, see Network (https://docs.aws.amazon.com/outposts/latest/userguide/outposts-requirements.html#facility-networking) + // in the Amazon Web Services Outposts User Guide. + // + // * OPTIC_10GBASE_SR: 10GBASE-SR + // + // * OPTIC_10GBASE_IR: 10GBASE-IR + // + // * OPTIC_10GBASE_LR: 10GBASE-LR + // + // * OPTIC_40GBASE_SR: 40GBASE-SR + // + // * OPTIC_40GBASE_ESR: 40GBASE-ESR + // + // * OPTIC_40GBASE_IR4_LR4L: 40GBASE-IR (LR4L) + // + // * OPTIC_40GBASE_LR4: 40GBASE-LR4 + // + // * OPTIC_100GBASE_SR4: 100GBASE-SR4 + // + // * OPTIC_100GBASE_CWDM4: 100GBASE-CWDM4 + // + // * OPTIC_100GBASE_LR4: 100GBASE-LR4 + // + // * OPTIC_100G_PSM4_MSA: 100G PSM4 MSA + // + // * OPTIC_1000BASE_LX: 1000Base-LX + // + // * OPTIC_1000BASE_SX : 1000Base-SX + OpticalStandard *string `type:"string" enum:"OpticalStandard"` -type TagResourceOutput struct { - _ struct{} `type:"structure"` -} + // Specify the power connector that Amazon Web Services should plan to provide + // for connections to the hardware. Note the correlation between PowerPhase + // and PowerConnector. + // + // * Single-phase AC feed L6-30P – (common in US); 30A; single phase IEC309 + // (blue) – P+N+E, 6hr; 32 A; single phase + // + // * Three-phase AC feed AH530P7W (red) – 3P+N+E, 7hr; 30A; three phase + // AH532P6W (red) – 3P+N+E, 6hr; 32A; three phase + PowerConnector *string `type:"string" enum:"PowerConnector"` -// String returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s TagResourceOutput) String() string { - return awsutil.Prettify(s) -} + // Specify in kVA the power draw available at the hardware placement position + // for the rack. + PowerDrawKva *string `type:"string" enum:"PowerDrawKva"` -// GoString returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s TagResourceOutput) GoString() string { - return s.String() -} + // Specify whether the power feed comes above or below the rack. + PowerFeedDrop *string `type:"string" enum:"PowerFeedDrop"` -type UntagResourceInput struct { - _ struct{} `type:"structure" nopayload:"true"` + // Specify the power option that you can provide for hardware. + // + // * Single-phase AC feed: 200 V to 277 V, 50 Hz or 60 Hz + // + // * Three-phase AC feed: 346 V to 480 V, 50 Hz or 60 Hz + PowerPhase *string `type:"string" enum:"PowerPhase"` - // The Amazon Resource Name (ARN) of the resource. + // The ID of the site. // - // ResourceArn is a required field - ResourceArn *string `location:"uri" locationName:"ResourceArn" type:"string" required:"true"` + // SiteId is a required field + SiteId *string `location:"uri" locationName:"SiteId" min:"1" type:"string" required:"true"` - // The tag keys. + // Racks come with two Outpost network devices. Depending on the supported uplink + // speed at the site, the Outpost network devices provide a variable number + // of uplinks. Specify the number of uplinks for each Outpost network device + // that you intend to use to connect the rack to your network. Note the correlation + // between UplinkGbps and UplinkCount. // - // TagKeys is a required field - TagKeys []*string `location:"querystring" locationName:"tagKeys" min:"1" type:"list" required:"true"` + // * 1Gbps - Uplinks available: 1, 2, 4, 6, 8 + // + // * 10Gbps - Uplinks available: 1, 2, 4, 8, 12, 16 + // + // * 40 and 100 Gbps- Uplinks available: 1, 2, 4 + UplinkCount *string `type:"string" enum:"UplinkCount"` + + // Specify the uplink speed the rack should support for the connection to the + // Region. + UplinkGbps *string `type:"string" enum:"UplinkGbps"` } // String returns the string representation. @@ -2922,7 +5852,7 @@ type UntagResourceInput 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 UntagResourceInput) String() string { +func (s UpdateSiteRackPhysicalPropertiesInput) String() string { return awsutil.Prettify(s) } @@ -2931,24 +5861,18 @@ func (s UntagResourceInput) 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 UntagResourceInput) GoString() string { +func (s UpdateSiteRackPhysicalPropertiesInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *UntagResourceInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "UntagResourceInput"} - if s.ResourceArn == nil { - invalidParams.Add(request.NewErrParamRequired("ResourceArn")) - } - if s.ResourceArn != nil && len(*s.ResourceArn) < 1 { - invalidParams.Add(request.NewErrParamMinLen("ResourceArn", 1)) - } - if s.TagKeys == nil { - invalidParams.Add(request.NewErrParamRequired("TagKeys")) +func (s *UpdateSiteRackPhysicalPropertiesInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "UpdateSiteRackPhysicalPropertiesInput"} + if s.SiteId == nil { + invalidParams.Add(request.NewErrParamRequired("SiteId")) } - if s.TagKeys != nil && len(s.TagKeys) < 1 { - invalidParams.Add(request.NewErrParamMinLen("TagKeys", 1)) + if s.SiteId != nil && len(*s.SiteId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("SiteId", 1)) } if invalidParams.Len() > 0 { @@ -2957,20 +5881,71 @@ func (s *UntagResourceInput) Validate() error { return nil } -// SetResourceArn sets the ResourceArn field's value. -func (s *UntagResourceInput) SetResourceArn(v string) *UntagResourceInput { - s.ResourceArn = &v +// SetFiberOpticCableType sets the FiberOpticCableType field's value. +func (s *UpdateSiteRackPhysicalPropertiesInput) SetFiberOpticCableType(v string) *UpdateSiteRackPhysicalPropertiesInput { + s.FiberOpticCableType = &v return s } -// SetTagKeys sets the TagKeys field's value. -func (s *UntagResourceInput) SetTagKeys(v []*string) *UntagResourceInput { - s.TagKeys = v +// SetMaximumSupportedWeightLbs sets the MaximumSupportedWeightLbs field's value. +func (s *UpdateSiteRackPhysicalPropertiesInput) SetMaximumSupportedWeightLbs(v string) *UpdateSiteRackPhysicalPropertiesInput { + s.MaximumSupportedWeightLbs = &v return s } -type UntagResourceOutput struct { +// SetOpticalStandard sets the OpticalStandard field's value. +func (s *UpdateSiteRackPhysicalPropertiesInput) SetOpticalStandard(v string) *UpdateSiteRackPhysicalPropertiesInput { + s.OpticalStandard = &v + return s +} + +// SetPowerConnector sets the PowerConnector field's value. +func (s *UpdateSiteRackPhysicalPropertiesInput) SetPowerConnector(v string) *UpdateSiteRackPhysicalPropertiesInput { + s.PowerConnector = &v + return s +} + +// SetPowerDrawKva sets the PowerDrawKva field's value. +func (s *UpdateSiteRackPhysicalPropertiesInput) SetPowerDrawKva(v string) *UpdateSiteRackPhysicalPropertiesInput { + s.PowerDrawKva = &v + return s +} + +// SetPowerFeedDrop sets the PowerFeedDrop field's value. +func (s *UpdateSiteRackPhysicalPropertiesInput) SetPowerFeedDrop(v string) *UpdateSiteRackPhysicalPropertiesInput { + s.PowerFeedDrop = &v + return s +} + +// SetPowerPhase sets the PowerPhase field's value. +func (s *UpdateSiteRackPhysicalPropertiesInput) SetPowerPhase(v string) *UpdateSiteRackPhysicalPropertiesInput { + s.PowerPhase = &v + return s +} + +// SetSiteId sets the SiteId field's value. +func (s *UpdateSiteRackPhysicalPropertiesInput) SetSiteId(v string) *UpdateSiteRackPhysicalPropertiesInput { + s.SiteId = &v + return s +} + +// SetUplinkCount sets the UplinkCount field's value. +func (s *UpdateSiteRackPhysicalPropertiesInput) SetUplinkCount(v string) *UpdateSiteRackPhysicalPropertiesInput { + s.UplinkCount = &v + return s +} + +// SetUplinkGbps sets the UplinkGbps field's value. +func (s *UpdateSiteRackPhysicalPropertiesInput) SetUplinkGbps(v string) *UpdateSiteRackPhysicalPropertiesInput { + s.UplinkGbps = &v + return s +} + +type UpdateSiteRackPhysicalPropertiesOutput struct { _ struct{} `type:"structure"` + + // Information about a site. + Site *Site `type:"structure"` } // String returns the string representation. @@ -2978,7 +5953,7 @@ type UntagResourceOutput 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 UntagResourceOutput) String() string { +func (s UpdateSiteRackPhysicalPropertiesOutput) String() string { return awsutil.Prettify(s) } @@ -2987,10 +5962,16 @@ func (s UntagResourceOutput) 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 UntagResourceOutput) GoString() string { +func (s UpdateSiteRackPhysicalPropertiesOutput) GoString() string { return s.String() } +// SetSite sets the Site field's value. +func (s *UpdateSiteRackPhysicalPropertiesOutput) SetSite(v *Site) *UpdateSiteRackPhysicalPropertiesOutput { + s.Site = v + return s +} + // A parameter is not valid. type ValidationException struct { _ struct{} `type:"structure"` @@ -3055,6 +6036,198 @@ func (s *ValidationException) RequestID() string { return s.RespMetadata.RequestID } +const ( + // AddressTypeShippingAddress is a AddressType enum value + AddressTypeShippingAddress = "SHIPPING_ADDRESS" + + // AddressTypeOperatingAddress is a AddressType enum value + AddressTypeOperatingAddress = "OPERATING_ADDRESS" +) + +// AddressType_Values returns all elements of the AddressType enum +func AddressType_Values() []string { + return []string{ + AddressTypeShippingAddress, + AddressTypeOperatingAddress, + } +} + +const ( + // CatalogItemClassRack is a CatalogItemClass enum value + CatalogItemClassRack = "RACK" + + // CatalogItemClassServer is a CatalogItemClass enum value + CatalogItemClassServer = "SERVER" +) + +// CatalogItemClass_Values returns all elements of the CatalogItemClass enum +func CatalogItemClass_Values() []string { + return []string{ + CatalogItemClassRack, + CatalogItemClassServer, + } +} + +const ( + // CatalogItemStatusAvailable is a CatalogItemStatus enum value + CatalogItemStatusAvailable = "AVAILABLE" + + // CatalogItemStatusDiscontinued is a CatalogItemStatus enum value + CatalogItemStatusDiscontinued = "DISCONTINUED" +) + +// CatalogItemStatus_Values returns all elements of the CatalogItemStatus enum +func CatalogItemStatus_Values() []string { + return []string{ + CatalogItemStatusAvailable, + CatalogItemStatusDiscontinued, + } +} + +const ( + // FiberOpticCableTypeSingleMode is a FiberOpticCableType enum value + FiberOpticCableTypeSingleMode = "SINGLE_MODE" + + // FiberOpticCableTypeMultiMode is a FiberOpticCableType enum value + FiberOpticCableTypeMultiMode = "MULTI_MODE" +) + +// FiberOpticCableType_Values returns all elements of the FiberOpticCableType enum +func FiberOpticCableType_Values() []string { + return []string{ + FiberOpticCableTypeSingleMode, + FiberOpticCableTypeMultiMode, + } +} + +const ( + // LineItemStatusPreparing is a LineItemStatus enum value + LineItemStatusPreparing = "PREPARING" + + // LineItemStatusBuilding is a LineItemStatus enum value + LineItemStatusBuilding = "BUILDING" + + // LineItemStatusShipped is a LineItemStatus enum value + LineItemStatusShipped = "SHIPPED" + + // LineItemStatusDelivered is a LineItemStatus enum value + LineItemStatusDelivered = "DELIVERED" + + // LineItemStatusInstalling is a LineItemStatus enum value + LineItemStatusInstalling = "INSTALLING" + + // LineItemStatusInstalled is a LineItemStatus enum value + LineItemStatusInstalled = "INSTALLED" + + // LineItemStatusError is a LineItemStatus enum value + LineItemStatusError = "ERROR" + + // LineItemStatusCancelled is a LineItemStatus enum value + LineItemStatusCancelled = "CANCELLED" +) + +// LineItemStatus_Values returns all elements of the LineItemStatus enum +func LineItemStatus_Values() []string { + return []string{ + LineItemStatusPreparing, + LineItemStatusBuilding, + LineItemStatusShipped, + LineItemStatusDelivered, + LineItemStatusInstalling, + LineItemStatusInstalled, + LineItemStatusError, + LineItemStatusCancelled, + } +} + +const ( + // MaximumSupportedWeightLbsNoLimit is a MaximumSupportedWeightLbs enum value + MaximumSupportedWeightLbsNoLimit = "NO_LIMIT" + + // MaximumSupportedWeightLbsMax1400Lbs is a MaximumSupportedWeightLbs enum value + MaximumSupportedWeightLbsMax1400Lbs = "MAX_1400_LBS" + + // MaximumSupportedWeightLbsMax1600Lbs is a MaximumSupportedWeightLbs enum value + MaximumSupportedWeightLbsMax1600Lbs = "MAX_1600_LBS" + + // MaximumSupportedWeightLbsMax1800Lbs is a MaximumSupportedWeightLbs enum value + MaximumSupportedWeightLbsMax1800Lbs = "MAX_1800_LBS" + + // MaximumSupportedWeightLbsMax2000Lbs is a MaximumSupportedWeightLbs enum value + MaximumSupportedWeightLbsMax2000Lbs = "MAX_2000_LBS" +) + +// MaximumSupportedWeightLbs_Values returns all elements of the MaximumSupportedWeightLbs enum +func MaximumSupportedWeightLbs_Values() []string { + return []string{ + MaximumSupportedWeightLbsNoLimit, + MaximumSupportedWeightLbsMax1400Lbs, + MaximumSupportedWeightLbsMax1600Lbs, + MaximumSupportedWeightLbsMax1800Lbs, + MaximumSupportedWeightLbsMax2000Lbs, + } +} + +const ( + // OpticalStandardOptic10gbaseSr is a OpticalStandard enum value + OpticalStandardOptic10gbaseSr = "OPTIC_10GBASE_SR" + + // OpticalStandardOptic10gbaseIr is a OpticalStandard enum value + OpticalStandardOptic10gbaseIr = "OPTIC_10GBASE_IR" + + // OpticalStandardOptic10gbaseLr is a OpticalStandard enum value + OpticalStandardOptic10gbaseLr = "OPTIC_10GBASE_LR" + + // OpticalStandardOptic40gbaseSr is a OpticalStandard enum value + OpticalStandardOptic40gbaseSr = "OPTIC_40GBASE_SR" + + // OpticalStandardOptic40gbaseEsr is a OpticalStandard enum value + OpticalStandardOptic40gbaseEsr = "OPTIC_40GBASE_ESR" + + // OpticalStandardOptic40gbaseIr4Lr4l is a OpticalStandard enum value + OpticalStandardOptic40gbaseIr4Lr4l = "OPTIC_40GBASE_IR4_LR4L" + + // OpticalStandardOptic40gbaseLr4 is a OpticalStandard enum value + OpticalStandardOptic40gbaseLr4 = "OPTIC_40GBASE_LR4" + + // OpticalStandardOptic100gbaseSr4 is a OpticalStandard enum value + OpticalStandardOptic100gbaseSr4 = "OPTIC_100GBASE_SR4" + + // OpticalStandardOptic100gbaseCwdm4 is a OpticalStandard enum value + OpticalStandardOptic100gbaseCwdm4 = "OPTIC_100GBASE_CWDM4" + + // OpticalStandardOptic100gbaseLr4 is a OpticalStandard enum value + OpticalStandardOptic100gbaseLr4 = "OPTIC_100GBASE_LR4" + + // OpticalStandardOptic100gPsm4Msa is a OpticalStandard enum value + OpticalStandardOptic100gPsm4Msa = "OPTIC_100G_PSM4_MSA" + + // OpticalStandardOptic1000baseLx is a OpticalStandard enum value + OpticalStandardOptic1000baseLx = "OPTIC_1000BASE_LX" + + // OpticalStandardOptic1000baseSx is a OpticalStandard enum value + OpticalStandardOptic1000baseSx = "OPTIC_1000BASE_SX" +) + +// OpticalStandard_Values returns all elements of the OpticalStandard enum +func OpticalStandard_Values() []string { + return []string{ + OpticalStandardOptic10gbaseSr, + OpticalStandardOptic10gbaseIr, + OpticalStandardOptic10gbaseLr, + OpticalStandardOptic40gbaseSr, + OpticalStandardOptic40gbaseEsr, + OpticalStandardOptic40gbaseIr4Lr4l, + OpticalStandardOptic40gbaseLr4, + OpticalStandardOptic100gbaseSr4, + OpticalStandardOptic100gbaseCwdm4, + OpticalStandardOptic100gbaseLr4, + OpticalStandardOptic100gPsm4Msa, + OpticalStandardOptic1000baseLx, + OpticalStandardOptic1000baseSx, + } +} + const ( // OrderStatusReceived is a OrderStatus enum value OrderStatusReceived = "RECEIVED" @@ -3073,6 +6246,18 @@ const ( // OrderStatusCancelled is a OrderStatus enum value OrderStatusCancelled = "CANCELLED" + + // OrderStatusPreparing is a OrderStatus enum value + OrderStatusPreparing = "PREPARING" + + // OrderStatusInProgress is a OrderStatus enum value + OrderStatusInProgress = "IN_PROGRESS" + + // OrderStatusCompleted is a OrderStatus enum value + OrderStatusCompleted = "COMPLETED" + + // OrderStatusError is a OrderStatus enum value + OrderStatusError = "ERROR" ) // OrderStatus_Values returns all elements of the OrderStatus enum @@ -3084,6 +6269,26 @@ func OrderStatus_Values() []string { OrderStatusInstalling, OrderStatusFulfilled, OrderStatusCancelled, + OrderStatusPreparing, + OrderStatusInProgress, + OrderStatusCompleted, + OrderStatusError, + } +} + +const ( + // OrderTypeOutpost is a OrderType enum value + OrderTypeOutpost = "OUTPOST" + + // OrderTypeReplacement is a OrderType enum value + OrderTypeReplacement = "REPLACEMENT" +) + +// OrderType_Values returns all elements of the OrderType enum +func OrderType_Values() []string { + return []string{ + OrderTypeOutpost, + OrderTypeReplacement, } } @@ -3119,14 +6324,182 @@ func PaymentTerm_Values() []string { } } +const ( + // PowerConnectorL630p is a PowerConnector enum value + PowerConnectorL630p = "L6_30P" + + // PowerConnectorIec309 is a PowerConnector enum value + PowerConnectorIec309 = "IEC309" + + // PowerConnectorAh530p7w is a PowerConnector enum value + PowerConnectorAh530p7w = "AH530P7W" + + // PowerConnectorAh532p6w is a PowerConnector enum value + PowerConnectorAh532p6w = "AH532P6W" +) + +// PowerConnector_Values returns all elements of the PowerConnector enum +func PowerConnector_Values() []string { + return []string{ + PowerConnectorL630p, + PowerConnectorIec309, + PowerConnectorAh530p7w, + PowerConnectorAh532p6w, + } +} + +const ( + // PowerDrawKvaPower5Kva is a PowerDrawKva enum value + PowerDrawKvaPower5Kva = "POWER_5_KVA" + + // PowerDrawKvaPower10Kva is a PowerDrawKva enum value + PowerDrawKvaPower10Kva = "POWER_10_KVA" + + // PowerDrawKvaPower15Kva is a PowerDrawKva enum value + PowerDrawKvaPower15Kva = "POWER_15_KVA" +) + +// PowerDrawKva_Values returns all elements of the PowerDrawKva enum +func PowerDrawKva_Values() []string { + return []string{ + PowerDrawKvaPower5Kva, + PowerDrawKvaPower10Kva, + PowerDrawKvaPower15Kva, + } +} + +const ( + // PowerFeedDropAboveRack is a PowerFeedDrop enum value + PowerFeedDropAboveRack = "ABOVE_RACK" + + // PowerFeedDropBelowRack is a PowerFeedDrop enum value + PowerFeedDropBelowRack = "BELOW_RACK" +) + +// PowerFeedDrop_Values returns all elements of the PowerFeedDrop enum +func PowerFeedDrop_Values() []string { + return []string{ + PowerFeedDropAboveRack, + PowerFeedDropBelowRack, + } +} + +const ( + // PowerPhaseSinglePhase is a PowerPhase enum value + PowerPhaseSinglePhase = "SINGLE_PHASE" + + // PowerPhaseThreePhase is a PowerPhase enum value + PowerPhaseThreePhase = "THREE_PHASE" +) + +// PowerPhase_Values returns all elements of the PowerPhase enum +func PowerPhase_Values() []string { + return []string{ + PowerPhaseSinglePhase, + PowerPhaseThreePhase, + } +} + const ( // ResourceTypeOutpost is a ResourceType enum value ResourceTypeOutpost = "OUTPOST" + + // ResourceTypeOrder is a ResourceType enum value + ResourceTypeOrder = "ORDER" ) // ResourceType_Values returns all elements of the ResourceType enum func ResourceType_Values() []string { return []string{ ResourceTypeOutpost, + ResourceTypeOrder, + } +} + +const ( + // SupportedStorageEnumEbs is a SupportedStorageEnum enum value + SupportedStorageEnumEbs = "EBS" + + // SupportedStorageEnumS3 is a SupportedStorageEnum enum value + SupportedStorageEnumS3 = "S3" +) + +// SupportedStorageEnum_Values returns all elements of the SupportedStorageEnum enum +func SupportedStorageEnum_Values() []string { + return []string{ + SupportedStorageEnumEbs, + SupportedStorageEnumS3, + } +} + +const ( + // UplinkCountUplinkCount1 is a UplinkCount enum value + UplinkCountUplinkCount1 = "UPLINK_COUNT_1" + + // UplinkCountUplinkCount2 is a UplinkCount enum value + UplinkCountUplinkCount2 = "UPLINK_COUNT_2" + + // UplinkCountUplinkCount3 is a UplinkCount enum value + UplinkCountUplinkCount3 = "UPLINK_COUNT_3" + + // UplinkCountUplinkCount4 is a UplinkCount enum value + UplinkCountUplinkCount4 = "UPLINK_COUNT_4" + + // UplinkCountUplinkCount5 is a UplinkCount enum value + UplinkCountUplinkCount5 = "UPLINK_COUNT_5" + + // UplinkCountUplinkCount6 is a UplinkCount enum value + UplinkCountUplinkCount6 = "UPLINK_COUNT_6" + + // UplinkCountUplinkCount7 is a UplinkCount enum value + UplinkCountUplinkCount7 = "UPLINK_COUNT_7" + + // UplinkCountUplinkCount8 is a UplinkCount enum value + UplinkCountUplinkCount8 = "UPLINK_COUNT_8" + + // UplinkCountUplinkCount12 is a UplinkCount enum value + UplinkCountUplinkCount12 = "UPLINK_COUNT_12" + + // UplinkCountUplinkCount16 is a UplinkCount enum value + UplinkCountUplinkCount16 = "UPLINK_COUNT_16" +) + +// UplinkCount_Values returns all elements of the UplinkCount enum +func UplinkCount_Values() []string { + return []string{ + UplinkCountUplinkCount1, + UplinkCountUplinkCount2, + UplinkCountUplinkCount3, + UplinkCountUplinkCount4, + UplinkCountUplinkCount5, + UplinkCountUplinkCount6, + UplinkCountUplinkCount7, + UplinkCountUplinkCount8, + UplinkCountUplinkCount12, + UplinkCountUplinkCount16, + } +} + +const ( + // UplinkGbpsUplink1g is a UplinkGbps enum value + UplinkGbpsUplink1g = "UPLINK_1G" + + // UplinkGbpsUplink10g is a UplinkGbps enum value + UplinkGbpsUplink10g = "UPLINK_10G" + + // UplinkGbpsUplink40g is a UplinkGbps enum value + UplinkGbpsUplink40g = "UPLINK_40G" + + // UplinkGbpsUplink100g is a UplinkGbps enum value + UplinkGbpsUplink100g = "UPLINK_100G" +) + +// UplinkGbps_Values returns all elements of the UplinkGbps enum +func UplinkGbps_Values() []string { + return []string{ + UplinkGbpsUplink1g, + UplinkGbpsUplink10g, + UplinkGbpsUplink40g, + UplinkGbpsUplink100g, } } diff --git a/service/outposts/doc.go b/service/outposts/doc.go index a360717ede..4cc7eb6fae 100644 --- a/service/outposts/doc.go +++ b/service/outposts/doc.go @@ -3,10 +3,11 @@ // Package outposts provides the client and types for making API // requests to AWS Outposts. // -// AWS Outposts is a fully managed service that extends AWS infrastructure, -// APIs, and tools to customer premises. By providing local access to AWS managed -// infrastructure, AWS Outposts enables customers to build and run applications -// on premises using the same programming interfaces as in AWS Regions, while +// Amazon Web Services Outposts is a fully managed service that extends Amazon +// Web Services infrastructure, APIs, and tools to customer premises. By providing +// local access to Amazon Web Services managed infrastructure, Amazon Web Services +// Outposts enables customers to build and run applications on premises using +// the same programming interfaces as in Amazon Web Services Regions, while // using local compute and storage resources for lower latency and local data // processing needs. // diff --git a/service/outposts/outpostsiface/interface.go b/service/outposts/outpostsiface/interface.go index c6ac3a5ad7..4a2397384c 100644 --- a/service/outposts/outpostsiface/interface.go +++ b/service/outposts/outpostsiface/interface.go @@ -26,7 +26,7 @@ import ( // // myFunc uses an SDK service client to make a request to // // AWS Outposts. // func myFunc(svc outpostsiface.OutpostsAPI) bool { -// // Make svc.CreateOrder request +// // Make svc.CancelOrder request // } // // func main() { @@ -42,7 +42,7 @@ import ( // type mockOutpostsClient struct { // outpostsiface.OutpostsAPI // } -// func (m *mockOutpostsClient) CreateOrder(input *outposts.CreateOrderInput) (*outposts.CreateOrderOutput, error) { +// func (m *mockOutpostsClient) CancelOrder(input *outposts.CancelOrderInput) (*outposts.CancelOrderOutput, error) { // // mock response/functionality // } // @@ -60,6 +60,10 @@ import ( // and waiters. Its suggested to use the pattern above for testing, or using // tooling to generate mocks to satisfy the interfaces. type OutpostsAPI interface { + CancelOrder(*outposts.CancelOrderInput) (*outposts.CancelOrderOutput, error) + CancelOrderWithContext(aws.Context, *outposts.CancelOrderInput, ...request.Option) (*outposts.CancelOrderOutput, error) + CancelOrderRequest(*outposts.CancelOrderInput) (*request.Request, *outposts.CancelOrderOutput) + CreateOrder(*outposts.CreateOrderInput) (*outposts.CreateOrderOutput, error) CreateOrderWithContext(aws.Context, *outposts.CreateOrderInput, ...request.Option) (*outposts.CreateOrderOutput, error) CreateOrderRequest(*outposts.CreateOrderInput) (*request.Request, *outposts.CreateOrderOutput) @@ -68,6 +72,10 @@ type OutpostsAPI interface { CreateOutpostWithContext(aws.Context, *outposts.CreateOutpostInput, ...request.Option) (*outposts.CreateOutpostOutput, error) CreateOutpostRequest(*outposts.CreateOutpostInput) (*request.Request, *outposts.CreateOutpostOutput) + CreateSite(*outposts.CreateSiteInput) (*outposts.CreateSiteOutput, error) + CreateSiteWithContext(aws.Context, *outposts.CreateSiteInput, ...request.Option) (*outposts.CreateSiteOutput, error) + CreateSiteRequest(*outposts.CreateSiteInput) (*request.Request, *outposts.CreateSiteOutput) + DeleteOutpost(*outposts.DeleteOutpostInput) (*outposts.DeleteOutpostOutput, error) DeleteOutpostWithContext(aws.Context, *outposts.DeleteOutpostInput, ...request.Option) (*outposts.DeleteOutpostOutput, error) DeleteOutpostRequest(*outposts.DeleteOutpostInput) (*request.Request, *outposts.DeleteOutpostOutput) @@ -76,6 +84,14 @@ type OutpostsAPI interface { DeleteSiteWithContext(aws.Context, *outposts.DeleteSiteInput, ...request.Option) (*outposts.DeleteSiteOutput, error) DeleteSiteRequest(*outposts.DeleteSiteInput) (*request.Request, *outposts.DeleteSiteOutput) + GetCatalogItem(*outposts.GetCatalogItemInput) (*outposts.GetCatalogItemOutput, error) + GetCatalogItemWithContext(aws.Context, *outposts.GetCatalogItemInput, ...request.Option) (*outposts.GetCatalogItemOutput, error) + GetCatalogItemRequest(*outposts.GetCatalogItemInput) (*request.Request, *outposts.GetCatalogItemOutput) + + GetOrder(*outposts.GetOrderInput) (*outposts.GetOrderOutput, error) + GetOrderWithContext(aws.Context, *outposts.GetOrderInput, ...request.Option) (*outposts.GetOrderOutput, error) + GetOrderRequest(*outposts.GetOrderInput) (*request.Request, *outposts.GetOrderOutput) + GetOutpost(*outposts.GetOutpostInput) (*outposts.GetOutpostOutput, error) GetOutpostWithContext(aws.Context, *outposts.GetOutpostInput, ...request.Option) (*outposts.GetOutpostOutput, error) GetOutpostRequest(*outposts.GetOutpostInput) (*request.Request, *outposts.GetOutpostOutput) @@ -84,6 +100,28 @@ type OutpostsAPI interface { GetOutpostInstanceTypesWithContext(aws.Context, *outposts.GetOutpostInstanceTypesInput, ...request.Option) (*outposts.GetOutpostInstanceTypesOutput, error) GetOutpostInstanceTypesRequest(*outposts.GetOutpostInstanceTypesInput) (*request.Request, *outposts.GetOutpostInstanceTypesOutput) + GetSite(*outposts.GetSiteInput) (*outposts.GetSiteOutput, error) + GetSiteWithContext(aws.Context, *outposts.GetSiteInput, ...request.Option) (*outposts.GetSiteOutput, error) + GetSiteRequest(*outposts.GetSiteInput) (*request.Request, *outposts.GetSiteOutput) + + GetSiteAddress(*outposts.GetSiteAddressInput) (*outposts.GetSiteAddressOutput, error) + GetSiteAddressWithContext(aws.Context, *outposts.GetSiteAddressInput, ...request.Option) (*outposts.GetSiteAddressOutput, error) + GetSiteAddressRequest(*outposts.GetSiteAddressInput) (*request.Request, *outposts.GetSiteAddressOutput) + + ListCatalogItems(*outposts.ListCatalogItemsInput) (*outposts.ListCatalogItemsOutput, error) + ListCatalogItemsWithContext(aws.Context, *outposts.ListCatalogItemsInput, ...request.Option) (*outposts.ListCatalogItemsOutput, error) + ListCatalogItemsRequest(*outposts.ListCatalogItemsInput) (*request.Request, *outposts.ListCatalogItemsOutput) + + ListCatalogItemsPages(*outposts.ListCatalogItemsInput, func(*outposts.ListCatalogItemsOutput, bool) bool) error + ListCatalogItemsPagesWithContext(aws.Context, *outposts.ListCatalogItemsInput, func(*outposts.ListCatalogItemsOutput, bool) bool, ...request.Option) error + + ListOrders(*outposts.ListOrdersInput) (*outposts.ListOrdersOutput, error) + ListOrdersWithContext(aws.Context, *outposts.ListOrdersInput, ...request.Option) (*outposts.ListOrdersOutput, error) + ListOrdersRequest(*outposts.ListOrdersInput) (*request.Request, *outposts.ListOrdersOutput) + + ListOrdersPages(*outposts.ListOrdersInput, func(*outposts.ListOrdersOutput, bool) bool) error + ListOrdersPagesWithContext(aws.Context, *outposts.ListOrdersInput, func(*outposts.ListOrdersOutput, bool) bool, ...request.Option) error + ListOutposts(*outposts.ListOutpostsInput) (*outposts.ListOutpostsOutput, error) ListOutpostsWithContext(aws.Context, *outposts.ListOutpostsInput, ...request.Option) (*outposts.ListOutpostsOutput, error) ListOutpostsRequest(*outposts.ListOutpostsInput) (*request.Request, *outposts.ListOutpostsOutput) @@ -109,6 +147,18 @@ type OutpostsAPI interface { UntagResource(*outposts.UntagResourceInput) (*outposts.UntagResourceOutput, error) UntagResourceWithContext(aws.Context, *outposts.UntagResourceInput, ...request.Option) (*outposts.UntagResourceOutput, error) UntagResourceRequest(*outposts.UntagResourceInput) (*request.Request, *outposts.UntagResourceOutput) + + UpdateSite(*outposts.UpdateSiteInput) (*outposts.UpdateSiteOutput, error) + UpdateSiteWithContext(aws.Context, *outposts.UpdateSiteInput, ...request.Option) (*outposts.UpdateSiteOutput, error) + UpdateSiteRequest(*outposts.UpdateSiteInput) (*request.Request, *outposts.UpdateSiteOutput) + + UpdateSiteAddress(*outposts.UpdateSiteAddressInput) (*outposts.UpdateSiteAddressOutput, error) + UpdateSiteAddressWithContext(aws.Context, *outposts.UpdateSiteAddressInput, ...request.Option) (*outposts.UpdateSiteAddressOutput, error) + UpdateSiteAddressRequest(*outposts.UpdateSiteAddressInput) (*request.Request, *outposts.UpdateSiteAddressOutput) + + UpdateSiteRackPhysicalProperties(*outposts.UpdateSiteRackPhysicalPropertiesInput) (*outposts.UpdateSiteRackPhysicalPropertiesOutput, error) + UpdateSiteRackPhysicalPropertiesWithContext(aws.Context, *outposts.UpdateSiteRackPhysicalPropertiesInput, ...request.Option) (*outposts.UpdateSiteRackPhysicalPropertiesOutput, error) + UpdateSiteRackPhysicalPropertiesRequest(*outposts.UpdateSiteRackPhysicalPropertiesInput) (*request.Request, *outposts.UpdateSiteRackPhysicalPropertiesOutput) } var _ OutpostsAPI = (*outposts.Outposts)(nil) diff --git a/service/pinpoint/api.go b/service/pinpoint/api.go index 59f0ca7b7e..158e6647c1 100644 --- a/service/pinpoint/api.go +++ b/service/pinpoint/api.go @@ -8747,6 +8747,103 @@ func (c *Pinpoint) SendMessagesWithContext(ctx aws.Context, input *SendMessagesI return out, req.Send() } +const opSendOTPMessage = "SendOTPMessage" + +// SendOTPMessageRequest generates a "aws/request.Request" representing the +// client's request for the SendOTPMessage 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 SendOTPMessage for more information on using the SendOTPMessage +// 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 SendOTPMessageRequest method. +// req, resp := client.SendOTPMessageRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-2016-12-01/SendOTPMessage +func (c *Pinpoint) SendOTPMessageRequest(input *SendOTPMessageInput) (req *request.Request, output *SendOTPMessageOutput) { + op := &request.Operation{ + Name: opSendOTPMessage, + HTTPMethod: "POST", + HTTPPath: "/v1/apps/{application-id}/otp", + } + + if input == nil { + input = &SendOTPMessageInput{} + } + + output = &SendOTPMessageOutput{} + req = c.newRequest(op, input, output) + return +} + +// SendOTPMessage API operation for Amazon Pinpoint. +// +// Send an OTP message +// +// Returns awserr.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 Pinpoint's +// API operation SendOTPMessage for usage and error information. +// +// Returned Error Types: +// * BadRequestException +// Provides information about an API request or response. +// +// * InternalServerErrorException +// Provides information about an API request or response. +// +// * PayloadTooLargeException +// Provides information about an API request or response. +// +// * ForbiddenException +// Provides information about an API request or response. +// +// * NotFoundException +// Provides information about an API request or response. +// +// * MethodNotAllowedException +// Provides information about an API request or response. +// +// * TooManyRequestsException +// Provides information about an API request or response. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-2016-12-01/SendOTPMessage +func (c *Pinpoint) SendOTPMessage(input *SendOTPMessageInput) (*SendOTPMessageOutput, error) { + req, out := c.SendOTPMessageRequest(input) + return out, req.Send() +} + +// SendOTPMessageWithContext is the same as SendOTPMessage with the addition of +// the ability to pass a context and additional request options. +// +// See SendOTPMessage 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 *Pinpoint) SendOTPMessageWithContext(ctx aws.Context, input *SendOTPMessageInput, opts ...request.Option) (*SendOTPMessageOutput, error) { + req, out := c.SendOTPMessageRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + const opSendUsersMessages = "SendUsersMessages" // SendUsersMessagesRequest generates a "aws/request.Request" representing the @@ -35081,6 +35178,264 @@ func (s *SendMessagesOutput) SetMessageResponse(v *MessageResponse) *SendMessage return s } +type SendOTPMessageInput struct { + _ struct{} `type:"structure" payload:"SendOTPMessageRequestParameters"` + + // ApplicationId is a required field + ApplicationId *string `location:"uri" locationName:"application-id" type:"string" required:"true"` + + // Send OTP message request parameters. + // + // SendOTPMessageRequestParameters is a required field + SendOTPMessageRequestParameters *SendOTPMessageRequestParameters `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 SendOTPMessageInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s SendOTPMessageInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *SendOTPMessageInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "SendOTPMessageInput"} + if s.ApplicationId == nil { + invalidParams.Add(request.NewErrParamRequired("ApplicationId")) + } + if s.ApplicationId != nil && len(*s.ApplicationId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ApplicationId", 1)) + } + if s.SendOTPMessageRequestParameters == nil { + invalidParams.Add(request.NewErrParamRequired("SendOTPMessageRequestParameters")) + } + if s.SendOTPMessageRequestParameters != nil { + if err := s.SendOTPMessageRequestParameters.Validate(); err != nil { + invalidParams.AddNested("SendOTPMessageRequestParameters", err.(request.ErrInvalidParams)) + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetApplicationId sets the ApplicationId field's value. +func (s *SendOTPMessageInput) SetApplicationId(v string) *SendOTPMessageInput { + s.ApplicationId = &v + return s +} + +// SetSendOTPMessageRequestParameters sets the SendOTPMessageRequestParameters field's value. +func (s *SendOTPMessageInput) SetSendOTPMessageRequestParameters(v *SendOTPMessageRequestParameters) *SendOTPMessageInput { + s.SendOTPMessageRequestParameters = v + return s +} + +type SendOTPMessageOutput struct { + _ struct{} `type:"structure" payload:"MessageResponse"` + + // Provides information about the results of a request to send a message to + // an endpoint address. + // + // MessageResponse is a required field + MessageResponse *MessageResponse `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 SendOTPMessageOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s SendOTPMessageOutput) GoString() string { + return s.String() +} + +// SetMessageResponse sets the MessageResponse field's value. +func (s *SendOTPMessageOutput) SetMessageResponse(v *MessageResponse) *SendOTPMessageOutput { + s.MessageResponse = v + return s +} + +// Send OTP message request parameters. +type SendOTPMessageRequestParameters struct { + _ struct{} `type:"structure"` + + // The attempts allowed to validate an OTP. + AllowedAttempts *int64 `type:"integer"` + + // The brand name that will be substituted into the OTP message body. Should + // be owned by calling AWS account. + // + // BrandName is a required field + BrandName *string `type:"string" required:"true"` + + // Channel type for the OTP message. Supported values: [SMS]. + // + // Channel is a required field + Channel *string `type:"string" required:"true"` + + // The number of characters in the generated OTP. + CodeLength *int64 `type:"integer"` + + // The destination identity to send OTP to. + // + // DestinationIdentity is a required field + DestinationIdentity *string `type:"string" required:"true"` + + // A unique Entity ID received from DLT after entity registration is approved. + EntityId *string `type:"string"` + + // The language to be used for the outgoing message body containing the OTP. + Language *string `type:"string"` + + // The origination identity used to send OTP from. + // + // OriginationIdentity is a required field + OriginationIdentity *string `type:"string" required:"true"` + + // Developer-specified reference identifier. Required to match during OTP verification. + // + // ReferenceId is a required field + ReferenceId *string `type:"string" required:"true"` + + // A unique Template ID received from DLT after entity registration is approved. + TemplateId *string `type:"string"` + + // The time in minutes before the OTP is no longer valid. + ValidityPeriod *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 SendOTPMessageRequestParameters) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s SendOTPMessageRequestParameters) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *SendOTPMessageRequestParameters) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "SendOTPMessageRequestParameters"} + if s.BrandName == nil { + invalidParams.Add(request.NewErrParamRequired("BrandName")) + } + if s.Channel == nil { + invalidParams.Add(request.NewErrParamRequired("Channel")) + } + if s.DestinationIdentity == nil { + invalidParams.Add(request.NewErrParamRequired("DestinationIdentity")) + } + if s.OriginationIdentity == nil { + invalidParams.Add(request.NewErrParamRequired("OriginationIdentity")) + } + if s.ReferenceId == nil { + invalidParams.Add(request.NewErrParamRequired("ReferenceId")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetAllowedAttempts sets the AllowedAttempts field's value. +func (s *SendOTPMessageRequestParameters) SetAllowedAttempts(v int64) *SendOTPMessageRequestParameters { + s.AllowedAttempts = &v + return s +} + +// SetBrandName sets the BrandName field's value. +func (s *SendOTPMessageRequestParameters) SetBrandName(v string) *SendOTPMessageRequestParameters { + s.BrandName = &v + return s +} + +// SetChannel sets the Channel field's value. +func (s *SendOTPMessageRequestParameters) SetChannel(v string) *SendOTPMessageRequestParameters { + s.Channel = &v + return s +} + +// SetCodeLength sets the CodeLength field's value. +func (s *SendOTPMessageRequestParameters) SetCodeLength(v int64) *SendOTPMessageRequestParameters { + s.CodeLength = &v + return s +} + +// SetDestinationIdentity sets the DestinationIdentity field's value. +func (s *SendOTPMessageRequestParameters) SetDestinationIdentity(v string) *SendOTPMessageRequestParameters { + s.DestinationIdentity = &v + return s +} + +// SetEntityId sets the EntityId field's value. +func (s *SendOTPMessageRequestParameters) SetEntityId(v string) *SendOTPMessageRequestParameters { + s.EntityId = &v + return s +} + +// SetLanguage sets the Language field's value. +func (s *SendOTPMessageRequestParameters) SetLanguage(v string) *SendOTPMessageRequestParameters { + s.Language = &v + return s +} + +// SetOriginationIdentity sets the OriginationIdentity field's value. +func (s *SendOTPMessageRequestParameters) SetOriginationIdentity(v string) *SendOTPMessageRequestParameters { + s.OriginationIdentity = &v + return s +} + +// SetReferenceId sets the ReferenceId field's value. +func (s *SendOTPMessageRequestParameters) SetReferenceId(v string) *SendOTPMessageRequestParameters { + s.ReferenceId = &v + return s +} + +// SetTemplateId sets the TemplateId field's value. +func (s *SendOTPMessageRequestParameters) SetTemplateId(v string) *SendOTPMessageRequestParameters { + s.TemplateId = &v + return s +} + +// SetValidityPeriod sets the ValidityPeriod field's value. +func (s *SendOTPMessageRequestParameters) SetValidityPeriod(v int64) *SendOTPMessageRequestParameters { + s.ValidityPeriod = &v + return s +} + // Specifies the configuration and other settings for a message to send to all // the endpoints that are associated with a list of users. type SendUsersMessageRequest struct { diff --git a/service/pinpoint/pinpointiface/interface.go b/service/pinpoint/pinpointiface/interface.go index 18928fc843..8fd5380b76 100644 --- a/service/pinpoint/pinpointiface/interface.go +++ b/service/pinpoint/pinpointiface/interface.go @@ -420,6 +420,10 @@ type PinpointAPI interface { SendMessagesWithContext(aws.Context, *pinpoint.SendMessagesInput, ...request.Option) (*pinpoint.SendMessagesOutput, error) SendMessagesRequest(*pinpoint.SendMessagesInput) (*request.Request, *pinpoint.SendMessagesOutput) + SendOTPMessage(*pinpoint.SendOTPMessageInput) (*pinpoint.SendOTPMessageOutput, error) + SendOTPMessageWithContext(aws.Context, *pinpoint.SendOTPMessageInput, ...request.Option) (*pinpoint.SendOTPMessageOutput, error) + SendOTPMessageRequest(*pinpoint.SendOTPMessageInput) (*request.Request, *pinpoint.SendOTPMessageOutput) + SendUsersMessages(*pinpoint.SendUsersMessagesInput) (*pinpoint.SendUsersMessagesOutput, error) SendUsersMessagesWithContext(aws.Context, *pinpoint.SendUsersMessagesInput, ...request.Option) (*pinpoint.SendUsersMessagesOutput, error) SendUsersMessagesRequest(*pinpoint.SendUsersMessagesInput) (*request.Request, *pinpoint.SendUsersMessagesOutput)