outposts

package
v1.33.8 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 20, 2020 License: Apache-2.0 Imports: 9 Imported by: 23

Documentation

Overview

Package outposts provides the client and types for making API requests to AWS Outposts.

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

See https://docs.aws.amazon.com/goto/WebAPI/outposts-2019-12-03 for more information on this service.

See outposts package documentation for more information. https://docs.aws.amazon.com/sdk-for-go/api/service/outposts/

Using the Client

To contact AWS Outposts with the SDK use the New function to create a new service client. With that client you can make API requests to the service. These clients are safe to use concurrently.

See the SDK's documentation for more information on how to use the SDK. https://docs.aws.amazon.com/sdk-for-go/api/

See aws.Config documentation for more information on configuring SDK clients. https://docs.aws.amazon.com/sdk-for-go/api/aws/#Config

See the AWS Outposts client Outposts for more information on creating client for this service. https://docs.aws.amazon.com/sdk-for-go/api/service/outposts/#New

Index

Constants

View Source
const (

	// ErrCodeAccessDeniedException for service response error code
	// "AccessDeniedException".
	//
	// You do not have permission to perform this operation.
	ErrCodeAccessDeniedException = "AccessDeniedException"

	// ErrCodeInternalServerException for service response error code
	// "InternalServerException".
	//
	// An internal error has occurred.
	ErrCodeInternalServerException = "InternalServerException"

	// ErrCodeNotFoundException for service response error code
	// "NotFoundException".
	//
	// The specified request is not valid.
	ErrCodeNotFoundException = "NotFoundException"

	// ErrCodeServiceQuotaExceededException for service response error code
	// "ServiceQuotaExceededException".
	//
	// You have exceeded a service quota.
	ErrCodeServiceQuotaExceededException = "ServiceQuotaExceededException"

	// ErrCodeValidationException for service response error code
	// "ValidationException".
	//
	// A parameter is not valid.
	ErrCodeValidationException = "ValidationException"
)
View Source
const (
	ServiceName = "Outposts" // Name of service.
	EndpointsID = "outposts" // ID to lookup a service endpoint with.
	ServiceID   = "Outposts" // ServiceID is a unique identifier of a specific service.
)

Service information constants

Variables

This section is empty.

Functions

This section is empty.

Types

type AccessDeniedException added in v1.28.0

