aws-sdk-go: github.com/aws/aws-sdk-go/service/iotsecuretunneling Index | Files | Directories

package iotsecuretunneling

import "github.com/aws/aws-sdk-go/service/iotsecuretunneling"

Package iotsecuretunneling provides the client and types for making API requests to AWS IoT Secure Tunneling.

AWS IoT Secure Tunnling enables you to create remote connections to devices deployed in the field.

For more information about how AWS IoT Secure Tunneling works, see the User Guide (https://docs.aws.amazon.com/secure-tunneling/latest/ug/what-is-secure-tunneling.html).

See https://docs.aws.amazon.com/goto/WebAPI/iotsecuretunneling-2018-10-05 for more information on this service.

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

Using the Client

To contact AWS IoT Secure Tunneling 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 IoT Secure Tunneling client IoTSecureTunneling for more information on creating client for this service. https://docs.aws.amazon.com/sdk-for-go/api/service/iotsecuretunneling/#New

Index

Package Files

api.go doc.go errors.go service.go

Constants

const (
    // ConnectionStatusConnected is a ConnectionStatus enum value
    ConnectionStatusConnected = "CONNECTED"

    // ConnectionStatusDisconnected is a ConnectionStatus enum value
    ConnectionStatusDisconnected = "DISCONNECTED"
)
const (
    // TunnelStatusOpen is a TunnelStatus enum value
    TunnelStatusOpen = "OPEN"

    // TunnelStatusClosed is a TunnelStatus enum value
    TunnelStatusClosed = "CLOSED"
)
const (

    // ErrCodeLimitExceededException for service response error code
    // "LimitExceededException".
    //
    // Thrown when a tunnel limit is exceeded.
    ErrCodeLimitExceededException = "LimitExceededException"

    // ErrCodeResourceNotFoundException for service response error code
    // "ResourceNotFoundException".
    //
    // Thrown when an operation is attempted on a resource that does not exist.
    ErrCodeResourceNotFoundException = "ResourceNotFoundException"
)
const (
    ServiceName = "IoTSecureTunneling" // Name of service.
    EndpointsID = "api.tunneling.iot"  // ID to lookup a service endpoint with.
    ServiceID   = "IoTSecureTunneling" // ServiceID is a unique identifier of a specific service.
)

Service information constants

type CloseTunnelInput Uses

type CloseTunnelInput struct {

    // When set to true, AWS IoT Secure Tunneling deletes the tunnel data immediately.
    Delete *bool `locationName:"delete" type:"boolean"`

    // The ID of the tunnel to close.
    //
    // TunnelId is a required field
    TunnelId *string `locationName:"tunnelId" type:"string" required:"true"`
    // contains filtered or unexported fields
}

func (CloseTunnelInput) GoString Uses

func (s CloseTunnelInput) GoString() string

GoString returns the string representation

func (*CloseTunnelInput) SetDelete Uses

func (s *CloseTunnelInput) SetDelete(v bool) *CloseTunnelInput

SetDelete sets the Delete field's value.

func (*CloseTunnelInput) SetTunnelId Uses

func (s *CloseTunnelInput) SetTunnelId(v string) *CloseTunnelInput

SetTunnelId sets the TunnelId field's value.

func (CloseTunnelInput) String Uses

func (s CloseTunnelInput) String() string

String returns the string representation

func (*CloseTunnelInput) Validate Uses

func (s *CloseTunnelInput) Validate() error

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

type CloseTunnelOutput Uses

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

func (CloseTunnelOutput) GoString Uses

func (s CloseTunnelOutput) GoString() string

GoString returns the string representation

func (CloseTunnelOutput) String Uses

func (s CloseTunnelOutput) String() string

String returns the string representation

type ConnectionState Uses

type ConnectionState struct {

    // The last time the connection status was updated.
    LastUpdatedAt *time.Time `locationName:"lastUpdatedAt" type:"timestamp"`

    // The connection status of the tunnel. Valid values are CONNECTED and DISCONNECTED.
    Status *string `locationName:"status" type:"string" enum:"ConnectionStatus"`
    // contains filtered or unexported fields
}

The state of a connection.

func (ConnectionState) GoString Uses

func (s ConnectionState) GoString() string

GoString returns the string representation

func (*ConnectionState) SetLastUpdatedAt Uses

func (s *ConnectionState) SetLastUpdatedAt(v time.Time) *ConnectionState

SetLastUpdatedAt sets the LastUpdatedAt field's value.

func (*ConnectionState) SetStatus Uses

func (s *ConnectionState) SetStatus(v string) *ConnectionState

SetStatus sets the Status field's value.

func (ConnectionState) String Uses

func (s ConnectionState) String() string

String returns the string representation

type DescribeTunnelInput Uses

type DescribeTunnelInput struct {

    // The tunnel to describe.
    //
    // TunnelId is a required field
    TunnelId *string `locationName:"tunnelId" type:"string" required:"true"`
    // contains filtered or unexported fields
}

func (DescribeTunnelInput) GoString Uses

func (s DescribeTunnelInput) GoString() string

GoString returns the string representation

func (*DescribeTunnelInput) SetTunnelId Uses

func (s *DescribeTunnelInput) SetTunnelId(v string) *DescribeTunnelInput

SetTunnelId sets the TunnelId field's value.

func (DescribeTunnelInput) String Uses

func (s DescribeTunnelInput) String() string

String returns the string representation

func (*DescribeTunnelInput) Validate Uses

func (s *DescribeTunnelInput) Validate() error

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

type DescribeTunnelOutput Uses

type DescribeTunnelOutput struct {

    // The tunnel being described.
    Tunnel *Tunnel `locationName:"tunnel" type:"structure"`
    // contains filtered or unexported fields
}

func (DescribeTunnelOutput) GoString Uses

func (s DescribeTunnelOutput) GoString() string

GoString returns the string representation

func (*DescribeTunnelOutput) SetTunnel Uses

func (s *DescribeTunnelOutput) SetTunnel(v *Tunnel) *DescribeTunnelOutput

SetTunnel sets the Tunnel field's value.

func (DescribeTunnelOutput) String Uses

func (s DescribeTunnelOutput) String() string

String returns the string representation

type DestinationConfig Uses

type DestinationConfig struct {

    // A list of service names that identity the target application. Currently,
    // you can only specify a single name. The AWS IoT client running on the destination
    // device reads this value and uses it to look up a port or an IP address and
    // a port. The AWS IoT client instantiates the local proxy which uses this information
    // to connect to the destination application.
    //
    // Services is a required field
    Services []*string `locationName:"services" min:"1" type:"list" required:"true"`

    // The name of the IoT thing to which you want to connect.
    //
    // ThingName is a required field
    ThingName *string `locationName:"thingName" min:"1" type:"string" required:"true"`
    // contains filtered or unexported fields
}

The destination configuration.

func (DestinationConfig) GoString Uses

func (s DestinationConfig) GoString() string

GoString returns the string representation

func (*DestinationConfig) SetServices Uses

func (s *DestinationConfig) SetServices(v []*string) *DestinationConfig

SetServices sets the Services field's value.

func (*DestinationConfig) SetThingName Uses

func (s *DestinationConfig) SetThingName(v string) *DestinationConfig

SetThingName sets the ThingName field's value.

func (DestinationConfig) String Uses

func (s DestinationConfig) String() string

String returns the string representation

func (*DestinationConfig) Validate Uses

func (s *DestinationConfig) Validate() error

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

type IoTSecureTunneling Uses

type IoTSecureTunneling struct {
    *client.Client
}

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

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

func New Uses

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

New creates a new instance of the IoTSecureTunneling 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 IoTSecureTunneling client from just a session.
svc := iotsecuretunneling.New(mySession)

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

func (*IoTSecureTunneling) CloseTunnel Uses

func (c *IoTSecureTunneling) CloseTunnel(input *CloseTunnelInput) (*CloseTunnelOutput, error)

CloseTunnel API operation for AWS IoT Secure Tunneling.

Closes a tunnel identified by the unique tunnel id. When a CloseTunnel request is received, we close the WebSocket connections between the client and proxy server so no data can be transmitted.

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

See the AWS API reference guide for AWS IoT Secure Tunneling's API operation CloseTunnel for usage and error information.

Returned Error Types:

* ResourceNotFoundException
Thrown when an operation is attempted on a resource that does not exist.

See also, https://docs.aws.amazon.com/goto/WebAPI/iotsecuretunneling-2018-10-05/CloseTunnel

func (*IoTSecureTunneling) CloseTunnelRequest Uses

func (c *IoTSecureTunneling) CloseTunnelRequest(input *CloseTunnelInput) (req *request.Request, output *CloseTunnelOutput)

CloseTunnelRequest generates a "aws/request.Request" representing the client's request for the CloseTunnel 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 CloseTunnel for more information on using the CloseTunnel 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 CloseTunnelRequest method.
req, resp := client.CloseTunnelRequest(params)

err := req.Send()
if err == nil { // resp is now filled
    fmt.Println(resp)
}

See also, https://docs.aws.amazon.com/goto/WebAPI/iotsecuretunneling-2018-10-05/CloseTunnel

func (*IoTSecureTunneling) CloseTunnelWithContext Uses

func (c *IoTSecureTunneling) CloseTunnelWithContext(ctx aws.Context, input *CloseTunnelInput, opts ...request.Option) (*CloseTunnelOutput, error)

CloseTunnelWithContext is the same as CloseTunnel with the addition of the ability to pass a context and additional request options.

See CloseTunnel 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 (*IoTSecureTunneling) DescribeTunnel Uses

func (c *IoTSecureTunneling) DescribeTunnel(input *DescribeTunnelInput) (*DescribeTunnelOutput, error)

DescribeTunnel API operation for AWS IoT Secure Tunneling.

Gets information about a tunnel identified by the unique tunnel 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 IoT Secure Tunneling's API operation DescribeTunnel for usage and error information.

Returned Error Types:

* ResourceNotFoundException
Thrown when an operation is attempted on a resource that does not exist.

See also, https://docs.aws.amazon.com/goto/WebAPI/iotsecuretunneling-2018-10-05/DescribeTunnel

func (*IoTSecureTunneling) DescribeTunnelRequest Uses

func (c *IoTSecureTunneling) DescribeTunnelRequest(input *DescribeTunnelInput) (req *request.Request, output *DescribeTunnelOutput)

DescribeTunnelRequest generates a "aws/request.Request" representing the client's request for the DescribeTunnel 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 DescribeTunnel for more information on using the DescribeTunnel 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 DescribeTunnelRequest method.
req, resp := client.DescribeTunnelRequest(params)

err := req.Send()
if err == nil { // resp is now filled
    fmt.Println(resp)
}

See also, https://docs.aws.amazon.com/goto/WebAPI/iotsecuretunneling-2018-10-05/DescribeTunnel

func (*IoTSecureTunneling) DescribeTunnelWithContext Uses

func (c *IoTSecureTunneling) DescribeTunnelWithContext(ctx aws.Context, input *DescribeTunnelInput, opts ...request.Option) (*DescribeTunnelOutput, error)

DescribeTunnelWithContext is the same as DescribeTunnel with the addition of the ability to pass a context and additional request options.

See DescribeTunnel 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 (*IoTSecureTunneling) ListTagsForResource Uses

func (c *IoTSecureTunneling) ListTagsForResource(input *ListTagsForResourceInput) (*ListTagsForResourceOutput, error)

ListTagsForResource API operation for AWS IoT Secure Tunneling.

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 IoT Secure Tunneling's API operation ListTagsForResource for usage and error information.

Returned Error Types:

* ResourceNotFoundException
Thrown when an operation is attempted on a resource that does not exist.

See also, https://docs.aws.amazon.com/goto/WebAPI/iotsecuretunneling-2018-10-05/ListTagsForResource

func (*IoTSecureTunneling) ListTagsForResourceRequest Uses

func (c *IoTSecureTunneling) ListTagsForResourceRequest(input *ListTagsForResourceInput) (req *request.Request, output *ListTagsForResourceOutput)

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/iotsecuretunneling-2018-10-05/ListTagsForResource

func (*IoTSecureTunneling) ListTagsForResourceWithContext Uses

func (c *IoTSecureTunneling) ListTagsForResourceWithContext(ctx aws.Context, input *ListTagsForResourceInput, opts ...request.Option) (*ListTagsForResourceOutput, error)

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 (*IoTSecureTunneling) ListTunnels Uses

func (c *IoTSecureTunneling) ListTunnels(input *ListTunnelsInput) (*ListTunnelsOutput, error)

ListTunnels API operation for AWS IoT Secure Tunneling.

List all tunnels for an AWS account. Tunnels are listed by creation time in descending order, newer tunnels will be listed before older tunnels.

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

See the AWS API reference guide for AWS IoT Secure Tunneling's API operation ListTunnels for usage and error information. See also, https://docs.aws.amazon.com/goto/WebAPI/iotsecuretunneling-2018-10-05/ListTunnels

func (*IoTSecureTunneling) ListTunnelsPages Uses

func (c *IoTSecureTunneling) ListTunnelsPages(input *ListTunnelsInput, fn func(*ListTunnelsOutput, bool) bool) error

ListTunnelsPages iterates over the pages of a ListTunnels operation, calling the "fn" function with the response data for each page. To stop iterating, return false from the fn function.

See ListTunnels 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 ListTunnels operation.
pageNum := 0
err := client.ListTunnelsPages(params,
    func(page *iotsecuretunneling.ListTunnelsOutput, lastPage bool) bool {
        pageNum++
        fmt.Println(page)
        return pageNum <= 3
    })

func (*IoTSecureTunneling) ListTunnelsPagesWithContext Uses

func (c *IoTSecureTunneling) ListTunnelsPagesWithContext(ctx aws.Context, input *ListTunnelsInput, fn func(*ListTunnelsOutput, bool) bool, opts ...request.Option) error

ListTunnelsPagesWithContext same as ListTunnelsPages 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 (*IoTSecureTunneling) ListTunnelsRequest Uses

func (c *IoTSecureTunneling) ListTunnelsRequest(input *ListTunnelsInput) (req *request.Request, output *ListTunnelsOutput)

ListTunnelsRequest generates a "aws/request.Request" representing the client's request for the ListTunnels 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 ListTunnels for more information on using the ListTunnels 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 ListTunnelsRequest method.
req, resp := client.ListTunnelsRequest(params)

err := req.Send()
if err == nil { // resp is now filled
    fmt.Println(resp)
}

See also, https://docs.aws.amazon.com/goto/WebAPI/iotsecuretunneling-2018-10-05/ListTunnels

func (*IoTSecureTunneling) ListTunnelsWithContext Uses

func (c *IoTSecureTunneling) ListTunnelsWithContext(ctx aws.Context, input *ListTunnelsInput, opts ...request.Option) (*ListTunnelsOutput, error)

ListTunnelsWithContext is the same as ListTunnels with the addition of the ability to pass a context and additional request options.

See ListTunnels 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 (*IoTSecureTunneling) OpenTunnel Uses

func (c *IoTSecureTunneling) OpenTunnel(input *OpenTunnelInput) (*OpenTunnelOutput, error)

OpenTunnel API operation for AWS IoT Secure Tunneling.

Creates a new tunnel, and returns two client access tokens for clients to use to connect to the AWS IoT Secure Tunneling proxy server. .

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

See the AWS API reference guide for AWS IoT Secure Tunneling's API operation OpenTunnel for usage and error information.

Returned Error Types:

* LimitExceededException
Thrown when a tunnel limit is exceeded.

See also, https://docs.aws.amazon.com/goto/WebAPI/iotsecuretunneling-2018-10-05/OpenTunnel

func (*IoTSecureTunneling) OpenTunnelRequest Uses

func (c *IoTSecureTunneling) OpenTunnelRequest(input *OpenTunnelInput) (req *request.Request, output *OpenTunnelOutput)

OpenTunnelRequest generates a "aws/request.Request" representing the client's request for the OpenTunnel 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 OpenTunnel for more information on using the OpenTunnel 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 OpenTunnelRequest method.
req, resp := client.OpenTunnelRequest(params)

err := req.Send()
if err == nil { // resp is now filled
    fmt.Println(resp)
}

See also, https://docs.aws.amazon.com/goto/WebAPI/iotsecuretunneling-2018-10-05/OpenTunnel

func (*IoTSecureTunneling) OpenTunnelWithContext Uses

func (c *IoTSecureTunneling) OpenTunnelWithContext(ctx aws.Context, input *OpenTunnelInput, opts ...request.Option) (*OpenTunnelOutput, error)

OpenTunnelWithContext is the same as OpenTunnel with the addition of the ability to pass a context and additional request options.

See OpenTunnel 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 (*IoTSecureTunneling) TagResource Uses

func (c *IoTSecureTunneling) TagResource(input *TagResourceInput) (*TagResourceOutput, error)

TagResource API operation for AWS IoT Secure Tunneling.

A resource tag.

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

See the AWS API reference guide for AWS IoT Secure Tunneling's API operation TagResource for usage and error information.

Returned Error Types:

* ResourceNotFoundException
Thrown when an operation is attempted on a resource that does not exist.

See also, https://docs.aws.amazon.com/goto/WebAPI/iotsecuretunneling-2018-10-05/TagResource

func (*IoTSecureTunneling) TagResourceRequest Uses

func (c *IoTSecureTunneling) TagResourceRequest(input *TagResourceInput) (req *request.Request, output *TagResourceOutput)

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/iotsecuretunneling-2018-10-05/TagResource

func (*IoTSecureTunneling) TagResourceWithContext Uses

func (c *IoTSecureTunneling) TagResourceWithContext(ctx aws.Context, input *TagResourceInput, opts ...request.Option) (*TagResourceOutput, error)

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 (*IoTSecureTunneling) UntagResource Uses

func (c *IoTSecureTunneling) UntagResource(input *UntagResourceInput) (*UntagResourceOutput, error)

UntagResource API operation for AWS IoT Secure Tunneling.

Removes a tag from a 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 IoT Secure Tunneling's API operation UntagResource for usage and error information.

Returned Error Types:

* ResourceNotFoundException
Thrown when an operation is attempted on a resource that does not exist.

See also, https://docs.aws.amazon.com/goto/WebAPI/iotsecuretunneling-2018-10-05/UntagResource

func (*IoTSecureTunneling) UntagResourceRequest Uses

func (c *IoTSecureTunneling) UntagResourceRequest(input *UntagResourceInput) (req *request.Request, output *UntagResourceOutput)

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/iotsecuretunneling-2018-10-05/UntagResource

func (*IoTSecureTunneling) UntagResourceWithContext Uses

func (c *IoTSecureTunneling) UntagResourceWithContext(ctx aws.Context, input *UntagResourceInput, opts ...request.Option) (*UntagResourceOutput, error)

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.

type LimitExceededException Uses

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

    Message_ *string `locationName:"message" type:"string"`
    // contains filtered or unexported fields
}

