cluster-autoscaler/cloudprovider/aws/aws-sdk-go/service/outposts/api.go (3,613 lines of code) (raw):
// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
package outposts
import (
"fmt"
"time"
"k8s.io/autoscaler/cluster-autoscaler/cloudprovider/aws/aws-sdk-go/aws"
"k8s.io/autoscaler/cluster-autoscaler/cloudprovider/aws/aws-sdk-go/aws/awsutil"
"k8s.io/autoscaler/cluster-autoscaler/cloudprovider/aws/aws-sdk-go/aws/request"
"k8s.io/autoscaler/cluster-autoscaler/cloudprovider/aws/aws-sdk-go/private/protocol"
"k8s.io/autoscaler/cluster-autoscaler/cloudprovider/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 the specified 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
// client's request for the CreateOrder 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 CreateOrder for more information on using the CreateOrder
// 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 CreateOrderRequest method.
// req, resp := client.CreateOrderRequest(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/CreateOrder
func (c *Outposts) CreateOrderRequest(input *CreateOrderInput) (req *request.Request, output *CreateOrderOutput) {
op := &request.Operation{
Name: opCreateOrder,
HTTPMethod: "POST",
HTTPPath: "/orders",
}
if input == nil {
input = &CreateOrderInput{}
}
output = &CreateOrderOutput{}
req = c.newRequest(op, input, output)
return
}
// CreateOrder API operation for AWS Outposts.
//
// Creates 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 CreateOrder 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.
//
// - ServiceQuotaExceededException
// You have exceeded a service quota.
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/outposts-2019-12-03/CreateOrder
func (c *Outposts) CreateOrder(input *CreateOrderInput) (*CreateOrderOutput, error) {
req, out := c.CreateOrderRequest(input)
return out, req.Send()
}
// CreateOrderWithContext is the same as CreateOrder with the addition of
// the ability to pass a context and additional request options.
//
// See CreateOrder 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) CreateOrderWithContext(ctx aws.Context, input *CreateOrderInput, opts ...request.Option) (*CreateOrderOutput, error) {
req, out := c.CreateOrderRequest(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
const opCreateOutpost = "CreateOutpost"
// CreateOutpostRequest generates a "aws/request.Request" representing the
// client's request for the CreateOutpost 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 CreateOutpost for more information on using the CreateOutpost
// 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 CreateOutpostRequest method.
// req, resp := client.CreateOutpostRequest(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/CreateOutpost
func (c *Outposts) CreateOutpostRequest(input *CreateOutpostInput) (req *request.Request, output *CreateOutpostOutput) {
op := &request.Operation{
Name: opCreateOutpost,
HTTPMethod: "POST",
HTTPPath: "/outposts",
}
if input == nil {
input = &CreateOutpostInput{}
}
output = &CreateOutpostOutput{}
req = c.newRequest(op, input, output)
return
}
// CreateOutpost API operation for AWS Outposts.
//
// Creates an Outpost.
//
// You can specify either an Availability one or an AZ 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 AWS Outposts's
// API operation CreateOutpost 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.
//
// - ServiceQuotaExceededException
// You have exceeded a service quota.
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/outposts-2019-12-03/CreateOutpost
func (c *Outposts) CreateOutpost(input *CreateOutpostInput) (*CreateOutpostOutput, error) {
req, out := c.CreateOutpostRequest(input)
return out, req.Send()
}
// CreateOutpostWithContext is the same as CreateOutpost with the addition of
// the ability to pass a context and additional request options.
//
// See CreateOutpost 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) CreateOutpostWithContext(ctx aws.Context, input *CreateOutpostInput, opts ...request.Option) (*CreateOutpostOutput, error) {
req, out := c.CreateOutpostRequest(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
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
// client's request for the DeleteOutpost 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 DeleteOutpost for more information on using the DeleteOutpost
// 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 DeleteOutpostRequest method.
// req, resp := client.DeleteOutpostRequest(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/DeleteOutpost
func (c *Outposts) DeleteOutpostRequest(input *DeleteOutpostInput) (req *request.Request, output *DeleteOutpostOutput) {
op := &request.Operation{
Name: opDeleteOutpost,
HTTPMethod: "DELETE",
HTTPPath: "/outposts/{OutpostId}",
}
if input == nil {
input = &DeleteOutpostInput{}
}
output = &DeleteOutpostOutput{}
req = c.newRequest(op, input, output)
req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
return
}
// DeleteOutpost API operation for AWS Outposts.
//
// Deletes 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 DeleteOutpost 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/DeleteOutpost
func (c *Outposts) DeleteOutpost(input *DeleteOutpostInput) (*DeleteOutpostOutput, error) {
req, out := c.DeleteOutpostRequest(input)
return out, req.Send()
}
// DeleteOutpostWithContext is the same as DeleteOutpost with the addition of
// the ability to pass a context and additional request options.
//
// See DeleteOutpost 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) DeleteOutpostWithContext(ctx aws.Context, input *DeleteOutpostInput, opts ...request.Option) (*DeleteOutpostOutput, error) {
req, out := c.DeleteOutpostRequest(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
const opDeleteSite = "DeleteSite"
// DeleteSiteRequest generates a "aws/request.Request" representing the
// client's request for the DeleteSite 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 DeleteSite for more information on using the DeleteSite
// 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 DeleteSiteRequest method.
// req, resp := client.DeleteSiteRequest(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/DeleteSite
func (c *Outposts) DeleteSiteRequest(input *DeleteSiteInput) (req *request.Request, output *DeleteSiteOutput) {
op := &request.Operation{
Name: opDeleteSite,
HTTPMethod: "DELETE",
HTTPPath: "/sites/{SiteId}",
}
if input == nil {
input = &DeleteSiteInput{}
}
output = &DeleteSiteOutput{}
req = c.newRequest(op, input, output)
req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
return
}
// DeleteSite API operation for AWS Outposts.
//
// Deletes the specified 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 DeleteSite 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/DeleteSite
func (c *Outposts) DeleteSite(input *DeleteSiteInput) (*DeleteSiteOutput, error) {
req, out := c.DeleteSiteRequest(input)
return out, req.Send()
}
// DeleteSiteWithContext is the same as DeleteSite with the addition of
// the ability to pass a context and additional request options.
//
// See DeleteSite 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) DeleteSiteWithContext(ctx aws.Context, input *DeleteSiteInput, opts ...request.Option) (*DeleteSiteOutput, error) {
req, out := c.DeleteSiteRequest(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
const opGetCatalogItem = "GetCatalogItem"
// 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 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 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/GetCatalogItem
func (c *Outposts) GetCatalogItemRequest(input *GetCatalogItemInput) (req *request.Request, output *GetCatalogItemOutput) {
op := &request.Operation{
Name: opGetCatalogItem,
HTTPMethod: "GET",
HTTPPath: "/catalog/item/{CatalogItemId}",
}
if input == nil {
input = &GetCatalogItemInput{}
}
output = &GetCatalogItemOutput{}
req = c.newRequest(op, input, output)
return
}
// GetCatalogItem API operation for AWS Outposts.
//
// Gets information about the specified 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 GetCatalogItem for usage and error information.
//
// Returned Error Types:
//
// - ValidationException
// A parameter is not valid.
//
// - 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/GetCatalogItem
func (c *Outposts) GetCatalogItem(input *GetCatalogItemInput) (*GetCatalogItemOutput, error) {
req, out := c.GetCatalogItemRequest(input)
return out, req.Send()
}
// GetCatalogItemWithContext is the same as GetCatalogItem with the addition of
// the ability to pass a context and additional request options.
//
// 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) 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 opGetConnection = "GetConnection"
// GetConnectionRequest generates a "aws/request.Request" representing the
// client's request for the GetConnection 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 GetConnection for more information on using the GetConnection
// 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 GetConnectionRequest method.
// req, resp := client.GetConnectionRequest(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/GetConnection
func (c *Outposts) GetConnectionRequest(input *GetConnectionInput) (req *request.Request, output *GetConnectionOutput) {
op := &request.Operation{
Name: opGetConnection,
HTTPMethod: "GET",
HTTPPath: "/connections/{ConnectionId}",
}
if input == nil {
input = &GetConnectionInput{}
}
output = &GetConnectionOutput{}
req = c.newRequest(op, input, output)
return
}
// GetConnection API operation for AWS Outposts.
//
// Amazon Web Services uses this action to install Outpost servers.
//
// Gets information about the specified connection.
//
// Use CloudTrail to monitor this action or Amazon Web Services managed policy
// for Amazon Web Services Outposts to secure it. For more information, see
// Amazon Web Services managed policies for Amazon Web Services Outposts (https://docs.aws.amazon.com/outposts/latest/userguide/security-iam-awsmanpol.html)
// and Logging Amazon Web Services Outposts API calls with Amazon Web Services
// CloudTrail (https://docs.aws.amazon.com/outposts/latest/userguide/logging-using-cloudtrail.html)
// in the Amazon Web Services Outposts User Guide.
//
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
// with awserr.Error's Code and Message methods to get detailed information about
// the error.
//
// See the AWS API reference guide for AWS Outposts's
// API operation GetConnection for usage and error information.
//
// Returned Error Types:
//
// - AccessDeniedException
// You do not have permission to perform this operation.
//
// - ValidationException
// A parameter is not valid.
//
// - 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/GetConnection
func (c *Outposts) GetConnection(input *GetConnectionInput) (*GetConnectionOutput, error) {
req, out := c.GetConnectionRequest(input)
return out, req.Send()
}
// GetConnectionWithContext is the same as GetConnection with the addition of
// the ability to pass a context and additional request options.
//
// See GetConnection 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) GetConnectionWithContext(ctx aws.Context, input *GetConnectionInput, opts ...request.Option) (*GetConnectionOutput, error) {
req, out := c.GetConnectionRequest(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
const opGetOrder = "GetOrder"
// 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 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 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/GetOrder
func (c *Outposts) GetOrderRequest(input *GetOrderInput) (req *request.Request, output *GetOrderOutput) {
op := &request.Operation{
Name: opGetOrder,
HTTPMethod: "GET",
HTTPPath: "/orders/{OrderId}",
}
if input == nil {
input = &GetOrderInput{}
}
output = &GetOrderOutput{}
req = c.newRequest(op, input, output)
return
}
// GetOrder API operation for AWS Outposts.
//
// Gets information about the specified 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 GetOrder for usage and error information.
//
// Returned Error Types:
//
// - ValidationException
// A parameter is not valid.
//
// - 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/GetOrder
func (c *Outposts) GetOrder(input *GetOrderInput) (*GetOrderOutput, error) {
req, out := c.GetOrderRequest(input)
return out, req.Send()
}
// GetOrderWithContext is the same as GetOrder with the addition of
// the ability to pass a context and additional request options.
//
// 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) 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 opGetOutpost = "GetOutpost"
// 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 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 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/GetOutpost
func (c *Outposts) GetOutpostRequest(input *GetOutpostInput) (req *request.Request, output *GetOutpostOutput) {
op := &request.Operation{
Name: opGetOutpost,
HTTPMethod: "GET",
HTTPPath: "/outposts/{OutpostId}",
}
if input == nil {
input = &GetOutpostInput{}
}
output = &GetOutpostOutput{}
req = c.newRequest(op, input, output)
return
}
// GetOutpost API operation for AWS Outposts.
//
// 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 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/GetOutpost
func (c *Outposts) GetOutpost(input *GetOutpostInput) (*GetOutpostOutput, error) {
req, out := c.GetOutpostRequest(input)
return out, req.Send()
}
// GetOutpostWithContext is the same as GetOutpost 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.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the 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)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
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 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 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/GetOutpostInstanceTypes
func (c *Outposts) GetOutpostInstanceTypesRequest(input *GetOutpostInstanceTypesInput) (req *request.Request, output *GetOutpostInstanceTypesOutput) {
op := &request.Operation{
Name: opGetOutpostInstanceTypes,
HTTPMethod: "GET",
HTTPPath: "/outposts/{OutpostId}/instanceTypes",
Paginator: &request.Paginator{
InputTokens: []string{"NextToken"},
OutputTokens: []string{"NextToken"},
LimitToken: "MaxResults",
TruncationToken: "",
},
}
if input == nil {
input = &GetOutpostInstanceTypesInput{}
}
output = &GetOutpostInstanceTypesOutput{}
req = c.newRequest(op, input, output)
return
}
// GetOutpostInstanceTypes API operation for AWS Outposts.
//
// Gets 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 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/GetOutpostInstanceTypes
func (c *Outposts) GetOutpostInstanceTypes(input *GetOutpostInstanceTypesInput) (*GetOutpostInstanceTypesOutput, error) {
req, out := c.GetOutpostInstanceTypesRequest(input)
return out, req.Send()
}
// GetOutpostInstanceTypesWithContext is the same as GetOutpostInstanceTypes 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.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the 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)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
// GetOutpostInstanceTypesPages iterates over the pages of a GetOutpostInstanceTypes operation,
// calling the "fn" function with the response data for each page. To stop
// iterating, return false from the fn function.
//
// See GetOutpostInstanceTypes 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 GetOutpostInstanceTypes operation.
// pageNum := 0
// err := client.GetOutpostInstanceTypesPages(params,
// func(page *outposts.GetOutpostInstanceTypesOutput, lastPage bool) bool {
// pageNum++
// fmt.Println(page)
// return pageNum <= 3
// })
func (c *Outposts) GetOutpostInstanceTypesPages(input *GetOutpostInstanceTypesInput, fn func(*GetOutpostInstanceTypesOutput, bool) bool) error {
return c.GetOutpostInstanceTypesPagesWithContext(aws.BackgroundContext(), input, fn)
}
// GetOutpostInstanceTypesPagesWithContext same as GetOutpostInstanceTypesPages 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) GetOutpostInstanceTypesPagesWithContext(ctx aws.Context, input *GetOutpostInstanceTypesInput, fn func(*GetOutpostInstanceTypesOutput, bool) bool, opts ...request.Option) error {
p := request.Pagination{
NewRequest: func() (*request.Request, error) {
var inCpy *GetOutpostInstanceTypesInput
if input != nil {
tmp := *input
inCpy = &tmp
}
req, _ := c.GetOutpostInstanceTypesRequest(inCpy)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return req, nil
},
}
for p.Next() {
if !fn(p.Page().(*GetOutpostInstanceTypesOutput), !p.HasNextPage()) {
break
}
}
return p.Err()
}
const opGetSite = "GetSite"
// 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 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 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/GetSite
func (c *Outposts) GetSiteRequest(input *GetSiteInput) (req *request.Request, output *GetSiteOutput) {
op := &request.Operation{
Name: opGetSite,
HTTPMethod: "GET",
HTTPPath: "/sites/{SiteId}",
}
if input == nil {
input = &GetSiteInput{}
}
output = &GetSiteOutput{}
req = c.newRequest(op, input, output)
return
}
// GetSite API operation for AWS Outposts.
//
// 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 GetSite 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/GetSite
func (c *Outposts) GetSite(input *GetSiteInput) (*GetSiteOutput, error) {
req, out := c.GetSiteRequest(input)
return out, req.Send()
}
// GetSiteWithContext is the same as GetSite with the addition of
// the ability to pass a context and additional request options.
//
// 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) 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 opGetSiteAddress = "GetSiteAddress"
// 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 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 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/GetSiteAddress
func (c *Outposts) GetSiteAddressRequest(input *GetSiteAddressInput) (req *request.Request, output *GetSiteAddressOutput) {
op := &request.Operation{
Name: opGetSiteAddress,
HTTPMethod: "GET",
HTTPPath: "/sites/{SiteId}/address",
}
if input == nil {
input = &GetSiteAddressInput{}
}
output = &GetSiteAddressOutput{}
req = c.newRequest(op, input, output)
return
}
// GetSiteAddress API operation for AWS Outposts.
//
// Gets the site address of the specified 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 GetSiteAddress 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.
//
// - 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()
}
// GetSiteAddressWithContext is the same as GetSiteAddress with the addition of
// the ability to pass a context and additional request options.
//
// 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) 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 opListAssets = "ListAssets"
// ListAssetsRequest generates a "aws/request.Request" representing the
// client's request for the ListAssets 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 ListAssets for more information on using the ListAssets
// 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 ListAssetsRequest method.
// req, resp := client.ListAssetsRequest(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/ListAssets
func (c *Outposts) ListAssetsRequest(input *ListAssetsInput) (req *request.Request, output *ListAssetsOutput) {
op := &request.Operation{
Name: opListAssets,
HTTPMethod: "GET",
HTTPPath: "/outposts/{OutpostId}/assets",
Paginator: &request.Paginator{
InputTokens: []string{"NextToken"},
OutputTokens: []string{"NextToken"},
LimitToken: "MaxResults",
TruncationToken: "",
},
}
if input == nil {
input = &ListAssetsInput{}
}
output = &ListAssetsOutput{}
req = c.newRequest(op, input, output)
return
}
// ListAssets API operation for AWS Outposts.
//
// Lists the hardware assets for the specified Outpost.
//
// Use filters to return specific results. If you specify multiple filters,
// the results include only the resources that match all of the specified filters.
// For a filter where you can specify multiple values, the results include items
// that match any of the values that you specify for the filter.
//
// 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 ListAssets 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.
//
// - InternalServerException
// An internal error has occurred.
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/outposts-2019-12-03/ListAssets
func (c *Outposts) ListAssets(input *ListAssetsInput) (*ListAssetsOutput, error) {
req, out := c.ListAssetsRequest(input)
return out, req.Send()
}
// ListAssetsWithContext is the same as ListAssets with the addition of
// the ability to pass a context and additional request options.
//
// See ListAssets 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) ListAssetsWithContext(ctx aws.Context, input *ListAssetsInput, opts ...request.Option) (*ListAssetsOutput, error) {
req, out := c.ListAssetsRequest(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
// ListAssetsPages iterates over the pages of a ListAssets operation,
// calling the "fn" function with the response data for each page. To stop
// iterating, return false from the fn function.
//
// See ListAssets 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 ListAssets operation.
// pageNum := 0
// err := client.ListAssetsPages(params,
// func(page *outposts.ListAssetsOutput, lastPage bool) bool {
// pageNum++
// fmt.Println(page)
// return pageNum <= 3
// })
func (c *Outposts) ListAssetsPages(input *ListAssetsInput, fn func(*ListAssetsOutput, bool) bool) error {
return c.ListAssetsPagesWithContext(aws.BackgroundContext(), input, fn)
}
// ListAssetsPagesWithContext same as ListAssetsPages 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) ListAssetsPagesWithContext(ctx aws.Context, input *ListAssetsInput, fn func(*ListAssetsOutput, bool) bool, opts ...request.Option) error {
p := request.Pagination{
NewRequest: func() (*request.Request, error) {
var inCpy *ListAssetsInput
if input != nil {
tmp := *input
inCpy = &tmp
}
req, _ := c.ListAssetsRequest(inCpy)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return req, nil
},
}
for p.Next() {
if !fn(p.Page().(*ListAssetsOutput), !p.HasNextPage()) {
break
}
}
return p.Err()
}
const opListCatalogItems = "ListCatalogItems"
// 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 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 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/ListCatalogItems
func (c *Outposts) ListCatalogItemsRequest(input *ListCatalogItemsInput) (req *request.Request, output *ListCatalogItemsOutput) {
op := &request.Operation{
Name: opListCatalogItems,
HTTPMethod: "GET",
HTTPPath: "/catalog/items",
Paginator: &request.Paginator{
InputTokens: []string{"NextToken"},
OutputTokens: []string{"NextToken"},
LimitToken: "MaxResults",
TruncationToken: "",
},
}
if input == nil {
input = &ListCatalogItemsInput{}
}
output = &ListCatalogItemsOutput{}
req = c.newRequest(op, input, output)
return
}
// ListCatalogItems API operation for AWS Outposts.
//
// Lists the items in the catalog.
//
// Use filters to return specific results. If you specify multiple filters,
// the results include only the resources that match all of the specified filters.
// For a filter where you can specify multiple values, the results include items
// that match any of the values that you specify for the filter.
//
// 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 ListCatalogItems for usage and error information.
//
// Returned Error Types:
//
// - ValidationException
// A parameter is not valid.
//
// - 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/ListCatalogItems
func (c *Outposts) ListCatalogItems(input *ListCatalogItemsInput) (*ListCatalogItemsOutput, error) {
req, out := c.ListCatalogItemsRequest(input)
return out, req.Send()
}
// ListCatalogItemsWithContext is the same as ListCatalogItems with the addition of
// the ability to pass a context and additional request options.
//
// 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) 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.
//
// Lists the Outpost orders 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 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.
//
// Lists the Outposts for your Amazon Web Services account.
//
// Use filters to return specific results. If you specify multiple filters,
// the results include only the resources that match all of the specified filters.
// For a filter where you can specify multiple values, the results include items
// that match any of the values that you specify for the filter.
//
// 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()
}
// 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 Outpost sites for your Amazon Web Services account. Use filters
// to return specific results.
//
// Use filters to return specific results. If you specify multiple filters,
// the results include only the resources that match all of the specified filters.
// For a filter where you can specify multiple values, the results include items
// that match any of the values that you specify for the filter.
//
// 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 opStartConnection = "StartConnection"
// StartConnectionRequest generates a "aws/request.Request" representing the
// client's request for the StartConnection 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 StartConnection for more information on using the StartConnection
// 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 StartConnectionRequest method.
// req, resp := client.StartConnectionRequest(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/StartConnection
func (c *Outposts) StartConnectionRequest(input *StartConnectionInput) (req *request.Request, output *StartConnectionOutput) {
op := &request.Operation{
Name: opStartConnection,
HTTPMethod: "POST",
HTTPPath: "/connections",
}
if input == nil {
input = &StartConnectionInput{}
}
output = &StartConnectionOutput{}
req = c.newRequest(op, input, output)
return
}
// StartConnection API operation for AWS Outposts.
//
// Amazon Web Services uses this action to install Outpost servers.
//
// Starts the connection required for Outpost server installation.
//
// Use CloudTrail to monitor this action or Amazon Web Services managed policy
// for Amazon Web Services Outposts to secure it. For more information, see
// Amazon Web Services managed policies for Amazon Web Services Outposts (https://docs.aws.amazon.com/outposts/latest/userguide/security-iam-awsmanpol.html)
// and Logging Amazon Web Services Outposts API calls with Amazon Web Services
// CloudTrail (https://docs.aws.amazon.com/outposts/latest/userguide/logging-using-cloudtrail.html)
// in the Amazon Web Services Outposts User Guide.
//
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
// with awserr.Error's Code and Message methods to get detailed information about
// the error.
//
// See the AWS API reference guide for AWS Outposts's
// API operation StartConnection for usage and error information.
//
// Returned Error Types:
//
// - AccessDeniedException
// You do not have permission to perform this operation.
//
// - ValidationException
// A parameter is not valid.
//
// - 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/StartConnection
func (c *Outposts) StartConnection(input *StartConnectionInput) (*StartConnectionOutput, error) {
req, out := c.StartConnectionRequest(input)
return out, req.Send()
}
// StartConnectionWithContext is the same as StartConnection with the addition of
// the ability to pass a context and additional request options.
//
// See StartConnection 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) StartConnectionWithContext(ctx aws.Context, input *StartConnectionInput, opts ...request.Option) (*StartConnectionOutput, error) {
req, out := c.StartConnectionRequest(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 opUpdateOutpost = "UpdateOutpost"
// UpdateOutpostRequest generates a "aws/request.Request" representing the
// client's request for the UpdateOutpost 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 UpdateOutpost for more information on using the UpdateOutpost
// 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 UpdateOutpostRequest method.
// req, resp := client.UpdateOutpostRequest(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/UpdateOutpost
func (c *Outposts) UpdateOutpostRequest(input *UpdateOutpostInput) (req *request.Request, output *UpdateOutpostOutput) {
op := &request.Operation{
Name: opUpdateOutpost,
HTTPMethod: "PATCH",
HTTPPath: "/outposts/{OutpostId}",
}
if input == nil {
input = &UpdateOutpostInput{}
}
output = &UpdateOutpostOutput{}
req = c.newRequest(op, input, output)
return
}
// UpdateOutpost API operation for AWS Outposts.
//
// Updates 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 UpdateOutpost 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/UpdateOutpost
func (c *Outposts) UpdateOutpost(input *UpdateOutpostInput) (*UpdateOutpostOutput, error) {
req, out := c.UpdateOutpostRequest(input)
return out, req.Send()
}
// UpdateOutpostWithContext is the same as UpdateOutpost with the addition of
// the ability to pass a context and additional request options.
//
// See UpdateOutpost 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) UpdateOutpostWithContext(ctx aws.Context, input *UpdateOutpostInput, opts ...request.Option) (*UpdateOutpostOutput, error) {
req, out := c.UpdateOutpostRequest(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 specified 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 address of the specified site.
//
// You can't update a site address if there is 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
}
// Information about hardware assets.
type AssetInfo struct {
_ struct{} `type:"structure"`
// The ID of the asset.
AssetId *string `min:"1" type:"string"`
// The position of an asset in a rack.
AssetLocation *AssetLocation `type:"structure"`
// The type of the asset.
AssetType *string `type:"string" enum:"AssetType"`
// Information about compute hardware assets.
ComputeAttributes *ComputeAttributes `type:"structure"`
// The rack ID of the asset.
RackId *string `min:"5" 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 AssetInfo) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s AssetInfo) GoString() string {
return s.String()
}
// SetAssetId sets the AssetId field's value.
func (s *AssetInfo) SetAssetId(v string) *AssetInfo {
s.AssetId = &v
return s
}
// SetAssetLocation sets the AssetLocation field's value.
func (s *AssetInfo) SetAssetLocation(v *AssetLocation) *AssetInfo {
s.AssetLocation = v
return s
}
// SetAssetType sets the AssetType field's value.
func (s *AssetInfo) SetAssetType(v string) *AssetInfo {
s.AssetType = &v
return s
}
// SetComputeAttributes sets the ComputeAttributes field's value.
func (s *AssetInfo) SetComputeAttributes(v *ComputeAttributes) *AssetInfo {
s.ComputeAttributes = v
return s
}
// SetRackId sets the RackId field's value.
func (s *AssetInfo) SetRackId(v string) *AssetInfo {
s.RackId = &v
return s
}
// Information about the position of the asset in a rack.
type AssetLocation struct {
_ struct{} `type:"structure"`
// The position of an asset in a rack measured in rack units.
RackElevation *float64 `type:"float"`
}
// String returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s AssetLocation) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s AssetLocation) GoString() string {
return s.String()
}
// SetRackElevation sets the RackElevation field's value.
func (s *AssetLocation) SetRackElevation(v float64) *AssetLocation {
s.RackElevation = &v
return s
}
type CancelOrderInput 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 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" enum:"SupportedStorageEnum"`
// 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
}
// Information about compute hardware assets.
type ComputeAttributes struct {
_ struct{} `type:"structure"`
// The host ID of the Dedicated Host on the asset.
HostId *string `min:"1" type:"string"`
// A list of the names of instance families that are currently associated with
// a given asset.
InstanceFamilies []*string `type:"list"`
// The state.
//
// * ACTIVE - The asset is available and can provide capacity for new compute
// resources.
//
// * ISOLATED - The asset is undergoing maintenance and can't provide capacity
// for new compute resources. Existing compute resources on the asset are
// not affected.
//
// * RETIRING - The underlying hardware for the asset is degraded. Capacity
// for new compute resources is reduced. Amazon Web Services sends notifications
// for resources that must be stopped before the asset can be replaced.
State *string `type:"string" enum:"ComputeAssetState"`
}
// String returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s ComputeAttributes) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s ComputeAttributes) GoString() string {
return s.String()
}
// SetHostId sets the HostId field's value.
func (s *ComputeAttributes) SetHostId(v string) *ComputeAttributes {
s.HostId = &v
return s
}
// SetInstanceFamilies sets the InstanceFamilies field's value.
func (s *ComputeAttributes) SetInstanceFamilies(v []*string) *ComputeAttributes {
s.InstanceFamilies = v
return s
}
// SetState sets the State field's value.
func (s *ComputeAttributes) SetState(v string) *ComputeAttributes {
s.State = &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
}
// Information about a connection.
type ConnectionDetails struct {
_ struct{} `type:"structure"`
// The allowed IP addresses.
AllowedIps []*string `type:"list"`
// The public key of the client.
ClientPublicKey *string `min:"44" type:"string"`
// The client tunnel address.
ClientTunnelAddress *string `min:"9" type:"string"`
// The endpoint for the server.
ServerEndpoint *string `min:"9" type:"string"`
// The public key of the server.
ServerPublicKey *string `min:"44" type:"string"`
// The server tunnel address.
ServerTunnelAddress *string `min:"9" 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 ConnectionDetails) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s ConnectionDetails) GoString() string {
return s.String()
}
// SetAllowedIps sets the AllowedIps field's value.
func (s *ConnectionDetails) SetAllowedIps(v []*string) *ConnectionDetails {
s.AllowedIps = v
return s
}
// SetClientPublicKey sets the ClientPublicKey field's value.
func (s *ConnectionDetails) SetClientPublicKey(v string) *ConnectionDetails {
s.ClientPublicKey = &v
return s
}
// SetClientTunnelAddress sets the ClientTunnelAddress field's value.
func (s *ConnectionDetails) SetClientTunnelAddress(v string) *ConnectionDetails {
s.ClientTunnelAddress = &v
return s
}
// SetServerEndpoint sets the ServerEndpoint field's value.
func (s *ConnectionDetails) SetServerEndpoint(v string) *ConnectionDetails {
s.ServerEndpoint = &v
return s
}
// SetServerPublicKey sets the ServerPublicKey field's value.
func (s *ConnectionDetails) SetServerPublicKey(v string) *ConnectionDetails {
s.ServerPublicKey = &v
return s
}
// SetServerTunnelAddress sets the ServerTunnelAddress field's value.
func (s *ConnectionDetails) SetServerTunnelAddress(v string) *ConnectionDetails {
s.ServerTunnelAddress = &v
return s
}
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.
//
// PaymentOption is a required field
PaymentOption *string `type:"string" required:"true" enum:"PaymentOption"`
// The payment terms.
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 or the Amazon Resource Name (ARN) of the site.
//
// SiteId is a required field
SiteId *string `min:"1" type:"string" required:"true"`
// The type of hardware for this Outpost.
SupportedHardwareType *string `type:"string" enum:"SupportedHardwareType"`
// 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
}
// SetSupportedHardwareType sets the SupportedHardwareType field's value.
func (s *CreateOutpostInput) SetSupportedHardwareType(v string) *CreateOutpostInput {
s.SupportedHardwareType = &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 or the Amazon Resource Name (ARN) 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 or the Amazon Resource Name (ARN) 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 GetConnectionInput struct {
_ struct{} `type:"structure" nopayload:"true"`
// The ID of the connection.
//
// ConnectionId is a required field
ConnectionId *string `location:"uri" locationName:"ConnectionId" 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 GetConnectionInput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s GetConnectionInput) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
func (s *GetConnectionInput) Validate() error {
invalidParams := request.ErrInvalidParams{Context: "GetConnectionInput"}
if s.ConnectionId == nil {
invalidParams.Add(request.NewErrParamRequired("ConnectionId"))
}
if s.ConnectionId != nil && len(*s.ConnectionId) < 1 {
invalidParams.Add(request.NewErrParamMinLen("ConnectionId", 1))
}
if invalidParams.Len() > 0 {
return invalidParams
}
return nil
}
// SetConnectionId sets the ConnectionId field's value.
func (s *GetConnectionInput) SetConnectionId(v string) *GetConnectionInput {
s.ConnectionId = &v
return s
}
type GetConnectionOutput struct {
_ struct{} `type:"structure"`
// Information about the connection.
ConnectionDetails *ConnectionDetails `type:"structure"`
// The ID of the connection.
ConnectionId *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 GetConnectionOutput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s GetConnectionOutput) GoString() string {
return s.String()
}
// SetConnectionDetails sets the ConnectionDetails field's value.
func (s *GetConnectionOutput) SetConnectionDetails(v *ConnectionDetails) *GetConnectionOutput {
s.ConnectionDetails = v
return s
}
// SetConnectionId sets the ConnectionId field's value.
func (s *GetConnectionOutput) SetConnectionId(v string) *GetConnectionOutput {
s.ConnectionId = &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 or the Amazon Resource Name (ARN) 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 or the Amazon Resource Name (ARN) 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
}
type GetOutpostOutput 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 GetOutpostOutput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API 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 {
return s.String()
}
// SetOutpost sets the Outpost field's value.
func (s *GetOutpostOutput) SetOutpost(v *Outpost) *GetOutpostOutput {
s.Outpost = v
return s
}
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 or the Amazon Resource Name (ARN) 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 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"))
}
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
}
// 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 or the Amazon Resource Name (ARN) 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
}
// SetSiteId sets the SiteId field's value.
func (s *GetSiteInput) SetSiteId(v string) *GetSiteInput {
s.SiteId = &v
return s
}
type GetSiteOutput 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 GetSiteOutput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API 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"`
}
// String returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s InternalServerException) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s InternalServerException) GoString() string {
return s.String()
}
func newErrorInternalServerException(v protocol.ResponseMetadata) error {
return &InternalServerException{
RespMetadata: v,
}
}
// Code returns the exception type name.
func (s *InternalServerException) Code() string {
return "InternalServerException"
}
// Message returns the exception's message.
func (s *InternalServerException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
return ""
}
// OrigErr always returns nil, satisfies awserr.Error interface.
func (s *InternalServerException) OrigErr() error {
return nil
}
func (s *InternalServerException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
func (s *InternalServerException) StatusCode() int {
return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
func (s *InternalServerException) RequestID() string {
return s.RespMetadata.RequestID
}
// Information about a line item.
type LineItem struct {
_ struct{} `type:"structure"`
// Information about assets.
AssetInformationList []*LineItemAssetInformation `type:"list"`
// The ID of the catalog item.
CatalogItemId *string `min:"1" type:"string"`
// The ID of the line item.
LineItemId *string `type:"string"`
// The ID of the previous line item.
PreviousLineItemId *string `type:"string"`
// The ID of the previous order.
PreviousOrderId *string `min:"1" type:"string"`
// The quantity of the line item.
Quantity *int64 `min:"1" type:"integer"`
// Information about a line item shipment.
ShipmentInformation *ShipmentInformation `type:"structure"`
// The status of the line item.
Status *string `type:"string" enum:"LineItemStatus"`
}
// String returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API 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()
}
// SetAssetInformationList sets the AssetInformationList field's value.
func (s *LineItem) SetAssetInformationList(v []*LineItemAssetInformation) *LineItem {
s.AssetInformationList = v
return s
}
// 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
}
// SetPreviousLineItemId sets the PreviousLineItemId field's value.
func (s *LineItem) SetPreviousLineItemId(v string) *LineItem {
s.PreviousLineItemId = &v
return s
}
// SetPreviousOrderId sets the PreviousOrderId field's value.
func (s *LineItem) SetPreviousOrderId(v string) *LineItem {
s.PreviousOrderId = &v
return s
}
// SetQuantity sets the Quantity field's value.
func (s *LineItem) SetQuantity(v int64) *LineItem {
s.Quantity = &v
return s
}
// SetShipmentInformation sets the ShipmentInformation field's value.
func (s *LineItem) SetShipmentInformation(v *ShipmentInformation) *LineItem {
s.ShipmentInformation = 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 asset.
type LineItemAssetInformation struct {
_ struct{} `type:"structure"`
// The ID of the asset.
AssetId *string `min:"1" type:"string"`
// The MAC addresses of the asset.
MacAddressList []*string `type:"list"`
}
// String returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s LineItemAssetInformation) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s LineItemAssetInformation) GoString() string {
return s.String()
}
// SetAssetId sets the AssetId field's value.
func (s *LineItemAssetInformation) SetAssetId(v string) *LineItemAssetInformation {
s.AssetId = &v
return s
}
// SetMacAddressList sets the MacAddressList field's value.
func (s *LineItemAssetInformation) SetMacAddressList(v []*string) *LineItemAssetInformation {
s.MacAddressList = v
return s
}
// Information about a line item request.
type LineItemRequest 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()
}
// 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))
}
if invalidParams.Len() > 0 {
return invalidParams
}
return nil
}
// SetCatalogItemId sets the CatalogItemId field's value.
func (s *LineItemRequest) SetCatalogItemId(v string) *LineItemRequest {
s.CatalogItemId = &v
return s
}
// SetQuantity sets the Quantity field's value.
func (s *LineItemRequest) SetQuantity(v int64) *LineItemRequest {
s.Quantity = &v
return s
}
type ListAssetsInput struct {
_ struct{} `type:"structure" nopayload:"true"`
// Filters the results by the host ID of a Dedicated Host.
HostIdFilter []*string `location:"querystring" locationName:"HostIdFilter" 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"`
// The ID or the Amazon Resource Name (ARN) of the Outpost.
//
// OutpostIdentifier is a required field
OutpostIdentifier *string `location:"uri" locationName:"OutpostId" min:"1" type:"string" required:"true"`
// Filters the results by state.
StatusFilter []*string `location:"querystring" locationName:"StatusFilter" min:"1" type:"list" enum:"AssetState"`
}
// String returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s ListAssetsInput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s ListAssetsInput) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
func (s *ListAssetsInput) Validate() error {
invalidParams := request.ErrInvalidParams{Context: "ListAssetsInput"}
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.OutpostIdentifier == nil {
invalidParams.Add(request.NewErrParamRequired("OutpostIdentifier"))
}
if s.OutpostIdentifier != nil && len(*s.OutpostIdentifier) < 1 {
invalidParams.Add(request.NewErrParamMinLen("OutpostIdentifier", 1))
}
if s.StatusFilter != nil && len(s.StatusFilter) < 1 {
invalidParams.Add(request.NewErrParamMinLen("StatusFilter", 1))
}
if invalidParams.Len() > 0 {
return invalidParams
}
return nil
}
// SetHostIdFilter sets the HostIdFilter field's value.
func (s *ListAssetsInput) SetHostIdFilter(v []*string) *ListAssetsInput {
s.HostIdFilter = v
return s
}
// SetMaxResults sets the MaxResults field's value.
func (s *ListAssetsInput) SetMaxResults(v int64) *ListAssetsInput {
s.MaxResults = &v
return s
}
// SetNextToken sets the NextToken field's value.
func (s *ListAssetsInput) SetNextToken(v string) *ListAssetsInput {
s.NextToken = &v
return s
}
// SetOutpostIdentifier sets the OutpostIdentifier field's value.
func (s *ListAssetsInput) SetOutpostIdentifier(v string) *ListAssetsInput {
s.OutpostIdentifier = &v
return s
}
// SetStatusFilter sets the StatusFilter field's value.
func (s *ListAssetsInput) SetStatusFilter(v []*string) *ListAssetsInput {
s.StatusFilter = v
return s
}
type ListAssetsOutput struct {
_ struct{} `type:"structure"`
// Information about the hardware assets.
Assets []*AssetInfo `type:"list"`
// The pagination token.
NextToken *string `min:"1" type:"string"`
}
// String returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s ListAssetsOutput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s ListAssetsOutput) GoString() string {
return s.String()
}
// SetAssets sets the Assets field's value.
func (s *ListAssetsOutput) SetAssets(v []*AssetInfo) *ListAssetsOutput {
s.Assets = v
return s
}
// SetNextToken sets the NextToken field's value.
func (s *ListAssetsOutput) SetNextToken(v string) *ListAssetsOutput {
s.NextToken = &v
return s
}
type ListCatalogItemsInput struct {
_ struct{} `type:"structure" nopayload:"true"`
// Filters the results by EC2 family (for example, M5).
EC2FamilyFilter []*string `location:"querystring" locationName:"EC2FamilyFilter" type:"list"`
// Filters the results by item class.
ItemClassFilter []*string `location:"querystring" locationName:"ItemClassFilter" type:"list" enum:"CatalogItemClass"`
// 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"`
// Filters the results by storage option.
SupportedStorageFilter []*string `location:"querystring" locationName:"SupportedStorageFilter" type:"list" enum:"SupportedStorageEnum"`
}
// String returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s ListCatalogItemsInput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s ListCatalogItemsInput) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
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.NextToken != nil && len(*s.NextToken) < 1 {
invalidParams.Add(request.NewErrParamMinLen("NextToken", 1))
}
if invalidParams.Len() > 0 {
return invalidParams
}
return nil
}
// SetEC2FamilyFilter sets the EC2FamilyFilter field's value.
func (s *ListCatalogItemsInput) SetEC2FamilyFilter(v []*string) *ListCatalogItemsInput {
s.EC2FamilyFilter = v
return s
}
// SetItemClassFilter sets the ItemClassFilter field's value.
func (s *ListCatalogItemsInput) SetItemClassFilter(v []*string) *ListCatalogItemsInput {
s.ItemClassFilter = v
return s
}
// SetMaxResults sets the MaxResults field's value.
func (s *ListCatalogItemsInput) SetMaxResults(v int64) *ListCatalogItemsInput {
s.MaxResults = &v
return s
}
// SetNextToken sets the NextToken field's value.
func (s *ListCatalogItemsInput) SetNextToken(v string) *ListCatalogItemsInput {
s.NextToken = &v
return s
}
// SetSupportedStorageFilter sets the SupportedStorageFilter field's value.
func (s *ListCatalogItemsInput) SetSupportedStorageFilter(v []*string) *ListCatalogItemsInput {
s.SupportedStorageFilter = v
return s
}
type ListCatalogItemsOutput struct {
_ struct{} `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.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s ListCatalogItemsOutput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s ListCatalogItemsOutput) GoString() string {
return s.String()
}
// SetCatalogItems sets the CatalogItems field's value.
func (s *ListCatalogItemsOutput) SetCatalogItems(v []*CatalogItem) *ListCatalogItemsOutput {
s.CatalogItems = v
return s
}
// 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 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.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s ListOrdersInput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s ListOrdersInput) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
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.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 {
return invalidParams
}
return nil
}
// 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
}
// 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.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s ListOrdersOutput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s ListOrdersOutput) GoString() string {
return s.String()
}
// 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"`
// Filters the results by Availability Zone (for example, us-east-1a).
AvailabilityZoneFilter []*string `location:"querystring" locationName:"AvailabilityZoneFilter" min:"1" type:"list"`
// Filters the results by AZ ID (for example, use1-az1).
AvailabilityZoneIdFilter []*string `location:"querystring" locationName:"AvailabilityZoneIdFilter" min:"1" type:"list"`
// Filters the results by the lifecycle status.
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.
//
// API parameter values that are decorated as "sensitive" in the API 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 {
return awsutil.Prettify(s)
}
// GoString returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API 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 {
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))
}
if invalidParams.Len() > 0 {
return invalidParams
}
return nil
}
// SetAvailabilityZoneFilter sets the AvailabilityZoneFilter field's value.
func (s *ListOutpostsInput) SetAvailabilityZoneFilter(v []*string) *ListOutpostsInput {
s.AvailabilityZoneFilter = v
return s
}
// SetAvailabilityZoneIdFilter sets the AvailabilityZoneIdFilter field's value.
func (s *ListOutpostsInput) SetAvailabilityZoneIdFilter(v []*string) *ListOutpostsInput {
s.AvailabilityZoneIdFilter = v
return s
}
// SetLifeCycleStatusFilter sets the LifeCycleStatusFilter field's value.
func (s *ListOutpostsInput) SetLifeCycleStatusFilter(v []*string) *ListOutpostsInput {
s.LifeCycleStatusFilter = v
return s
}
// SetMaxResults sets the MaxResults field's value.
func (s *ListOutpostsInput) SetMaxResults(v int64) *ListOutpostsInput {
s.MaxResults = &v
return s
}
// SetNextToken sets the NextToken field's value.
func (s *ListOutpostsInput) SetNextToken(v string) *ListOutpostsInput {
s.NextToken = &v
return s
}
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.
//
// API parameter values that are decorated as "sensitive" in the API 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 {
return awsutil.Prettify(s)
}
// GoString returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API 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 {
return s.String()
}
// SetNextToken sets the NextToken field's value.
func (s *ListOutpostsOutput) SetNextToken(v string) *ListOutpostsOutput {
s.NextToken = &v
return s
}
// SetOutposts sets the Outposts field's value.
func (s *ListOutpostsOutput) SetOutposts(v []*Outpost) *ListOutpostsOutput {
s.Outposts = v
return s
}
type ListSitesInput 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"`
// Filters the results by city.
OperatingAddressCityFilter []*string `location:"querystring" locationName:"OperatingAddressCityFilter" type:"list"`
// Filters the results by country code.
OperatingAddressCountryCodeFilter []*string `location:"querystring" locationName:"OperatingAddressCountryCodeFilter" type:"list"`
// Filters the results by state or region.
OperatingAddressStateOrRegionFilter []*string `location:"querystring" locationName:"OperatingAddressStateOrRegionFilter" type:"list"`
}
// String returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s ListSitesInput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API 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 {
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))
}
if invalidParams.Len() > 0 {
return invalidParams
}
return nil
}
// SetMaxResults sets the MaxResults field's value.
func (s *ListSitesInput) SetMaxResults(v int64) *ListSitesInput {
s.MaxResults = &v
return s
}
// SetNextToken sets the NextToken field's value.
func (s *ListSitesInput) SetNextToken(v string) *ListSitesInput {
s.NextToken = &v
return s
}
// SetOperatingAddressCityFilter sets the OperatingAddressCityFilter field's value.
func (s *ListSitesInput) SetOperatingAddressCityFilter(v []*string) *ListSitesInput {
s.OperatingAddressCityFilter = v
return s
}
// SetOperatingAddressCountryCodeFilter sets the OperatingAddressCountryCodeFilter field's value.
func (s *ListSitesInput) SetOperatingAddressCountryCodeFilter(v []*string) *ListSitesInput {
s.OperatingAddressCountryCodeFilter = v
return s
}
// SetOperatingAddressStateOrRegionFilter sets the OperatingAddressStateOrRegionFilter field's value.
func (s *ListSitesInput) SetOperatingAddressStateOrRegionFilter(v []*string) *ListSitesInput {
s.OperatingAddressStateOrRegionFilter = v
return s
}
type ListSitesOutput struct {
_ struct{} `type:"structure"`
// The pagination token.
NextToken *string `min:"1" type:"string"`
// Information about the sites.
Sites []*Site `type:"list"`
}
// String returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s ListSitesOutput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API 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()
}
// SetNextToken sets the NextToken field's value.
func (s *ListSitesOutput) SetNextToken(v string) *ListSitesOutput {
s.NextToken = &v
return s
}
// SetSites sets the Sites field's value.
func (s *ListSitesOutput) SetSites(v []*Site) *ListSitesOutput {
s.Sites = v
return s
}
type ListTagsForResourceInput struct {
_ struct{} `type:"structure" nopayload:"true"`
// The Amazon Resource Name (ARN) of the resource.
//
// ResourceArn is a required field
ResourceArn *string `location:"uri" locationName:"ResourceArn" type:"string" required:"true"`
}
// String returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s ListTagsForResourceInput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s ListTagsForResourceInput) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
func (s *ListTagsForResourceInput) Validate() error {
invalidParams := request.ErrInvalidParams{Context: "ListTagsForResourceInput"}
if s.ResourceArn == nil {
invalidParams.Add(request.NewErrParamRequired("ResourceArn"))
}
if s.ResourceArn != nil && len(*s.ResourceArn) < 1 {
invalidParams.Add(request.NewErrParamMinLen("ResourceArn", 1))
}
if invalidParams.Len() > 0 {
return invalidParams
}
return nil
}
// SetResourceArn sets the ResourceArn field's value.
func (s *ListTagsForResourceInput) SetResourceArn(v string) *ListTagsForResourceInput {
s.ResourceArn = &v
return s
}
type ListTagsForResourceOutput struct {
_ struct{} `type:"structure"`
// The resource tags.
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 ListTagsForResourceOutput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s ListTagsForResourceOutput) GoString() string {
return s.String()
}
// SetTags sets the Tags field's value.
func (s *ListTagsForResourceOutput) SetTags(v map[string]*string) *ListTagsForResourceOutput {
s.Tags = v
return s
}
// The specified request is not valid.
type NotFoundException 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 NotFoundException) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API 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 {
return s.String()
}
func newErrorNotFoundException(v protocol.ResponseMetadata) error {
return &NotFoundException{
RespMetadata: v,
}
}
// Code returns the exception type name.
func (s *NotFoundException) Code() string {
return "NotFoundException"
}
// Message returns the exception's message.
func (s *NotFoundException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
return ""
}
// OrigErr always returns nil, satisfies awserr.Error interface.
func (s *NotFoundException) OrigErr() error {
return nil
}
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 *NotFoundException) StatusCode() int {
return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
func (s *NotFoundException) RequestID() string {
return s.RespMetadata.RequestID
}
// Information about an order.
type Order struct {
_ struct{} `type:"structure"`
// The line items for the order
LineItems []*LineItem `type:"list"`
// The fulfillment date of the order.
OrderFulfilledDate *time.Time `type:"timestamp"`
// The ID of the order.
OrderId *string `min:"1" type:"string"`
// The 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 in the order.
OutpostId *string `min:"1" type:"string"`
// The payment option for the order.
PaymentOption *string `type:"string" enum:"PaymentOption"`
// The payment term.
PaymentTerm *string `type:"string" enum:"PaymentTerm"`
// The status of the order.
//
// * PREPARING - Order is received and being prepared.
//
// * IN_PROGRESS - Order is either being built, shipped, or installed. To
// get more details, see the line item status.
//
// * 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.
//
// API parameter values that are decorated as "sensitive" in the API 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 {
return awsutil.Prettify(s)
}
// GoString returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API 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 {
return s.String()
}
// SetLineItems sets the LineItems field's value.
func (s *Order) SetLineItems(v []*LineItem) *Order {
s.LineItems = v
return s
}
// SetOrderFulfilledDate sets the OrderFulfilledDate field's value.
func (s *Order) SetOrderFulfilledDate(v time.Time) *Order {
s.OrderFulfilledDate = &v
return s
}
// SetOrderId sets the OrderId field's value.
func (s *Order) SetOrderId(v string) *Order {
s.OrderId = &v
return s
}
// SetOrderSubmissionDate sets the OrderSubmissionDate field's value.
func (s *Order) SetOrderSubmissionDate(v time.Time) *Order {
s.OrderSubmissionDate = &v
return s
}
// SetOrderType sets the OrderType field's value.
func (s *Order) SetOrderType(v string) *Order {
s.OrderType = &v
return s
}
// SetOutpostId sets the OutpostId field's value.
func (s *Order) SetOutpostId(v string) *Order {
s.OutpostId = &v
return s
}
// SetPaymentOption sets the PaymentOption field's value.
func (s *Order) SetPaymentOption(v string) *Order {
s.PaymentOption = &v
return s
}
// SetPaymentTerm sets the PaymentTerm field's value.
func (s *Order) SetPaymentTerm(v string) *Order {
s.PaymentTerm = &v
return s
}
// SetStatus sets the Status field's value.
func (s *Order) SetStatus(v string) *Order {
s.Status = &v
return s
}
// A summary of line items in your order.
type OrderSummary struct {
_ struct{} `type:"structure"`
// The status of all line items in the order.
LineItemCountsByStatus map[string]*int64 `type:"map"`
// The fulfilment date for the order.
OrderFulfilledDate *time.Time `type:"timestamp"`
// The ID of the order.
OrderId *string `min:"1" type:"string"`
// The 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.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s OrderSummary) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s OrderSummary) GoString() string {
return s.String()
}
// SetLineItemCountsByStatus sets the LineItemCountsByStatus field's value.
func (s *OrderSummary) SetLineItemCountsByStatus(v map[string]*int64) *OrderSummary {
s.LineItemCountsByStatus = v
return s
}
// SetOrderFulfilledDate sets the OrderFulfilledDate field's value.
func (s *OrderSummary) SetOrderFulfilledDate(v time.Time) *OrderSummary {
s.OrderFulfilledDate = &v
return s
}
// SetOrderId sets the OrderId field's value.
func (s *OrderSummary) SetOrderId(v string) *OrderSummary {
s.OrderId = &v
return s
}
// SetOrderSubmissionDate sets the OrderSubmissionDate field's value.
func (s *OrderSummary) SetOrderSubmissionDate(v time.Time) *OrderSummary {
s.OrderSubmissionDate = &v
return s
}
// 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 hardware type.
SupportedHardwareType *string `type:"string" enum:"SupportedHardwareType"`
// The Outpost tags.
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 Outpost) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API 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 {
return s.String()
}
// SetAvailabilityZone sets the AvailabilityZone field's value.
func (s *Outpost) SetAvailabilityZone(v string) *Outpost {
s.AvailabilityZone = &v
return s
}
// SetAvailabilityZoneId sets the AvailabilityZoneId field's value.
func (s *Outpost) SetAvailabilityZoneId(v string) *Outpost {
s.AvailabilityZoneId = &v
return s
}
// SetDescription sets the Description field's value.
func (s *Outpost) SetDescription(v string) *Outpost {
s.Description = &v
return s
}
// SetLifeCycleStatus sets the LifeCycleStatus field's value.
func (s *Outpost) SetLifeCycleStatus(v string) *Outpost {
s.LifeCycleStatus = &v
return s
}
// SetName sets the Name field's value.
func (s *Outpost) SetName(v string) *Outpost {
s.Name = &v
return s
}
// SetOutpostArn sets the OutpostArn field's value.
func (s *Outpost) SetOutpostArn(v string) *Outpost {
s.OutpostArn = &v
return s
}
// SetOutpostId sets the OutpostId field's value.
func (s *Outpost) SetOutpostId(v string) *Outpost {
s.OutpostId = &v
return s
}
// SetOwnerId sets the OwnerId field's value.
func (s *Outpost) SetOwnerId(v string) *Outpost {
s.OwnerId = &v
return s
}
// SetSiteArn sets the SiteArn field's value.
func (s *Outpost) SetSiteArn(v string) *Outpost {
s.SiteArn = &v
return s
}
// SetSiteId sets the SiteId field's value.
func (s *Outpost) SetSiteId(v string) *Outpost {
s.SiteId = &v
return s
}
// SetSupportedHardwareType sets the SupportedHardwareType field's value.
func (s *Outpost) SetSupportedHardwareType(v string) *Outpost {
s.SupportedHardwareType = &v
return s
}
// SetTags sets the Tags field's value.
func (s *Outpost) SetTags(v map[string]*string) *Outpost {
s.Tags = v
return s
}
// 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 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.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s RackPhysicalProperties) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s RackPhysicalProperties) GoString() string {
return s.String()
}
// SetFiberOpticCableType sets the FiberOpticCableType field's value.
func (s *RackPhysicalProperties) SetFiberOpticCableType(v string) *RackPhysicalProperties {
s.FiberOpticCableType = &v
return s
}
// SetMaximumSupportedWeightLbs sets the MaximumSupportedWeightLbs field's value.
func (s *RackPhysicalProperties) SetMaximumSupportedWeightLbs(v string) *RackPhysicalProperties {
s.MaximumSupportedWeightLbs = &v
return s
}
// SetOpticalStandard sets the OpticalStandard field's value.
func (s *RackPhysicalProperties) SetOpticalStandard(v string) *RackPhysicalProperties {
s.OpticalStandard = &v
return s
}
// SetPowerConnector sets the PowerConnector field's value.
func (s *RackPhysicalProperties) SetPowerConnector(v string) *RackPhysicalProperties {
s.PowerConnector = &v
return s
}
// SetPowerDrawKva sets the PowerDrawKva field's value.
func (s *RackPhysicalProperties) SetPowerDrawKva(v string) *RackPhysicalProperties {
s.PowerDrawKva = &v
return s
}
// SetPowerFeedDrop sets the PowerFeedDrop field's value.
func (s *RackPhysicalProperties) SetPowerFeedDrop(v string) *RackPhysicalProperties {
s.PowerFeedDrop = &v
return s
}
// 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
}
// SetUplinkGbps sets the UplinkGbps field's value.
func (s *RackPhysicalProperties) SetUplinkGbps(v string) *RackPhysicalProperties {
s.UplinkGbps = &v
return s
}
// You have exceeded a service quota.
type ServiceQuotaExceededException 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 ServiceQuotaExceededException) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s ServiceQuotaExceededException) GoString() string {
return s.String()
}
func newErrorServiceQuotaExceededException(v protocol.ResponseMetadata) error {
return &ServiceQuotaExceededException{
RespMetadata: v,
}
}
// Code returns the exception type name.
func (s *ServiceQuotaExceededException) Code() string {
return "ServiceQuotaExceededException"
}
// Message returns the exception's message.
func (s *ServiceQuotaExceededException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
return ""
}
// OrigErr always returns nil, satisfies awserr.Error interface.
func (s *ServiceQuotaExceededException) OrigErr() error {
return nil
}
func (s *ServiceQuotaExceededException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
func (s *ServiceQuotaExceededException) StatusCode() int {
return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
func (s *ServiceQuotaExceededException) RequestID() string {
return s.RespMetadata.RequestID
}
// Information about a line item shipment.
type ShipmentInformation struct {
_ struct{} `type:"structure"`
// The carrier of the shipment.
ShipmentCarrier *string `type:"string" enum:"ShipmentCarrier"`
// The tracking number of the shipment.
ShipmentTrackingNumber *string `min:"6" 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 ShipmentInformation) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s ShipmentInformation) GoString() string {
return s.String()
}
// SetShipmentCarrier sets the ShipmentCarrier field's value.
func (s *ShipmentInformation) SetShipmentCarrier(v string) *ShipmentInformation {
s.ShipmentCarrier = &v
return s
}
// SetShipmentTrackingNumber sets the ShipmentTrackingNumber field's value.
func (s *ShipmentInformation) SetShipmentTrackingNumber(v string) *ShipmentInformation {
s.ShipmentTrackingNumber = &v
return s
}
// Information about a site.
type Site struct {
_ struct{} `type:"structure"`
// The ID of the Amazon Web Services 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"`
// Notes about a site.
Notes *string `min:"1" type:"string"`
// City where the hardware is installed and powered on.
OperatingAddressCity *string `min:"1" type:"string"`
// The ISO-3166 two-letter country code where the hardware is installed and
// powered on.
OperatingAddressCountryCode *string `min:"2" type:"string"`
// 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.
//
// API parameter values that are decorated as "sensitive" in the API 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 {
return awsutil.Prettify(s)
}
// GoString returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API 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 {
return s.String()
}
// SetAccountId sets the AccountId field's value.
func (s *Site) SetAccountId(v string) *Site {
s.AccountId = &v
return s
}
// SetDescription sets the Description field's value.
func (s *Site) SetDescription(v string) *Site {
s.Description = &v
return s
}
// SetName sets the Name field's value.
func (s *Site) SetName(v string) *Site {
s.Name = &v
return s
}
// SetNotes sets the Notes field's value.
func (s *Site) SetNotes(v string) *Site {
s.Notes = &v
return s
}
// SetOperatingAddressCity sets the OperatingAddressCity field's value.
func (s *Site) SetOperatingAddressCity(v string) *Site {
s.OperatingAddressCity = &v
return s
}
// SetOperatingAddressCountryCode sets the OperatingAddressCountryCode field's value.
func (s *Site) SetOperatingAddressCountryCode(v string) *Site {
s.OperatingAddressCountryCode = &v
return s
}
// SetOperatingAddressStateOrRegion sets the OperatingAddressStateOrRegion field's value.
func (s *Site) SetOperatingAddressStateOrRegion(v string) *Site {
s.OperatingAddressStateOrRegion = &v
return s
}
// 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 StartConnectionInput struct {
_ struct{} `type:"structure"`
// The ID of the Outpost server.
//
// AssetId is a required field
AssetId *string `min:"1" type:"string" required:"true"`
// The public key of the client.
//
// ClientPublicKey is a required field
ClientPublicKey *string `min:"44" type:"string" required:"true"`
// The serial number of the dongle.
//
// DeviceSerialNumber is a required field
DeviceSerialNumber *string `min:"1" type:"string" required:"true"`
// The device index of the network interface on the Outpost server.
//
// NetworkInterfaceDeviceIndex is a required field
NetworkInterfaceDeviceIndex *int64 `type:"integer" required:"true"`
}
// String returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s StartConnectionInput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s StartConnectionInput) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
func (s *StartConnectionInput) Validate() error {
invalidParams := request.ErrInvalidParams{Context: "StartConnectionInput"}
if s.AssetId == nil {
invalidParams.Add(request.NewErrParamRequired("AssetId"))
}
if s.AssetId != nil && len(*s.AssetId) < 1 {
invalidParams.Add(request.NewErrParamMinLen("AssetId", 1))
}
if s.ClientPublicKey == nil {
invalidParams.Add(request.NewErrParamRequired("ClientPublicKey"))
}
if s.ClientPublicKey != nil && len(*s.ClientPublicKey) < 44 {
invalidParams.Add(request.NewErrParamMinLen("ClientPublicKey", 44))
}
if s.DeviceSerialNumber == nil {
invalidParams.Add(request.NewErrParamRequired("DeviceSerialNumber"))
}
if s.DeviceSerialNumber != nil && len(*s.DeviceSerialNumber) < 1 {
invalidParams.Add(request.NewErrParamMinLen("DeviceSerialNumber", 1))
}
if s.NetworkInterfaceDeviceIndex == nil {
invalidParams.Add(request.NewErrParamRequired("NetworkInterfaceDeviceIndex"))
}
if invalidParams.Len() > 0 {
return invalidParams
}
return nil
}
// SetAssetId sets the AssetId field's value.
func (s *StartConnectionInput) SetAssetId(v string) *StartConnectionInput {
s.AssetId = &v
return s
}
// SetClientPublicKey sets the ClientPublicKey field's value.
func (s *StartConnectionInput) SetClientPublicKey(v string) *StartConnectionInput {
s.ClientPublicKey = &v
return s
}
// SetDeviceSerialNumber sets the DeviceSerialNumber field's value.
func (s *StartConnectionInput) SetDeviceSerialNumber(v string) *StartConnectionInput {
s.DeviceSerialNumber = &v
return s
}
// SetNetworkInterfaceDeviceIndex sets the NetworkInterfaceDeviceIndex field's value.
func (s *StartConnectionInput) SetNetworkInterfaceDeviceIndex(v int64) *StartConnectionInput {
s.NetworkInterfaceDeviceIndex = &v
return s
}
type StartConnectionOutput struct {
_ struct{} `type:"structure"`
// The ID of the connection.
ConnectionId *string `min:"1" type:"string"`
// The underlay IP address.
UnderlayIpAddress *string `min:"7" 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 StartConnectionOutput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s StartConnectionOutput) GoString() string {
return s.String()
}
// SetConnectionId sets the ConnectionId field's value.
func (s *StartConnectionOutput) SetConnectionId(v string) *StartConnectionOutput {
s.ConnectionId = &v
return s
}
// SetUnderlayIpAddress sets the UnderlayIpAddress field's value.
func (s *StartConnectionOutput) SetUnderlayIpAddress(v string) *StartConnectionOutput {
s.UnderlayIpAddress = &v
return s
}
type TagResourceInput struct {
_ struct{} `type:"structure"`
// The Amazon Resource Name (ARN) of the resource.
//
// ResourceArn is a required field
ResourceArn *string `location:"uri" locationName:"ResourceArn" type:"string" required:"true"`
// The tags to add to the resource.
//
// Tags is a required field
Tags map[string]*string `min:"1" type:"map" required:"true"`
}
// String returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s TagResourceInput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s TagResourceInput) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
func (s *TagResourceInput) Validate() error {
invalidParams := request.ErrInvalidParams{Context: "TagResourceInput"}
if s.ResourceArn == nil {
invalidParams.Add(request.NewErrParamRequired("ResourceArn"))
}
if s.ResourceArn != nil && len(*s.ResourceArn) < 1 {
invalidParams.Add(request.NewErrParamMinLen("ResourceArn", 1))
}
if s.Tags == nil {
invalidParams.Add(request.NewErrParamRequired("Tags"))
}
if 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
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))
}
if invalidParams.Len() > 0 {
return invalidParams
}
return nil
}
// SetResourceArn sets the ResourceArn field's value.
func (s *UntagResourceInput) SetResourceArn(v string) *UntagResourceInput {
s.ResourceArn = &v
return s
}
// SetTagKeys sets the TagKeys field's value.
func (s *UntagResourceInput) SetTagKeys(v []*string) *UntagResourceInput {
s.TagKeys = v
return s
}
type UntagResourceOutput struct {
_ struct{} `type:"structure"`
}
// String returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s UntagResourceOutput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s UntagResourceOutput) GoString() string {
return s.String()
}
type UpdateOutpostInput struct {
_ struct{} `type:"structure"`
// The description of the Outpost.
Description *string `type:"string"`
// The name of the Outpost.
Name *string `min:"1" type:"string"`
// The ID or the Amazon Resource Name (ARN) of the Outpost.
//
// OutpostId is a required field
OutpostId *string `location:"uri" locationName:"OutpostId" min:"1" type:"string" required:"true"`
// The type of hardware for this Outpost.
SupportedHardwareType *string `type:"string" enum:"SupportedHardwareType"`
}
// String returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s UpdateOutpostInput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s UpdateOutpostInput) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
func (s *UpdateOutpostInput) Validate() error {
invalidParams := request.ErrInvalidParams{Context: "UpdateOutpostInput"}
if s.Name != nil && len(*s.Name) < 1 {
invalidParams.Add(request.NewErrParamMinLen("Name", 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
}
// SetDescription sets the Description field's value.
func (s *UpdateOutpostInput) SetDescription(v string) *UpdateOutpostInput {
s.Description = &v
return s
}
// SetName sets the Name field's value.
func (s *UpdateOutpostInput) SetName(v string) *UpdateOutpostInput {
s.Name = &v
return s
}
// SetOutpostId sets the OutpostId field's value.
func (s *UpdateOutpostInput) SetOutpostId(v string) *UpdateOutpostInput {
s.OutpostId = &v
return s
}
// SetSupportedHardwareType sets the SupportedHardwareType field's value.
func (s *UpdateOutpostInput) SetSupportedHardwareType(v string) *UpdateOutpostInput {
s.SupportedHardwareType = &v
return s
}
type UpdateOutpostOutput 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 UpdateOutpostOutput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s UpdateOutpostOutput) GoString() string {
return s.String()
}
// SetOutpost sets the Outpost field's value.
func (s *UpdateOutpostOutput) SetOutpost(v *Outpost) *UpdateOutpostOutput {
s.Outpost = v
return s
}
type UpdateSiteAddressInput struct {
_ struct{} `type:"structure"`
// The address for the site.
//
// Address is a required field
Address *Address `type:"structure" required:"true"`
// The type of the address.
//
// AddressType is a required field
AddressType *string `type:"string" required:"true" enum:"AddressType"`
// The ID or the Amazon Resource Name (ARN) 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 UpdateSiteAddressInput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API 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()
}
// 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
}
// SetAddress sets the Address field's value.
func (s *UpdateSiteAddressInput) SetAddress(v *Address) *UpdateSiteAddressInput {
s.Address = v
return s
}
// 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 *UpdateSiteAddressInput) SetSiteId(v string) *UpdateSiteAddressInput {
s.SiteId = &v
return s
}
type UpdateSiteAddressOutput struct {
_ struct{} `type:"structure"`
// Information about an address.
Address *Address `type:"structure"`
// The type of the address.
AddressType *string `type:"string" enum:"AddressType"`
}
// String returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s UpdateSiteAddressOutput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s UpdateSiteAddressOutput) GoString() string {
return s.String()
}
// SetAddress sets the Address field's value.
func (s *UpdateSiteAddressOutput) SetAddress(v *Address) *UpdateSiteAddressOutput {
s.Address = v
return s
}
// SetAddressType sets the AddressType field's value.
func (s *UpdateSiteAddressOutput) SetAddressType(v string) *UpdateSiteAddressOutput {
s.AddressType = &v
return s
}
type UpdateSiteInput struct {
_ struct{} `type:"structure"`
// The description of the site.
Description *string `min:"1" type:"string"`
// The name of the site.
Name *string `min:"1" type:"string"`
// Notes about a site.
Notes *string `min:"1" type:"string"`
// The ID or the Amazon Resource Name (ARN) 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 UpdateSiteInput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s UpdateSiteInput) GoString() string {
return s.String()
}
// 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 *UpdateSiteInput) SetDescription(v string) *UpdateSiteInput {
s.Description = &v
return s
}
// SetName sets the Name field's value.
func (s *UpdateSiteInput) SetName(v string) *UpdateSiteInput {
s.Name = &v
return s
}
// 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 *UpdateSiteInput) SetSiteId(v string) *UpdateSiteInput {
s.SiteId = &v
return s
}
type UpdateSiteOutput 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 UpdateSiteOutput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s UpdateSiteOutput) GoString() string {
return s.String()
}
// SetSite sets the Site field's value.
func (s *UpdateSiteOutput) SetSite(v *Site) *UpdateSiteOutput {
s.Site = v
return s
}
type UpdateSiteRackPhysicalPropertiesInput struct {
_ struct{} `type:"structure"`
// The type of fiber that you will use to attach the Outpost to your network.
FiberOpticCableType *string `type:"string" enum:"FiberOpticCableType"`
// The maximum rack weight that this site can support. NO_LIMIT is over 2000lbs.
MaximumSupportedWeightLbs *string `type:"string" enum:"MaximumSupportedWeightLbs"`
// 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"`
// 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"`
// The power draw, in kVA, available at the hardware placement position for
// the rack.
PowerDrawKva *string `type:"string" enum:"PowerDrawKva"`
// Indicates whether the power feed comes above or below the rack.
PowerFeedDrop *string `type:"string" enum:"PowerFeedDrop"`
// 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 ID or the Amazon Resource Name (ARN) of the site.
//
// SiteId is a required field
SiteId *string `location:"uri" locationName:"SiteId" min:"1" type:"string" required:"true"`
// 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.
//
// * 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"`
// The uplink speed the rack should support for the connection to the Region.
UplinkGbps *string `type:"string" enum:"UplinkGbps"`
}
// String returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s UpdateSiteRackPhysicalPropertiesInput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s UpdateSiteRackPhysicalPropertiesInput) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
func (s *UpdateSiteRackPhysicalPropertiesInput) Validate() error {
invalidParams := request.ErrInvalidParams{Context: "UpdateSiteRackPhysicalPropertiesInput"}
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
}
// SetFiberOpticCableType sets the FiberOpticCableType field's value.
func (s *UpdateSiteRackPhysicalPropertiesInput) SetFiberOpticCableType(v string) *UpdateSiteRackPhysicalPropertiesInput {
s.FiberOpticCableType = &v
return s
}
// SetMaximumSupportedWeightLbs sets the MaximumSupportedWeightLbs field's value.
func (s *UpdateSiteRackPhysicalPropertiesInput) SetMaximumSupportedWeightLbs(v string) *UpdateSiteRackPhysicalPropertiesInput {
s.MaximumSupportedWeightLbs = &v
return s
}
// 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.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s UpdateSiteRackPhysicalPropertiesOutput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
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"`
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 ValidationException) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s ValidationException) GoString() string {
return s.String()
}
func newErrorValidationException(v protocol.ResponseMetadata) error {
return &ValidationException{
RespMetadata: v,
}
}
// Code returns the exception type name.
func (s *ValidationException) Code() string {
return "ValidationException"
}
// Message returns the exception's message.
func (s *ValidationException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
return ""
}
// OrigErr always returns nil, satisfies awserr.Error interface.
func (s *ValidationException) OrigErr() error {
return nil
}
func (s *ValidationException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
func (s *ValidationException) StatusCode() int {
return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
func (s *ValidationException) RequestID() string {
return s.RespMetadata.RequestID
}
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 (
// AssetStateActive is a AssetState enum value
AssetStateActive = "ACTIVE"
// AssetStateRetiring is a AssetState enum value
AssetStateRetiring = "RETIRING"
// AssetStateIsolated is a AssetState enum value
AssetStateIsolated = "ISOLATED"
)
// AssetState_Values returns all elements of the AssetState enum
func AssetState_Values() []string {
return []string{
AssetStateActive,
AssetStateRetiring,
AssetStateIsolated,
}
}
const (
// AssetTypeCompute is a AssetType enum value
AssetTypeCompute = "COMPUTE"
)
// AssetType_Values returns all elements of the AssetType enum
func AssetType_Values() []string {
return []string{
AssetTypeCompute,
}
}
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 (
// ComputeAssetStateActive is a ComputeAssetState enum value
ComputeAssetStateActive = "ACTIVE"
// ComputeAssetStateIsolated is a ComputeAssetState enum value
ComputeAssetStateIsolated = "ISOLATED"
// ComputeAssetStateRetiring is a ComputeAssetState enum value
ComputeAssetStateRetiring = "RETIRING"
)
// ComputeAssetState_Values returns all elements of the ComputeAssetState enum
func ComputeAssetState_Values() []string {
return []string{
ComputeAssetStateActive,
ComputeAssetStateIsolated,
ComputeAssetStateRetiring,
}
}
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"
// LineItemStatusReplaced is a LineItemStatus enum value
LineItemStatusReplaced = "REPLACED"
)
// LineItemStatus_Values returns all elements of the LineItemStatus enum
func LineItemStatus_Values() []string {
return []string{
LineItemStatusPreparing,
LineItemStatusBuilding,
LineItemStatusShipped,
LineItemStatusDelivered,
LineItemStatusInstalling,
LineItemStatusInstalled,
LineItemStatusError,
LineItemStatusCancelled,
LineItemStatusReplaced,
}
}
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"
// OrderStatusPending is a OrderStatus enum value
OrderStatusPending = "PENDING"
// OrderStatusProcessing is a OrderStatus enum value
OrderStatusProcessing = "PROCESSING"
// OrderStatusInstalling is a OrderStatus enum value
OrderStatusInstalling = "INSTALLING"
// OrderStatusFulfilled is a OrderStatus enum value
OrderStatusFulfilled = "FULFILLED"
// 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
func OrderStatus_Values() []string {
return []string{
OrderStatusReceived,
OrderStatusPending,
OrderStatusProcessing,
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,
}
}
const (
// PaymentOptionAllUpfront is a PaymentOption enum value
PaymentOptionAllUpfront = "ALL_UPFRONT"
// PaymentOptionNoUpfront is a PaymentOption enum value
PaymentOptionNoUpfront = "NO_UPFRONT"
// PaymentOptionPartialUpfront is a PaymentOption enum value
PaymentOptionPartialUpfront = "PARTIAL_UPFRONT"
)
// PaymentOption_Values returns all elements of the PaymentOption enum
func PaymentOption_Values() []string {
return []string{
PaymentOptionAllUpfront,
PaymentOptionNoUpfront,
PaymentOptionPartialUpfront,
}
}
const (
// PaymentTermThreeYears is a PaymentTerm enum value
PaymentTermThreeYears = "THREE_YEARS"
// PaymentTermOneYear is a PaymentTerm enum value
PaymentTermOneYear = "ONE_YEAR"
)
// PaymentTerm_Values returns all elements of the PaymentTerm enum
func PaymentTerm_Values() []string {
return []string{
PaymentTermThreeYears,
PaymentTermOneYear,
}
}
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"
// PowerDrawKvaPower30Kva is a PowerDrawKva enum value
PowerDrawKvaPower30Kva = "POWER_30_KVA"
)
// PowerDrawKva_Values returns all elements of the PowerDrawKva enum
func PowerDrawKva_Values() []string {
return []string{
PowerDrawKvaPower5Kva,
PowerDrawKvaPower10Kva,
PowerDrawKvaPower15Kva,
PowerDrawKvaPower30Kva,
}
}
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 (
// ShipmentCarrierDhl is a ShipmentCarrier enum value
ShipmentCarrierDhl = "DHL"
// ShipmentCarrierDbs is a ShipmentCarrier enum value
ShipmentCarrierDbs = "DBS"
// ShipmentCarrierFedex is a ShipmentCarrier enum value
ShipmentCarrierFedex = "FEDEX"
// ShipmentCarrierUps is a ShipmentCarrier enum value
ShipmentCarrierUps = "UPS"
)
// ShipmentCarrier_Values returns all elements of the ShipmentCarrier enum
func ShipmentCarrier_Values() []string {
return []string{
ShipmentCarrierDhl,
ShipmentCarrierDbs,
ShipmentCarrierFedex,
ShipmentCarrierUps,
}
}
const (
// SupportedHardwareTypeRack is a SupportedHardwareType enum value
SupportedHardwareTypeRack = "RACK"
// SupportedHardwareTypeServer is a SupportedHardwareType enum value
SupportedHardwareTypeServer = "SERVER"
)
// SupportedHardwareType_Values returns all elements of the SupportedHardwareType enum
func SupportedHardwareType_Values() []string {
return []string{
SupportedHardwareTypeRack,
SupportedHardwareTypeServer,
}
}
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,
}
}