type AccessDeniedException struct {
	RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`

	Message_ *string `locationName:"Message" min:"1" type:"string"`
	// contains filtered or unexported fields
}

You do not have permission to perform this operation.

func (*AccessDeniedException) Code added in v1.28.0

func (s *AccessDeniedException) Code() string

Code returns the exception type name.

func (*AccessDeniedException) Error added in v1.28.0

func (s *AccessDeniedException) Error() string

func (AccessDeniedException) GoString added in v1.28.0

func (s AccessDeniedException) GoString() string

GoString returns the string representation

func (*AccessDeniedException) Message added in v1.28.0

func (s *AccessDeniedException) Message() string

Message returns the exception's message.

func (*AccessDeniedException) OrigErr added in v1.28.0

func (s *AccessDeniedException) OrigErr() error

OrigErr always returns nil, satisfies awserr.Error interface.

func (*AccessDeniedException) RequestID added in v1.28.0

func (s *AccessDeniedException) RequestID() string

RequestID returns the service's response RequestID for request.

func (*AccessDeniedException) StatusCode added in v1.28.0

func (s *AccessDeniedException) StatusCode() int

Status code returns the HTTP status code for the request's response error.

func (AccessDeniedException) String added in v1.28.0

func (s AccessDeniedException) String() string

String returns the string representation

type CreateOutpostInput

type CreateOutpostInput struct {

	// The Availability Zone.
	//
	// You must specify AvailabilityZone or AvailabilityZoneId.
	AvailabilityZone *string `min:"1" type:"string"`

	// The ID of the Availability Zone.
	//
	// You must specify AvailabilityZone or AvailabilityZoneId.
	AvailabilityZoneId *string `min:"1" type:"string"`

	// The Outpost description.
	Description *string `min:"1" type:"string"`

	// The name of the Outpost.
	Name *string `min:"1" type:"string"`

	// The ID of the site.
	//
	// SiteId is a required field
	SiteId *string `min:"1" type:"string" required:"true"`
	// contains filtered or unexported fields
}

func (CreateOutpostInput) GoString

func (s CreateOutpostInput) GoString() string

GoString returns the string representation

func (*CreateOutpostInput) SetAvailabilityZone

func (s *CreateOutpostInput) SetAvailabilityZone(v string) *CreateOutpostInput

SetAvailabilityZone sets the AvailabilityZone field's value.

func (*CreateOutpostInput) SetAvailabilityZoneId

func (s *CreateOutpostInput) SetAvailabilityZoneId(v string) *CreateOutpostInput

SetAvailabilityZoneId sets the AvailabilityZoneId field's value.

func (*CreateOutpostInput) SetDescription

func (s *CreateOutpostInput) SetDescription(v string) *CreateOutpostInput

SetDescription sets the Description field's value.

func (*CreateOutpostInput) SetName

SetName sets the Name field's value.

func (*CreateOutpostInput) SetSiteId

func (s *CreateOutpostInput) SetSiteId(v string) *CreateOutpostInput

SetSiteId sets the SiteId field's value.

func (CreateOutpostInput) String

func (s CreateOutpostInput) String() string

String returns the string representation

func (*CreateOutpostInput) Validate

func (s *CreateOutpostInput) Validate() error

Validate inspects the fields of the type to determine if they are valid.

type CreateOutpostOutput

type CreateOutpostOutput struct {

	// Information about an Outpost.
	Outpost *Outpost `type:"structure"`
	// contains filtered or unexported fields
}

func (CreateOutpostOutput) GoString

func (s CreateOutpostOutput) GoString() string

GoString returns the string representation

func (*CreateOutpostOutput) SetOutpost

func (s *CreateOutpostOutput) SetOutpost(v *Outpost) *CreateOutpostOutput

SetOutpost sets the Outpost field's value.

func (CreateOutpostOutput) String

func (s CreateOutpostOutput) String() string

String returns the string representation

type DeleteOutpostInput added in v1.29.10

type DeleteOutpostInput struct {

	// The ID of the Outpost.
	//
	// OutpostId is a required field
	OutpostId *string `location:"uri" locationName:"OutpostId" min:"1" type:"string" required:"true"`
	// contains filtered or unexported fields
}

func (DeleteOutpostInput) GoString added in v1.29.10

func (s DeleteOutpostInput) GoString() string

GoString returns the string representation

func (*DeleteOutpostInput) SetOutpostId added in v1.29.10

func (s *DeleteOutpostInput) SetOutpostId(v string) *DeleteOutpostInput

SetOutpostId sets the OutpostId field's value.

func (DeleteOutpostInput) String added in v1.29.10

func (s DeleteOutpostInput) String() string

String returns the string representation

func (*DeleteOutpostInput) Validate added in v1.29.10

func (s *DeleteOutpostInput) Validate() error

Validate inspects the fields of the type to determine if they are valid.

type DeleteOutpostOutput added in v1.29.10

type DeleteOutpostOutput struct {
	// contains filtered or unexported fields
}

func (DeleteOutpostOutput) GoString added in v1.29.10

func (s DeleteOutpostOutput) GoString() string

GoString returns the string representation

func (DeleteOutpostOutput) String added in v1.29.10

func (s DeleteOutpostOutput) String() string

String returns the string representation

type DeleteSiteInput added in v1.29.10

type DeleteSiteInput struct {

	// The ID of the site.
	//
	// SiteId is a required field
	SiteId *string `location:"uri" locationName:"SiteId" min:"1" type:"string" required:"true"`
	// contains filtered or unexported fields
}

func (DeleteSiteInput) GoString added in v1.29.10

func (s DeleteSiteInput) GoString() string

GoString returns the string representation

func (*DeleteSiteInput) SetSiteId added in v1.29.10

func (s *DeleteSiteInput) SetSiteId(v string) *DeleteSiteInput

SetSiteId sets the SiteId field's value.

func (DeleteSiteInput) String added in v1.29.10

func (s DeleteSiteInput) String() string

String returns the string representation

func (*DeleteSiteInput) Validate added in v1.29.10

func (s *DeleteSiteInput) Validate() error

Validate inspects the fields of the type to determine if they are valid.

type DeleteSiteOutput added in v1.29.10

type DeleteSiteOutput struct {
	// contains filtered or unexported fields
}

func (DeleteSiteOutput) GoString added in v1.29.10

func (s DeleteSiteOutput) GoString() string

GoString returns the string representation

func (DeleteSiteOutput) String added in v1.29.10

func (s DeleteSiteOutput) String() string

String returns the string representation

type GetOutpostInput

type GetOutpostInput struct {

	// The ID of the Outpost.
	//
	// OutpostId is a required field
	OutpostId *string `location:"uri" locationName:"OutpostId" min:"1" type:"string" required:"true"`
	// contains filtered or unexported fields
}

func (GetOutpostInput) GoString

func (s GetOutpostInput) GoString() string

GoString returns the string representation

func (*GetOutpostInput) SetOutpostId

func (s *GetOutpostInput) SetOutpostId(v string) *GetOutpostInput

SetOutpostId sets the OutpostId field's value.

func (GetOutpostInput) String

func (s GetOutpostInput) String() string

String returns the string representation

func (*GetOutpostInput) Validate

func (s *GetOutpostInput) Validate() error

Validate inspects the fields of the type to determine if they are valid.

type GetOutpostInstanceTypesInput

type GetOutpostInstanceTypesInput struct {

	// The maximum page size.
	MaxResults *int64 `location:"querystring" locationName:"MaxResults" min:"1" type:"integer"`

	// The pagination token.
	NextToken *string `location:"querystring" locationName:"NextToken" min:"1" type:"string"`

	// The ID of the Outpost.
	//
	// OutpostId is a required field
	OutpostId *string `location:"uri" locationName:"OutpostId" min:"1" type:"string" required:"true"`
	// contains filtered or unexported fields
}

func (GetOutpostInstanceTypesInput) GoString

func (s GetOutpostInstanceTypesInput) GoString() string

GoString returns the string representation

func (*GetOutpostInstanceTypesInput) SetMaxResults

SetMaxResults sets the MaxResults field's value.

func (*GetOutpostInstanceTypesInput) SetNextToken

SetNextToken sets the NextToken field's value.

func (*GetOutpostInstanceTypesInput) SetOutpostId

SetOutpostId sets the OutpostId field's value.

func (GetOutpostInstanceTypesInput) String

String returns the string representation

func (*GetOutpostInstanceTypesInput) Validate

func (s *GetOutpostInstanceTypesInput) Validate() error

Validate inspects the fields of the type to determine if they are valid.

type GetOutpostInstanceTypesOutput

type GetOutpostInstanceTypesOutput struct {

	// 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"`
	// contains filtered or unexported fields
}