Thrown when a tunnel limit is exceeded.

func (*LimitExceededException) Code Uses

func (s *LimitExceededException) Code() string

Code returns the exception type name.

func (*LimitExceededException) Error Uses

func (s *LimitExceededException) Error() string

func (LimitExceededException) GoString Uses

func (s LimitExceededException) GoString() string

GoString returns the string representation

func (*LimitExceededException) Message Uses

func (s *LimitExceededException) Message() string

Message returns the exception's message.

func (*LimitExceededException) OrigErr Uses

func (s *LimitExceededException) OrigErr() error

OrigErr always returns nil, satisfies awserr.Error interface.

func (*LimitExceededException) RequestID Uses

func (s *LimitExceededException) RequestID() string

RequestID returns the service's response RequestID for request.

func (*LimitExceededException) StatusCode Uses

func (s *LimitExceededException) StatusCode() int

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

func (LimitExceededException) String Uses

func (s LimitExceededException) String() string

String returns the string representation

type ListTagsForResourceInput Uses

type ListTagsForResourceInput struct {

    // The resource ARN.
    //
    // ResourceArn is a required field
    ResourceArn *string `locationName:"resourceArn" min:"1" type:"string" required:"true"`
    // contains filtered or unexported fields
}

func (ListTagsForResourceInput) GoString Uses

