restjsonservice

package
v0.23.0 Latest Latest
Warning

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

Go to latest
Published: May 28, 2020 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Overview

Package restjsonservice provides the client and types for making API requests to RESTJSONService.

See https://docs.aws.amazon.com/goto/WebAPI/RESTJSONService-0000-00-00 for more information on this service.

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

Using the Client

To use RESTJSONService 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 RESTJSONService client for more information on creating client for this service. https://docs.aws.amazon.com/sdk-for-go/api/service/restjsonservice/#New

Index

Constants

View Source
const (
	ServiceName = "RESTJSONService" // Service's name
	ServiceID   = "RESTJSONService" // Service's identifier
	EndpointsID = "restjsonservice" // Service's Endpoint identifier
)
View Source
const (

	// ErrCodeExceptionEvent2 for service response error code
	// "ExceptionEvent2".
	ErrCodeExceptionEvent2 = "ExceptionEvent2"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	*aws.Client
}

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

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

func New

func New(config aws.Config) *Client

New creates a new instance of the client from the provided Config.

Example:

// Create a client from just a config.
svc := restjsonservice.New(myConfig)

func (*Client) OtherOperationRequest

func (c *Client) OtherOperationRequest(input *OtherOperationInput) OtherOperationRequest

OtherOperationRequest returns a request value for making API operation for REST JSON Service.

// Example sending a request using OtherOperationRequest.
req := client.OtherOperationRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/RESTJSONService-0000-00-00/OtherOperation

type OtherOperationInput

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

func (OtherOperationInput) MarshalFields

func (s OtherOperationInput) MarshalFields(e protocol.FieldEncoder) error

MarshalFields encodes the AWS API shape using the passed in protocol encoder.

func (OtherOperationInput) String

func (s OtherOperationInput) String() string

String returns the string representation

type OtherOperationOutput

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

func (OtherOperationOutput) MarshalFields

func (s OtherOperationOutput) MarshalFields(e protocol.FieldEncoder) error

MarshalFields encodes the AWS API shape using the passed in protocol encoder.

func (OtherOperationOutput) String

func (s OtherOperationOutput) String() string

String returns the string representation

type OtherOperationRequest

type OtherOperationRequest struct {
	*aws.Request
	Input *OtherOperationInput
	Copy  func(*OtherOperationInput) OtherOperationRequest
}

OtherOperationRequest is the request type for the OtherOperation API operation.

func (OtherOperationRequest) Send

Send marshals and sends the OtherOperation API request.

type OtherOperationResponse

type OtherOperationResponse struct {
	*OtherOperationOutput
	// contains filtered or unexported fields
}

OtherOperationResponse is the response type for the OtherOperation API operation.

func (*OtherOperationResponse) SDKResponseMetdata

func (r *OtherOperationResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the OtherOperation request.

Directories

Path Synopsis
Package restjsonserviceiface provides an interface to enable mocking the REST JSON Service service client for testing your code.
Package restjsonserviceiface provides an interface to enable mocking the REST JSON Service service client for testing your code.

Jump to

Keyboard shortcuts

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