func (GetOutpostInstanceTypesOutput) GoString

GoString returns the string representation

func (*GetOutpostInstanceTypesOutput) SetInstanceTypes

SetInstanceTypes sets the InstanceTypes field's value.

func (*GetOutpostInstanceTypesOutput) SetNextToken

SetNextToken sets the NextToken field's value.

func (*GetOutpostInstanceTypesOutput) SetOutpostArn

SetOutpostArn sets the OutpostArn field's value.

func (*GetOutpostInstanceTypesOutput) SetOutpostId

SetOutpostId sets the OutpostId field's value.

func (GetOutpostInstanceTypesOutput) String

String returns the string representation

type GetOutpostOutput

type GetOutpostOutput struct {

	// Information about an Outpost.
	Outpost *Outpost `type:"structure"`
	// contains filtered or unexported fields
}

func (GetOutpostOutput) GoString

func (s GetOutpostOutput) GoString() string

GoString returns the string representation

func (*GetOutpostOutput) SetOutpost

func (s *GetOutpostOutput) SetOutpost(v *Outpost) *GetOutpostOutput

SetOutpost sets the Outpost field's value.

func (GetOutpostOutput) String

func (s GetOutpostOutput) String() string

String returns the string representation

type InstanceTypeItem

type InstanceTypeItem struct {

	// The instance type.
	InstanceType *string `type:"string"`
	// contains filtered or unexported fields
}