func (s ListTagsForResourceInput) GoString() string

GoString returns the string representation

func (*ListTagsForResourceInput) SetResourceArn Uses

func (s *ListTagsForResourceInput) SetResourceArn(v string) *ListTagsForResourceInput

SetResourceArn sets the ResourceArn field's value.

func (ListTagsForResourceInput) String Uses

func (s ListTagsForResourceInput) String() string

String returns the string representation

func (*ListTagsForResourceInput) Validate Uses

func (s *ListTagsForResourceInput) Validate() error

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

type ListTagsForResourceOutput Uses

type ListTagsForResourceOutput struct {

    // The tags for the specified resource.
    Tags []*Tag `locationName:"tags" min:"1" type:"list"`
    // contains filtered or unexported fields
}

func (ListTagsForResourceOutput) GoString Uses

func (s ListTagsForResourceOutput) GoString() string

GoString returns the string representation

func (*ListTagsForResourceOutput) SetTags Uses

func (s *ListTagsForResourceOutput) SetTags(v []*Tag) *ListTagsForResourceOutput

SetTags sets the Tags field's value.

func (ListTagsForResourceOutput) String Uses

func (s ListTagsForResourceOutput) String() string

String returns the string representation

type ListTunnelsInput Uses

type ListTunnelsInput struct {

    // The maximum number of results to return at once.
    MaxResults *int64 `locationName:"maxResults" min:"1" type:"integer"`

    // A token to retrieve the next set of results.
    NextToken *string `locationName:"nextToken" type:"string"`

    // The name of the IoT thing associated with the destination device.
    ThingName *string `locationName:"thingName" min:"1" type:"string"`
    // contains filtered or unexported fields
}