Information about an instance type.

func (InstanceTypeItem) GoString

func (s InstanceTypeItem) GoString() string

GoString returns the string representation

func (*InstanceTypeItem) SetInstanceType

func (s *InstanceTypeItem) SetInstanceType(v string) *InstanceTypeItem

SetInstanceType sets the InstanceType field's value.

func (InstanceTypeItem) String

func (s InstanceTypeItem) String() string

String returns the string representation

type InternalServerException added in v1.28.0

type InternalServerException struct {
	RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`

	Message_ *string `locationName:"Message" min:"1" type:"string"`
	// contains filtered or unexported fields
}

An internal error has occurred.

func (*InternalServerException) Code added in v1.28.0

func (s *InternalServerException) Code() string

Code returns the exception type name.

func (*InternalServerException) Error added in v1.28.0

func (s *InternalServerException) Error() string

func (InternalServerException) GoString added in v1.28.0

func (s InternalServerException) GoString() string

GoString returns the string representation

func (*InternalServerException) Message added in v1.28.0

func (s *InternalServerException) Message() string

Message returns the exception's message.

func (*InternalServerException) OrigErr added in v1.28.0

func (s *InternalServerException) OrigErr() error

OrigErr always returns nil, satisfies awserr.Error interface.

func (*InternalServerException) RequestID added in v1.28.0

func (s *InternalServerException) RequestID() string

RequestID returns the service's response RequestID for request.

func (*InternalServerException) StatusCode added in v1.28.0

func (s *InternalServerException) StatusCode() int

Status code returns the HTTP status code for the request's response error.

func (InternalServerException) String added in v1.28.0

func (s InternalServerException) String() string

String returns the string representation

type ListOutpostsInput

type ListOutpostsInput struct {

	// 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"`
	// contains filtered or unexported fields
}

func (ListOutpostsInput) GoString

func (s ListOutpostsInput) GoString() string

GoString returns the string representation

func (*ListOutpostsInput) SetMaxResults

func (s *ListOutpostsInput) SetMaxResults(v int64) *ListOutpostsInput

SetMaxResults sets the MaxResults field's value.

func (*ListOutpostsInput) SetNextToken

func (s *ListOutpostsInput) SetNextToken(v string) *ListOutpostsInput

SetNextToken sets the NextToken field's value.

func (ListOutpostsInput) String

func (s ListOutpostsInput) String() string

String returns the string representation

func (*ListOutpostsInput) Validate

func (s *ListOutpostsInput) Validate() error

Validate inspects the fields of the type to determine if they are valid.

type ListOutpostsOutput

type ListOutpostsOutput struct {

	// The pagination token.
	NextToken *string `min:"1" type:"string"`

	// Information about the Outposts.
	Outposts []*Outpost `type:"list"`
	// contains filtered or unexported fields
}

func (ListOutpostsOutput) GoString

func (s ListOutpostsOutput) GoString() string

GoString returns the string representation

func (*ListOutpostsOutput) SetNextToken

func (s *ListOutpostsOutput) SetNextToken(v string) *ListOutpostsOutput

SetNextToken sets the NextToken field's value.

func (*ListOutpostsOutput) SetOutposts

func (s *ListOutpostsOutput) SetOutposts(v []*Outpost) *ListOutpostsOutput

SetOutposts sets the Outposts field's value.

func (ListOutpostsOutput) String

func (s ListOutpostsOutput) String() string

String returns the string representation

type ListSitesInput

type ListSitesInput struct {

	// 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"`
	// contains filtered or unexported fields
}

func (ListSitesInput) GoString

func (s ListSitesInput) GoString() string

GoString returns the string representation

func (*ListSitesInput) SetMaxResults

func (s *ListSitesInput) SetMaxResults(v int64) *ListSitesInput

SetMaxResults sets the MaxResults field's value.

func (*ListSitesInput) SetNextToken

func (s *ListSitesInput) SetNextToken(v string) *ListSitesInput

SetNextToken sets the NextToken field's value.

func (ListSitesInput) String

func (s ListSitesInput) String() string

String returns the string representation

func (*ListSitesInput) Validate

func (s *ListSitesInput) Validate() error

Validate inspects the fields of the type to determine if they are valid.

type ListSitesOutput

type ListSitesOutput struct {

	// The pagination token.
	NextToken *string `min:"1" type:"string"`

	// Information about the sites.
	Sites []*Site `type:"list"`
	// contains filtered or unexported fields
}

func (ListSitesOutput) GoString

func (s ListSitesOutput) GoString() string

GoString returns the string representation

func (*ListSitesOutput) SetNextToken

func (s *ListSitesOutput) SetNextToken(v string) *ListSitesOutput

SetNextToken sets the NextToken field's value.

func (*ListSitesOutput) SetSites

func (s *ListSitesOutput) SetSites(v []*Site) *ListSitesOutput

SetSites sets the Sites field's value.

func (ListSitesOutput) String

func (s ListSitesOutput) String() string

String returns the string representation

type NotFoundException added in v1.28.0

type NotFoundException struct {
	RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`

	Message_ *string `locationName:"Message" min:"1" type:"string"`
	// contains filtered or unexported fields
}

The specified request is not valid.

func (*NotFoundException) Code added in v1.28.0

func (s *NotFoundException) Code() string

Code returns the exception type name.

func (*NotFoundException) Error added in v1.28.0

func (s *NotFoundException) Error() string

func (NotFoundException) GoString added in v1.28.0

func (s NotFoundException) GoString() string

GoString returns the string representation

func (*NotFoundException) Message added in v1.28.0

func (s *NotFoundException) Message() string

Message returns the exception's message.

func (*NotFoundException) OrigErr added in v1.28.0

func (s *NotFoundException) OrigErr() error

OrigErr always returns nil, satisfies awserr.Error interface.

func (*NotFoundException) RequestID added in v1.28.0

func (s *NotFoundException) RequestID() string

RequestID returns the service's response RequestID for request.

func (*NotFoundException) StatusCode added in v1.28.0

func (s *NotFoundException) StatusCode() int

Status code returns the HTTP status code for the request's response error.

func (NotFoundException) String added in v1.28.0

func (s NotFoundException) String() string

String returns the string representation

type Outpost

type Outpost struct {

	// The Availability Zone.
	//
	// You must specify AvailabilityZone or AvailabilityZoneId.
	AvailabilityZone *string `min:"1" type:"string"`

	// The ID of the Availability Zone.
	//
	// You must specify AvailabilityZone or AvailabilityZoneId.
	AvailabilityZoneId *string `min:"1" type:"string"`

	// The Outpost description.
	Description *string `min:"1" type:"string"`

	// The life cycle status.
	LifeCycleStatus *string `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 AWS account ID of the Outpost owner.
	OwnerId *string `min:"12" type:"string"`

	// The ID of the site.
	SiteId *string `min:"1" type:"string"`
	// contains filtered or unexported fields
}

Information about an Outpost.

func (Outpost) GoString

func (s Outpost) GoString() string

GoString returns the string representation

func (*Outpost) SetAvailabilityZone

func (s *Outpost) SetAvailabilityZone(v string) *Outpost

SetAvailabilityZone sets the AvailabilityZone field's value.

func (*Outpost) SetAvailabilityZoneId