func (ListTunnelsInput) GoString Uses

func (s ListTunnelsInput) GoString() string

GoString returns the string representation

func (*ListTunnelsInput) SetMaxResults Uses

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

SetMaxResults sets the MaxResults field's value.

func (*ListTunnelsInput) SetNextToken Uses

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

SetNextToken sets the NextToken field's value.

func (*ListTunnelsInput) SetThingName Uses

func (s *ListTunnelsInput) SetThingName(v string) *ListTunnelsInput

SetThingName sets the ThingName field's value.

func (ListTunnelsInput) String Uses

func (s ListTunnelsInput) String() string

String returns the string representation

func (*ListTunnelsInput) Validate Uses

func (s *ListTunnelsInput) Validate() error

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

type ListTunnelsOutput Uses

type ListTunnelsOutput struct {

    // A token to used to retrieve the next set of results.
    NextToken *string `locationName:"nextToken" type:"string"`

    // A short description of the tunnels in an AWS account.
    TunnelSummaries []*TunnelSummary `locationName:"tunnelSummaries" type:"list"`
    // contains filtered or unexported fields
}

func (ListTunnelsOutput) GoString Uses

func (s ListTunnelsOutput) GoString() string

GoString returns the string representation

func (*ListTunnelsOutput) SetNextToken Uses

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