func (s *Outpost) SetAvailabilityZoneId(v string) *Outpost

SetAvailabilityZoneId sets the AvailabilityZoneId field's value.

func (*Outpost) SetDescription

func (s *Outpost) SetDescription(v string) *Outpost

SetDescription sets the Description field's value.

func (*Outpost) SetLifeCycleStatus

func (s *Outpost) SetLifeCycleStatus(v string) *Outpost

SetLifeCycleStatus sets the LifeCycleStatus field's value.

func (*Outpost) SetName

func (s *Outpost) SetName(v string) *Outpost

SetName sets the Name field's value.

func (*Outpost) SetOutpostArn

func (s *Outpost) SetOutpostArn(v string) *Outpost

SetOutpostArn sets the OutpostArn field's value.

func (*Outpost) SetOutpostId

func (s *Outpost) SetOutpostId(v string) *Outpost

SetOutpostId sets the OutpostId field's value.

func (*Outpost) SetOwnerId

func (s *Outpost) SetOwnerId(v string) *Outpost

SetOwnerId sets the OwnerId field's value.

func (*Outpost) SetSiteId

func (s *Outpost) SetSiteId(v string) *Outpost

SetSiteId sets the SiteId field's value.

func (Outpost) String

func (s Outpost) String() string

String returns the string representation

type Outposts

type Outposts struct {
	*client.Client
}

Outposts provides the API operation methods for making requests to AWS Outposts. See this package's package overview docs for details on the service.

Outposts methods are safe to use concurrently. It is not safe to modify mutate any of the struct's properties though.

func New

func New(p client.ConfigProvider, cfgs ...*aws.Config) *Outposts

New creates a new instance of the Outposts client with a session. If additional configuration is needed for the client instance use the optional aws.Config parameter to add your extra config.

Example:

mySession := session.Must(session.NewSession())

// Create a Outposts client from just a session.
svc := outposts.New(mySession)

// Create a Outposts client with additional configuration
svc := outposts.New(mySession, aws.NewConfig().WithRegion("us-west-2"))

func (*Outposts) CreateOutpost

func (c *Outposts) CreateOutpost(input *CreateOutpostInput) (*CreateOutpostOutput, error)

CreateOutpost API operation for AWS Outposts.

Creates 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 CreateOutpost 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.

  • ServiceQuotaExceededException You have exceeded a service quota.

See also, https://docs.aws.amazon.com/goto/WebAPI/outposts-2019-12-03/CreateOutpost

func (*Outposts) CreateOutpostRequest

func (c *Outposts) CreateOutpostRequest(input *CreateOutpostInput) (req *request.Request, output *CreateOutpostOutput)

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 (*Outposts) CreateOutpostWithContext

func (c *Outposts) CreateOutpostWithContext(ctx aws.Context, input *CreateOutpostInput, opts ...request.Option) (*CreateOutpostOutput, error)

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 (*Outposts) DeleteOutpost added in v1.29.10

func (c *Outposts) DeleteOutpost(input *DeleteOutpostInput) (*DeleteOutpostOutput, error)

DeleteOutpost API operation for AWS Outposts.

Deletes the 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.

  • 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 (*Outposts) DeleteOutpostRequest added in v1.29.10

func (c *Outposts) DeleteOutpostRequest(input *DeleteOutpostInput) (req *request.Request, output *DeleteOutpostOutput)

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 (*Outposts) DeleteOutpostWithContext added in v1.29.10

func (c *Outposts) DeleteOutpostWithContext(ctx aws.Context, input *DeleteOutpostInput, opts ...request.Option) (*DeleteOutpostOutput, error)

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 (*Outposts) DeleteSite added in v1.29.10

func (c *Outposts) DeleteSite(input *DeleteSiteInput) (*DeleteSiteOutput, error)

DeleteSite API operation for AWS Outposts.

Deletes the site.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for AWS Outposts's API operation DeleteSite 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/DeleteSite