SetNextToken sets the NextToken field's value.

func (*ListTunnelsOutput) SetTunnelSummaries Uses

func (s *ListTunnelsOutput) SetTunnelSummaries(v []*TunnelSummary) *ListTunnelsOutput

SetTunnelSummaries sets the TunnelSummaries field's value.

func (ListTunnelsOutput) String Uses

func (s ListTunnelsOutput) String() string

String returns the string representation

type OpenTunnelInput Uses

type OpenTunnelInput struct {

    // A short text description of the tunnel.
    Description *string `locationName:"description" type:"string"`

    // The destination configuration for the OpenTunnel request.
    DestinationConfig *DestinationConfig `locationName:"destinationConfig" type:"structure"`

    // A collection of tag metadata.
    Tags []*Tag `locationName:"tags" min:"1" type:"list"`

    // Timeout configuration for a tunnel.
    TimeoutConfig *TimeoutConfig `locationName:"timeoutConfig" type:"structure"`
    // contains filtered or unexported fields
}

func (OpenTunnelInput) GoString Uses

func (s OpenTunnelInput) GoString() string

GoString returns the string representation

func (*OpenTunnelInput) SetDescription Uses

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

SetDescription sets the Description field's value.

func (*OpenTunnelInput) SetDestinationConfig Uses

func (s *OpenTunnelInput) SetDestinationConfig(v *DestinationConfig) *OpenTunnelInput

SetDestinationConfig sets the DestinationConfig field's value.

func (*OpenTunnelInput) SetTags Uses

func (s *OpenTunnelInput) SetTags(v []*Tag) *OpenTunnelInput

SetTags sets the Tags field's value.

func (*OpenTunnelInput) SetTimeoutConfig Uses

func (s *OpenTunnelInput) SetTimeoutConfig(v *TimeoutConfig) *OpenTunnelInput

SetTimeoutConfig sets the TimeoutConfig field's value.

func (OpenTunnelInput) String Uses

func (s OpenTunnelInput) String() string

String returns the string representation

func (*OpenTunnelInput) Validate Uses

func (s *OpenTunnelInput) Validate() error

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

type OpenTunnelOutput Uses

type OpenTunnelOutput struct {

    // The access token the destination local proxy uses to connect to AWS IoT Secure
    // Tunneling.
    DestinationAccessToken *string `locationName:"destinationAccessToken" type:"string" sensitive:"true"`

    // The access token the source local proxy uses to connect to AWS IoT Secure
    // Tunneling.
    SourceAccessToken *string `locationName:"sourceAccessToken" type:"string" sensitive:"true"`

    // The Amazon Resource Name for the tunnel. The tunnel ARN format is arn:aws:tunnel:<region>:<account-id>:tunnel/<tunnel-id>
    TunnelArn *string `locationName:"tunnelArn" min:"1" type:"string"`

    // A unique alpha-numeric tunnel ID.
    TunnelId *string `locationName:"tunnelId" type:"string"`
    // contains filtered or unexported fields
}

func (OpenTunnelOutput) GoString Uses

func (s OpenTunnelOutput) GoString() string

GoString returns the string representation

func (*OpenTunnelOutput) SetDestinationAccessToken Uses

func (s *OpenTunnelOutput) SetDestinationAccessToken(v string) *OpenTunnelOutput

SetDestinationAccessToken sets the DestinationAccessToken field's value.

func (*OpenTunnelOutput) SetSourceAccessToken Uses

func (s *OpenTunnelOutput) SetSourceAccessToken(v string) *OpenTunnelOutput

SetSourceAccessToken sets the SourceAccessToken field's value.

func (*OpenTunnelOutput) SetTunnelArn Uses

func (s *OpenTunnelOutput) SetTunnelArn(v string) *OpenTunnelOutput

SetTunnelArn sets the TunnelArn field's value.

func (*OpenTunnelOutput) SetTunnelId Uses

func (s *OpenTunnelOutput) SetTunnelId(v string) *OpenTunnelOutput

SetTunnelId sets the TunnelId field's value.

func (OpenTunnelOutput) String Uses

func (s OpenTunnelOutput) String() string

String returns the string representation

type ResourceNotFoundException Uses

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

    Message_ *string `locationName:"message" type:"string"`
    // contains filtered or unexported fields
}

Thrown when an operation is attempted on a resource that does not exist.

func (*ResourceNotFoundException) Code Uses

func (s *ResourceNotFoundException) Code() string

Code returns the exception type name.

func (*ResourceNotFoundException) Error Uses

func (s *ResourceNotFoundException) Error() string

func (ResourceNotFoundException) GoString Uses

func (s ResourceNotFoundException) GoString() string

GoString returns the string representation

func (*ResourceNotFoundException) Message Uses

func (s *ResourceNotFoundException) Message() string

Message returns the exception's message.

func (*ResourceNotFoundException) OrigErr Uses

func (s *ResourceNotFoundException) OrigErr() error

OrigErr always returns nil, satisfies awserr.Error interface.

func (*ResourceNotFoundException) RequestID Uses

func (s *ResourceNotFoundException) RequestID() string

RequestID returns the service's response RequestID for request.

func (*ResourceNotFoundException) StatusCode Uses

func (s *ResourceNotFoundException) StatusCode() int

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

func (ResourceNotFoundException) String Uses

func (s ResourceNotFoundException) String() string

String returns the string representation

type Tag Uses

type Tag struct {

    // The key of the tag.
    //
    // Key is a required field
    Key *string `locationName:"key" min:"1" type:"string" required:"true"`

    // The value of the tag.
    //
    // Value is a required field
    Value *string `locationName:"value" type:"string" required:"true"`
    // contains filtered or unexported fields
}

An arbitary key/value pair used to add searchable metadata to secure tunnel resources.

func (Tag) GoString Uses

func (s Tag) GoString() string

GoString returns the string representation

func (*Tag) SetKey Uses

func (s *Tag) SetKey(v string) *Tag

SetKey sets the Key field's value.

func (*Tag) SetValue Uses

func (s *Tag) SetValue(v string) *Tag

SetValue sets the Value field's value.

func (Tag) String Uses

func (s Tag) String() string

String returns the string representation

func (*Tag) Validate Uses

func (s *Tag) Validate() error

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

type TagResourceInput Uses

type TagResourceInput struct {

    // The ARN of the resource.
    //
    // ResourceArn is a required field
    ResourceArn *string `locationName:"resourceArn" min:"1" type:"string" required:"true"`

    // The tags for the resource.
    //
    // Tags is a required field
    Tags []*Tag `locationName:"tags" min:"1" type:"list" required:"true"`
    // contains filtered or unexported fields
}