func (*Outposts) DeleteSiteRequest added in v1.29.10

func (c *Outposts) DeleteSiteRequest(input *DeleteSiteInput) (req *request.Request, output *DeleteSiteOutput)

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 (*Outposts) DeleteSiteWithContext added in v1.29.10

func (c *Outposts) DeleteSiteWithContext(ctx aws.Context, input *DeleteSiteInput, opts ...request.Option) (*DeleteSiteOutput, error)

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 (*Outposts) GetOutpost

func (c *Outposts) GetOutpost(input *GetOutpostInput) (*GetOutpostOutput, error)

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 (*Outposts) GetOutpostInstanceTypes

func (c *Outposts) GetOutpostInstanceTypes(input *GetOutpostInstanceTypesInput) (*GetOutpostInstanceTypesOutput, error)

GetOutpostInstanceTypes API operation for AWS Outposts.

Lists the instance types for the specified Outpost.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for AWS Outposts's API operation 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 (*Outposts) GetOutpostInstanceTypesRequest

func (c *Outposts) GetOutpostInstanceTypesRequest(input *GetOutpostInstanceTypesInput) (req *request.Request, output *GetOutpostInstanceTypesOutput)

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 (*Outposts) GetOutpostInstanceTypesWithContext

func (c *Outposts) GetOutpostInstanceTypesWithContext(ctx aws.Context, input *GetOutpostInstanceTypesInput, opts ...request.Option) (*GetOutpostInstanceTypesOutput, error)

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 (*Outposts) GetOutpostRequest

func (c *Outposts) GetOutpostRequest(input *GetOutpostInput) (req *request.Request, output *GetOutpostOutput)

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 (*Outposts) GetOutpostWithContext

func (c *Outposts) GetOutpostWithContext(ctx aws.Context, input *GetOutpostInput, opts ...request.Option) (*GetOutpostOutput, error)

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 (*Outposts) ListOutposts

func (c *Outposts) ListOutposts(input *ListOutpostsInput) (*ListOutpostsOutput, error)

ListOutposts API operation for AWS Outposts.

List the Outposts for your AWS 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 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 (*Outposts) ListOutpostsPages

func (c *Outposts) ListOutpostsPages(input *ListOutpostsInput, fn func(*ListOutpostsOutput, bool) bool) error

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 (*Outposts) ListOutpostsPagesWithContext

func (c *Outposts) ListOutpostsPagesWithContext(ctx aws.Context, input *ListOutpostsInput, fn func(*ListOutpostsOutput, bool) bool, opts ...request.Option) error

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 (*Outposts) ListOutpostsRequest

func (c *Outposts) ListOutpostsRequest(input *ListOutpostsInput) (req *request.Request, output *ListOutpostsOutput)

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 (*Outposts) ListOutpostsWithContext

func (c *Outposts) ListOutpostsWithContext(ctx aws.Context, input *ListOutpostsInput, opts ...request.Option) (*ListOutpostsOutput, error)

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 (*Outposts) ListSites

func (c *Outposts) ListSites(input *ListSitesInput) (*ListSitesOutput, error)

ListSites API operation for AWS Outposts.

Lists the sites for the specified AWS account.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for AWS Outposts's API operation ListSites for usage and error information.

Returned Error Types:

  • ValidationException A parameter is not valid.

  • AccessDeniedException You do not have permission to perform this operation.

  • InternalServerException An internal error has occurred.

See also, https://docs.aws.amazon.com/goto/WebAPI/outposts-2019-12-03/ListSites

func (*Outposts) ListSitesPages

func (c *Outposts) ListSitesPages(input *ListSitesInput, fn func(*ListSitesOutput, bool) bool) error

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 (*Outposts) ListSitesPagesWithContext

func (c *Outposts) ListSitesPagesWithContext(ctx aws.Context, input *ListSitesInput, fn func(*ListSitesOutput, bool) bool, opts ...request.Option) error

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 (*Outposts) ListSitesRequest