func (TagResourceInput) GoString Uses

func (s TagResourceInput) GoString() string

GoString returns the string representation

func (*TagResourceInput) SetResourceArn Uses

func (s *TagResourceInput) SetResourceArn(v string) *TagResourceInput

SetResourceArn sets the ResourceArn field's value.

func (*TagResourceInput) SetTags Uses

func (s *TagResourceInput) SetTags(v []*Tag) *TagResourceInput

SetTags sets the Tags field's value.

func (TagResourceInput) String Uses

func (s TagResourceInput) String() string

String returns the string representation

func (*TagResourceInput) Validate Uses

func (s *TagResourceInput) Validate() error

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

type TagResourceOutput Uses

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

func (TagResourceOutput) GoString Uses

func (s TagResourceOutput) GoString() string

GoString returns the string representation

func (TagResourceOutput) String Uses

func (s TagResourceOutput) String() string

String returns the string representation

type TimeoutConfig Uses

type TimeoutConfig struct {

    // The maximum amount of time (in minutes) a tunnel can remain open. If not
    // specified, maxLifetimeTimeoutMinutes defaults to 720 minutes. Valid values
    // are from 1 minute to 12 hours (720 minutes)
    MaxLifetimeTimeoutMinutes *int64 `locationName:"maxLifetimeTimeoutMinutes" min:"1" type:"integer"`
    // contains filtered or unexported fields
}

Tunnel timeout configuration.

func (TimeoutConfig) GoString Uses

func (s TimeoutConfig) GoString() string

GoString returns the string representation

func (*TimeoutConfig) SetMaxLifetimeTimeoutMinutes Uses

func (s *TimeoutConfig) SetMaxLifetimeTimeoutMinutes(v int64) *TimeoutConfig

SetMaxLifetimeTimeoutMinutes sets the MaxLifetimeTimeoutMinutes field's value.

func (TimeoutConfig) String Uses

func (s TimeoutConfig) String() string

String returns the string representation

func (*TimeoutConfig) Validate Uses

func (s *TimeoutConfig) Validate() error

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

type Tunnel Uses

type Tunnel struct {

    // The time when the tunnel was created.
    CreatedAt *time.Time `locationName:"createdAt" type:"timestamp"`

    // A description of the tunnel.
    Description *string `locationName:"description" type:"string"`

    // The destination configuration that specifies the thing name of the destination
    // device and a service name that the local proxy uses to connect to the destination
    // application.
    DestinationConfig *DestinationConfig `locationName:"destinationConfig" type:"structure"`

    // The connection state of the destination application.
    DestinationConnectionState *ConnectionState `locationName:"destinationConnectionState" type:"structure"`

    // The last time the tunnel was updated.
    LastUpdatedAt *time.Time `locationName:"lastUpdatedAt" type:"timestamp"`

    // The connection state of the source application.
    SourceConnectionState *ConnectionState `locationName:"sourceConnectionState" type:"structure"`

    // The status of a tunnel. Valid values are: Open and Closed.
    Status *string `locationName:"status" type:"string" enum:"TunnelStatus"`

    // A list of tag metadata associated with the secure tunnel.
    Tags []*Tag `locationName:"tags" min:"1" type:"list"`

    // Timeout configuration for the tunnel.
    TimeoutConfig *TimeoutConfig `locationName:"timeoutConfig" type:"structure"`

    // The Amazon Resource Name (ARN) of a tunnel. The tunnel ARN format is arn:aws:tunnel:<region>:<account-id>:tunnel/<tunnel-id>
    TunnelArn *string `locationName:"tunnelArn" min:"1" type:"string"`

    // A unique alpha-numeric ID that identifies a tunnel.
    TunnelId *string `locationName:"tunnelId" type:"string"`
    // contains filtered or unexported fields
}

A connection between a source computer and a destination device.

func (Tunnel) GoString Uses

func (s Tunnel) GoString() string

GoString returns the string representation

func (*Tunnel) SetCreatedAt Uses

func (s *Tunnel) SetCreatedAt(v time.Time) *Tunnel

SetCreatedAt sets the CreatedAt field's value.

func (*Tunnel) SetDescription Uses

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

SetDescription sets the Description field's value.

func (*Tunnel) SetDestinationConfig Uses

func (s *Tunnel) SetDestinationConfig(v *DestinationConfig) *Tunnel

SetDestinationConfig sets the DestinationConfig field's value.

func (*Tunnel) SetDestinationConnectionState Uses

func (s *Tunnel) SetDestinationConnectionState(v *ConnectionState) *Tunnel

SetDestinationConnectionState sets the DestinationConnectionState field's value.

func (*Tunnel) SetLastUpdatedAt Uses

func (s *Tunnel) SetLastUpdatedAt(v time.Time) *Tunnel

SetLastUpdatedAt sets the LastUpdatedAt field's value.

func (*Tunnel) SetSourceConnectionState Uses

func (s *Tunnel) SetSourceConnectionState(v *ConnectionState) *Tunnel

SetSourceConnectionState sets the SourceConnectionState field's value.

func (*Tunnel) SetStatus Uses

func (s *Tunnel) SetStatus(v string) *Tunnel

SetStatus sets the Status field's value.

func (*Tunnel) SetTags Uses

func (s *Tunnel) SetTags(v []*Tag) *Tunnel

SetTags sets the Tags field's value.

func (*Tunnel) SetTimeoutConfig Uses

func (s *Tunnel) SetTimeoutConfig(v *TimeoutConfig) *Tunnel

SetTimeoutConfig sets the TimeoutConfig field's value.

func (*Tunnel) SetTunnelArn Uses

func (s *Tunnel) SetTunnelArn(v string) *Tunnel

SetTunnelArn sets the TunnelArn field's value.

func (*Tunnel) SetTunnelId Uses

func (s *Tunnel) SetTunnelId(v string) *Tunnel

SetTunnelId sets the TunnelId field's value.

func (Tunnel) String Uses

func (s Tunnel) String() string

String returns the string representation

type TunnelSummary Uses

type TunnelSummary struct {

    // The time the tunnel was created.
    CreatedAt *time.Time `locationName:"createdAt" type:"timestamp"`

    // A description of the tunnel.
    Description *string `locationName:"description" type:"string"`

    // The time the tunnel was last updated.
    LastUpdatedAt *time.Time `locationName:"lastUpdatedAt" type:"timestamp"`

    // The status of a tunnel. Valid values are: Open and Closed.
    Status *string `locationName:"status" type:"string" enum:"TunnelStatus"`

    // The Amazon Resource Name of the tunnel. The tunnel ARN format is arn:aws:tunnel:<region>:<account-id>:tunnel/<tunnel-id>
    TunnelArn *string `locationName:"tunnelArn" min:"1" type:"string"`

    // The unique alpha-numeric identifier for the tunnel.
    TunnelId *string `locationName:"tunnelId" type:"string"`
    // contains filtered or unexported fields
}

Information about the tunnel.

func (TunnelSummary) GoString Uses

func (s TunnelSummary) GoString() string

GoString returns the string representation

func (*TunnelSummary) SetCreatedAt Uses

func (s *TunnelSummary) SetCreatedAt(v time.Time) *TunnelSummary

SetCreatedAt sets the CreatedAt field's value.

func (*TunnelSummary) SetDescription Uses

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

SetDescription sets the Description field's value.

func (*TunnelSummary) SetLastUpdatedAt Uses

func (s *TunnelSummary) SetLastUpdatedAt(v time.Time) *TunnelSummary

SetLastUpdatedAt sets the LastUpdatedAt field's value.

func (*TunnelSummary) SetStatus Uses

func (s *TunnelSummary) SetStatus(v string) *TunnelSummary

SetStatus sets the Status field's value.

func (*TunnelSummary) SetTunnelArn Uses

func (s *TunnelSummary) SetTunnelArn(v string) *TunnelSummary

SetTunnelArn sets the TunnelArn field's value.

func (*TunnelSummary) SetTunnelId Uses

func (s *TunnelSummary) SetTunnelId(v string) *TunnelSummary

SetTunnelId sets the TunnelId field's value.

func (TunnelSummary) String Uses

func (s TunnelSummary) String() string

String returns the string representation

type UntagResourceInput Uses

type UntagResourceInput struct {

    // The resource ARN.
    //
    // ResourceArn is a required field
    ResourceArn *string `locationName:"resourceArn" min:"1" type:"string" required:"true"`

    // The keys of the tags to remove.
    //
    // TagKeys is a required field
    TagKeys []*string `locationName:"tagKeys" type:"list" required:"true"`
    // contains filtered or unexported fields
}

func (UntagResourceInput) GoString Uses

func (s UntagResourceInput) GoString() string

GoString returns the string representation

func (*UntagResourceInput) SetResourceArn Uses

func (s *UntagResourceInput) SetResourceArn(v string) *UntagResourceInput

SetResourceArn sets the ResourceArn field's value.

func (*UntagResourceInput) SetTagKeys Uses

func (s *UntagResourceInput) SetTagKeys(v []*string) *UntagResourceInput

SetTagKeys sets the TagKeys field's value.

func (UntagResourceInput) String Uses

func (s UntagResourceInput) String() string

String returns the string representation

func (*UntagResourceInput) Validate Uses

func (s *UntagResourceInput) Validate() error

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

type UntagResourceOutput Uses

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

func (UntagResourceOutput) GoString Uses

func (s UntagResourceOutput) GoString() string

GoString returns the string representation

func (UntagResourceOutput) String Uses

func (s UntagResourceOutput) String() string

String returns the string representation

Directories

PathSynopsis
iotsecuretunnelingifacePackage iotsecuretunnelingiface provides an interface to enable mocking the AWS IoT Secure Tunneling service client for testing your code.

Package iotsecuretunneling imports 10 packages (graph) and is imported by 6 packages. Updated 2020-04-02. Refresh now. Tools for package owners.