func (c *Outposts) ListSitesRequest(input *ListSitesInput) (req *request.Request, output *ListSitesOutput)

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 (*Outposts) ListSitesWithContext

func (c *Outposts) ListSitesWithContext(ctx aws.Context, input *ListSitesInput, opts ...request.Option) (*ListSitesOutput, error)

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.

type ServiceQuotaExceededException added in v1.28.0

type ServiceQuotaExceededException struct {
	RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`

	Message_ *string `locationName:"Message" min:"1" type:"string"`
	// contains filtered or unexported fields
}

You have exceeded a service quota.

func (*ServiceQuotaExceededException) Code added in v1.28.0

Code returns the exception type name.

func (*ServiceQuotaExceededException) Error added in v1.28.0

func (ServiceQuotaExceededException) GoString added in v1.28.0

GoString returns the string representation

func (*ServiceQuotaExceededException) Message added in v1.28.0

Message returns the exception's message.

func (*ServiceQuotaExceededException) OrigErr added in v1.28.0

func (s *ServiceQuotaExceededException) OrigErr() error

OrigErr always returns nil, satisfies awserr.Error interface.

func (*ServiceQuotaExceededException) RequestID added in v1.28.0

func (s *ServiceQuotaExceededException) RequestID() string

RequestID returns the service's response RequestID for request.

func (*ServiceQuotaExceededException) StatusCode added in v1.28.0

func (s *ServiceQuotaExceededException) StatusCode() int

Status code returns the HTTP status code for the request's response error.

func (ServiceQuotaExceededException) String added in v1.28.0

String returns the string representation

type Site

type Site struct {

	// The ID of the AWS account.
	AccountId *string `min:"12" type:"string"`

	// The description of the site.
	Description *string `min:"1" type:"string"`

	// The name of the site.
	Name *string `min:"1" type:"string"`

	// The ID of the site.
	SiteId *string `min:"1" type:"string"`
	// contains filtered or unexported fields
}

Information about a site.

func (Site) GoString

func (s Site) GoString() string

GoString returns the string representation

func (*Site) SetAccountId

func (s *Site) SetAccountId(v string) *Site

SetAccountId sets the AccountId field's value.

func (*Site) SetDescription

func (s *Site) SetDescription(v string) *Site

SetDescription sets the Description field's value.

func (*Site) SetName

func (s *Site) SetName(v string) *Site

SetName sets the Name field's value.

func (*Site) SetSiteId

func (s *Site) SetSiteId(v string) *Site

SetSiteId sets the SiteId field's value.

func (Site) String

func (s Site) String() string

String returns the string representation

type ValidationException added in v1.28.0

type ValidationException struct {
	RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`

	Message_ *string `locationName:"Message" min:"1" type:"string"`
	// contains filtered or unexported fields
}

A parameter is not valid.

func (*ValidationException) Code added in v1.28.0

func (s *ValidationException) Code() string

Code returns the exception type name.

func (*ValidationException) Error added in v1.28.0

func (s *ValidationException) Error() string

func (ValidationException) GoString added in v1.28.0

func (s ValidationException) GoString() string

GoString returns the string representation

func (*ValidationException) Message added in v1.28.0

func (s *ValidationException) Message() string

Message returns the exception's message.

func (*ValidationException) OrigErr added in v1.28.0

func (s *ValidationException) OrigErr() error

OrigErr always returns nil, satisfies awserr.Error interface.

func (*ValidationException) RequestID added in v1.28.0

func (s *ValidationException) RequestID() string

RequestID returns the service's response RequestID for request.

func (*ValidationException) StatusCode added in v1.28.0

func (s *ValidationException) StatusCode() int

Status code returns the HTTP status code for the request's response error.

func (ValidationException) String added in v1.28.0

func (s ValidationException) String() string

String returns the string representation

Directories

Path Synopsis
Package outpostsiface provides an interface to enable mocking the AWS Outposts service client for testing your code.
Package outpostsiface provides an interface to enable mocking the AWS Outposts service client for testing your code.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL