repo_name
stringlengths 1
52
| repo_creator
stringclasses 6
values | programming_language
stringclasses 4
values | code
stringlengths 0
9.68M
| num_lines
int64 1
234k
|
---|---|---|---|---|
session-manager-plugin | aws | Go | // +build go1.7
package jsonrpc
import (
"bytes"
"encoding/hex"
"io/ioutil"
"net/http"
"reflect"
"strings"
"testing"
"github.com/aws/aws-sdk-go/aws"
"github.com/aws/aws-sdk-go/aws/awserr"
"github.com/aws/aws-sdk-go/aws/request"
"github.com/aws/aws-sdk-go/private/protocol"
)
const unknownErrJSON = `{"__type":"UnknownError", "message":"error message", "something":123}`
const simpleErrJSON = `{"__type":"SimpleError", "message":"some message", "foo":123}`
const simpleCasedErrJSON = `{"__type":"SimpleError", "Message":"some message", "foo":123}`
type SimpleError struct {
_ struct{} `type:"structure"`
error
Message2 *string `type:"string" locationName:"message"`
Foo *int64 `type:"integer" locationName:"foo"`
}
const otherErrJSON = `{"__type":"OtherError", "message":"some message"}`
const complexCodeErrJSON = `{"__type":"foo.bar#OtherError", "message":"some message"}`
type OtherError struct {
_ struct{} `type:"structure"`
error
Message2 *string `type:"string" locationName:"message"`
}
const complexErrJSON = `{"__type":"ComplexError", "message":"some message", "foo": {"bar":"abc123", "baz":123}}`
type ComplexError struct {
_ struct{} `type:"structure"`
error
Message2 *string `type:"string" locationName:"message"`
Foo *ErrorNested `type:"structure" locationName:"foo"`
}
type ErrorNested struct {
_ struct{} `type:"structure"`
Bar *string `type:"string" locationName:"bar"`
Baz *int64 `type:"integer" locationName:"baz"`
}
func TestUnmarshalTypedError(t *testing.T) {
respMeta := protocol.ResponseMetadata{
StatusCode: 400,
RequestID: "abc123",
}
exceptions := map[string]func(protocol.ResponseMetadata) error{
"SimpleError": func(meta protocol.ResponseMetadata) error {
return &SimpleError{}
},
"OtherError": func(meta protocol.ResponseMetadata) error {
return &OtherError{}
},
"ComplexError": func(meta protocol.ResponseMetadata) error {
return &ComplexError{}
},
}
cases := map[string]struct {
Response *http.Response
Expect error
Err string
}{
"simple error": {
Response: &http.Response{
Header: http.Header{},
Body: ioutil.NopCloser(strings.NewReader(simpleErrJSON)),
},
Expect: &SimpleError{
Message2: aws.String("some message"),
Foo: aws.Int64(123),
},
},
"other error": {
Response: &http.Response{
Header: http.Header{},
Body: ioutil.NopCloser(strings.NewReader(otherErrJSON)),
},
Expect: &OtherError{
Message2: aws.String("some message"),
},
},
"other complex Code error": {
Response: &http.Response{
Header: http.Header{},
Body: ioutil.NopCloser(strings.NewReader(complexCodeErrJSON)),
},
Expect: &OtherError{
Message2: aws.String("some message"),
},
},
"complex error": {
Response: &http.Response{
Header: http.Header{},
Body: ioutil.NopCloser(strings.NewReader(complexErrJSON)),
},
Expect: &ComplexError{
Message2: aws.String("some message"),
Foo: &ErrorNested{
Bar: aws.String("abc123"),
Baz: aws.Int64(123),
},
},
},
"unknown error": {
Response: &http.Response{
Header: http.Header{},
Body: ioutil.NopCloser(strings.NewReader(unknownErrJSON)),
},
Expect: awserr.NewRequestFailure(
awserr.New("UnknownError", "error message", nil),
respMeta.StatusCode,
respMeta.RequestID,
),
},
"invalid error": {
Response: &http.Response{
StatusCode: 400,
Header: http.Header{},
Body: ioutil.NopCloser(strings.NewReader(`{`)),
},
Err: "failed decoding",
},
"mixed case fields": {
Response: &http.Response{
Header: http.Header{},
Body: ioutil.NopCloser(strings.NewReader(simpleCasedErrJSON)),
},
Expect: &SimpleError{
Message2: aws.String("some message"),
Foo: aws.Int64(123),
},
},
}
for name, c := range cases {
t.Run(name, func(t *testing.T) {
u := NewUnmarshalTypedError(exceptions)
v, err := u.UnmarshalError(c.Response, respMeta)
if len(c.Err) != 0 {
if err == nil {
t.Fatalf("expect error, got none")
}
if e, a := c.Err, err.Error(); !strings.Contains(a, e) {
t.Fatalf("expect %v in error, got %v", e, a)
}
} else if err != nil {
t.Fatalf("expect no error, got %v", err)
}
if e, a := c.Expect, v; !reflect.DeepEqual(e, a) {
t.Errorf("expect %+#v, got %#+v", e, a)
}
})
}
}
func TestUnmarshalError_SerializationError(t *testing.T) {
cases := map[string]struct {
Request *request.Request
ExpectMsg string
ExpectBytes []byte
}{
"empty body": {
Request: &request.Request{
Data: &struct{}{},
HTTPResponse: &http.Response{
StatusCode: 400,
Header: http.Header{
"X-Amzn-Requestid": []string{"abc123"},
},
Body: ioutil.NopCloser(
bytes.NewReader([]byte{}),
),
},
},
ExpectMsg: "error message missing",
},
"HTML body": {
Request: &request.Request{
Data: &struct{}{},
HTTPResponse: &http.Response{
StatusCode: 400,
Header: http.Header{
"X-Amzn-Requestid": []string{"abc123"},
},
Body: ioutil.NopCloser(
bytes.NewReader([]byte(`<html></html>`)),
),
},
},
ExpectBytes: []byte(`<html></html>`),
ExpectMsg: "failed decoding",
},
}
for name, c := range cases {
t.Run(name, func(t *testing.T) {
req := c.Request
UnmarshalError(req)
if req.Error == nil {
t.Fatal("expect error, got none")
}
aerr := req.Error.(awserr.RequestFailure)
if e, a := request.ErrCodeSerialization, aerr.Code(); e != a {
t.Errorf("expect %v, got %v", e, a)
}
uerr := aerr.OrigErr().(awserr.UnmarshalError)
if e, a := c.ExpectMsg, uerr.Message(); !strings.Contains(a, e) {
t.Errorf("Expect %q, in %q", e, a)
}
if e, a := c.ExpectBytes, uerr.Bytes(); !bytes.Equal(e, a) {
t.Errorf("expect:\n%v\nactual:\n%v", hex.Dump(e), hex.Dump(a))
}
})
}
}
| 240 |
session-manager-plugin | aws | Go | // Code generated by models/protocol_tests/generate.go. DO NOT EDIT.
package jsonrpc_test
import (
"bytes"
"encoding/json"
"encoding/xml"
"fmt"
"io"
"io/ioutil"
"net/http"
"net/url"
"reflect"
"testing"
"time"
"github.com/aws/aws-sdk-go/aws"
"github.com/aws/aws-sdk-go/aws/client"
"github.com/aws/aws-sdk-go/aws/client/metadata"
"github.com/aws/aws-sdk-go/aws/request"
"github.com/aws/aws-sdk-go/aws/signer/v4"
"github.com/aws/aws-sdk-go/awstesting"
"github.com/aws/aws-sdk-go/awstesting/unit"
"github.com/aws/aws-sdk-go/private/protocol"
"github.com/aws/aws-sdk-go/private/protocol/jsonrpc"
"github.com/aws/aws-sdk-go/private/protocol/xml/xmlutil"
"github.com/aws/aws-sdk-go/private/util"
)
var _ bytes.Buffer // always import bytes
var _ http.Request
var _ json.Marshaler
var _ time.Time
var _ xmlutil.XMLNode
var _ xml.Attr
var _ = ioutil.Discard
var _ = util.Trim("")
var _ = url.Values{}
var _ = io.EOF
var _ = aws.String
var _ = fmt.Println
var _ = reflect.Value{}
func init() {
protocol.RandReader = &awstesting.ZeroReader{}
}
// OutputService1ProtocolTest provides the API operation methods for making requests to
// . See this package's package overview docs
// for details on the service.
//
// OutputService1ProtocolTest methods are safe to use concurrently. It is not safe to
// modify mutate any of the struct's properties though.
type OutputService1ProtocolTest struct {
*client.Client
}
// New creates a new instance of the OutputService1ProtocolTest 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 OutputService1ProtocolTest client from just a session.
// svc := outputservice1protocoltest.New(mySession)
//
// // Create a OutputService1ProtocolTest client with additional configuration
// svc := outputservice1protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2"))
func NewOutputService1ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *OutputService1ProtocolTest {
c := p.ClientConfig("outputservice1protocoltest", cfgs...)
return newOutputService1ProtocolTestClient(*c.Config, c.Handlers, c.PartitionID, c.Endpoint, c.SigningRegion, c.SigningName)
}
// newClient creates, initializes and returns a new service client instance.
func newOutputService1ProtocolTestClient(cfg aws.Config, handlers request.Handlers, partitionID, endpoint, signingRegion, signingName string) *OutputService1ProtocolTest {
svc := &OutputService1ProtocolTest{
Client: client.New(
cfg,
metadata.ClientInfo{
ServiceName: "OutputService1ProtocolTest",
ServiceID: "OutputService1ProtocolTest",
SigningName: signingName,
SigningRegion: signingRegion,
PartitionID: partitionID,
Endpoint: endpoint,
APIVersion: "",
},
handlers,
),
}
// Handlers
svc.Handlers.Sign.PushBackNamed(v4.SignRequestHandler)
svc.Handlers.Build.PushBackNamed(jsonrpc.BuildHandler)
svc.Handlers.Unmarshal.PushBackNamed(jsonrpc.UnmarshalHandler)
svc.Handlers.UnmarshalMeta.PushBackNamed(jsonrpc.UnmarshalMetaHandler)
svc.Handlers.UnmarshalError.PushBackNamed(jsonrpc.UnmarshalErrorHandler)
return svc
}
// newRequest creates a new request for a OutputService1ProtocolTest operation and runs any
// custom request initialization.
func (c *OutputService1ProtocolTest) newRequest(op *request.Operation, params, data interface{}) *request.Request {
req := c.NewRequest(op, params, data)
return req
}
const opOutputService1TestCaseOperation1 = "OperationName"
// OutputService1TestCaseOperation1Request generates a "aws/request.Request" representing the
// client's request for the OutputService1TestCaseOperation1 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 OutputService1TestCaseOperation1 for more information on using the OutputService1TestCaseOperation1
// 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 OutputService1TestCaseOperation1Request method.
// req, resp := client.OutputService1TestCaseOperation1Request(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
func (c *OutputService1ProtocolTest) OutputService1TestCaseOperation1Request(input *OutputService1TestShapeOutputService1TestCaseOperation1Input) (req *request.Request, output *OutputService1TestShapeOutputService1TestCaseOperation1Output) {
op := &request.Operation{
Name: opOutputService1TestCaseOperation1,
HTTPPath: "/",
}
if input == nil {
input = &OutputService1TestShapeOutputService1TestCaseOperation1Input{}
}
output = &OutputService1TestShapeOutputService1TestCaseOperation1Output{}
req = c.newRequest(op, input, output)
return
}
// OutputService1TestCaseOperation1 API operation for .
//
// 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 's
// API operation OutputService1TestCaseOperation1 for usage and error information.
func (c *OutputService1ProtocolTest) OutputService1TestCaseOperation1(input *OutputService1TestShapeOutputService1TestCaseOperation1Input) (*OutputService1TestShapeOutputService1TestCaseOperation1Output, error) {
req, out := c.OutputService1TestCaseOperation1Request(input)
return out, req.Send()
}
// OutputService1TestCaseOperation1WithContext is the same as OutputService1TestCaseOperation1 with the addition of
// the ability to pass a context and additional request options.
//
// See OutputService1TestCaseOperation1 for details on how to use this API operation.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
func (c *OutputService1ProtocolTest) OutputService1TestCaseOperation1WithContext(ctx aws.Context, input *OutputService1TestShapeOutputService1TestCaseOperation1Input, opts ...request.Option) (*OutputService1TestShapeOutputService1TestCaseOperation1Output, error) {
req, out := c.OutputService1TestCaseOperation1Request(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
type OutputService1TestShapeOutputService1TestCaseOperation1Input struct {
_ struct{} `type:"structure"`
}
type OutputService1TestShapeOutputService1TestCaseOperation1Output struct {
_ struct{} `type:"structure"`
Char *string `type:"character"`
Double *float64 `type:"double"`
FalseBool *bool `type:"boolean"`
Float *float64 `type:"float"`
Long *int64 `type:"long"`
Num *int64 `type:"integer"`
Str *string `type:"string"`
TrueBool *bool `type:"boolean"`
}
// SetChar sets the Char field's value.
func (s *OutputService1TestShapeOutputService1TestCaseOperation1Output) SetChar(v string) *OutputService1TestShapeOutputService1TestCaseOperation1Output {
s.Char = &v
return s
}
// SetDouble sets the Double field's value.
func (s *OutputService1TestShapeOutputService1TestCaseOperation1Output) SetDouble(v float64) *OutputService1TestShapeOutputService1TestCaseOperation1Output {
s.Double = &v
return s
}
// SetFalseBool sets the FalseBool field's value.
func (s *OutputService1TestShapeOutputService1TestCaseOperation1Output) SetFalseBool(v bool) *OutputService1TestShapeOutputService1TestCaseOperation1Output {
s.FalseBool = &v
return s
}
// SetFloat sets the Float field's value.
func (s *OutputService1TestShapeOutputService1TestCaseOperation1Output) SetFloat(v float64) *OutputService1TestShapeOutputService1TestCaseOperation1Output {
s.Float = &v
return s
}
// SetLong sets the Long field's value.
func (s *OutputService1TestShapeOutputService1TestCaseOperation1Output) SetLong(v int64) *OutputService1TestShapeOutputService1TestCaseOperation1Output {
s.Long = &v
return s
}
// SetNum sets the Num field's value.
func (s *OutputService1TestShapeOutputService1TestCaseOperation1Output) SetNum(v int64) *OutputService1TestShapeOutputService1TestCaseOperation1Output {
s.Num = &v
return s
}
// SetStr sets the Str field's value.
func (s *OutputService1TestShapeOutputService1TestCaseOperation1Output) SetStr(v string) *OutputService1TestShapeOutputService1TestCaseOperation1Output {
s.Str = &v
return s
}
// SetTrueBool sets the TrueBool field's value.
func (s *OutputService1TestShapeOutputService1TestCaseOperation1Output) SetTrueBool(v bool) *OutputService1TestShapeOutputService1TestCaseOperation1Output {
s.TrueBool = &v
return s
}
// OutputService2ProtocolTest provides the API operation methods for making requests to
// . See this package's package overview docs
// for details on the service.
//
// OutputService2ProtocolTest methods are safe to use concurrently. It is not safe to
// modify mutate any of the struct's properties though.
type OutputService2ProtocolTest struct {
*client.Client
}
// New creates a new instance of the OutputService2ProtocolTest 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 OutputService2ProtocolTest client from just a session.
// svc := outputservice2protocoltest.New(mySession)
//
// // Create a OutputService2ProtocolTest client with additional configuration
// svc := outputservice2protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2"))
func NewOutputService2ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *OutputService2ProtocolTest {
c := p.ClientConfig("outputservice2protocoltest", cfgs...)
return newOutputService2ProtocolTestClient(*c.Config, c.Handlers, c.PartitionID, c.Endpoint, c.SigningRegion, c.SigningName)
}
// newClient creates, initializes and returns a new service client instance.
func newOutputService2ProtocolTestClient(cfg aws.Config, handlers request.Handlers, partitionID, endpoint, signingRegion, signingName string) *OutputService2ProtocolTest {
svc := &OutputService2ProtocolTest{
Client: client.New(
cfg,
metadata.ClientInfo{
ServiceName: "OutputService2ProtocolTest",
ServiceID: "OutputService2ProtocolTest",
SigningName: signingName,
SigningRegion: signingRegion,
PartitionID: partitionID,
Endpoint: endpoint,
APIVersion: "",
},
handlers,
),
}
// Handlers
svc.Handlers.Sign.PushBackNamed(v4.SignRequestHandler)
svc.Handlers.Build.PushBackNamed(jsonrpc.BuildHandler)
svc.Handlers.Unmarshal.PushBackNamed(jsonrpc.UnmarshalHandler)
svc.Handlers.UnmarshalMeta.PushBackNamed(jsonrpc.UnmarshalMetaHandler)
svc.Handlers.UnmarshalError.PushBackNamed(jsonrpc.UnmarshalErrorHandler)
return svc
}
// newRequest creates a new request for a OutputService2ProtocolTest operation and runs any
// custom request initialization.
func (c *OutputService2ProtocolTest) newRequest(op *request.Operation, params, data interface{}) *request.Request {
req := c.NewRequest(op, params, data)
return req
}
const opOutputService2TestCaseOperation1 = "OperationName"
// OutputService2TestCaseOperation1Request generates a "aws/request.Request" representing the
// client's request for the OutputService2TestCaseOperation1 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 OutputService2TestCaseOperation1 for more information on using the OutputService2TestCaseOperation1
// 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 OutputService2TestCaseOperation1Request method.
// req, resp := client.OutputService2TestCaseOperation1Request(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
func (c *OutputService2ProtocolTest) OutputService2TestCaseOperation1Request(input *OutputService2TestShapeOutputService2TestCaseOperation1Input) (req *request.Request, output *OutputService2TestShapeOutputService2TestCaseOperation1Output) {
op := &request.Operation{
Name: opOutputService2TestCaseOperation1,
HTTPPath: "/",
}
if input == nil {
input = &OutputService2TestShapeOutputService2TestCaseOperation1Input{}
}
output = &OutputService2TestShapeOutputService2TestCaseOperation1Output{}
req = c.newRequest(op, input, output)
return
}
// OutputService2TestCaseOperation1 API operation for .
//
// 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 's
// API operation OutputService2TestCaseOperation1 for usage and error information.
func (c *OutputService2ProtocolTest) OutputService2TestCaseOperation1(input *OutputService2TestShapeOutputService2TestCaseOperation1Input) (*OutputService2TestShapeOutputService2TestCaseOperation1Output, error) {
req, out := c.OutputService2TestCaseOperation1Request(input)
return out, req.Send()
}
// OutputService2TestCaseOperation1WithContext is the same as OutputService2TestCaseOperation1 with the addition of
// the ability to pass a context and additional request options.
//
// See OutputService2TestCaseOperation1 for details on how to use this API operation.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
func (c *OutputService2ProtocolTest) OutputService2TestCaseOperation1WithContext(ctx aws.Context, input *OutputService2TestShapeOutputService2TestCaseOperation1Input, opts ...request.Option) (*OutputService2TestShapeOutputService2TestCaseOperation1Output, error) {
req, out := c.OutputService2TestCaseOperation1Request(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
type OutputService2TestShapeBlobContainer struct {
_ struct{} `type:"structure"`
// Foo is automatically base64 encoded/decoded by the SDK.
Foo []byte `locationName:"foo" type:"blob"`
}
// SetFoo sets the Foo field's value.
func (s *OutputService2TestShapeBlobContainer) SetFoo(v []byte) *OutputService2TestShapeBlobContainer {
s.Foo = v
return s
}
type OutputService2TestShapeOutputService2TestCaseOperation1Input struct {
_ struct{} `type:"structure"`
}
type OutputService2TestShapeOutputService2TestCaseOperation1Output struct {
_ struct{} `type:"structure"`
// BlobMember is automatically base64 encoded/decoded by the SDK.
BlobMember []byte `type:"blob"`
StructMember *OutputService2TestShapeBlobContainer `type:"structure"`
}
// SetBlobMember sets the BlobMember field's value.
func (s *OutputService2TestShapeOutputService2TestCaseOperation1Output) SetBlobMember(v []byte) *OutputService2TestShapeOutputService2TestCaseOperation1Output {
s.BlobMember = v
return s
}
// SetStructMember sets the StructMember field's value.
func (s *OutputService2TestShapeOutputService2TestCaseOperation1Output) SetStructMember(v *OutputService2TestShapeBlobContainer) *OutputService2TestShapeOutputService2TestCaseOperation1Output {
s.StructMember = v
return s
}
// OutputService3ProtocolTest provides the API operation methods for making requests to
// . See this package's package overview docs
// for details on the service.
//
// OutputService3ProtocolTest methods are safe to use concurrently. It is not safe to
// modify mutate any of the struct's properties though.
type OutputService3ProtocolTest struct {
*client.Client
}
// New creates a new instance of the OutputService3ProtocolTest 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 OutputService3ProtocolTest client from just a session.
// svc := outputservice3protocoltest.New(mySession)
//
// // Create a OutputService3ProtocolTest client with additional configuration
// svc := outputservice3protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2"))
func NewOutputService3ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *OutputService3ProtocolTest {
c := p.ClientConfig("outputservice3protocoltest", cfgs...)
return newOutputService3ProtocolTestClient(*c.Config, c.Handlers, c.PartitionID, c.Endpoint, c.SigningRegion, c.SigningName)
}
// newClient creates, initializes and returns a new service client instance.
func newOutputService3ProtocolTestClient(cfg aws.Config, handlers request.Handlers, partitionID, endpoint, signingRegion, signingName string) *OutputService3ProtocolTest {
svc := &OutputService3ProtocolTest{
Client: client.New(
cfg,
metadata.ClientInfo{
ServiceName: "OutputService3ProtocolTest",
ServiceID: "OutputService3ProtocolTest",
SigningName: signingName,
SigningRegion: signingRegion,
PartitionID: partitionID,
Endpoint: endpoint,
APIVersion: "",
},
handlers,
),
}
// Handlers
svc.Handlers.Sign.PushBackNamed(v4.SignRequestHandler)
svc.Handlers.Build.PushBackNamed(jsonrpc.BuildHandler)
svc.Handlers.Unmarshal.PushBackNamed(jsonrpc.UnmarshalHandler)
svc.Handlers.UnmarshalMeta.PushBackNamed(jsonrpc.UnmarshalMetaHandler)
svc.Handlers.UnmarshalError.PushBackNamed(jsonrpc.UnmarshalErrorHandler)
return svc
}
// newRequest creates a new request for a OutputService3ProtocolTest operation and runs any
// custom request initialization.
func (c *OutputService3ProtocolTest) newRequest(op *request.Operation, params, data interface{}) *request.Request {
req := c.NewRequest(op, params, data)
return req
}
const opOutputService3TestCaseOperation1 = "OperationName"
// OutputService3TestCaseOperation1Request generates a "aws/request.Request" representing the
// client's request for the OutputService3TestCaseOperation1 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 OutputService3TestCaseOperation1 for more information on using the OutputService3TestCaseOperation1
// 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 OutputService3TestCaseOperation1Request method.
// req, resp := client.OutputService3TestCaseOperation1Request(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
func (c *OutputService3ProtocolTest) OutputService3TestCaseOperation1Request(input *OutputService3TestShapeOutputService3TestCaseOperation1Input) (req *request.Request, output *OutputService3TestShapeOutputService3TestCaseOperation1Output) {
op := &request.Operation{
Name: opOutputService3TestCaseOperation1,
HTTPPath: "/",
}
if input == nil {
input = &OutputService3TestShapeOutputService3TestCaseOperation1Input{}
}
output = &OutputService3TestShapeOutputService3TestCaseOperation1Output{}
req = c.newRequest(op, input, output)
return
}
// OutputService3TestCaseOperation1 API operation for .
//
// 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 's
// API operation OutputService3TestCaseOperation1 for usage and error information.
func (c *OutputService3ProtocolTest) OutputService3TestCaseOperation1(input *OutputService3TestShapeOutputService3TestCaseOperation1Input) (*OutputService3TestShapeOutputService3TestCaseOperation1Output, error) {
req, out := c.OutputService3TestCaseOperation1Request(input)
return out, req.Send()
}
// OutputService3TestCaseOperation1WithContext is the same as OutputService3TestCaseOperation1 with the addition of
// the ability to pass a context and additional request options.
//
// See OutputService3TestCaseOperation1 for details on how to use this API operation.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
func (c *OutputService3ProtocolTest) OutputService3TestCaseOperation1WithContext(ctx aws.Context, input *OutputService3TestShapeOutputService3TestCaseOperation1Input, opts ...request.Option) (*OutputService3TestShapeOutputService3TestCaseOperation1Output, error) {
req, out := c.OutputService3TestCaseOperation1Request(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
type OutputService3TestShapeOutputService3TestCaseOperation1Input struct {
_ struct{} `type:"structure"`
}
type OutputService3TestShapeOutputService3TestCaseOperation1Output struct {
_ struct{} `type:"structure"`
StructMember *OutputService3TestShapeTimeContainer `type:"structure"`
TimeArg *time.Time `type:"timestamp"`
TimeCustom *time.Time `type:"timestamp" timestampFormat:"rfc822"`
TimeFormat *time.Time `type:"timestamp" timestampFormat:"iso8601"`
}
// SetStructMember sets the StructMember field's value.
func (s *OutputService3TestShapeOutputService3TestCaseOperation1Output) SetStructMember(v *OutputService3TestShapeTimeContainer) *OutputService3TestShapeOutputService3TestCaseOperation1Output {
s.StructMember = v
return s
}
// SetTimeArg sets the TimeArg field's value.
func (s *OutputService3TestShapeOutputService3TestCaseOperation1Output) SetTimeArg(v time.Time) *OutputService3TestShapeOutputService3TestCaseOperation1Output {
s.TimeArg = &v
return s
}
// SetTimeCustom sets the TimeCustom field's value.
func (s *OutputService3TestShapeOutputService3TestCaseOperation1Output) SetTimeCustom(v time.Time) *OutputService3TestShapeOutputService3TestCaseOperation1Output {
s.TimeCustom = &v
return s
}
// SetTimeFormat sets the TimeFormat field's value.
func (s *OutputService3TestShapeOutputService3TestCaseOperation1Output) SetTimeFormat(v time.Time) *OutputService3TestShapeOutputService3TestCaseOperation1Output {
s.TimeFormat = &v
return s
}
type OutputService3TestShapeTimeContainer struct {
_ struct{} `type:"structure"`
Bar *time.Time `locationName:"bar" type:"timestamp" timestampFormat:"iso8601"`
Foo *time.Time `locationName:"foo" type:"timestamp"`
}
// SetBar sets the Bar field's value.
func (s *OutputService3TestShapeTimeContainer) SetBar(v time.Time) *OutputService3TestShapeTimeContainer {
s.Bar = &v
return s
}
// SetFoo sets the Foo field's value.
func (s *OutputService3TestShapeTimeContainer) SetFoo(v time.Time) *OutputService3TestShapeTimeContainer {
s.Foo = &v
return s
}
// OutputService4ProtocolTest provides the API operation methods for making requests to
// . See this package's package overview docs
// for details on the service.
//
// OutputService4ProtocolTest methods are safe to use concurrently. It is not safe to
// modify mutate any of the struct's properties though.
type OutputService4ProtocolTest struct {
*client.Client
}
// New creates a new instance of the OutputService4ProtocolTest 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 OutputService4ProtocolTest client from just a session.
// svc := outputservice4protocoltest.New(mySession)
//
// // Create a OutputService4ProtocolTest client with additional configuration
// svc := outputservice4protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2"))
func NewOutputService4ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *OutputService4ProtocolTest {
c := p.ClientConfig("outputservice4protocoltest", cfgs...)
return newOutputService4ProtocolTestClient(*c.Config, c.Handlers, c.PartitionID, c.Endpoint, c.SigningRegion, c.SigningName)
}
// newClient creates, initializes and returns a new service client instance.
func newOutputService4ProtocolTestClient(cfg aws.Config, handlers request.Handlers, partitionID, endpoint, signingRegion, signingName string) *OutputService4ProtocolTest {
svc := &OutputService4ProtocolTest{
Client: client.New(
cfg,
metadata.ClientInfo{
ServiceName: "OutputService4ProtocolTest",
ServiceID: "OutputService4ProtocolTest",
SigningName: signingName,
SigningRegion: signingRegion,
PartitionID: partitionID,
Endpoint: endpoint,
APIVersion: "",
},
handlers,
),
}
// Handlers
svc.Handlers.Sign.PushBackNamed(v4.SignRequestHandler)
svc.Handlers.Build.PushBackNamed(jsonrpc.BuildHandler)
svc.Handlers.Unmarshal.PushBackNamed(jsonrpc.UnmarshalHandler)
svc.Handlers.UnmarshalMeta.PushBackNamed(jsonrpc.UnmarshalMetaHandler)
svc.Handlers.UnmarshalError.PushBackNamed(jsonrpc.UnmarshalErrorHandler)
return svc
}
// newRequest creates a new request for a OutputService4ProtocolTest operation and runs any
// custom request initialization.
func (c *OutputService4ProtocolTest) newRequest(op *request.Operation, params, data interface{}) *request.Request {
req := c.NewRequest(op, params, data)
return req
}
const opOutputService4TestCaseOperation1 = "OperationName"
// OutputService4TestCaseOperation1Request generates a "aws/request.Request" representing the
// client's request for the OutputService4TestCaseOperation1 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 OutputService4TestCaseOperation1 for more information on using the OutputService4TestCaseOperation1
// 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 OutputService4TestCaseOperation1Request method.
// req, resp := client.OutputService4TestCaseOperation1Request(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
func (c *OutputService4ProtocolTest) OutputService4TestCaseOperation1Request(input *OutputService4TestShapeOutputService4TestCaseOperation1Input) (req *request.Request, output *OutputService4TestShapeOutputService4TestCaseOperation1Output) {
op := &request.Operation{
Name: opOutputService4TestCaseOperation1,
HTTPPath: "/",
}
if input == nil {
input = &OutputService4TestShapeOutputService4TestCaseOperation1Input{}
}
output = &OutputService4TestShapeOutputService4TestCaseOperation1Output{}
req = c.newRequest(op, input, output)
return
}
// OutputService4TestCaseOperation1 API operation for .
//
// 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 's
// API operation OutputService4TestCaseOperation1 for usage and error information.
func (c *OutputService4ProtocolTest) OutputService4TestCaseOperation1(input *OutputService4TestShapeOutputService4TestCaseOperation1Input) (*OutputService4TestShapeOutputService4TestCaseOperation1Output, error) {
req, out := c.OutputService4TestCaseOperation1Request(input)
return out, req.Send()
}
// OutputService4TestCaseOperation1WithContext is the same as OutputService4TestCaseOperation1 with the addition of
// the ability to pass a context and additional request options.
//
// See OutputService4TestCaseOperation1 for details on how to use this API operation.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
func (c *OutputService4ProtocolTest) OutputService4TestCaseOperation1WithContext(ctx aws.Context, input *OutputService4TestShapeOutputService4TestCaseOperation1Input, opts ...request.Option) (*OutputService4TestShapeOutputService4TestCaseOperation1Output, error) {
req, out := c.OutputService4TestCaseOperation1Request(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
const opOutputService4TestCaseOperation2 = "OperationName"
// OutputService4TestCaseOperation2Request generates a "aws/request.Request" representing the
// client's request for the OutputService4TestCaseOperation2 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 OutputService4TestCaseOperation2 for more information on using the OutputService4TestCaseOperation2
// 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 OutputService4TestCaseOperation2Request method.
// req, resp := client.OutputService4TestCaseOperation2Request(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
func (c *OutputService4ProtocolTest) OutputService4TestCaseOperation2Request(input *OutputService4TestShapeOutputService4TestCaseOperation2Input) (req *request.Request, output *OutputService4TestShapeOutputService4TestCaseOperation2Output) {
op := &request.Operation{
Name: opOutputService4TestCaseOperation2,
HTTPPath: "/",
}
if input == nil {
input = &OutputService4TestShapeOutputService4TestCaseOperation2Input{}
}
output = &OutputService4TestShapeOutputService4TestCaseOperation2Output{}
req = c.newRequest(op, input, output)
return
}
// OutputService4TestCaseOperation2 API operation for .
//
// 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 's
// API operation OutputService4TestCaseOperation2 for usage and error information.
func (c *OutputService4ProtocolTest) OutputService4TestCaseOperation2(input *OutputService4TestShapeOutputService4TestCaseOperation2Input) (*OutputService4TestShapeOutputService4TestCaseOperation2Output, error) {
req, out := c.OutputService4TestCaseOperation2Request(input)
return out, req.Send()
}
// OutputService4TestCaseOperation2WithContext is the same as OutputService4TestCaseOperation2 with the addition of
// the ability to pass a context and additional request options.
//
// See OutputService4TestCaseOperation2 for details on how to use this API operation.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
func (c *OutputService4ProtocolTest) OutputService4TestCaseOperation2WithContext(ctx aws.Context, input *OutputService4TestShapeOutputService4TestCaseOperation2Input, opts ...request.Option) (*OutputService4TestShapeOutputService4TestCaseOperation2Output, error) {
req, out := c.OutputService4TestCaseOperation2Request(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
type OutputService4TestShapeOutputService4TestCaseOperation1Input struct {
_ struct{} `type:"structure"`
}
type OutputService4TestShapeOutputService4TestCaseOperation1Output struct {
_ struct{} `type:"structure"`
ListMember []*string `type:"list"`
ListMemberMap []map[string]*string `type:"list"`
ListMemberStruct []*OutputService4TestShapeStructType `type:"list"`
}
// SetListMember sets the ListMember field's value.
func (s *OutputService4TestShapeOutputService4TestCaseOperation1Output) SetListMember(v []*string) *OutputService4TestShapeOutputService4TestCaseOperation1Output {
s.ListMember = v
return s
}
// SetListMemberMap sets the ListMemberMap field's value.
func (s *OutputService4TestShapeOutputService4TestCaseOperation1Output) SetListMemberMap(v []map[string]*string) *OutputService4TestShapeOutputService4TestCaseOperation1Output {
s.ListMemberMap = v
return s
}
// SetListMemberStruct sets the ListMemberStruct field's value.
func (s *OutputService4TestShapeOutputService4TestCaseOperation1Output) SetListMemberStruct(v []*OutputService4TestShapeStructType) *OutputService4TestShapeOutputService4TestCaseOperation1Output {
s.ListMemberStruct = v
return s
}
type OutputService4TestShapeOutputService4TestCaseOperation2Input struct {
_ struct{} `type:"structure"`
}
type OutputService4TestShapeOutputService4TestCaseOperation2Output struct {
_ struct{} `type:"structure"`
ListMember []*string `type:"list"`
ListMemberMap []map[string]*string `type:"list"`
ListMemberStruct []*OutputService4TestShapeStructType `type:"list"`
}
// SetListMember sets the ListMember field's value.
func (s *OutputService4TestShapeOutputService4TestCaseOperation2Output) SetListMember(v []*string) *OutputService4TestShapeOutputService4TestCaseOperation2Output {
s.ListMember = v
return s
}
// SetListMemberMap sets the ListMemberMap field's value.
func (s *OutputService4TestShapeOutputService4TestCaseOperation2Output) SetListMemberMap(v []map[string]*string) *OutputService4TestShapeOutputService4TestCaseOperation2Output {
s.ListMemberMap = v
return s
}
// SetListMemberStruct sets the ListMemberStruct field's value.
func (s *OutputService4TestShapeOutputService4TestCaseOperation2Output) SetListMemberStruct(v []*OutputService4TestShapeStructType) *OutputService4TestShapeOutputService4TestCaseOperation2Output {
s.ListMemberStruct = v
return s
}
type OutputService4TestShapeStructType struct {
_ struct{} `type:"structure"`
}
// OutputService5ProtocolTest provides the API operation methods for making requests to
// . See this package's package overview docs
// for details on the service.
//
// OutputService5ProtocolTest methods are safe to use concurrently. It is not safe to
// modify mutate any of the struct's properties though.
type OutputService5ProtocolTest struct {
*client.Client
}
// New creates a new instance of the OutputService5ProtocolTest 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 OutputService5ProtocolTest client from just a session.
// svc := outputservice5protocoltest.New(mySession)
//
// // Create a OutputService5ProtocolTest client with additional configuration
// svc := outputservice5protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2"))
func NewOutputService5ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *OutputService5ProtocolTest {
c := p.ClientConfig("outputservice5protocoltest", cfgs...)
return newOutputService5ProtocolTestClient(*c.Config, c.Handlers, c.PartitionID, c.Endpoint, c.SigningRegion, c.SigningName)
}
// newClient creates, initializes and returns a new service client instance.
func newOutputService5ProtocolTestClient(cfg aws.Config, handlers request.Handlers, partitionID, endpoint, signingRegion, signingName string) *OutputService5ProtocolTest {
svc := &OutputService5ProtocolTest{
Client: client.New(
cfg,
metadata.ClientInfo{
ServiceName: "OutputService5ProtocolTest",
ServiceID: "OutputService5ProtocolTest",
SigningName: signingName,
SigningRegion: signingRegion,
PartitionID: partitionID,
Endpoint: endpoint,
APIVersion: "",
},
handlers,
),
}
// Handlers
svc.Handlers.Sign.PushBackNamed(v4.SignRequestHandler)
svc.Handlers.Build.PushBackNamed(jsonrpc.BuildHandler)
svc.Handlers.Unmarshal.PushBackNamed(jsonrpc.UnmarshalHandler)
svc.Handlers.UnmarshalMeta.PushBackNamed(jsonrpc.UnmarshalMetaHandler)
svc.Handlers.UnmarshalError.PushBackNamed(jsonrpc.UnmarshalErrorHandler)
return svc
}
// newRequest creates a new request for a OutputService5ProtocolTest operation and runs any
// custom request initialization.
func (c *OutputService5ProtocolTest) newRequest(op *request.Operation, params, data interface{}) *request.Request {
req := c.NewRequest(op, params, data)
return req
}
const opOutputService5TestCaseOperation1 = "OperationName"
// OutputService5TestCaseOperation1Request generates a "aws/request.Request" representing the
// client's request for the OutputService5TestCaseOperation1 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 OutputService5TestCaseOperation1 for more information on using the OutputService5TestCaseOperation1
// 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 OutputService5TestCaseOperation1Request method.
// req, resp := client.OutputService5TestCaseOperation1Request(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
func (c *OutputService5ProtocolTest) OutputService5TestCaseOperation1Request(input *OutputService5TestShapeOutputService5TestCaseOperation1Input) (req *request.Request, output *OutputService5TestShapeOutputService5TestCaseOperation1Output) {
op := &request.Operation{
Name: opOutputService5TestCaseOperation1,
HTTPPath: "/",
}
if input == nil {
input = &OutputService5TestShapeOutputService5TestCaseOperation1Input{}
}
output = &OutputService5TestShapeOutputService5TestCaseOperation1Output{}
req = c.newRequest(op, input, output)
return
}
// OutputService5TestCaseOperation1 API operation for .
//
// 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 's
// API operation OutputService5TestCaseOperation1 for usage and error information.
func (c *OutputService5ProtocolTest) OutputService5TestCaseOperation1(input *OutputService5TestShapeOutputService5TestCaseOperation1Input) (*OutputService5TestShapeOutputService5TestCaseOperation1Output, error) {
req, out := c.OutputService5TestCaseOperation1Request(input)
return out, req.Send()
}
// OutputService5TestCaseOperation1WithContext is the same as OutputService5TestCaseOperation1 with the addition of
// the ability to pass a context and additional request options.
//
// See OutputService5TestCaseOperation1 for details on how to use this API operation.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
func (c *OutputService5ProtocolTest) OutputService5TestCaseOperation1WithContext(ctx aws.Context, input *OutputService5TestShapeOutputService5TestCaseOperation1Input, opts ...request.Option) (*OutputService5TestShapeOutputService5TestCaseOperation1Output, error) {
req, out := c.OutputService5TestCaseOperation1Request(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
type OutputService5TestShapeOutputService5TestCaseOperation1Input struct {
_ struct{} `type:"structure"`
}
type OutputService5TestShapeOutputService5TestCaseOperation1Output struct {
_ struct{} `type:"structure"`
MapMember map[string][]*int64 `type:"map"`
}
// SetMapMember sets the MapMember field's value.
func (s *OutputService5TestShapeOutputService5TestCaseOperation1Output) SetMapMember(v map[string][]*int64) *OutputService5TestShapeOutputService5TestCaseOperation1Output {
s.MapMember = v
return s
}
// OutputService6ProtocolTest provides the API operation methods for making requests to
// . See this package's package overview docs
// for details on the service.
//
// OutputService6ProtocolTest methods are safe to use concurrently. It is not safe to
// modify mutate any of the struct's properties though.
type OutputService6ProtocolTest struct {
*client.Client
}
// New creates a new instance of the OutputService6ProtocolTest 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 OutputService6ProtocolTest client from just a session.
// svc := outputservice6protocoltest.New(mySession)
//
// // Create a OutputService6ProtocolTest client with additional configuration
// svc := outputservice6protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2"))
func NewOutputService6ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *OutputService6ProtocolTest {
c := p.ClientConfig("outputservice6protocoltest", cfgs...)
return newOutputService6ProtocolTestClient(*c.Config, c.Handlers, c.PartitionID, c.Endpoint, c.SigningRegion, c.SigningName)
}
// newClient creates, initializes and returns a new service client instance.
func newOutputService6ProtocolTestClient(cfg aws.Config, handlers request.Handlers, partitionID, endpoint, signingRegion, signingName string) *OutputService6ProtocolTest {
svc := &OutputService6ProtocolTest{
Client: client.New(
cfg,
metadata.ClientInfo{
ServiceName: "OutputService6ProtocolTest",
ServiceID: "OutputService6ProtocolTest",
SigningName: signingName,
SigningRegion: signingRegion,
PartitionID: partitionID,
Endpoint: endpoint,
APIVersion: "",
},
handlers,
),
}
// Handlers
svc.Handlers.Sign.PushBackNamed(v4.SignRequestHandler)
svc.Handlers.Build.PushBackNamed(jsonrpc.BuildHandler)
svc.Handlers.Unmarshal.PushBackNamed(jsonrpc.UnmarshalHandler)
svc.Handlers.UnmarshalMeta.PushBackNamed(jsonrpc.UnmarshalMetaHandler)
svc.Handlers.UnmarshalError.PushBackNamed(jsonrpc.UnmarshalErrorHandler)
return svc
}
// newRequest creates a new request for a OutputService6ProtocolTest operation and runs any
// custom request initialization.
func (c *OutputService6ProtocolTest) newRequest(op *request.Operation, params, data interface{}) *request.Request {
req := c.NewRequest(op, params, data)
return req
}
const opOutputService6TestCaseOperation1 = "OperationName"
// OutputService6TestCaseOperation1Request generates a "aws/request.Request" representing the
// client's request for the OutputService6TestCaseOperation1 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 OutputService6TestCaseOperation1 for more information on using the OutputService6TestCaseOperation1
// 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 OutputService6TestCaseOperation1Request method.
// req, resp := client.OutputService6TestCaseOperation1Request(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
func (c *OutputService6ProtocolTest) OutputService6TestCaseOperation1Request(input *OutputService6TestShapeOutputService6TestCaseOperation1Input) (req *request.Request, output *OutputService6TestShapeOutputService6TestCaseOperation1Output) {
op := &request.Operation{
Name: opOutputService6TestCaseOperation1,
HTTPPath: "/",
}
if input == nil {
input = &OutputService6TestShapeOutputService6TestCaseOperation1Input{}
}
output = &OutputService6TestShapeOutputService6TestCaseOperation1Output{}
req = c.newRequest(op, input, output)
return
}
// OutputService6TestCaseOperation1 API operation for .
//
// 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 's
// API operation OutputService6TestCaseOperation1 for usage and error information.
func (c *OutputService6ProtocolTest) OutputService6TestCaseOperation1(input *OutputService6TestShapeOutputService6TestCaseOperation1Input) (*OutputService6TestShapeOutputService6TestCaseOperation1Output, error) {
req, out := c.OutputService6TestCaseOperation1Request(input)
return out, req.Send()
}
// OutputService6TestCaseOperation1WithContext is the same as OutputService6TestCaseOperation1 with the addition of
// the ability to pass a context and additional request options.
//
// See OutputService6TestCaseOperation1 for details on how to use this API operation.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
func (c *OutputService6ProtocolTest) OutputService6TestCaseOperation1WithContext(ctx aws.Context, input *OutputService6TestShapeOutputService6TestCaseOperation1Input, opts ...request.Option) (*OutputService6TestShapeOutputService6TestCaseOperation1Output, error) {
req, out := c.OutputService6TestCaseOperation1Request(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
type OutputService6TestShapeOutputService6TestCaseOperation1Input struct {
_ struct{} `type:"structure"`
}
type OutputService6TestShapeOutputService6TestCaseOperation1Output struct {
_ struct{} `type:"structure"`
StrType *string `type:"string"`
}
// SetStrType sets the StrType field's value.
func (s *OutputService6TestShapeOutputService6TestCaseOperation1Output) SetStrType(v string) *OutputService6TestShapeOutputService6TestCaseOperation1Output {
s.StrType = &v
return s
}
// OutputService7ProtocolTest provides the API operation methods for making requests to
// . See this package's package overview docs
// for details on the service.
//
// OutputService7ProtocolTest methods are safe to use concurrently. It is not safe to
// modify mutate any of the struct's properties though.
type OutputService7ProtocolTest struct {
*client.Client
}
// New creates a new instance of the OutputService7ProtocolTest 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 OutputService7ProtocolTest client from just a session.
// svc := outputservice7protocoltest.New(mySession)
//
// // Create a OutputService7ProtocolTest client with additional configuration
// svc := outputservice7protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2"))
func NewOutputService7ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *OutputService7ProtocolTest {
c := p.ClientConfig("outputservice7protocoltest", cfgs...)
return newOutputService7ProtocolTestClient(*c.Config, c.Handlers, c.PartitionID, c.Endpoint, c.SigningRegion, c.SigningName)
}
// newClient creates, initializes and returns a new service client instance.
func newOutputService7ProtocolTestClient(cfg aws.Config, handlers request.Handlers, partitionID, endpoint, signingRegion, signingName string) *OutputService7ProtocolTest {
svc := &OutputService7ProtocolTest{
Client: client.New(
cfg,
metadata.ClientInfo{
ServiceName: "OutputService7ProtocolTest",
ServiceID: "OutputService7ProtocolTest",
SigningName: signingName,
SigningRegion: signingRegion,
PartitionID: partitionID,
Endpoint: endpoint,
APIVersion: "",
},
handlers,
),
}
// Handlers
svc.Handlers.Sign.PushBackNamed(v4.SignRequestHandler)
svc.Handlers.Build.PushBackNamed(jsonrpc.BuildHandler)
svc.Handlers.Unmarshal.PushBackNamed(jsonrpc.UnmarshalHandler)
svc.Handlers.UnmarshalMeta.PushBackNamed(jsonrpc.UnmarshalMetaHandler)
svc.Handlers.UnmarshalError.PushBackNamed(jsonrpc.UnmarshalErrorHandler)
return svc
}
// newRequest creates a new request for a OutputService7ProtocolTest operation and runs any
// custom request initialization.
func (c *OutputService7ProtocolTest) newRequest(op *request.Operation, params, data interface{}) *request.Request {
req := c.NewRequest(op, params, data)
return req
}
const opOutputService7TestCaseOperation1 = "OperationName"
// OutputService7TestCaseOperation1Request generates a "aws/request.Request" representing the
// client's request for the OutputService7TestCaseOperation1 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 OutputService7TestCaseOperation1 for more information on using the OutputService7TestCaseOperation1
// 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 OutputService7TestCaseOperation1Request method.
// req, resp := client.OutputService7TestCaseOperation1Request(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
func (c *OutputService7ProtocolTest) OutputService7TestCaseOperation1Request(input *OutputService7TestShapeOutputService7TestCaseOperation1Input) (req *request.Request, output *OutputService7TestShapeOutputService7TestCaseOperation1Output) {
op := &request.Operation{
Name: opOutputService7TestCaseOperation1,
HTTPPath: "/",
}
if input == nil {
input = &OutputService7TestShapeOutputService7TestCaseOperation1Input{}
}
output = &OutputService7TestShapeOutputService7TestCaseOperation1Output{}
req = c.newRequest(op, input, output)
return
}
// OutputService7TestCaseOperation1 API operation for .
//
// 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 's
// API operation OutputService7TestCaseOperation1 for usage and error information.
func (c *OutputService7ProtocolTest) OutputService7TestCaseOperation1(input *OutputService7TestShapeOutputService7TestCaseOperation1Input) (*OutputService7TestShapeOutputService7TestCaseOperation1Output, error) {
req, out := c.OutputService7TestCaseOperation1Request(input)
return out, req.Send()
}
// OutputService7TestCaseOperation1WithContext is the same as OutputService7TestCaseOperation1 with the addition of
// the ability to pass a context and additional request options.
//
// See OutputService7TestCaseOperation1 for details on how to use this API operation.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
func (c *OutputService7ProtocolTest) OutputService7TestCaseOperation1WithContext(ctx aws.Context, input *OutputService7TestShapeOutputService7TestCaseOperation1Input, opts ...request.Option) (*OutputService7TestShapeOutputService7TestCaseOperation1Output, error) {
req, out := c.OutputService7TestCaseOperation1Request(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
type OutputService7TestShapeOutputService7TestCaseOperation1Input struct {
_ struct{} `type:"structure"`
}
type OutputService7TestShapeOutputService7TestCaseOperation1Output struct {
_ struct{} `type:"structure"`
FooEnum *string `type:"string" enum:"OutputService7TestShapeJSONEnumType"`
ListEnums []*string `type:"list"`
}
// SetFooEnum sets the FooEnum field's value.
func (s *OutputService7TestShapeOutputService7TestCaseOperation1Output) SetFooEnum(v string) *OutputService7TestShapeOutputService7TestCaseOperation1Output {
s.FooEnum = &v
return s
}
// SetListEnums sets the ListEnums field's value.
func (s *OutputService7TestShapeOutputService7TestCaseOperation1Output) SetListEnums(v []*string) *OutputService7TestShapeOutputService7TestCaseOperation1Output {
s.ListEnums = v
return s
}
const (
// JSONEnumTypeFoo is a OutputService7TestShapeJSONEnumType enum value
JSONEnumTypeFoo = "foo"
// JSONEnumTypeBar is a OutputService7TestShapeJSONEnumType enum value
JSONEnumTypeBar = "bar"
)
// OutputService7TestShapeJSONEnumType_Values returns all elements of the OutputService7TestShapeJSONEnumType enum
func OutputService7TestShapeJSONEnumType_Values() []string {
return []string{
JSONEnumTypeFoo,
JSONEnumTypeBar,
}
}
// OutputService8ProtocolTest provides the API operation methods for making requests to
// . See this package's package overview docs
// for details on the service.
//
// OutputService8ProtocolTest methods are safe to use concurrently. It is not safe to
// modify mutate any of the struct's properties though.
type OutputService8ProtocolTest struct {
*client.Client
}
// New creates a new instance of the OutputService8ProtocolTest 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 OutputService8ProtocolTest client from just a session.
// svc := outputservice8protocoltest.New(mySession)
//
// // Create a OutputService8ProtocolTest client with additional configuration
// svc := outputservice8protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2"))
func NewOutputService8ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *OutputService8ProtocolTest {
c := p.ClientConfig("outputservice8protocoltest", cfgs...)
return newOutputService8ProtocolTestClient(*c.Config, c.Handlers, c.PartitionID, c.Endpoint, c.SigningRegion, c.SigningName)
}
// newClient creates, initializes and returns a new service client instance.
func newOutputService8ProtocolTestClient(cfg aws.Config, handlers request.Handlers, partitionID, endpoint, signingRegion, signingName string) *OutputService8ProtocolTest {
svc := &OutputService8ProtocolTest{
Client: client.New(
cfg,
metadata.ClientInfo{
ServiceName: "OutputService8ProtocolTest",
ServiceID: "OutputService8ProtocolTest",
SigningName: signingName,
SigningRegion: signingRegion,
PartitionID: partitionID,
Endpoint: endpoint,
APIVersion: "",
},
handlers,
),
}
// Handlers
svc.Handlers.Sign.PushBackNamed(v4.SignRequestHandler)
svc.Handlers.Build.PushBackNamed(jsonrpc.BuildHandler)
svc.Handlers.Unmarshal.PushBackNamed(jsonrpc.UnmarshalHandler)
svc.Handlers.UnmarshalMeta.PushBackNamed(jsonrpc.UnmarshalMetaHandler)
svc.Handlers.UnmarshalError.PushBackNamed(jsonrpc.UnmarshalErrorHandler)
return svc
}
// newRequest creates a new request for a OutputService8ProtocolTest operation and runs any
// custom request initialization.
func (c *OutputService8ProtocolTest) newRequest(op *request.Operation, params, data interface{}) *request.Request {
req := c.NewRequest(op, params, data)
return req
}
const opOutputService8TestCaseOperation1 = "OperationName"
// OutputService8TestCaseOperation1Request generates a "aws/request.Request" representing the
// client's request for the OutputService8TestCaseOperation1 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 OutputService8TestCaseOperation1 for more information on using the OutputService8TestCaseOperation1
// 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 OutputService8TestCaseOperation1Request method.
// req, resp := client.OutputService8TestCaseOperation1Request(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
func (c *OutputService8ProtocolTest) OutputService8TestCaseOperation1Request(input *OutputService8TestShapeOutputService8TestCaseOperation1Input) (req *request.Request, output *OutputService8TestShapeOutputService8TestCaseOperation1Output) {
op := &request.Operation{
Name: opOutputService8TestCaseOperation1,
HTTPPath: "/",
}
if input == nil {
input = &OutputService8TestShapeOutputService8TestCaseOperation1Input{}
}
output = &OutputService8TestShapeOutputService8TestCaseOperation1Output{}
req = c.newRequest(op, input, output)
req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
return
}
// OutputService8TestCaseOperation1 API operation for .
//
// 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 's
// API operation OutputService8TestCaseOperation1 for usage and error information.
func (c *OutputService8ProtocolTest) OutputService8TestCaseOperation1(input *OutputService8TestShapeOutputService8TestCaseOperation1Input) (*OutputService8TestShapeOutputService8TestCaseOperation1Output, error) {
req, out := c.OutputService8TestCaseOperation1Request(input)
return out, req.Send()
}
// OutputService8TestCaseOperation1WithContext is the same as OutputService8TestCaseOperation1 with the addition of
// the ability to pass a context and additional request options.
//
// See OutputService8TestCaseOperation1 for details on how to use this API operation.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
func (c *OutputService8ProtocolTest) OutputService8TestCaseOperation1WithContext(ctx aws.Context, input *OutputService8TestShapeOutputService8TestCaseOperation1Input, opts ...request.Option) (*OutputService8TestShapeOutputService8TestCaseOperation1Output, error) {
req, out := c.OutputService8TestCaseOperation1Request(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
const opOutputService8TestCaseOperation2 = "OperationName"
// OutputService8TestCaseOperation2Request generates a "aws/request.Request" representing the
// client's request for the OutputService8TestCaseOperation2 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 OutputService8TestCaseOperation2 for more information on using the OutputService8TestCaseOperation2
// 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 OutputService8TestCaseOperation2Request method.
// req, resp := client.OutputService8TestCaseOperation2Request(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
func (c *OutputService8ProtocolTest) OutputService8TestCaseOperation2Request(input *OutputService8TestShapeOutputService8TestCaseOperation2Input) (req *request.Request, output *OutputService8TestShapeOutputService8TestCaseOperation2Output) {
op := &request.Operation{
Name: opOutputService8TestCaseOperation2,
HTTPPath: "/",
}
if input == nil {
input = &OutputService8TestShapeOutputService8TestCaseOperation2Input{}
}
output = &OutputService8TestShapeOutputService8TestCaseOperation2Output{}
req = c.newRequest(op, input, output)
req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
return
}
// OutputService8TestCaseOperation2 API operation for .
//
// 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 's
// API operation OutputService8TestCaseOperation2 for usage and error information.
func (c *OutputService8ProtocolTest) OutputService8TestCaseOperation2(input *OutputService8TestShapeOutputService8TestCaseOperation2Input) (*OutputService8TestShapeOutputService8TestCaseOperation2Output, error) {
req, out := c.OutputService8TestCaseOperation2Request(input)
return out, req.Send()
}
// OutputService8TestCaseOperation2WithContext is the same as OutputService8TestCaseOperation2 with the addition of
// the ability to pass a context and additional request options.
//
// See OutputService8TestCaseOperation2 for details on how to use this API operation.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
func (c *OutputService8ProtocolTest) OutputService8TestCaseOperation2WithContext(ctx aws.Context, input *OutputService8TestShapeOutputService8TestCaseOperation2Input, opts ...request.Option) (*OutputService8TestShapeOutputService8TestCaseOperation2Output, error) {
req, out := c.OutputService8TestCaseOperation2Request(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
const opOutputService8TestCaseOperation3 = "OperationName"
// OutputService8TestCaseOperation3Request generates a "aws/request.Request" representing the
// client's request for the OutputService8TestCaseOperation3 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 OutputService8TestCaseOperation3 for more information on using the OutputService8TestCaseOperation3
// 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 OutputService8TestCaseOperation3Request method.
// req, resp := client.OutputService8TestCaseOperation3Request(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
func (c *OutputService8ProtocolTest) OutputService8TestCaseOperation3Request(input *OutputService8TestShapeOutputService8TestCaseOperation3Input) (req *request.Request, output *OutputService8TestShapeOutputService8TestCaseOperation3Output) {
op := &request.Operation{
Name: opOutputService8TestCaseOperation3,
HTTPPath: "/",
}
if input == nil {
input = &OutputService8TestShapeOutputService8TestCaseOperation3Input{}
}
output = &OutputService8TestShapeOutputService8TestCaseOperation3Output{}
req = c.newRequest(op, input, output)
req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
return
}
// OutputService8TestCaseOperation3 API operation for .
//
// 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 's
// API operation OutputService8TestCaseOperation3 for usage and error information.
func (c *OutputService8ProtocolTest) OutputService8TestCaseOperation3(input *OutputService8TestShapeOutputService8TestCaseOperation3Input) (*OutputService8TestShapeOutputService8TestCaseOperation3Output, error) {
req, out := c.OutputService8TestCaseOperation3Request(input)
return out, req.Send()
}
// OutputService8TestCaseOperation3WithContext is the same as OutputService8TestCaseOperation3 with the addition of
// the ability to pass a context and additional request options.
//
// See OutputService8TestCaseOperation3 for details on how to use this API operation.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
func (c *OutputService8ProtocolTest) OutputService8TestCaseOperation3WithContext(ctx aws.Context, input *OutputService8TestShapeOutputService8TestCaseOperation3Input, opts ...request.Option) (*OutputService8TestShapeOutputService8TestCaseOperation3Output, error) {
req, out := c.OutputService8TestCaseOperation3Request(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
type OutputService8TestShapeOutputService8TestCaseOperation1Input struct {
_ struct{} `type:"structure"`
}
type OutputService8TestShapeOutputService8TestCaseOperation1Output struct {
_ struct{} `type:"structure"`
}
type OutputService8TestShapeOutputService8TestCaseOperation2Input struct {
_ struct{} `type:"structure"`
}
type OutputService8TestShapeOutputService8TestCaseOperation2Output struct {
_ struct{} `type:"structure"`
}
type OutputService8TestShapeOutputService8TestCaseOperation3Input struct {
_ struct{} `type:"structure"`
}
type OutputService8TestShapeOutputService8TestCaseOperation3Output struct {
_ struct{} `type:"structure"`
}
//
// Tests begin here
//
func TestOutputService1ProtocolTestScalarMembersCase1(t *testing.T) {
svc := NewOutputService1ProtocolTest(unit.Session, &aws.Config{Endpoint: aws.String("https://test")})
buf := bytes.NewReader([]byte("{\"Str\": \"myname\", \"Num\": 123, \"FalseBool\": false, \"TrueBool\": true, \"Float\": 1.2, \"Double\": 1.3, \"Long\": 200, \"Char\": \"a\"}"))
req, out := svc.OutputService1TestCaseOperation1Request(nil)
req.HTTPResponse = &http.Response{StatusCode: 200, Body: ioutil.NopCloser(buf), Header: http.Header{}}
// set headers
// unmarshal response
req.Handlers.UnmarshalMeta.Run(req)
req.Handlers.Unmarshal.Run(req)
if req.Error != nil {
t.Errorf("expect not error, got %v", req.Error)
}
// assert response
if out == nil {
t.Errorf("expect not to be nil")
}
if e, a := "a", *out.Char; e != a {
t.Errorf("expect %v, got %v", e, a)
}
if e, a := 1.3, *out.Double; e != a {
t.Errorf("expect %v, got %v", e, a)
}
if e, a := false, *out.FalseBool; e != a {
t.Errorf("expect %v, got %v", e, a)
}
if e, a := 1.2, *out.Float; e != a {
t.Errorf("expect %v, got %v", e, a)
}
if e, a := int64(200), *out.Long; e != a {
t.Errorf("expect %v, got %v", e, a)
}
if e, a := int64(123), *out.Num; e != a {
t.Errorf("expect %v, got %v", e, a)
}
if e, a := "myname", *out.Str; e != a {
t.Errorf("expect %v, got %v", e, a)
}
if e, a := true, *out.TrueBool; e != a {
t.Errorf("expect %v, got %v", e, a)
}
}
func TestOutputService2ProtocolTestBlobMembersCase1(t *testing.T) {
svc := NewOutputService2ProtocolTest(unit.Session, &aws.Config{Endpoint: aws.String("https://test")})
buf := bytes.NewReader([]byte("{\"BlobMember\": \"aGkh\", \"StructMember\": {\"foo\": \"dGhlcmUh\"}}"))
req, out := svc.OutputService2TestCaseOperation1Request(nil)
req.HTTPResponse = &http.Response{StatusCode: 200, Body: ioutil.NopCloser(buf), Header: http.Header{}}
// set headers
// unmarshal response
req.Handlers.UnmarshalMeta.Run(req)
req.Handlers.Unmarshal.Run(req)
if req.Error != nil {
t.Errorf("expect not error, got %v", req.Error)
}
// assert response
if out == nil {
t.Errorf("expect not to be nil")
}
if e, a := "hi!", string(out.BlobMember); e != a {
t.Errorf("expect %v, got %v", e, a)
}
if e, a := "there!", string(out.StructMember.Foo); e != a {
t.Errorf("expect %v, got %v", e, a)
}
}
func TestOutputService3ProtocolTestTimestampMembersCase1(t *testing.T) {
svc := NewOutputService3ProtocolTest(unit.Session, &aws.Config{Endpoint: aws.String("https://test")})
buf := bytes.NewReader([]byte("{\"TimeArg\": 1398796238, \"TimeCustom\": \"Tue, 29 Apr 2014 18:30:38 GMT\", \"TimeFormat\": \"2014-04-29T18:30:38Z\", \"StructMember\": {\"foo\": 1398796238, \"bar\": \"2014-04-29T18:30:38Z\"}}"))
req, out := svc.OutputService3TestCaseOperation1Request(nil)
req.HTTPResponse = &http.Response{StatusCode: 200, Body: ioutil.NopCloser(buf), Header: http.Header{}}
// set headers
// unmarshal response
req.Handlers.UnmarshalMeta.Run(req)
req.Handlers.Unmarshal.Run(req)
if req.Error != nil {
t.Errorf("expect not error, got %v", req.Error)
}
// assert response
if out == nil {
t.Errorf("expect not to be nil")
}
if e, a := time.Unix(1.398796238e+09, 0).UTC().String(), out.StructMember.Bar.UTC().String(); e != a {
t.Errorf("expect %v, got %v", e, a)
}
if e, a := time.Unix(1.398796238e+09, 0).UTC().String(), out.StructMember.Foo.UTC().String(); e != a {
t.Errorf("expect %v, got %v", e, a)
}
if e, a := time.Unix(1.398796238e+09, 0).UTC().String(), out.TimeArg.UTC().String(); e != a {
t.Errorf("expect %v, got %v", e, a)
}
if e, a := time.Unix(1.398796238e+09, 0).UTC().String(), out.TimeCustom.UTC().String(); e != a {
t.Errorf("expect %v, got %v", e, a)
}
if e, a := time.Unix(1.398796238e+09, 0).UTC().String(), out.TimeFormat.UTC().String(); e != a {
t.Errorf("expect %v, got %v", e, a)
}
}
func TestOutputService4ProtocolTestListsCase1(t *testing.T) {
svc := NewOutputService4ProtocolTest(unit.Session, &aws.Config{Endpoint: aws.String("https://test")})
buf := bytes.NewReader([]byte("{\"ListMember\": [\"a\", \"b\"]}"))
req, out := svc.OutputService4TestCaseOperation1Request(nil)
req.HTTPResponse = &http.Response{StatusCode: 200, Body: ioutil.NopCloser(buf), Header: http.Header{}}
// set headers
// unmarshal response
req.Handlers.UnmarshalMeta.Run(req)
req.Handlers.Unmarshal.Run(req)
if req.Error != nil {
t.Errorf("expect not error, got %v", req.Error)
}
// assert response
if out == nil {
t.Errorf("expect not to be nil")
}
if e, a := "a", *out.ListMember[0]; e != a {
t.Errorf("expect %v, got %v", e, a)
}
if e, a := "b", *out.ListMember[1]; e != a {
t.Errorf("expect %v, got %v", e, a)
}
}
func TestOutputService4ProtocolTestListsCase2(t *testing.T) {
svc := NewOutputService4ProtocolTest(unit.Session, &aws.Config{Endpoint: aws.String("https://test")})
buf := bytes.NewReader([]byte("{\"ListMember\": [\"a\", null], \"ListMemberMap\": [{}, null, null, {}], \"ListMemberStruct\": [{}, null, null, {}]}"))
req, out := svc.OutputService4TestCaseOperation2Request(nil)
req.HTTPResponse = &http.Response{StatusCode: 200, Body: ioutil.NopCloser(buf), Header: http.Header{}}
// set headers
// unmarshal response
req.Handlers.UnmarshalMeta.Run(req)
req.Handlers.Unmarshal.Run(req)
if req.Error != nil {
t.Errorf("expect not error, got %v", req.Error)
}
// assert response
if out == nil {
t.Errorf("expect not to be nil")
}
if e, a := "a", *out.ListMember[0]; e != a {
t.Errorf("expect %v, got %v", e, a)
}
if e := out.ListMember[1]; e != nil {
t.Errorf("expect nil, got %v", e)
}
if e := out.ListMemberMap[1]; e != nil {
t.Errorf("expect nil, got %v", e)
}
if e := out.ListMemberMap[2]; e != nil {
t.Errorf("expect nil, got %v", e)
}
if e := out.ListMemberStruct[1]; e != nil {
t.Errorf("expect nil, got %v", e)
}
if e := out.ListMemberStruct[2]; e != nil {
t.Errorf("expect nil, got %v", e)
}
}
func TestOutputService5ProtocolTestMapsCase1(t *testing.T) {
svc := NewOutputService5ProtocolTest(unit.Session, &aws.Config{Endpoint: aws.String("https://test")})
buf := bytes.NewReader([]byte("{\"MapMember\": {\"a\": [1, 2], \"b\": [3, 4]}}"))
req, out := svc.OutputService5TestCaseOperation1Request(nil)
req.HTTPResponse = &http.Response{StatusCode: 200, Body: ioutil.NopCloser(buf), Header: http.Header{}}
// set headers
// unmarshal response
req.Handlers.UnmarshalMeta.Run(req)
req.Handlers.Unmarshal.Run(req)
if req.Error != nil {
t.Errorf("expect not error, got %v", req.Error)
}
// assert response
if out == nil {
t.Errorf("expect not to be nil")
}
if e, a := int64(1), *out.MapMember["a"][0]; e != a {
t.Errorf("expect %v, got %v", e, a)
}
if e, a := int64(2), *out.MapMember["a"][1]; e != a {
t.Errorf("expect %v, got %v", e, a)
}
if e, a := int64(3), *out.MapMember["b"][0]; e != a {
t.Errorf("expect %v, got %v", e, a)
}
if e, a := int64(4), *out.MapMember["b"][1]; e != a {
t.Errorf("expect %v, got %v", e, a)
}
}
func TestOutputService6ProtocolTestIgnoresExtraDataCase1(t *testing.T) {
svc := NewOutputService6ProtocolTest(unit.Session, &aws.Config{Endpoint: aws.String("https://test")})
buf := bytes.NewReader([]byte("{\"foo\": \"bar\"}"))
req, out := svc.OutputService6TestCaseOperation1Request(nil)
req.HTTPResponse = &http.Response{StatusCode: 200, Body: ioutil.NopCloser(buf), Header: http.Header{}}
// set headers
// unmarshal response
req.Handlers.UnmarshalMeta.Run(req)
req.Handlers.Unmarshal.Run(req)
if req.Error != nil {
t.Errorf("expect not error, got %v", req.Error)
}
// assert response
if out == nil {
t.Errorf("expect not to be nil")
}
}
func TestOutputService7ProtocolTestEnumOutputCase1(t *testing.T) {
svc := NewOutputService7ProtocolTest(unit.Session, &aws.Config{Endpoint: aws.String("https://test")})
buf := bytes.NewReader([]byte("{\"FooEnum\": \"foo\", \"ListEnums\": [\"foo\", \"bar\"]}"))
req, out := svc.OutputService7TestCaseOperation1Request(nil)
req.HTTPResponse = &http.Response{StatusCode: 200, Body: ioutil.NopCloser(buf), Header: http.Header{}}
// set headers
// unmarshal response
req.Handlers.UnmarshalMeta.Run(req)
req.Handlers.Unmarshal.Run(req)
if req.Error != nil {
t.Errorf("expect not error, got %v", req.Error)
}
// assert response
if out == nil {
t.Errorf("expect not to be nil")
}
if e, a := "foo", *out.FooEnum; e != a {
t.Errorf("expect %v, got %v", e, a)
}
if e, a := "foo", *out.ListEnums[0]; e != a {
t.Errorf("expect %v, got %v", e, a)
}
if e, a := "bar", *out.ListEnums[1]; e != a {
t.Errorf("expect %v, got %v", e, a)
}
}
func TestOutputService8ProtocolTestunmodeledNonjsonResponsePayloadCase1(t *testing.T) {
svc := NewOutputService8ProtocolTest(unit.Session, &aws.Config{Endpoint: aws.String("https://test")})
buf := bytes.NewReader([]byte("success"))
req, out := svc.OutputService8TestCaseOperation1Request(nil)
req.HTTPResponse = &http.Response{StatusCode: 200, Body: ioutil.NopCloser(buf), Header: http.Header{}}
// set headers
// unmarshal response
req.Handlers.UnmarshalMeta.Run(req)
req.Handlers.Unmarshal.Run(req)
if req.Error != nil {
t.Errorf("expect not error, got %v", req.Error)
}
// assert response
if out == nil {
t.Errorf("expect not to be nil")
}
}
func TestOutputService8ProtocolTestunmodeledNonjsonResponsePayloadCase2(t *testing.T) {
svc := NewOutputService8ProtocolTest(unit.Session, &aws.Config{Endpoint: aws.String("https://test")})
buf := bytes.NewReader([]byte("\"success\""))
req, out := svc.OutputService8TestCaseOperation2Request(nil)
req.HTTPResponse = &http.Response{StatusCode: 200, Body: ioutil.NopCloser(buf), Header: http.Header{}}
// set headers
// unmarshal response
req.Handlers.UnmarshalMeta.Run(req)
req.Handlers.Unmarshal.Run(req)
if req.Error != nil {
t.Errorf("expect not error, got %v", req.Error)
}
// assert response
if out == nil {
t.Errorf("expect not to be nil")
}
}
func TestOutputService8ProtocolTestunmodeledNonjsonResponsePayloadCase3(t *testing.T) {
svc := NewOutputService8ProtocolTest(unit.Session, &aws.Config{Endpoint: aws.String("https://test")})
buf := bytes.NewReader([]byte("{}"))
req, out := svc.OutputService8TestCaseOperation3Request(nil)
req.HTTPResponse = &http.Response{StatusCode: 200, Body: ioutil.NopCloser(buf), Header: http.Header{}}
// set headers
// unmarshal response
req.Handlers.UnmarshalMeta.Run(req)
req.Handlers.Unmarshal.Run(req)
if req.Error != nil {
t.Errorf("expect not error, got %v", req.Error)
}
// assert response
if out == nil {
t.Errorf("expect not to be nil")
}
}
| 1,984 |
session-manager-plugin | aws | Go | // Package query provides serialization of AWS query requests, and responses.
package query
//go:generate go run -tags codegen ../../../private/model/cli/gen-protocol-tests ../../../models/protocol_tests/input/query.json build_test.go
import (
"net/url"
"github.com/aws/aws-sdk-go/aws/awserr"
"github.com/aws/aws-sdk-go/aws/request"
"github.com/aws/aws-sdk-go/private/protocol/query/queryutil"
)
// BuildHandler is a named request handler for building query protocol requests
var BuildHandler = request.NamedHandler{Name: "awssdk.query.Build", Fn: Build}
// Build builds a request for an AWS Query service.
func Build(r *request.Request) {
body := url.Values{
"Action": {r.Operation.Name},
"Version": {r.ClientInfo.APIVersion},
}
if err := queryutil.Parse(body, r.Params, false); err != nil {
r.Error = awserr.New(request.ErrCodeSerialization, "failed encoding Query request", err)
return
}
if !r.IsPresigned() {
r.HTTPRequest.Method = "POST"
r.HTTPRequest.Header.Set("Content-Type", "application/x-www-form-urlencoded; charset=utf-8")
r.SetBufferBody([]byte(body.Encode()))
} else { // This is a pre-signed request
r.HTTPRequest.Method = "GET"
r.HTTPRequest.URL.RawQuery = body.Encode()
}
}
| 37 |
session-manager-plugin | aws | Go | // Code generated by models/protocol_tests/generate.go. DO NOT EDIT.
package query_test
import (
"bytes"
"encoding/json"
"encoding/xml"
"fmt"
"io"
"io/ioutil"
"net/http"
"net/url"
"reflect"
"testing"
"time"
"github.com/aws/aws-sdk-go/aws"
"github.com/aws/aws-sdk-go/aws/client"
"github.com/aws/aws-sdk-go/aws/client/metadata"
"github.com/aws/aws-sdk-go/aws/request"
"github.com/aws/aws-sdk-go/aws/signer/v4"
"github.com/aws/aws-sdk-go/awstesting"
"github.com/aws/aws-sdk-go/awstesting/unit"
"github.com/aws/aws-sdk-go/private/protocol"
"github.com/aws/aws-sdk-go/private/protocol/query"
"github.com/aws/aws-sdk-go/private/protocol/xml/xmlutil"
"github.com/aws/aws-sdk-go/private/util"
)
var _ bytes.Buffer // always import bytes
var _ http.Request
var _ json.Marshaler
var _ time.Time
var _ xmlutil.XMLNode
var _ xml.Attr
var _ = ioutil.Discard
var _ = util.Trim("")
var _ = url.Values{}
var _ = io.EOF
var _ = aws.String
var _ = fmt.Println
var _ = reflect.Value{}
func init() {
protocol.RandReader = &awstesting.ZeroReader{}
}
// InputService1ProtocolTest provides the API operation methods for making requests to
// . See this package's package overview docs
// for details on the service.
//
// InputService1ProtocolTest methods are safe to use concurrently. It is not safe to
// modify mutate any of the struct's properties though.
type InputService1ProtocolTest struct {
*client.Client
}
// New creates a new instance of the InputService1ProtocolTest 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 InputService1ProtocolTest client from just a session.
// svc := inputservice1protocoltest.New(mySession)
//
// // Create a InputService1ProtocolTest client with additional configuration
// svc := inputservice1protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2"))
func NewInputService1ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *InputService1ProtocolTest {
c := p.ClientConfig("inputservice1protocoltest", cfgs...)
return newInputService1ProtocolTestClient(*c.Config, c.Handlers, c.PartitionID, c.Endpoint, c.SigningRegion, c.SigningName)
}
// newClient creates, initializes and returns a new service client instance.
func newInputService1ProtocolTestClient(cfg aws.Config, handlers request.Handlers, partitionID, endpoint, signingRegion, signingName string) *InputService1ProtocolTest {
svc := &InputService1ProtocolTest{
Client: client.New(
cfg,
metadata.ClientInfo{
ServiceName: "InputService1ProtocolTest",
ServiceID: "InputService1ProtocolTest",
SigningName: signingName,
SigningRegion: signingRegion,
PartitionID: partitionID,
Endpoint: endpoint,
APIVersion: "2014-01-01",
},
handlers,
),
}
// Handlers
svc.Handlers.Sign.PushBackNamed(v4.SignRequestHandler)
svc.Handlers.Build.PushBackNamed(query.BuildHandler)
svc.Handlers.Unmarshal.PushBackNamed(query.UnmarshalHandler)
svc.Handlers.UnmarshalMeta.PushBackNamed(query.UnmarshalMetaHandler)
svc.Handlers.UnmarshalError.PushBackNamed(query.UnmarshalErrorHandler)
return svc
}
// newRequest creates a new request for a InputService1ProtocolTest operation and runs any
// custom request initialization.
func (c *InputService1ProtocolTest) newRequest(op *request.Operation, params, data interface{}) *request.Request {
req := c.NewRequest(op, params, data)
return req
}
const opInputService1TestCaseOperation1 = "OperationName"
// InputService1TestCaseOperation1Request generates a "aws/request.Request" representing the
// client's request for the InputService1TestCaseOperation1 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 InputService1TestCaseOperation1 for more information on using the InputService1TestCaseOperation1
// 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 InputService1TestCaseOperation1Request method.
// req, resp := client.InputService1TestCaseOperation1Request(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
func (c *InputService1ProtocolTest) InputService1TestCaseOperation1Request(input *InputService1TestShapeInputService1TestCaseOperation1Input) (req *request.Request, output *InputService1TestShapeInputService1TestCaseOperation1Output) {
op := &request.Operation{
Name: opInputService1TestCaseOperation1,
HTTPPath: "/",
}
if input == nil {
input = &InputService1TestShapeInputService1TestCaseOperation1Input{}
}
output = &InputService1TestShapeInputService1TestCaseOperation1Output{}
req = c.newRequest(op, input, output)
req.Handlers.Unmarshal.Swap(query.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
return
}
// InputService1TestCaseOperation1 API operation for .
//
// 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 's
// API operation InputService1TestCaseOperation1 for usage and error information.
func (c *InputService1ProtocolTest) InputService1TestCaseOperation1(input *InputService1TestShapeInputService1TestCaseOperation1Input) (*InputService1TestShapeInputService1TestCaseOperation1Output, error) {
req, out := c.InputService1TestCaseOperation1Request(input)
return out, req.Send()
}
// InputService1TestCaseOperation1WithContext is the same as InputService1TestCaseOperation1 with the addition of
// the ability to pass a context and additional request options.
//
// See InputService1TestCaseOperation1 for details on how to use this API operation.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
func (c *InputService1ProtocolTest) InputService1TestCaseOperation1WithContext(ctx aws.Context, input *InputService1TestShapeInputService1TestCaseOperation1Input, opts ...request.Option) (*InputService1TestShapeInputService1TestCaseOperation1Output, error) {
req, out := c.InputService1TestCaseOperation1Request(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
const opInputService1TestCaseOperation2 = "OperationName"
// InputService1TestCaseOperation2Request generates a "aws/request.Request" representing the
// client's request for the InputService1TestCaseOperation2 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 InputService1TestCaseOperation2 for more information on using the InputService1TestCaseOperation2
// 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 InputService1TestCaseOperation2Request method.
// req, resp := client.InputService1TestCaseOperation2Request(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
func (c *InputService1ProtocolTest) InputService1TestCaseOperation2Request(input *InputService1TestShapeInputService1TestCaseOperation2Input) (req *request.Request, output *InputService1TestShapeInputService1TestCaseOperation2Output) {
op := &request.Operation{
Name: opInputService1TestCaseOperation2,
HTTPPath: "/",
}
if input == nil {
input = &InputService1TestShapeInputService1TestCaseOperation2Input{}
}
output = &InputService1TestShapeInputService1TestCaseOperation2Output{}
req = c.newRequest(op, input, output)
req.Handlers.Unmarshal.Swap(query.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
return
}
// InputService1TestCaseOperation2 API operation for .
//
// 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 's
// API operation InputService1TestCaseOperation2 for usage and error information.
func (c *InputService1ProtocolTest) InputService1TestCaseOperation2(input *InputService1TestShapeInputService1TestCaseOperation2Input) (*InputService1TestShapeInputService1TestCaseOperation2Output, error) {
req, out := c.InputService1TestCaseOperation2Request(input)
return out, req.Send()
}
// InputService1TestCaseOperation2WithContext is the same as InputService1TestCaseOperation2 with the addition of
// the ability to pass a context and additional request options.
//
// See InputService1TestCaseOperation2 for details on how to use this API operation.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
func (c *InputService1ProtocolTest) InputService1TestCaseOperation2WithContext(ctx aws.Context, input *InputService1TestShapeInputService1TestCaseOperation2Input, opts ...request.Option) (*InputService1TestShapeInputService1TestCaseOperation2Output, error) {
req, out := c.InputService1TestCaseOperation2Request(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
const opInputService1TestCaseOperation3 = "OperationName"
// InputService1TestCaseOperation3Request generates a "aws/request.Request" representing the
// client's request for the InputService1TestCaseOperation3 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 InputService1TestCaseOperation3 for more information on using the InputService1TestCaseOperation3
// 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 InputService1TestCaseOperation3Request method.
// req, resp := client.InputService1TestCaseOperation3Request(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
func (c *InputService1ProtocolTest) InputService1TestCaseOperation3Request(input *InputService1TestShapeInputService1TestCaseOperation3Input) (req *request.Request, output *InputService1TestShapeInputService1TestCaseOperation3Output) {
op := &request.Operation{
Name: opInputService1TestCaseOperation3,
HTTPPath: "/",
}
if input == nil {
input = &InputService1TestShapeInputService1TestCaseOperation3Input{}
}
output = &InputService1TestShapeInputService1TestCaseOperation3Output{}
req = c.newRequest(op, input, output)
req.Handlers.Unmarshal.Swap(query.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
return
}
// InputService1TestCaseOperation3 API operation for .
//
// 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 's
// API operation InputService1TestCaseOperation3 for usage and error information.
func (c *InputService1ProtocolTest) InputService1TestCaseOperation3(input *InputService1TestShapeInputService1TestCaseOperation3Input) (*InputService1TestShapeInputService1TestCaseOperation3Output, error) {
req, out := c.InputService1TestCaseOperation3Request(input)
return out, req.Send()
}
// InputService1TestCaseOperation3WithContext is the same as InputService1TestCaseOperation3 with the addition of
// the ability to pass a context and additional request options.
//
// See InputService1TestCaseOperation3 for details on how to use this API operation.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
func (c *InputService1ProtocolTest) InputService1TestCaseOperation3WithContext(ctx aws.Context, input *InputService1TestShapeInputService1TestCaseOperation3Input, opts ...request.Option) (*InputService1TestShapeInputService1TestCaseOperation3Output, error) {
req, out := c.InputService1TestCaseOperation3Request(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
type InputService1TestShapeInputService1TestCaseOperation1Input struct {
_ struct{} `type:"structure"`
Bar *string `type:"string"`
Baz *bool `type:"boolean"`
Foo *string `type:"string"`
}
// SetBar sets the Bar field's value.
func (s *InputService1TestShapeInputService1TestCaseOperation1Input) SetBar(v string) *InputService1TestShapeInputService1TestCaseOperation1Input {
s.Bar = &v
return s
}
// SetBaz sets the Baz field's value.
func (s *InputService1TestShapeInputService1TestCaseOperation1Input) SetBaz(v bool) *InputService1TestShapeInputService1TestCaseOperation1Input {
s.Baz = &v
return s
}
// SetFoo sets the Foo field's value.
func (s *InputService1TestShapeInputService1TestCaseOperation1Input) SetFoo(v string) *InputService1TestShapeInputService1TestCaseOperation1Input {
s.Foo = &v
return s
}
type InputService1TestShapeInputService1TestCaseOperation1Output struct {
_ struct{} `type:"structure"`
}
type InputService1TestShapeInputService1TestCaseOperation2Input struct {
_ struct{} `type:"structure"`
Bar *string `type:"string"`
Baz *bool `type:"boolean"`
Foo *string `type:"string"`
}
// SetBar sets the Bar field's value.
func (s *InputService1TestShapeInputService1TestCaseOperation2Input) SetBar(v string) *InputService1TestShapeInputService1TestCaseOperation2Input {
s.Bar = &v
return s
}
// SetBaz sets the Baz field's value.
func (s *InputService1TestShapeInputService1TestCaseOperation2Input) SetBaz(v bool) *InputService1TestShapeInputService1TestCaseOperation2Input {
s.Baz = &v
return s
}
// SetFoo sets the Foo field's value.
func (s *InputService1TestShapeInputService1TestCaseOperation2Input) SetFoo(v string) *InputService1TestShapeInputService1TestCaseOperation2Input {
s.Foo = &v
return s
}
type InputService1TestShapeInputService1TestCaseOperation2Output struct {
_ struct{} `type:"structure"`
}
type InputService1TestShapeInputService1TestCaseOperation3Input struct {
_ struct{} `type:"structure"`
Bar *string `type:"string"`
Baz *bool `type:"boolean"`
Foo *string `type:"string"`
}
// SetBar sets the Bar field's value.
func (s *InputService1TestShapeInputService1TestCaseOperation3Input) SetBar(v string) *InputService1TestShapeInputService1TestCaseOperation3Input {
s.Bar = &v
return s
}
// SetBaz sets the Baz field's value.
func (s *InputService1TestShapeInputService1TestCaseOperation3Input) SetBaz(v bool) *InputService1TestShapeInputService1TestCaseOperation3Input {
s.Baz = &v
return s
}
// SetFoo sets the Foo field's value.
func (s *InputService1TestShapeInputService1TestCaseOperation3Input) SetFoo(v string) *InputService1TestShapeInputService1TestCaseOperation3Input {
s.Foo = &v
return s
}
type InputService1TestShapeInputService1TestCaseOperation3Output struct {
_ struct{} `type:"structure"`
}
// InputService2ProtocolTest provides the API operation methods for making requests to
// . See this package's package overview docs
// for details on the service.
//
// InputService2ProtocolTest methods are safe to use concurrently. It is not safe to
// modify mutate any of the struct's properties though.
type InputService2ProtocolTest struct {
*client.Client
}
// New creates a new instance of the InputService2ProtocolTest 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 InputService2ProtocolTest client from just a session.
// svc := inputservice2protocoltest.New(mySession)
//
// // Create a InputService2ProtocolTest client with additional configuration
// svc := inputservice2protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2"))
func NewInputService2ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *InputService2ProtocolTest {
c := p.ClientConfig("inputservice2protocoltest", cfgs...)
return newInputService2ProtocolTestClient(*c.Config, c.Handlers, c.PartitionID, c.Endpoint, c.SigningRegion, c.SigningName)
}
// newClient creates, initializes and returns a new service client instance.
func newInputService2ProtocolTestClient(cfg aws.Config, handlers request.Handlers, partitionID, endpoint, signingRegion, signingName string) *InputService2ProtocolTest {
svc := &InputService2ProtocolTest{
Client: client.New(
cfg,
metadata.ClientInfo{
ServiceName: "InputService2ProtocolTest",
ServiceID: "InputService2ProtocolTest",
SigningName: signingName,
SigningRegion: signingRegion,
PartitionID: partitionID,
Endpoint: endpoint,
APIVersion: "2014-01-01",
},
handlers,
),
}
// Handlers
svc.Handlers.Sign.PushBackNamed(v4.SignRequestHandler)
svc.Handlers.Build.PushBackNamed(query.BuildHandler)
svc.Handlers.Unmarshal.PushBackNamed(query.UnmarshalHandler)
svc.Handlers.UnmarshalMeta.PushBackNamed(query.UnmarshalMetaHandler)
svc.Handlers.UnmarshalError.PushBackNamed(query.UnmarshalErrorHandler)
return svc
}
// newRequest creates a new request for a InputService2ProtocolTest operation and runs any
// custom request initialization.
func (c *InputService2ProtocolTest) newRequest(op *request.Operation, params, data interface{}) *request.Request {
req := c.NewRequest(op, params, data)
return req
}
const opInputService2TestCaseOperation1 = "OperationName"
// InputService2TestCaseOperation1Request generates a "aws/request.Request" representing the
// client's request for the InputService2TestCaseOperation1 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 InputService2TestCaseOperation1 for more information on using the InputService2TestCaseOperation1
// 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 InputService2TestCaseOperation1Request method.
// req, resp := client.InputService2TestCaseOperation1Request(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
func (c *InputService2ProtocolTest) InputService2TestCaseOperation1Request(input *InputService2TestShapeInputService2TestCaseOperation1Input) (req *request.Request, output *InputService2TestShapeInputService2TestCaseOperation1Output) {
op := &request.Operation{
Name: opInputService2TestCaseOperation1,
HTTPPath: "/",
}
if input == nil {
input = &InputService2TestShapeInputService2TestCaseOperation1Input{}
}
output = &InputService2TestShapeInputService2TestCaseOperation1Output{}
req = c.newRequest(op, input, output)
req.Handlers.Unmarshal.Swap(query.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
return
}
// InputService2TestCaseOperation1 API operation for .
//
// 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 's
// API operation InputService2TestCaseOperation1 for usage and error information.
func (c *InputService2ProtocolTest) InputService2TestCaseOperation1(input *InputService2TestShapeInputService2TestCaseOperation1Input) (*InputService2TestShapeInputService2TestCaseOperation1Output, error) {
req, out := c.InputService2TestCaseOperation1Request(input)
return out, req.Send()
}
// InputService2TestCaseOperation1WithContext is the same as InputService2TestCaseOperation1 with the addition of
// the ability to pass a context and additional request options.
//
// See InputService2TestCaseOperation1 for details on how to use this API operation.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
func (c *InputService2ProtocolTest) InputService2TestCaseOperation1WithContext(ctx aws.Context, input *InputService2TestShapeInputService2TestCaseOperation1Input, opts ...request.Option) (*InputService2TestShapeInputService2TestCaseOperation1Output, error) {
req, out := c.InputService2TestCaseOperation1Request(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
type InputService2TestShapeInputService2TestCaseOperation1Input struct {
_ struct{} `type:"structure"`
StructArg *InputService2TestShapeStructType `type:"structure"`
}
// SetStructArg sets the StructArg field's value.
func (s *InputService2TestShapeInputService2TestCaseOperation1Input) SetStructArg(v *InputService2TestShapeStructType) *InputService2TestShapeInputService2TestCaseOperation1Input {
s.StructArg = v
return s
}
type InputService2TestShapeInputService2TestCaseOperation1Output struct {
_ struct{} `type:"structure"`
}
type InputService2TestShapeStructType struct {
_ struct{} `type:"structure"`
ScalarArg *string `type:"string"`
}
// SetScalarArg sets the ScalarArg field's value.
func (s *InputService2TestShapeStructType) SetScalarArg(v string) *InputService2TestShapeStructType {
s.ScalarArg = &v
return s
}
// InputService3ProtocolTest provides the API operation methods for making requests to
// . See this package's package overview docs
// for details on the service.
//
// InputService3ProtocolTest methods are safe to use concurrently. It is not safe to
// modify mutate any of the struct's properties though.
type InputService3ProtocolTest struct {
*client.Client
}
// New creates a new instance of the InputService3ProtocolTest 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 InputService3ProtocolTest client from just a session.
// svc := inputservice3protocoltest.New(mySession)
//
// // Create a InputService3ProtocolTest client with additional configuration
// svc := inputservice3protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2"))
func NewInputService3ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *InputService3ProtocolTest {
c := p.ClientConfig("inputservice3protocoltest", cfgs...)
return newInputService3ProtocolTestClient(*c.Config, c.Handlers, c.PartitionID, c.Endpoint, c.SigningRegion, c.SigningName)
}
// newClient creates, initializes and returns a new service client instance.
func newInputService3ProtocolTestClient(cfg aws.Config, handlers request.Handlers, partitionID, endpoint, signingRegion, signingName string) *InputService3ProtocolTest {
svc := &InputService3ProtocolTest{
Client: client.New(
cfg,
metadata.ClientInfo{
ServiceName: "InputService3ProtocolTest",
ServiceID: "InputService3ProtocolTest",
SigningName: signingName,
SigningRegion: signingRegion,
PartitionID: partitionID,
Endpoint: endpoint,
APIVersion: "2014-01-01",
},
handlers,
),
}
// Handlers
svc.Handlers.Sign.PushBackNamed(v4.SignRequestHandler)
svc.Handlers.Build.PushBackNamed(query.BuildHandler)
svc.Handlers.Unmarshal.PushBackNamed(query.UnmarshalHandler)
svc.Handlers.UnmarshalMeta.PushBackNamed(query.UnmarshalMetaHandler)
svc.Handlers.UnmarshalError.PushBackNamed(query.UnmarshalErrorHandler)
return svc
}
// newRequest creates a new request for a InputService3ProtocolTest operation and runs any
// custom request initialization.
func (c *InputService3ProtocolTest) newRequest(op *request.Operation, params, data interface{}) *request.Request {
req := c.NewRequest(op, params, data)
return req
}
const opInputService3TestCaseOperation1 = "OperationName"
// InputService3TestCaseOperation1Request generates a "aws/request.Request" representing the
// client's request for the InputService3TestCaseOperation1 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 InputService3TestCaseOperation1 for more information on using the InputService3TestCaseOperation1
// 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 InputService3TestCaseOperation1Request method.
// req, resp := client.InputService3TestCaseOperation1Request(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
func (c *InputService3ProtocolTest) InputService3TestCaseOperation1Request(input *InputService3TestShapeInputService3TestCaseOperation1Input) (req *request.Request, output *InputService3TestShapeInputService3TestCaseOperation1Output) {
op := &request.Operation{
Name: opInputService3TestCaseOperation1,
HTTPPath: "/",
}
if input == nil {
input = &InputService3TestShapeInputService3TestCaseOperation1Input{}
}
output = &InputService3TestShapeInputService3TestCaseOperation1Output{}
req = c.newRequest(op, input, output)
req.Handlers.Unmarshal.Swap(query.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
return
}
// InputService3TestCaseOperation1 API operation for .
//
// 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 's
// API operation InputService3TestCaseOperation1 for usage and error information.
func (c *InputService3ProtocolTest) InputService3TestCaseOperation1(input *InputService3TestShapeInputService3TestCaseOperation1Input) (*InputService3TestShapeInputService3TestCaseOperation1Output, error) {
req, out := c.InputService3TestCaseOperation1Request(input)
return out, req.Send()
}
// InputService3TestCaseOperation1WithContext is the same as InputService3TestCaseOperation1 with the addition of
// the ability to pass a context and additional request options.
//
// See InputService3TestCaseOperation1 for details on how to use this API operation.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
func (c *InputService3ProtocolTest) InputService3TestCaseOperation1WithContext(ctx aws.Context, input *InputService3TestShapeInputService3TestCaseOperation1Input, opts ...request.Option) (*InputService3TestShapeInputService3TestCaseOperation1Output, error) {
req, out := c.InputService3TestCaseOperation1Request(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
const opInputService3TestCaseOperation2 = "OperationName"
// InputService3TestCaseOperation2Request generates a "aws/request.Request" representing the
// client's request for the InputService3TestCaseOperation2 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 InputService3TestCaseOperation2 for more information on using the InputService3TestCaseOperation2
// 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 InputService3TestCaseOperation2Request method.
// req, resp := client.InputService3TestCaseOperation2Request(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
func (c *InputService3ProtocolTest) InputService3TestCaseOperation2Request(input *InputService3TestShapeInputService3TestCaseOperation2Input) (req *request.Request, output *InputService3TestShapeInputService3TestCaseOperation2Output) {
op := &request.Operation{
Name: opInputService3TestCaseOperation2,
HTTPPath: "/",
}
if input == nil {
input = &InputService3TestShapeInputService3TestCaseOperation2Input{}
}
output = &InputService3TestShapeInputService3TestCaseOperation2Output{}
req = c.newRequest(op, input, output)
req.Handlers.Unmarshal.Swap(query.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
return
}
// InputService3TestCaseOperation2 API operation for .
//
// 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 's
// API operation InputService3TestCaseOperation2 for usage and error information.
func (c *InputService3ProtocolTest) InputService3TestCaseOperation2(input *InputService3TestShapeInputService3TestCaseOperation2Input) (*InputService3TestShapeInputService3TestCaseOperation2Output, error) {
req, out := c.InputService3TestCaseOperation2Request(input)
return out, req.Send()
}
// InputService3TestCaseOperation2WithContext is the same as InputService3TestCaseOperation2 with the addition of
// the ability to pass a context and additional request options.
//
// See InputService3TestCaseOperation2 for details on how to use this API operation.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
func (c *InputService3ProtocolTest) InputService3TestCaseOperation2WithContext(ctx aws.Context, input *InputService3TestShapeInputService3TestCaseOperation2Input, opts ...request.Option) (*InputService3TestShapeInputService3TestCaseOperation2Output, error) {
req, out := c.InputService3TestCaseOperation2Request(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
type InputService3TestShapeInputService3TestCaseOperation1Input struct {
_ struct{} `type:"structure"`
ListArg []*string `type:"list"`
}
// SetListArg sets the ListArg field's value.
func (s *InputService3TestShapeInputService3TestCaseOperation1Input) SetListArg(v []*string) *InputService3TestShapeInputService3TestCaseOperation1Input {
s.ListArg = v
return s
}
type InputService3TestShapeInputService3TestCaseOperation1Output struct {
_ struct{} `type:"structure"`
}
type InputService3TestShapeInputService3TestCaseOperation2Input struct {
_ struct{} `type:"structure"`
ListArg []*string `type:"list"`
}
// SetListArg sets the ListArg field's value.
func (s *InputService3TestShapeInputService3TestCaseOperation2Input) SetListArg(v []*string) *InputService3TestShapeInputService3TestCaseOperation2Input {
s.ListArg = v
return s
}
type InputService3TestShapeInputService3TestCaseOperation2Output struct {
_ struct{} `type:"structure"`
}
// InputService4ProtocolTest provides the API operation methods for making requests to
// . See this package's package overview docs
// for details on the service.
//
// InputService4ProtocolTest methods are safe to use concurrently. It is not safe to
// modify mutate any of the struct's properties though.
type InputService4ProtocolTest struct {
*client.Client
}
// New creates a new instance of the InputService4ProtocolTest 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 InputService4ProtocolTest client from just a session.
// svc := inputservice4protocoltest.New(mySession)
//
// // Create a InputService4ProtocolTest client with additional configuration
// svc := inputservice4protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2"))
func NewInputService4ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *InputService4ProtocolTest {
c := p.ClientConfig("inputservice4protocoltest", cfgs...)
return newInputService4ProtocolTestClient(*c.Config, c.Handlers, c.PartitionID, c.Endpoint, c.SigningRegion, c.SigningName)
}
// newClient creates, initializes and returns a new service client instance.
func newInputService4ProtocolTestClient(cfg aws.Config, handlers request.Handlers, partitionID, endpoint, signingRegion, signingName string) *InputService4ProtocolTest {
svc := &InputService4ProtocolTest{
Client: client.New(
cfg,
metadata.ClientInfo{
ServiceName: "InputService4ProtocolTest",
ServiceID: "InputService4ProtocolTest",
SigningName: signingName,
SigningRegion: signingRegion,
PartitionID: partitionID,
Endpoint: endpoint,
APIVersion: "2014-01-01",
},
handlers,
),
}
// Handlers
svc.Handlers.Sign.PushBackNamed(v4.SignRequestHandler)
svc.Handlers.Build.PushBackNamed(query.BuildHandler)
svc.Handlers.Unmarshal.PushBackNamed(query.UnmarshalHandler)
svc.Handlers.UnmarshalMeta.PushBackNamed(query.UnmarshalMetaHandler)
svc.Handlers.UnmarshalError.PushBackNamed(query.UnmarshalErrorHandler)
return svc
}
// newRequest creates a new request for a InputService4ProtocolTest operation and runs any
// custom request initialization.
func (c *InputService4ProtocolTest) newRequest(op *request.Operation, params, data interface{}) *request.Request {
req := c.NewRequest(op, params, data)
return req
}
const opInputService4TestCaseOperation1 = "OperationName"
// InputService4TestCaseOperation1Request generates a "aws/request.Request" representing the
// client's request for the InputService4TestCaseOperation1 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 InputService4TestCaseOperation1 for more information on using the InputService4TestCaseOperation1
// 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 InputService4TestCaseOperation1Request method.
// req, resp := client.InputService4TestCaseOperation1Request(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
func (c *InputService4ProtocolTest) InputService4TestCaseOperation1Request(input *InputService4TestShapeInputService4TestCaseOperation1Input) (req *request.Request, output *InputService4TestShapeInputService4TestCaseOperation1Output) {
op := &request.Operation{
Name: opInputService4TestCaseOperation1,
HTTPPath: "/",
}
if input == nil {
input = &InputService4TestShapeInputService4TestCaseOperation1Input{}
}
output = &InputService4TestShapeInputService4TestCaseOperation1Output{}
req = c.newRequest(op, input, output)
req.Handlers.Unmarshal.Swap(query.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
return
}
// InputService4TestCaseOperation1 API operation for .
//
// 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 's
// API operation InputService4TestCaseOperation1 for usage and error information.
func (c *InputService4ProtocolTest) InputService4TestCaseOperation1(input *InputService4TestShapeInputService4TestCaseOperation1Input) (*InputService4TestShapeInputService4TestCaseOperation1Output, error) {
req, out := c.InputService4TestCaseOperation1Request(input)
return out, req.Send()
}
// InputService4TestCaseOperation1WithContext is the same as InputService4TestCaseOperation1 with the addition of
// the ability to pass a context and additional request options.
//
// See InputService4TestCaseOperation1 for details on how to use this API operation.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
func (c *InputService4ProtocolTest) InputService4TestCaseOperation1WithContext(ctx aws.Context, input *InputService4TestShapeInputService4TestCaseOperation1Input, opts ...request.Option) (*InputService4TestShapeInputService4TestCaseOperation1Output, error) {
req, out := c.InputService4TestCaseOperation1Request(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
const opInputService4TestCaseOperation2 = "OperationName"
// InputService4TestCaseOperation2Request generates a "aws/request.Request" representing the
// client's request for the InputService4TestCaseOperation2 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 InputService4TestCaseOperation2 for more information on using the InputService4TestCaseOperation2
// 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 InputService4TestCaseOperation2Request method.
// req, resp := client.InputService4TestCaseOperation2Request(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
func (c *InputService4ProtocolTest) InputService4TestCaseOperation2Request(input *InputService4TestShapeInputService4TestCaseOperation2Input) (req *request.Request, output *InputService4TestShapeInputService4TestCaseOperation2Output) {
op := &request.Operation{
Name: opInputService4TestCaseOperation2,
HTTPPath: "/",
}
if input == nil {
input = &InputService4TestShapeInputService4TestCaseOperation2Input{}
}
output = &InputService4TestShapeInputService4TestCaseOperation2Output{}
req = c.newRequest(op, input, output)
req.Handlers.Unmarshal.Swap(query.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
return
}
// InputService4TestCaseOperation2 API operation for .
//
// 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 's
// API operation InputService4TestCaseOperation2 for usage and error information.
func (c *InputService4ProtocolTest) InputService4TestCaseOperation2(input *InputService4TestShapeInputService4TestCaseOperation2Input) (*InputService4TestShapeInputService4TestCaseOperation2Output, error) {
req, out := c.InputService4TestCaseOperation2Request(input)
return out, req.Send()
}
// InputService4TestCaseOperation2WithContext is the same as InputService4TestCaseOperation2 with the addition of
// the ability to pass a context and additional request options.
//
// See InputService4TestCaseOperation2 for details on how to use this API operation.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
func (c *InputService4ProtocolTest) InputService4TestCaseOperation2WithContext(ctx aws.Context, input *InputService4TestShapeInputService4TestCaseOperation2Input, opts ...request.Option) (*InputService4TestShapeInputService4TestCaseOperation2Output, error) {
req, out := c.InputService4TestCaseOperation2Request(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
type InputService4TestShapeInputService4TestCaseOperation1Input struct {
_ struct{} `type:"structure"`
ListArg []*string `type:"list" flattened:"true"`
NamedListArg []*string `locationNameList:"Foo" type:"list" flattened:"true"`
ScalarArg *string `type:"string"`
}
// SetListArg sets the ListArg field's value.
func (s *InputService4TestShapeInputService4TestCaseOperation1Input) SetListArg(v []*string) *InputService4TestShapeInputService4TestCaseOperation1Input {
s.ListArg = v
return s
}
// SetNamedListArg sets the NamedListArg field's value.
func (s *InputService4TestShapeInputService4TestCaseOperation1Input) SetNamedListArg(v []*string) *InputService4TestShapeInputService4TestCaseOperation1Input {
s.NamedListArg = v
return s
}
// SetScalarArg sets the ScalarArg field's value.
func (s *InputService4TestShapeInputService4TestCaseOperation1Input) SetScalarArg(v string) *InputService4TestShapeInputService4TestCaseOperation1Input {
s.ScalarArg = &v
return s
}
type InputService4TestShapeInputService4TestCaseOperation1Output struct {
_ struct{} `type:"structure"`
}
type InputService4TestShapeInputService4TestCaseOperation2Input struct {
_ struct{} `type:"structure"`
ListArg []*string `type:"list" flattened:"true"`
NamedListArg []*string `locationNameList:"Foo" type:"list" flattened:"true"`
ScalarArg *string `type:"string"`
}
// SetListArg sets the ListArg field's value.
func (s *InputService4TestShapeInputService4TestCaseOperation2Input) SetListArg(v []*string) *InputService4TestShapeInputService4TestCaseOperation2Input {
s.ListArg = v
return s
}
// SetNamedListArg sets the NamedListArg field's value.
func (s *InputService4TestShapeInputService4TestCaseOperation2Input) SetNamedListArg(v []*string) *InputService4TestShapeInputService4TestCaseOperation2Input {
s.NamedListArg = v
return s
}
// SetScalarArg sets the ScalarArg field's value.
func (s *InputService4TestShapeInputService4TestCaseOperation2Input) SetScalarArg(v string) *InputService4TestShapeInputService4TestCaseOperation2Input {
s.ScalarArg = &v
return s
}
type InputService4TestShapeInputService4TestCaseOperation2Output struct {
_ struct{} `type:"structure"`
}
// InputService5ProtocolTest provides the API operation methods for making requests to
// . See this package's package overview docs
// for details on the service.
//
// InputService5ProtocolTest methods are safe to use concurrently. It is not safe to
// modify mutate any of the struct's properties though.
type InputService5ProtocolTest struct {
*client.Client
}
// New creates a new instance of the InputService5ProtocolTest 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 InputService5ProtocolTest client from just a session.
// svc := inputservice5protocoltest.New(mySession)
//
// // Create a InputService5ProtocolTest client with additional configuration
// svc := inputservice5protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2"))
func NewInputService5ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *InputService5ProtocolTest {
c := p.ClientConfig("inputservice5protocoltest", cfgs...)
return newInputService5ProtocolTestClient(*c.Config, c.Handlers, c.PartitionID, c.Endpoint, c.SigningRegion, c.SigningName)
}
// newClient creates, initializes and returns a new service client instance.
func newInputService5ProtocolTestClient(cfg aws.Config, handlers request.Handlers, partitionID, endpoint, signingRegion, signingName string) *InputService5ProtocolTest {
svc := &InputService5ProtocolTest{
Client: client.New(
cfg,
metadata.ClientInfo{
ServiceName: "InputService5ProtocolTest",
ServiceID: "InputService5ProtocolTest",
SigningName: signingName,
SigningRegion: signingRegion,
PartitionID: partitionID,
Endpoint: endpoint,
APIVersion: "2014-01-01",
},
handlers,
),
}
// Handlers
svc.Handlers.Sign.PushBackNamed(v4.SignRequestHandler)
svc.Handlers.Build.PushBackNamed(query.BuildHandler)
svc.Handlers.Unmarshal.PushBackNamed(query.UnmarshalHandler)
svc.Handlers.UnmarshalMeta.PushBackNamed(query.UnmarshalMetaHandler)
svc.Handlers.UnmarshalError.PushBackNamed(query.UnmarshalErrorHandler)
return svc
}
// newRequest creates a new request for a InputService5ProtocolTest operation and runs any
// custom request initialization.
func (c *InputService5ProtocolTest) newRequest(op *request.Operation, params, data interface{}) *request.Request {
req := c.NewRequest(op, params, data)
return req
}
const opInputService5TestCaseOperation1 = "OperationName"
// InputService5TestCaseOperation1Request generates a "aws/request.Request" representing the
// client's request for the InputService5TestCaseOperation1 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 InputService5TestCaseOperation1 for more information on using the InputService5TestCaseOperation1
// 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 InputService5TestCaseOperation1Request method.
// req, resp := client.InputService5TestCaseOperation1Request(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
func (c *InputService5ProtocolTest) InputService5TestCaseOperation1Request(input *InputService5TestShapeInputService5TestCaseOperation1Input) (req *request.Request, output *InputService5TestShapeInputService5TestCaseOperation1Output) {
op := &request.Operation{
Name: opInputService5TestCaseOperation1,
HTTPPath: "/",
}
if input == nil {
input = &InputService5TestShapeInputService5TestCaseOperation1Input{}
}
output = &InputService5TestShapeInputService5TestCaseOperation1Output{}
req = c.newRequest(op, input, output)
req.Handlers.Unmarshal.Swap(query.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
return
}
// InputService5TestCaseOperation1 API operation for .
//
// 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 's
// API operation InputService5TestCaseOperation1 for usage and error information.
func (c *InputService5ProtocolTest) InputService5TestCaseOperation1(input *InputService5TestShapeInputService5TestCaseOperation1Input) (*InputService5TestShapeInputService5TestCaseOperation1Output, error) {
req, out := c.InputService5TestCaseOperation1Request(input)
return out, req.Send()
}
// InputService5TestCaseOperation1WithContext is the same as InputService5TestCaseOperation1 with the addition of
// the ability to pass a context and additional request options.
//
// See InputService5TestCaseOperation1 for details on how to use this API operation.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
func (c *InputService5ProtocolTest) InputService5TestCaseOperation1WithContext(ctx aws.Context, input *InputService5TestShapeInputService5TestCaseOperation1Input, opts ...request.Option) (*InputService5TestShapeInputService5TestCaseOperation1Output, error) {
req, out := c.InputService5TestCaseOperation1Request(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
type InputService5TestShapeInputService5TestCaseOperation1Input struct {
_ struct{} `type:"structure"`
MapArg map[string]*string `type:"map" flattened:"true"`
}
// SetMapArg sets the MapArg field's value.
func (s *InputService5TestShapeInputService5TestCaseOperation1Input) SetMapArg(v map[string]*string) *InputService5TestShapeInputService5TestCaseOperation1Input {
s.MapArg = v
return s
}
type InputService5TestShapeInputService5TestCaseOperation1Output struct {
_ struct{} `type:"structure"`
}
// InputService6ProtocolTest provides the API operation methods for making requests to
// . See this package's package overview docs
// for details on the service.
//
// InputService6ProtocolTest methods are safe to use concurrently. It is not safe to
// modify mutate any of the struct's properties though.
type InputService6ProtocolTest struct {
*client.Client
}
// New creates a new instance of the InputService6ProtocolTest 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 InputService6ProtocolTest client from just a session.
// svc := inputservice6protocoltest.New(mySession)
//
// // Create a InputService6ProtocolTest client with additional configuration
// svc := inputservice6protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2"))
func NewInputService6ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *InputService6ProtocolTest {
c := p.ClientConfig("inputservice6protocoltest", cfgs...)
return newInputService6ProtocolTestClient(*c.Config, c.Handlers, c.PartitionID, c.Endpoint, c.SigningRegion, c.SigningName)
}
// newClient creates, initializes and returns a new service client instance.
func newInputService6ProtocolTestClient(cfg aws.Config, handlers request.Handlers, partitionID, endpoint, signingRegion, signingName string) *InputService6ProtocolTest {
svc := &InputService6ProtocolTest{
Client: client.New(
cfg,
metadata.ClientInfo{
ServiceName: "InputService6ProtocolTest",
ServiceID: "InputService6ProtocolTest",
SigningName: signingName,
SigningRegion: signingRegion,
PartitionID: partitionID,
Endpoint: endpoint,
APIVersion: "2014-01-01",
},
handlers,
),
}
// Handlers
svc.Handlers.Sign.PushBackNamed(v4.SignRequestHandler)
svc.Handlers.Build.PushBackNamed(query.BuildHandler)
svc.Handlers.Unmarshal.PushBackNamed(query.UnmarshalHandler)
svc.Handlers.UnmarshalMeta.PushBackNamed(query.UnmarshalMetaHandler)
svc.Handlers.UnmarshalError.PushBackNamed(query.UnmarshalErrorHandler)
return svc
}
// newRequest creates a new request for a InputService6ProtocolTest operation and runs any
// custom request initialization.
func (c *InputService6ProtocolTest) newRequest(op *request.Operation, params, data interface{}) *request.Request {
req := c.NewRequest(op, params, data)
return req
}
const opInputService6TestCaseOperation1 = "OperationName"
// InputService6TestCaseOperation1Request generates a "aws/request.Request" representing the
// client's request for the InputService6TestCaseOperation1 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 InputService6TestCaseOperation1 for more information on using the InputService6TestCaseOperation1
// 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 InputService6TestCaseOperation1Request method.
// req, resp := client.InputService6TestCaseOperation1Request(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
func (c *InputService6ProtocolTest) InputService6TestCaseOperation1Request(input *InputService6TestShapeInputService6TestCaseOperation1Input) (req *request.Request, output *InputService6TestShapeInputService6TestCaseOperation1Output) {
op := &request.Operation{
Name: opInputService6TestCaseOperation1,
HTTPPath: "/",
}
if input == nil {
input = &InputService6TestShapeInputService6TestCaseOperation1Input{}
}
output = &InputService6TestShapeInputService6TestCaseOperation1Output{}
req = c.newRequest(op, input, output)
req.Handlers.Unmarshal.Swap(query.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
return
}
// InputService6TestCaseOperation1 API operation for .
//
// 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 's
// API operation InputService6TestCaseOperation1 for usage and error information.
func (c *InputService6ProtocolTest) InputService6TestCaseOperation1(input *InputService6TestShapeInputService6TestCaseOperation1Input) (*InputService6TestShapeInputService6TestCaseOperation1Output, error) {
req, out := c.InputService6TestCaseOperation1Request(input)
return out, req.Send()
}
// InputService6TestCaseOperation1WithContext is the same as InputService6TestCaseOperation1 with the addition of
// the ability to pass a context and additional request options.
//
// See InputService6TestCaseOperation1 for details on how to use this API operation.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
func (c *InputService6ProtocolTest) InputService6TestCaseOperation1WithContext(ctx aws.Context, input *InputService6TestShapeInputService6TestCaseOperation1Input, opts ...request.Option) (*InputService6TestShapeInputService6TestCaseOperation1Output, error) {
req, out := c.InputService6TestCaseOperation1Request(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
type InputService6TestShapeInputService6TestCaseOperation1Input struct {
_ struct{} `type:"structure"`
ListArg []*string `locationNameList:"item" type:"list"`
}
// SetListArg sets the ListArg field's value.
func (s *InputService6TestShapeInputService6TestCaseOperation1Input) SetListArg(v []*string) *InputService6TestShapeInputService6TestCaseOperation1Input {
s.ListArg = v
return s
}
type InputService6TestShapeInputService6TestCaseOperation1Output struct {
_ struct{} `type:"structure"`
}
// InputService7ProtocolTest provides the API operation methods for making requests to
// . See this package's package overview docs
// for details on the service.
//
// InputService7ProtocolTest methods are safe to use concurrently. It is not safe to
// modify mutate any of the struct's properties though.
type InputService7ProtocolTest struct {
*client.Client
}
// New creates a new instance of the InputService7ProtocolTest 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 InputService7ProtocolTest client from just a session.
// svc := inputservice7protocoltest.New(mySession)
//
// // Create a InputService7ProtocolTest client with additional configuration
// svc := inputservice7protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2"))
func NewInputService7ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *InputService7ProtocolTest {
c := p.ClientConfig("inputservice7protocoltest", cfgs...)
return newInputService7ProtocolTestClient(*c.Config, c.Handlers, c.PartitionID, c.Endpoint, c.SigningRegion, c.SigningName)
}
// newClient creates, initializes and returns a new service client instance.
func newInputService7ProtocolTestClient(cfg aws.Config, handlers request.Handlers, partitionID, endpoint, signingRegion, signingName string) *InputService7ProtocolTest {
svc := &InputService7ProtocolTest{
Client: client.New(
cfg,
metadata.ClientInfo{
ServiceName: "InputService7ProtocolTest",
ServiceID: "InputService7ProtocolTest",
SigningName: signingName,
SigningRegion: signingRegion,
PartitionID: partitionID,
Endpoint: endpoint,
APIVersion: "2014-01-01",
},
handlers,
),
}
// Handlers
svc.Handlers.Sign.PushBackNamed(v4.SignRequestHandler)
svc.Handlers.Build.PushBackNamed(query.BuildHandler)
svc.Handlers.Unmarshal.PushBackNamed(query.UnmarshalHandler)
svc.Handlers.UnmarshalMeta.PushBackNamed(query.UnmarshalMetaHandler)
svc.Handlers.UnmarshalError.PushBackNamed(query.UnmarshalErrorHandler)
return svc
}
// newRequest creates a new request for a InputService7ProtocolTest operation and runs any
// custom request initialization.
func (c *InputService7ProtocolTest) newRequest(op *request.Operation, params, data interface{}) *request.Request {
req := c.NewRequest(op, params, data)
return req
}
const opInputService7TestCaseOperation1 = "OperationName"
// InputService7TestCaseOperation1Request generates a "aws/request.Request" representing the
// client's request for the InputService7TestCaseOperation1 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 InputService7TestCaseOperation1 for more information on using the InputService7TestCaseOperation1
// 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 InputService7TestCaseOperation1Request method.
// req, resp := client.InputService7TestCaseOperation1Request(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
func (c *InputService7ProtocolTest) InputService7TestCaseOperation1Request(input *InputService7TestShapeInputService7TestCaseOperation1Input) (req *request.Request, output *InputService7TestShapeInputService7TestCaseOperation1Output) {
op := &request.Operation{
Name: opInputService7TestCaseOperation1,
HTTPPath: "/",
}
if input == nil {
input = &InputService7TestShapeInputService7TestCaseOperation1Input{}
}
output = &InputService7TestShapeInputService7TestCaseOperation1Output{}
req = c.newRequest(op, input, output)
req.Handlers.Unmarshal.Swap(query.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
return
}
// InputService7TestCaseOperation1 API operation for .
//
// 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 's
// API operation InputService7TestCaseOperation1 for usage and error information.
func (c *InputService7ProtocolTest) InputService7TestCaseOperation1(input *InputService7TestShapeInputService7TestCaseOperation1Input) (*InputService7TestShapeInputService7TestCaseOperation1Output, error) {
req, out := c.InputService7TestCaseOperation1Request(input)
return out, req.Send()
}
// InputService7TestCaseOperation1WithContext is the same as InputService7TestCaseOperation1 with the addition of
// the ability to pass a context and additional request options.
//
// See InputService7TestCaseOperation1 for details on how to use this API operation.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
func (c *InputService7ProtocolTest) InputService7TestCaseOperation1WithContext(ctx aws.Context, input *InputService7TestShapeInputService7TestCaseOperation1Input, opts ...request.Option) (*InputService7TestShapeInputService7TestCaseOperation1Output, error) {
req, out := c.InputService7TestCaseOperation1Request(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
type InputService7TestShapeInputService7TestCaseOperation1Input struct {
_ struct{} `type:"structure"`
ListArg []*string `locationNameList:"ListArgLocation" type:"list" flattened:"true"`
ScalarArg *string `type:"string"`
}
// SetListArg sets the ListArg field's value.
func (s *InputService7TestShapeInputService7TestCaseOperation1Input) SetListArg(v []*string) *InputService7TestShapeInputService7TestCaseOperation1Input {
s.ListArg = v
return s
}
// SetScalarArg sets the ScalarArg field's value.
func (s *InputService7TestShapeInputService7TestCaseOperation1Input) SetScalarArg(v string) *InputService7TestShapeInputService7TestCaseOperation1Input {
s.ScalarArg = &v
return s
}
type InputService7TestShapeInputService7TestCaseOperation1Output struct {
_ struct{} `type:"structure"`
}
// InputService8ProtocolTest provides the API operation methods for making requests to
// . See this package's package overview docs
// for details on the service.
//
// InputService8ProtocolTest methods are safe to use concurrently. It is not safe to
// modify mutate any of the struct's properties though.
type InputService8ProtocolTest struct {
*client.Client
}
// New creates a new instance of the InputService8ProtocolTest 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 InputService8ProtocolTest client from just a session.
// svc := inputservice8protocoltest.New(mySession)
//
// // Create a InputService8ProtocolTest client with additional configuration
// svc := inputservice8protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2"))
func NewInputService8ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *InputService8ProtocolTest {
c := p.ClientConfig("inputservice8protocoltest", cfgs...)
return newInputService8ProtocolTestClient(*c.Config, c.Handlers, c.PartitionID, c.Endpoint, c.SigningRegion, c.SigningName)
}
// newClient creates, initializes and returns a new service client instance.
func newInputService8ProtocolTestClient(cfg aws.Config, handlers request.Handlers, partitionID, endpoint, signingRegion, signingName string) *InputService8ProtocolTest {
svc := &InputService8ProtocolTest{
Client: client.New(
cfg,
metadata.ClientInfo{
ServiceName: "InputService8ProtocolTest",
ServiceID: "InputService8ProtocolTest",
SigningName: signingName,
SigningRegion: signingRegion,
PartitionID: partitionID,
Endpoint: endpoint,
APIVersion: "2014-01-01",
},
handlers,
),
}
// Handlers
svc.Handlers.Sign.PushBackNamed(v4.SignRequestHandler)
svc.Handlers.Build.PushBackNamed(query.BuildHandler)
svc.Handlers.Unmarshal.PushBackNamed(query.UnmarshalHandler)
svc.Handlers.UnmarshalMeta.PushBackNamed(query.UnmarshalMetaHandler)
svc.Handlers.UnmarshalError.PushBackNamed(query.UnmarshalErrorHandler)
return svc
}
// newRequest creates a new request for a InputService8ProtocolTest operation and runs any
// custom request initialization.
func (c *InputService8ProtocolTest) newRequest(op *request.Operation, params, data interface{}) *request.Request {
req := c.NewRequest(op, params, data)
return req
}
const opInputService8TestCaseOperation1 = "OperationName"
// InputService8TestCaseOperation1Request generates a "aws/request.Request" representing the
// client's request for the InputService8TestCaseOperation1 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 InputService8TestCaseOperation1 for more information on using the InputService8TestCaseOperation1
// 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 InputService8TestCaseOperation1Request method.
// req, resp := client.InputService8TestCaseOperation1Request(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
func (c *InputService8ProtocolTest) InputService8TestCaseOperation1Request(input *InputService8TestShapeInputService8TestCaseOperation1Input) (req *request.Request, output *InputService8TestShapeInputService8TestCaseOperation1Output) {
op := &request.Operation{
Name: opInputService8TestCaseOperation1,
HTTPPath: "/",
}
if input == nil {
input = &InputService8TestShapeInputService8TestCaseOperation1Input{}
}
output = &InputService8TestShapeInputService8TestCaseOperation1Output{}
req = c.newRequest(op, input, output)
req.Handlers.Unmarshal.Swap(query.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
return
}
// InputService8TestCaseOperation1 API operation for .
//
// 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 's
// API operation InputService8TestCaseOperation1 for usage and error information.
func (c *InputService8ProtocolTest) InputService8TestCaseOperation1(input *InputService8TestShapeInputService8TestCaseOperation1Input) (*InputService8TestShapeInputService8TestCaseOperation1Output, error) {
req, out := c.InputService8TestCaseOperation1Request(input)
return out, req.Send()
}
// InputService8TestCaseOperation1WithContext is the same as InputService8TestCaseOperation1 with the addition of
// the ability to pass a context and additional request options.
//
// See InputService8TestCaseOperation1 for details on how to use this API operation.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
func (c *InputService8ProtocolTest) InputService8TestCaseOperation1WithContext(ctx aws.Context, input *InputService8TestShapeInputService8TestCaseOperation1Input, opts ...request.Option) (*InputService8TestShapeInputService8TestCaseOperation1Output, error) {
req, out := c.InputService8TestCaseOperation1Request(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
type InputService8TestShapeInputService8TestCaseOperation1Input struct {
_ struct{} `type:"structure"`
MapArg map[string]*string `type:"map"`
}
// SetMapArg sets the MapArg field's value.
func (s *InputService8TestShapeInputService8TestCaseOperation1Input) SetMapArg(v map[string]*string) *InputService8TestShapeInputService8TestCaseOperation1Input {
s.MapArg = v
return s
}
type InputService8TestShapeInputService8TestCaseOperation1Output struct {
_ struct{} `type:"structure"`
}
// InputService9ProtocolTest provides the API operation methods for making requests to
// . See this package's package overview docs
// for details on the service.
//
// InputService9ProtocolTest methods are safe to use concurrently. It is not safe to
// modify mutate any of the struct's properties though.
type InputService9ProtocolTest struct {
*client.Client
}
// New creates a new instance of the InputService9ProtocolTest 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 InputService9ProtocolTest client from just a session.
// svc := inputservice9protocoltest.New(mySession)
//
// // Create a InputService9ProtocolTest client with additional configuration
// svc := inputservice9protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2"))
func NewInputService9ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *InputService9ProtocolTest {
c := p.ClientConfig("inputservice9protocoltest", cfgs...)
return newInputService9ProtocolTestClient(*c.Config, c.Handlers, c.PartitionID, c.Endpoint, c.SigningRegion, c.SigningName)
}
// newClient creates, initializes and returns a new service client instance.
func newInputService9ProtocolTestClient(cfg aws.Config, handlers request.Handlers, partitionID, endpoint, signingRegion, signingName string) *InputService9ProtocolTest {
svc := &InputService9ProtocolTest{
Client: client.New(
cfg,
metadata.ClientInfo{
ServiceName: "InputService9ProtocolTest",
ServiceID: "InputService9ProtocolTest",
SigningName: signingName,
SigningRegion: signingRegion,
PartitionID: partitionID,
Endpoint: endpoint,
APIVersion: "2014-01-01",
},
handlers,
),
}
// Handlers
svc.Handlers.Sign.PushBackNamed(v4.SignRequestHandler)
svc.Handlers.Build.PushBackNamed(query.BuildHandler)
svc.Handlers.Unmarshal.PushBackNamed(query.UnmarshalHandler)
svc.Handlers.UnmarshalMeta.PushBackNamed(query.UnmarshalMetaHandler)
svc.Handlers.UnmarshalError.PushBackNamed(query.UnmarshalErrorHandler)
return svc
}
// newRequest creates a new request for a InputService9ProtocolTest operation and runs any
// custom request initialization.
func (c *InputService9ProtocolTest) newRequest(op *request.Operation, params, data interface{}) *request.Request {
req := c.NewRequest(op, params, data)
return req
}
const opInputService9TestCaseOperation1 = "OperationName"
// InputService9TestCaseOperation1Request generates a "aws/request.Request" representing the
// client's request for the InputService9TestCaseOperation1 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 InputService9TestCaseOperation1 for more information on using the InputService9TestCaseOperation1
// 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 InputService9TestCaseOperation1Request method.
// req, resp := client.InputService9TestCaseOperation1Request(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
func (c *InputService9ProtocolTest) InputService9TestCaseOperation1Request(input *InputService9TestShapeInputService9TestCaseOperation1Input) (req *request.Request, output *InputService9TestShapeInputService9TestCaseOperation1Output) {
op := &request.Operation{
Name: opInputService9TestCaseOperation1,
HTTPPath: "/",
}
if input == nil {
input = &InputService9TestShapeInputService9TestCaseOperation1Input{}
}
output = &InputService9TestShapeInputService9TestCaseOperation1Output{}
req = c.newRequest(op, input, output)
req.Handlers.Unmarshal.Swap(query.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
return
}
// InputService9TestCaseOperation1 API operation for .
//
// 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 's
// API operation InputService9TestCaseOperation1 for usage and error information.
func (c *InputService9ProtocolTest) InputService9TestCaseOperation1(input *InputService9TestShapeInputService9TestCaseOperation1Input) (*InputService9TestShapeInputService9TestCaseOperation1Output, error) {
req, out := c.InputService9TestCaseOperation1Request(input)
return out, req.Send()
}
// InputService9TestCaseOperation1WithContext is the same as InputService9TestCaseOperation1 with the addition of
// the ability to pass a context and additional request options.
//
// See InputService9TestCaseOperation1 for details on how to use this API operation.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
func (c *InputService9ProtocolTest) InputService9TestCaseOperation1WithContext(ctx aws.Context, input *InputService9TestShapeInputService9TestCaseOperation1Input, opts ...request.Option) (*InputService9TestShapeInputService9TestCaseOperation1Output, error) {
req, out := c.InputService9TestCaseOperation1Request(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
type InputService9TestShapeInputService9TestCaseOperation1Input struct {
_ struct{} `type:"structure"`
MapArg map[string]*string `locationNameKey:"TheKey" locationNameValue:"TheValue" type:"map"`
}
// SetMapArg sets the MapArg field's value.
func (s *InputService9TestShapeInputService9TestCaseOperation1Input) SetMapArg(v map[string]*string) *InputService9TestShapeInputService9TestCaseOperation1Input {
s.MapArg = v
return s
}
type InputService9TestShapeInputService9TestCaseOperation1Output struct {
_ struct{} `type:"structure"`
}
// InputService10ProtocolTest provides the API operation methods for making requests to
// . See this package's package overview docs
// for details on the service.
//
// InputService10ProtocolTest methods are safe to use concurrently. It is not safe to
// modify mutate any of the struct's properties though.
type InputService10ProtocolTest struct {
*client.Client
}
// New creates a new instance of the InputService10ProtocolTest 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 InputService10ProtocolTest client from just a session.
// svc := inputservice10protocoltest.New(mySession)
//
// // Create a InputService10ProtocolTest client with additional configuration
// svc := inputservice10protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2"))
func NewInputService10ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *InputService10ProtocolTest {
c := p.ClientConfig("inputservice10protocoltest", cfgs...)
return newInputService10ProtocolTestClient(*c.Config, c.Handlers, c.PartitionID, c.Endpoint, c.SigningRegion, c.SigningName)
}
// newClient creates, initializes and returns a new service client instance.
func newInputService10ProtocolTestClient(cfg aws.Config, handlers request.Handlers, partitionID, endpoint, signingRegion, signingName string) *InputService10ProtocolTest {
svc := &InputService10ProtocolTest{
Client: client.New(
cfg,
metadata.ClientInfo{
ServiceName: "InputService10ProtocolTest",
ServiceID: "InputService10ProtocolTest",
SigningName: signingName,
SigningRegion: signingRegion,
PartitionID: partitionID,
Endpoint: endpoint,
APIVersion: "2014-01-01",
},
handlers,
),
}
// Handlers
svc.Handlers.Sign.PushBackNamed(v4.SignRequestHandler)
svc.Handlers.Build.PushBackNamed(query.BuildHandler)
svc.Handlers.Unmarshal.PushBackNamed(query.UnmarshalHandler)
svc.Handlers.UnmarshalMeta.PushBackNamed(query.UnmarshalMetaHandler)
svc.Handlers.UnmarshalError.PushBackNamed(query.UnmarshalErrorHandler)
return svc
}
// newRequest creates a new request for a InputService10ProtocolTest operation and runs any
// custom request initialization.
func (c *InputService10ProtocolTest) newRequest(op *request.Operation, params, data interface{}) *request.Request {
req := c.NewRequest(op, params, data)
return req
}
const opInputService10TestCaseOperation1 = "OperationName"
// InputService10TestCaseOperation1Request generates a "aws/request.Request" representing the
// client's request for the InputService10TestCaseOperation1 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 InputService10TestCaseOperation1 for more information on using the InputService10TestCaseOperation1
// 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 InputService10TestCaseOperation1Request method.
// req, resp := client.InputService10TestCaseOperation1Request(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
func (c *InputService10ProtocolTest) InputService10TestCaseOperation1Request(input *InputService10TestShapeInputService10TestCaseOperation1Input) (req *request.Request, output *InputService10TestShapeInputService10TestCaseOperation1Output) {
op := &request.Operation{
Name: opInputService10TestCaseOperation1,
HTTPPath: "/",
}
if input == nil {
input = &InputService10TestShapeInputService10TestCaseOperation1Input{}
}
output = &InputService10TestShapeInputService10TestCaseOperation1Output{}
req = c.newRequest(op, input, output)
req.Handlers.Unmarshal.Swap(query.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
return
}
// InputService10TestCaseOperation1 API operation for .
//
// 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 's
// API operation InputService10TestCaseOperation1 for usage and error information.
func (c *InputService10ProtocolTest) InputService10TestCaseOperation1(input *InputService10TestShapeInputService10TestCaseOperation1Input) (*InputService10TestShapeInputService10TestCaseOperation1Output, error) {
req, out := c.InputService10TestCaseOperation1Request(input)
return out, req.Send()
}
// InputService10TestCaseOperation1WithContext is the same as InputService10TestCaseOperation1 with the addition of
// the ability to pass a context and additional request options.
//
// See InputService10TestCaseOperation1 for details on how to use this API operation.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
func (c *InputService10ProtocolTest) InputService10TestCaseOperation1WithContext(ctx aws.Context, input *InputService10TestShapeInputService10TestCaseOperation1Input, opts ...request.Option) (*InputService10TestShapeInputService10TestCaseOperation1Output, error) {
req, out := c.InputService10TestCaseOperation1Request(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
type InputService10TestShapeInputService10TestCaseOperation1Input struct {
_ struct{} `type:"structure"`
// BlobArg is automatically base64 encoded/decoded by the SDK.
BlobArg []byte `type:"blob"`
}
// SetBlobArg sets the BlobArg field's value.
func (s *InputService10TestShapeInputService10TestCaseOperation1Input) SetBlobArg(v []byte) *InputService10TestShapeInputService10TestCaseOperation1Input {
s.BlobArg = v
return s
}
type InputService10TestShapeInputService10TestCaseOperation1Output struct {
_ struct{} `type:"structure"`
}
// InputService11ProtocolTest provides the API operation methods for making requests to
// . See this package's package overview docs
// for details on the service.
//
// InputService11ProtocolTest methods are safe to use concurrently. It is not safe to
// modify mutate any of the struct's properties though.
type InputService11ProtocolTest struct {
*client.Client
}
// New creates a new instance of the InputService11ProtocolTest 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 InputService11ProtocolTest client from just a session.
// svc := inputservice11protocoltest.New(mySession)
//
// // Create a InputService11ProtocolTest client with additional configuration
// svc := inputservice11protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2"))
func NewInputService11ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *InputService11ProtocolTest {
c := p.ClientConfig("inputservice11protocoltest", cfgs...)
return newInputService11ProtocolTestClient(*c.Config, c.Handlers, c.PartitionID, c.Endpoint, c.SigningRegion, c.SigningName)
}
// newClient creates, initializes and returns a new service client instance.
func newInputService11ProtocolTestClient(cfg aws.Config, handlers request.Handlers, partitionID, endpoint, signingRegion, signingName string) *InputService11ProtocolTest {
svc := &InputService11ProtocolTest{
Client: client.New(
cfg,
metadata.ClientInfo{
ServiceName: "InputService11ProtocolTest",
ServiceID: "InputService11ProtocolTest",
SigningName: signingName,
SigningRegion: signingRegion,
PartitionID: partitionID,
Endpoint: endpoint,
APIVersion: "2014-01-01",
},
handlers,
),
}
// Handlers
svc.Handlers.Sign.PushBackNamed(v4.SignRequestHandler)
svc.Handlers.Build.PushBackNamed(query.BuildHandler)
svc.Handlers.Unmarshal.PushBackNamed(query.UnmarshalHandler)
svc.Handlers.UnmarshalMeta.PushBackNamed(query.UnmarshalMetaHandler)
svc.Handlers.UnmarshalError.PushBackNamed(query.UnmarshalErrorHandler)
return svc
}
// newRequest creates a new request for a InputService11ProtocolTest operation and runs any
// custom request initialization.
func (c *InputService11ProtocolTest) newRequest(op *request.Operation, params, data interface{}) *request.Request {
req := c.NewRequest(op, params, data)
return req
}
const opInputService11TestCaseOperation1 = "OperationName"
// InputService11TestCaseOperation1Request generates a "aws/request.Request" representing the
// client's request for the InputService11TestCaseOperation1 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 InputService11TestCaseOperation1 for more information on using the InputService11TestCaseOperation1
// 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 InputService11TestCaseOperation1Request method.
// req, resp := client.InputService11TestCaseOperation1Request(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
func (c *InputService11ProtocolTest) InputService11TestCaseOperation1Request(input *InputService11TestShapeInputService11TestCaseOperation1Input) (req *request.Request, output *InputService11TestShapeInputService11TestCaseOperation1Output) {
op := &request.Operation{
Name: opInputService11TestCaseOperation1,
HTTPPath: "/",
}
if input == nil {
input = &InputService11TestShapeInputService11TestCaseOperation1Input{}
}
output = &InputService11TestShapeInputService11TestCaseOperation1Output{}
req = c.newRequest(op, input, output)
req.Handlers.Unmarshal.Swap(query.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
return
}
// InputService11TestCaseOperation1 API operation for .
//
// 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 's
// API operation InputService11TestCaseOperation1 for usage and error information.
func (c *InputService11ProtocolTest) InputService11TestCaseOperation1(input *InputService11TestShapeInputService11TestCaseOperation1Input) (*InputService11TestShapeInputService11TestCaseOperation1Output, error) {
req, out := c.InputService11TestCaseOperation1Request(input)
return out, req.Send()
}
// InputService11TestCaseOperation1WithContext is the same as InputService11TestCaseOperation1 with the addition of
// the ability to pass a context and additional request options.
//
// See InputService11TestCaseOperation1 for details on how to use this API operation.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
func (c *InputService11ProtocolTest) InputService11TestCaseOperation1WithContext(ctx aws.Context, input *InputService11TestShapeInputService11TestCaseOperation1Input, opts ...request.Option) (*InputService11TestShapeInputService11TestCaseOperation1Output, error) {
req, out := c.InputService11TestCaseOperation1Request(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
type InputService11TestShapeInputService11TestCaseOperation1Input struct {
_ struct{} `type:"structure"`
BlobArgs [][]byte `type:"list" flattened:"true"`
}
// SetBlobArgs sets the BlobArgs field's value.
func (s *InputService11TestShapeInputService11TestCaseOperation1Input) SetBlobArgs(v [][]byte) *InputService11TestShapeInputService11TestCaseOperation1Input {
s.BlobArgs = v
return s
}
type InputService11TestShapeInputService11TestCaseOperation1Output struct {
_ struct{} `type:"structure"`
}
// InputService12ProtocolTest provides the API operation methods for making requests to
// . See this package's package overview docs
// for details on the service.
//
// InputService12ProtocolTest methods are safe to use concurrently. It is not safe to
// modify mutate any of the struct's properties though.
type InputService12ProtocolTest struct {
*client.Client
}
// New creates a new instance of the InputService12ProtocolTest 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 InputService12ProtocolTest client from just a session.
// svc := inputservice12protocoltest.New(mySession)
//
// // Create a InputService12ProtocolTest client with additional configuration
// svc := inputservice12protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2"))
func NewInputService12ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *InputService12ProtocolTest {
c := p.ClientConfig("inputservice12protocoltest", cfgs...)
return newInputService12ProtocolTestClient(*c.Config, c.Handlers, c.PartitionID, c.Endpoint, c.SigningRegion, c.SigningName)
}
// newClient creates, initializes and returns a new service client instance.
func newInputService12ProtocolTestClient(cfg aws.Config, handlers request.Handlers, partitionID, endpoint, signingRegion, signingName string) *InputService12ProtocolTest {
svc := &InputService12ProtocolTest{
Client: client.New(
cfg,
metadata.ClientInfo{
ServiceName: "InputService12ProtocolTest",
ServiceID: "InputService12ProtocolTest",
SigningName: signingName,
SigningRegion: signingRegion,
PartitionID: partitionID,
Endpoint: endpoint,
APIVersion: "2014-01-01",
},
handlers,
),
}
// Handlers
svc.Handlers.Sign.PushBackNamed(v4.SignRequestHandler)
svc.Handlers.Build.PushBackNamed(query.BuildHandler)
svc.Handlers.Unmarshal.PushBackNamed(query.UnmarshalHandler)
svc.Handlers.UnmarshalMeta.PushBackNamed(query.UnmarshalMetaHandler)
svc.Handlers.UnmarshalError.PushBackNamed(query.UnmarshalErrorHandler)
return svc
}
// newRequest creates a new request for a InputService12ProtocolTest operation and runs any
// custom request initialization.
func (c *InputService12ProtocolTest) newRequest(op *request.Operation, params, data interface{}) *request.Request {
req := c.NewRequest(op, params, data)
return req
}
const opInputService12TestCaseOperation1 = "OperationName"
// InputService12TestCaseOperation1Request generates a "aws/request.Request" representing the
// client's request for the InputService12TestCaseOperation1 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 InputService12TestCaseOperation1 for more information on using the InputService12TestCaseOperation1
// 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 InputService12TestCaseOperation1Request method.
// req, resp := client.InputService12TestCaseOperation1Request(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
func (c *InputService12ProtocolTest) InputService12TestCaseOperation1Request(input *InputService12TestShapeInputService12TestCaseOperation1Input) (req *request.Request, output *InputService12TestShapeInputService12TestCaseOperation1Output) {
op := &request.Operation{
Name: opInputService12TestCaseOperation1,
HTTPPath: "/",
}
if input == nil {
input = &InputService12TestShapeInputService12TestCaseOperation1Input{}
}
output = &InputService12TestShapeInputService12TestCaseOperation1Output{}
req = c.newRequest(op, input, output)
req.Handlers.Unmarshal.Swap(query.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
return
}
// InputService12TestCaseOperation1 API operation for .
//
// 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 's
// API operation InputService12TestCaseOperation1 for usage and error information.
func (c *InputService12ProtocolTest) InputService12TestCaseOperation1(input *InputService12TestShapeInputService12TestCaseOperation1Input) (*InputService12TestShapeInputService12TestCaseOperation1Output, error) {
req, out := c.InputService12TestCaseOperation1Request(input)
return out, req.Send()
}
// InputService12TestCaseOperation1WithContext is the same as InputService12TestCaseOperation1 with the addition of
// the ability to pass a context and additional request options.
//
// See InputService12TestCaseOperation1 for details on how to use this API operation.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
func (c *InputService12ProtocolTest) InputService12TestCaseOperation1WithContext(ctx aws.Context, input *InputService12TestShapeInputService12TestCaseOperation1Input, opts ...request.Option) (*InputService12TestShapeInputService12TestCaseOperation1Output, error) {
req, out := c.InputService12TestCaseOperation1Request(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
type InputService12TestShapeInputService12TestCaseOperation1Input struct {
_ struct{} `type:"structure"`
TimeArg *time.Time `type:"timestamp"`
TimeCustom *time.Time `type:"timestamp" timestampFormat:"unixTimestamp"`
TimeFormat *time.Time `type:"timestamp" timestampFormat:"unixTimestamp"`
}
// SetTimeArg sets the TimeArg field's value.
func (s *InputService12TestShapeInputService12TestCaseOperation1Input) SetTimeArg(v time.Time) *InputService12TestShapeInputService12TestCaseOperation1Input {
s.TimeArg = &v
return s
}
// SetTimeCustom sets the TimeCustom field's value.
func (s *InputService12TestShapeInputService12TestCaseOperation1Input) SetTimeCustom(v time.Time) *InputService12TestShapeInputService12TestCaseOperation1Input {
s.TimeCustom = &v
return s
}
// SetTimeFormat sets the TimeFormat field's value.
func (s *InputService12TestShapeInputService12TestCaseOperation1Input) SetTimeFormat(v time.Time) *InputService12TestShapeInputService12TestCaseOperation1Input {
s.TimeFormat = &v
return s
}
type InputService12TestShapeInputService12TestCaseOperation1Output struct {
_ struct{} `type:"structure"`
}
// InputService13ProtocolTest provides the API operation methods for making requests to
// . See this package's package overview docs
// for details on the service.
//
// InputService13ProtocolTest methods are safe to use concurrently. It is not safe to
// modify mutate any of the struct's properties though.
type InputService13ProtocolTest struct {
*client.Client
}
// New creates a new instance of the InputService13ProtocolTest 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 InputService13ProtocolTest client from just a session.
// svc := inputservice13protocoltest.New(mySession)
//
// // Create a InputService13ProtocolTest client with additional configuration
// svc := inputservice13protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2"))
func NewInputService13ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *InputService13ProtocolTest {
c := p.ClientConfig("inputservice13protocoltest", cfgs...)
return newInputService13ProtocolTestClient(*c.Config, c.Handlers, c.PartitionID, c.Endpoint, c.SigningRegion, c.SigningName)
}
// newClient creates, initializes and returns a new service client instance.
func newInputService13ProtocolTestClient(cfg aws.Config, handlers request.Handlers, partitionID, endpoint, signingRegion, signingName string) *InputService13ProtocolTest {
svc := &InputService13ProtocolTest{
Client: client.New(
cfg,
metadata.ClientInfo{
ServiceName: "InputService13ProtocolTest",
ServiceID: "InputService13ProtocolTest",
SigningName: signingName,
SigningRegion: signingRegion,
PartitionID: partitionID,
Endpoint: endpoint,
APIVersion: "2014-01-01",
},
handlers,
),
}
// Handlers
svc.Handlers.Sign.PushBackNamed(v4.SignRequestHandler)
svc.Handlers.Build.PushBackNamed(query.BuildHandler)
svc.Handlers.Unmarshal.PushBackNamed(query.UnmarshalHandler)
svc.Handlers.UnmarshalMeta.PushBackNamed(query.UnmarshalMetaHandler)
svc.Handlers.UnmarshalError.PushBackNamed(query.UnmarshalErrorHandler)
return svc
}
// newRequest creates a new request for a InputService13ProtocolTest operation and runs any
// custom request initialization.
func (c *InputService13ProtocolTest) newRequest(op *request.Operation, params, data interface{}) *request.Request {
req := c.NewRequest(op, params, data)
return req
}
const opInputService13TestCaseOperation1 = "OperationName"
// InputService13TestCaseOperation1Request generates a "aws/request.Request" representing the
// client's request for the InputService13TestCaseOperation1 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 InputService13TestCaseOperation1 for more information on using the InputService13TestCaseOperation1
// 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 InputService13TestCaseOperation1Request method.
// req, resp := client.InputService13TestCaseOperation1Request(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
func (c *InputService13ProtocolTest) InputService13TestCaseOperation1Request(input *InputService13TestShapeInputService13TestCaseOperation1Input) (req *request.Request, output *InputService13TestShapeInputService13TestCaseOperation1Output) {
op := &request.Operation{
Name: opInputService13TestCaseOperation1,
HTTPPath: "/",
}
if input == nil {
input = &InputService13TestShapeInputService13TestCaseOperation1Input{}
}
output = &InputService13TestShapeInputService13TestCaseOperation1Output{}
req = c.newRequest(op, input, output)
req.Handlers.Unmarshal.Swap(query.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
return
}
// InputService13TestCaseOperation1 API operation for .
//
// 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 's
// API operation InputService13TestCaseOperation1 for usage and error information.
func (c *InputService13ProtocolTest) InputService13TestCaseOperation1(input *InputService13TestShapeInputService13TestCaseOperation1Input) (*InputService13TestShapeInputService13TestCaseOperation1Output, error) {
req, out := c.InputService13TestCaseOperation1Request(input)
return out, req.Send()
}
// InputService13TestCaseOperation1WithContext is the same as InputService13TestCaseOperation1 with the addition of
// the ability to pass a context and additional request options.
//
// See InputService13TestCaseOperation1 for details on how to use this API operation.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
func (c *InputService13ProtocolTest) InputService13TestCaseOperation1WithContext(ctx aws.Context, input *InputService13TestShapeInputService13TestCaseOperation1Input, opts ...request.Option) (*InputService13TestShapeInputService13TestCaseOperation1Output, error) {
req, out := c.InputService13TestCaseOperation1Request(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
const opInputService13TestCaseOperation2 = "OperationName"
// InputService13TestCaseOperation2Request generates a "aws/request.Request" representing the
// client's request for the InputService13TestCaseOperation2 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 InputService13TestCaseOperation2 for more information on using the InputService13TestCaseOperation2
// 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 InputService13TestCaseOperation2Request method.
// req, resp := client.InputService13TestCaseOperation2Request(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
func (c *InputService13ProtocolTest) InputService13TestCaseOperation2Request(input *InputService13TestShapeInputService13TestCaseOperation2Input) (req *request.Request, output *InputService13TestShapeInputService13TestCaseOperation2Output) {
op := &request.Operation{
Name: opInputService13TestCaseOperation2,
HTTPPath: "/",
}
if input == nil {
input = &InputService13TestShapeInputService13TestCaseOperation2Input{}
}
output = &InputService13TestShapeInputService13TestCaseOperation2Output{}
req = c.newRequest(op, input, output)
req.Handlers.Unmarshal.Swap(query.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
return
}
// InputService13TestCaseOperation2 API operation for .
//
// 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 's
// API operation InputService13TestCaseOperation2 for usage and error information.
func (c *InputService13ProtocolTest) InputService13TestCaseOperation2(input *InputService13TestShapeInputService13TestCaseOperation2Input) (*InputService13TestShapeInputService13TestCaseOperation2Output, error) {
req, out := c.InputService13TestCaseOperation2Request(input)
return out, req.Send()
}
// InputService13TestCaseOperation2WithContext is the same as InputService13TestCaseOperation2 with the addition of
// the ability to pass a context and additional request options.
//
// See InputService13TestCaseOperation2 for details on how to use this API operation.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
func (c *InputService13ProtocolTest) InputService13TestCaseOperation2WithContext(ctx aws.Context, input *InputService13TestShapeInputService13TestCaseOperation2Input, opts ...request.Option) (*InputService13TestShapeInputService13TestCaseOperation2Output, error) {
req, out := c.InputService13TestCaseOperation2Request(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
const opInputService13TestCaseOperation3 = "OperationName"
// InputService13TestCaseOperation3Request generates a "aws/request.Request" representing the
// client's request for the InputService13TestCaseOperation3 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 InputService13TestCaseOperation3 for more information on using the InputService13TestCaseOperation3
// 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 InputService13TestCaseOperation3Request method.
// req, resp := client.InputService13TestCaseOperation3Request(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
func (c *InputService13ProtocolTest) InputService13TestCaseOperation3Request(input *InputService13TestShapeInputService13TestCaseOperation3Input) (req *request.Request, output *InputService13TestShapeInputService13TestCaseOperation3Output) {
op := &request.Operation{
Name: opInputService13TestCaseOperation3,
HTTPPath: "/",
}
if input == nil {
input = &InputService13TestShapeInputService13TestCaseOperation3Input{}
}
output = &InputService13TestShapeInputService13TestCaseOperation3Output{}
req = c.newRequest(op, input, output)
req.Handlers.Unmarshal.Swap(query.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
return
}
// InputService13TestCaseOperation3 API operation for .
//
// 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 's
// API operation InputService13TestCaseOperation3 for usage and error information.
func (c *InputService13ProtocolTest) InputService13TestCaseOperation3(input *InputService13TestShapeInputService13TestCaseOperation3Input) (*InputService13TestShapeInputService13TestCaseOperation3Output, error) {
req, out := c.InputService13TestCaseOperation3Request(input)
return out, req.Send()
}
// InputService13TestCaseOperation3WithContext is the same as InputService13TestCaseOperation3 with the addition of
// the ability to pass a context and additional request options.
//
// See InputService13TestCaseOperation3 for details on how to use this API operation.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
func (c *InputService13ProtocolTest) InputService13TestCaseOperation3WithContext(ctx aws.Context, input *InputService13TestShapeInputService13TestCaseOperation3Input, opts ...request.Option) (*InputService13TestShapeInputService13TestCaseOperation3Output, error) {
req, out := c.InputService13TestCaseOperation3Request(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
const opInputService13TestCaseOperation4 = "OperationName"
// InputService13TestCaseOperation4Request generates a "aws/request.Request" representing the
// client's request for the InputService13TestCaseOperation4 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 InputService13TestCaseOperation4 for more information on using the InputService13TestCaseOperation4
// 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 InputService13TestCaseOperation4Request method.
// req, resp := client.InputService13TestCaseOperation4Request(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
func (c *InputService13ProtocolTest) InputService13TestCaseOperation4Request(input *InputService13TestShapeInputService13TestCaseOperation4Input) (req *request.Request, output *InputService13TestShapeInputService13TestCaseOperation4Output) {
op := &request.Operation{
Name: opInputService13TestCaseOperation4,
HTTPPath: "/",
}
if input == nil {
input = &InputService13TestShapeInputService13TestCaseOperation4Input{}
}
output = &InputService13TestShapeInputService13TestCaseOperation4Output{}
req = c.newRequest(op, input, output)
req.Handlers.Unmarshal.Swap(query.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
return
}
// InputService13TestCaseOperation4 API operation for .
//
// 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 's
// API operation InputService13TestCaseOperation4 for usage and error information.
func (c *InputService13ProtocolTest) InputService13TestCaseOperation4(input *InputService13TestShapeInputService13TestCaseOperation4Input) (*InputService13TestShapeInputService13TestCaseOperation4Output, error) {
req, out := c.InputService13TestCaseOperation4Request(input)
return out, req.Send()
}
// InputService13TestCaseOperation4WithContext is the same as InputService13TestCaseOperation4 with the addition of
// the ability to pass a context and additional request options.
//
// See InputService13TestCaseOperation4 for details on how to use this API operation.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
func (c *InputService13ProtocolTest) InputService13TestCaseOperation4WithContext(ctx aws.Context, input *InputService13TestShapeInputService13TestCaseOperation4Input, opts ...request.Option) (*InputService13TestShapeInputService13TestCaseOperation4Output, error) {
req, out := c.InputService13TestCaseOperation4Request(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
const opInputService13TestCaseOperation5 = "OperationName"
// InputService13TestCaseOperation5Request generates a "aws/request.Request" representing the
// client's request for the InputService13TestCaseOperation5 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 InputService13TestCaseOperation5 for more information on using the InputService13TestCaseOperation5
// 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 InputService13TestCaseOperation5Request method.
// req, resp := client.InputService13TestCaseOperation5Request(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
func (c *InputService13ProtocolTest) InputService13TestCaseOperation5Request(input *InputService13TestShapeInputService13TestCaseOperation5Input) (req *request.Request, output *InputService13TestShapeInputService13TestCaseOperation5Output) {
op := &request.Operation{
Name: opInputService13TestCaseOperation5,
HTTPPath: "/",
}
if input == nil {
input = &InputService13TestShapeInputService13TestCaseOperation5Input{}
}
output = &InputService13TestShapeInputService13TestCaseOperation5Output{}
req = c.newRequest(op, input, output)
req.Handlers.Unmarshal.Swap(query.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
return
}
// InputService13TestCaseOperation5 API operation for .
//
// 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 's
// API operation InputService13TestCaseOperation5 for usage and error information.
func (c *InputService13ProtocolTest) InputService13TestCaseOperation5(input *InputService13TestShapeInputService13TestCaseOperation5Input) (*InputService13TestShapeInputService13TestCaseOperation5Output, error) {
req, out := c.InputService13TestCaseOperation5Request(input)
return out, req.Send()
}
// InputService13TestCaseOperation5WithContext is the same as InputService13TestCaseOperation5 with the addition of
// the ability to pass a context and additional request options.
//
// See InputService13TestCaseOperation5 for details on how to use this API operation.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
func (c *InputService13ProtocolTest) InputService13TestCaseOperation5WithContext(ctx aws.Context, input *InputService13TestShapeInputService13TestCaseOperation5Input, opts ...request.Option) (*InputService13TestShapeInputService13TestCaseOperation5Output, error) {
req, out := c.InputService13TestCaseOperation5Request(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
const opInputService13TestCaseOperation6 = "OperationName"
// InputService13TestCaseOperation6Request generates a "aws/request.Request" representing the
// client's request for the InputService13TestCaseOperation6 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 InputService13TestCaseOperation6 for more information on using the InputService13TestCaseOperation6
// 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 InputService13TestCaseOperation6Request method.
// req, resp := client.InputService13TestCaseOperation6Request(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
func (c *InputService13ProtocolTest) InputService13TestCaseOperation6Request(input *InputService13TestShapeInputService13TestCaseOperation6Input) (req *request.Request, output *InputService13TestShapeInputService13TestCaseOperation6Output) {
op := &request.Operation{
Name: opInputService13TestCaseOperation6,
HTTPPath: "/",
}
if input == nil {
input = &InputService13TestShapeInputService13TestCaseOperation6Input{}
}
output = &InputService13TestShapeInputService13TestCaseOperation6Output{}
req = c.newRequest(op, input, output)
req.Handlers.Unmarshal.Swap(query.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
return
}
// InputService13TestCaseOperation6 API operation for .
//
// 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 's
// API operation InputService13TestCaseOperation6 for usage and error information.
func (c *InputService13ProtocolTest) InputService13TestCaseOperation6(input *InputService13TestShapeInputService13TestCaseOperation6Input) (*InputService13TestShapeInputService13TestCaseOperation6Output, error) {
req, out := c.InputService13TestCaseOperation6Request(input)
return out, req.Send()
}
// InputService13TestCaseOperation6WithContext is the same as InputService13TestCaseOperation6 with the addition of
// the ability to pass a context and additional request options.
//
// See InputService13TestCaseOperation6 for details on how to use this API operation.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
func (c *InputService13ProtocolTest) InputService13TestCaseOperation6WithContext(ctx aws.Context, input *InputService13TestShapeInputService13TestCaseOperation6Input, opts ...request.Option) (*InputService13TestShapeInputService13TestCaseOperation6Output, error) {
req, out := c.InputService13TestCaseOperation6Request(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
type InputService13TestShapeInputService13TestCaseOperation1Input struct {
_ struct{} `type:"structure"`
RecursiveStruct *InputService13TestShapeRecursiveStructType `type:"structure"`
}
// SetRecursiveStruct sets the RecursiveStruct field's value.
func (s *InputService13TestShapeInputService13TestCaseOperation1Input) SetRecursiveStruct(v *InputService13TestShapeRecursiveStructType) *InputService13TestShapeInputService13TestCaseOperation1Input {
s.RecursiveStruct = v
return s
}
type InputService13TestShapeInputService13TestCaseOperation1Output struct {
_ struct{} `type:"structure"`
}
type InputService13TestShapeInputService13TestCaseOperation2Input struct {
_ struct{} `type:"structure"`
RecursiveStruct *InputService13TestShapeRecursiveStructType `type:"structure"`
}
// SetRecursiveStruct sets the RecursiveStruct field's value.
func (s *InputService13TestShapeInputService13TestCaseOperation2Input) SetRecursiveStruct(v *InputService13TestShapeRecursiveStructType) *InputService13TestShapeInputService13TestCaseOperation2Input {
s.RecursiveStruct = v
return s
}
type InputService13TestShapeInputService13TestCaseOperation2Output struct {
_ struct{} `type:"structure"`
}
type InputService13TestShapeInputService13TestCaseOperation3Input struct {
_ struct{} `type:"structure"`
RecursiveStruct *InputService13TestShapeRecursiveStructType `type:"structure"`
}
// SetRecursiveStruct sets the RecursiveStruct field's value.
func (s *InputService13TestShapeInputService13TestCaseOperation3Input) SetRecursiveStruct(v *InputService13TestShapeRecursiveStructType) *InputService13TestShapeInputService13TestCaseOperation3Input {
s.RecursiveStruct = v
return s
}
type InputService13TestShapeInputService13TestCaseOperation3Output struct {
_ struct{} `type:"structure"`
}
type InputService13TestShapeInputService13TestCaseOperation4Input struct {
_ struct{} `type:"structure"`
RecursiveStruct *InputService13TestShapeRecursiveStructType `type:"structure"`
}
// SetRecursiveStruct sets the RecursiveStruct field's value.
func (s *InputService13TestShapeInputService13TestCaseOperation4Input) SetRecursiveStruct(v *InputService13TestShapeRecursiveStructType) *InputService13TestShapeInputService13TestCaseOperation4Input {
s.RecursiveStruct = v
return s
}
type InputService13TestShapeInputService13TestCaseOperation4Output struct {
_ struct{} `type:"structure"`
}
type InputService13TestShapeInputService13TestCaseOperation5Input struct {
_ struct{} `type:"structure"`
RecursiveStruct *InputService13TestShapeRecursiveStructType `type:"structure"`
}
// SetRecursiveStruct sets the RecursiveStruct field's value.
func (s *InputService13TestShapeInputService13TestCaseOperation5Input) SetRecursiveStruct(v *InputService13TestShapeRecursiveStructType) *InputService13TestShapeInputService13TestCaseOperation5Input {
s.RecursiveStruct = v
return s
}
type InputService13TestShapeInputService13TestCaseOperation5Output struct {
_ struct{} `type:"structure"`
}
type InputService13TestShapeInputService13TestCaseOperation6Input struct {
_ struct{} `type:"structure"`
RecursiveStruct *InputService13TestShapeRecursiveStructType `type:"structure"`
}
// SetRecursiveStruct sets the RecursiveStruct field's value.
func (s *InputService13TestShapeInputService13TestCaseOperation6Input) SetRecursiveStruct(v *InputService13TestShapeRecursiveStructType) *InputService13TestShapeInputService13TestCaseOperation6Input {
s.RecursiveStruct = v
return s
}
type InputService13TestShapeInputService13TestCaseOperation6Output struct {
_ struct{} `type:"structure"`
}
type InputService13TestShapeRecursiveStructType struct {
_ struct{} `type:"structure"`
NoRecurse *string `type:"string"`
RecursiveList []*InputService13TestShapeRecursiveStructType `type:"list"`
RecursiveMap map[string]*InputService13TestShapeRecursiveStructType `type:"map"`
RecursiveStruct *InputService13TestShapeRecursiveStructType `type:"structure"`
}
// SetNoRecurse sets the NoRecurse field's value.
func (s *InputService13TestShapeRecursiveStructType) SetNoRecurse(v string) *InputService13TestShapeRecursiveStructType {
s.NoRecurse = &v
return s
}
// SetRecursiveList sets the RecursiveList field's value.
func (s *InputService13TestShapeRecursiveStructType) SetRecursiveList(v []*InputService13TestShapeRecursiveStructType) *InputService13TestShapeRecursiveStructType {
s.RecursiveList = v
return s
}
// SetRecursiveMap sets the RecursiveMap field's value.
func (s *InputService13TestShapeRecursiveStructType) SetRecursiveMap(v map[string]*InputService13TestShapeRecursiveStructType) *InputService13TestShapeRecursiveStructType {
s.RecursiveMap = v
return s
}
// SetRecursiveStruct sets the RecursiveStruct field's value.
func (s *InputService13TestShapeRecursiveStructType) SetRecursiveStruct(v *InputService13TestShapeRecursiveStructType) *InputService13TestShapeRecursiveStructType {
s.RecursiveStruct = v
return s
}
// InputService14ProtocolTest provides the API operation methods for making requests to
// . See this package's package overview docs
// for details on the service.
//
// InputService14ProtocolTest methods are safe to use concurrently. It is not safe to
// modify mutate any of the struct's properties though.
type InputService14ProtocolTest struct {
*client.Client
}
// New creates a new instance of the InputService14ProtocolTest 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 InputService14ProtocolTest client from just a session.
// svc := inputservice14protocoltest.New(mySession)
//
// // Create a InputService14ProtocolTest client with additional configuration
// svc := inputservice14protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2"))
func NewInputService14ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *InputService14ProtocolTest {
c := p.ClientConfig("inputservice14protocoltest", cfgs...)
return newInputService14ProtocolTestClient(*c.Config, c.Handlers, c.PartitionID, c.Endpoint, c.SigningRegion, c.SigningName)
}
// newClient creates, initializes and returns a new service client instance.
func newInputService14ProtocolTestClient(cfg aws.Config, handlers request.Handlers, partitionID, endpoint, signingRegion, signingName string) *InputService14ProtocolTest {
svc := &InputService14ProtocolTest{
Client: client.New(
cfg,
metadata.ClientInfo{
ServiceName: "InputService14ProtocolTest",
ServiceID: "InputService14ProtocolTest",
SigningName: signingName,
SigningRegion: signingRegion,
PartitionID: partitionID,
Endpoint: endpoint,
APIVersion: "2014-01-01",
},
handlers,
),
}
// Handlers
svc.Handlers.Sign.PushBackNamed(v4.SignRequestHandler)
svc.Handlers.Build.PushBackNamed(query.BuildHandler)
svc.Handlers.Unmarshal.PushBackNamed(query.UnmarshalHandler)
svc.Handlers.UnmarshalMeta.PushBackNamed(query.UnmarshalMetaHandler)
svc.Handlers.UnmarshalError.PushBackNamed(query.UnmarshalErrorHandler)
return svc
}
// newRequest creates a new request for a InputService14ProtocolTest operation and runs any
// custom request initialization.
func (c *InputService14ProtocolTest) newRequest(op *request.Operation, params, data interface{}) *request.Request {
req := c.NewRequest(op, params, data)
return req
}
const opInputService14TestCaseOperation1 = "OperationName"
// InputService14TestCaseOperation1Request generates a "aws/request.Request" representing the
// client's request for the InputService14TestCaseOperation1 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 InputService14TestCaseOperation1 for more information on using the InputService14TestCaseOperation1
// 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 InputService14TestCaseOperation1Request method.
// req, resp := client.InputService14TestCaseOperation1Request(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
func (c *InputService14ProtocolTest) InputService14TestCaseOperation1Request(input *InputService14TestShapeInputService14TestCaseOperation1Input) (req *request.Request, output *InputService14TestShapeInputService14TestCaseOperation1Output) {
op := &request.Operation{
Name: opInputService14TestCaseOperation1,
HTTPMethod: "POST",
HTTPPath: "/",
}
if input == nil {
input = &InputService14TestShapeInputService14TestCaseOperation1Input{}
}
output = &InputService14TestShapeInputService14TestCaseOperation1Output{}
req = c.newRequest(op, input, output)
req.Handlers.Unmarshal.Swap(query.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
return
}
// InputService14TestCaseOperation1 API operation for .
//
// 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 's
// API operation InputService14TestCaseOperation1 for usage and error information.
func (c *InputService14ProtocolTest) InputService14TestCaseOperation1(input *InputService14TestShapeInputService14TestCaseOperation1Input) (*InputService14TestShapeInputService14TestCaseOperation1Output, error) {
req, out := c.InputService14TestCaseOperation1Request(input)
return out, req.Send()
}
// InputService14TestCaseOperation1WithContext is the same as InputService14TestCaseOperation1 with the addition of
// the ability to pass a context and additional request options.
//
// See InputService14TestCaseOperation1 for details on how to use this API operation.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
func (c *InputService14ProtocolTest) InputService14TestCaseOperation1WithContext(ctx aws.Context, input *InputService14TestShapeInputService14TestCaseOperation1Input, opts ...request.Option) (*InputService14TestShapeInputService14TestCaseOperation1Output, error) {
req, out := c.InputService14TestCaseOperation1Request(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
const opInputService14TestCaseOperation2 = "OperationName"
// InputService14TestCaseOperation2Request generates a "aws/request.Request" representing the
// client's request for the InputService14TestCaseOperation2 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 InputService14TestCaseOperation2 for more information on using the InputService14TestCaseOperation2
// 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 InputService14TestCaseOperation2Request method.
// req, resp := client.InputService14TestCaseOperation2Request(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
func (c *InputService14ProtocolTest) InputService14TestCaseOperation2Request(input *InputService14TestShapeInputService14TestCaseOperation2Input) (req *request.Request, output *InputService14TestShapeInputService14TestCaseOperation2Output) {
op := &request.Operation{
Name: opInputService14TestCaseOperation2,
HTTPMethod: "POST",
HTTPPath: "/",
}
if input == nil {
input = &InputService14TestShapeInputService14TestCaseOperation2Input{}
}
output = &InputService14TestShapeInputService14TestCaseOperation2Output{}
req = c.newRequest(op, input, output)
req.Handlers.Unmarshal.Swap(query.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
return
}
// InputService14TestCaseOperation2 API operation for .
//
// 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 's
// API operation InputService14TestCaseOperation2 for usage and error information.
func (c *InputService14ProtocolTest) InputService14TestCaseOperation2(input *InputService14TestShapeInputService14TestCaseOperation2Input) (*InputService14TestShapeInputService14TestCaseOperation2Output, error) {
req, out := c.InputService14TestCaseOperation2Request(input)
return out, req.Send()
}
// InputService14TestCaseOperation2WithContext is the same as InputService14TestCaseOperation2 with the addition of
// the ability to pass a context and additional request options.
//
// See InputService14TestCaseOperation2 for details on how to use this API operation.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
func (c *InputService14ProtocolTest) InputService14TestCaseOperation2WithContext(ctx aws.Context, input *InputService14TestShapeInputService14TestCaseOperation2Input, opts ...request.Option) (*InputService14TestShapeInputService14TestCaseOperation2Output, error) {
req, out := c.InputService14TestCaseOperation2Request(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
type InputService14TestShapeInputService14TestCaseOperation1Input struct {
_ struct{} `type:"structure"`
Token *string `type:"string" idempotencyToken:"true"`
}
// SetToken sets the Token field's value.
func (s *InputService14TestShapeInputService14TestCaseOperation1Input) SetToken(v string) *InputService14TestShapeInputService14TestCaseOperation1Input {
s.Token = &v
return s
}
type InputService14TestShapeInputService14TestCaseOperation1Output struct {
_ struct{} `type:"structure"`
}
type InputService14TestShapeInputService14TestCaseOperation2Input struct {
_ struct{} `type:"structure"`
Token *string `type:"string" idempotencyToken:"true"`
}
// SetToken sets the Token field's value.
func (s *InputService14TestShapeInputService14TestCaseOperation2Input) SetToken(v string) *InputService14TestShapeInputService14TestCaseOperation2Input {
s.Token = &v
return s
}
type InputService14TestShapeInputService14TestCaseOperation2Output struct {
_ struct{} `type:"structure"`
}
// InputService15ProtocolTest provides the API operation methods for making requests to
// . See this package's package overview docs
// for details on the service.
//
// InputService15ProtocolTest methods are safe to use concurrently. It is not safe to
// modify mutate any of the struct's properties though.
type InputService15ProtocolTest struct {
*client.Client
}
// New creates a new instance of the InputService15ProtocolTest 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 InputService15ProtocolTest client from just a session.
// svc := inputservice15protocoltest.New(mySession)
//
// // Create a InputService15ProtocolTest client with additional configuration
// svc := inputservice15protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2"))
func NewInputService15ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *InputService15ProtocolTest {
c := p.ClientConfig("inputservice15protocoltest", cfgs...)
return newInputService15ProtocolTestClient(*c.Config, c.Handlers, c.PartitionID, c.Endpoint, c.SigningRegion, c.SigningName)
}
// newClient creates, initializes and returns a new service client instance.
func newInputService15ProtocolTestClient(cfg aws.Config, handlers request.Handlers, partitionID, endpoint, signingRegion, signingName string) *InputService15ProtocolTest {
svc := &InputService15ProtocolTest{
Client: client.New(
cfg,
metadata.ClientInfo{
ServiceName: "InputService15ProtocolTest",
ServiceID: "InputService15ProtocolTest",
SigningName: signingName,
SigningRegion: signingRegion,
PartitionID: partitionID,
Endpoint: endpoint,
APIVersion: "2014-01-01",
},
handlers,
),
}
// Handlers
svc.Handlers.Sign.PushBackNamed(v4.SignRequestHandler)
svc.Handlers.Build.PushBackNamed(query.BuildHandler)
svc.Handlers.Unmarshal.PushBackNamed(query.UnmarshalHandler)
svc.Handlers.UnmarshalMeta.PushBackNamed(query.UnmarshalMetaHandler)
svc.Handlers.UnmarshalError.PushBackNamed(query.UnmarshalErrorHandler)
return svc
}
// newRequest creates a new request for a InputService15ProtocolTest operation and runs any
// custom request initialization.
func (c *InputService15ProtocolTest) newRequest(op *request.Operation, params, data interface{}) *request.Request {
req := c.NewRequest(op, params, data)
return req
}
const opInputService15TestCaseOperation1 = "OperationName"
// InputService15TestCaseOperation1Request generates a "aws/request.Request" representing the
// client's request for the InputService15TestCaseOperation1 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 InputService15TestCaseOperation1 for more information on using the InputService15TestCaseOperation1
// 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 InputService15TestCaseOperation1Request method.
// req, resp := client.InputService15TestCaseOperation1Request(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
func (c *InputService15ProtocolTest) InputService15TestCaseOperation1Request(input *InputService15TestShapeInputService15TestCaseOperation1Input) (req *request.Request, output *InputService15TestShapeInputService15TestCaseOperation1Output) {
op := &request.Operation{
Name: opInputService15TestCaseOperation1,
HTTPMethod: "POST",
HTTPPath: "/",
}
if input == nil {
input = &InputService15TestShapeInputService15TestCaseOperation1Input{}
}
output = &InputService15TestShapeInputService15TestCaseOperation1Output{}
req = c.newRequest(op, input, output)
req.Handlers.Unmarshal.Swap(query.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
return
}
// InputService15TestCaseOperation1 API operation for .
//
// 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 's
// API operation InputService15TestCaseOperation1 for usage and error information.
func (c *InputService15ProtocolTest) InputService15TestCaseOperation1(input *InputService15TestShapeInputService15TestCaseOperation1Input) (*InputService15TestShapeInputService15TestCaseOperation1Output, error) {
req, out := c.InputService15TestCaseOperation1Request(input)
return out, req.Send()
}
// InputService15TestCaseOperation1WithContext is the same as InputService15TestCaseOperation1 with the addition of
// the ability to pass a context and additional request options.
//
// See InputService15TestCaseOperation1 for details on how to use this API operation.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
func (c *InputService15ProtocolTest) InputService15TestCaseOperation1WithContext(ctx aws.Context, input *InputService15TestShapeInputService15TestCaseOperation1Input, opts ...request.Option) (*InputService15TestShapeInputService15TestCaseOperation1Output, error) {
req, out := c.InputService15TestCaseOperation1Request(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
const opInputService15TestCaseOperation2 = "OperationName"
// InputService15TestCaseOperation2Request generates a "aws/request.Request" representing the
// client's request for the InputService15TestCaseOperation2 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 InputService15TestCaseOperation2 for more information on using the InputService15TestCaseOperation2
// 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 InputService15TestCaseOperation2Request method.
// req, resp := client.InputService15TestCaseOperation2Request(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
func (c *InputService15ProtocolTest) InputService15TestCaseOperation2Request(input *InputService15TestShapeInputService15TestCaseOperation2Input) (req *request.Request, output *InputService15TestShapeInputService15TestCaseOperation2Output) {
op := &request.Operation{
Name: opInputService15TestCaseOperation2,
HTTPMethod: "POST",
HTTPPath: "/",
}
if input == nil {
input = &InputService15TestShapeInputService15TestCaseOperation2Input{}
}
output = &InputService15TestShapeInputService15TestCaseOperation2Output{}
req = c.newRequest(op, input, output)
req.Handlers.Unmarshal.Swap(query.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
return
}
// InputService15TestCaseOperation2 API operation for .
//
// 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 's
// API operation InputService15TestCaseOperation2 for usage and error information.
func (c *InputService15ProtocolTest) InputService15TestCaseOperation2(input *InputService15TestShapeInputService15TestCaseOperation2Input) (*InputService15TestShapeInputService15TestCaseOperation2Output, error) {
req, out := c.InputService15TestCaseOperation2Request(input)
return out, req.Send()
}
// InputService15TestCaseOperation2WithContext is the same as InputService15TestCaseOperation2 with the addition of
// the ability to pass a context and additional request options.
//
// See InputService15TestCaseOperation2 for details on how to use this API operation.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
func (c *InputService15ProtocolTest) InputService15TestCaseOperation2WithContext(ctx aws.Context, input *InputService15TestShapeInputService15TestCaseOperation2Input, opts ...request.Option) (*InputService15TestShapeInputService15TestCaseOperation2Output, error) {
req, out := c.InputService15TestCaseOperation2Request(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
const opInputService15TestCaseOperation3 = "OperationName"
// InputService15TestCaseOperation3Request generates a "aws/request.Request" representing the
// client's request for the InputService15TestCaseOperation3 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 InputService15TestCaseOperation3 for more information on using the InputService15TestCaseOperation3
// 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 InputService15TestCaseOperation3Request method.
// req, resp := client.InputService15TestCaseOperation3Request(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
func (c *InputService15ProtocolTest) InputService15TestCaseOperation3Request(input *InputService15TestShapeInputService15TestCaseOperation3Input) (req *request.Request, output *InputService15TestShapeInputService15TestCaseOperation3Output) {
op := &request.Operation{
Name: opInputService15TestCaseOperation3,
HTTPMethod: "POST",
HTTPPath: "/",
}
if input == nil {
input = &InputService15TestShapeInputService15TestCaseOperation3Input{}
}
output = &InputService15TestShapeInputService15TestCaseOperation3Output{}
req = c.newRequest(op, input, output)
req.Handlers.Unmarshal.Swap(query.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
return
}
// InputService15TestCaseOperation3 API operation for .
//
// 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 's
// API operation InputService15TestCaseOperation3 for usage and error information.
func (c *InputService15ProtocolTest) InputService15TestCaseOperation3(input *InputService15TestShapeInputService15TestCaseOperation3Input) (*InputService15TestShapeInputService15TestCaseOperation3Output, error) {
req, out := c.InputService15TestCaseOperation3Request(input)
return out, req.Send()
}
// InputService15TestCaseOperation3WithContext is the same as InputService15TestCaseOperation3 with the addition of
// the ability to pass a context and additional request options.
//
// See InputService15TestCaseOperation3 for details on how to use this API operation.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
func (c *InputService15ProtocolTest) InputService15TestCaseOperation3WithContext(ctx aws.Context, input *InputService15TestShapeInputService15TestCaseOperation3Input, opts ...request.Option) (*InputService15TestShapeInputService15TestCaseOperation3Output, error) {
req, out := c.InputService15TestCaseOperation3Request(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
type InputService15TestShapeInputService15TestCaseOperation1Input struct {
_ struct{} `type:"structure"`
FooEnum *string `type:"string" enum:"InputService15TestShapeEnumType"`
ListEnums []*string `type:"list"`
}
// SetFooEnum sets the FooEnum field's value.
func (s *InputService15TestShapeInputService15TestCaseOperation1Input) SetFooEnum(v string) *InputService15TestShapeInputService15TestCaseOperation1Input {
s.FooEnum = &v
return s
}
// SetListEnums sets the ListEnums field's value.
func (s *InputService15TestShapeInputService15TestCaseOperation1Input) SetListEnums(v []*string) *InputService15TestShapeInputService15TestCaseOperation1Input {
s.ListEnums = v
return s
}
type InputService15TestShapeInputService15TestCaseOperation1Output struct {
_ struct{} `type:"structure"`
}
type InputService15TestShapeInputService15TestCaseOperation2Input struct {
_ struct{} `type:"structure"`
FooEnum *string `type:"string" enum:"InputService15TestShapeEnumType"`
ListEnums []*string `type:"list"`
}
// SetFooEnum sets the FooEnum field's value.
func (s *InputService15TestShapeInputService15TestCaseOperation2Input) SetFooEnum(v string) *InputService15TestShapeInputService15TestCaseOperation2Input {
s.FooEnum = &v
return s
}
// SetListEnums sets the ListEnums field's value.
func (s *InputService15TestShapeInputService15TestCaseOperation2Input) SetListEnums(v []*string) *InputService15TestShapeInputService15TestCaseOperation2Input {
s.ListEnums = v
return s
}
type InputService15TestShapeInputService15TestCaseOperation2Output struct {
_ struct{} `type:"structure"`
}
type InputService15TestShapeInputService15TestCaseOperation3Input struct {
_ struct{} `type:"structure"`
FooEnum *string `type:"string" enum:"InputService15TestShapeEnumType"`
ListEnums []*string `type:"list"`
}
// SetFooEnum sets the FooEnum field's value.
func (s *InputService15TestShapeInputService15TestCaseOperation3Input) SetFooEnum(v string) *InputService15TestShapeInputService15TestCaseOperation3Input {
s.FooEnum = &v
return s
}
// SetListEnums sets the ListEnums field's value.
func (s *InputService15TestShapeInputService15TestCaseOperation3Input) SetListEnums(v []*string) *InputService15TestShapeInputService15TestCaseOperation3Input {
s.ListEnums = v
return s
}
type InputService15TestShapeInputService15TestCaseOperation3Output struct {
_ struct{} `type:"structure"`
}
const (
// EnumTypeFoo is a InputService15TestShapeEnumType enum value
EnumTypeFoo = "foo"
// EnumTypeBar is a InputService15TestShapeEnumType enum value
EnumTypeBar = "bar"
)
// InputService15TestShapeEnumType_Values returns all elements of the InputService15TestShapeEnumType enum
func InputService15TestShapeEnumType_Values() []string {
return []string{
EnumTypeFoo,
EnumTypeBar,
}
}
// InputService16ProtocolTest provides the API operation methods for making requests to
// . See this package's package overview docs
// for details on the service.
//
// InputService16ProtocolTest methods are safe to use concurrently. It is not safe to
// modify mutate any of the struct's properties though.
type InputService16ProtocolTest struct {
*client.Client
}
// New creates a new instance of the InputService16ProtocolTest 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 InputService16ProtocolTest client from just a session.
// svc := inputservice16protocoltest.New(mySession)
//
// // Create a InputService16ProtocolTest client with additional configuration
// svc := inputservice16protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2"))
func NewInputService16ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *InputService16ProtocolTest {
c := p.ClientConfig("inputservice16protocoltest", cfgs...)
return newInputService16ProtocolTestClient(*c.Config, c.Handlers, c.PartitionID, c.Endpoint, c.SigningRegion, c.SigningName)
}
// newClient creates, initializes and returns a new service client instance.
func newInputService16ProtocolTestClient(cfg aws.Config, handlers request.Handlers, partitionID, endpoint, signingRegion, signingName string) *InputService16ProtocolTest {
svc := &InputService16ProtocolTest{
Client: client.New(
cfg,
metadata.ClientInfo{
ServiceName: "InputService16ProtocolTest",
ServiceID: "InputService16ProtocolTest",
SigningName: signingName,
SigningRegion: signingRegion,
PartitionID: partitionID,
Endpoint: endpoint,
APIVersion: "2014-01-01",
},
handlers,
),
}
// Handlers
svc.Handlers.Sign.PushBackNamed(v4.SignRequestHandler)
svc.Handlers.Build.PushBackNamed(query.BuildHandler)
svc.Handlers.Unmarshal.PushBackNamed(query.UnmarshalHandler)
svc.Handlers.UnmarshalMeta.PushBackNamed(query.UnmarshalMetaHandler)
svc.Handlers.UnmarshalError.PushBackNamed(query.UnmarshalErrorHandler)
return svc
}
// newRequest creates a new request for a InputService16ProtocolTest operation and runs any
// custom request initialization.
func (c *InputService16ProtocolTest) newRequest(op *request.Operation, params, data interface{}) *request.Request {
req := c.NewRequest(op, params, data)
return req
}
const opInputService16TestCaseOperation1 = "StaticOp"
// InputService16TestCaseOperation1Request generates a "aws/request.Request" representing the
// client's request for the InputService16TestCaseOperation1 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 InputService16TestCaseOperation1 for more information on using the InputService16TestCaseOperation1
// 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 InputService16TestCaseOperation1Request method.
// req, resp := client.InputService16TestCaseOperation1Request(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
func (c *InputService16ProtocolTest) InputService16TestCaseOperation1Request(input *InputService16TestShapeInputService16TestCaseOperation1Input) (req *request.Request, output *InputService16TestShapeInputService16TestCaseOperation1Output) {
op := &request.Operation{
Name: opInputService16TestCaseOperation1,
HTTPMethod: "POST",
HTTPPath: "/",
}
if input == nil {
input = &InputService16TestShapeInputService16TestCaseOperation1Input{}
}
output = &InputService16TestShapeInputService16TestCaseOperation1Output{}
req = c.newRequest(op, input, output)
req.Handlers.Unmarshal.Swap(query.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
req.Handlers.Build.PushBackNamed(protocol.NewHostPrefixHandler("data-", nil))
req.Handlers.Build.PushBackNamed(protocol.ValidateEndpointHostHandler)
return
}
// InputService16TestCaseOperation1 API operation for .
//
// 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 's
// API operation InputService16TestCaseOperation1 for usage and error information.
func (c *InputService16ProtocolTest) InputService16TestCaseOperation1(input *InputService16TestShapeInputService16TestCaseOperation1Input) (*InputService16TestShapeInputService16TestCaseOperation1Output, error) {
req, out := c.InputService16TestCaseOperation1Request(input)
return out, req.Send()
}
// InputService16TestCaseOperation1WithContext is the same as InputService16TestCaseOperation1 with the addition of
// the ability to pass a context and additional request options.
//
// See InputService16TestCaseOperation1 for details on how to use this API operation.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
func (c *InputService16ProtocolTest) InputService16TestCaseOperation1WithContext(ctx aws.Context, input *InputService16TestShapeInputService16TestCaseOperation1Input, opts ...request.Option) (*InputService16TestShapeInputService16TestCaseOperation1Output, error) {
req, out := c.InputService16TestCaseOperation1Request(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
const opInputService16TestCaseOperation2 = "MemberRefOp"
// InputService16TestCaseOperation2Request generates a "aws/request.Request" representing the
// client's request for the InputService16TestCaseOperation2 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 InputService16TestCaseOperation2 for more information on using the InputService16TestCaseOperation2
// 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 InputService16TestCaseOperation2Request method.
// req, resp := client.InputService16TestCaseOperation2Request(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
func (c *InputService16ProtocolTest) InputService16TestCaseOperation2Request(input *InputService16TestShapeInputService16TestCaseOperation2Input) (req *request.Request, output *InputService16TestShapeInputService16TestCaseOperation2Output) {
op := &request.Operation{
Name: opInputService16TestCaseOperation2,
HTTPMethod: "POST",
HTTPPath: "/",
}
if input == nil {
input = &InputService16TestShapeInputService16TestCaseOperation2Input{}
}
output = &InputService16TestShapeInputService16TestCaseOperation2Output{}
req = c.newRequest(op, input, output)
req.Handlers.Unmarshal.Swap(query.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
req.Handlers.Build.PushBackNamed(protocol.NewHostPrefixHandler("foo-{Name}.", input.hostLabels))
req.Handlers.Build.PushBackNamed(protocol.ValidateEndpointHostHandler)
return
}
// InputService16TestCaseOperation2 API operation for .
//
// 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 's
// API operation InputService16TestCaseOperation2 for usage and error information.
func (c *InputService16ProtocolTest) InputService16TestCaseOperation2(input *InputService16TestShapeInputService16TestCaseOperation2Input) (*InputService16TestShapeInputService16TestCaseOperation2Output, error) {
req, out := c.InputService16TestCaseOperation2Request(input)
return out, req.Send()
}
// InputService16TestCaseOperation2WithContext is the same as InputService16TestCaseOperation2 with the addition of
// the ability to pass a context and additional request options.
//
// See InputService16TestCaseOperation2 for details on how to use this API operation.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
func (c *InputService16ProtocolTest) InputService16TestCaseOperation2WithContext(ctx aws.Context, input *InputService16TestShapeInputService16TestCaseOperation2Input, opts ...request.Option) (*InputService16TestShapeInputService16TestCaseOperation2Output, error) {
req, out := c.InputService16TestCaseOperation2Request(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
type InputService16TestShapeInputService16TestCaseOperation1Input struct {
_ struct{} `type:"structure"`
Name *string `type:"string"`
}
// SetName sets the Name field's value.
func (s *InputService16TestShapeInputService16TestCaseOperation1Input) SetName(v string) *InputService16TestShapeInputService16TestCaseOperation1Input {
s.Name = &v
return s
}
type InputService16TestShapeInputService16TestCaseOperation1Output struct {
_ struct{} `type:"structure"`
}
type InputService16TestShapeInputService16TestCaseOperation2Input struct {
_ struct{} `type:"structure"`
// Name is a required field
Name *string `type:"string" required:"true"`
}
// Validate inspects the fields of the type to determine if they are valid.
func (s *InputService16TestShapeInputService16TestCaseOperation2Input) Validate() error {
invalidParams := request.ErrInvalidParams{Context: "InputService16TestShapeInputService16TestCaseOperation2Input"}
if s.Name == nil {
invalidParams.Add(request.NewErrParamRequired("Name"))
}
if s.Name != nil && len(*s.Name) < 1 {
invalidParams.Add(request.NewErrParamMinLen("Name", 1))
}
if invalidParams.Len() > 0 {
return invalidParams
}
return nil
}
// SetName sets the Name field's value.
func (s *InputService16TestShapeInputService16TestCaseOperation2Input) SetName(v string) *InputService16TestShapeInputService16TestCaseOperation2Input {
s.Name = &v
return s
}
func (s *InputService16TestShapeInputService16TestCaseOperation2Input) hostLabels() map[string]string {
return map[string]string{
"Name": aws.StringValue(s.Name),
}
}
type InputService16TestShapeInputService16TestCaseOperation2Output struct {
_ struct{} `type:"structure"`
}
//
// Tests begin here
//
func TestInputService1ProtocolTestScalarMembersCase1(t *testing.T) {
svc := NewInputService1ProtocolTest(unit.Session, &aws.Config{Endpoint: aws.String("https://test")})
input := &InputService1TestShapeInputService1TestCaseOperation1Input{
Bar: aws.String("val2"),
Foo: aws.String("val1"),
}
req, _ := svc.InputService1TestCaseOperation1Request(input)
r := req.HTTPRequest
// build request
req.Build()
if req.Error != nil {
t.Errorf("expect no error, got %v", req.Error)
}
// assert body
if r.Body == nil {
t.Errorf("expect body not to be nil")
}
body, _ := ioutil.ReadAll(r.Body)
awstesting.AssertQuery(t, `Action=OperationName&Bar=val2&Foo=val1&Version=2014-01-01`, util.Trim(string(body)))
// assert URL
awstesting.AssertURL(t, "https://test/", r.URL.String())
// assert headers
}
func TestInputService1ProtocolTestScalarMembersCase2(t *testing.T) {
svc := NewInputService1ProtocolTest(unit.Session, &aws.Config{Endpoint: aws.String("https://test")})
input := &InputService1TestShapeInputService1TestCaseOperation2Input{
Baz: aws.Bool(true),
}
req, _ := svc.InputService1TestCaseOperation2Request(input)
r := req.HTTPRequest
// build request
req.Build()
if req.Error != nil {
t.Errorf("expect no error, got %v", req.Error)
}
// assert body
if r.Body == nil {
t.Errorf("expect body not to be nil")
}
body, _ := ioutil.ReadAll(r.Body)
awstesting.AssertQuery(t, `Action=OperationName&Baz=true&Version=2014-01-01`, util.Trim(string(body)))
// assert URL
awstesting.AssertURL(t, "https://test/", r.URL.String())
// assert headers
}
func TestInputService1ProtocolTestScalarMembersCase3(t *testing.T) {
svc := NewInputService1ProtocolTest(unit.Session, &aws.Config{Endpoint: aws.String("https://test")})
input := &InputService1TestShapeInputService1TestCaseOperation3Input{
Baz: aws.Bool(false),
}
req, _ := svc.InputService1TestCaseOperation3Request(input)
r := req.HTTPRequest
// build request
req.Build()
if req.Error != nil {
t.Errorf("expect no error, got %v", req.Error)
}
// assert body
if r.Body == nil {
t.Errorf("expect body not to be nil")
}
body, _ := ioutil.ReadAll(r.Body)
awstesting.AssertQuery(t, `Action=OperationName&Baz=false&Version=2014-01-01`, util.Trim(string(body)))
// assert URL
awstesting.AssertURL(t, "https://test/", r.URL.String())
// assert headers
}
func TestInputService2ProtocolTestNestedStructureMembersCase1(t *testing.T) {
svc := NewInputService2ProtocolTest(unit.Session, &aws.Config{Endpoint: aws.String("https://test")})
input := &InputService2TestShapeInputService2TestCaseOperation1Input{
StructArg: &InputService2TestShapeStructType{
ScalarArg: aws.String("foo"),
},
}
req, _ := svc.InputService2TestCaseOperation1Request(input)
r := req.HTTPRequest
// build request
req.Build()
if req.Error != nil {
t.Errorf("expect no error, got %v", req.Error)
}
// assert body
if r.Body == nil {
t.Errorf("expect body not to be nil")
}
body, _ := ioutil.ReadAll(r.Body)
awstesting.AssertQuery(t, `Action=OperationName&StructArg.ScalarArg=foo&Version=2014-01-01`, util.Trim(string(body)))
// assert URL
awstesting.AssertURL(t, "https://test/", r.URL.String())
// assert headers
}
func TestInputService3ProtocolTestListTypesCase1(t *testing.T) {
svc := NewInputService3ProtocolTest(unit.Session, &aws.Config{Endpoint: aws.String("https://test")})
input := &InputService3TestShapeInputService3TestCaseOperation1Input{
ListArg: []*string{
aws.String("foo"),
aws.String("bar"),
aws.String("baz"),
},
}
req, _ := svc.InputService3TestCaseOperation1Request(input)
r := req.HTTPRequest
// build request
req.Build()
if req.Error != nil {
t.Errorf("expect no error, got %v", req.Error)
}
// assert body
if r.Body == nil {
t.Errorf("expect body not to be nil")
}
body, _ := ioutil.ReadAll(r.Body)
awstesting.AssertQuery(t, `Action=OperationName&ListArg.member.1=foo&ListArg.member.2=bar&ListArg.member.3=baz&Version=2014-01-01`, util.Trim(string(body)))
// assert URL
awstesting.AssertURL(t, "https://test/", r.URL.String())
// assert headers
}
func TestInputService3ProtocolTestListTypesCase2(t *testing.T) {
svc := NewInputService3ProtocolTest(unit.Session, &aws.Config{Endpoint: aws.String("https://test")})
input := &InputService3TestShapeInputService3TestCaseOperation2Input{
ListArg: []*string{},
}
req, _ := svc.InputService3TestCaseOperation2Request(input)
r := req.HTTPRequest
// build request
req.Build()
if req.Error != nil {
t.Errorf("expect no error, got %v", req.Error)
}
// assert body
if r.Body == nil {
t.Errorf("expect body not to be nil")
}
body, _ := ioutil.ReadAll(r.Body)
awstesting.AssertQuery(t, `Action=OperationName&ListArg=&Version=2014-01-01`, util.Trim(string(body)))
// assert URL
awstesting.AssertURL(t, "https://test/", r.URL.String())
// assert headers
}
func TestInputService4ProtocolTestFlattenedListCase1(t *testing.T) {
svc := NewInputService4ProtocolTest(unit.Session, &aws.Config{Endpoint: aws.String("https://test")})
input := &InputService4TestShapeInputService4TestCaseOperation1Input{
ListArg: []*string{
aws.String("a"),
aws.String("b"),
aws.String("c"),
},
ScalarArg: aws.String("foo"),
}
req, _ := svc.InputService4TestCaseOperation1Request(input)
r := req.HTTPRequest
// build request
req.Build()
if req.Error != nil {
t.Errorf("expect no error, got %v", req.Error)
}
// assert body
if r.Body == nil {
t.Errorf("expect body not to be nil")
}
body, _ := ioutil.ReadAll(r.Body)
awstesting.AssertQuery(t, `Action=OperationName&ListArg.1=a&ListArg.2=b&ListArg.3=c&ScalarArg=foo&Version=2014-01-01`, util.Trim(string(body)))
// assert URL
awstesting.AssertURL(t, "https://test/", r.URL.String())
// assert headers
}
func TestInputService4ProtocolTestFlattenedListCase2(t *testing.T) {
svc := NewInputService4ProtocolTest(unit.Session, &aws.Config{Endpoint: aws.String("https://test")})
input := &InputService4TestShapeInputService4TestCaseOperation2Input{
NamedListArg: []*string{
aws.String("a"),
},
}
req, _ := svc.InputService4TestCaseOperation2Request(input)
r := req.HTTPRequest
// build request
req.Build()
if req.Error != nil {
t.Errorf("expect no error, got %v", req.Error)
}
// assert body
if r.Body == nil {
t.Errorf("expect body not to be nil")
}
body, _ := ioutil.ReadAll(r.Body)
awstesting.AssertQuery(t, `Action=OperationName&Foo.1=a&Version=2014-01-01`, util.Trim(string(body)))
// assert URL
awstesting.AssertURL(t, "https://test/", r.URL.String())
// assert headers
}
func TestInputService5ProtocolTestSerializeFlattenedMapTypeCase1(t *testing.T) {
svc := NewInputService5ProtocolTest(unit.Session, &aws.Config{Endpoint: aws.String("https://test")})
input := &InputService5TestShapeInputService5TestCaseOperation1Input{
MapArg: map[string]*string{
"key1": aws.String("val1"),
"key2": aws.String("val2"),
},
}
req, _ := svc.InputService5TestCaseOperation1Request(input)
r := req.HTTPRequest
// build request
req.Build()
if req.Error != nil {
t.Errorf("expect no error, got %v", req.Error)
}
// assert body
if r.Body == nil {
t.Errorf("expect body not to be nil")
}
body, _ := ioutil.ReadAll(r.Body)
awstesting.AssertQuery(t, `Action=OperationName&MapArg.1.key=key1&MapArg.1.value=val1&MapArg.2.key=key2&MapArg.2.value=val2&Version=2014-01-01`, util.Trim(string(body)))
// assert URL
awstesting.AssertURL(t, "https://test/", r.URL.String())
// assert headers
}
func TestInputService6ProtocolTestNonFlattenedListWithLocationNameCase1(t *testing.T) {
svc := NewInputService6ProtocolTest(unit.Session, &aws.Config{Endpoint: aws.String("https://test")})
input := &InputService6TestShapeInputService6TestCaseOperation1Input{
ListArg: []*string{
aws.String("a"),
aws.String("b"),
aws.String("c"),
},
}
req, _ := svc.InputService6TestCaseOperation1Request(input)
r := req.HTTPRequest
// build request
req.Build()
if req.Error != nil {
t.Errorf("expect no error, got %v", req.Error)
}
// assert body
if r.Body == nil {
t.Errorf("expect body not to be nil")
}
body, _ := ioutil.ReadAll(r.Body)
awstesting.AssertQuery(t, `Action=OperationName&ListArg.item.1=a&ListArg.item.2=b&ListArg.item.3=c&Version=2014-01-01`, util.Trim(string(body)))
// assert URL
awstesting.AssertURL(t, "https://test/", r.URL.String())
// assert headers
}
func TestInputService7ProtocolTestFlattenedListWithLocationNameCase1(t *testing.T) {
svc := NewInputService7ProtocolTest(unit.Session, &aws.Config{Endpoint: aws.String("https://test")})
input := &InputService7TestShapeInputService7TestCaseOperation1Input{
ListArg: []*string{
aws.String("a"),
aws.String("b"),
aws.String("c"),
},
ScalarArg: aws.String("foo"),
}
req, _ := svc.InputService7TestCaseOperation1Request(input)
r := req.HTTPRequest
// build request
req.Build()
if req.Error != nil {
t.Errorf("expect no error, got %v", req.Error)
}
// assert body
if r.Body == nil {
t.Errorf("expect body not to be nil")
}
body, _ := ioutil.ReadAll(r.Body)
awstesting.AssertQuery(t, `Action=OperationName&ListArgLocation.1=a&ListArgLocation.2=b&ListArgLocation.3=c&ScalarArg=foo&Version=2014-01-01`, util.Trim(string(body)))
// assert URL
awstesting.AssertURL(t, "https://test/", r.URL.String())
// assert headers
}
func TestInputService8ProtocolTestSerializeMapTypeCase1(t *testing.T) {
svc := NewInputService8ProtocolTest(unit.Session, &aws.Config{Endpoint: aws.String("https://test")})
input := &InputService8TestShapeInputService8TestCaseOperation1Input{
MapArg: map[string]*string{
"key1": aws.String("val1"),
"key2": aws.String("val2"),
},
}
req, _ := svc.InputService8TestCaseOperation1Request(input)
r := req.HTTPRequest
// build request
req.Build()
if req.Error != nil {
t.Errorf("expect no error, got %v", req.Error)
}
// assert body
if r.Body == nil {
t.Errorf("expect body not to be nil")
}
body, _ := ioutil.ReadAll(r.Body)
awstesting.AssertQuery(t, `Action=OperationName&MapArg.entry.1.key=key1&MapArg.entry.1.value=val1&MapArg.entry.2.key=key2&MapArg.entry.2.value=val2&Version=2014-01-01`, util.Trim(string(body)))
// assert URL
awstesting.AssertURL(t, "https://test/", r.URL.String())
// assert headers
}
func TestInputService9ProtocolTestSerializeMapTypeWithLocationNameCase1(t *testing.T) {
svc := NewInputService9ProtocolTest(unit.Session, &aws.Config{Endpoint: aws.String("https://test")})
input := &InputService9TestShapeInputService9TestCaseOperation1Input{
MapArg: map[string]*string{
"key1": aws.String("val1"),
"key2": aws.String("val2"),
},
}
req, _ := svc.InputService9TestCaseOperation1Request(input)
r := req.HTTPRequest
// build request
req.Build()
if req.Error != nil {
t.Errorf("expect no error, got %v", req.Error)
}
// assert body
if r.Body == nil {
t.Errorf("expect body not to be nil")
}
body, _ := ioutil.ReadAll(r.Body)
awstesting.AssertQuery(t, `Action=OperationName&MapArg.entry.1.TheKey=key1&MapArg.entry.1.TheValue=val1&MapArg.entry.2.TheKey=key2&MapArg.entry.2.TheValue=val2&Version=2014-01-01`, util.Trim(string(body)))
// assert URL
awstesting.AssertURL(t, "https://test/", r.URL.String())
// assert headers
}
func TestInputService10ProtocolTestBase64EncodedBlobsCase1(t *testing.T) {
svc := NewInputService10ProtocolTest(unit.Session, &aws.Config{Endpoint: aws.String("https://test")})
input := &InputService10TestShapeInputService10TestCaseOperation1Input{
BlobArg: []byte("foo"),
}
req, _ := svc.InputService10TestCaseOperation1Request(input)
r := req.HTTPRequest
// build request
req.Build()
if req.Error != nil {
t.Errorf("expect no error, got %v", req.Error)
}
// assert body
if r.Body == nil {
t.Errorf("expect body not to be nil")
}
body, _ := ioutil.ReadAll(r.Body)
awstesting.AssertQuery(t, `Action=OperationName&BlobArg=Zm9v&Version=2014-01-01`, util.Trim(string(body)))
// assert URL
awstesting.AssertURL(t, "https://test/", r.URL.String())
// assert headers
}
func TestInputService11ProtocolTestBase64EncodedBlobsNestedCase1(t *testing.T) {
svc := NewInputService11ProtocolTest(unit.Session, &aws.Config{Endpoint: aws.String("https://test")})
input := &InputService11TestShapeInputService11TestCaseOperation1Input{
BlobArgs: [][]byte{
[]byte("foo"),
},
}
req, _ := svc.InputService11TestCaseOperation1Request(input)
r := req.HTTPRequest
// build request
req.Build()
if req.Error != nil {
t.Errorf("expect no error, got %v", req.Error)
}
// assert body
if r.Body == nil {
t.Errorf("expect body not to be nil")
}
body, _ := ioutil.ReadAll(r.Body)
awstesting.AssertQuery(t, `Action=OperationName&BlobArgs.1=Zm9v&Version=2014-01-01`, util.Trim(string(body)))
// assert URL
awstesting.AssertURL(t, "https://test/", r.URL.String())
// assert headers
}
func TestInputService12ProtocolTestTimestampValuesCase1(t *testing.T) {
svc := NewInputService12ProtocolTest(unit.Session, &aws.Config{Endpoint: aws.String("https://test")})
input := &InputService12TestShapeInputService12TestCaseOperation1Input{
TimeArg: aws.Time(time.Unix(1422172800, 0)),
TimeCustom: aws.Time(time.Unix(1422172800, 0)),
TimeFormat: aws.Time(time.Unix(1422172800, 0)),
}
req, _ := svc.InputService12TestCaseOperation1Request(input)
r := req.HTTPRequest
// build request
req.Build()
if req.Error != nil {
t.Errorf("expect no error, got %v", req.Error)
}
// assert body
if r.Body == nil {
t.Errorf("expect body not to be nil")
}
body, _ := ioutil.ReadAll(r.Body)
awstesting.AssertQuery(t, `Action=OperationName&TimeArg=2015-01-25T08%3A00%3A00Z&TimeCustom=1422172800&TimeFormat=1422172800&Version=2014-01-01`, util.Trim(string(body)))
// assert URL
awstesting.AssertURL(t, "https://test/", r.URL.String())
// assert headers
}
func TestInputService13ProtocolTestRecursiveShapesCase1(t *testing.T) {
svc := NewInputService13ProtocolTest(unit.Session, &aws.Config{Endpoint: aws.String("https://test")})
input := &InputService13TestShapeInputService13TestCaseOperation1Input{
RecursiveStruct: &InputService13TestShapeRecursiveStructType{
NoRecurse: aws.String("foo"),
},
}
req, _ := svc.InputService13TestCaseOperation1Request(input)
r := req.HTTPRequest
// build request
req.Build()
if req.Error != nil {
t.Errorf("expect no error, got %v", req.Error)
}
// assert body
if r.Body == nil {
t.Errorf("expect body not to be nil")
}
body, _ := ioutil.ReadAll(r.Body)
awstesting.AssertQuery(t, `Action=OperationName&RecursiveStruct.NoRecurse=foo&Version=2014-01-01`, util.Trim(string(body)))
// assert URL
awstesting.AssertURL(t, "https://test/", r.URL.String())
// assert headers
}
func TestInputService13ProtocolTestRecursiveShapesCase2(t *testing.T) {
svc := NewInputService13ProtocolTest(unit.Session, &aws.Config{Endpoint: aws.String("https://test")})
input := &InputService13TestShapeInputService13TestCaseOperation2Input{
RecursiveStruct: &InputService13TestShapeRecursiveStructType{
RecursiveStruct: &InputService13TestShapeRecursiveStructType{
NoRecurse: aws.String("foo"),
},
},
}
req, _ := svc.InputService13TestCaseOperation2Request(input)
r := req.HTTPRequest
// build request
req.Build()
if req.Error != nil {
t.Errorf("expect no error, got %v", req.Error)
}
// assert body
if r.Body == nil {
t.Errorf("expect body not to be nil")
}
body, _ := ioutil.ReadAll(r.Body)
awstesting.AssertQuery(t, `Action=OperationName&RecursiveStruct.RecursiveStruct.NoRecurse=foo&Version=2014-01-01`, util.Trim(string(body)))
// assert URL
awstesting.AssertURL(t, "https://test/", r.URL.String())
// assert headers
}
func TestInputService13ProtocolTestRecursiveShapesCase3(t *testing.T) {
svc := NewInputService13ProtocolTest(unit.Session, &aws.Config{Endpoint: aws.String("https://test")})
input := &InputService13TestShapeInputService13TestCaseOperation3Input{
RecursiveStruct: &InputService13TestShapeRecursiveStructType{
RecursiveStruct: &InputService13TestShapeRecursiveStructType{
RecursiveStruct: &InputService13TestShapeRecursiveStructType{
RecursiveStruct: &InputService13TestShapeRecursiveStructType{
NoRecurse: aws.String("foo"),
},
},
},
},
}
req, _ := svc.InputService13TestCaseOperation3Request(input)
r := req.HTTPRequest
// build request
req.Build()
if req.Error != nil {
t.Errorf("expect no error, got %v", req.Error)
}
// assert body
if r.Body == nil {
t.Errorf("expect body not to be nil")
}
body, _ := ioutil.ReadAll(r.Body)
awstesting.AssertQuery(t, `Action=OperationName&RecursiveStruct.RecursiveStruct.RecursiveStruct.RecursiveStruct.NoRecurse=foo&Version=2014-01-01`, util.Trim(string(body)))
// assert URL
awstesting.AssertURL(t, "https://test/", r.URL.String())
// assert headers
}
func TestInputService13ProtocolTestRecursiveShapesCase4(t *testing.T) {
svc := NewInputService13ProtocolTest(unit.Session, &aws.Config{Endpoint: aws.String("https://test")})
input := &InputService13TestShapeInputService13TestCaseOperation4Input{
RecursiveStruct: &InputService13TestShapeRecursiveStructType{
RecursiveList: []*InputService13TestShapeRecursiveStructType{
{
NoRecurse: aws.String("foo"),
},
{
NoRecurse: aws.String("bar"),
},
},
},
}
req, _ := svc.InputService13TestCaseOperation4Request(input)
r := req.HTTPRequest
// build request
req.Build()
if req.Error != nil {
t.Errorf("expect no error, got %v", req.Error)
}
// assert body
if r.Body == nil {
t.Errorf("expect body not to be nil")
}
body, _ := ioutil.ReadAll(r.Body)
awstesting.AssertQuery(t, `Action=OperationName&RecursiveStruct.RecursiveList.member.1.NoRecurse=foo&RecursiveStruct.RecursiveList.member.2.NoRecurse=bar&Version=2014-01-01`, util.Trim(string(body)))
// assert URL
awstesting.AssertURL(t, "https://test/", r.URL.String())
// assert headers
}
func TestInputService13ProtocolTestRecursiveShapesCase5(t *testing.T) {
svc := NewInputService13ProtocolTest(unit.Session, &aws.Config{Endpoint: aws.String("https://test")})
input := &InputService13TestShapeInputService13TestCaseOperation5Input{
RecursiveStruct: &InputService13TestShapeRecursiveStructType{
RecursiveList: []*InputService13TestShapeRecursiveStructType{
{
NoRecurse: aws.String("foo"),
},
{
RecursiveStruct: &InputService13TestShapeRecursiveStructType{
NoRecurse: aws.String("bar"),
},
},
},
},
}
req, _ := svc.InputService13TestCaseOperation5Request(input)
r := req.HTTPRequest
// build request
req.Build()
if req.Error != nil {
t.Errorf("expect no error, got %v", req.Error)
}
// assert body
if r.Body == nil {
t.Errorf("expect body not to be nil")
}
body, _ := ioutil.ReadAll(r.Body)
awstesting.AssertQuery(t, `Action=OperationName&RecursiveStruct.RecursiveList.member.1.NoRecurse=foo&RecursiveStruct.RecursiveList.member.2.RecursiveStruct.NoRecurse=bar&Version=2014-01-01`, util.Trim(string(body)))
// assert URL
awstesting.AssertURL(t, "https://test/", r.URL.String())
// assert headers
}
func TestInputService13ProtocolTestRecursiveShapesCase6(t *testing.T) {
svc := NewInputService13ProtocolTest(unit.Session, &aws.Config{Endpoint: aws.String("https://test")})
input := &InputService13TestShapeInputService13TestCaseOperation6Input{
RecursiveStruct: &InputService13TestShapeRecursiveStructType{
RecursiveMap: map[string]*InputService13TestShapeRecursiveStructType{
"bar": {
NoRecurse: aws.String("bar"),
},
"foo": {
NoRecurse: aws.String("foo"),
},
},
},
}
req, _ := svc.InputService13TestCaseOperation6Request(input)
r := req.HTTPRequest
// build request
req.Build()
if req.Error != nil {
t.Errorf("expect no error, got %v", req.Error)
}
// assert body
if r.Body == nil {
t.Errorf("expect body not to be nil")
}
body, _ := ioutil.ReadAll(r.Body)
awstesting.AssertQuery(t, `Action=OperationName&RecursiveStruct.RecursiveMap.entry.1.key=foo&RecursiveStruct.RecursiveMap.entry.1.value.NoRecurse=foo&RecursiveStruct.RecursiveMap.entry.2.key=bar&RecursiveStruct.RecursiveMap.entry.2.value.NoRecurse=bar&Version=2014-01-01`, util.Trim(string(body)))
// assert URL
awstesting.AssertURL(t, "https://test/", r.URL.String())
// assert headers
}
func TestInputService14ProtocolTestIdempotencyTokenAutoFillCase1(t *testing.T) {
svc := NewInputService14ProtocolTest(unit.Session, &aws.Config{Endpoint: aws.String("https://test")})
input := &InputService14TestShapeInputService14TestCaseOperation1Input{
Token: aws.String("abc123"),
}
req, _ := svc.InputService14TestCaseOperation1Request(input)
r := req.HTTPRequest
// build request
req.Build()
if req.Error != nil {
t.Errorf("expect no error, got %v", req.Error)
}
// assert body
if r.Body == nil {
t.Errorf("expect body not to be nil")
}
body, _ := ioutil.ReadAll(r.Body)
awstesting.AssertQuery(t, `Action=OperationName&Token=abc123&Version=2014-01-01`, util.Trim(string(body)))
// assert URL
awstesting.AssertURL(t, "https://test/", r.URL.String())
// assert headers
}
func TestInputService14ProtocolTestIdempotencyTokenAutoFillCase2(t *testing.T) {
svc := NewInputService14ProtocolTest(unit.Session, &aws.Config{Endpoint: aws.String("https://test")})
input := &InputService14TestShapeInputService14TestCaseOperation2Input{}
req, _ := svc.InputService14TestCaseOperation2Request(input)
r := req.HTTPRequest
// build request
req.Build()
if req.Error != nil {
t.Errorf("expect no error, got %v", req.Error)
}
// assert body
if r.Body == nil {
t.Errorf("expect body not to be nil")
}
body, _ := ioutil.ReadAll(r.Body)
awstesting.AssertQuery(t, `Action=OperationName&Token=00000000-0000-4000-8000-000000000000&Version=2014-01-01`, util.Trim(string(body)))
// assert URL
awstesting.AssertURL(t, "https://test/", r.URL.String())
// assert headers
}
func TestInputService15ProtocolTestEnumCase1(t *testing.T) {
svc := NewInputService15ProtocolTest(unit.Session, &aws.Config{Endpoint: aws.String("https://test")})
input := &InputService15TestShapeInputService15TestCaseOperation1Input{
FooEnum: aws.String("foo"),
ListEnums: []*string{
aws.String("foo"),
aws.String(""),
aws.String("bar"),
},
}
req, _ := svc.InputService15TestCaseOperation1Request(input)
r := req.HTTPRequest
// build request
req.Build()
if req.Error != nil {
t.Errorf("expect no error, got %v", req.Error)
}
// assert body
if r.Body == nil {
t.Errorf("expect body not to be nil")
}
body, _ := ioutil.ReadAll(r.Body)
awstesting.AssertQuery(t, `Action=OperationName&FooEnum=foo&ListEnums.member.1=foo&ListEnums.member.2=&ListEnums.member.3=bar&Version=2014-01-01`, util.Trim(string(body)))
// assert URL
awstesting.AssertURL(t, "https://test/", r.URL.String())
// assert headers
}
func TestInputService15ProtocolTestEnumCase2(t *testing.T) {
svc := NewInputService15ProtocolTest(unit.Session, &aws.Config{Endpoint: aws.String("https://test")})
input := &InputService15TestShapeInputService15TestCaseOperation2Input{
FooEnum: aws.String("foo"),
}
req, _ := svc.InputService15TestCaseOperation2Request(input)
r := req.HTTPRequest
// build request
req.Build()
if req.Error != nil {
t.Errorf("expect no error, got %v", req.Error)
}
// assert body
if r.Body == nil {
t.Errorf("expect body not to be nil")
}
body, _ := ioutil.ReadAll(r.Body)
awstesting.AssertQuery(t, `Action=OperationName&FooEnum=foo&Version=2014-01-01`, util.Trim(string(body)))
// assert URL
awstesting.AssertURL(t, "https://test/", r.URL.String())
// assert headers
}
func TestInputService15ProtocolTestEnumCase3(t *testing.T) {
svc := NewInputService15ProtocolTest(unit.Session, &aws.Config{Endpoint: aws.String("https://test")})
input := &InputService15TestShapeInputService15TestCaseOperation3Input{}
req, _ := svc.InputService15TestCaseOperation3Request(input)
r := req.HTTPRequest
// build request
req.Build()
if req.Error != nil {
t.Errorf("expect no error, got %v", req.Error)
}
// assert body
if r.Body == nil {
t.Errorf("expect body not to be nil")
}
body, _ := ioutil.ReadAll(r.Body)
awstesting.AssertQuery(t, `Action=OperationName&Version=2014-01-01`, util.Trim(string(body)))
// assert URL
awstesting.AssertURL(t, "https://test/", r.URL.String())
// assert headers
}
func TestInputService16ProtocolTestEndpointHostTraitCase1(t *testing.T) {
svc := NewInputService16ProtocolTest(unit.Session, &aws.Config{Endpoint: aws.String("https://service.region.amazonaws.com")})
input := &InputService16TestShapeInputService16TestCaseOperation1Input{
Name: aws.String("myname"),
}
req, _ := svc.InputService16TestCaseOperation1Request(input)
r := req.HTTPRequest
// build request
req.Build()
if req.Error != nil {
t.Errorf("expect no error, got %v", req.Error)
}
// assert body
if r.Body == nil {
t.Errorf("expect body not to be nil")
}
body, _ := ioutil.ReadAll(r.Body)
awstesting.AssertQuery(t, `Action=StaticOp&Name=myname&Version=2014-01-01`, util.Trim(string(body)))
// assert URL
awstesting.AssertURL(t, "https://data-service.region.amazonaws.com/", r.URL.String())
// assert headers
}
func TestInputService16ProtocolTestEndpointHostTraitCase2(t *testing.T) {
svc := NewInputService16ProtocolTest(unit.Session, &aws.Config{Endpoint: aws.String("https://service.region.amazonaws.com")})
input := &InputService16TestShapeInputService16TestCaseOperation2Input{
Name: aws.String("myname"),
}
req, _ := svc.InputService16TestCaseOperation2Request(input)
r := req.HTTPRequest
// build request
req.Build()
if req.Error != nil {
t.Errorf("expect no error, got %v", req.Error)
}
// assert body
if r.Body == nil {
t.Errorf("expect body not to be nil")
}
body, _ := ioutil.ReadAll(r.Body)
awstesting.AssertQuery(t, `Action=MemberRefOp&Name=myname&Version=2014-01-01`, util.Trim(string(body)))
// assert URL
awstesting.AssertURL(t, "https://foo-myname.service.region.amazonaws.com/", r.URL.String())
// assert headers
}
| 4,644 |
session-manager-plugin | aws | Go | package query
//go:generate go run -tags codegen ../../../private/model/cli/gen-protocol-tests ../../../models/protocol_tests/output/query.json unmarshal_test.go
import (
"encoding/xml"
"github.com/aws/aws-sdk-go/aws/awserr"
"github.com/aws/aws-sdk-go/aws/request"
"github.com/aws/aws-sdk-go/private/protocol/xml/xmlutil"
)
// UnmarshalHandler is a named request handler for unmarshaling query protocol requests
var UnmarshalHandler = request.NamedHandler{Name: "awssdk.query.Unmarshal", Fn: Unmarshal}
// UnmarshalMetaHandler is a named request handler for unmarshaling query protocol request metadata
var UnmarshalMetaHandler = request.NamedHandler{Name: "awssdk.query.UnmarshalMeta", Fn: UnmarshalMeta}
// Unmarshal unmarshals a response for an AWS Query service.
func Unmarshal(r *request.Request) {
defer r.HTTPResponse.Body.Close()
if r.DataFilled() {
decoder := xml.NewDecoder(r.HTTPResponse.Body)
err := xmlutil.UnmarshalXML(r.Data, decoder, r.Operation.Name+"Result")
if err != nil {
r.Error = awserr.NewRequestFailure(
awserr.New(request.ErrCodeSerialization, "failed decoding Query response", err),
r.HTTPResponse.StatusCode,
r.RequestID,
)
return
}
}
}
// UnmarshalMeta unmarshals header response values for an AWS Query service.
func UnmarshalMeta(r *request.Request) {
r.RequestID = r.HTTPResponse.Header.Get("X-Amzn-Requestid")
}
| 40 |
session-manager-plugin | aws | Go | package query
import (
"encoding/xml"
"fmt"
"github.com/aws/aws-sdk-go/aws/awserr"
"github.com/aws/aws-sdk-go/aws/request"
"github.com/aws/aws-sdk-go/private/protocol/xml/xmlutil"
)
// UnmarshalErrorHandler is a name request handler to unmarshal request errors
var UnmarshalErrorHandler = request.NamedHandler{Name: "awssdk.query.UnmarshalError", Fn: UnmarshalError}
type xmlErrorResponse struct {
Code string `xml:"Error>Code"`
Message string `xml:"Error>Message"`
RequestID string `xml:"RequestId"`
}
type xmlResponseError struct {
xmlErrorResponse
}
func (e *xmlResponseError) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error {
const svcUnavailableTagName = "ServiceUnavailableException"
const errorResponseTagName = "ErrorResponse"
switch start.Name.Local {
case svcUnavailableTagName:
e.Code = svcUnavailableTagName
e.Message = "service is unavailable"
return d.Skip()
case errorResponseTagName:
return d.DecodeElement(&e.xmlErrorResponse, &start)
default:
return fmt.Errorf("unknown error response tag, %v", start)
}
}
// UnmarshalError unmarshals an error response for an AWS Query service.
func UnmarshalError(r *request.Request) {
defer r.HTTPResponse.Body.Close()
var respErr xmlResponseError
err := xmlutil.UnmarshalXMLError(&respErr, r.HTTPResponse.Body)
if err != nil {
r.Error = awserr.NewRequestFailure(
awserr.New(request.ErrCodeSerialization,
"failed to unmarshal error message", err),
r.HTTPResponse.StatusCode,
r.RequestID,
)
return
}
reqID := respErr.RequestID
if len(reqID) == 0 {
reqID = r.RequestID
}
r.Error = awserr.NewRequestFailure(
awserr.New(respErr.Code, respErr.Message, nil),
r.HTTPResponse.StatusCode,
reqID,
)
}
| 70 |
session-manager-plugin | aws | Go | // +build go1.8
package query
import (
"io/ioutil"
"net/http"
"strings"
"testing"
"github.com/aws/aws-sdk-go/aws/awserr"
"github.com/aws/aws-sdk-go/aws/request"
)
func TestUnmarshalError(t *testing.T) {
cases := map[string]struct {
Request *request.Request
Code, Msg string
ReqID string
Status int
}{
"ErrorResponse": {
Request: &request.Request{
HTTPResponse: &http.Response{
StatusCode: 400,
Header: http.Header{},
Body: ioutil.NopCloser(strings.NewReader(
`<ErrorResponse>
<Error>
<Code>codeAbc</Code><Message>msg123</Message>
</Error>
<RequestId>reqID123</RequestId>
</ErrorResponse>`)),
},
},
Code: "codeAbc", Msg: "msg123",
Status: 400, ReqID: "reqID123",
},
"ServiceUnavailableException": {
Request: &request.Request{
HTTPResponse: &http.Response{
StatusCode: 502,
Header: http.Header{},
Body: ioutil.NopCloser(strings.NewReader(
`<ServiceUnavailableException>
<Something>else</Something>
</ServiceUnavailableException>`)),
},
},
Code: "ServiceUnavailableException",
Msg: "service is unavailable",
Status: 502,
},
"unknown tag": {
Request: &request.Request{
HTTPResponse: &http.Response{
StatusCode: 400,
Header: http.Header{},
Body: ioutil.NopCloser(strings.NewReader(
`<Hello>
<World>.</World>
</Hello>`)),
},
},
Code: request.ErrCodeSerialization,
Msg: "failed to unmarshal error message",
Status: 400,
},
}
for name, c := range cases {
t.Run(name, func(t *testing.T) {
r := c.Request
UnmarshalError(r)
if r.Error == nil {
t.Fatalf("expect error, got none")
}
aerr := r.Error.(awserr.RequestFailure)
if e, a := c.Code, aerr.Code(); e != a {
t.Errorf("expect %v code, got %v", e, a)
}
if e, a := c.Msg, aerr.Message(); e != a {
t.Errorf("expect %q message, got %q", e, a)
}
if e, a := c.ReqID, aerr.RequestID(); e != a {
t.Errorf("expect %v request ID, got %v", e, a)
}
if e, a := c.Status, aerr.StatusCode(); e != a {
t.Errorf("expect %v status code, got %v", e, a)
}
})
}
}
| 95 |
session-manager-plugin | aws | Go | // Code generated by models/protocol_tests/generate.go. DO NOT EDIT.
package query_test
import (
"bytes"
"encoding/json"
"encoding/xml"
"fmt"
"io"
"io/ioutil"
"net/http"
"net/url"
"reflect"
"testing"
"time"
"github.com/aws/aws-sdk-go/aws"
"github.com/aws/aws-sdk-go/aws/client"
"github.com/aws/aws-sdk-go/aws/client/metadata"
"github.com/aws/aws-sdk-go/aws/request"
"github.com/aws/aws-sdk-go/aws/signer/v4"
"github.com/aws/aws-sdk-go/awstesting"
"github.com/aws/aws-sdk-go/awstesting/unit"
"github.com/aws/aws-sdk-go/private/protocol"
"github.com/aws/aws-sdk-go/private/protocol/query"
"github.com/aws/aws-sdk-go/private/protocol/xml/xmlutil"
"github.com/aws/aws-sdk-go/private/util"
)
var _ bytes.Buffer // always import bytes
var _ http.Request
var _ json.Marshaler
var _ time.Time
var _ xmlutil.XMLNode
var _ xml.Attr
var _ = ioutil.Discard
var _ = util.Trim("")
var _ = url.Values{}
var _ = io.EOF
var _ = aws.String
var _ = fmt.Println
var _ = reflect.Value{}
func init() {
protocol.RandReader = &awstesting.ZeroReader{}
}
// OutputService1ProtocolTest provides the API operation methods for making requests to
// . See this package's package overview docs
// for details on the service.
//
// OutputService1ProtocolTest methods are safe to use concurrently. It is not safe to
// modify mutate any of the struct's properties though.
type OutputService1ProtocolTest struct {
*client.Client
}
// New creates a new instance of the OutputService1ProtocolTest 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 OutputService1ProtocolTest client from just a session.
// svc := outputservice1protocoltest.New(mySession)
//
// // Create a OutputService1ProtocolTest client with additional configuration
// svc := outputservice1protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2"))
func NewOutputService1ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *OutputService1ProtocolTest {
c := p.ClientConfig("outputservice1protocoltest", cfgs...)
return newOutputService1ProtocolTestClient(*c.Config, c.Handlers, c.PartitionID, c.Endpoint, c.SigningRegion, c.SigningName)
}
// newClient creates, initializes and returns a new service client instance.
func newOutputService1ProtocolTestClient(cfg aws.Config, handlers request.Handlers, partitionID, endpoint, signingRegion, signingName string) *OutputService1ProtocolTest {
svc := &OutputService1ProtocolTest{
Client: client.New(
cfg,
metadata.ClientInfo{
ServiceName: "OutputService1ProtocolTest",
ServiceID: "OutputService1ProtocolTest",
SigningName: signingName,
SigningRegion: signingRegion,
PartitionID: partitionID,
Endpoint: endpoint,
APIVersion: "",
},
handlers,
),
}
// Handlers
svc.Handlers.Sign.PushBackNamed(v4.SignRequestHandler)
svc.Handlers.Build.PushBackNamed(query.BuildHandler)
svc.Handlers.Unmarshal.PushBackNamed(query.UnmarshalHandler)
svc.Handlers.UnmarshalMeta.PushBackNamed(query.UnmarshalMetaHandler)
svc.Handlers.UnmarshalError.PushBackNamed(query.UnmarshalErrorHandler)
return svc
}
// newRequest creates a new request for a OutputService1ProtocolTest operation and runs any
// custom request initialization.
func (c *OutputService1ProtocolTest) newRequest(op *request.Operation, params, data interface{}) *request.Request {
req := c.NewRequest(op, params, data)
return req
}
const opOutputService1TestCaseOperation1 = "OperationName"
// OutputService1TestCaseOperation1Request generates a "aws/request.Request" representing the
// client's request for the OutputService1TestCaseOperation1 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 OutputService1TestCaseOperation1 for more information on using the OutputService1TestCaseOperation1
// 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 OutputService1TestCaseOperation1Request method.
// req, resp := client.OutputService1TestCaseOperation1Request(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
func (c *OutputService1ProtocolTest) OutputService1TestCaseOperation1Request(input *OutputService1TestShapeOutputService1TestCaseOperation1Input) (req *request.Request, output *OutputService1TestShapeOutputService1TestCaseOperation1Output) {
op := &request.Operation{
Name: opOutputService1TestCaseOperation1,
HTTPPath: "/",
}
if input == nil {
input = &OutputService1TestShapeOutputService1TestCaseOperation1Input{}
}
output = &OutputService1TestShapeOutputService1TestCaseOperation1Output{}
req = c.newRequest(op, input, output)
return
}
// OutputService1TestCaseOperation1 API operation for .
//
// 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 's
// API operation OutputService1TestCaseOperation1 for usage and error information.
func (c *OutputService1ProtocolTest) OutputService1TestCaseOperation1(input *OutputService1TestShapeOutputService1TestCaseOperation1Input) (*OutputService1TestShapeOutputService1TestCaseOperation1Output, error) {
req, out := c.OutputService1TestCaseOperation1Request(input)
return out, req.Send()
}
// OutputService1TestCaseOperation1WithContext is the same as OutputService1TestCaseOperation1 with the addition of
// the ability to pass a context and additional request options.
//
// See OutputService1TestCaseOperation1 for details on how to use this API operation.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
func (c *OutputService1ProtocolTest) OutputService1TestCaseOperation1WithContext(ctx aws.Context, input *OutputService1TestShapeOutputService1TestCaseOperation1Input, opts ...request.Option) (*OutputService1TestShapeOutputService1TestCaseOperation1Output, error) {
req, out := c.OutputService1TestCaseOperation1Request(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
type OutputService1TestShapeOutputService1TestCaseOperation1Input struct {
_ struct{} `type:"structure"`
}
type OutputService1TestShapeOutputService1TestCaseOperation1Output struct {
_ struct{} `type:"structure"`
Char *string `type:"character"`
Double *float64 `type:"double"`
FalseBool *bool `type:"boolean"`
Float *float64 `type:"float"`
Long *int64 `type:"long"`
Num *int64 `locationName:"FooNum" type:"integer"`
Str *string `type:"string"`
Timestamp *time.Time `type:"timestamp"`
TrueBool *bool `type:"boolean"`
}
// SetChar sets the Char field's value.
func (s *OutputService1TestShapeOutputService1TestCaseOperation1Output) SetChar(v string) *OutputService1TestShapeOutputService1TestCaseOperation1Output {
s.Char = &v
return s
}
// SetDouble sets the Double field's value.
func (s *OutputService1TestShapeOutputService1TestCaseOperation1Output) SetDouble(v float64) *OutputService1TestShapeOutputService1TestCaseOperation1Output {
s.Double = &v
return s
}
// SetFalseBool sets the FalseBool field's value.
func (s *OutputService1TestShapeOutputService1TestCaseOperation1Output) SetFalseBool(v bool) *OutputService1TestShapeOutputService1TestCaseOperation1Output {
s.FalseBool = &v
return s
}
// SetFloat sets the Float field's value.
func (s *OutputService1TestShapeOutputService1TestCaseOperation1Output) SetFloat(v float64) *OutputService1TestShapeOutputService1TestCaseOperation1Output {
s.Float = &v
return s
}
// SetLong sets the Long field's value.
func (s *OutputService1TestShapeOutputService1TestCaseOperation1Output) SetLong(v int64) *OutputService1TestShapeOutputService1TestCaseOperation1Output {
s.Long = &v
return s
}
// SetNum sets the Num field's value.
func (s *OutputService1TestShapeOutputService1TestCaseOperation1Output) SetNum(v int64) *OutputService1TestShapeOutputService1TestCaseOperation1Output {
s.Num = &v
return s
}
// SetStr sets the Str field's value.
func (s *OutputService1TestShapeOutputService1TestCaseOperation1Output) SetStr(v string) *OutputService1TestShapeOutputService1TestCaseOperation1Output {
s.Str = &v
return s
}
// SetTimestamp sets the Timestamp field's value.
func (s *OutputService1TestShapeOutputService1TestCaseOperation1Output) SetTimestamp(v time.Time) *OutputService1TestShapeOutputService1TestCaseOperation1Output {
s.Timestamp = &v
return s
}
// SetTrueBool sets the TrueBool field's value.
func (s *OutputService1TestShapeOutputService1TestCaseOperation1Output) SetTrueBool(v bool) *OutputService1TestShapeOutputService1TestCaseOperation1Output {
s.TrueBool = &v
return s
}
// OutputService2ProtocolTest provides the API operation methods for making requests to
// . See this package's package overview docs
// for details on the service.
//
// OutputService2ProtocolTest methods are safe to use concurrently. It is not safe to
// modify mutate any of the struct's properties though.
type OutputService2ProtocolTest struct {
*client.Client
}
// New creates a new instance of the OutputService2ProtocolTest 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 OutputService2ProtocolTest client from just a session.
// svc := outputservice2protocoltest.New(mySession)
//
// // Create a OutputService2ProtocolTest client with additional configuration
// svc := outputservice2protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2"))
func NewOutputService2ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *OutputService2ProtocolTest {
c := p.ClientConfig("outputservice2protocoltest", cfgs...)
return newOutputService2ProtocolTestClient(*c.Config, c.Handlers, c.PartitionID, c.Endpoint, c.SigningRegion, c.SigningName)
}
// newClient creates, initializes and returns a new service client instance.
func newOutputService2ProtocolTestClient(cfg aws.Config, handlers request.Handlers, partitionID, endpoint, signingRegion, signingName string) *OutputService2ProtocolTest {
svc := &OutputService2ProtocolTest{
Client: client.New(
cfg,
metadata.ClientInfo{
ServiceName: "OutputService2ProtocolTest",
ServiceID: "OutputService2ProtocolTest",
SigningName: signingName,
SigningRegion: signingRegion,
PartitionID: partitionID,
Endpoint: endpoint,
APIVersion: "",
},
handlers,
),
}
// Handlers
svc.Handlers.Sign.PushBackNamed(v4.SignRequestHandler)
svc.Handlers.Build.PushBackNamed(query.BuildHandler)
svc.Handlers.Unmarshal.PushBackNamed(query.UnmarshalHandler)
svc.Handlers.UnmarshalMeta.PushBackNamed(query.UnmarshalMetaHandler)
svc.Handlers.UnmarshalError.PushBackNamed(query.UnmarshalErrorHandler)
return svc
}
// newRequest creates a new request for a OutputService2ProtocolTest operation and runs any
// custom request initialization.
func (c *OutputService2ProtocolTest) newRequest(op *request.Operation, params, data interface{}) *request.Request {
req := c.NewRequest(op, params, data)
return req
}
const opOutputService2TestCaseOperation1 = "OperationName"
// OutputService2TestCaseOperation1Request generates a "aws/request.Request" representing the
// client's request for the OutputService2TestCaseOperation1 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 OutputService2TestCaseOperation1 for more information on using the OutputService2TestCaseOperation1
// 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 OutputService2TestCaseOperation1Request method.
// req, resp := client.OutputService2TestCaseOperation1Request(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
func (c *OutputService2ProtocolTest) OutputService2TestCaseOperation1Request(input *OutputService2TestShapeOutputService2TestCaseOperation1Input) (req *request.Request, output *OutputService2TestShapeOutputService2TestCaseOperation1Output) {
op := &request.Operation{
Name: opOutputService2TestCaseOperation1,
HTTPPath: "/",
}
if input == nil {
input = &OutputService2TestShapeOutputService2TestCaseOperation1Input{}
}
output = &OutputService2TestShapeOutputService2TestCaseOperation1Output{}
req = c.newRequest(op, input, output)
return
}
// OutputService2TestCaseOperation1 API operation for .
//
// 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 's
// API operation OutputService2TestCaseOperation1 for usage and error information.
func (c *OutputService2ProtocolTest) OutputService2TestCaseOperation1(input *OutputService2TestShapeOutputService2TestCaseOperation1Input) (*OutputService2TestShapeOutputService2TestCaseOperation1Output, error) {
req, out := c.OutputService2TestCaseOperation1Request(input)
return out, req.Send()
}
// OutputService2TestCaseOperation1WithContext is the same as OutputService2TestCaseOperation1 with the addition of
// the ability to pass a context and additional request options.
//
// See OutputService2TestCaseOperation1 for details on how to use this API operation.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
func (c *OutputService2ProtocolTest) OutputService2TestCaseOperation1WithContext(ctx aws.Context, input *OutputService2TestShapeOutputService2TestCaseOperation1Input, opts ...request.Option) (*OutputService2TestShapeOutputService2TestCaseOperation1Output, error) {
req, out := c.OutputService2TestCaseOperation1Request(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
type OutputService2TestShapeOutputService2TestCaseOperation1Input struct {
_ struct{} `type:"structure"`
}
type OutputService2TestShapeOutputService2TestCaseOperation1Output struct {
_ struct{} `type:"structure"`
Num *int64 `type:"integer"`
Str *string `type:"string"`
}
// SetNum sets the Num field's value.
func (s *OutputService2TestShapeOutputService2TestCaseOperation1Output) SetNum(v int64) *OutputService2TestShapeOutputService2TestCaseOperation1Output {
s.Num = &v
return s
}
// SetStr sets the Str field's value.
func (s *OutputService2TestShapeOutputService2TestCaseOperation1Output) SetStr(v string) *OutputService2TestShapeOutputService2TestCaseOperation1Output {
s.Str = &v
return s
}
// OutputService3ProtocolTest provides the API operation methods for making requests to
// . See this package's package overview docs
// for details on the service.
//
// OutputService3ProtocolTest methods are safe to use concurrently. It is not safe to
// modify mutate any of the struct's properties though.
type OutputService3ProtocolTest struct {
*client.Client
}
// New creates a new instance of the OutputService3ProtocolTest 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 OutputService3ProtocolTest client from just a session.
// svc := outputservice3protocoltest.New(mySession)
//
// // Create a OutputService3ProtocolTest client with additional configuration
// svc := outputservice3protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2"))
func NewOutputService3ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *OutputService3ProtocolTest {
c := p.ClientConfig("outputservice3protocoltest", cfgs...)
return newOutputService3ProtocolTestClient(*c.Config, c.Handlers, c.PartitionID, c.Endpoint, c.SigningRegion, c.SigningName)
}
// newClient creates, initializes and returns a new service client instance.
func newOutputService3ProtocolTestClient(cfg aws.Config, handlers request.Handlers, partitionID, endpoint, signingRegion, signingName string) *OutputService3ProtocolTest {
svc := &OutputService3ProtocolTest{
Client: client.New(
cfg,
metadata.ClientInfo{
ServiceName: "OutputService3ProtocolTest",
ServiceID: "OutputService3ProtocolTest",
SigningName: signingName,
SigningRegion: signingRegion,
PartitionID: partitionID,
Endpoint: endpoint,
APIVersion: "",
},
handlers,
),
}
// Handlers
svc.Handlers.Sign.PushBackNamed(v4.SignRequestHandler)
svc.Handlers.Build.PushBackNamed(query.BuildHandler)
svc.Handlers.Unmarshal.PushBackNamed(query.UnmarshalHandler)
svc.Handlers.UnmarshalMeta.PushBackNamed(query.UnmarshalMetaHandler)
svc.Handlers.UnmarshalError.PushBackNamed(query.UnmarshalErrorHandler)
return svc
}
// newRequest creates a new request for a OutputService3ProtocolTest operation and runs any
// custom request initialization.
func (c *OutputService3ProtocolTest) newRequest(op *request.Operation, params, data interface{}) *request.Request {
req := c.NewRequest(op, params, data)
return req
}
const opOutputService3TestCaseOperation1 = "OperationName"
// OutputService3TestCaseOperation1Request generates a "aws/request.Request" representing the
// client's request for the OutputService3TestCaseOperation1 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 OutputService3TestCaseOperation1 for more information on using the OutputService3TestCaseOperation1
// 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 OutputService3TestCaseOperation1Request method.
// req, resp := client.OutputService3TestCaseOperation1Request(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
func (c *OutputService3ProtocolTest) OutputService3TestCaseOperation1Request(input *OutputService3TestShapeOutputService3TestCaseOperation1Input) (req *request.Request, output *OutputService3TestShapeOutputService3TestCaseOperation1Output) {
op := &request.Operation{
Name: opOutputService3TestCaseOperation1,
HTTPPath: "/",
}
if input == nil {
input = &OutputService3TestShapeOutputService3TestCaseOperation1Input{}
}
output = &OutputService3TestShapeOutputService3TestCaseOperation1Output{}
req = c.newRequest(op, input, output)
return
}
// OutputService3TestCaseOperation1 API operation for .
//
// 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 's
// API operation OutputService3TestCaseOperation1 for usage and error information.
func (c *OutputService3ProtocolTest) OutputService3TestCaseOperation1(input *OutputService3TestShapeOutputService3TestCaseOperation1Input) (*OutputService3TestShapeOutputService3TestCaseOperation1Output, error) {
req, out := c.OutputService3TestCaseOperation1Request(input)
return out, req.Send()
}
// OutputService3TestCaseOperation1WithContext is the same as OutputService3TestCaseOperation1 with the addition of
// the ability to pass a context and additional request options.
//
// See OutputService3TestCaseOperation1 for details on how to use this API operation.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
func (c *OutputService3ProtocolTest) OutputService3TestCaseOperation1WithContext(ctx aws.Context, input *OutputService3TestShapeOutputService3TestCaseOperation1Input, opts ...request.Option) (*OutputService3TestShapeOutputService3TestCaseOperation1Output, error) {
req, out := c.OutputService3TestCaseOperation1Request(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
type OutputService3TestShapeOutputService3TestCaseOperation1Input struct {
_ struct{} `type:"structure"`
}
type OutputService3TestShapeOutputService3TestCaseOperation1Output struct {
_ struct{} `type:"structure"`
// Blob is automatically base64 encoded/decoded by the SDK.
Blob []byte `type:"blob"`
}
// SetBlob sets the Blob field's value.
func (s *OutputService3TestShapeOutputService3TestCaseOperation1Output) SetBlob(v []byte) *OutputService3TestShapeOutputService3TestCaseOperation1Output {
s.Blob = v
return s
}
// OutputService4ProtocolTest provides the API operation methods for making requests to
// . See this package's package overview docs
// for details on the service.
//
// OutputService4ProtocolTest methods are safe to use concurrently. It is not safe to
// modify mutate any of the struct's properties though.
type OutputService4ProtocolTest struct {
*client.Client
}
// New creates a new instance of the OutputService4ProtocolTest 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 OutputService4ProtocolTest client from just a session.
// svc := outputservice4protocoltest.New(mySession)
//
// // Create a OutputService4ProtocolTest client with additional configuration
// svc := outputservice4protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2"))
func NewOutputService4ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *OutputService4ProtocolTest {
c := p.ClientConfig("outputservice4protocoltest", cfgs...)
return newOutputService4ProtocolTestClient(*c.Config, c.Handlers, c.PartitionID, c.Endpoint, c.SigningRegion, c.SigningName)
}
// newClient creates, initializes and returns a new service client instance.
func newOutputService4ProtocolTestClient(cfg aws.Config, handlers request.Handlers, partitionID, endpoint, signingRegion, signingName string) *OutputService4ProtocolTest {
svc := &OutputService4ProtocolTest{
Client: client.New(
cfg,
metadata.ClientInfo{
ServiceName: "OutputService4ProtocolTest",
ServiceID: "OutputService4ProtocolTest",
SigningName: signingName,
SigningRegion: signingRegion,
PartitionID: partitionID,
Endpoint: endpoint,
APIVersion: "",
},
handlers,
),
}
// Handlers
svc.Handlers.Sign.PushBackNamed(v4.SignRequestHandler)
svc.Handlers.Build.PushBackNamed(query.BuildHandler)
svc.Handlers.Unmarshal.PushBackNamed(query.UnmarshalHandler)
svc.Handlers.UnmarshalMeta.PushBackNamed(query.UnmarshalMetaHandler)
svc.Handlers.UnmarshalError.PushBackNamed(query.UnmarshalErrorHandler)
return svc
}
// newRequest creates a new request for a OutputService4ProtocolTest operation and runs any
// custom request initialization.
func (c *OutputService4ProtocolTest) newRequest(op *request.Operation, params, data interface{}) *request.Request {
req := c.NewRequest(op, params, data)
return req
}
const opOutputService4TestCaseOperation1 = "OperationName"
// OutputService4TestCaseOperation1Request generates a "aws/request.Request" representing the
// client's request for the OutputService4TestCaseOperation1 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 OutputService4TestCaseOperation1 for more information on using the OutputService4TestCaseOperation1
// 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 OutputService4TestCaseOperation1Request method.
// req, resp := client.OutputService4TestCaseOperation1Request(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
func (c *OutputService4ProtocolTest) OutputService4TestCaseOperation1Request(input *OutputService4TestShapeOutputService4TestCaseOperation1Input) (req *request.Request, output *OutputService4TestShapeOutputService4TestCaseOperation1Output) {
op := &request.Operation{
Name: opOutputService4TestCaseOperation1,
HTTPPath: "/",
}
if input == nil {
input = &OutputService4TestShapeOutputService4TestCaseOperation1Input{}
}
output = &OutputService4TestShapeOutputService4TestCaseOperation1Output{}
req = c.newRequest(op, input, output)
return
}
// OutputService4TestCaseOperation1 API operation for .
//
// 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 's
// API operation OutputService4TestCaseOperation1 for usage and error information.
func (c *OutputService4ProtocolTest) OutputService4TestCaseOperation1(input *OutputService4TestShapeOutputService4TestCaseOperation1Input) (*OutputService4TestShapeOutputService4TestCaseOperation1Output, error) {
req, out := c.OutputService4TestCaseOperation1Request(input)
return out, req.Send()
}
// OutputService4TestCaseOperation1WithContext is the same as OutputService4TestCaseOperation1 with the addition of
// the ability to pass a context and additional request options.
//
// See OutputService4TestCaseOperation1 for details on how to use this API operation.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
func (c *OutputService4ProtocolTest) OutputService4TestCaseOperation1WithContext(ctx aws.Context, input *OutputService4TestShapeOutputService4TestCaseOperation1Input, opts ...request.Option) (*OutputService4TestShapeOutputService4TestCaseOperation1Output, error) {
req, out := c.OutputService4TestCaseOperation1Request(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
type OutputService4TestShapeOutputService4TestCaseOperation1Input struct {
_ struct{} `type:"structure"`
}
type OutputService4TestShapeOutputService4TestCaseOperation1Output struct {
_ struct{} `type:"structure"`
ListMember []*string `type:"list"`
}
// SetListMember sets the ListMember field's value.
func (s *OutputService4TestShapeOutputService4TestCaseOperation1Output) SetListMember(v []*string) *OutputService4TestShapeOutputService4TestCaseOperation1Output {
s.ListMember = v
return s
}
// OutputService5ProtocolTest provides the API operation methods for making requests to
// . See this package's package overview docs
// for details on the service.
//
// OutputService5ProtocolTest methods are safe to use concurrently. It is not safe to
// modify mutate any of the struct's properties though.
type OutputService5ProtocolTest struct {
*client.Client
}
// New creates a new instance of the OutputService5ProtocolTest 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 OutputService5ProtocolTest client from just a session.
// svc := outputservice5protocoltest.New(mySession)
//
// // Create a OutputService5ProtocolTest client with additional configuration
// svc := outputservice5protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2"))
func NewOutputService5ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *OutputService5ProtocolTest {
c := p.ClientConfig("outputservice5protocoltest", cfgs...)
return newOutputService5ProtocolTestClient(*c.Config, c.Handlers, c.PartitionID, c.Endpoint, c.SigningRegion, c.SigningName)
}
// newClient creates, initializes and returns a new service client instance.
func newOutputService5ProtocolTestClient(cfg aws.Config, handlers request.Handlers, partitionID, endpoint, signingRegion, signingName string) *OutputService5ProtocolTest {
svc := &OutputService5ProtocolTest{
Client: client.New(
cfg,
metadata.ClientInfo{
ServiceName: "OutputService5ProtocolTest",
ServiceID: "OutputService5ProtocolTest",
SigningName: signingName,
SigningRegion: signingRegion,
PartitionID: partitionID,
Endpoint: endpoint,
APIVersion: "",
},
handlers,
),
}
// Handlers
svc.Handlers.Sign.PushBackNamed(v4.SignRequestHandler)
svc.Handlers.Build.PushBackNamed(query.BuildHandler)
svc.Handlers.Unmarshal.PushBackNamed(query.UnmarshalHandler)
svc.Handlers.UnmarshalMeta.PushBackNamed(query.UnmarshalMetaHandler)
svc.Handlers.UnmarshalError.PushBackNamed(query.UnmarshalErrorHandler)
return svc
}
// newRequest creates a new request for a OutputService5ProtocolTest operation and runs any
// custom request initialization.
func (c *OutputService5ProtocolTest) newRequest(op *request.Operation, params, data interface{}) *request.Request {
req := c.NewRequest(op, params, data)
return req
}
const opOutputService5TestCaseOperation1 = "OperationName"
// OutputService5TestCaseOperation1Request generates a "aws/request.Request" representing the
// client's request for the OutputService5TestCaseOperation1 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 OutputService5TestCaseOperation1 for more information on using the OutputService5TestCaseOperation1
// 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 OutputService5TestCaseOperation1Request method.
// req, resp := client.OutputService5TestCaseOperation1Request(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
func (c *OutputService5ProtocolTest) OutputService5TestCaseOperation1Request(input *OutputService5TestShapeOutputService5TestCaseOperation1Input) (req *request.Request, output *OutputService5TestShapeOutputService5TestCaseOperation1Output) {
op := &request.Operation{
Name: opOutputService5TestCaseOperation1,
HTTPPath: "/",
}
if input == nil {
input = &OutputService5TestShapeOutputService5TestCaseOperation1Input{}
}
output = &OutputService5TestShapeOutputService5TestCaseOperation1Output{}
req = c.newRequest(op, input, output)
return
}
// OutputService5TestCaseOperation1 API operation for .
//
// 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 's
// API operation OutputService5TestCaseOperation1 for usage and error information.
func (c *OutputService5ProtocolTest) OutputService5TestCaseOperation1(input *OutputService5TestShapeOutputService5TestCaseOperation1Input) (*OutputService5TestShapeOutputService5TestCaseOperation1Output, error) {
req, out := c.OutputService5TestCaseOperation1Request(input)
return out, req.Send()
}
// OutputService5TestCaseOperation1WithContext is the same as OutputService5TestCaseOperation1 with the addition of
// the ability to pass a context and additional request options.
//
// See OutputService5TestCaseOperation1 for details on how to use this API operation.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
func (c *OutputService5ProtocolTest) OutputService5TestCaseOperation1WithContext(ctx aws.Context, input *OutputService5TestShapeOutputService5TestCaseOperation1Input, opts ...request.Option) (*OutputService5TestShapeOutputService5TestCaseOperation1Output, error) {
req, out := c.OutputService5TestCaseOperation1Request(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
type OutputService5TestShapeOutputService5TestCaseOperation1Input struct {
_ struct{} `type:"structure"`
}
type OutputService5TestShapeOutputService5TestCaseOperation1Output struct {
_ struct{} `type:"structure"`
ListMember []*string `locationNameList:"item" type:"list"`
}
// SetListMember sets the ListMember field's value.
func (s *OutputService5TestShapeOutputService5TestCaseOperation1Output) SetListMember(v []*string) *OutputService5TestShapeOutputService5TestCaseOperation1Output {
s.ListMember = v
return s
}
// OutputService6ProtocolTest provides the API operation methods for making requests to
// . See this package's package overview docs
// for details on the service.
//
// OutputService6ProtocolTest methods are safe to use concurrently. It is not safe to
// modify mutate any of the struct's properties though.
type OutputService6ProtocolTest struct {
*client.Client
}
// New creates a new instance of the OutputService6ProtocolTest 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 OutputService6ProtocolTest client from just a session.
// svc := outputservice6protocoltest.New(mySession)
//
// // Create a OutputService6ProtocolTest client with additional configuration
// svc := outputservice6protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2"))
func NewOutputService6ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *OutputService6ProtocolTest {
c := p.ClientConfig("outputservice6protocoltest", cfgs...)
return newOutputService6ProtocolTestClient(*c.Config, c.Handlers, c.PartitionID, c.Endpoint, c.SigningRegion, c.SigningName)
}
// newClient creates, initializes and returns a new service client instance.
func newOutputService6ProtocolTestClient(cfg aws.Config, handlers request.Handlers, partitionID, endpoint, signingRegion, signingName string) *OutputService6ProtocolTest {
svc := &OutputService6ProtocolTest{
Client: client.New(
cfg,
metadata.ClientInfo{
ServiceName: "OutputService6ProtocolTest",
ServiceID: "OutputService6ProtocolTest",
SigningName: signingName,
SigningRegion: signingRegion,
PartitionID: partitionID,
Endpoint: endpoint,
APIVersion: "",
},
handlers,
),
}
// Handlers
svc.Handlers.Sign.PushBackNamed(v4.SignRequestHandler)
svc.Handlers.Build.PushBackNamed(query.BuildHandler)
svc.Handlers.Unmarshal.PushBackNamed(query.UnmarshalHandler)
svc.Handlers.UnmarshalMeta.PushBackNamed(query.UnmarshalMetaHandler)
svc.Handlers.UnmarshalError.PushBackNamed(query.UnmarshalErrorHandler)
return svc
}
// newRequest creates a new request for a OutputService6ProtocolTest operation and runs any
// custom request initialization.
func (c *OutputService6ProtocolTest) newRequest(op *request.Operation, params, data interface{}) *request.Request {
req := c.NewRequest(op, params, data)
return req
}
const opOutputService6TestCaseOperation1 = "OperationName"
// OutputService6TestCaseOperation1Request generates a "aws/request.Request" representing the
// client's request for the OutputService6TestCaseOperation1 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 OutputService6TestCaseOperation1 for more information on using the OutputService6TestCaseOperation1
// 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 OutputService6TestCaseOperation1Request method.
// req, resp := client.OutputService6TestCaseOperation1Request(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
func (c *OutputService6ProtocolTest) OutputService6TestCaseOperation1Request(input *OutputService6TestShapeOutputService6TestCaseOperation1Input) (req *request.Request, output *OutputService6TestShapeOutputService6TestCaseOperation1Output) {
op := &request.Operation{
Name: opOutputService6TestCaseOperation1,
HTTPPath: "/",
}
if input == nil {
input = &OutputService6TestShapeOutputService6TestCaseOperation1Input{}
}
output = &OutputService6TestShapeOutputService6TestCaseOperation1Output{}
req = c.newRequest(op, input, output)
return
}
// OutputService6TestCaseOperation1 API operation for .
//
// 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 's
// API operation OutputService6TestCaseOperation1 for usage and error information.
func (c *OutputService6ProtocolTest) OutputService6TestCaseOperation1(input *OutputService6TestShapeOutputService6TestCaseOperation1Input) (*OutputService6TestShapeOutputService6TestCaseOperation1Output, error) {
req, out := c.OutputService6TestCaseOperation1Request(input)
return out, req.Send()
}
// OutputService6TestCaseOperation1WithContext is the same as OutputService6TestCaseOperation1 with the addition of
// the ability to pass a context and additional request options.
//
// See OutputService6TestCaseOperation1 for details on how to use this API operation.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
func (c *OutputService6ProtocolTest) OutputService6TestCaseOperation1WithContext(ctx aws.Context, input *OutputService6TestShapeOutputService6TestCaseOperation1Input, opts ...request.Option) (*OutputService6TestShapeOutputService6TestCaseOperation1Output, error) {
req, out := c.OutputService6TestCaseOperation1Request(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
type OutputService6TestShapeOutputService6TestCaseOperation1Input struct {
_ struct{} `type:"structure"`
}
type OutputService6TestShapeOutputService6TestCaseOperation1Output struct {
_ struct{} `type:"structure"`
ListMember []*string `type:"list" flattened:"true"`
}
// SetListMember sets the ListMember field's value.
func (s *OutputService6TestShapeOutputService6TestCaseOperation1Output) SetListMember(v []*string) *OutputService6TestShapeOutputService6TestCaseOperation1Output {
s.ListMember = v
return s
}
// OutputService7ProtocolTest provides the API operation methods for making requests to
// . See this package's package overview docs
// for details on the service.
//
// OutputService7ProtocolTest methods are safe to use concurrently. It is not safe to
// modify mutate any of the struct's properties though.
type OutputService7ProtocolTest struct {
*client.Client
}
// New creates a new instance of the OutputService7ProtocolTest 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 OutputService7ProtocolTest client from just a session.
// svc := outputservice7protocoltest.New(mySession)
//
// // Create a OutputService7ProtocolTest client with additional configuration
// svc := outputservice7protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2"))
func NewOutputService7ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *OutputService7ProtocolTest {
c := p.ClientConfig("outputservice7protocoltest", cfgs...)
return newOutputService7ProtocolTestClient(*c.Config, c.Handlers, c.PartitionID, c.Endpoint, c.SigningRegion, c.SigningName)
}
// newClient creates, initializes and returns a new service client instance.
func newOutputService7ProtocolTestClient(cfg aws.Config, handlers request.Handlers, partitionID, endpoint, signingRegion, signingName string) *OutputService7ProtocolTest {
svc := &OutputService7ProtocolTest{
Client: client.New(
cfg,
metadata.ClientInfo{
ServiceName: "OutputService7ProtocolTest",
ServiceID: "OutputService7ProtocolTest",
SigningName: signingName,
SigningRegion: signingRegion,
PartitionID: partitionID,
Endpoint: endpoint,
APIVersion: "",
},
handlers,
),
}
// Handlers
svc.Handlers.Sign.PushBackNamed(v4.SignRequestHandler)
svc.Handlers.Build.PushBackNamed(query.BuildHandler)
svc.Handlers.Unmarshal.PushBackNamed(query.UnmarshalHandler)
svc.Handlers.UnmarshalMeta.PushBackNamed(query.UnmarshalMetaHandler)
svc.Handlers.UnmarshalError.PushBackNamed(query.UnmarshalErrorHandler)
return svc
}
// newRequest creates a new request for a OutputService7ProtocolTest operation and runs any
// custom request initialization.
func (c *OutputService7ProtocolTest) newRequest(op *request.Operation, params, data interface{}) *request.Request {
req := c.NewRequest(op, params, data)
return req
}
const opOutputService7TestCaseOperation1 = "OperationName"
// OutputService7TestCaseOperation1Request generates a "aws/request.Request" representing the
// client's request for the OutputService7TestCaseOperation1 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 OutputService7TestCaseOperation1 for more information on using the OutputService7TestCaseOperation1
// 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 OutputService7TestCaseOperation1Request method.
// req, resp := client.OutputService7TestCaseOperation1Request(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
func (c *OutputService7ProtocolTest) OutputService7TestCaseOperation1Request(input *OutputService7TestShapeOutputService7TestCaseOperation1Input) (req *request.Request, output *OutputService7TestShapeOutputService7TestCaseOperation1Output) {
op := &request.Operation{
Name: opOutputService7TestCaseOperation1,
HTTPPath: "/",
}
if input == nil {
input = &OutputService7TestShapeOutputService7TestCaseOperation1Input{}
}
output = &OutputService7TestShapeOutputService7TestCaseOperation1Output{}
req = c.newRequest(op, input, output)
return
}
// OutputService7TestCaseOperation1 API operation for .
//
// 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 's
// API operation OutputService7TestCaseOperation1 for usage and error information.
func (c *OutputService7ProtocolTest) OutputService7TestCaseOperation1(input *OutputService7TestShapeOutputService7TestCaseOperation1Input) (*OutputService7TestShapeOutputService7TestCaseOperation1Output, error) {
req, out := c.OutputService7TestCaseOperation1Request(input)
return out, req.Send()
}
// OutputService7TestCaseOperation1WithContext is the same as OutputService7TestCaseOperation1 with the addition of
// the ability to pass a context and additional request options.
//
// See OutputService7TestCaseOperation1 for details on how to use this API operation.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
func (c *OutputService7ProtocolTest) OutputService7TestCaseOperation1WithContext(ctx aws.Context, input *OutputService7TestShapeOutputService7TestCaseOperation1Input, opts ...request.Option) (*OutputService7TestShapeOutputService7TestCaseOperation1Output, error) {
req, out := c.OutputService7TestCaseOperation1Request(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
type OutputService7TestShapeOutputService7TestCaseOperation1Input struct {
_ struct{} `type:"structure"`
}
type OutputService7TestShapeOutputService7TestCaseOperation1Output struct {
_ struct{} `type:"structure"`
ListMember []*string `type:"list" flattened:"true"`
}
// SetListMember sets the ListMember field's value.
func (s *OutputService7TestShapeOutputService7TestCaseOperation1Output) SetListMember(v []*string) *OutputService7TestShapeOutputService7TestCaseOperation1Output {
s.ListMember = v
return s
}
// OutputService8ProtocolTest provides the API operation methods for making requests to
// . See this package's package overview docs
// for details on the service.
//
// OutputService8ProtocolTest methods are safe to use concurrently. It is not safe to
// modify mutate any of the struct's properties though.
type OutputService8ProtocolTest struct {
*client.Client
}
// New creates a new instance of the OutputService8ProtocolTest 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 OutputService8ProtocolTest client from just a session.
// svc := outputservice8protocoltest.New(mySession)
//
// // Create a OutputService8ProtocolTest client with additional configuration
// svc := outputservice8protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2"))
func NewOutputService8ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *OutputService8ProtocolTest {
c := p.ClientConfig("outputservice8protocoltest", cfgs...)
return newOutputService8ProtocolTestClient(*c.Config, c.Handlers, c.PartitionID, c.Endpoint, c.SigningRegion, c.SigningName)
}
// newClient creates, initializes and returns a new service client instance.
func newOutputService8ProtocolTestClient(cfg aws.Config, handlers request.Handlers, partitionID, endpoint, signingRegion, signingName string) *OutputService8ProtocolTest {
svc := &OutputService8ProtocolTest{
Client: client.New(
cfg,
metadata.ClientInfo{
ServiceName: "OutputService8ProtocolTest",
ServiceID: "OutputService8ProtocolTest",
SigningName: signingName,
SigningRegion: signingRegion,
PartitionID: partitionID,
Endpoint: endpoint,
APIVersion: "",
},
handlers,
),
}
// Handlers
svc.Handlers.Sign.PushBackNamed(v4.SignRequestHandler)
svc.Handlers.Build.PushBackNamed(query.BuildHandler)
svc.Handlers.Unmarshal.PushBackNamed(query.UnmarshalHandler)
svc.Handlers.UnmarshalMeta.PushBackNamed(query.UnmarshalMetaHandler)
svc.Handlers.UnmarshalError.PushBackNamed(query.UnmarshalErrorHandler)
return svc
}
// newRequest creates a new request for a OutputService8ProtocolTest operation and runs any
// custom request initialization.
func (c *OutputService8ProtocolTest) newRequest(op *request.Operation, params, data interface{}) *request.Request {
req := c.NewRequest(op, params, data)
return req
}
const opOutputService8TestCaseOperation1 = "OperationName"
// OutputService8TestCaseOperation1Request generates a "aws/request.Request" representing the
// client's request for the OutputService8TestCaseOperation1 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 OutputService8TestCaseOperation1 for more information on using the OutputService8TestCaseOperation1
// 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 OutputService8TestCaseOperation1Request method.
// req, resp := client.OutputService8TestCaseOperation1Request(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
func (c *OutputService8ProtocolTest) OutputService8TestCaseOperation1Request(input *OutputService8TestShapeOutputService8TestCaseOperation1Input) (req *request.Request, output *OutputService8TestShapeOutputService8TestCaseOperation1Output) {
op := &request.Operation{
Name: opOutputService8TestCaseOperation1,
HTTPPath: "/",
}
if input == nil {
input = &OutputService8TestShapeOutputService8TestCaseOperation1Input{}
}
output = &OutputService8TestShapeOutputService8TestCaseOperation1Output{}
req = c.newRequest(op, input, output)
return
}
// OutputService8TestCaseOperation1 API operation for .
//
// 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 's
// API operation OutputService8TestCaseOperation1 for usage and error information.
func (c *OutputService8ProtocolTest) OutputService8TestCaseOperation1(input *OutputService8TestShapeOutputService8TestCaseOperation1Input) (*OutputService8TestShapeOutputService8TestCaseOperation1Output, error) {
req, out := c.OutputService8TestCaseOperation1Request(input)
return out, req.Send()
}
// OutputService8TestCaseOperation1WithContext is the same as OutputService8TestCaseOperation1 with the addition of
// the ability to pass a context and additional request options.
//
// See OutputService8TestCaseOperation1 for details on how to use this API operation.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
func (c *OutputService8ProtocolTest) OutputService8TestCaseOperation1WithContext(ctx aws.Context, input *OutputService8TestShapeOutputService8TestCaseOperation1Input, opts ...request.Option) (*OutputService8TestShapeOutputService8TestCaseOperation1Output, error) {
req, out := c.OutputService8TestCaseOperation1Request(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
type OutputService8TestShapeOutputService8TestCaseOperation1Input struct {
_ struct{} `type:"structure"`
}
type OutputService8TestShapeOutputService8TestCaseOperation1Output struct {
_ struct{} `type:"structure"`
List []*OutputService8TestShapeStructureShape `type:"list"`
}
// SetList sets the List field's value.
func (s *OutputService8TestShapeOutputService8TestCaseOperation1Output) SetList(v []*OutputService8TestShapeStructureShape) *OutputService8TestShapeOutputService8TestCaseOperation1Output {
s.List = v
return s
}
type OutputService8TestShapeStructureShape struct {
_ struct{} `type:"structure"`
Bar *string `type:"string"`
Baz *string `type:"string"`
Foo *string `type:"string"`
}
// SetBar sets the Bar field's value.
func (s *OutputService8TestShapeStructureShape) SetBar(v string) *OutputService8TestShapeStructureShape {
s.Bar = &v
return s
}
// SetBaz sets the Baz field's value.
func (s *OutputService8TestShapeStructureShape) SetBaz(v string) *OutputService8TestShapeStructureShape {
s.Baz = &v
return s
}
// SetFoo sets the Foo field's value.
func (s *OutputService8TestShapeStructureShape) SetFoo(v string) *OutputService8TestShapeStructureShape {
s.Foo = &v
return s
}
// OutputService9ProtocolTest provides the API operation methods for making requests to
// . See this package's package overview docs
// for details on the service.
//
// OutputService9ProtocolTest methods are safe to use concurrently. It is not safe to
// modify mutate any of the struct's properties though.
type OutputService9ProtocolTest struct {
*client.Client
}
// New creates a new instance of the OutputService9ProtocolTest 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 OutputService9ProtocolTest client from just a session.
// svc := outputservice9protocoltest.New(mySession)
//
// // Create a OutputService9ProtocolTest client with additional configuration
// svc := outputservice9protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2"))
func NewOutputService9ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *OutputService9ProtocolTest {
c := p.ClientConfig("outputservice9protocoltest", cfgs...)
return newOutputService9ProtocolTestClient(*c.Config, c.Handlers, c.PartitionID, c.Endpoint, c.SigningRegion, c.SigningName)
}
// newClient creates, initializes and returns a new service client instance.
func newOutputService9ProtocolTestClient(cfg aws.Config, handlers request.Handlers, partitionID, endpoint, signingRegion, signingName string) *OutputService9ProtocolTest {
svc := &OutputService9ProtocolTest{
Client: client.New(
cfg,
metadata.ClientInfo{
ServiceName: "OutputService9ProtocolTest",
ServiceID: "OutputService9ProtocolTest",
SigningName: signingName,
SigningRegion: signingRegion,
PartitionID: partitionID,
Endpoint: endpoint,
APIVersion: "",
},
handlers,
),
}
// Handlers
svc.Handlers.Sign.PushBackNamed(v4.SignRequestHandler)
svc.Handlers.Build.PushBackNamed(query.BuildHandler)
svc.Handlers.Unmarshal.PushBackNamed(query.UnmarshalHandler)
svc.Handlers.UnmarshalMeta.PushBackNamed(query.UnmarshalMetaHandler)
svc.Handlers.UnmarshalError.PushBackNamed(query.UnmarshalErrorHandler)
return svc
}
// newRequest creates a new request for a OutputService9ProtocolTest operation and runs any
// custom request initialization.
func (c *OutputService9ProtocolTest) newRequest(op *request.Operation, params, data interface{}) *request.Request {
req := c.NewRequest(op, params, data)
return req
}
const opOutputService9TestCaseOperation1 = "OperationName"
// OutputService9TestCaseOperation1Request generates a "aws/request.Request" representing the
// client's request for the OutputService9TestCaseOperation1 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 OutputService9TestCaseOperation1 for more information on using the OutputService9TestCaseOperation1
// 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 OutputService9TestCaseOperation1Request method.
// req, resp := client.OutputService9TestCaseOperation1Request(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
func (c *OutputService9ProtocolTest) OutputService9TestCaseOperation1Request(input *OutputService9TestShapeOutputService9TestCaseOperation1Input) (req *request.Request, output *OutputService9TestShapeOutputService9TestCaseOperation1Output) {
op := &request.Operation{
Name: opOutputService9TestCaseOperation1,
HTTPPath: "/",
}
if input == nil {
input = &OutputService9TestShapeOutputService9TestCaseOperation1Input{}
}
output = &OutputService9TestShapeOutputService9TestCaseOperation1Output{}
req = c.newRequest(op, input, output)
return
}
// OutputService9TestCaseOperation1 API operation for .
//
// 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 's
// API operation OutputService9TestCaseOperation1 for usage and error information.
func (c *OutputService9ProtocolTest) OutputService9TestCaseOperation1(input *OutputService9TestShapeOutputService9TestCaseOperation1Input) (*OutputService9TestShapeOutputService9TestCaseOperation1Output, error) {
req, out := c.OutputService9TestCaseOperation1Request(input)
return out, req.Send()
}
// OutputService9TestCaseOperation1WithContext is the same as OutputService9TestCaseOperation1 with the addition of
// the ability to pass a context and additional request options.
//
// See OutputService9TestCaseOperation1 for details on how to use this API operation.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
func (c *OutputService9ProtocolTest) OutputService9TestCaseOperation1WithContext(ctx aws.Context, input *OutputService9TestShapeOutputService9TestCaseOperation1Input, opts ...request.Option) (*OutputService9TestShapeOutputService9TestCaseOperation1Output, error) {
req, out := c.OutputService9TestCaseOperation1Request(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
type OutputService9TestShapeOutputService9TestCaseOperation1Input struct {
_ struct{} `type:"structure"`
}
type OutputService9TestShapeOutputService9TestCaseOperation1Output struct {
_ struct{} `type:"structure"`
List []*OutputService9TestShapeStructureShape `type:"list" flattened:"true"`
}
// SetList sets the List field's value.
func (s *OutputService9TestShapeOutputService9TestCaseOperation1Output) SetList(v []*OutputService9TestShapeStructureShape) *OutputService9TestShapeOutputService9TestCaseOperation1Output {
s.List = v
return s
}
type OutputService9TestShapeStructureShape struct {
_ struct{} `type:"structure"`
Bar *string `type:"string"`
Baz *string `type:"string"`
Foo *string `type:"string"`
}
// SetBar sets the Bar field's value.
func (s *OutputService9TestShapeStructureShape) SetBar(v string) *OutputService9TestShapeStructureShape {
s.Bar = &v
return s
}
// SetBaz sets the Baz field's value.
func (s *OutputService9TestShapeStructureShape) SetBaz(v string) *OutputService9TestShapeStructureShape {
s.Baz = &v
return s
}
// SetFoo sets the Foo field's value.
func (s *OutputService9TestShapeStructureShape) SetFoo(v string) *OutputService9TestShapeStructureShape {
s.Foo = &v
return s
}
// OutputService10ProtocolTest provides the API operation methods for making requests to
// . See this package's package overview docs
// for details on the service.
//
// OutputService10ProtocolTest methods are safe to use concurrently. It is not safe to
// modify mutate any of the struct's properties though.
type OutputService10ProtocolTest struct {
*client.Client
}
// New creates a new instance of the OutputService10ProtocolTest 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 OutputService10ProtocolTest client from just a session.
// svc := outputservice10protocoltest.New(mySession)
//
// // Create a OutputService10ProtocolTest client with additional configuration
// svc := outputservice10protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2"))
func NewOutputService10ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *OutputService10ProtocolTest {
c := p.ClientConfig("outputservice10protocoltest", cfgs...)
return newOutputService10ProtocolTestClient(*c.Config, c.Handlers, c.PartitionID, c.Endpoint, c.SigningRegion, c.SigningName)
}
// newClient creates, initializes and returns a new service client instance.
func newOutputService10ProtocolTestClient(cfg aws.Config, handlers request.Handlers, partitionID, endpoint, signingRegion, signingName string) *OutputService10ProtocolTest {
svc := &OutputService10ProtocolTest{
Client: client.New(
cfg,
metadata.ClientInfo{
ServiceName: "OutputService10ProtocolTest",
ServiceID: "OutputService10ProtocolTest",
SigningName: signingName,
SigningRegion: signingRegion,
PartitionID: partitionID,
Endpoint: endpoint,
APIVersion: "",
},
handlers,
),
}
// Handlers
svc.Handlers.Sign.PushBackNamed(v4.SignRequestHandler)
svc.Handlers.Build.PushBackNamed(query.BuildHandler)
svc.Handlers.Unmarshal.PushBackNamed(query.UnmarshalHandler)
svc.Handlers.UnmarshalMeta.PushBackNamed(query.UnmarshalMetaHandler)
svc.Handlers.UnmarshalError.PushBackNamed(query.UnmarshalErrorHandler)
return svc
}
// newRequest creates a new request for a OutputService10ProtocolTest operation and runs any
// custom request initialization.
func (c *OutputService10ProtocolTest) newRequest(op *request.Operation, params, data interface{}) *request.Request {
req := c.NewRequest(op, params, data)
return req
}
const opOutputService10TestCaseOperation1 = "OperationName"
// OutputService10TestCaseOperation1Request generates a "aws/request.Request" representing the
// client's request for the OutputService10TestCaseOperation1 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 OutputService10TestCaseOperation1 for more information on using the OutputService10TestCaseOperation1
// 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 OutputService10TestCaseOperation1Request method.
// req, resp := client.OutputService10TestCaseOperation1Request(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
func (c *OutputService10ProtocolTest) OutputService10TestCaseOperation1Request(input *OutputService10TestShapeOutputService10TestCaseOperation1Input) (req *request.Request, output *OutputService10TestShapeOutputService10TestCaseOperation1Output) {
op := &request.Operation{
Name: opOutputService10TestCaseOperation1,
HTTPPath: "/",
}
if input == nil {
input = &OutputService10TestShapeOutputService10TestCaseOperation1Input{}
}
output = &OutputService10TestShapeOutputService10TestCaseOperation1Output{}
req = c.newRequest(op, input, output)
return
}
// OutputService10TestCaseOperation1 API operation for .
//
// 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 's
// API operation OutputService10TestCaseOperation1 for usage and error information.
func (c *OutputService10ProtocolTest) OutputService10TestCaseOperation1(input *OutputService10TestShapeOutputService10TestCaseOperation1Input) (*OutputService10TestShapeOutputService10TestCaseOperation1Output, error) {
req, out := c.OutputService10TestCaseOperation1Request(input)
return out, req.Send()
}
// OutputService10TestCaseOperation1WithContext is the same as OutputService10TestCaseOperation1 with the addition of
// the ability to pass a context and additional request options.
//
// See OutputService10TestCaseOperation1 for details on how to use this API operation.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
func (c *OutputService10ProtocolTest) OutputService10TestCaseOperation1WithContext(ctx aws.Context, input *OutputService10TestShapeOutputService10TestCaseOperation1Input, opts ...request.Option) (*OutputService10TestShapeOutputService10TestCaseOperation1Output, error) {
req, out := c.OutputService10TestCaseOperation1Request(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
type OutputService10TestShapeOutputService10TestCaseOperation1Input struct {
_ struct{} `type:"structure"`
}
type OutputService10TestShapeOutputService10TestCaseOperation1Output struct {
_ struct{} `type:"structure"`
List []*string `locationNameList:"NamedList" type:"list" flattened:"true"`
}
// SetList sets the List field's value.
func (s *OutputService10TestShapeOutputService10TestCaseOperation1Output) SetList(v []*string) *OutputService10TestShapeOutputService10TestCaseOperation1Output {
s.List = v
return s
}
// OutputService11ProtocolTest provides the API operation methods for making requests to
// . See this package's package overview docs
// for details on the service.
//
// OutputService11ProtocolTest methods are safe to use concurrently. It is not safe to
// modify mutate any of the struct's properties though.
type OutputService11ProtocolTest struct {
*client.Client
}
// New creates a new instance of the OutputService11ProtocolTest 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 OutputService11ProtocolTest client from just a session.
// svc := outputservice11protocoltest.New(mySession)
//
// // Create a OutputService11ProtocolTest client with additional configuration
// svc := outputservice11protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2"))
func NewOutputService11ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *OutputService11ProtocolTest {
c := p.ClientConfig("outputservice11protocoltest", cfgs...)
return newOutputService11ProtocolTestClient(*c.Config, c.Handlers, c.PartitionID, c.Endpoint, c.SigningRegion, c.SigningName)
}
// newClient creates, initializes and returns a new service client instance.
func newOutputService11ProtocolTestClient(cfg aws.Config, handlers request.Handlers, partitionID, endpoint, signingRegion, signingName string) *OutputService11ProtocolTest {
svc := &OutputService11ProtocolTest{
Client: client.New(
cfg,
metadata.ClientInfo{
ServiceName: "OutputService11ProtocolTest",
ServiceID: "OutputService11ProtocolTest",
SigningName: signingName,
SigningRegion: signingRegion,
PartitionID: partitionID,
Endpoint: endpoint,
APIVersion: "",
},
handlers,
),
}
// Handlers
svc.Handlers.Sign.PushBackNamed(v4.SignRequestHandler)
svc.Handlers.Build.PushBackNamed(query.BuildHandler)
svc.Handlers.Unmarshal.PushBackNamed(query.UnmarshalHandler)
svc.Handlers.UnmarshalMeta.PushBackNamed(query.UnmarshalMetaHandler)
svc.Handlers.UnmarshalError.PushBackNamed(query.UnmarshalErrorHandler)
return svc
}
// newRequest creates a new request for a OutputService11ProtocolTest operation and runs any
// custom request initialization.
func (c *OutputService11ProtocolTest) newRequest(op *request.Operation, params, data interface{}) *request.Request {
req := c.NewRequest(op, params, data)
return req
}
const opOutputService11TestCaseOperation1 = "OperationName"
// OutputService11TestCaseOperation1Request generates a "aws/request.Request" representing the
// client's request for the OutputService11TestCaseOperation1 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 OutputService11TestCaseOperation1 for more information on using the OutputService11TestCaseOperation1
// 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 OutputService11TestCaseOperation1Request method.
// req, resp := client.OutputService11TestCaseOperation1Request(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
func (c *OutputService11ProtocolTest) OutputService11TestCaseOperation1Request(input *OutputService11TestShapeOutputService11TestCaseOperation1Input) (req *request.Request, output *OutputService11TestShapeOutputService11TestCaseOperation1Output) {
op := &request.Operation{
Name: opOutputService11TestCaseOperation1,
HTTPPath: "/",
}
if input == nil {
input = &OutputService11TestShapeOutputService11TestCaseOperation1Input{}
}
output = &OutputService11TestShapeOutputService11TestCaseOperation1Output{}
req = c.newRequest(op, input, output)
return
}
// OutputService11TestCaseOperation1 API operation for .
//
// 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 's
// API operation OutputService11TestCaseOperation1 for usage and error information.
func (c *OutputService11ProtocolTest) OutputService11TestCaseOperation1(input *OutputService11TestShapeOutputService11TestCaseOperation1Input) (*OutputService11TestShapeOutputService11TestCaseOperation1Output, error) {
req, out := c.OutputService11TestCaseOperation1Request(input)
return out, req.Send()
}
// OutputService11TestCaseOperation1WithContext is the same as OutputService11TestCaseOperation1 with the addition of
// the ability to pass a context and additional request options.
//
// See OutputService11TestCaseOperation1 for details on how to use this API operation.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
func (c *OutputService11ProtocolTest) OutputService11TestCaseOperation1WithContext(ctx aws.Context, input *OutputService11TestShapeOutputService11TestCaseOperation1Input, opts ...request.Option) (*OutputService11TestShapeOutputService11TestCaseOperation1Output, error) {
req, out := c.OutputService11TestCaseOperation1Request(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
type OutputService11TestShapeOutputService11TestCaseOperation1Input struct {
_ struct{} `type:"structure"`
}
type OutputService11TestShapeOutputService11TestCaseOperation1Output struct {
_ struct{} `type:"structure"`
Map map[string]*OutputService11TestShapeStructType `type:"map"`
}
// SetMap sets the Map field's value.
func (s *OutputService11TestShapeOutputService11TestCaseOperation1Output) SetMap(v map[string]*OutputService11TestShapeStructType) *OutputService11TestShapeOutputService11TestCaseOperation1Output {
s.Map = v
return s
}
type OutputService11TestShapeStructType struct {
_ struct{} `type:"structure"`
Foo *string `locationName:"foo" type:"string"`
}
// SetFoo sets the Foo field's value.
func (s *OutputService11TestShapeStructType) SetFoo(v string) *OutputService11TestShapeStructType {
s.Foo = &v
return s
}
// OutputService12ProtocolTest provides the API operation methods for making requests to
// . See this package's package overview docs
// for details on the service.
//
// OutputService12ProtocolTest methods are safe to use concurrently. It is not safe to
// modify mutate any of the struct's properties though.
type OutputService12ProtocolTest struct {
*client.Client
}
// New creates a new instance of the OutputService12ProtocolTest 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 OutputService12ProtocolTest client from just a session.
// svc := outputservice12protocoltest.New(mySession)
//
// // Create a OutputService12ProtocolTest client with additional configuration
// svc := outputservice12protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2"))
func NewOutputService12ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *OutputService12ProtocolTest {
c := p.ClientConfig("outputservice12protocoltest", cfgs...)
return newOutputService12ProtocolTestClient(*c.Config, c.Handlers, c.PartitionID, c.Endpoint, c.SigningRegion, c.SigningName)
}
// newClient creates, initializes and returns a new service client instance.
func newOutputService12ProtocolTestClient(cfg aws.Config, handlers request.Handlers, partitionID, endpoint, signingRegion, signingName string) *OutputService12ProtocolTest {
svc := &OutputService12ProtocolTest{
Client: client.New(
cfg,
metadata.ClientInfo{
ServiceName: "OutputService12ProtocolTest",
ServiceID: "OutputService12ProtocolTest",
SigningName: signingName,
SigningRegion: signingRegion,
PartitionID: partitionID,
Endpoint: endpoint,
APIVersion: "",
},
handlers,
),
}
// Handlers
svc.Handlers.Sign.PushBackNamed(v4.SignRequestHandler)
svc.Handlers.Build.PushBackNamed(query.BuildHandler)
svc.Handlers.Unmarshal.PushBackNamed(query.UnmarshalHandler)
svc.Handlers.UnmarshalMeta.PushBackNamed(query.UnmarshalMetaHandler)
svc.Handlers.UnmarshalError.PushBackNamed(query.UnmarshalErrorHandler)
return svc
}
// newRequest creates a new request for a OutputService12ProtocolTest operation and runs any
// custom request initialization.
func (c *OutputService12ProtocolTest) newRequest(op *request.Operation, params, data interface{}) *request.Request {
req := c.NewRequest(op, params, data)
return req
}
const opOutputService12TestCaseOperation1 = "OperationName"
// OutputService12TestCaseOperation1Request generates a "aws/request.Request" representing the
// client's request for the OutputService12TestCaseOperation1 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 OutputService12TestCaseOperation1 for more information on using the OutputService12TestCaseOperation1
// 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 OutputService12TestCaseOperation1Request method.
// req, resp := client.OutputService12TestCaseOperation1Request(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
func (c *OutputService12ProtocolTest) OutputService12TestCaseOperation1Request(input *OutputService12TestShapeOutputService12TestCaseOperation1Input) (req *request.Request, output *OutputService12TestShapeOutputService12TestCaseOperation1Output) {
op := &request.Operation{
Name: opOutputService12TestCaseOperation1,
HTTPPath: "/",
}
if input == nil {
input = &OutputService12TestShapeOutputService12TestCaseOperation1Input{}
}
output = &OutputService12TestShapeOutputService12TestCaseOperation1Output{}
req = c.newRequest(op, input, output)
return
}
// OutputService12TestCaseOperation1 API operation for .
//
// 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 's
// API operation OutputService12TestCaseOperation1 for usage and error information.
func (c *OutputService12ProtocolTest) OutputService12TestCaseOperation1(input *OutputService12TestShapeOutputService12TestCaseOperation1Input) (*OutputService12TestShapeOutputService12TestCaseOperation1Output, error) {
req, out := c.OutputService12TestCaseOperation1Request(input)
return out, req.Send()
}
// OutputService12TestCaseOperation1WithContext is the same as OutputService12TestCaseOperation1 with the addition of
// the ability to pass a context and additional request options.
//
// See OutputService12TestCaseOperation1 for details on how to use this API operation.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
func (c *OutputService12ProtocolTest) OutputService12TestCaseOperation1WithContext(ctx aws.Context, input *OutputService12TestShapeOutputService12TestCaseOperation1Input, opts ...request.Option) (*OutputService12TestShapeOutputService12TestCaseOperation1Output, error) {
req, out := c.OutputService12TestCaseOperation1Request(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
type OutputService12TestShapeOutputService12TestCaseOperation1Input struct {
_ struct{} `type:"structure"`
}
type OutputService12TestShapeOutputService12TestCaseOperation1Output struct {
_ struct{} `type:"structure"`
Map map[string]*string `type:"map" flattened:"true"`
}
// SetMap sets the Map field's value.
func (s *OutputService12TestShapeOutputService12TestCaseOperation1Output) SetMap(v map[string]*string) *OutputService12TestShapeOutputService12TestCaseOperation1Output {
s.Map = v
return s
}
// OutputService13ProtocolTest provides the API operation methods for making requests to
// . See this package's package overview docs
// for details on the service.
//
// OutputService13ProtocolTest methods are safe to use concurrently. It is not safe to
// modify mutate any of the struct's properties though.
type OutputService13ProtocolTest struct {
*client.Client
}
// New creates a new instance of the OutputService13ProtocolTest 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 OutputService13ProtocolTest client from just a session.
// svc := outputservice13protocoltest.New(mySession)
//
// // Create a OutputService13ProtocolTest client with additional configuration
// svc := outputservice13protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2"))
func NewOutputService13ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *OutputService13ProtocolTest {
c := p.ClientConfig("outputservice13protocoltest", cfgs...)
return newOutputService13ProtocolTestClient(*c.Config, c.Handlers, c.PartitionID, c.Endpoint, c.SigningRegion, c.SigningName)
}
// newClient creates, initializes and returns a new service client instance.
func newOutputService13ProtocolTestClient(cfg aws.Config, handlers request.Handlers, partitionID, endpoint, signingRegion, signingName string) *OutputService13ProtocolTest {
svc := &OutputService13ProtocolTest{
Client: client.New(
cfg,
metadata.ClientInfo{
ServiceName: "OutputService13ProtocolTest",
ServiceID: "OutputService13ProtocolTest",
SigningName: signingName,
SigningRegion: signingRegion,
PartitionID: partitionID,
Endpoint: endpoint,
APIVersion: "",
},
handlers,
),
}
// Handlers
svc.Handlers.Sign.PushBackNamed(v4.SignRequestHandler)
svc.Handlers.Build.PushBackNamed(query.BuildHandler)
svc.Handlers.Unmarshal.PushBackNamed(query.UnmarshalHandler)
svc.Handlers.UnmarshalMeta.PushBackNamed(query.UnmarshalMetaHandler)
svc.Handlers.UnmarshalError.PushBackNamed(query.UnmarshalErrorHandler)
return svc
}
// newRequest creates a new request for a OutputService13ProtocolTest operation and runs any
// custom request initialization.
func (c *OutputService13ProtocolTest) newRequest(op *request.Operation, params, data interface{}) *request.Request {
req := c.NewRequest(op, params, data)
return req
}
const opOutputService13TestCaseOperation1 = "OperationName"
// OutputService13TestCaseOperation1Request generates a "aws/request.Request" representing the
// client's request for the OutputService13TestCaseOperation1 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 OutputService13TestCaseOperation1 for more information on using the OutputService13TestCaseOperation1
// 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 OutputService13TestCaseOperation1Request method.
// req, resp := client.OutputService13TestCaseOperation1Request(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
func (c *OutputService13ProtocolTest) OutputService13TestCaseOperation1Request(input *OutputService13TestShapeOutputService13TestCaseOperation1Input) (req *request.Request, output *OutputService13TestShapeOutputService13TestCaseOperation1Output) {
op := &request.Operation{
Name: opOutputService13TestCaseOperation1,
HTTPPath: "/",
}
if input == nil {
input = &OutputService13TestShapeOutputService13TestCaseOperation1Input{}
}
output = &OutputService13TestShapeOutputService13TestCaseOperation1Output{}
req = c.newRequest(op, input, output)
return
}
// OutputService13TestCaseOperation1 API operation for .
//
// 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 's
// API operation OutputService13TestCaseOperation1 for usage and error information.
func (c *OutputService13ProtocolTest) OutputService13TestCaseOperation1(input *OutputService13TestShapeOutputService13TestCaseOperation1Input) (*OutputService13TestShapeOutputService13TestCaseOperation1Output, error) {
req, out := c.OutputService13TestCaseOperation1Request(input)
return out, req.Send()
}
// OutputService13TestCaseOperation1WithContext is the same as OutputService13TestCaseOperation1 with the addition of
// the ability to pass a context and additional request options.
//
// See OutputService13TestCaseOperation1 for details on how to use this API operation.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
func (c *OutputService13ProtocolTest) OutputService13TestCaseOperation1WithContext(ctx aws.Context, input *OutputService13TestShapeOutputService13TestCaseOperation1Input, opts ...request.Option) (*OutputService13TestShapeOutputService13TestCaseOperation1Output, error) {
req, out := c.OutputService13TestCaseOperation1Request(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
type OutputService13TestShapeOutputService13TestCaseOperation1Input struct {
_ struct{} `type:"structure"`
}
type OutputService13TestShapeOutputService13TestCaseOperation1Output struct {
_ struct{} `type:"structure"`
Map map[string]*string `locationName:"Attribute" locationNameKey:"Name" locationNameValue:"Value" type:"map" flattened:"true"`
}
// SetMap sets the Map field's value.
func (s *OutputService13TestShapeOutputService13TestCaseOperation1Output) SetMap(v map[string]*string) *OutputService13TestShapeOutputService13TestCaseOperation1Output {
s.Map = v
return s
}
// OutputService14ProtocolTest provides the API operation methods for making requests to
// . See this package's package overview docs
// for details on the service.
//
// OutputService14ProtocolTest methods are safe to use concurrently. It is not safe to
// modify mutate any of the struct's properties though.
type OutputService14ProtocolTest struct {
*client.Client
}
// New creates a new instance of the OutputService14ProtocolTest 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 OutputService14ProtocolTest client from just a session.
// svc := outputservice14protocoltest.New(mySession)
//
// // Create a OutputService14ProtocolTest client with additional configuration
// svc := outputservice14protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2"))
func NewOutputService14ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *OutputService14ProtocolTest {
c := p.ClientConfig("outputservice14protocoltest", cfgs...)
return newOutputService14ProtocolTestClient(*c.Config, c.Handlers, c.PartitionID, c.Endpoint, c.SigningRegion, c.SigningName)
}
// newClient creates, initializes and returns a new service client instance.
func newOutputService14ProtocolTestClient(cfg aws.Config, handlers request.Handlers, partitionID, endpoint, signingRegion, signingName string) *OutputService14ProtocolTest {
svc := &OutputService14ProtocolTest{
Client: client.New(
cfg,
metadata.ClientInfo{
ServiceName: "OutputService14ProtocolTest",
ServiceID: "OutputService14ProtocolTest",
SigningName: signingName,
SigningRegion: signingRegion,
PartitionID: partitionID,
Endpoint: endpoint,
APIVersion: "",
},
handlers,
),
}
// Handlers
svc.Handlers.Sign.PushBackNamed(v4.SignRequestHandler)
svc.Handlers.Build.PushBackNamed(query.BuildHandler)
svc.Handlers.Unmarshal.PushBackNamed(query.UnmarshalHandler)
svc.Handlers.UnmarshalMeta.PushBackNamed(query.UnmarshalMetaHandler)
svc.Handlers.UnmarshalError.PushBackNamed(query.UnmarshalErrorHandler)
return svc
}
// newRequest creates a new request for a OutputService14ProtocolTest operation and runs any
// custom request initialization.
func (c *OutputService14ProtocolTest) newRequest(op *request.Operation, params, data interface{}) *request.Request {
req := c.NewRequest(op, params, data)
return req
}
const opOutputService14TestCaseOperation1 = "OperationName"
// OutputService14TestCaseOperation1Request generates a "aws/request.Request" representing the
// client's request for the OutputService14TestCaseOperation1 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 OutputService14TestCaseOperation1 for more information on using the OutputService14TestCaseOperation1
// 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 OutputService14TestCaseOperation1Request method.
// req, resp := client.OutputService14TestCaseOperation1Request(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
func (c *OutputService14ProtocolTest) OutputService14TestCaseOperation1Request(input *OutputService14TestShapeOutputService14TestCaseOperation1Input) (req *request.Request, output *OutputService14TestShapeOutputService14TestCaseOperation1Output) {
op := &request.Operation{
Name: opOutputService14TestCaseOperation1,
HTTPPath: "/",
}
if input == nil {
input = &OutputService14TestShapeOutputService14TestCaseOperation1Input{}
}
output = &OutputService14TestShapeOutputService14TestCaseOperation1Output{}
req = c.newRequest(op, input, output)
return
}
// OutputService14TestCaseOperation1 API operation for .
//
// 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 's
// API operation OutputService14TestCaseOperation1 for usage and error information.
func (c *OutputService14ProtocolTest) OutputService14TestCaseOperation1(input *OutputService14TestShapeOutputService14TestCaseOperation1Input) (*OutputService14TestShapeOutputService14TestCaseOperation1Output, error) {
req, out := c.OutputService14TestCaseOperation1Request(input)
return out, req.Send()
}
// OutputService14TestCaseOperation1WithContext is the same as OutputService14TestCaseOperation1 with the addition of
// the ability to pass a context and additional request options.
//
// See OutputService14TestCaseOperation1 for details on how to use this API operation.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
func (c *OutputService14ProtocolTest) OutputService14TestCaseOperation1WithContext(ctx aws.Context, input *OutputService14TestShapeOutputService14TestCaseOperation1Input, opts ...request.Option) (*OutputService14TestShapeOutputService14TestCaseOperation1Output, error) {
req, out := c.OutputService14TestCaseOperation1Request(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
type OutputService14TestShapeOutputService14TestCaseOperation1Input struct {
_ struct{} `type:"structure"`
}
type OutputService14TestShapeOutputService14TestCaseOperation1Output struct {
_ struct{} `type:"structure"`
Map map[string]*string `locationNameKey:"foo" locationNameValue:"bar" type:"map" flattened:"true"`
}
// SetMap sets the Map field's value.
func (s *OutputService14TestShapeOutputService14TestCaseOperation1Output) SetMap(v map[string]*string) *OutputService14TestShapeOutputService14TestCaseOperation1Output {
s.Map = v
return s
}
// OutputService15ProtocolTest provides the API operation methods for making requests to
// . See this package's package overview docs
// for details on the service.
//
// OutputService15ProtocolTest methods are safe to use concurrently. It is not safe to
// modify mutate any of the struct's properties though.
type OutputService15ProtocolTest struct {
*client.Client
}
// New creates a new instance of the OutputService15ProtocolTest 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 OutputService15ProtocolTest client from just a session.
// svc := outputservice15protocoltest.New(mySession)
//
// // Create a OutputService15ProtocolTest client with additional configuration
// svc := outputservice15protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2"))
func NewOutputService15ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *OutputService15ProtocolTest {
c := p.ClientConfig("outputservice15protocoltest", cfgs...)
return newOutputService15ProtocolTestClient(*c.Config, c.Handlers, c.PartitionID, c.Endpoint, c.SigningRegion, c.SigningName)
}
// newClient creates, initializes and returns a new service client instance.
func newOutputService15ProtocolTestClient(cfg aws.Config, handlers request.Handlers, partitionID, endpoint, signingRegion, signingName string) *OutputService15ProtocolTest {
svc := &OutputService15ProtocolTest{
Client: client.New(
cfg,
metadata.ClientInfo{
ServiceName: "OutputService15ProtocolTest",
ServiceID: "OutputService15ProtocolTest",
SigningName: signingName,
SigningRegion: signingRegion,
PartitionID: partitionID,
Endpoint: endpoint,
APIVersion: "",
},
handlers,
),
}
// Handlers
svc.Handlers.Sign.PushBackNamed(v4.SignRequestHandler)
svc.Handlers.Build.PushBackNamed(query.BuildHandler)
svc.Handlers.Unmarshal.PushBackNamed(query.UnmarshalHandler)
svc.Handlers.UnmarshalMeta.PushBackNamed(query.UnmarshalMetaHandler)
svc.Handlers.UnmarshalError.PushBackNamed(query.UnmarshalErrorHandler)
return svc
}
// newRequest creates a new request for a OutputService15ProtocolTest operation and runs any
// custom request initialization.
func (c *OutputService15ProtocolTest) newRequest(op *request.Operation, params, data interface{}) *request.Request {
req := c.NewRequest(op, params, data)
return req
}
const opOutputService15TestCaseOperation1 = "OperationName"
// OutputService15TestCaseOperation1Request generates a "aws/request.Request" representing the
// client's request for the OutputService15TestCaseOperation1 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 OutputService15TestCaseOperation1 for more information on using the OutputService15TestCaseOperation1
// 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 OutputService15TestCaseOperation1Request method.
// req, resp := client.OutputService15TestCaseOperation1Request(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
func (c *OutputService15ProtocolTest) OutputService15TestCaseOperation1Request(input *OutputService15TestShapeOutputService15TestCaseOperation1Input) (req *request.Request, output *OutputService15TestShapeOutputService15TestCaseOperation1Output) {
op := &request.Operation{
Name: opOutputService15TestCaseOperation1,
HTTPPath: "/",
}
if input == nil {
input = &OutputService15TestShapeOutputService15TestCaseOperation1Input{}
}
output = &OutputService15TestShapeOutputService15TestCaseOperation1Output{}
req = c.newRequest(op, input, output)
return
}
// OutputService15TestCaseOperation1 API operation for .
//
// 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 's
// API operation OutputService15TestCaseOperation1 for usage and error information.
func (c *OutputService15ProtocolTest) OutputService15TestCaseOperation1(input *OutputService15TestShapeOutputService15TestCaseOperation1Input) (*OutputService15TestShapeOutputService15TestCaseOperation1Output, error) {
req, out := c.OutputService15TestCaseOperation1Request(input)
return out, req.Send()
}
// OutputService15TestCaseOperation1WithContext is the same as OutputService15TestCaseOperation1 with the addition of
// the ability to pass a context and additional request options.
//
// See OutputService15TestCaseOperation1 for details on how to use this API operation.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
func (c *OutputService15ProtocolTest) OutputService15TestCaseOperation1WithContext(ctx aws.Context, input *OutputService15TestShapeOutputService15TestCaseOperation1Input, opts ...request.Option) (*OutputService15TestShapeOutputService15TestCaseOperation1Output, error) {
req, out := c.OutputService15TestCaseOperation1Request(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
type OutputService15TestShapeOutputService15TestCaseOperation1Input struct {
_ struct{} `type:"structure"`
}
type OutputService15TestShapeOutputService15TestCaseOperation1Output struct {
_ struct{} `type:"structure"`
Foo *string `type:"string"`
}
// SetFoo sets the Foo field's value.
func (s *OutputService15TestShapeOutputService15TestCaseOperation1Output) SetFoo(v string) *OutputService15TestShapeOutputService15TestCaseOperation1Output {
s.Foo = &v
return s
}
// OutputService16ProtocolTest provides the API operation methods for making requests to
// . See this package's package overview docs
// for details on the service.
//
// OutputService16ProtocolTest methods are safe to use concurrently. It is not safe to
// modify mutate any of the struct's properties though.
type OutputService16ProtocolTest struct {
*client.Client
}
// New creates a new instance of the OutputService16ProtocolTest 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 OutputService16ProtocolTest client from just a session.
// svc := outputservice16protocoltest.New(mySession)
//
// // Create a OutputService16ProtocolTest client with additional configuration
// svc := outputservice16protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2"))
func NewOutputService16ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *OutputService16ProtocolTest {
c := p.ClientConfig("outputservice16protocoltest", cfgs...)
return newOutputService16ProtocolTestClient(*c.Config, c.Handlers, c.PartitionID, c.Endpoint, c.SigningRegion, c.SigningName)
}
// newClient creates, initializes and returns a new service client instance.
func newOutputService16ProtocolTestClient(cfg aws.Config, handlers request.Handlers, partitionID, endpoint, signingRegion, signingName string) *OutputService16ProtocolTest {
svc := &OutputService16ProtocolTest{
Client: client.New(
cfg,
metadata.ClientInfo{
ServiceName: "OutputService16ProtocolTest",
ServiceID: "OutputService16ProtocolTest",
SigningName: signingName,
SigningRegion: signingRegion,
PartitionID: partitionID,
Endpoint: endpoint,
APIVersion: "",
},
handlers,
),
}
// Handlers
svc.Handlers.Sign.PushBackNamed(v4.SignRequestHandler)
svc.Handlers.Build.PushBackNamed(query.BuildHandler)
svc.Handlers.Unmarshal.PushBackNamed(query.UnmarshalHandler)
svc.Handlers.UnmarshalMeta.PushBackNamed(query.UnmarshalMetaHandler)
svc.Handlers.UnmarshalError.PushBackNamed(query.UnmarshalErrorHandler)
return svc
}
// newRequest creates a new request for a OutputService16ProtocolTest operation and runs any
// custom request initialization.
func (c *OutputService16ProtocolTest) newRequest(op *request.Operation, params, data interface{}) *request.Request {
req := c.NewRequest(op, params, data)
return req
}
const opOutputService16TestCaseOperation1 = "OperationName"
// OutputService16TestCaseOperation1Request generates a "aws/request.Request" representing the
// client's request for the OutputService16TestCaseOperation1 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 OutputService16TestCaseOperation1 for more information on using the OutputService16TestCaseOperation1
// 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 OutputService16TestCaseOperation1Request method.
// req, resp := client.OutputService16TestCaseOperation1Request(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
func (c *OutputService16ProtocolTest) OutputService16TestCaseOperation1Request(input *OutputService16TestShapeOutputService16TestCaseOperation1Input) (req *request.Request, output *OutputService16TestShapeOutputService16TestCaseOperation1Output) {
op := &request.Operation{
Name: opOutputService16TestCaseOperation1,
HTTPPath: "/",
}
if input == nil {
input = &OutputService16TestShapeOutputService16TestCaseOperation1Input{}
}
output = &OutputService16TestShapeOutputService16TestCaseOperation1Output{}
req = c.newRequest(op, input, output)
return
}
// OutputService16TestCaseOperation1 API operation for .
//
// 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 's
// API operation OutputService16TestCaseOperation1 for usage and error information.
func (c *OutputService16ProtocolTest) OutputService16TestCaseOperation1(input *OutputService16TestShapeOutputService16TestCaseOperation1Input) (*OutputService16TestShapeOutputService16TestCaseOperation1Output, error) {
req, out := c.OutputService16TestCaseOperation1Request(input)
return out, req.Send()
}
// OutputService16TestCaseOperation1WithContext is the same as OutputService16TestCaseOperation1 with the addition of
// the ability to pass a context and additional request options.
//
// See OutputService16TestCaseOperation1 for details on how to use this API operation.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
func (c *OutputService16ProtocolTest) OutputService16TestCaseOperation1WithContext(ctx aws.Context, input *OutputService16TestShapeOutputService16TestCaseOperation1Input, opts ...request.Option) (*OutputService16TestShapeOutputService16TestCaseOperation1Output, error) {
req, out := c.OutputService16TestCaseOperation1Request(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
type OutputService16TestShapeOutputService16TestCaseOperation1Input struct {
_ struct{} `type:"structure"`
}
type OutputService16TestShapeOutputService16TestCaseOperation1Output struct {
_ struct{} `type:"structure"`
StructMember *OutputService16TestShapeTimeContainer `type:"structure"`
TimeArg *time.Time `type:"timestamp"`
TimeCustom *time.Time `type:"timestamp" timestampFormat:"rfc822"`
TimeFormat *time.Time `type:"timestamp" timestampFormat:"unixTimestamp"`
}
// SetStructMember sets the StructMember field's value.
func (s *OutputService16TestShapeOutputService16TestCaseOperation1Output) SetStructMember(v *OutputService16TestShapeTimeContainer) *OutputService16TestShapeOutputService16TestCaseOperation1Output {
s.StructMember = v
return s
}
// SetTimeArg sets the TimeArg field's value.
func (s *OutputService16TestShapeOutputService16TestCaseOperation1Output) SetTimeArg(v time.Time) *OutputService16TestShapeOutputService16TestCaseOperation1Output {
s.TimeArg = &v
return s
}
// SetTimeCustom sets the TimeCustom field's value.
func (s *OutputService16TestShapeOutputService16TestCaseOperation1Output) SetTimeCustom(v time.Time) *OutputService16TestShapeOutputService16TestCaseOperation1Output {
s.TimeCustom = &v
return s
}
// SetTimeFormat sets the TimeFormat field's value.
func (s *OutputService16TestShapeOutputService16TestCaseOperation1Output) SetTimeFormat(v time.Time) *OutputService16TestShapeOutputService16TestCaseOperation1Output {
s.TimeFormat = &v
return s
}
type OutputService16TestShapeTimeContainer struct {
_ struct{} `type:"structure"`
Bar *time.Time `locationName:"bar" type:"timestamp" timestampFormat:"unixTimestamp"`
Foo *time.Time `locationName:"foo" type:"timestamp"`
}
// SetBar sets the Bar field's value.
func (s *OutputService16TestShapeTimeContainer) SetBar(v time.Time) *OutputService16TestShapeTimeContainer {
s.Bar = &v
return s
}
// SetFoo sets the Foo field's value.
func (s *OutputService16TestShapeTimeContainer) SetFoo(v time.Time) *OutputService16TestShapeTimeContainer {
s.Foo = &v
return s
}
// OutputService17ProtocolTest provides the API operation methods for making requests to
// . See this package's package overview docs
// for details on the service.
//
// OutputService17ProtocolTest methods are safe to use concurrently. It is not safe to
// modify mutate any of the struct's properties though.
type OutputService17ProtocolTest struct {
*client.Client
}
// New creates a new instance of the OutputService17ProtocolTest 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 OutputService17ProtocolTest client from just a session.
// svc := outputservice17protocoltest.New(mySession)
//
// // Create a OutputService17ProtocolTest client with additional configuration
// svc := outputservice17protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2"))
func NewOutputService17ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *OutputService17ProtocolTest {
c := p.ClientConfig("outputservice17protocoltest", cfgs...)
return newOutputService17ProtocolTestClient(*c.Config, c.Handlers, c.PartitionID, c.Endpoint, c.SigningRegion, c.SigningName)
}
// newClient creates, initializes and returns a new service client instance.
func newOutputService17ProtocolTestClient(cfg aws.Config, handlers request.Handlers, partitionID, endpoint, signingRegion, signingName string) *OutputService17ProtocolTest {
svc := &OutputService17ProtocolTest{
Client: client.New(
cfg,
metadata.ClientInfo{
ServiceName: "OutputService17ProtocolTest",
ServiceID: "OutputService17ProtocolTest",
SigningName: signingName,
SigningRegion: signingRegion,
PartitionID: partitionID,
Endpoint: endpoint,
APIVersion: "",
},
handlers,
),
}
// Handlers
svc.Handlers.Sign.PushBackNamed(v4.SignRequestHandler)
svc.Handlers.Build.PushBackNamed(query.BuildHandler)
svc.Handlers.Unmarshal.PushBackNamed(query.UnmarshalHandler)
svc.Handlers.UnmarshalMeta.PushBackNamed(query.UnmarshalMetaHandler)
svc.Handlers.UnmarshalError.PushBackNamed(query.UnmarshalErrorHandler)
return svc
}
// newRequest creates a new request for a OutputService17ProtocolTest operation and runs any
// custom request initialization.
func (c *OutputService17ProtocolTest) newRequest(op *request.Operation, params, data interface{}) *request.Request {
req := c.NewRequest(op, params, data)
return req
}
const opOutputService17TestCaseOperation1 = "OperationName"
// OutputService17TestCaseOperation1Request generates a "aws/request.Request" representing the
// client's request for the OutputService17TestCaseOperation1 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 OutputService17TestCaseOperation1 for more information on using the OutputService17TestCaseOperation1
// 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 OutputService17TestCaseOperation1Request method.
// req, resp := client.OutputService17TestCaseOperation1Request(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
func (c *OutputService17ProtocolTest) OutputService17TestCaseOperation1Request(input *OutputService17TestShapeOutputService17TestCaseOperation1Input) (req *request.Request, output *OutputService17TestShapeOutputService17TestCaseOperation1Output) {
op := &request.Operation{
Name: opOutputService17TestCaseOperation1,
HTTPPath: "/",
}
if input == nil {
input = &OutputService17TestShapeOutputService17TestCaseOperation1Input{}
}
output = &OutputService17TestShapeOutputService17TestCaseOperation1Output{}
req = c.newRequest(op, input, output)
return
}
// OutputService17TestCaseOperation1 API operation for .
//
// 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 's
// API operation OutputService17TestCaseOperation1 for usage and error information.
func (c *OutputService17ProtocolTest) OutputService17TestCaseOperation1(input *OutputService17TestShapeOutputService17TestCaseOperation1Input) (*OutputService17TestShapeOutputService17TestCaseOperation1Output, error) {
req, out := c.OutputService17TestCaseOperation1Request(input)
return out, req.Send()
}
// OutputService17TestCaseOperation1WithContext is the same as OutputService17TestCaseOperation1 with the addition of
// the ability to pass a context and additional request options.
//
// See OutputService17TestCaseOperation1 for details on how to use this API operation.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
func (c *OutputService17ProtocolTest) OutputService17TestCaseOperation1WithContext(ctx aws.Context, input *OutputService17TestShapeOutputService17TestCaseOperation1Input, opts ...request.Option) (*OutputService17TestShapeOutputService17TestCaseOperation1Output, error) {
req, out := c.OutputService17TestCaseOperation1Request(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
type OutputService17TestShapeOutputService17TestCaseOperation1Input struct {
_ struct{} `type:"structure"`
}
type OutputService17TestShapeOutputService17TestCaseOperation1Output struct {
_ struct{} `type:"structure"`
FooEnum *string `type:"string" enum:"OutputService17TestShapeEC2EnumType"`
ListEnums []*string `type:"list"`
}
// SetFooEnum sets the FooEnum field's value.
func (s *OutputService17TestShapeOutputService17TestCaseOperation1Output) SetFooEnum(v string) *OutputService17TestShapeOutputService17TestCaseOperation1Output {
s.FooEnum = &v
return s
}
// SetListEnums sets the ListEnums field's value.
func (s *OutputService17TestShapeOutputService17TestCaseOperation1Output) SetListEnums(v []*string) *OutputService17TestShapeOutputService17TestCaseOperation1Output {
s.ListEnums = v
return s
}
const (
// EC2EnumTypeFoo is a OutputService17TestShapeEC2EnumType enum value
EC2EnumTypeFoo = "foo"
// EC2EnumTypeBar is a OutputService17TestShapeEC2EnumType enum value
EC2EnumTypeBar = "bar"
)
// OutputService17TestShapeEC2EnumType_Values returns all elements of the OutputService17TestShapeEC2EnumType enum
func OutputService17TestShapeEC2EnumType_Values() []string {
return []string{
EC2EnumTypeFoo,
EC2EnumTypeBar,
}
}
//
// Tests begin here
//
func TestOutputService1ProtocolTestScalarMembersCase1(t *testing.T) {
svc := NewOutputService1ProtocolTest(unit.Session, &aws.Config{Endpoint: aws.String("https://test")})
buf := bytes.NewReader([]byte("<OperationNameResponse><OperationNameResult><Str>myname</Str><FooNum>123</FooNum><FalseBool>false</FalseBool><TrueBool>true</TrueBool><Float>1.2</Float><Double>1.3</Double><Long>200</Long><Char>a</Char><Timestamp>2015-01-25T08:00:00Z</Timestamp></OperationNameResult><ResponseMetadata><RequestId>request-id</RequestId></ResponseMetadata></OperationNameResponse>"))
req, out := svc.OutputService1TestCaseOperation1Request(nil)
req.HTTPResponse = &http.Response{StatusCode: 200, Body: ioutil.NopCloser(buf), Header: http.Header{}}
// set headers
// unmarshal response
req.Handlers.UnmarshalMeta.Run(req)
req.Handlers.Unmarshal.Run(req)
if req.Error != nil {
t.Errorf("expect not error, got %v", req.Error)
}
// assert response
if out == nil {
t.Errorf("expect not to be nil")
}
if e, a := "a", *out.Char; e != a {
t.Errorf("expect %v, got %v", e, a)
}
if e, a := 1.3, *out.Double; e != a {
t.Errorf("expect %v, got %v", e, a)
}
if e, a := false, *out.FalseBool; e != a {
t.Errorf("expect %v, got %v", e, a)
}
if e, a := 1.2, *out.Float; e != a {
t.Errorf("expect %v, got %v", e, a)
}
if e, a := int64(200), *out.Long; e != a {
t.Errorf("expect %v, got %v", e, a)
}
if e, a := int64(123), *out.Num; e != a {
t.Errorf("expect %v, got %v", e, a)
}
if e, a := "myname", *out.Str; e != a {
t.Errorf("expect %v, got %v", e, a)
}
if e, a := time.Unix(1.4221728e+09, 0).UTC().String(), out.Timestamp.UTC().String(); e != a {
t.Errorf("expect %v, got %v", e, a)
}
if e, a := true, *out.TrueBool; e != a {
t.Errorf("expect %v, got %v", e, a)
}
}
func TestOutputService2ProtocolTestNotAllMembersInResponseCase1(t *testing.T) {
svc := NewOutputService2ProtocolTest(unit.Session, &aws.Config{Endpoint: aws.String("https://test")})
buf := bytes.NewReader([]byte("<OperationNameResponse><OperationNameResult><Str>myname</Str></OperationNameResult><ResponseMetadata><RequestId>request-id</RequestId></ResponseMetadata></OperationNameResponse>"))
req, out := svc.OutputService2TestCaseOperation1Request(nil)
req.HTTPResponse = &http.Response{StatusCode: 200, Body: ioutil.NopCloser(buf), Header: http.Header{}}
// set headers
// unmarshal response
req.Handlers.UnmarshalMeta.Run(req)
req.Handlers.Unmarshal.Run(req)
if req.Error != nil {
t.Errorf("expect not error, got %v", req.Error)
}
// assert response
if out == nil {
t.Errorf("expect not to be nil")
}
if e, a := "myname", *out.Str; e != a {
t.Errorf("expect %v, got %v", e, a)
}
}
func TestOutputService3ProtocolTestBlobCase1(t *testing.T) {
svc := NewOutputService3ProtocolTest(unit.Session, &aws.Config{Endpoint: aws.String("https://test")})
buf := bytes.NewReader([]byte("<OperationNameResponse><OperationNameResult><Blob>dmFsdWU=</Blob></OperationNameResult><ResponseMetadata><RequestId>requestid</RequestId></ResponseMetadata></OperationNameResponse>"))
req, out := svc.OutputService3TestCaseOperation1Request(nil)
req.HTTPResponse = &http.Response{StatusCode: 200, Body: ioutil.NopCloser(buf), Header: http.Header{}}
// set headers
// unmarshal response
req.Handlers.UnmarshalMeta.Run(req)
req.Handlers.Unmarshal.Run(req)
if req.Error != nil {
t.Errorf("expect not error, got %v", req.Error)
}
// assert response
if out == nil {
t.Errorf("expect not to be nil")
}
if e, a := "value", string(out.Blob); e != a {
t.Errorf("expect %v, got %v", e, a)
}
}
func TestOutputService4ProtocolTestListsCase1(t *testing.T) {
svc := NewOutputService4ProtocolTest(unit.Session, &aws.Config{Endpoint: aws.String("https://test")})
buf := bytes.NewReader([]byte("<OperationNameResponse><OperationNameResult><ListMember><member>abc</member><member>123</member></ListMember></OperationNameResult><ResponseMetadata><RequestId>requestid</RequestId></ResponseMetadata></OperationNameResponse>"))
req, out := svc.OutputService4TestCaseOperation1Request(nil)
req.HTTPResponse = &http.Response{StatusCode: 200, Body: ioutil.NopCloser(buf), Header: http.Header{}}
// set headers
// unmarshal response
req.Handlers.UnmarshalMeta.Run(req)
req.Handlers.Unmarshal.Run(req)
if req.Error != nil {
t.Errorf("expect not error, got %v", req.Error)
}
// assert response
if out == nil {
t.Errorf("expect not to be nil")
}
if e, a := "abc", *out.ListMember[0]; e != a {
t.Errorf("expect %v, got %v", e, a)
}
if e, a := "123", *out.ListMember[1]; e != a {
t.Errorf("expect %v, got %v", e, a)
}
}
func TestOutputService5ProtocolTestListWithCustomMemberNameCase1(t *testing.T) {
svc := NewOutputService5ProtocolTest(unit.Session, &aws.Config{Endpoint: aws.String("https://test")})
buf := bytes.NewReader([]byte("<OperationNameResponse><OperationNameResult><ListMember><item>abc</item><item>123</item></ListMember></OperationNameResult><ResponseMetadata><RequestId>requestid</RequestId></ResponseMetadata></OperationNameResponse>"))
req, out := svc.OutputService5TestCaseOperation1Request(nil)
req.HTTPResponse = &http.Response{StatusCode: 200, Body: ioutil.NopCloser(buf), Header: http.Header{}}
// set headers
// unmarshal response
req.Handlers.UnmarshalMeta.Run(req)
req.Handlers.Unmarshal.Run(req)
if req.Error != nil {
t.Errorf("expect not error, got %v", req.Error)
}
// assert response
if out == nil {
t.Errorf("expect not to be nil")
}
if e, a := "abc", *out.ListMember[0]; e != a {
t.Errorf("expect %v, got %v", e, a)
}
if e, a := "123", *out.ListMember[1]; e != a {
t.Errorf("expect %v, got %v", e, a)
}
}
func TestOutputService6ProtocolTestFlattenedListCase1(t *testing.T) {
svc := NewOutputService6ProtocolTest(unit.Session, &aws.Config{Endpoint: aws.String("https://test")})
buf := bytes.NewReader([]byte("<OperationNameResponse><OperationNameResult><ListMember>abc</ListMember><ListMember>123</ListMember></OperationNameResult><ResponseMetadata><RequestId>requestid</RequestId></ResponseMetadata></OperationNameResponse>"))
req, out := svc.OutputService6TestCaseOperation1Request(nil)
req.HTTPResponse = &http.Response{StatusCode: 200, Body: ioutil.NopCloser(buf), Header: http.Header{}}
// set headers
// unmarshal response
req.Handlers.UnmarshalMeta.Run(req)
req.Handlers.Unmarshal.Run(req)
if req.Error != nil {
t.Errorf("expect not error, got %v", req.Error)
}
// assert response
if out == nil {
t.Errorf("expect not to be nil")
}
if e, a := "abc", *out.ListMember[0]; e != a {
t.Errorf("expect %v, got %v", e, a)
}
if e, a := "123", *out.ListMember[1]; e != a {
t.Errorf("expect %v, got %v", e, a)
}
}
func TestOutputService7ProtocolTestFlattenedSingleElementListCase1(t *testing.T) {
svc := NewOutputService7ProtocolTest(unit.Session, &aws.Config{Endpoint: aws.String("https://test")})
buf := bytes.NewReader([]byte("<OperationNameResponse><OperationNameResult><ListMember>abc</ListMember></OperationNameResult><ResponseMetadata><RequestId>requestid</RequestId></ResponseMetadata></OperationNameResponse>"))
req, out := svc.OutputService7TestCaseOperation1Request(nil)
req.HTTPResponse = &http.Response{StatusCode: 200, Body: ioutil.NopCloser(buf), Header: http.Header{}}
// set headers
// unmarshal response
req.Handlers.UnmarshalMeta.Run(req)
req.Handlers.Unmarshal.Run(req)
if req.Error != nil {
t.Errorf("expect not error, got %v", req.Error)
}
// assert response
if out == nil {
t.Errorf("expect not to be nil")
}
if e, a := "abc", *out.ListMember[0]; e != a {
t.Errorf("expect %v, got %v", e, a)
}
}
func TestOutputService8ProtocolTestListOfStructuresCase1(t *testing.T) {
svc := NewOutputService8ProtocolTest(unit.Session, &aws.Config{Endpoint: aws.String("https://test")})
buf := bytes.NewReader([]byte("<OperationNameResponse xmlns=\"https://service.amazonaws.com/doc/2010-05-08/\"><OperationNameResult><List><member><Foo>firstfoo</Foo><Bar>firstbar</Bar><Baz>firstbaz</Baz></member><member><Foo>secondfoo</Foo><Bar>secondbar</Bar><Baz>secondbaz</Baz></member></List></OperationNameResult><ResponseMetadata><RequestId>requestid</RequestId></ResponseMetadata></OperationNameResponse>"))
req, out := svc.OutputService8TestCaseOperation1Request(nil)
req.HTTPResponse = &http.Response{StatusCode: 200, Body: ioutil.NopCloser(buf), Header: http.Header{}}
// set headers
// unmarshal response
req.Handlers.UnmarshalMeta.Run(req)
req.Handlers.Unmarshal.Run(req)
if req.Error != nil {
t.Errorf("expect not error, got %v", req.Error)
}
// assert response
if out == nil {
t.Errorf("expect not to be nil")
}
if e, a := "firstbar", *out.List[0].Bar; e != a {
t.Errorf("expect %v, got %v", e, a)
}
if e, a := "firstbaz", *out.List[0].Baz; e != a {
t.Errorf("expect %v, got %v", e, a)
}
if e, a := "firstfoo", *out.List[0].Foo; e != a {
t.Errorf("expect %v, got %v", e, a)
}
if e, a := "secondbar", *out.List[1].Bar; e != a {
t.Errorf("expect %v, got %v", e, a)
}
if e, a := "secondbaz", *out.List[1].Baz; e != a {
t.Errorf("expect %v, got %v", e, a)
}
if e, a := "secondfoo", *out.List[1].Foo; e != a {
t.Errorf("expect %v, got %v", e, a)
}
}
func TestOutputService9ProtocolTestFlattenedListOfStructuresCase1(t *testing.T) {
svc := NewOutputService9ProtocolTest(unit.Session, &aws.Config{Endpoint: aws.String("https://test")})
buf := bytes.NewReader([]byte("<OperationNameResponse xmlns=\"https://service.amazonaws.com/doc/2010-05-08/\"><OperationNameResult><List><Foo>firstfoo</Foo><Bar>firstbar</Bar><Baz>firstbaz</Baz></List><List><Foo>secondfoo</Foo><Bar>secondbar</Bar><Baz>secondbaz</Baz></List></OperationNameResult><ResponseMetadata><RequestId>requestid</RequestId></ResponseMetadata></OperationNameResponse>"))
req, out := svc.OutputService9TestCaseOperation1Request(nil)
req.HTTPResponse = &http.Response{StatusCode: 200, Body: ioutil.NopCloser(buf), Header: http.Header{}}
// set headers
// unmarshal response
req.Handlers.UnmarshalMeta.Run(req)
req.Handlers.Unmarshal.Run(req)
if req.Error != nil {
t.Errorf("expect not error, got %v", req.Error)
}
// assert response
if out == nil {
t.Errorf("expect not to be nil")
}
if e, a := "firstbar", *out.List[0].Bar; e != a {
t.Errorf("expect %v, got %v", e, a)
}
if e, a := "firstbaz", *out.List[0].Baz; e != a {
t.Errorf("expect %v, got %v", e, a)
}
if e, a := "firstfoo", *out.List[0].Foo; e != a {
t.Errorf("expect %v, got %v", e, a)
}
if e, a := "secondbar", *out.List[1].Bar; e != a {
t.Errorf("expect %v, got %v", e, a)
}
if e, a := "secondbaz", *out.List[1].Baz; e != a {
t.Errorf("expect %v, got %v", e, a)
}
if e, a := "secondfoo", *out.List[1].Foo; e != a {
t.Errorf("expect %v, got %v", e, a)
}
}
func TestOutputService10ProtocolTestFlattenedListWithLocationNameCase1(t *testing.T) {
svc := NewOutputService10ProtocolTest(unit.Session, &aws.Config{Endpoint: aws.String("https://test")})
buf := bytes.NewReader([]byte("<OperationNameResponse xmlns=\"https://service.amazonaws.com/doc/2010-05-08/\"><OperationNameResult><NamedList>a</NamedList><NamedList>b</NamedList></OperationNameResult><ResponseMetadata><RequestId>requestid</RequestId></ResponseMetadata></OperationNameResponse>"))
req, out := svc.OutputService10TestCaseOperation1Request(nil)
req.HTTPResponse = &http.Response{StatusCode: 200, Body: ioutil.NopCloser(buf), Header: http.Header{}}
// set headers
// unmarshal response
req.Handlers.UnmarshalMeta.Run(req)
req.Handlers.Unmarshal.Run(req)
if req.Error != nil {
t.Errorf("expect not error, got %v", req.Error)
}
// assert response
if out == nil {
t.Errorf("expect not to be nil")
}
if e, a := "a", *out.List[0]; e != a {
t.Errorf("expect %v, got %v", e, a)
}
if e, a := "b", *out.List[1]; e != a {
t.Errorf("expect %v, got %v", e, a)
}
}
func TestOutputService11ProtocolTestNormalMapCase1(t *testing.T) {
svc := NewOutputService11ProtocolTest(unit.Session, &aws.Config{Endpoint: aws.String("https://test")})
buf := bytes.NewReader([]byte("<OperationNameResponse xmlns=\"https://service.amazonaws.com/doc/2010-05-08\"><OperationNameResult><Map><entry><key>qux</key><value><foo>bar</foo></value></entry><entry><key>baz</key><value><foo>bam</foo></value></entry></Map></OperationNameResult><ResponseMetadata><RequestId>requestid</RequestId></ResponseMetadata></OperationNameResponse>"))
req, out := svc.OutputService11TestCaseOperation1Request(nil)
req.HTTPResponse = &http.Response{StatusCode: 200, Body: ioutil.NopCloser(buf), Header: http.Header{}}
// set headers
// unmarshal response
req.Handlers.UnmarshalMeta.Run(req)
req.Handlers.Unmarshal.Run(req)
if req.Error != nil {
t.Errorf("expect not error, got %v", req.Error)
}
// assert response
if out == nil {
t.Errorf("expect not to be nil")
}
if e, a := "bam", *out.Map["baz"].Foo; e != a {
t.Errorf("expect %v, got %v", e, a)
}
if e, a := "bar", *out.Map["qux"].Foo; e != a {
t.Errorf("expect %v, got %v", e, a)
}
}
func TestOutputService12ProtocolTestFlattenedMapCase1(t *testing.T) {
svc := NewOutputService12ProtocolTest(unit.Session, &aws.Config{Endpoint: aws.String("https://test")})
buf := bytes.NewReader([]byte("<OperationNameResponse><OperationNameResult><Map><key>qux</key><value>bar</value></Map><Map><key>baz</key><value>bam</value></Map></OperationNameResult><ResponseMetadata><RequestId>requestid</RequestId></ResponseMetadata></OperationNameResponse>"))
req, out := svc.OutputService12TestCaseOperation1Request(nil)
req.HTTPResponse = &http.Response{StatusCode: 200, Body: ioutil.NopCloser(buf), Header: http.Header{}}
// set headers
// unmarshal response
req.Handlers.UnmarshalMeta.Run(req)
req.Handlers.Unmarshal.Run(req)
if req.Error != nil {
t.Errorf("expect not error, got %v", req.Error)
}
// assert response
if out == nil {
t.Errorf("expect not to be nil")
}
if e, a := "bam", *out.Map["baz"]; e != a {
t.Errorf("expect %v, got %v", e, a)
}
if e, a := "bar", *out.Map["qux"]; e != a {
t.Errorf("expect %v, got %v", e, a)
}
}
func TestOutputService13ProtocolTestFlattenedMapInShapeDefinitionCase1(t *testing.T) {
svc := NewOutputService13ProtocolTest(unit.Session, &aws.Config{Endpoint: aws.String("https://test")})
buf := bytes.NewReader([]byte("<OperationNameResponse><OperationNameResult><Attribute><Name>qux</Name><Value>bar</Value></Attribute></OperationNameResult><ResponseMetadata><RequestId>requestid</RequestId></ResponseMetadata></OperationNameResponse>"))
req, out := svc.OutputService13TestCaseOperation1Request(nil)
req.HTTPResponse = &http.Response{StatusCode: 200, Body: ioutil.NopCloser(buf), Header: http.Header{}}
// set headers
// unmarshal response
req.Handlers.UnmarshalMeta.Run(req)
req.Handlers.Unmarshal.Run(req)
if req.Error != nil {
t.Errorf("expect not error, got %v", req.Error)
}
// assert response
if out == nil {
t.Errorf("expect not to be nil")
}
if e, a := "bar", *out.Map["qux"]; e != a {
t.Errorf("expect %v, got %v", e, a)
}
}
func TestOutputService14ProtocolTestNamedMapCase1(t *testing.T) {
svc := NewOutputService14ProtocolTest(unit.Session, &aws.Config{Endpoint: aws.String("https://test")})
buf := bytes.NewReader([]byte("<OperationNameResponse><OperationNameResult><Map><foo>qux</foo><bar>bar</bar></Map><Map><foo>baz</foo><bar>bam</bar></Map></OperationNameResult><ResponseMetadata><RequestId>requestid</RequestId></ResponseMetadata></OperationNameResponse>"))
req, out := svc.OutputService14TestCaseOperation1Request(nil)
req.HTTPResponse = &http.Response{StatusCode: 200, Body: ioutil.NopCloser(buf), Header: http.Header{}}
// set headers
// unmarshal response
req.Handlers.UnmarshalMeta.Run(req)
req.Handlers.Unmarshal.Run(req)
if req.Error != nil {
t.Errorf("expect not error, got %v", req.Error)
}
// assert response
if out == nil {
t.Errorf("expect not to be nil")
}
if e, a := "bam", *out.Map["baz"]; e != a {
t.Errorf("expect %v, got %v", e, a)
}
if e, a := "bar", *out.Map["qux"]; e != a {
t.Errorf("expect %v, got %v", e, a)
}
}
func TestOutputService15ProtocolTestEmptyStringCase1(t *testing.T) {
svc := NewOutputService15ProtocolTest(unit.Session, &aws.Config{Endpoint: aws.String("https://test")})
buf := bytes.NewReader([]byte("<OperationNameResponse><OperationNameResult><Foo/></OperationNameResult><ResponseMetadata><RequestId>requestid</RequestId></ResponseMetadata></OperationNameResponse>"))
req, out := svc.OutputService15TestCaseOperation1Request(nil)
req.HTTPResponse = &http.Response{StatusCode: 200, Body: ioutil.NopCloser(buf), Header: http.Header{}}
// set headers
// unmarshal response
req.Handlers.UnmarshalMeta.Run(req)
req.Handlers.Unmarshal.Run(req)
if req.Error != nil {
t.Errorf("expect not error, got %v", req.Error)
}
// assert response
if out == nil {
t.Errorf("expect not to be nil")
}
if e, a := "", *out.Foo; e != a {
t.Errorf("expect %v, got %v", e, a)
}
}
func TestOutputService16ProtocolTestTimestampMembersCase1(t *testing.T) {
svc := NewOutputService16ProtocolTest(unit.Session, &aws.Config{Endpoint: aws.String("https://test")})
buf := bytes.NewReader([]byte("<OperationNameResponse><StructMember><foo>2014-04-29T18:30:38Z</foo><bar>1398796238</bar></StructMember><TimeArg>2014-04-29T18:30:38Z</TimeArg><TimeCustom>Tue, 29 Apr 2014 18:30:38 GMT</TimeCustom><TimeFormat>1398796238</TimeFormat><RequestId>requestid</RequestId></OperationNameResponse>"))
req, out := svc.OutputService16TestCaseOperation1Request(nil)
req.HTTPResponse = &http.Response{StatusCode: 200, Body: ioutil.NopCloser(buf), Header: http.Header{}}
// set headers
// unmarshal response
req.Handlers.UnmarshalMeta.Run(req)
req.Handlers.Unmarshal.Run(req)
if req.Error != nil {
t.Errorf("expect not error, got %v", req.Error)
}
// assert response
if out == nil {
t.Errorf("expect not to be nil")
}
if e, a := time.Unix(1.398796238e+09, 0).UTC().String(), out.StructMember.Bar.UTC().String(); e != a {
t.Errorf("expect %v, got %v", e, a)
}
if e, a := time.Unix(1.398796238e+09, 0).UTC().String(), out.StructMember.Foo.UTC().String(); e != a {
t.Errorf("expect %v, got %v", e, a)
}
if e, a := time.Unix(1.398796238e+09, 0).UTC().String(), out.TimeArg.UTC().String(); e != a {
t.Errorf("expect %v, got %v", e, a)
}
if e, a := time.Unix(1.398796238e+09, 0).UTC().String(), out.TimeCustom.UTC().String(); e != a {
t.Errorf("expect %v, got %v", e, a)
}
if e, a := time.Unix(1.398796238e+09, 0).UTC().String(), out.TimeFormat.UTC().String(); e != a {
t.Errorf("expect %v, got %v", e, a)
}
}
func TestOutputService17ProtocolTestEnumOutputCase1(t *testing.T) {
svc := NewOutputService17ProtocolTest(unit.Session, &aws.Config{Endpoint: aws.String("https://test")})
buf := bytes.NewReader([]byte("<OperationNameResponse><FooEnum>foo</FooEnum><ListEnums><member>foo</member><member>bar</member></ListEnums></OperationNameResponse>"))
req, out := svc.OutputService17TestCaseOperation1Request(nil)
req.HTTPResponse = &http.Response{StatusCode: 200, Body: ioutil.NopCloser(buf), Header: http.Header{}}
// set headers
// unmarshal response
req.Handlers.UnmarshalMeta.Run(req)
req.Handlers.Unmarshal.Run(req)
if req.Error != nil {
t.Errorf("expect not error, got %v", req.Error)
}
// assert response
if out == nil {
t.Errorf("expect not to be nil")
}
if e, a := "foo", *out.FooEnum; e != a {
t.Errorf("expect %v, got %v", e, a)
}
if e, a := "foo", *out.ListEnums[0]; e != a {
t.Errorf("expect %v, got %v", e, a)
}
if e, a := "bar", *out.ListEnums[1]; e != a {
t.Errorf("expect %v, got %v", e, a)
}
}
| 3,295 |
session-manager-plugin | aws | Go | package queryutil
import (
"encoding/base64"
"fmt"
"net/url"
"reflect"
"sort"
"strconv"
"strings"
"time"
"github.com/aws/aws-sdk-go/private/protocol"
)
// Parse parses an object i and fills a url.Values object. The isEC2 flag
// indicates if this is the EC2 Query sub-protocol.
func Parse(body url.Values, i interface{}, isEC2 bool) error {
q := queryParser{isEC2: isEC2}
return q.parseValue(body, reflect.ValueOf(i), "", "")
}
func elemOf(value reflect.Value) reflect.Value {
for value.Kind() == reflect.Ptr {
value = value.Elem()
}
return value
}
type queryParser struct {
isEC2 bool
}
func (q *queryParser) parseValue(v url.Values, value reflect.Value, prefix string, tag reflect.StructTag) error {
value = elemOf(value)
// no need to handle zero values
if !value.IsValid() {
return nil
}
t := tag.Get("type")
if t == "" {
switch value.Kind() {
case reflect.Struct:
t = "structure"
case reflect.Slice:
t = "list"
case reflect.Map:
t = "map"
}
}
switch t {
case "structure":
return q.parseStruct(v, value, prefix)
case "list":
return q.parseList(v, value, prefix, tag)
case "map":
return q.parseMap(v, value, prefix, tag)
default:
return q.parseScalar(v, value, prefix, tag)
}
}
func (q *queryParser) parseStruct(v url.Values, value reflect.Value, prefix string) error {
if !value.IsValid() {
return nil
}
t := value.Type()
for i := 0; i < value.NumField(); i++ {
elemValue := elemOf(value.Field(i))
field := t.Field(i)
if field.PkgPath != "" {
continue // ignore unexported fields
}
if field.Tag.Get("ignore") != "" {
continue
}
if protocol.CanSetIdempotencyToken(value.Field(i), field) {
token := protocol.GetIdempotencyToken()
elemValue = reflect.ValueOf(token)
}
var name string
if q.isEC2 {
name = field.Tag.Get("queryName")
}
if name == "" {
if field.Tag.Get("flattened") != "" && field.Tag.Get("locationNameList") != "" {
name = field.Tag.Get("locationNameList")
} else if locName := field.Tag.Get("locationName"); locName != "" {
name = locName
}
if name != "" && q.isEC2 {
name = strings.ToUpper(name[0:1]) + name[1:]
}
}
if name == "" {
name = field.Name
}
if prefix != "" {
name = prefix + "." + name
}
if err := q.parseValue(v, elemValue, name, field.Tag); err != nil {
return err
}
}
return nil
}
func (q *queryParser) parseList(v url.Values, value reflect.Value, prefix string, tag reflect.StructTag) error {
// If it's empty, generate an empty value
if !value.IsNil() && value.Len() == 0 {
v.Set(prefix, "")
return nil
}
if _, ok := value.Interface().([]byte); ok {
return q.parseScalar(v, value, prefix, tag)
}
// check for unflattened list member
if !q.isEC2 && tag.Get("flattened") == "" {
if listName := tag.Get("locationNameList"); listName == "" {
prefix += ".member"
} else {
prefix += "." + listName
}
}
for i := 0; i < value.Len(); i++ {
slicePrefix := prefix
if slicePrefix == "" {
slicePrefix = strconv.Itoa(i + 1)
} else {
slicePrefix = slicePrefix + "." + strconv.Itoa(i+1)
}
if err := q.parseValue(v, value.Index(i), slicePrefix, ""); err != nil {
return err
}
}
return nil
}
func (q *queryParser) parseMap(v url.Values, value reflect.Value, prefix string, tag reflect.StructTag) error {
// If it's empty, generate an empty value
if !value.IsNil() && value.Len() == 0 {
v.Set(prefix, "")
return nil
}
// check for unflattened list member
if !q.isEC2 && tag.Get("flattened") == "" {
prefix += ".entry"
}
// sort keys for improved serialization consistency.
// this is not strictly necessary for protocol support.
mapKeyValues := value.MapKeys()
mapKeys := map[string]reflect.Value{}
mapKeyNames := make([]string, len(mapKeyValues))
for i, mapKey := range mapKeyValues {
name := mapKey.String()
mapKeys[name] = mapKey
mapKeyNames[i] = name
}
sort.Strings(mapKeyNames)
for i, mapKeyName := range mapKeyNames {
mapKey := mapKeys[mapKeyName]
mapValue := value.MapIndex(mapKey)
kname := tag.Get("locationNameKey")
if kname == "" {
kname = "key"
}
vname := tag.Get("locationNameValue")
if vname == "" {
vname = "value"
}
// serialize key
var keyName string
if prefix == "" {
keyName = strconv.Itoa(i+1) + "." + kname
} else {
keyName = prefix + "." + strconv.Itoa(i+1) + "." + kname
}
if err := q.parseValue(v, mapKey, keyName, ""); err != nil {
return err
}
// serialize value
var valueName string
if prefix == "" {
valueName = strconv.Itoa(i+1) + "." + vname
} else {
valueName = prefix + "." + strconv.Itoa(i+1) + "." + vname
}
if err := q.parseValue(v, mapValue, valueName, ""); err != nil {
return err
}
}
return nil
}
func (q *queryParser) parseScalar(v url.Values, r reflect.Value, name string, tag reflect.StructTag) error {
switch value := r.Interface().(type) {
case string:
v.Set(name, value)
case []byte:
if !r.IsNil() {
v.Set(name, base64.StdEncoding.EncodeToString(value))
}
case bool:
v.Set(name, strconv.FormatBool(value))
case int64:
v.Set(name, strconv.FormatInt(value, 10))
case int:
v.Set(name, strconv.Itoa(value))
case float64:
v.Set(name, strconv.FormatFloat(value, 'f', -1, 64))
case float32:
v.Set(name, strconv.FormatFloat(float64(value), 'f', -1, 32))
case time.Time:
const ISO8601UTC = "2006-01-02T15:04:05Z"
format := tag.Get("timestampFormat")
if len(format) == 0 {
format = protocol.ISO8601TimeFormatName
}
v.Set(name, protocol.FormatTime(format, value))
default:
return fmt.Errorf("unsupported value for param %s: %v (%s)", name, r.Interface(), r.Type().Name())
}
return nil
}
| 247 |
session-manager-plugin | aws | Go | // Package rest provides RESTful serialization of AWS requests and responses.
package rest
import (
"bytes"
"encoding/base64"
"fmt"
"io"
"net/http"
"net/url"
"path"
"reflect"
"strconv"
"strings"
"time"
"github.com/aws/aws-sdk-go/aws"
"github.com/aws/aws-sdk-go/aws/awserr"
"github.com/aws/aws-sdk-go/aws/request"
"github.com/aws/aws-sdk-go/private/protocol"
)
// Whether the byte value can be sent without escaping in AWS URLs
var noEscape [256]bool
var errValueNotSet = fmt.Errorf("value not set")
var byteSliceType = reflect.TypeOf([]byte{})
func init() {
for i := 0; i < len(noEscape); i++ {
// AWS expects every character except these to be escaped
noEscape[i] = (i >= 'A' && i <= 'Z') ||
(i >= 'a' && i <= 'z') ||
(i >= '0' && i <= '9') ||
i == '-' ||
i == '.' ||
i == '_' ||
i == '~'
}
}
// BuildHandler is a named request handler for building rest protocol requests
var BuildHandler = request.NamedHandler{Name: "awssdk.rest.Build", Fn: Build}
// Build builds the REST component of a service request.
func Build(r *request.Request) {
if r.ParamsFilled() {
v := reflect.ValueOf(r.Params).Elem()
buildLocationElements(r, v, false)
buildBody(r, v)
}
}
// BuildAsGET builds the REST component of a service request with the ability to hoist
// data from the body.
func BuildAsGET(r *request.Request) {
if r.ParamsFilled() {
v := reflect.ValueOf(r.Params).Elem()
buildLocationElements(r, v, true)
buildBody(r, v)
}
}
func buildLocationElements(r *request.Request, v reflect.Value, buildGETQuery bool) {
query := r.HTTPRequest.URL.Query()
// Setup the raw path to match the base path pattern. This is needed
// so that when the path is mutated a custom escaped version can be
// stored in RawPath that will be used by the Go client.
r.HTTPRequest.URL.RawPath = r.HTTPRequest.URL.Path
for i := 0; i < v.NumField(); i++ {
m := v.Field(i)
if n := v.Type().Field(i).Name; n[0:1] == strings.ToLower(n[0:1]) {
continue
}
if m.IsValid() {
field := v.Type().Field(i)
name := field.Tag.Get("locationName")
if name == "" {
name = field.Name
}
if kind := m.Kind(); kind == reflect.Ptr {
m = m.Elem()
} else if kind == reflect.Interface {
if !m.Elem().IsValid() {
continue
}
}
if !m.IsValid() {
continue
}
if field.Tag.Get("ignore") != "" {
continue
}
// Support the ability to customize values to be marshaled as a
// blob even though they were modeled as a string. Required for S3
// API operations like SSECustomerKey is modeled as string but
// required to be base64 encoded in request.
if field.Tag.Get("marshal-as") == "blob" {
m = m.Convert(byteSliceType)
}
var err error
switch field.Tag.Get("location") {
case "headers": // header maps
err = buildHeaderMap(&r.HTTPRequest.Header, m, field.Tag)
case "header":
err = buildHeader(&r.HTTPRequest.Header, m, name, field.Tag)
case "uri":
err = buildURI(r.HTTPRequest.URL, m, name, field.Tag)
case "querystring":
err = buildQueryString(query, m, name, field.Tag)
default:
if buildGETQuery {
err = buildQueryString(query, m, name, field.Tag)
}
}
r.Error = err
}
if r.Error != nil {
return
}
}
r.HTTPRequest.URL.RawQuery = query.Encode()
if !aws.BoolValue(r.Config.DisableRestProtocolURICleaning) {
cleanPath(r.HTTPRequest.URL)
}
}
func buildBody(r *request.Request, v reflect.Value) {
if field, ok := v.Type().FieldByName("_"); ok {
if payloadName := field.Tag.Get("payload"); payloadName != "" {
pfield, _ := v.Type().FieldByName(payloadName)
if ptag := pfield.Tag.Get("type"); ptag != "" && ptag != "structure" {
payload := reflect.Indirect(v.FieldByName(payloadName))
if payload.IsValid() && payload.Interface() != nil {
switch reader := payload.Interface().(type) {
case io.ReadSeeker:
r.SetReaderBody(reader)
case []byte:
r.SetBufferBody(reader)
case string:
r.SetStringBody(reader)
default:
r.Error = awserr.New(request.ErrCodeSerialization,
"failed to encode REST request",
fmt.Errorf("unknown payload type %s", payload.Type()))
}
}
}
}
}
}
func buildHeader(header *http.Header, v reflect.Value, name string, tag reflect.StructTag) error {
str, err := convertType(v, tag)
if err == errValueNotSet {
return nil
} else if err != nil {
return awserr.New(request.ErrCodeSerialization, "failed to encode REST request", err)
}
name = strings.TrimSpace(name)
str = strings.TrimSpace(str)
header.Add(name, str)
return nil
}
func buildHeaderMap(header *http.Header, v reflect.Value, tag reflect.StructTag) error {
prefix := tag.Get("locationName")
for _, key := range v.MapKeys() {
str, err := convertType(v.MapIndex(key), tag)
if err == errValueNotSet {
continue
} else if err != nil {
return awserr.New(request.ErrCodeSerialization, "failed to encode REST request", err)
}
keyStr := strings.TrimSpace(key.String())
str = strings.TrimSpace(str)
header.Add(prefix+keyStr, str)
}
return nil
}
func buildURI(u *url.URL, v reflect.Value, name string, tag reflect.StructTag) error {
value, err := convertType(v, tag)
if err == errValueNotSet {
return nil
} else if err != nil {
return awserr.New(request.ErrCodeSerialization, "failed to encode REST request", err)
}
u.Path = strings.Replace(u.Path, "{"+name+"}", value, -1)
u.Path = strings.Replace(u.Path, "{"+name+"+}", value, -1)
u.RawPath = strings.Replace(u.RawPath, "{"+name+"}", EscapePath(value, true), -1)
u.RawPath = strings.Replace(u.RawPath, "{"+name+"+}", EscapePath(value, false), -1)
return nil
}
func buildQueryString(query url.Values, v reflect.Value, name string, tag reflect.StructTag) error {
switch value := v.Interface().(type) {
case []*string:
for _, item := range value {
query.Add(name, *item)
}
case map[string]*string:
for key, item := range value {
query.Add(key, *item)
}
case map[string][]*string:
for key, items := range value {
for _, item := range items {
query.Add(key, *item)
}
}
default:
str, err := convertType(v, tag)
if err == errValueNotSet {
return nil
} else if err != nil {
return awserr.New(request.ErrCodeSerialization, "failed to encode REST request", err)
}
query.Set(name, str)
}
return nil
}
func cleanPath(u *url.URL) {
hasSlash := strings.HasSuffix(u.Path, "/")
// clean up path, removing duplicate `/`
u.Path = path.Clean(u.Path)
u.RawPath = path.Clean(u.RawPath)
if hasSlash && !strings.HasSuffix(u.Path, "/") {
u.Path += "/"
u.RawPath += "/"
}
}
// EscapePath escapes part of a URL path in Amazon style
func EscapePath(path string, encodeSep bool) string {
var buf bytes.Buffer
for i := 0; i < len(path); i++ {
c := path[i]
if noEscape[c] || (c == '/' && !encodeSep) {
buf.WriteByte(c)
} else {
fmt.Fprintf(&buf, "%%%02X", c)
}
}
return buf.String()
}
func convertType(v reflect.Value, tag reflect.StructTag) (str string, err error) {
v = reflect.Indirect(v)
if !v.IsValid() {
return "", errValueNotSet
}
switch value := v.Interface().(type) {
case string:
str = value
case []byte:
str = base64.StdEncoding.EncodeToString(value)
case bool:
str = strconv.FormatBool(value)
case int64:
str = strconv.FormatInt(value, 10)
case float64:
str = strconv.FormatFloat(value, 'f', -1, 64)
case time.Time:
format := tag.Get("timestampFormat")
if len(format) == 0 {
format = protocol.RFC822TimeFormatName
if tag.Get("location") == "querystring" {
format = protocol.ISO8601TimeFormatName
}
}
str = protocol.FormatTime(format, value)
case aws.JSONValue:
if len(value) == 0 {
return "", errValueNotSet
}
escaping := protocol.NoEscape
if tag.Get("location") == "header" {
escaping = protocol.Base64Escape
}
str, err = protocol.EncodeJSONValue(value, escaping)
if err != nil {
return "", fmt.Errorf("unable to encode JSONValue, %v", err)
}
default:
err := fmt.Errorf("unsupported value for param %v (%s)", v.Interface(), v.Type())
return "", err
}
return str, nil
}
| 311 |
session-manager-plugin | aws | Go | package rest
import (
"net/http"
"net/url"
"testing"
"github.com/aws/aws-sdk-go/aws"
"github.com/aws/aws-sdk-go/aws/request"
)
func TestCleanPath(t *testing.T) {
uri := &url.URL{
Path: "//foo//bar",
Scheme: "https",
Host: "host",
}
cleanPath(uri)
expected := "https://host/foo/bar"
if a, e := uri.String(), expected; a != e {
t.Errorf("expect %q URI, got %q", e, a)
}
}
func TestMarshalPath(t *testing.T) {
in := struct {
Bucket *string `location:"uri" locationName:"bucket"`
Key *string `location:"uri" locationName:"key"`
}{
Bucket: aws.String("mybucket"),
Key: aws.String("my/cool+thing space/object世界"),
}
expectURL := `/mybucket/my/cool+thing space/object世界`
expectEscapedURL := `/mybucket/my/cool%2Bthing%20space/object%E4%B8%96%E7%95%8C`
req := &request.Request{
HTTPRequest: &http.Request{
URL: &url.URL{Scheme: "https", Host: "example.com", Path: "/{bucket}/{key+}"},
},
Params: &in,
}
Build(req)
if req.Error != nil {
t.Fatalf("unexpected error, %v", req.Error)
}
if a, e := req.HTTPRequest.URL.Path, expectURL; a != e {
t.Errorf("expect %q URI, got %q", e, a)
}
if a, e := req.HTTPRequest.URL.RawPath, expectEscapedURL; a != e {
t.Errorf("expect %q escaped URI, got %q", e, a)
}
if a, e := req.HTTPRequest.URL.EscapedPath(), expectEscapedURL; a != e {
t.Errorf("expect %q escaped URI, got %q", e, a)
}
}
| 64 |
session-manager-plugin | aws | Go | package rest
import "reflect"
// PayloadMember returns the payload field member of i if there is one, or nil.
func PayloadMember(i interface{}) interface{} {
if i == nil {
return nil
}
v := reflect.ValueOf(i).Elem()
if !v.IsValid() {
return nil
}
if field, ok := v.Type().FieldByName("_"); ok {
if payloadName := field.Tag.Get("payload"); payloadName != "" {
field, _ := v.Type().FieldByName(payloadName)
if field.Tag.Get("type") != "structure" {
return nil
}
payload := v.FieldByName(payloadName)
if payload.IsValid() || (payload.Kind() == reflect.Ptr && !payload.IsNil()) {
return payload.Interface()
}
}
}
return nil
}
// PayloadType returns the type of a payload field member of i if there is one, or "".
func PayloadType(i interface{}) string {
v := reflect.Indirect(reflect.ValueOf(i))
if !v.IsValid() {
return ""
}
if field, ok := v.Type().FieldByName("_"); ok {
if payloadName := field.Tag.Get("payload"); payloadName != "" {
if member, ok := v.Type().FieldByName(payloadName); ok {
return member.Tag.Get("type")
}
}
}
return ""
}
| 46 |
session-manager-plugin | aws | Go | // +build go1.7
package rest_test
import (
"bytes"
"io/ioutil"
"net/http"
"reflect"
"testing"
"github.com/aws/aws-sdk-go/aws"
"github.com/aws/aws-sdk-go/aws/client"
"github.com/aws/aws-sdk-go/aws/client/metadata"
"github.com/aws/aws-sdk-go/aws/request"
"github.com/aws/aws-sdk-go/aws/signer/v4"
"github.com/aws/aws-sdk-go/awstesting/unit"
"github.com/aws/aws-sdk-go/private/protocol/rest"
)
func TestUnsetHeaders(t *testing.T) {
cfg := &aws.Config{Region: aws.String("us-west-2")}
c := unit.Session.ClientConfig("testService", cfg)
svc := client.New(
*cfg,
metadata.ClientInfo{
ServiceName: "testService",
SigningName: c.SigningName,
SigningRegion: c.SigningRegion,
Endpoint: c.Endpoint,
APIVersion: "",
},
c.Handlers,
)
// Handlers
svc.Handlers.Sign.PushBackNamed(v4.SignRequestHandler)
svc.Handlers.Build.PushBackNamed(rest.BuildHandler)
svc.Handlers.Unmarshal.PushBackNamed(rest.UnmarshalHandler)
svc.Handlers.UnmarshalMeta.PushBackNamed(rest.UnmarshalMetaHandler)
op := &request.Operation{
Name: "test-operation",
HTTPPath: "/",
}
input := &struct {
Foo aws.JSONValue `location:"header" locationName:"x-amz-foo" type:"jsonvalue"`
Bar aws.JSONValue `location:"header" locationName:"x-amz-bar" type:"jsonvalue"`
}{}
output := &struct {
Foo aws.JSONValue `location:"header" locationName:"x-amz-foo" type:"jsonvalue"`
Bar aws.JSONValue `location:"header" locationName:"x-amz-bar" type:"jsonvalue"`
}{}
req := svc.NewRequest(op, input, output)
req.HTTPResponse = &http.Response{StatusCode: 200, Body: ioutil.NopCloser(bytes.NewBuffer(nil)), Header: http.Header{}}
req.HTTPResponse.Header.Set("X-Amz-Foo", "e30=")
// unmarshal response
rest.UnmarshalMeta(req)
rest.Unmarshal(req)
if req.Error != nil {
t.Fatal(req.Error)
}
}
func TestNormalizedHeaders(t *testing.T) {
cases := map[string]struct {
inputValues map[string]*string
outputValues http.Header
expectedInputHeaders http.Header
expectedOutput map[string]*string
normalize bool
}{
"non-normalized headers": {
inputValues: map[string]*string{
"baz": aws.String("bazValue"),
"BAR": aws.String("barValue"),
},
expectedInputHeaders: http.Header{
"X-Amz-Meta-Baz": []string{"bazValue"},
"X-Amz-Meta-Bar": []string{"barValue"},
},
outputValues: http.Header{
"X-Amz-Meta-Baz": []string{"bazValue"},
"X-Amz-Meta-Bar": []string{"barValue"},
},
expectedOutput: map[string]*string{
"Baz": aws.String("bazValue"),
"Bar": aws.String("barValue"),
},
},
"normalized headers": {
inputValues: map[string]*string{
"baz": aws.String("bazValue"),
"BAR": aws.String("barValue"),
},
expectedInputHeaders: http.Header{
"X-Amz-Meta-Baz": []string{"bazValue"},
"X-Amz-Meta-Bar": []string{"barValue"},
},
outputValues: http.Header{
"X-Amz-Meta-Baz": []string{"bazValue"},
"X-Amz-Meta-Bar": []string{"barValue"},
},
expectedOutput: map[string]*string{
"baz": aws.String("bazValue"),
"bar": aws.String("barValue"),
},
normalize: true,
},
}
for name, tt := range cases {
t.Run(name, func(t *testing.T) {
cfg := &aws.Config{Region: aws.String("us-west-2"), LowerCaseHeaderMaps: &tt.normalize}
c := unit.Session.ClientConfig("testService", cfg)
svc := client.New(
*cfg,
metadata.ClientInfo{
ServiceName: "testService",
SigningName: c.SigningName,
SigningRegion: c.SigningRegion,
Endpoint: c.Endpoint,
APIVersion: "",
},
c.Handlers,
)
// Handlers
op := &request.Operation{
Name: "test-operation",
HTTPPath: "/",
}
input := &struct {
Foo map[string]*string `location:"headers" locationName:"x-amz-meta-" type:"map"`
}{
Foo: tt.inputValues,
}
output := &struct {
Foo map[string]*string `location:"headers" locationName:"x-amz-meta-" type:"map"`
}{}
req := svc.NewRequest(op, input, output)
req.HTTPResponse = &http.Response{
StatusCode: 200,
Body: ioutil.NopCloser(bytes.NewBuffer(nil)),
Header: tt.outputValues,
}
// Build Request
rest.Build(req)
if req.Error != nil {
t.Fatal(req.Error)
}
if e, a := tt.expectedInputHeaders, req.HTTPRequest.Header; !reflect.DeepEqual(e, a) {
t.Errorf("expected %v, but got %v", e, a)
}
// unmarshal response
rest.UnmarshalMeta(req)
rest.Unmarshal(req)
if req.Error != nil {
t.Fatal(req.Error)
}
if e, a := tt.expectedOutput, output.Foo; !reflect.DeepEqual(e, a) {
t.Errorf("expected %v, but got %v", e, a)
}
})
}
}
| 177 |
session-manager-plugin | aws | Go | package rest
import (
"bytes"
"encoding/base64"
"fmt"
"io"
"io/ioutil"
"net/http"
"reflect"
"strconv"
"strings"
"time"
"github.com/aws/aws-sdk-go/aws"
"github.com/aws/aws-sdk-go/aws/awserr"
"github.com/aws/aws-sdk-go/aws/request"
awsStrings "github.com/aws/aws-sdk-go/internal/strings"
"github.com/aws/aws-sdk-go/private/protocol"
)
// UnmarshalHandler is a named request handler for unmarshaling rest protocol requests
var UnmarshalHandler = request.NamedHandler{Name: "awssdk.rest.Unmarshal", Fn: Unmarshal}
// UnmarshalMetaHandler is a named request handler for unmarshaling rest protocol request metadata
var UnmarshalMetaHandler = request.NamedHandler{Name: "awssdk.rest.UnmarshalMeta", Fn: UnmarshalMeta}
// Unmarshal unmarshals the REST component of a response in a REST service.
func Unmarshal(r *request.Request) {
if r.DataFilled() {
v := reflect.Indirect(reflect.ValueOf(r.Data))
if err := unmarshalBody(r, v); err != nil {
r.Error = err
}
}
}
// UnmarshalMeta unmarshals the REST metadata of a response in a REST service
func UnmarshalMeta(r *request.Request) {
r.RequestID = r.HTTPResponse.Header.Get("X-Amzn-Requestid")
if r.RequestID == "" {
// Alternative version of request id in the header
r.RequestID = r.HTTPResponse.Header.Get("X-Amz-Request-Id")
}
if r.DataFilled() {
if err := UnmarshalResponse(r.HTTPResponse, r.Data, aws.BoolValue(r.Config.LowerCaseHeaderMaps)); err != nil {
r.Error = err
}
}
}
// UnmarshalResponse attempts to unmarshal the REST response headers to
// the data type passed in. The type must be a pointer. An error is returned
// with any error unmarshaling the response into the target datatype.
func UnmarshalResponse(resp *http.Response, data interface{}, lowerCaseHeaderMaps bool) error {
v := reflect.Indirect(reflect.ValueOf(data))
return unmarshalLocationElements(resp, v, lowerCaseHeaderMaps)
}
func unmarshalBody(r *request.Request, v reflect.Value) error {
if field, ok := v.Type().FieldByName("_"); ok {
if payloadName := field.Tag.Get("payload"); payloadName != "" {
pfield, _ := v.Type().FieldByName(payloadName)
if ptag := pfield.Tag.Get("type"); ptag != "" && ptag != "structure" {
payload := v.FieldByName(payloadName)
if payload.IsValid() {
switch payload.Interface().(type) {
case []byte:
defer r.HTTPResponse.Body.Close()
b, err := ioutil.ReadAll(r.HTTPResponse.Body)
if err != nil {
return awserr.New(request.ErrCodeSerialization, "failed to decode REST response", err)
}
payload.Set(reflect.ValueOf(b))
case *string:
defer r.HTTPResponse.Body.Close()
b, err := ioutil.ReadAll(r.HTTPResponse.Body)
if err != nil {
return awserr.New(request.ErrCodeSerialization, "failed to decode REST response", err)
}
str := string(b)
payload.Set(reflect.ValueOf(&str))
default:
switch payload.Type().String() {
case "io.ReadCloser":
payload.Set(reflect.ValueOf(r.HTTPResponse.Body))
case "io.ReadSeeker":
b, err := ioutil.ReadAll(r.HTTPResponse.Body)
if err != nil {
return awserr.New(request.ErrCodeSerialization,
"failed to read response body", err)
}
payload.Set(reflect.ValueOf(ioutil.NopCloser(bytes.NewReader(b))))
default:
io.Copy(ioutil.Discard, r.HTTPResponse.Body)
r.HTTPResponse.Body.Close()
return awserr.New(request.ErrCodeSerialization,
"failed to decode REST response",
fmt.Errorf("unknown payload type %s", payload.Type()))
}
}
}
}
}
}
return nil
}
func unmarshalLocationElements(resp *http.Response, v reflect.Value, lowerCaseHeaderMaps bool) error {
for i := 0; i < v.NumField(); i++ {
m, field := v.Field(i), v.Type().Field(i)
if n := field.Name; n[0:1] == strings.ToLower(n[0:1]) {
continue
}
if m.IsValid() {
name := field.Tag.Get("locationName")
if name == "" {
name = field.Name
}
switch field.Tag.Get("location") {
case "statusCode":
unmarshalStatusCode(m, resp.StatusCode)
case "header":
err := unmarshalHeader(m, resp.Header.Get(name), field.Tag)
if err != nil {
return awserr.New(request.ErrCodeSerialization, "failed to decode REST response", err)
}
case "headers":
prefix := field.Tag.Get("locationName")
err := unmarshalHeaderMap(m, resp.Header, prefix, lowerCaseHeaderMaps)
if err != nil {
awserr.New(request.ErrCodeSerialization, "failed to decode REST response", err)
}
}
}
}
return nil
}
func unmarshalStatusCode(v reflect.Value, statusCode int) {
if !v.IsValid() {
return
}
switch v.Interface().(type) {
case *int64:
s := int64(statusCode)
v.Set(reflect.ValueOf(&s))
}
}
func unmarshalHeaderMap(r reflect.Value, headers http.Header, prefix string, normalize bool) error {
if len(headers) == 0 {
return nil
}
switch r.Interface().(type) {
case map[string]*string: // we only support string map value types
out := map[string]*string{}
for k, v := range headers {
if awsStrings.HasPrefixFold(k, prefix) {
if normalize == true {
k = strings.ToLower(k)
} else {
k = http.CanonicalHeaderKey(k)
}
out[k[len(prefix):]] = &v[0]
}
}
if len(out) != 0 {
r.Set(reflect.ValueOf(out))
}
}
return nil
}
func unmarshalHeader(v reflect.Value, header string, tag reflect.StructTag) error {
switch tag.Get("type") {
case "jsonvalue":
if len(header) == 0 {
return nil
}
case "blob":
if len(header) == 0 {
return nil
}
default:
if !v.IsValid() || (header == "" && v.Elem().Kind() != reflect.String) {
return nil
}
}
switch v.Interface().(type) {
case *string:
v.Set(reflect.ValueOf(&header))
case []byte:
b, err := base64.StdEncoding.DecodeString(header)
if err != nil {
return err
}
v.Set(reflect.ValueOf(b))
case *bool:
b, err := strconv.ParseBool(header)
if err != nil {
return err
}
v.Set(reflect.ValueOf(&b))
case *int64:
i, err := strconv.ParseInt(header, 10, 64)
if err != nil {
return err
}
v.Set(reflect.ValueOf(&i))
case *float64:
f, err := strconv.ParseFloat(header, 64)
if err != nil {
return err
}
v.Set(reflect.ValueOf(&f))
case *time.Time:
format := tag.Get("timestampFormat")
if len(format) == 0 {
format = protocol.RFC822TimeFormatName
}
t, err := protocol.ParseTime(format, header)
if err != nil {
return err
}
v.Set(reflect.ValueOf(&t))
case aws.JSONValue:
escaping := protocol.NoEscape
if tag.Get("location") == "header" {
escaping = protocol.Base64Escape
}
m, err := protocol.DecodeJSONValue(header, escaping)
if err != nil {
return err
}
v.Set(reflect.ValueOf(m))
default:
err := fmt.Errorf("Unsupported value for param %v (%s)", v.Interface(), v.Type())
return err
}
return nil
}
| 258 |
session-manager-plugin | aws | Go | // +build bench
package restjson_test
import (
"net/http"
"net/http/httptest"
"os"
"testing"
"github.com/aws/aws-sdk-go/aws"
"github.com/aws/aws-sdk-go/aws/credentials"
"github.com/aws/aws-sdk-go/aws/endpoints"
"github.com/aws/aws-sdk-go/aws/request"
"github.com/aws/aws-sdk-go/aws/session"
"github.com/aws/aws-sdk-go/private/protocol/restjson"
"github.com/aws/aws-sdk-go/service/elastictranscoder"
)
var (
elastictranscoderSvc *elastictranscoder.ElasticTranscoder
)
func TestMain(m *testing.M) {
server := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
w.WriteHeader(http.StatusOK)
}))
sess := session.Must(session.NewSession(&aws.Config{
Credentials: credentials.NewStaticCredentials("Key", "Secret", "Token"),
Endpoint: aws.String(server.URL),
S3ForcePathStyle: aws.Bool(true),
DisableSSL: aws.Bool(true),
Region: aws.String(endpoints.UsWest2RegionID),
}))
elastictranscoderSvc = elastictranscoder.New(sess)
c := m.Run()
server.Close()
os.Exit(c)
}
func BenchmarkRESTJSONBuild_Complex_ETCCreateJob(b *testing.B) {
params := elastictranscoderCreateJobInput()
benchRESTJSONBuild(b, func() *request.Request {
req, _ := elastictranscoderSvc.CreateJobRequest(params)
return req
})
}
func BenchmarkRESTJSONBuild_Simple_ETCListJobsByPipeline(b *testing.B) {
params := elastictranscoderListJobsByPipeline()
benchRESTJSONBuild(b, func() *request.Request {
req, _ := elastictranscoderSvc.ListJobsByPipelineRequest(params)
return req
})
}
func BenchmarkRESTJSONRequest_Complex_CFCreateJob(b *testing.B) {
benchRESTJSONRequest(b, func() *request.Request {
req, _ := elastictranscoderSvc.CreateJobRequest(elastictranscoderCreateJobInput())
return req
})
}
func BenchmarkRESTJSONRequest_Simple_ETCListJobsByPipeline(b *testing.B) {
benchRESTJSONRequest(b, func() *request.Request {
req, _ := elastictranscoderSvc.ListJobsByPipelineRequest(elastictranscoderListJobsByPipeline())
return req
})
}
func benchRESTJSONBuild(b *testing.B, reqFn func() *request.Request) {
b.ResetTimer()
for i := 0; i < b.N; i++ {
req := reqFn()
restjson.Build(req)
if req.Error != nil {
b.Fatal("Unexpected error", req.Error)
}
}
}
func benchRESTJSONRequest(b *testing.B, reqFn func() *request.Request) {
b.ResetTimer()
for i := 0; i < b.N; i++ {
err := reqFn().Send()
if err != nil {
b.Fatal("Unexpected error", err)
}
}
}
func elastictranscoderListJobsByPipeline() *elastictranscoder.ListJobsByPipelineInput {
return &elastictranscoder.ListJobsByPipelineInput{
PipelineId: aws.String("Id"), // Required
Ascending: aws.String("Ascending"),
PageToken: aws.String("Id"),
}
}
func elastictranscoderCreateJobInput() *elastictranscoder.CreateJobInput {
return &elastictranscoder.CreateJobInput{
Input: &elastictranscoder.JobInput{ // Required
AspectRatio: aws.String("AspectRatio"),
Container: aws.String("JobContainer"),
DetectedProperties: &elastictranscoder.DetectedProperties{
DurationMillis: aws.Int64(1),
FileSize: aws.Int64(1),
FrameRate: aws.String("FloatString"),
Height: aws.Int64(1),
Width: aws.Int64(1),
},
Encryption: &elastictranscoder.Encryption{
InitializationVector: aws.String("ZeroTo255String"),
Key: aws.String("Base64EncodedString"),
KeyMd5: aws.String("Base64EncodedString"),
Mode: aws.String("EncryptionMode"),
},
FrameRate: aws.String("FrameRate"),
Interlaced: aws.String("Interlaced"),
Key: aws.String("Key"),
Resolution: aws.String("Resolution"),
},
PipelineId: aws.String("Id"), // Required
Output: &elastictranscoder.CreateJobOutput{
AlbumArt: &elastictranscoder.JobAlbumArt{
Artwork: []*elastictranscoder.Artwork{
{ // Required
AlbumArtFormat: aws.String("JpgOrPng"),
Encryption: &elastictranscoder.Encryption{
InitializationVector: aws.String("ZeroTo255String"),
Key: aws.String("Base64EncodedString"),
KeyMd5: aws.String("Base64EncodedString"),
Mode: aws.String("EncryptionMode"),
},
InputKey: aws.String("WatermarkKey"),
MaxHeight: aws.String("DigitsOrAuto"),
MaxWidth: aws.String("DigitsOrAuto"),
PaddingPolicy: aws.String("PaddingPolicy"),
SizingPolicy: aws.String("SizingPolicy"),
},
// More values...
},
MergePolicy: aws.String("MergePolicy"),
},
Captions: &elastictranscoder.Captions{
CaptionFormats: []*elastictranscoder.CaptionFormat{
{ // Required
Encryption: &elastictranscoder.Encryption{
InitializationVector: aws.String("ZeroTo255String"),
Key: aws.String("Base64EncodedString"),
KeyMd5: aws.String("Base64EncodedString"),
Mode: aws.String("EncryptionMode"),
},
Format: aws.String("CaptionFormatFormat"),
Pattern: aws.String("CaptionFormatPattern"),
},
// More values...
},
CaptionSources: []*elastictranscoder.CaptionSource{
{ // Required
Encryption: &elastictranscoder.Encryption{
InitializationVector: aws.String("ZeroTo255String"),
Key: aws.String("Base64EncodedString"),
KeyMd5: aws.String("Base64EncodedString"),
Mode: aws.String("EncryptionMode"),
},
Key: aws.String("Key"),
Label: aws.String("Name"),
Language: aws.String("Key"),
TimeOffset: aws.String("TimeOffset"),
},
// More values...
},
MergePolicy: aws.String("CaptionMergePolicy"),
},
Composition: []*elastictranscoder.Clip{
{ // Required
TimeSpan: &elastictranscoder.TimeSpan{
Duration: aws.String("Time"),
StartTime: aws.String("Time"),
},
},
// More values...
},
Encryption: &elastictranscoder.Encryption{
InitializationVector: aws.String("ZeroTo255String"),
Key: aws.String("Base64EncodedString"),
KeyMd5: aws.String("Base64EncodedString"),
Mode: aws.String("EncryptionMode"),
},
Key: aws.String("Key"),
PresetId: aws.String("Id"),
Rotate: aws.String("Rotate"),
SegmentDuration: aws.String("FloatString"),
ThumbnailEncryption: &elastictranscoder.Encryption{
InitializationVector: aws.String("ZeroTo255String"),
Key: aws.String("Base64EncodedString"),
KeyMd5: aws.String("Base64EncodedString"),
Mode: aws.String("EncryptionMode"),
},
ThumbnailPattern: aws.String("ThumbnailPattern"),
Watermarks: []*elastictranscoder.JobWatermark{
{ // Required
Encryption: &elastictranscoder.Encryption{
InitializationVector: aws.String("ZeroTo255String"),
Key: aws.String("Base64EncodedString"),
KeyMd5: aws.String("Base64EncodedString"),
Mode: aws.String("EncryptionMode"),
},
InputKey: aws.String("WatermarkKey"),
PresetWatermarkId: aws.String("PresetWatermarkId"),
},
// More values...
},
},
OutputKeyPrefix: aws.String("Key"),
Outputs: []*elastictranscoder.CreateJobOutput{
{ // Required
AlbumArt: &elastictranscoder.JobAlbumArt{
Artwork: []*elastictranscoder.Artwork{
{ // Required
AlbumArtFormat: aws.String("JpgOrPng"),
Encryption: &elastictranscoder.Encryption{
InitializationVector: aws.String("ZeroTo255String"),
Key: aws.String("Base64EncodedString"),
KeyMd5: aws.String("Base64EncodedString"),
Mode: aws.String("EncryptionMode"),
},
InputKey: aws.String("WatermarkKey"),
MaxHeight: aws.String("DigitsOrAuto"),
MaxWidth: aws.String("DigitsOrAuto"),
PaddingPolicy: aws.String("PaddingPolicy"),
SizingPolicy: aws.String("SizingPolicy"),
},
// More values...
},
MergePolicy: aws.String("MergePolicy"),
},
Captions: &elastictranscoder.Captions{
CaptionFormats: []*elastictranscoder.CaptionFormat{
{ // Required
Encryption: &elastictranscoder.Encryption{
InitializationVector: aws.String("ZeroTo255String"),
Key: aws.String("Base64EncodedString"),
KeyMd5: aws.String("Base64EncodedString"),
Mode: aws.String("EncryptionMode"),
},
Format: aws.String("CaptionFormatFormat"),
Pattern: aws.String("CaptionFormatPattern"),
},
// More values...
},
CaptionSources: []*elastictranscoder.CaptionSource{
{ // Required
Encryption: &elastictranscoder.Encryption{
InitializationVector: aws.String("ZeroTo255String"),
Key: aws.String("Base64EncodedString"),
KeyMd5: aws.String("Base64EncodedString"),
Mode: aws.String("EncryptionMode"),
},
Key: aws.String("Key"),
Label: aws.String("Name"),
Language: aws.String("Key"),
TimeOffset: aws.String("TimeOffset"),
},
// More values...
},
MergePolicy: aws.String("CaptionMergePolicy"),
},
Composition: []*elastictranscoder.Clip{
{ // Required
TimeSpan: &elastictranscoder.TimeSpan{
Duration: aws.String("Time"),
StartTime: aws.String("Time"),
},
},
// More values...
},
Encryption: &elastictranscoder.Encryption{
InitializationVector: aws.String("ZeroTo255String"),
Key: aws.String("Base64EncodedString"),
KeyMd5: aws.String("Base64EncodedString"),
Mode: aws.String("EncryptionMode"),
},
Key: aws.String("Key"),
PresetId: aws.String("Id"),
Rotate: aws.String("Rotate"),
SegmentDuration: aws.String("FloatString"),
ThumbnailEncryption: &elastictranscoder.Encryption{
InitializationVector: aws.String("ZeroTo255String"),
Key: aws.String("Base64EncodedString"),
KeyMd5: aws.String("Base64EncodedString"),
Mode: aws.String("EncryptionMode"),
},
ThumbnailPattern: aws.String("ThumbnailPattern"),
Watermarks: []*elastictranscoder.JobWatermark{
{ // Required
Encryption: &elastictranscoder.Encryption{
InitializationVector: aws.String("ZeroTo255String"),
Key: aws.String("Base64EncodedString"),
KeyMd5: aws.String("Base64EncodedString"),
Mode: aws.String("EncryptionMode"),
},
InputKey: aws.String("WatermarkKey"),
PresetWatermarkId: aws.String("PresetWatermarkId"),
},
// More values...
},
},
// More values...
},
Playlists: []*elastictranscoder.CreateJobPlaylist{
{ // Required
Format: aws.String("PlaylistFormat"),
HlsContentProtection: &elastictranscoder.HlsContentProtection{
InitializationVector: aws.String("ZeroTo255String"),
Key: aws.String("Base64EncodedString"),
KeyMd5: aws.String("Base64EncodedString"),
KeyStoragePolicy: aws.String("KeyStoragePolicy"),
LicenseAcquisitionUrl: aws.String("ZeroTo512String"),
Method: aws.String("HlsContentProtectionMethod"),
},
Name: aws.String("Filename"),
OutputKeys: []*string{
aws.String("Key"), // Required
// More values...
},
PlayReadyDrm: &elastictranscoder.PlayReadyDrm{
Format: aws.String("PlayReadyDrmFormatString"),
InitializationVector: aws.String("ZeroTo255String"),
Key: aws.String("NonEmptyBase64EncodedString"),
KeyId: aws.String("KeyIdGuid"),
KeyMd5: aws.String("NonEmptyBase64EncodedString"),
LicenseAcquisitionUrl: aws.String("OneTo512String"),
},
},
// More values...
},
UserMetadata: map[string]*string{
"Key": aws.String("String"), // Required
// More values...
},
}
}
| 351 |
session-manager-plugin | aws | Go | // Code generated by models/protocol_tests/generate.go. DO NOT EDIT.
package restjson_test
import (
"bytes"
"encoding/json"
"encoding/xml"
"fmt"
"io"
"io/ioutil"
"net/http"
"net/url"
"reflect"
"testing"
"time"
"github.com/aws/aws-sdk-go/aws"
"github.com/aws/aws-sdk-go/aws/client"
"github.com/aws/aws-sdk-go/aws/client/metadata"
"github.com/aws/aws-sdk-go/aws/request"
"github.com/aws/aws-sdk-go/aws/signer/v4"
"github.com/aws/aws-sdk-go/awstesting"
"github.com/aws/aws-sdk-go/awstesting/unit"
"github.com/aws/aws-sdk-go/private/protocol"
"github.com/aws/aws-sdk-go/private/protocol/restjson"
"github.com/aws/aws-sdk-go/private/protocol/xml/xmlutil"
"github.com/aws/aws-sdk-go/private/util"
)
var _ bytes.Buffer // always import bytes
var _ http.Request
var _ json.Marshaler
var _ time.Time
var _ xmlutil.XMLNode
var _ xml.Attr
var _ = ioutil.Discard
var _ = util.Trim("")
var _ = url.Values{}
var _ = io.EOF
var _ = aws.String
var _ = fmt.Println
var _ = reflect.Value{}
func init() {
protocol.RandReader = &awstesting.ZeroReader{}
}
// InputService1ProtocolTest provides the API operation methods for making requests to
// . See this package's package overview docs
// for details on the service.
//
// InputService1ProtocolTest methods are safe to use concurrently. It is not safe to
// modify mutate any of the struct's properties though.
type InputService1ProtocolTest struct {
*client.Client
}
// New creates a new instance of the InputService1ProtocolTest 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 InputService1ProtocolTest client from just a session.
// svc := inputservice1protocoltest.New(mySession)
//
// // Create a InputService1ProtocolTest client with additional configuration
// svc := inputservice1protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2"))
func NewInputService1ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *InputService1ProtocolTest {
c := p.ClientConfig("inputservice1protocoltest", cfgs...)
return newInputService1ProtocolTestClient(*c.Config, c.Handlers, c.PartitionID, c.Endpoint, c.SigningRegion, c.SigningName)
}
// newClient creates, initializes and returns a new service client instance.
func newInputService1ProtocolTestClient(cfg aws.Config, handlers request.Handlers, partitionID, endpoint, signingRegion, signingName string) *InputService1ProtocolTest {
svc := &InputService1ProtocolTest{
Client: client.New(
cfg,
metadata.ClientInfo{
ServiceName: "InputService1ProtocolTest",
ServiceID: "InputService1ProtocolTest",
SigningName: signingName,
SigningRegion: signingRegion,
PartitionID: partitionID,
Endpoint: endpoint,
APIVersion: "2014-01-01",
},
handlers,
),
}
// Handlers
svc.Handlers.Sign.PushBackNamed(v4.SignRequestHandler)
svc.Handlers.Build.PushBackNamed(restjson.BuildHandler)
svc.Handlers.Unmarshal.PushBackNamed(restjson.UnmarshalHandler)
svc.Handlers.UnmarshalMeta.PushBackNamed(restjson.UnmarshalMetaHandler)
svc.Handlers.UnmarshalError.PushBackNamed(restjson.UnmarshalErrorHandler)
return svc
}
// newRequest creates a new request for a InputService1ProtocolTest operation and runs any
// custom request initialization.
func (c *InputService1ProtocolTest) newRequest(op *request.Operation, params, data interface{}) *request.Request {
req := c.NewRequest(op, params, data)
return req
}
const opInputService1TestCaseOperation1 = "OperationName"
// InputService1TestCaseOperation1Request generates a "aws/request.Request" representing the
// client's request for the InputService1TestCaseOperation1 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 InputService1TestCaseOperation1 for more information on using the InputService1TestCaseOperation1
// 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 InputService1TestCaseOperation1Request method.
// req, resp := client.InputService1TestCaseOperation1Request(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
func (c *InputService1ProtocolTest) InputService1TestCaseOperation1Request(input *InputService1TestShapeInputService1TestCaseOperation1Input) (req *request.Request, output *InputService1TestShapeInputService1TestCaseOperation1Output) {
op := &request.Operation{
Name: opInputService1TestCaseOperation1,
HTTPMethod: "GET",
HTTPPath: "/2014-01-01/jobs",
}
if input == nil {
input = &InputService1TestShapeInputService1TestCaseOperation1Input{}
}
output = &InputService1TestShapeInputService1TestCaseOperation1Output{}
req = c.newRequest(op, input, output)
req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
return
}
// InputService1TestCaseOperation1 API operation for .
//
// 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 's
// API operation InputService1TestCaseOperation1 for usage and error information.
func (c *InputService1ProtocolTest) InputService1TestCaseOperation1(input *InputService1TestShapeInputService1TestCaseOperation1Input) (*InputService1TestShapeInputService1TestCaseOperation1Output, error) {
req, out := c.InputService1TestCaseOperation1Request(input)
return out, req.Send()
}
// InputService1TestCaseOperation1WithContext is the same as InputService1TestCaseOperation1 with the addition of
// the ability to pass a context and additional request options.
//
// See InputService1TestCaseOperation1 for details on how to use this API operation.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
func (c *InputService1ProtocolTest) InputService1TestCaseOperation1WithContext(ctx aws.Context, input *InputService1TestShapeInputService1TestCaseOperation1Input, opts ...request.Option) (*InputService1TestShapeInputService1TestCaseOperation1Output, error) {
req, out := c.InputService1TestCaseOperation1Request(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
type InputService1TestShapeInputService1TestCaseOperation1Input struct {
_ struct{} `type:"structure"`
}
type InputService1TestShapeInputService1TestCaseOperation1Output struct {
_ struct{} `type:"structure"`
}
// InputService2ProtocolTest provides the API operation methods for making requests to
// . See this package's package overview docs
// for details on the service.
//
// InputService2ProtocolTest methods are safe to use concurrently. It is not safe to
// modify mutate any of the struct's properties though.
type InputService2ProtocolTest struct {
*client.Client
}
// New creates a new instance of the InputService2ProtocolTest 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 InputService2ProtocolTest client from just a session.
// svc := inputservice2protocoltest.New(mySession)
//
// // Create a InputService2ProtocolTest client with additional configuration
// svc := inputservice2protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2"))
func NewInputService2ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *InputService2ProtocolTest {
c := p.ClientConfig("inputservice2protocoltest", cfgs...)
return newInputService2ProtocolTestClient(*c.Config, c.Handlers, c.PartitionID, c.Endpoint, c.SigningRegion, c.SigningName)
}
// newClient creates, initializes and returns a new service client instance.
func newInputService2ProtocolTestClient(cfg aws.Config, handlers request.Handlers, partitionID, endpoint, signingRegion, signingName string) *InputService2ProtocolTest {
svc := &InputService2ProtocolTest{
Client: client.New(
cfg,
metadata.ClientInfo{
ServiceName: "InputService2ProtocolTest",
ServiceID: "InputService2ProtocolTest",
SigningName: signingName,
SigningRegion: signingRegion,
PartitionID: partitionID,
Endpoint: endpoint,
APIVersion: "2014-01-01",
},
handlers,
),
}
// Handlers
svc.Handlers.Sign.PushBackNamed(v4.SignRequestHandler)
svc.Handlers.Build.PushBackNamed(restjson.BuildHandler)
svc.Handlers.Unmarshal.PushBackNamed(restjson.UnmarshalHandler)
svc.Handlers.UnmarshalMeta.PushBackNamed(restjson.UnmarshalMetaHandler)
svc.Handlers.UnmarshalError.PushBackNamed(restjson.UnmarshalErrorHandler)
return svc
}
// newRequest creates a new request for a InputService2ProtocolTest operation and runs any
// custom request initialization.
func (c *InputService2ProtocolTest) newRequest(op *request.Operation, params, data interface{}) *request.Request {
req := c.NewRequest(op, params, data)
return req
}
const opInputService2TestCaseOperation1 = "OperationName"
// InputService2TestCaseOperation1Request generates a "aws/request.Request" representing the
// client's request for the InputService2TestCaseOperation1 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 InputService2TestCaseOperation1 for more information on using the InputService2TestCaseOperation1
// 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 InputService2TestCaseOperation1Request method.
// req, resp := client.InputService2TestCaseOperation1Request(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
func (c *InputService2ProtocolTest) InputService2TestCaseOperation1Request(input *InputService2TestShapeInputService2TestCaseOperation1Input) (req *request.Request, output *InputService2TestShapeInputService2TestCaseOperation1Output) {
op := &request.Operation{
Name: opInputService2TestCaseOperation1,
HTTPMethod: "GET",
HTTPPath: "/2014-01-01/jobsByPipeline/{PipelineId}",
}
if input == nil {
input = &InputService2TestShapeInputService2TestCaseOperation1Input{}
}
output = &InputService2TestShapeInputService2TestCaseOperation1Output{}
req = c.newRequest(op, input, output)
req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
return
}
// InputService2TestCaseOperation1 API operation for .
//
// 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 's
// API operation InputService2TestCaseOperation1 for usage and error information.
func (c *InputService2ProtocolTest) InputService2TestCaseOperation1(input *InputService2TestShapeInputService2TestCaseOperation1Input) (*InputService2TestShapeInputService2TestCaseOperation1Output, error) {
req, out := c.InputService2TestCaseOperation1Request(input)
return out, req.Send()
}
// InputService2TestCaseOperation1WithContext is the same as InputService2TestCaseOperation1 with the addition of
// the ability to pass a context and additional request options.
//
// See InputService2TestCaseOperation1 for details on how to use this API operation.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
func (c *InputService2ProtocolTest) InputService2TestCaseOperation1WithContext(ctx aws.Context, input *InputService2TestShapeInputService2TestCaseOperation1Input, opts ...request.Option) (*InputService2TestShapeInputService2TestCaseOperation1Output, error) {
req, out := c.InputService2TestCaseOperation1Request(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
type InputService2TestShapeInputService2TestCaseOperation1Input struct {
_ struct{} `type:"structure"`
// PipelineId is a required field
PipelineId *string `location:"uri" type:"string" required:"true"`
}
// Validate inspects the fields of the type to determine if they are valid.
func (s *InputService2TestShapeInputService2TestCaseOperation1Input) Validate() error {
invalidParams := request.ErrInvalidParams{Context: "InputService2TestShapeInputService2TestCaseOperation1Input"}
if s.PipelineId == nil {
invalidParams.Add(request.NewErrParamRequired("PipelineId"))
}
if s.PipelineId != nil && len(*s.PipelineId) < 1 {
invalidParams.Add(request.NewErrParamMinLen("PipelineId", 1))
}
if invalidParams.Len() > 0 {
return invalidParams
}
return nil
}
// SetPipelineId sets the PipelineId field's value.
func (s *InputService2TestShapeInputService2TestCaseOperation1Input) SetPipelineId(v string) *InputService2TestShapeInputService2TestCaseOperation1Input {
s.PipelineId = &v
return s
}
type InputService2TestShapeInputService2TestCaseOperation1Output struct {
_ struct{} `type:"structure"`
}
// InputService3ProtocolTest provides the API operation methods for making requests to
// . See this package's package overview docs
// for details on the service.
//
// InputService3ProtocolTest methods are safe to use concurrently. It is not safe to
// modify mutate any of the struct's properties though.
type InputService3ProtocolTest struct {
*client.Client
}
// New creates a new instance of the InputService3ProtocolTest 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 InputService3ProtocolTest client from just a session.
// svc := inputservice3protocoltest.New(mySession)
//
// // Create a InputService3ProtocolTest client with additional configuration
// svc := inputservice3protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2"))
func NewInputService3ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *InputService3ProtocolTest {
c := p.ClientConfig("inputservice3protocoltest", cfgs...)
return newInputService3ProtocolTestClient(*c.Config, c.Handlers, c.PartitionID, c.Endpoint, c.SigningRegion, c.SigningName)
}
// newClient creates, initializes and returns a new service client instance.
func newInputService3ProtocolTestClient(cfg aws.Config, handlers request.Handlers, partitionID, endpoint, signingRegion, signingName string) *InputService3ProtocolTest {
svc := &InputService3ProtocolTest{
Client: client.New(
cfg,
metadata.ClientInfo{
ServiceName: "InputService3ProtocolTest",
ServiceID: "InputService3ProtocolTest",
SigningName: signingName,
SigningRegion: signingRegion,
PartitionID: partitionID,
Endpoint: endpoint,
APIVersion: "2014-01-01",
},
handlers,
),
}
// Handlers
svc.Handlers.Sign.PushBackNamed(v4.SignRequestHandler)
svc.Handlers.Build.PushBackNamed(restjson.BuildHandler)
svc.Handlers.Unmarshal.PushBackNamed(restjson.UnmarshalHandler)
svc.Handlers.UnmarshalMeta.PushBackNamed(restjson.UnmarshalMetaHandler)
svc.Handlers.UnmarshalError.PushBackNamed(restjson.UnmarshalErrorHandler)
return svc
}
// newRequest creates a new request for a InputService3ProtocolTest operation and runs any
// custom request initialization.
func (c *InputService3ProtocolTest) newRequest(op *request.Operation, params, data interface{}) *request.Request {
req := c.NewRequest(op, params, data)
return req
}
const opInputService3TestCaseOperation1 = "OperationName"
// InputService3TestCaseOperation1Request generates a "aws/request.Request" representing the
// client's request for the InputService3TestCaseOperation1 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 InputService3TestCaseOperation1 for more information on using the InputService3TestCaseOperation1
// 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 InputService3TestCaseOperation1Request method.
// req, resp := client.InputService3TestCaseOperation1Request(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
func (c *InputService3ProtocolTest) InputService3TestCaseOperation1Request(input *InputService3TestShapeInputService3TestCaseOperation1Input) (req *request.Request, output *InputService3TestShapeInputService3TestCaseOperation1Output) {
op := &request.Operation{
Name: opInputService3TestCaseOperation1,
HTTPMethod: "GET",
HTTPPath: "/2014-01-01/jobsByPipeline/{PipelineId}",
}
if input == nil {
input = &InputService3TestShapeInputService3TestCaseOperation1Input{}
}
output = &InputService3TestShapeInputService3TestCaseOperation1Output{}
req = c.newRequest(op, input, output)
req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
return
}
// InputService3TestCaseOperation1 API operation for .
//
// 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 's
// API operation InputService3TestCaseOperation1 for usage and error information.
func (c *InputService3ProtocolTest) InputService3TestCaseOperation1(input *InputService3TestShapeInputService3TestCaseOperation1Input) (*InputService3TestShapeInputService3TestCaseOperation1Output, error) {
req, out := c.InputService3TestCaseOperation1Request(input)
return out, req.Send()
}
// InputService3TestCaseOperation1WithContext is the same as InputService3TestCaseOperation1 with the addition of
// the ability to pass a context and additional request options.
//
// See InputService3TestCaseOperation1 for details on how to use this API operation.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
func (c *InputService3ProtocolTest) InputService3TestCaseOperation1WithContext(ctx aws.Context, input *InputService3TestShapeInputService3TestCaseOperation1Input, opts ...request.Option) (*InputService3TestShapeInputService3TestCaseOperation1Output, error) {
req, out := c.InputService3TestCaseOperation1Request(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
type InputService3TestShapeInputService3TestCaseOperation1Input struct {
_ struct{} `type:"structure"`
// Foo is a required field
Foo *string `location:"uri" locationName:"PipelineId" type:"string" required:"true"`
}
// Validate inspects the fields of the type to determine if they are valid.
func (s *InputService3TestShapeInputService3TestCaseOperation1Input) Validate() error {
invalidParams := request.ErrInvalidParams{Context: "InputService3TestShapeInputService3TestCaseOperation1Input"}
if s.Foo == nil {
invalidParams.Add(request.NewErrParamRequired("Foo"))
}
if s.Foo != nil && len(*s.Foo) < 1 {
invalidParams.Add(request.NewErrParamMinLen("Foo", 1))
}
if invalidParams.Len() > 0 {
return invalidParams
}
return nil
}
// SetFoo sets the Foo field's value.
func (s *InputService3TestShapeInputService3TestCaseOperation1Input) SetFoo(v string) *InputService3TestShapeInputService3TestCaseOperation1Input {
s.Foo = &v
return s
}
type InputService3TestShapeInputService3TestCaseOperation1Output struct {
_ struct{} `type:"structure"`
}
// InputService4ProtocolTest provides the API operation methods for making requests to
// . See this package's package overview docs
// for details on the service.
//
// InputService4ProtocolTest methods are safe to use concurrently. It is not safe to
// modify mutate any of the struct's properties though.
type InputService4ProtocolTest struct {
*client.Client
}
// New creates a new instance of the InputService4ProtocolTest 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 InputService4ProtocolTest client from just a session.
// svc := inputservice4protocoltest.New(mySession)
//
// // Create a InputService4ProtocolTest client with additional configuration
// svc := inputservice4protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2"))
func NewInputService4ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *InputService4ProtocolTest {
c := p.ClientConfig("inputservice4protocoltest", cfgs...)
return newInputService4ProtocolTestClient(*c.Config, c.Handlers, c.PartitionID, c.Endpoint, c.SigningRegion, c.SigningName)
}
// newClient creates, initializes and returns a new service client instance.
func newInputService4ProtocolTestClient(cfg aws.Config, handlers request.Handlers, partitionID, endpoint, signingRegion, signingName string) *InputService4ProtocolTest {
svc := &InputService4ProtocolTest{
Client: client.New(
cfg,
metadata.ClientInfo{
ServiceName: "InputService4ProtocolTest",
ServiceID: "InputService4ProtocolTest",
SigningName: signingName,
SigningRegion: signingRegion,
PartitionID: partitionID,
Endpoint: endpoint,
APIVersion: "2014-01-01",
},
handlers,
),
}
// Handlers
svc.Handlers.Sign.PushBackNamed(v4.SignRequestHandler)
svc.Handlers.Build.PushBackNamed(restjson.BuildHandler)
svc.Handlers.Unmarshal.PushBackNamed(restjson.UnmarshalHandler)
svc.Handlers.UnmarshalMeta.PushBackNamed(restjson.UnmarshalMetaHandler)
svc.Handlers.UnmarshalError.PushBackNamed(restjson.UnmarshalErrorHandler)
return svc
}
// newRequest creates a new request for a InputService4ProtocolTest operation and runs any
// custom request initialization.
func (c *InputService4ProtocolTest) newRequest(op *request.Operation, params, data interface{}) *request.Request {
req := c.NewRequest(op, params, data)
return req
}
const opInputService4TestCaseOperation1 = "OperationName"
// InputService4TestCaseOperation1Request generates a "aws/request.Request" representing the
// client's request for the InputService4TestCaseOperation1 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 InputService4TestCaseOperation1 for more information on using the InputService4TestCaseOperation1
// 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 InputService4TestCaseOperation1Request method.
// req, resp := client.InputService4TestCaseOperation1Request(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
func (c *InputService4ProtocolTest) InputService4TestCaseOperation1Request(input *InputService4TestShapeInputService4TestCaseOperation1Input) (req *request.Request, output *InputService4TestShapeInputService4TestCaseOperation1Output) {
op := &request.Operation{
Name: opInputService4TestCaseOperation1,
HTTPMethod: "GET",
HTTPPath: "/path",
}
if input == nil {
input = &InputService4TestShapeInputService4TestCaseOperation1Input{}
}
output = &InputService4TestShapeInputService4TestCaseOperation1Output{}
req = c.newRequest(op, input, output)
req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
return
}
// InputService4TestCaseOperation1 API operation for .
//
// 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 's
// API operation InputService4TestCaseOperation1 for usage and error information.
func (c *InputService4ProtocolTest) InputService4TestCaseOperation1(input *InputService4TestShapeInputService4TestCaseOperation1Input) (*InputService4TestShapeInputService4TestCaseOperation1Output, error) {
req, out := c.InputService4TestCaseOperation1Request(input)
return out, req.Send()
}
// InputService4TestCaseOperation1WithContext is the same as InputService4TestCaseOperation1 with the addition of
// the ability to pass a context and additional request options.
//
// See InputService4TestCaseOperation1 for details on how to use this API operation.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
func (c *InputService4ProtocolTest) InputService4TestCaseOperation1WithContext(ctx aws.Context, input *InputService4TestShapeInputService4TestCaseOperation1Input, opts ...request.Option) (*InputService4TestShapeInputService4TestCaseOperation1Output, error) {
req, out := c.InputService4TestCaseOperation1Request(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
type InputService4TestShapeInputService4TestCaseOperation1Input struct {
_ struct{} `type:"structure"`
Items []*string `location:"querystring" locationName:"item" type:"list"`
}
// SetItems sets the Items field's value.
func (s *InputService4TestShapeInputService4TestCaseOperation1Input) SetItems(v []*string) *InputService4TestShapeInputService4TestCaseOperation1Input {
s.Items = v
return s
}
type InputService4TestShapeInputService4TestCaseOperation1Output struct {
_ struct{} `type:"structure"`
}
// InputService5ProtocolTest provides the API operation methods for making requests to
// . See this package's package overview docs
// for details on the service.
//
// InputService5ProtocolTest methods are safe to use concurrently. It is not safe to
// modify mutate any of the struct's properties though.
type InputService5ProtocolTest struct {
*client.Client
}
// New creates a new instance of the InputService5ProtocolTest 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 InputService5ProtocolTest client from just a session.
// svc := inputservice5protocoltest.New(mySession)
//
// // Create a InputService5ProtocolTest client with additional configuration
// svc := inputservice5protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2"))
func NewInputService5ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *InputService5ProtocolTest {
c := p.ClientConfig("inputservice5protocoltest", cfgs...)
return newInputService5ProtocolTestClient(*c.Config, c.Handlers, c.PartitionID, c.Endpoint, c.SigningRegion, c.SigningName)
}
// newClient creates, initializes and returns a new service client instance.
func newInputService5ProtocolTestClient(cfg aws.Config, handlers request.Handlers, partitionID, endpoint, signingRegion, signingName string) *InputService5ProtocolTest {
svc := &InputService5ProtocolTest{
Client: client.New(
cfg,
metadata.ClientInfo{
ServiceName: "InputService5ProtocolTest",
ServiceID: "InputService5ProtocolTest",
SigningName: signingName,
SigningRegion: signingRegion,
PartitionID: partitionID,
Endpoint: endpoint,
APIVersion: "2014-01-01",
},
handlers,
),
}
// Handlers
svc.Handlers.Sign.PushBackNamed(v4.SignRequestHandler)
svc.Handlers.Build.PushBackNamed(restjson.BuildHandler)
svc.Handlers.Unmarshal.PushBackNamed(restjson.UnmarshalHandler)
svc.Handlers.UnmarshalMeta.PushBackNamed(restjson.UnmarshalMetaHandler)
svc.Handlers.UnmarshalError.PushBackNamed(restjson.UnmarshalErrorHandler)
return svc
}
// newRequest creates a new request for a InputService5ProtocolTest operation and runs any
// custom request initialization.
func (c *InputService5ProtocolTest) newRequest(op *request.Operation, params, data interface{}) *request.Request {
req := c.NewRequest(op, params, data)
return req
}
const opInputService5TestCaseOperation1 = "OperationName"
// InputService5TestCaseOperation1Request generates a "aws/request.Request" representing the
// client's request for the InputService5TestCaseOperation1 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 InputService5TestCaseOperation1 for more information on using the InputService5TestCaseOperation1
// 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 InputService5TestCaseOperation1Request method.
// req, resp := client.InputService5TestCaseOperation1Request(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
func (c *InputService5ProtocolTest) InputService5TestCaseOperation1Request(input *InputService5TestShapeInputService5TestCaseOperation1Input) (req *request.Request, output *InputService5TestShapeInputService5TestCaseOperation1Output) {
op := &request.Operation{
Name: opInputService5TestCaseOperation1,
HTTPMethod: "GET",
HTTPPath: "/2014-01-01/jobsByPipeline/{PipelineId}",
}
if input == nil {
input = &InputService5TestShapeInputService5TestCaseOperation1Input{}
}
output = &InputService5TestShapeInputService5TestCaseOperation1Output{}
req = c.newRequest(op, input, output)
req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
return
}
// InputService5TestCaseOperation1 API operation for .
//
// 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 's
// API operation InputService5TestCaseOperation1 for usage and error information.
func (c *InputService5ProtocolTest) InputService5TestCaseOperation1(input *InputService5TestShapeInputService5TestCaseOperation1Input) (*InputService5TestShapeInputService5TestCaseOperation1Output, error) {
req, out := c.InputService5TestCaseOperation1Request(input)
return out, req.Send()
}
// InputService5TestCaseOperation1WithContext is the same as InputService5TestCaseOperation1 with the addition of
// the ability to pass a context and additional request options.
//
// See InputService5TestCaseOperation1 for details on how to use this API operation.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
func (c *InputService5ProtocolTest) InputService5TestCaseOperation1WithContext(ctx aws.Context, input *InputService5TestShapeInputService5TestCaseOperation1Input, opts ...request.Option) (*InputService5TestShapeInputService5TestCaseOperation1Output, error) {
req, out := c.InputService5TestCaseOperation1Request(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
type InputService5TestShapeInputService5TestCaseOperation1Input struct {
_ struct{} `type:"structure"`
// PipelineId is a required field
PipelineId *string `location:"uri" type:"string" required:"true"`
QueryDoc map[string]*string `location:"querystring" type:"map"`
}
// Validate inspects the fields of the type to determine if they are valid.
func (s *InputService5TestShapeInputService5TestCaseOperation1Input) Validate() error {
invalidParams := request.ErrInvalidParams{Context: "InputService5TestShapeInputService5TestCaseOperation1Input"}
if s.PipelineId == nil {
invalidParams.Add(request.NewErrParamRequired("PipelineId"))
}
if s.PipelineId != nil && len(*s.PipelineId) < 1 {
invalidParams.Add(request.NewErrParamMinLen("PipelineId", 1))
}
if invalidParams.Len() > 0 {
return invalidParams
}
return nil
}
// SetPipelineId sets the PipelineId field's value.
func (s *InputService5TestShapeInputService5TestCaseOperation1Input) SetPipelineId(v string) *InputService5TestShapeInputService5TestCaseOperation1Input {
s.PipelineId = &v
return s
}
// SetQueryDoc sets the QueryDoc field's value.
func (s *InputService5TestShapeInputService5TestCaseOperation1Input) SetQueryDoc(v map[string]*string) *InputService5TestShapeInputService5TestCaseOperation1Input {
s.QueryDoc = v
return s
}
type InputService5TestShapeInputService5TestCaseOperation1Output struct {
_ struct{} `type:"structure"`
}
// InputService6ProtocolTest provides the API operation methods for making requests to
// . See this package's package overview docs
// for details on the service.
//
// InputService6ProtocolTest methods are safe to use concurrently. It is not safe to
// modify mutate any of the struct's properties though.
type InputService6ProtocolTest struct {
*client.Client
}
// New creates a new instance of the InputService6ProtocolTest 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 InputService6ProtocolTest client from just a session.
// svc := inputservice6protocoltest.New(mySession)
//
// // Create a InputService6ProtocolTest client with additional configuration
// svc := inputservice6protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2"))
func NewInputService6ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *InputService6ProtocolTest {
c := p.ClientConfig("inputservice6protocoltest", cfgs...)
return newInputService6ProtocolTestClient(*c.Config, c.Handlers, c.PartitionID, c.Endpoint, c.SigningRegion, c.SigningName)
}
// newClient creates, initializes and returns a new service client instance.
func newInputService6ProtocolTestClient(cfg aws.Config, handlers request.Handlers, partitionID, endpoint, signingRegion, signingName string) *InputService6ProtocolTest {
svc := &InputService6ProtocolTest{
Client: client.New(
cfg,
metadata.ClientInfo{
ServiceName: "InputService6ProtocolTest",
ServiceID: "InputService6ProtocolTest",
SigningName: signingName,
SigningRegion: signingRegion,
PartitionID: partitionID,
Endpoint: endpoint,
APIVersion: "2014-01-01",
},
handlers,
),
}
// Handlers
svc.Handlers.Sign.PushBackNamed(v4.SignRequestHandler)
svc.Handlers.Build.PushBackNamed(restjson.BuildHandler)
svc.Handlers.Unmarshal.PushBackNamed(restjson.UnmarshalHandler)
svc.Handlers.UnmarshalMeta.PushBackNamed(restjson.UnmarshalMetaHandler)
svc.Handlers.UnmarshalError.PushBackNamed(restjson.UnmarshalErrorHandler)
return svc
}
// newRequest creates a new request for a InputService6ProtocolTest operation and runs any
// custom request initialization.
func (c *InputService6ProtocolTest) newRequest(op *request.Operation, params, data interface{}) *request.Request {
req := c.NewRequest(op, params, data)
return req
}
const opInputService6TestCaseOperation1 = "OperationName"
// InputService6TestCaseOperation1Request generates a "aws/request.Request" representing the
// client's request for the InputService6TestCaseOperation1 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 InputService6TestCaseOperation1 for more information on using the InputService6TestCaseOperation1
// 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 InputService6TestCaseOperation1Request method.
// req, resp := client.InputService6TestCaseOperation1Request(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
func (c *InputService6ProtocolTest) InputService6TestCaseOperation1Request(input *InputService6TestShapeInputService6TestCaseOperation1Input) (req *request.Request, output *InputService6TestShapeInputService6TestCaseOperation1Output) {
op := &request.Operation{
Name: opInputService6TestCaseOperation1,
HTTPMethod: "GET",
HTTPPath: "/2014-01-01/jobsByPipeline/{PipelineId}",
}
if input == nil {
input = &InputService6TestShapeInputService6TestCaseOperation1Input{}
}
output = &InputService6TestShapeInputService6TestCaseOperation1Output{}
req = c.newRequest(op, input, output)
req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
return
}
// InputService6TestCaseOperation1 API operation for .
//
// 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 's
// API operation InputService6TestCaseOperation1 for usage and error information.
func (c *InputService6ProtocolTest) InputService6TestCaseOperation1(input *InputService6TestShapeInputService6TestCaseOperation1Input) (*InputService6TestShapeInputService6TestCaseOperation1Output, error) {
req, out := c.InputService6TestCaseOperation1Request(input)
return out, req.Send()
}
// InputService6TestCaseOperation1WithContext is the same as InputService6TestCaseOperation1 with the addition of
// the ability to pass a context and additional request options.
//
// See InputService6TestCaseOperation1 for details on how to use this API operation.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
func (c *InputService6ProtocolTest) InputService6TestCaseOperation1WithContext(ctx aws.Context, input *InputService6TestShapeInputService6TestCaseOperation1Input, opts ...request.Option) (*InputService6TestShapeInputService6TestCaseOperation1Output, error) {
req, out := c.InputService6TestCaseOperation1Request(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
type InputService6TestShapeInputService6TestCaseOperation1Input struct {
_ struct{} `type:"structure"`
// PipelineId is a required field
PipelineId *string `location:"uri" type:"string" required:"true"`
QueryDoc map[string][]*string `location:"querystring" type:"map"`
}
// Validate inspects the fields of the type to determine if they are valid.
func (s *InputService6TestShapeInputService6TestCaseOperation1Input) Validate() error {
invalidParams := request.ErrInvalidParams{Context: "InputService6TestShapeInputService6TestCaseOperation1Input"}
if s.PipelineId == nil {
invalidParams.Add(request.NewErrParamRequired("PipelineId"))
}
if s.PipelineId != nil && len(*s.PipelineId) < 1 {
invalidParams.Add(request.NewErrParamMinLen("PipelineId", 1))
}
if invalidParams.Len() > 0 {
return invalidParams
}
return nil
}
// SetPipelineId sets the PipelineId field's value.
func (s *InputService6TestShapeInputService6TestCaseOperation1Input) SetPipelineId(v string) *InputService6TestShapeInputService6TestCaseOperation1Input {
s.PipelineId = &v
return s
}
// SetQueryDoc sets the QueryDoc field's value.
func (s *InputService6TestShapeInputService6TestCaseOperation1Input) SetQueryDoc(v map[string][]*string) *InputService6TestShapeInputService6TestCaseOperation1Input {
s.QueryDoc = v
return s
}
type InputService6TestShapeInputService6TestCaseOperation1Output struct {
_ struct{} `type:"structure"`
}
// InputService7ProtocolTest provides the API operation methods for making requests to
// . See this package's package overview docs
// for details on the service.
//
// InputService7ProtocolTest methods are safe to use concurrently. It is not safe to
// modify mutate any of the struct's properties though.
type InputService7ProtocolTest struct {
*client.Client
}
// New creates a new instance of the InputService7ProtocolTest 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 InputService7ProtocolTest client from just a session.
// svc := inputservice7protocoltest.New(mySession)
//
// // Create a InputService7ProtocolTest client with additional configuration
// svc := inputservice7protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2"))
func NewInputService7ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *InputService7ProtocolTest {
c := p.ClientConfig("inputservice7protocoltest", cfgs...)
return newInputService7ProtocolTestClient(*c.Config, c.Handlers, c.PartitionID, c.Endpoint, c.SigningRegion, c.SigningName)
}
// newClient creates, initializes and returns a new service client instance.
func newInputService7ProtocolTestClient(cfg aws.Config, handlers request.Handlers, partitionID, endpoint, signingRegion, signingName string) *InputService7ProtocolTest {
svc := &InputService7ProtocolTest{
Client: client.New(
cfg,
metadata.ClientInfo{
ServiceName: "InputService7ProtocolTest",
ServiceID: "InputService7ProtocolTest",
SigningName: signingName,
SigningRegion: signingRegion,
PartitionID: partitionID,
Endpoint: endpoint,
APIVersion: "2014-01-01",
},
handlers,
),
}
// Handlers
svc.Handlers.Sign.PushBackNamed(v4.SignRequestHandler)
svc.Handlers.Build.PushBackNamed(restjson.BuildHandler)
svc.Handlers.Unmarshal.PushBackNamed(restjson.UnmarshalHandler)
svc.Handlers.UnmarshalMeta.PushBackNamed(restjson.UnmarshalMetaHandler)
svc.Handlers.UnmarshalError.PushBackNamed(restjson.UnmarshalErrorHandler)
return svc
}
// newRequest creates a new request for a InputService7ProtocolTest operation and runs any
// custom request initialization.
func (c *InputService7ProtocolTest) newRequest(op *request.Operation, params, data interface{}) *request.Request {
req := c.NewRequest(op, params, data)
return req
}
const opInputService7TestCaseOperation1 = "OperationName"
// InputService7TestCaseOperation1Request generates a "aws/request.Request" representing the
// client's request for the InputService7TestCaseOperation1 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 InputService7TestCaseOperation1 for more information on using the InputService7TestCaseOperation1
// 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 InputService7TestCaseOperation1Request method.
// req, resp := client.InputService7TestCaseOperation1Request(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
func (c *InputService7ProtocolTest) InputService7TestCaseOperation1Request(input *InputService7TestShapeInputService7TestCaseOperation1Input) (req *request.Request, output *InputService7TestShapeInputService7TestCaseOperation1Output) {
op := &request.Operation{
Name: opInputService7TestCaseOperation1,
HTTPMethod: "GET",
HTTPPath: "/path",
}
if input == nil {
input = &InputService7TestShapeInputService7TestCaseOperation1Input{}
}
output = &InputService7TestShapeInputService7TestCaseOperation1Output{}
req = c.newRequest(op, input, output)
req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
return
}
// InputService7TestCaseOperation1 API operation for .
//
// 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 's
// API operation InputService7TestCaseOperation1 for usage and error information.
func (c *InputService7ProtocolTest) InputService7TestCaseOperation1(input *InputService7TestShapeInputService7TestCaseOperation1Input) (*InputService7TestShapeInputService7TestCaseOperation1Output, error) {
req, out := c.InputService7TestCaseOperation1Request(input)
return out, req.Send()
}
// InputService7TestCaseOperation1WithContext is the same as InputService7TestCaseOperation1 with the addition of
// the ability to pass a context and additional request options.
//
// See InputService7TestCaseOperation1 for details on how to use this API operation.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
func (c *InputService7ProtocolTest) InputService7TestCaseOperation1WithContext(ctx aws.Context, input *InputService7TestShapeInputService7TestCaseOperation1Input, opts ...request.Option) (*InputService7TestShapeInputService7TestCaseOperation1Output, error) {
req, out := c.InputService7TestCaseOperation1Request(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
const opInputService7TestCaseOperation2 = "OperationName"
// InputService7TestCaseOperation2Request generates a "aws/request.Request" representing the
// client's request for the InputService7TestCaseOperation2 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 InputService7TestCaseOperation2 for more information on using the InputService7TestCaseOperation2
// 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 InputService7TestCaseOperation2Request method.
// req, resp := client.InputService7TestCaseOperation2Request(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
func (c *InputService7ProtocolTest) InputService7TestCaseOperation2Request(input *InputService7TestShapeInputService7TestCaseOperation2Input) (req *request.Request, output *InputService7TestShapeInputService7TestCaseOperation2Output) {
op := &request.Operation{
Name: opInputService7TestCaseOperation2,
HTTPMethod: "GET",
HTTPPath: "/path",
}
if input == nil {
input = &InputService7TestShapeInputService7TestCaseOperation2Input{}
}
output = &InputService7TestShapeInputService7TestCaseOperation2Output{}
req = c.newRequest(op, input, output)
req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
return
}
// InputService7TestCaseOperation2 API operation for .
//
// 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 's
// API operation InputService7TestCaseOperation2 for usage and error information.
func (c *InputService7ProtocolTest) InputService7TestCaseOperation2(input *InputService7TestShapeInputService7TestCaseOperation2Input) (*InputService7TestShapeInputService7TestCaseOperation2Output, error) {
req, out := c.InputService7TestCaseOperation2Request(input)
return out, req.Send()
}
// InputService7TestCaseOperation2WithContext is the same as InputService7TestCaseOperation2 with the addition of
// the ability to pass a context and additional request options.
//
// See InputService7TestCaseOperation2 for details on how to use this API operation.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
func (c *InputService7ProtocolTest) InputService7TestCaseOperation2WithContext(ctx aws.Context, input *InputService7TestShapeInputService7TestCaseOperation2Input, opts ...request.Option) (*InputService7TestShapeInputService7TestCaseOperation2Output, error) {
req, out := c.InputService7TestCaseOperation2Request(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
type InputService7TestShapeInputService7TestCaseOperation1Input struct {
_ struct{} `type:"structure"`
BoolQuery *bool `location:"querystring" locationName:"bool-query" type:"boolean"`
}
// SetBoolQuery sets the BoolQuery field's value.
func (s *InputService7TestShapeInputService7TestCaseOperation1Input) SetBoolQuery(v bool) *InputService7TestShapeInputService7TestCaseOperation1Input {
s.BoolQuery = &v
return s
}
type InputService7TestShapeInputService7TestCaseOperation1Output struct {
_ struct{} `type:"structure"`
}
type InputService7TestShapeInputService7TestCaseOperation2Input struct {
_ struct{} `type:"structure"`
BoolQuery *bool `location:"querystring" locationName:"bool-query" type:"boolean"`
}
// SetBoolQuery sets the BoolQuery field's value.
func (s *InputService7TestShapeInputService7TestCaseOperation2Input) SetBoolQuery(v bool) *InputService7TestShapeInputService7TestCaseOperation2Input {
s.BoolQuery = &v
return s
}
type InputService7TestShapeInputService7TestCaseOperation2Output struct {
_ struct{} `type:"structure"`
}
// InputService8ProtocolTest provides the API operation methods for making requests to
// . See this package's package overview docs
// for details on the service.
//
// InputService8ProtocolTest methods are safe to use concurrently. It is not safe to
// modify mutate any of the struct's properties though.
type InputService8ProtocolTest struct {
*client.Client
}
// New creates a new instance of the InputService8ProtocolTest 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 InputService8ProtocolTest client from just a session.
// svc := inputservice8protocoltest.New(mySession)
//
// // Create a InputService8ProtocolTest client with additional configuration
// svc := inputservice8protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2"))
func NewInputService8ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *InputService8ProtocolTest {
c := p.ClientConfig("inputservice8protocoltest", cfgs...)
return newInputService8ProtocolTestClient(*c.Config, c.Handlers, c.PartitionID, c.Endpoint, c.SigningRegion, c.SigningName)
}
// newClient creates, initializes and returns a new service client instance.
func newInputService8ProtocolTestClient(cfg aws.Config, handlers request.Handlers, partitionID, endpoint, signingRegion, signingName string) *InputService8ProtocolTest {
svc := &InputService8ProtocolTest{
Client: client.New(
cfg,
metadata.ClientInfo{
ServiceName: "InputService8ProtocolTest",
ServiceID: "InputService8ProtocolTest",
SigningName: signingName,
SigningRegion: signingRegion,
PartitionID: partitionID,
Endpoint: endpoint,
APIVersion: "2014-01-01",
},
handlers,
),
}
// Handlers
svc.Handlers.Sign.PushBackNamed(v4.SignRequestHandler)
svc.Handlers.Build.PushBackNamed(restjson.BuildHandler)
svc.Handlers.Unmarshal.PushBackNamed(restjson.UnmarshalHandler)
svc.Handlers.UnmarshalMeta.PushBackNamed(restjson.UnmarshalMetaHandler)
svc.Handlers.UnmarshalError.PushBackNamed(restjson.UnmarshalErrorHandler)
return svc
}
// newRequest creates a new request for a InputService8ProtocolTest operation and runs any
// custom request initialization.
func (c *InputService8ProtocolTest) newRequest(op *request.Operation, params, data interface{}) *request.Request {
req := c.NewRequest(op, params, data)
return req
}
const opInputService8TestCaseOperation1 = "OperationName"
// InputService8TestCaseOperation1Request generates a "aws/request.Request" representing the
// client's request for the InputService8TestCaseOperation1 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 InputService8TestCaseOperation1 for more information on using the InputService8TestCaseOperation1
// 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 InputService8TestCaseOperation1Request method.
// req, resp := client.InputService8TestCaseOperation1Request(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
func (c *InputService8ProtocolTest) InputService8TestCaseOperation1Request(input *InputService8TestShapeInputService8TestCaseOperation1Input) (req *request.Request, output *InputService8TestShapeInputService8TestCaseOperation1Output) {
op := &request.Operation{
Name: opInputService8TestCaseOperation1,
HTTPMethod: "GET",
HTTPPath: "/2014-01-01/jobsByPipeline/{PipelineId}",
}
if input == nil {
input = &InputService8TestShapeInputService8TestCaseOperation1Input{}
}
output = &InputService8TestShapeInputService8TestCaseOperation1Output{}
req = c.newRequest(op, input, output)
req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
return
}
// InputService8TestCaseOperation1 API operation for .
//
// 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 's
// API operation InputService8TestCaseOperation1 for usage and error information.
func (c *InputService8ProtocolTest) InputService8TestCaseOperation1(input *InputService8TestShapeInputService8TestCaseOperation1Input) (*InputService8TestShapeInputService8TestCaseOperation1Output, error) {
req, out := c.InputService8TestCaseOperation1Request(input)
return out, req.Send()
}
// InputService8TestCaseOperation1WithContext is the same as InputService8TestCaseOperation1 with the addition of
// the ability to pass a context and additional request options.
//
// See InputService8TestCaseOperation1 for details on how to use this API operation.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
func (c *InputService8ProtocolTest) InputService8TestCaseOperation1WithContext(ctx aws.Context, input *InputService8TestShapeInputService8TestCaseOperation1Input, opts ...request.Option) (*InputService8TestShapeInputService8TestCaseOperation1Output, error) {
req, out := c.InputService8TestCaseOperation1Request(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
type InputService8TestShapeInputService8TestCaseOperation1Input struct {
_ struct{} `type:"structure"`
Ascending *string `location:"querystring" locationName:"Ascending" type:"string"`
PageToken *string `location:"querystring" locationName:"PageToken" type:"string"`
// PipelineId is a required field
PipelineId *string `location:"uri" locationName:"PipelineId" type:"string" required:"true"`
}
// Validate inspects the fields of the type to determine if they are valid.
func (s *InputService8TestShapeInputService8TestCaseOperation1Input) Validate() error {
invalidParams := request.ErrInvalidParams{Context: "InputService8TestShapeInputService8TestCaseOperation1Input"}
if s.PipelineId == nil {
invalidParams.Add(request.NewErrParamRequired("PipelineId"))
}
if s.PipelineId != nil && len(*s.PipelineId) < 1 {
invalidParams.Add(request.NewErrParamMinLen("PipelineId", 1))
}
if invalidParams.Len() > 0 {
return invalidParams
}
return nil
}
// SetAscending sets the Ascending field's value.
func (s *InputService8TestShapeInputService8TestCaseOperation1Input) SetAscending(v string) *InputService8TestShapeInputService8TestCaseOperation1Input {
s.Ascending = &v
return s
}
// SetPageToken sets the PageToken field's value.
func (s *InputService8TestShapeInputService8TestCaseOperation1Input) SetPageToken(v string) *InputService8TestShapeInputService8TestCaseOperation1Input {
s.PageToken = &v
return s
}
// SetPipelineId sets the PipelineId field's value.
func (s *InputService8TestShapeInputService8TestCaseOperation1Input) SetPipelineId(v string) *InputService8TestShapeInputService8TestCaseOperation1Input {
s.PipelineId = &v
return s
}
type InputService8TestShapeInputService8TestCaseOperation1Output struct {
_ struct{} `type:"structure"`
}
// InputService9ProtocolTest provides the API operation methods for making requests to
// . See this package's package overview docs
// for details on the service.
//
// InputService9ProtocolTest methods are safe to use concurrently. It is not safe to
// modify mutate any of the struct's properties though.
type InputService9ProtocolTest struct {
*client.Client
}
// New creates a new instance of the InputService9ProtocolTest 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 InputService9ProtocolTest client from just a session.
// svc := inputservice9protocoltest.New(mySession)
//
// // Create a InputService9ProtocolTest client with additional configuration
// svc := inputservice9protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2"))
func NewInputService9ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *InputService9ProtocolTest {
c := p.ClientConfig("inputservice9protocoltest", cfgs...)
return newInputService9ProtocolTestClient(*c.Config, c.Handlers, c.PartitionID, c.Endpoint, c.SigningRegion, c.SigningName)
}
// newClient creates, initializes and returns a new service client instance.
func newInputService9ProtocolTestClient(cfg aws.Config, handlers request.Handlers, partitionID, endpoint, signingRegion, signingName string) *InputService9ProtocolTest {
svc := &InputService9ProtocolTest{
Client: client.New(
cfg,
metadata.ClientInfo{
ServiceName: "InputService9ProtocolTest",
ServiceID: "InputService9ProtocolTest",
SigningName: signingName,
SigningRegion: signingRegion,
PartitionID: partitionID,
Endpoint: endpoint,
APIVersion: "2014-01-01",
},
handlers,
),
}
// Handlers
svc.Handlers.Sign.PushBackNamed(v4.SignRequestHandler)
svc.Handlers.Build.PushBackNamed(restjson.BuildHandler)
svc.Handlers.Unmarshal.PushBackNamed(restjson.UnmarshalHandler)
svc.Handlers.UnmarshalMeta.PushBackNamed(restjson.UnmarshalMetaHandler)
svc.Handlers.UnmarshalError.PushBackNamed(restjson.UnmarshalErrorHandler)
return svc
}
// newRequest creates a new request for a InputService9ProtocolTest operation and runs any
// custom request initialization.
func (c *InputService9ProtocolTest) newRequest(op *request.Operation, params, data interface{}) *request.Request {
req := c.NewRequest(op, params, data)
return req
}
const opInputService9TestCaseOperation1 = "OperationName"
// InputService9TestCaseOperation1Request generates a "aws/request.Request" representing the
// client's request for the InputService9TestCaseOperation1 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 InputService9TestCaseOperation1 for more information on using the InputService9TestCaseOperation1
// 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 InputService9TestCaseOperation1Request method.
// req, resp := client.InputService9TestCaseOperation1Request(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
func (c *InputService9ProtocolTest) InputService9TestCaseOperation1Request(input *InputService9TestShapeInputService9TestCaseOperation1Input) (req *request.Request, output *InputService9TestShapeInputService9TestCaseOperation1Output) {
op := &request.Operation{
Name: opInputService9TestCaseOperation1,
HTTPMethod: "POST",
HTTPPath: "/2014-01-01/jobsByPipeline/{PipelineId}",
}
if input == nil {
input = &InputService9TestShapeInputService9TestCaseOperation1Input{}
}
output = &InputService9TestShapeInputService9TestCaseOperation1Output{}
req = c.newRequest(op, input, output)
req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
return
}
// InputService9TestCaseOperation1 API operation for .
//
// 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 's
// API operation InputService9TestCaseOperation1 for usage and error information.
func (c *InputService9ProtocolTest) InputService9TestCaseOperation1(input *InputService9TestShapeInputService9TestCaseOperation1Input) (*InputService9TestShapeInputService9TestCaseOperation1Output, error) {
req, out := c.InputService9TestCaseOperation1Request(input)
return out, req.Send()
}
// InputService9TestCaseOperation1WithContext is the same as InputService9TestCaseOperation1 with the addition of
// the ability to pass a context and additional request options.
//
// See InputService9TestCaseOperation1 for details on how to use this API operation.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
func (c *InputService9ProtocolTest) InputService9TestCaseOperation1WithContext(ctx aws.Context, input *InputService9TestShapeInputService9TestCaseOperation1Input, opts ...request.Option) (*InputService9TestShapeInputService9TestCaseOperation1Output, error) {
req, out := c.InputService9TestCaseOperation1Request(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
type InputService9TestShapeInputService9TestCaseOperation1Input struct {
_ struct{} `type:"structure"`
Ascending *string `location:"querystring" locationName:"Ascending" type:"string"`
Config *InputService9TestShapeStructType `type:"structure"`
PageToken *string `location:"querystring" locationName:"PageToken" type:"string"`
// PipelineId is a required field
PipelineId *string `location:"uri" locationName:"PipelineId" type:"string" required:"true"`
}
// Validate inspects the fields of the type to determine if they are valid.
func (s *InputService9TestShapeInputService9TestCaseOperation1Input) Validate() error {
invalidParams := request.ErrInvalidParams{Context: "InputService9TestShapeInputService9TestCaseOperation1Input"}
if s.PipelineId == nil {
invalidParams.Add(request.NewErrParamRequired("PipelineId"))
}
if s.PipelineId != nil && len(*s.PipelineId) < 1 {
invalidParams.Add(request.NewErrParamMinLen("PipelineId", 1))
}
if invalidParams.Len() > 0 {
return invalidParams
}
return nil
}
// SetAscending sets the Ascending field's value.
func (s *InputService9TestShapeInputService9TestCaseOperation1Input) SetAscending(v string) *InputService9TestShapeInputService9TestCaseOperation1Input {
s.Ascending = &v
return s
}
// SetConfig sets the Config field's value.
func (s *InputService9TestShapeInputService9TestCaseOperation1Input) SetConfig(v *InputService9TestShapeStructType) *InputService9TestShapeInputService9TestCaseOperation1Input {
s.Config = v
return s
}
// SetPageToken sets the PageToken field's value.
func (s *InputService9TestShapeInputService9TestCaseOperation1Input) SetPageToken(v string) *InputService9TestShapeInputService9TestCaseOperation1Input {
s.PageToken = &v
return s
}
// SetPipelineId sets the PipelineId field's value.
func (s *InputService9TestShapeInputService9TestCaseOperation1Input) SetPipelineId(v string) *InputService9TestShapeInputService9TestCaseOperation1Input {
s.PipelineId = &v
return s
}
type InputService9TestShapeInputService9TestCaseOperation1Output struct {
_ struct{} `type:"structure"`
}
type InputService9TestShapeStructType struct {
_ struct{} `type:"structure"`
A *string `type:"string"`
B *string `type:"string"`
}
// SetA sets the A field's value.
func (s *InputService9TestShapeStructType) SetA(v string) *InputService9TestShapeStructType {
s.A = &v
return s
}
// SetB sets the B field's value.
func (s *InputService9TestShapeStructType) SetB(v string) *InputService9TestShapeStructType {
s.B = &v
return s
}
// InputService10ProtocolTest provides the API operation methods for making requests to
// . See this package's package overview docs
// for details on the service.
//
// InputService10ProtocolTest methods are safe to use concurrently. It is not safe to
// modify mutate any of the struct's properties though.
type InputService10ProtocolTest struct {
*client.Client
}
// New creates a new instance of the InputService10ProtocolTest 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 InputService10ProtocolTest client from just a session.
// svc := inputservice10protocoltest.New(mySession)
//
// // Create a InputService10ProtocolTest client with additional configuration
// svc := inputservice10protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2"))
func NewInputService10ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *InputService10ProtocolTest {
c := p.ClientConfig("inputservice10protocoltest", cfgs...)
return newInputService10ProtocolTestClient(*c.Config, c.Handlers, c.PartitionID, c.Endpoint, c.SigningRegion, c.SigningName)
}
// newClient creates, initializes and returns a new service client instance.
func newInputService10ProtocolTestClient(cfg aws.Config, handlers request.Handlers, partitionID, endpoint, signingRegion, signingName string) *InputService10ProtocolTest {
svc := &InputService10ProtocolTest{
Client: client.New(
cfg,
metadata.ClientInfo{
ServiceName: "InputService10ProtocolTest",
ServiceID: "InputService10ProtocolTest",
SigningName: signingName,
SigningRegion: signingRegion,
PartitionID: partitionID,
Endpoint: endpoint,
APIVersion: "2014-01-01",
},
handlers,
),
}
// Handlers
svc.Handlers.Sign.PushBackNamed(v4.SignRequestHandler)
svc.Handlers.Build.PushBackNamed(restjson.BuildHandler)
svc.Handlers.Unmarshal.PushBackNamed(restjson.UnmarshalHandler)
svc.Handlers.UnmarshalMeta.PushBackNamed(restjson.UnmarshalMetaHandler)
svc.Handlers.UnmarshalError.PushBackNamed(restjson.UnmarshalErrorHandler)
return svc
}
// newRequest creates a new request for a InputService10ProtocolTest operation and runs any
// custom request initialization.
func (c *InputService10ProtocolTest) newRequest(op *request.Operation, params, data interface{}) *request.Request {
req := c.NewRequest(op, params, data)
return req
}
const opInputService10TestCaseOperation1 = "OperationName"
// InputService10TestCaseOperation1Request generates a "aws/request.Request" representing the
// client's request for the InputService10TestCaseOperation1 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 InputService10TestCaseOperation1 for more information on using the InputService10TestCaseOperation1
// 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 InputService10TestCaseOperation1Request method.
// req, resp := client.InputService10TestCaseOperation1Request(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
func (c *InputService10ProtocolTest) InputService10TestCaseOperation1Request(input *InputService10TestShapeInputService10TestCaseOperation1Input) (req *request.Request, output *InputService10TestShapeInputService10TestCaseOperation1Output) {
op := &request.Operation{
Name: opInputService10TestCaseOperation1,
HTTPMethod: "POST",
HTTPPath: "/2014-01-01/jobsByPipeline/{PipelineId}",
}
if input == nil {
input = &InputService10TestShapeInputService10TestCaseOperation1Input{}
}
output = &InputService10TestShapeInputService10TestCaseOperation1Output{}
req = c.newRequest(op, input, output)
req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
return
}
// InputService10TestCaseOperation1 API operation for .
//
// 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 's
// API operation InputService10TestCaseOperation1 for usage and error information.
func (c *InputService10ProtocolTest) InputService10TestCaseOperation1(input *InputService10TestShapeInputService10TestCaseOperation1Input) (*InputService10TestShapeInputService10TestCaseOperation1Output, error) {
req, out := c.InputService10TestCaseOperation1Request(input)
return out, req.Send()
}
// InputService10TestCaseOperation1WithContext is the same as InputService10TestCaseOperation1 with the addition of
// the ability to pass a context and additional request options.
//
// See InputService10TestCaseOperation1 for details on how to use this API operation.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
func (c *InputService10ProtocolTest) InputService10TestCaseOperation1WithContext(ctx aws.Context, input *InputService10TestShapeInputService10TestCaseOperation1Input, opts ...request.Option) (*InputService10TestShapeInputService10TestCaseOperation1Output, error) {
req, out := c.InputService10TestCaseOperation1Request(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
type InputService10TestShapeInputService10TestCaseOperation1Input struct {
_ struct{} `type:"structure"`
Ascending *string `location:"querystring" locationName:"Ascending" type:"string"`
Checksum *string `location:"header" locationName:"x-amz-checksum" type:"string"`
Config *InputService10TestShapeStructType `type:"structure"`
PageToken *string `location:"querystring" locationName:"PageToken" type:"string"`
// PipelineId is a required field
PipelineId *string `location:"uri" locationName:"PipelineId" type:"string" required:"true"`
}
// Validate inspects the fields of the type to determine if they are valid.
func (s *InputService10TestShapeInputService10TestCaseOperation1Input) Validate() error {
invalidParams := request.ErrInvalidParams{Context: "InputService10TestShapeInputService10TestCaseOperation1Input"}
if s.PipelineId == nil {
invalidParams.Add(request.NewErrParamRequired("PipelineId"))
}
if s.PipelineId != nil && len(*s.PipelineId) < 1 {
invalidParams.Add(request.NewErrParamMinLen("PipelineId", 1))
}
if invalidParams.Len() > 0 {
return invalidParams
}
return nil
}
// SetAscending sets the Ascending field's value.
func (s *InputService10TestShapeInputService10TestCaseOperation1Input) SetAscending(v string) *InputService10TestShapeInputService10TestCaseOperation1Input {
s.Ascending = &v
return s
}
// SetChecksum sets the Checksum field's value.
func (s *InputService10TestShapeInputService10TestCaseOperation1Input) SetChecksum(v string) *InputService10TestShapeInputService10TestCaseOperation1Input {
s.Checksum = &v
return s
}
// SetConfig sets the Config field's value.
func (s *InputService10TestShapeInputService10TestCaseOperation1Input) SetConfig(v *InputService10TestShapeStructType) *InputService10TestShapeInputService10TestCaseOperation1Input {
s.Config = v
return s
}
// SetPageToken sets the PageToken field's value.
func (s *InputService10TestShapeInputService10TestCaseOperation1Input) SetPageToken(v string) *InputService10TestShapeInputService10TestCaseOperation1Input {
s.PageToken = &v
return s
}
// SetPipelineId sets the PipelineId field's value.
func (s *InputService10TestShapeInputService10TestCaseOperation1Input) SetPipelineId(v string) *InputService10TestShapeInputService10TestCaseOperation1Input {
s.PipelineId = &v
return s
}
type InputService10TestShapeInputService10TestCaseOperation1Output struct {
_ struct{} `type:"structure"`
}
type InputService10TestShapeStructType struct {
_ struct{} `type:"structure"`
A *string `type:"string"`
B *string `type:"string"`
}
// SetA sets the A field's value.
func (s *InputService10TestShapeStructType) SetA(v string) *InputService10TestShapeStructType {
s.A = &v
return s
}
// SetB sets the B field's value.
func (s *InputService10TestShapeStructType) SetB(v string) *InputService10TestShapeStructType {
s.B = &v
return s
}
// InputService11ProtocolTest provides the API operation methods for making requests to
// . See this package's package overview docs
// for details on the service.
//
// InputService11ProtocolTest methods are safe to use concurrently. It is not safe to
// modify mutate any of the struct's properties though.
type InputService11ProtocolTest struct {
*client.Client
}
// New creates a new instance of the InputService11ProtocolTest 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 InputService11ProtocolTest client from just a session.
// svc := inputservice11protocoltest.New(mySession)
//
// // Create a InputService11ProtocolTest client with additional configuration
// svc := inputservice11protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2"))
func NewInputService11ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *InputService11ProtocolTest {
c := p.ClientConfig("inputservice11protocoltest", cfgs...)
return newInputService11ProtocolTestClient(*c.Config, c.Handlers, c.PartitionID, c.Endpoint, c.SigningRegion, c.SigningName)
}
// newClient creates, initializes and returns a new service client instance.
func newInputService11ProtocolTestClient(cfg aws.Config, handlers request.Handlers, partitionID, endpoint, signingRegion, signingName string) *InputService11ProtocolTest {
svc := &InputService11ProtocolTest{
Client: client.New(
cfg,
metadata.ClientInfo{
ServiceName: "InputService11ProtocolTest",
ServiceID: "InputService11ProtocolTest",
SigningName: signingName,
SigningRegion: signingRegion,
PartitionID: partitionID,
Endpoint: endpoint,
APIVersion: "2014-01-01",
},
handlers,
),
}
// Handlers
svc.Handlers.Sign.PushBackNamed(v4.SignRequestHandler)
svc.Handlers.Build.PushBackNamed(restjson.BuildHandler)
svc.Handlers.Unmarshal.PushBackNamed(restjson.UnmarshalHandler)
svc.Handlers.UnmarshalMeta.PushBackNamed(restjson.UnmarshalMetaHandler)
svc.Handlers.UnmarshalError.PushBackNamed(restjson.UnmarshalErrorHandler)
return svc
}
// newRequest creates a new request for a InputService11ProtocolTest operation and runs any
// custom request initialization.
func (c *InputService11ProtocolTest) newRequest(op *request.Operation, params, data interface{}) *request.Request {
req := c.NewRequest(op, params, data)
return req
}
const opInputService11TestCaseOperation1 = "OperationName"
// InputService11TestCaseOperation1Request generates a "aws/request.Request" representing the
// client's request for the InputService11TestCaseOperation1 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 InputService11TestCaseOperation1 for more information on using the InputService11TestCaseOperation1
// 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 InputService11TestCaseOperation1Request method.
// req, resp := client.InputService11TestCaseOperation1Request(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
func (c *InputService11ProtocolTest) InputService11TestCaseOperation1Request(input *InputService11TestShapeInputService11TestCaseOperation1Input) (req *request.Request, output *InputService11TestShapeInputService11TestCaseOperation1Output) {
op := &request.Operation{
Name: opInputService11TestCaseOperation1,
HTTPMethod: "POST",
HTTPPath: "/2014-01-01/vaults/{vaultName}/archives",
}
if input == nil {
input = &InputService11TestShapeInputService11TestCaseOperation1Input{}
}
output = &InputService11TestShapeInputService11TestCaseOperation1Output{}
req = c.newRequest(op, input, output)
req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
return
}
// InputService11TestCaseOperation1 API operation for .
//
// 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 's
// API operation InputService11TestCaseOperation1 for usage and error information.
func (c *InputService11ProtocolTest) InputService11TestCaseOperation1(input *InputService11TestShapeInputService11TestCaseOperation1Input) (*InputService11TestShapeInputService11TestCaseOperation1Output, error) {
req, out := c.InputService11TestCaseOperation1Request(input)
return out, req.Send()
}
// InputService11TestCaseOperation1WithContext is the same as InputService11TestCaseOperation1 with the addition of
// the ability to pass a context and additional request options.
//
// See InputService11TestCaseOperation1 for details on how to use this API operation.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
func (c *InputService11ProtocolTest) InputService11TestCaseOperation1WithContext(ctx aws.Context, input *InputService11TestShapeInputService11TestCaseOperation1Input, opts ...request.Option) (*InputService11TestShapeInputService11TestCaseOperation1Output, error) {
req, out := c.InputService11TestCaseOperation1Request(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
type InputService11TestShapeInputService11TestCaseOperation1Input struct {
_ struct{} `type:"structure" payload:"Body"`
Body io.ReadSeeker `locationName:"body" type:"blob"`
Checksum *string `location:"header" locationName:"x-amz-sha256-tree-hash" type:"string"`
// VaultName is a required field
VaultName *string `location:"uri" locationName:"vaultName" type:"string" required:"true"`
}
// Validate inspects the fields of the type to determine if they are valid.
func (s *InputService11TestShapeInputService11TestCaseOperation1Input) Validate() error {
invalidParams := request.ErrInvalidParams{Context: "InputService11TestShapeInputService11TestCaseOperation1Input"}
if s.VaultName == nil {
invalidParams.Add(request.NewErrParamRequired("VaultName"))
}
if s.VaultName != nil && len(*s.VaultName) < 1 {
invalidParams.Add(request.NewErrParamMinLen("VaultName", 1))
}
if invalidParams.Len() > 0 {
return invalidParams
}
return nil
}
// SetBody sets the Body field's value.
func (s *InputService11TestShapeInputService11TestCaseOperation1Input) SetBody(v io.ReadSeeker) *InputService11TestShapeInputService11TestCaseOperation1Input {
s.Body = v
return s
}
// SetChecksum sets the Checksum field's value.
func (s *InputService11TestShapeInputService11TestCaseOperation1Input) SetChecksum(v string) *InputService11TestShapeInputService11TestCaseOperation1Input {
s.Checksum = &v
return s
}
// SetVaultName sets the VaultName field's value.
func (s *InputService11TestShapeInputService11TestCaseOperation1Input) SetVaultName(v string) *InputService11TestShapeInputService11TestCaseOperation1Input {
s.VaultName = &v
return s
}
type InputService11TestShapeInputService11TestCaseOperation1Output struct {
_ struct{} `type:"structure"`
}
// InputService12ProtocolTest provides the API operation methods for making requests to
// . See this package's package overview docs
// for details on the service.
//
// InputService12ProtocolTest methods are safe to use concurrently. It is not safe to
// modify mutate any of the struct's properties though.
type InputService12ProtocolTest struct {
*client.Client
}
// New creates a new instance of the InputService12ProtocolTest 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 InputService12ProtocolTest client from just a session.
// svc := inputservice12protocoltest.New(mySession)
//
// // Create a InputService12ProtocolTest client with additional configuration
// svc := inputservice12protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2"))
func NewInputService12ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *InputService12ProtocolTest {
c := p.ClientConfig("inputservice12protocoltest", cfgs...)
return newInputService12ProtocolTestClient(*c.Config, c.Handlers, c.PartitionID, c.Endpoint, c.SigningRegion, c.SigningName)
}
// newClient creates, initializes and returns a new service client instance.
func newInputService12ProtocolTestClient(cfg aws.Config, handlers request.Handlers, partitionID, endpoint, signingRegion, signingName string) *InputService12ProtocolTest {
svc := &InputService12ProtocolTest{
Client: client.New(
cfg,
metadata.ClientInfo{
ServiceName: "InputService12ProtocolTest",
ServiceID: "InputService12ProtocolTest",
SigningName: signingName,
SigningRegion: signingRegion,
PartitionID: partitionID,
Endpoint: endpoint,
APIVersion: "2014-01-01",
},
handlers,
),
}
// Handlers
svc.Handlers.Sign.PushBackNamed(v4.SignRequestHandler)
svc.Handlers.Build.PushBackNamed(restjson.BuildHandler)
svc.Handlers.Unmarshal.PushBackNamed(restjson.UnmarshalHandler)
svc.Handlers.UnmarshalMeta.PushBackNamed(restjson.UnmarshalMetaHandler)
svc.Handlers.UnmarshalError.PushBackNamed(restjson.UnmarshalErrorHandler)
return svc
}
// newRequest creates a new request for a InputService12ProtocolTest operation and runs any
// custom request initialization.
func (c *InputService12ProtocolTest) newRequest(op *request.Operation, params, data interface{}) *request.Request {
req := c.NewRequest(op, params, data)
return req
}
const opInputService12TestCaseOperation1 = "OperationName"
// InputService12TestCaseOperation1Request generates a "aws/request.Request" representing the
// client's request for the InputService12TestCaseOperation1 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 InputService12TestCaseOperation1 for more information on using the InputService12TestCaseOperation1
// 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 InputService12TestCaseOperation1Request method.
// req, resp := client.InputService12TestCaseOperation1Request(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
func (c *InputService12ProtocolTest) InputService12TestCaseOperation1Request(input *InputService12TestShapeInputService12TestCaseOperation1Input) (req *request.Request, output *InputService12TestShapeInputService12TestCaseOperation1Output) {
op := &request.Operation{
Name: opInputService12TestCaseOperation1,
HTTPMethod: "POST",
HTTPPath: "/2014-01-01/{Foo}",
}
if input == nil {
input = &InputService12TestShapeInputService12TestCaseOperation1Input{}
}
output = &InputService12TestShapeInputService12TestCaseOperation1Output{}
req = c.newRequest(op, input, output)
req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
return
}
// InputService12TestCaseOperation1 API operation for .
//
// 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 's
// API operation InputService12TestCaseOperation1 for usage and error information.
func (c *InputService12ProtocolTest) InputService12TestCaseOperation1(input *InputService12TestShapeInputService12TestCaseOperation1Input) (*InputService12TestShapeInputService12TestCaseOperation1Output, error) {
req, out := c.InputService12TestCaseOperation1Request(input)
return out, req.Send()
}
// InputService12TestCaseOperation1WithContext is the same as InputService12TestCaseOperation1 with the addition of
// the ability to pass a context and additional request options.
//
// See InputService12TestCaseOperation1 for details on how to use this API operation.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
func (c *InputService12ProtocolTest) InputService12TestCaseOperation1WithContext(ctx aws.Context, input *InputService12TestShapeInputService12TestCaseOperation1Input, opts ...request.Option) (*InputService12TestShapeInputService12TestCaseOperation1Output, error) {
req, out := c.InputService12TestCaseOperation1Request(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
type InputService12TestShapeInputService12TestCaseOperation1Input struct {
_ struct{} `type:"structure"`
// Bar is automatically base64 encoded/decoded by the SDK.
Bar []byte `type:"blob"`
// Foo is a required field
Foo *string `location:"uri" locationName:"Foo" type:"string" required:"true"`
}
// Validate inspects the fields of the type to determine if they are valid.
func (s *InputService12TestShapeInputService12TestCaseOperation1Input) Validate() error {
invalidParams := request.ErrInvalidParams{Context: "InputService12TestShapeInputService12TestCaseOperation1Input"}
if s.Foo == nil {
invalidParams.Add(request.NewErrParamRequired("Foo"))
}
if s.Foo != nil && len(*s.Foo) < 1 {
invalidParams.Add(request.NewErrParamMinLen("Foo", 1))
}
if invalidParams.Len() > 0 {
return invalidParams
}
return nil
}
// SetBar sets the Bar field's value.
func (s *InputService12TestShapeInputService12TestCaseOperation1Input) SetBar(v []byte) *InputService12TestShapeInputService12TestCaseOperation1Input {
s.Bar = v
return s
}
// SetFoo sets the Foo field's value.
func (s *InputService12TestShapeInputService12TestCaseOperation1Input) SetFoo(v string) *InputService12TestShapeInputService12TestCaseOperation1Input {
s.Foo = &v
return s
}
type InputService12TestShapeInputService12TestCaseOperation1Output struct {
_ struct{} `type:"structure"`
}
// InputService13ProtocolTest provides the API operation methods for making requests to
// . See this package's package overview docs
// for details on the service.
//
// InputService13ProtocolTest methods are safe to use concurrently. It is not safe to
// modify mutate any of the struct's properties though.
type InputService13ProtocolTest struct {
*client.Client
}
// New creates a new instance of the InputService13ProtocolTest 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 InputService13ProtocolTest client from just a session.
// svc := inputservice13protocoltest.New(mySession)
//
// // Create a InputService13ProtocolTest client with additional configuration
// svc := inputservice13protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2"))
func NewInputService13ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *InputService13ProtocolTest {
c := p.ClientConfig("inputservice13protocoltest", cfgs...)
return newInputService13ProtocolTestClient(*c.Config, c.Handlers, c.PartitionID, c.Endpoint, c.SigningRegion, c.SigningName)
}
// newClient creates, initializes and returns a new service client instance.
func newInputService13ProtocolTestClient(cfg aws.Config, handlers request.Handlers, partitionID, endpoint, signingRegion, signingName string) *InputService13ProtocolTest {
svc := &InputService13ProtocolTest{
Client: client.New(
cfg,
metadata.ClientInfo{
ServiceName: "InputService13ProtocolTest",
ServiceID: "InputService13ProtocolTest",
SigningName: signingName,
SigningRegion: signingRegion,
PartitionID: partitionID,
Endpoint: endpoint,
APIVersion: "2014-01-01",
},
handlers,
),
}
// Handlers
svc.Handlers.Sign.PushBackNamed(v4.SignRequestHandler)
svc.Handlers.Build.PushBackNamed(restjson.BuildHandler)
svc.Handlers.Unmarshal.PushBackNamed(restjson.UnmarshalHandler)
svc.Handlers.UnmarshalMeta.PushBackNamed(restjson.UnmarshalMetaHandler)
svc.Handlers.UnmarshalError.PushBackNamed(restjson.UnmarshalErrorHandler)
return svc
}
// newRequest creates a new request for a InputService13ProtocolTest operation and runs any
// custom request initialization.
func (c *InputService13ProtocolTest) newRequest(op *request.Operation, params, data interface{}) *request.Request {
req := c.NewRequest(op, params, data)
return req
}
const opInputService13TestCaseOperation1 = "OperationName"
// InputService13TestCaseOperation1Request generates a "aws/request.Request" representing the
// client's request for the InputService13TestCaseOperation1 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 InputService13TestCaseOperation1 for more information on using the InputService13TestCaseOperation1
// 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 InputService13TestCaseOperation1Request method.
// req, resp := client.InputService13TestCaseOperation1Request(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
func (c *InputService13ProtocolTest) InputService13TestCaseOperation1Request(input *InputService13TestShapeInputService13TestCaseOperation1Input) (req *request.Request, output *InputService13TestShapeInputService13TestCaseOperation1Output) {
op := &request.Operation{
Name: opInputService13TestCaseOperation1,
HTTPMethod: "POST",
HTTPPath: "/",
}
if input == nil {
input = &InputService13TestShapeInputService13TestCaseOperation1Input{}
}
output = &InputService13TestShapeInputService13TestCaseOperation1Output{}
req = c.newRequest(op, input, output)
req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
return
}
// InputService13TestCaseOperation1 API operation for .
//
// 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 's
// API operation InputService13TestCaseOperation1 for usage and error information.
func (c *InputService13ProtocolTest) InputService13TestCaseOperation1(input *InputService13TestShapeInputService13TestCaseOperation1Input) (*InputService13TestShapeInputService13TestCaseOperation1Output, error) {
req, out := c.InputService13TestCaseOperation1Request(input)
return out, req.Send()
}
// InputService13TestCaseOperation1WithContext is the same as InputService13TestCaseOperation1 with the addition of
// the ability to pass a context and additional request options.
//
// See InputService13TestCaseOperation1 for details on how to use this API operation.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
func (c *InputService13ProtocolTest) InputService13TestCaseOperation1WithContext(ctx aws.Context, input *InputService13TestShapeInputService13TestCaseOperation1Input, opts ...request.Option) (*InputService13TestShapeInputService13TestCaseOperation1Output, error) {
req, out := c.InputService13TestCaseOperation1Request(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
const opInputService13TestCaseOperation2 = "OperationName"
// InputService13TestCaseOperation2Request generates a "aws/request.Request" representing the
// client's request for the InputService13TestCaseOperation2 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 InputService13TestCaseOperation2 for more information on using the InputService13TestCaseOperation2
// 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 InputService13TestCaseOperation2Request method.
// req, resp := client.InputService13TestCaseOperation2Request(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
func (c *InputService13ProtocolTest) InputService13TestCaseOperation2Request(input *InputService13TestShapeInputService13TestCaseOperation2Input) (req *request.Request, output *InputService13TestShapeInputService13TestCaseOperation2Output) {
op := &request.Operation{
Name: opInputService13TestCaseOperation2,
HTTPMethod: "POST",
HTTPPath: "/",
}
if input == nil {
input = &InputService13TestShapeInputService13TestCaseOperation2Input{}
}
output = &InputService13TestShapeInputService13TestCaseOperation2Output{}
req = c.newRequest(op, input, output)
req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
return
}
// InputService13TestCaseOperation2 API operation for .
//
// 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 's
// API operation InputService13TestCaseOperation2 for usage and error information.
func (c *InputService13ProtocolTest) InputService13TestCaseOperation2(input *InputService13TestShapeInputService13TestCaseOperation2Input) (*InputService13TestShapeInputService13TestCaseOperation2Output, error) {
req, out := c.InputService13TestCaseOperation2Request(input)
return out, req.Send()
}
// InputService13TestCaseOperation2WithContext is the same as InputService13TestCaseOperation2 with the addition of
// the ability to pass a context and additional request options.
//
// See InputService13TestCaseOperation2 for details on how to use this API operation.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
func (c *InputService13ProtocolTest) InputService13TestCaseOperation2WithContext(ctx aws.Context, input *InputService13TestShapeInputService13TestCaseOperation2Input, opts ...request.Option) (*InputService13TestShapeInputService13TestCaseOperation2Output, error) {
req, out := c.InputService13TestCaseOperation2Request(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
type InputService13TestShapeInputService13TestCaseOperation1Input struct {
_ struct{} `type:"structure" payload:"Foo"`
Foo []byte `locationName:"foo" type:"blob"`
}
// SetFoo sets the Foo field's value.
func (s *InputService13TestShapeInputService13TestCaseOperation1Input) SetFoo(v []byte) *InputService13TestShapeInputService13TestCaseOperation1Input {
s.Foo = v
return s
}
type InputService13TestShapeInputService13TestCaseOperation1Output struct {
_ struct{} `type:"structure"`
}
type InputService13TestShapeInputService13TestCaseOperation2Input struct {
_ struct{} `type:"structure" payload:"Foo"`
Foo []byte `locationName:"foo" type:"blob"`
}
// SetFoo sets the Foo field's value.
func (s *InputService13TestShapeInputService13TestCaseOperation2Input) SetFoo(v []byte) *InputService13TestShapeInputService13TestCaseOperation2Input {
s.Foo = v
return s
}
type InputService13TestShapeInputService13TestCaseOperation2Output struct {
_ struct{} `type:"structure"`
}
// InputService14ProtocolTest provides the API operation methods for making requests to
// . See this package's package overview docs
// for details on the service.
//
// InputService14ProtocolTest methods are safe to use concurrently. It is not safe to
// modify mutate any of the struct's properties though.
type InputService14ProtocolTest struct {
*client.Client
}
// New creates a new instance of the InputService14ProtocolTest 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 InputService14ProtocolTest client from just a session.
// svc := inputservice14protocoltest.New(mySession)
//
// // Create a InputService14ProtocolTest client with additional configuration
// svc := inputservice14protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2"))
func NewInputService14ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *InputService14ProtocolTest {
c := p.ClientConfig("inputservice14protocoltest", cfgs...)
return newInputService14ProtocolTestClient(*c.Config, c.Handlers, c.PartitionID, c.Endpoint, c.SigningRegion, c.SigningName)
}
// newClient creates, initializes and returns a new service client instance.
func newInputService14ProtocolTestClient(cfg aws.Config, handlers request.Handlers, partitionID, endpoint, signingRegion, signingName string) *InputService14ProtocolTest {
svc := &InputService14ProtocolTest{
Client: client.New(
cfg,
metadata.ClientInfo{
ServiceName: "InputService14ProtocolTest",
ServiceID: "InputService14ProtocolTest",
SigningName: signingName,
SigningRegion: signingRegion,
PartitionID: partitionID,
Endpoint: endpoint,
APIVersion: "2014-01-01",
},
handlers,
),
}
// Handlers
svc.Handlers.Sign.PushBackNamed(v4.SignRequestHandler)
svc.Handlers.Build.PushBackNamed(restjson.BuildHandler)
svc.Handlers.Unmarshal.PushBackNamed(restjson.UnmarshalHandler)
svc.Handlers.UnmarshalMeta.PushBackNamed(restjson.UnmarshalMetaHandler)
svc.Handlers.UnmarshalError.PushBackNamed(restjson.UnmarshalErrorHandler)
return svc
}
// newRequest creates a new request for a InputService14ProtocolTest operation and runs any
// custom request initialization.
func (c *InputService14ProtocolTest) newRequest(op *request.Operation, params, data interface{}) *request.Request {
req := c.NewRequest(op, params, data)
return req
}
const opInputService14TestCaseOperation1 = "OperationName"
// InputService14TestCaseOperation1Request generates a "aws/request.Request" representing the
// client's request for the InputService14TestCaseOperation1 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 InputService14TestCaseOperation1 for more information on using the InputService14TestCaseOperation1
// 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 InputService14TestCaseOperation1Request method.
// req, resp := client.InputService14TestCaseOperation1Request(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
func (c *InputService14ProtocolTest) InputService14TestCaseOperation1Request(input *InputService14TestShapeInputService14TestCaseOperation1Input) (req *request.Request, output *InputService14TestShapeInputService14TestCaseOperation1Output) {
op := &request.Operation{
Name: opInputService14TestCaseOperation1,
HTTPMethod: "POST",
HTTPPath: "/",
}
if input == nil {
input = &InputService14TestShapeInputService14TestCaseOperation1Input{}
}
output = &InputService14TestShapeInputService14TestCaseOperation1Output{}
req = c.newRequest(op, input, output)
req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
return
}
// InputService14TestCaseOperation1 API operation for .
//
// 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 's
// API operation InputService14TestCaseOperation1 for usage and error information.
func (c *InputService14ProtocolTest) InputService14TestCaseOperation1(input *InputService14TestShapeInputService14TestCaseOperation1Input) (*InputService14TestShapeInputService14TestCaseOperation1Output, error) {
req, out := c.InputService14TestCaseOperation1Request(input)
return out, req.Send()
}
// InputService14TestCaseOperation1WithContext is the same as InputService14TestCaseOperation1 with the addition of
// the ability to pass a context and additional request options.
//
// See InputService14TestCaseOperation1 for details on how to use this API operation.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
func (c *InputService14ProtocolTest) InputService14TestCaseOperation1WithContext(ctx aws.Context, input *InputService14TestShapeInputService14TestCaseOperation1Input, opts ...request.Option) (*InputService14TestShapeInputService14TestCaseOperation1Output, error) {
req, out := c.InputService14TestCaseOperation1Request(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
const opInputService14TestCaseOperation2 = "OperationName"
// InputService14TestCaseOperation2Request generates a "aws/request.Request" representing the
// client's request for the InputService14TestCaseOperation2 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 InputService14TestCaseOperation2 for more information on using the InputService14TestCaseOperation2
// 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 InputService14TestCaseOperation2Request method.
// req, resp := client.InputService14TestCaseOperation2Request(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
func (c *InputService14ProtocolTest) InputService14TestCaseOperation2Request(input *InputService14TestShapeInputService14TestCaseOperation2Input) (req *request.Request, output *InputService14TestShapeInputService14TestCaseOperation2Output) {
op := &request.Operation{
Name: opInputService14TestCaseOperation2,
HTTPMethod: "POST",
HTTPPath: "/",
}
if input == nil {
input = &InputService14TestShapeInputService14TestCaseOperation2Input{}
}
output = &InputService14TestShapeInputService14TestCaseOperation2Output{}
req = c.newRequest(op, input, output)
req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
return
}
// InputService14TestCaseOperation2 API operation for .
//
// 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 's
// API operation InputService14TestCaseOperation2 for usage and error information.
func (c *InputService14ProtocolTest) InputService14TestCaseOperation2(input *InputService14TestShapeInputService14TestCaseOperation2Input) (*InputService14TestShapeInputService14TestCaseOperation2Output, error) {
req, out := c.InputService14TestCaseOperation2Request(input)
return out, req.Send()
}
// InputService14TestCaseOperation2WithContext is the same as InputService14TestCaseOperation2 with the addition of
// the ability to pass a context and additional request options.
//
// See InputService14TestCaseOperation2 for details on how to use this API operation.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
func (c *InputService14ProtocolTest) InputService14TestCaseOperation2WithContext(ctx aws.Context, input *InputService14TestShapeInputService14TestCaseOperation2Input, opts ...request.Option) (*InputService14TestShapeInputService14TestCaseOperation2Output, error) {
req, out := c.InputService14TestCaseOperation2Request(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
type InputService14TestShapeFooShape struct {
_ struct{} `locationName:"foo" type:"structure"`
Baz *string `locationName:"baz" type:"string"`
}
// SetBaz sets the Baz field's value.
func (s *InputService14TestShapeFooShape) SetBaz(v string) *InputService14TestShapeFooShape {
s.Baz = &v
return s
}
type InputService14TestShapeInputService14TestCaseOperation1Input struct {
_ struct{} `type:"structure" payload:"Foo"`
Foo *InputService14TestShapeFooShape `locationName:"foo" type:"structure"`
}
// SetFoo sets the Foo field's value.
func (s *InputService14TestShapeInputService14TestCaseOperation1Input) SetFoo(v *InputService14TestShapeFooShape) *InputService14TestShapeInputService14TestCaseOperation1Input {
s.Foo = v
return s
}
type InputService14TestShapeInputService14TestCaseOperation1Output struct {
_ struct{} `type:"structure"`
}
type InputService14TestShapeInputService14TestCaseOperation2Input struct {
_ struct{} `type:"structure" payload:"Foo"`
Foo *InputService14TestShapeFooShape `locationName:"foo" type:"structure"`
}
// SetFoo sets the Foo field's value.
func (s *InputService14TestShapeInputService14TestCaseOperation2Input) SetFoo(v *InputService14TestShapeFooShape) *InputService14TestShapeInputService14TestCaseOperation2Input {
s.Foo = v
return s
}
type InputService14TestShapeInputService14TestCaseOperation2Output struct {
_ struct{} `type:"structure"`
}
// InputService15ProtocolTest provides the API operation methods for making requests to
// . See this package's package overview docs
// for details on the service.
//
// InputService15ProtocolTest methods are safe to use concurrently. It is not safe to
// modify mutate any of the struct's properties though.
type InputService15ProtocolTest struct {
*client.Client
}
// New creates a new instance of the InputService15ProtocolTest 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 InputService15ProtocolTest client from just a session.
// svc := inputservice15protocoltest.New(mySession)
//
// // Create a InputService15ProtocolTest client with additional configuration
// svc := inputservice15protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2"))
func NewInputService15ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *InputService15ProtocolTest {
c := p.ClientConfig("inputservice15protocoltest", cfgs...)
return newInputService15ProtocolTestClient(*c.Config, c.Handlers, c.PartitionID, c.Endpoint, c.SigningRegion, c.SigningName)
}
// newClient creates, initializes and returns a new service client instance.
func newInputService15ProtocolTestClient(cfg aws.Config, handlers request.Handlers, partitionID, endpoint, signingRegion, signingName string) *InputService15ProtocolTest {
svc := &InputService15ProtocolTest{
Client: client.New(
cfg,
metadata.ClientInfo{
ServiceName: "InputService15ProtocolTest",
ServiceID: "InputService15ProtocolTest",
SigningName: signingName,
SigningRegion: signingRegion,
PartitionID: partitionID,
Endpoint: endpoint,
APIVersion: "2014-01-01",
},
handlers,
),
}
// Handlers
svc.Handlers.Sign.PushBackNamed(v4.SignRequestHandler)
svc.Handlers.Build.PushBackNamed(restjson.BuildHandler)
svc.Handlers.Unmarshal.PushBackNamed(restjson.UnmarshalHandler)
svc.Handlers.UnmarshalMeta.PushBackNamed(restjson.UnmarshalMetaHandler)
svc.Handlers.UnmarshalError.PushBackNamed(restjson.UnmarshalErrorHandler)
return svc
}
// newRequest creates a new request for a InputService15ProtocolTest operation and runs any
// custom request initialization.
func (c *InputService15ProtocolTest) newRequest(op *request.Operation, params, data interface{}) *request.Request {
req := c.NewRequest(op, params, data)
return req
}
const opInputService15TestCaseOperation1 = "OperationName"
// InputService15TestCaseOperation1Request generates a "aws/request.Request" representing the
// client's request for the InputService15TestCaseOperation1 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 InputService15TestCaseOperation1 for more information on using the InputService15TestCaseOperation1
// 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 InputService15TestCaseOperation1Request method.
// req, resp := client.InputService15TestCaseOperation1Request(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
func (c *InputService15ProtocolTest) InputService15TestCaseOperation1Request(input *InputService15TestShapeInputService15TestCaseOperation1Input) (req *request.Request, output *InputService15TestShapeInputService15TestCaseOperation1Output) {
op := &request.Operation{
Name: opInputService15TestCaseOperation1,
HTTPMethod: "POST",
HTTPPath: "/path",
}
if input == nil {
input = &InputService15TestShapeInputService15TestCaseOperation1Input{}
}
output = &InputService15TestShapeInputService15TestCaseOperation1Output{}
req = c.newRequest(op, input, output)
req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
return
}
// InputService15TestCaseOperation1 API operation for .
//
// 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 's
// API operation InputService15TestCaseOperation1 for usage and error information.
func (c *InputService15ProtocolTest) InputService15TestCaseOperation1(input *InputService15TestShapeInputService15TestCaseOperation1Input) (*InputService15TestShapeInputService15TestCaseOperation1Output, error) {
req, out := c.InputService15TestCaseOperation1Request(input)
return out, req.Send()
}
// InputService15TestCaseOperation1WithContext is the same as InputService15TestCaseOperation1 with the addition of
// the ability to pass a context and additional request options.
//
// See InputService15TestCaseOperation1 for details on how to use this API operation.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
func (c *InputService15ProtocolTest) InputService15TestCaseOperation1WithContext(ctx aws.Context, input *InputService15TestShapeInputService15TestCaseOperation1Input, opts ...request.Option) (*InputService15TestShapeInputService15TestCaseOperation1Output, error) {
req, out := c.InputService15TestCaseOperation1Request(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
const opInputService15TestCaseOperation2 = "OperationName"
// InputService15TestCaseOperation2Request generates a "aws/request.Request" representing the
// client's request for the InputService15TestCaseOperation2 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 InputService15TestCaseOperation2 for more information on using the InputService15TestCaseOperation2
// 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 InputService15TestCaseOperation2Request method.
// req, resp := client.InputService15TestCaseOperation2Request(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
func (c *InputService15ProtocolTest) InputService15TestCaseOperation2Request(input *InputService15TestShapeInputService15TestCaseOperation2Input) (req *request.Request, output *InputService15TestShapeInputService15TestCaseOperation2Output) {
op := &request.Operation{
Name: opInputService15TestCaseOperation2,
HTTPMethod: "POST",
HTTPPath: "/path?abc=mno",
}
if input == nil {
input = &InputService15TestShapeInputService15TestCaseOperation2Input{}
}
output = &InputService15TestShapeInputService15TestCaseOperation2Output{}
req = c.newRequest(op, input, output)
req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
return
}
// InputService15TestCaseOperation2 API operation for .
//
// 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 's
// API operation InputService15TestCaseOperation2 for usage and error information.
func (c *InputService15ProtocolTest) InputService15TestCaseOperation2(input *InputService15TestShapeInputService15TestCaseOperation2Input) (*InputService15TestShapeInputService15TestCaseOperation2Output, error) {
req, out := c.InputService15TestCaseOperation2Request(input)
return out, req.Send()
}
// InputService15TestCaseOperation2WithContext is the same as InputService15TestCaseOperation2 with the addition of
// the ability to pass a context and additional request options.
//
// See InputService15TestCaseOperation2 for details on how to use this API operation.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
func (c *InputService15ProtocolTest) InputService15TestCaseOperation2WithContext(ctx aws.Context, input *InputService15TestShapeInputService15TestCaseOperation2Input, opts ...request.Option) (*InputService15TestShapeInputService15TestCaseOperation2Output, error) {
req, out := c.InputService15TestCaseOperation2Request(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
type InputService15TestShapeInputService15TestCaseOperation1Input struct {
_ struct{} `type:"structure"`
Foo *string `location:"querystring" locationName:"param-name" type:"string"`
}
// SetFoo sets the Foo field's value.
func (s *InputService15TestShapeInputService15TestCaseOperation1Input) SetFoo(v string) *InputService15TestShapeInputService15TestCaseOperation1Input {
s.Foo = &v
return s
}
type InputService15TestShapeInputService15TestCaseOperation1Output struct {
_ struct{} `type:"structure"`
}
type InputService15TestShapeInputService15TestCaseOperation2Input struct {
_ struct{} `type:"structure"`
Foo *string `location:"querystring" locationName:"param-name" type:"string"`
}
// SetFoo sets the Foo field's value.
func (s *InputService15TestShapeInputService15TestCaseOperation2Input) SetFoo(v string) *InputService15TestShapeInputService15TestCaseOperation2Input {
s.Foo = &v
return s
}
type InputService15TestShapeInputService15TestCaseOperation2Output struct {
_ struct{} `type:"structure"`
}
// InputService16ProtocolTest provides the API operation methods for making requests to
// . See this package's package overview docs
// for details on the service.
//
// InputService16ProtocolTest methods are safe to use concurrently. It is not safe to
// modify mutate any of the struct's properties though.
type InputService16ProtocolTest struct {
*client.Client
}
// New creates a new instance of the InputService16ProtocolTest 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 InputService16ProtocolTest client from just a session.
// svc := inputservice16protocoltest.New(mySession)
//
// // Create a InputService16ProtocolTest client with additional configuration
// svc := inputservice16protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2"))
func NewInputService16ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *InputService16ProtocolTest {
c := p.ClientConfig("inputservice16protocoltest", cfgs...)
return newInputService16ProtocolTestClient(*c.Config, c.Handlers, c.PartitionID, c.Endpoint, c.SigningRegion, c.SigningName)
}
// newClient creates, initializes and returns a new service client instance.
func newInputService16ProtocolTestClient(cfg aws.Config, handlers request.Handlers, partitionID, endpoint, signingRegion, signingName string) *InputService16ProtocolTest {
svc := &InputService16ProtocolTest{
Client: client.New(
cfg,
metadata.ClientInfo{
ServiceName: "InputService16ProtocolTest",
ServiceID: "InputService16ProtocolTest",
SigningName: signingName,
SigningRegion: signingRegion,
PartitionID: partitionID,
Endpoint: endpoint,
APIVersion: "2014-01-01",
},
handlers,
),
}
// Handlers
svc.Handlers.Sign.PushBackNamed(v4.SignRequestHandler)
svc.Handlers.Build.PushBackNamed(restjson.BuildHandler)
svc.Handlers.Unmarshal.PushBackNamed(restjson.UnmarshalHandler)
svc.Handlers.UnmarshalMeta.PushBackNamed(restjson.UnmarshalMetaHandler)
svc.Handlers.UnmarshalError.PushBackNamed(restjson.UnmarshalErrorHandler)
return svc
}
// newRequest creates a new request for a InputService16ProtocolTest operation and runs any
// custom request initialization.
func (c *InputService16ProtocolTest) newRequest(op *request.Operation, params, data interface{}) *request.Request {
req := c.NewRequest(op, params, data)
return req
}
const opInputService16TestCaseOperation1 = "OperationName"
// InputService16TestCaseOperation1Request generates a "aws/request.Request" representing the
// client's request for the InputService16TestCaseOperation1 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 InputService16TestCaseOperation1 for more information on using the InputService16TestCaseOperation1
// 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 InputService16TestCaseOperation1Request method.
// req, resp := client.InputService16TestCaseOperation1Request(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
func (c *InputService16ProtocolTest) InputService16TestCaseOperation1Request(input *InputService16TestShapeInputService16TestCaseOperation1Input) (req *request.Request, output *InputService16TestShapeInputService16TestCaseOperation1Output) {
op := &request.Operation{
Name: opInputService16TestCaseOperation1,
HTTPMethod: "POST",
HTTPPath: "/path",
}
if input == nil {
input = &InputService16TestShapeInputService16TestCaseOperation1Input{}
}
output = &InputService16TestShapeInputService16TestCaseOperation1Output{}
req = c.newRequest(op, input, output)
req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
return
}
// InputService16TestCaseOperation1 API operation for .
//
// 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 's
// API operation InputService16TestCaseOperation1 for usage and error information.
func (c *InputService16ProtocolTest) InputService16TestCaseOperation1(input *InputService16TestShapeInputService16TestCaseOperation1Input) (*InputService16TestShapeInputService16TestCaseOperation1Output, error) {
req, out := c.InputService16TestCaseOperation1Request(input)
return out, req.Send()
}
// InputService16TestCaseOperation1WithContext is the same as InputService16TestCaseOperation1 with the addition of
// the ability to pass a context and additional request options.
//
// See InputService16TestCaseOperation1 for details on how to use this API operation.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
func (c *InputService16ProtocolTest) InputService16TestCaseOperation1WithContext(ctx aws.Context, input *InputService16TestShapeInputService16TestCaseOperation1Input, opts ...request.Option) (*InputService16TestShapeInputService16TestCaseOperation1Output, error) {
req, out := c.InputService16TestCaseOperation1Request(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
const opInputService16TestCaseOperation2 = "OperationName"
// InputService16TestCaseOperation2Request generates a "aws/request.Request" representing the
// client's request for the InputService16TestCaseOperation2 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 InputService16TestCaseOperation2 for more information on using the InputService16TestCaseOperation2
// 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 InputService16TestCaseOperation2Request method.
// req, resp := client.InputService16TestCaseOperation2Request(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
func (c *InputService16ProtocolTest) InputService16TestCaseOperation2Request(input *InputService16TestShapeInputService16TestCaseOperation2Input) (req *request.Request, output *InputService16TestShapeInputService16TestCaseOperation2Output) {
op := &request.Operation{
Name: opInputService16TestCaseOperation2,
HTTPMethod: "POST",
HTTPPath: "/path",
}
if input == nil {
input = &InputService16TestShapeInputService16TestCaseOperation2Input{}
}
output = &InputService16TestShapeInputService16TestCaseOperation2Output{}
req = c.newRequest(op, input, output)
req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
return
}
// InputService16TestCaseOperation2 API operation for .
//
// 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 's
// API operation InputService16TestCaseOperation2 for usage and error information.
func (c *InputService16ProtocolTest) InputService16TestCaseOperation2(input *InputService16TestShapeInputService16TestCaseOperation2Input) (*InputService16TestShapeInputService16TestCaseOperation2Output, error) {
req, out := c.InputService16TestCaseOperation2Request(input)
return out, req.Send()
}
// InputService16TestCaseOperation2WithContext is the same as InputService16TestCaseOperation2 with the addition of
// the ability to pass a context and additional request options.
//
// See InputService16TestCaseOperation2 for details on how to use this API operation.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
func (c *InputService16ProtocolTest) InputService16TestCaseOperation2WithContext(ctx aws.Context, input *InputService16TestShapeInputService16TestCaseOperation2Input, opts ...request.Option) (*InputService16TestShapeInputService16TestCaseOperation2Output, error) {
req, out := c.InputService16TestCaseOperation2Request(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
const opInputService16TestCaseOperation3 = "OperationName"
// InputService16TestCaseOperation3Request generates a "aws/request.Request" representing the
// client's request for the InputService16TestCaseOperation3 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 InputService16TestCaseOperation3 for more information on using the InputService16TestCaseOperation3
// 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 InputService16TestCaseOperation3Request method.
// req, resp := client.InputService16TestCaseOperation3Request(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
func (c *InputService16ProtocolTest) InputService16TestCaseOperation3Request(input *InputService16TestShapeInputService16TestCaseOperation3Input) (req *request.Request, output *InputService16TestShapeInputService16TestCaseOperation3Output) {
op := &request.Operation{
Name: opInputService16TestCaseOperation3,
HTTPMethod: "POST",
HTTPPath: "/path",
}
if input == nil {
input = &InputService16TestShapeInputService16TestCaseOperation3Input{}
}
output = &InputService16TestShapeInputService16TestCaseOperation3Output{}
req = c.newRequest(op, input, output)
req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
return
}
// InputService16TestCaseOperation3 API operation for .
//
// 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 's
// API operation InputService16TestCaseOperation3 for usage and error information.
func (c *InputService16ProtocolTest) InputService16TestCaseOperation3(input *InputService16TestShapeInputService16TestCaseOperation3Input) (*InputService16TestShapeInputService16TestCaseOperation3Output, error) {
req, out := c.InputService16TestCaseOperation3Request(input)
return out, req.Send()
}
// InputService16TestCaseOperation3WithContext is the same as InputService16TestCaseOperation3 with the addition of
// the ability to pass a context and additional request options.
//
// See InputService16TestCaseOperation3 for details on how to use this API operation.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
func (c *InputService16ProtocolTest) InputService16TestCaseOperation3WithContext(ctx aws.Context, input *InputService16TestShapeInputService16TestCaseOperation3Input, opts ...request.Option) (*InputService16TestShapeInputService16TestCaseOperation3Output, error) {
req, out := c.InputService16TestCaseOperation3Request(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
const opInputService16TestCaseOperation4 = "OperationName"
// InputService16TestCaseOperation4Request generates a "aws/request.Request" representing the
// client's request for the InputService16TestCaseOperation4 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 InputService16TestCaseOperation4 for more information on using the InputService16TestCaseOperation4
// 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 InputService16TestCaseOperation4Request method.
// req, resp := client.InputService16TestCaseOperation4Request(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
func (c *InputService16ProtocolTest) InputService16TestCaseOperation4Request(input *InputService16TestShapeInputService16TestCaseOperation4Input) (req *request.Request, output *InputService16TestShapeInputService16TestCaseOperation4Output) {
op := &request.Operation{
Name: opInputService16TestCaseOperation4,
HTTPMethod: "POST",
HTTPPath: "/path",
}
if input == nil {
input = &InputService16TestShapeInputService16TestCaseOperation4Input{}
}
output = &InputService16TestShapeInputService16TestCaseOperation4Output{}
req = c.newRequest(op, input, output)
req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
return
}
// InputService16TestCaseOperation4 API operation for .
//
// 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 's
// API operation InputService16TestCaseOperation4 for usage and error information.
func (c *InputService16ProtocolTest) InputService16TestCaseOperation4(input *InputService16TestShapeInputService16TestCaseOperation4Input) (*InputService16TestShapeInputService16TestCaseOperation4Output, error) {
req, out := c.InputService16TestCaseOperation4Request(input)
return out, req.Send()
}
// InputService16TestCaseOperation4WithContext is the same as InputService16TestCaseOperation4 with the addition of
// the ability to pass a context and additional request options.
//
// See InputService16TestCaseOperation4 for details on how to use this API operation.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
func (c *InputService16ProtocolTest) InputService16TestCaseOperation4WithContext(ctx aws.Context, input *InputService16TestShapeInputService16TestCaseOperation4Input, opts ...request.Option) (*InputService16TestShapeInputService16TestCaseOperation4Output, error) {
req, out := c.InputService16TestCaseOperation4Request(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
const opInputService16TestCaseOperation5 = "OperationName"
// InputService16TestCaseOperation5Request generates a "aws/request.Request" representing the
// client's request for the InputService16TestCaseOperation5 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 InputService16TestCaseOperation5 for more information on using the InputService16TestCaseOperation5
// 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 InputService16TestCaseOperation5Request method.
// req, resp := client.InputService16TestCaseOperation5Request(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
func (c *InputService16ProtocolTest) InputService16TestCaseOperation5Request(input *InputService16TestShapeInputService16TestCaseOperation5Input) (req *request.Request, output *InputService16TestShapeInputService16TestCaseOperation5Output) {
op := &request.Operation{
Name: opInputService16TestCaseOperation5,
HTTPMethod: "POST",
HTTPPath: "/path",
}
if input == nil {
input = &InputService16TestShapeInputService16TestCaseOperation5Input{}
}
output = &InputService16TestShapeInputService16TestCaseOperation5Output{}
req = c.newRequest(op, input, output)
req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
return
}
// InputService16TestCaseOperation5 API operation for .
//
// 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 's
// API operation InputService16TestCaseOperation5 for usage and error information.
func (c *InputService16ProtocolTest) InputService16TestCaseOperation5(input *InputService16TestShapeInputService16TestCaseOperation5Input) (*InputService16TestShapeInputService16TestCaseOperation5Output, error) {
req, out := c.InputService16TestCaseOperation5Request(input)
return out, req.Send()
}
// InputService16TestCaseOperation5WithContext is the same as InputService16TestCaseOperation5 with the addition of
// the ability to pass a context and additional request options.
//
// See InputService16TestCaseOperation5 for details on how to use this API operation.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
func (c *InputService16ProtocolTest) InputService16TestCaseOperation5WithContext(ctx aws.Context, input *InputService16TestShapeInputService16TestCaseOperation5Input, opts ...request.Option) (*InputService16TestShapeInputService16TestCaseOperation5Output, error) {
req, out := c.InputService16TestCaseOperation5Request(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
const opInputService16TestCaseOperation6 = "OperationName"
// InputService16TestCaseOperation6Request generates a "aws/request.Request" representing the
// client's request for the InputService16TestCaseOperation6 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 InputService16TestCaseOperation6 for more information on using the InputService16TestCaseOperation6
// 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 InputService16TestCaseOperation6Request method.
// req, resp := client.InputService16TestCaseOperation6Request(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
func (c *InputService16ProtocolTest) InputService16TestCaseOperation6Request(input *InputService16TestShapeInputService16TestCaseOperation6Input) (req *request.Request, output *InputService16TestShapeInputService16TestCaseOperation6Output) {
op := &request.Operation{
Name: opInputService16TestCaseOperation6,
HTTPMethod: "POST",
HTTPPath: "/path",
}
if input == nil {
input = &InputService16TestShapeInputService16TestCaseOperation6Input{}
}
output = &InputService16TestShapeInputService16TestCaseOperation6Output{}
req = c.newRequest(op, input, output)
req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
return
}
// InputService16TestCaseOperation6 API operation for .
//
// 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 's
// API operation InputService16TestCaseOperation6 for usage and error information.
func (c *InputService16ProtocolTest) InputService16TestCaseOperation6(input *InputService16TestShapeInputService16TestCaseOperation6Input) (*InputService16TestShapeInputService16TestCaseOperation6Output, error) {
req, out := c.InputService16TestCaseOperation6Request(input)
return out, req.Send()
}
// InputService16TestCaseOperation6WithContext is the same as InputService16TestCaseOperation6 with the addition of
// the ability to pass a context and additional request options.
//
// See InputService16TestCaseOperation6 for details on how to use this API operation.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
func (c *InputService16ProtocolTest) InputService16TestCaseOperation6WithContext(ctx aws.Context, input *InputService16TestShapeInputService16TestCaseOperation6Input, opts ...request.Option) (*InputService16TestShapeInputService16TestCaseOperation6Output, error) {
req, out := c.InputService16TestCaseOperation6Request(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
type InputService16TestShapeInputService16TestCaseOperation1Input struct {
_ struct{} `type:"structure"`
RecursiveStruct *InputService16TestShapeRecursiveStructType `type:"structure"`
}
// SetRecursiveStruct sets the RecursiveStruct field's value.
func (s *InputService16TestShapeInputService16TestCaseOperation1Input) SetRecursiveStruct(v *InputService16TestShapeRecursiveStructType) *InputService16TestShapeInputService16TestCaseOperation1Input {
s.RecursiveStruct = v
return s
}
type InputService16TestShapeInputService16TestCaseOperation1Output struct {
_ struct{} `type:"structure"`
}
type InputService16TestShapeInputService16TestCaseOperation2Input struct {
_ struct{} `type:"structure"`
RecursiveStruct *InputService16TestShapeRecursiveStructType `type:"structure"`
}
// SetRecursiveStruct sets the RecursiveStruct field's value.
func (s *InputService16TestShapeInputService16TestCaseOperation2Input) SetRecursiveStruct(v *InputService16TestShapeRecursiveStructType) *InputService16TestShapeInputService16TestCaseOperation2Input {
s.RecursiveStruct = v
return s
}
type InputService16TestShapeInputService16TestCaseOperation2Output struct {
_ struct{} `type:"structure"`
}
type InputService16TestShapeInputService16TestCaseOperation3Input struct {
_ struct{} `type:"structure"`
RecursiveStruct *InputService16TestShapeRecursiveStructType `type:"structure"`
}
// SetRecursiveStruct sets the RecursiveStruct field's value.
func (s *InputService16TestShapeInputService16TestCaseOperation3Input) SetRecursiveStruct(v *InputService16TestShapeRecursiveStructType) *InputService16TestShapeInputService16TestCaseOperation3Input {
s.RecursiveStruct = v
return s
}
type InputService16TestShapeInputService16TestCaseOperation3Output struct {
_ struct{} `type:"structure"`
}
type InputService16TestShapeInputService16TestCaseOperation4Input struct {
_ struct{} `type:"structure"`
RecursiveStruct *InputService16TestShapeRecursiveStructType `type:"structure"`
}
// SetRecursiveStruct sets the RecursiveStruct field's value.
func (s *InputService16TestShapeInputService16TestCaseOperation4Input) SetRecursiveStruct(v *InputService16TestShapeRecursiveStructType) *InputService16TestShapeInputService16TestCaseOperation4Input {
s.RecursiveStruct = v
return s
}
type InputService16TestShapeInputService16TestCaseOperation4Output struct {
_ struct{} `type:"structure"`
}
type InputService16TestShapeInputService16TestCaseOperation5Input struct {
_ struct{} `type:"structure"`
RecursiveStruct *InputService16TestShapeRecursiveStructType `type:"structure"`
}
// SetRecursiveStruct sets the RecursiveStruct field's value.
func (s *InputService16TestShapeInputService16TestCaseOperation5Input) SetRecursiveStruct(v *InputService16TestShapeRecursiveStructType) *InputService16TestShapeInputService16TestCaseOperation5Input {
s.RecursiveStruct = v
return s
}
type InputService16TestShapeInputService16TestCaseOperation5Output struct {
_ struct{} `type:"structure"`
}
type InputService16TestShapeInputService16TestCaseOperation6Input struct {
_ struct{} `type:"structure"`
RecursiveStruct *InputService16TestShapeRecursiveStructType `type:"structure"`
}
// SetRecursiveStruct sets the RecursiveStruct field's value.
func (s *InputService16TestShapeInputService16TestCaseOperation6Input) SetRecursiveStruct(v *InputService16TestShapeRecursiveStructType) *InputService16TestShapeInputService16TestCaseOperation6Input {
s.RecursiveStruct = v
return s
}
type InputService16TestShapeInputService16TestCaseOperation6Output struct {
_ struct{} `type:"structure"`
}
type InputService16TestShapeRecursiveStructType struct {
_ struct{} `type:"structure"`
NoRecurse *string `type:"string"`
RecursiveList []*InputService16TestShapeRecursiveStructType `type:"list"`
RecursiveMap map[string]*InputService16TestShapeRecursiveStructType `type:"map"`
RecursiveStruct *InputService16TestShapeRecursiveStructType `type:"structure"`
}
// SetNoRecurse sets the NoRecurse field's value.
func (s *InputService16TestShapeRecursiveStructType) SetNoRecurse(v string) *InputService16TestShapeRecursiveStructType {
s.NoRecurse = &v
return s
}
// SetRecursiveList sets the RecursiveList field's value.
func (s *InputService16TestShapeRecursiveStructType) SetRecursiveList(v []*InputService16TestShapeRecursiveStructType) *InputService16TestShapeRecursiveStructType {
s.RecursiveList = v
return s
}
// SetRecursiveMap sets the RecursiveMap field's value.
func (s *InputService16TestShapeRecursiveStructType) SetRecursiveMap(v map[string]*InputService16TestShapeRecursiveStructType) *InputService16TestShapeRecursiveStructType {
s.RecursiveMap = v
return s
}
// SetRecursiveStruct sets the RecursiveStruct field's value.
func (s *InputService16TestShapeRecursiveStructType) SetRecursiveStruct(v *InputService16TestShapeRecursiveStructType) *InputService16TestShapeRecursiveStructType {
s.RecursiveStruct = v
return s
}
// InputService17ProtocolTest provides the API operation methods for making requests to
// . See this package's package overview docs
// for details on the service.
//
// InputService17ProtocolTest methods are safe to use concurrently. It is not safe to
// modify mutate any of the struct's properties though.
type InputService17ProtocolTest struct {
*client.Client
}
// New creates a new instance of the InputService17ProtocolTest 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 InputService17ProtocolTest client from just a session.
// svc := inputservice17protocoltest.New(mySession)
//
// // Create a InputService17ProtocolTest client with additional configuration
// svc := inputservice17protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2"))
func NewInputService17ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *InputService17ProtocolTest {
c := p.ClientConfig("inputservice17protocoltest", cfgs...)
return newInputService17ProtocolTestClient(*c.Config, c.Handlers, c.PartitionID, c.Endpoint, c.SigningRegion, c.SigningName)
}
// newClient creates, initializes and returns a new service client instance.
func newInputService17ProtocolTestClient(cfg aws.Config, handlers request.Handlers, partitionID, endpoint, signingRegion, signingName string) *InputService17ProtocolTest {
svc := &InputService17ProtocolTest{
Client: client.New(
cfg,
metadata.ClientInfo{
ServiceName: "InputService17ProtocolTest",
ServiceID: "InputService17ProtocolTest",
SigningName: signingName,
SigningRegion: signingRegion,
PartitionID: partitionID,
Endpoint: endpoint,
APIVersion: "2014-01-01",
},
handlers,
),
}
// Handlers
svc.Handlers.Sign.PushBackNamed(v4.SignRequestHandler)
svc.Handlers.Build.PushBackNamed(restjson.BuildHandler)
svc.Handlers.Unmarshal.PushBackNamed(restjson.UnmarshalHandler)
svc.Handlers.UnmarshalMeta.PushBackNamed(restjson.UnmarshalMetaHandler)
svc.Handlers.UnmarshalError.PushBackNamed(restjson.UnmarshalErrorHandler)
return svc
}
// newRequest creates a new request for a InputService17ProtocolTest operation and runs any
// custom request initialization.
func (c *InputService17ProtocolTest) newRequest(op *request.Operation, params, data interface{}) *request.Request {
req := c.NewRequest(op, params, data)
return req
}
const opInputService17TestCaseOperation1 = "OperationName"
// InputService17TestCaseOperation1Request generates a "aws/request.Request" representing the
// client's request for the InputService17TestCaseOperation1 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 InputService17TestCaseOperation1 for more information on using the InputService17TestCaseOperation1
// 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 InputService17TestCaseOperation1Request method.
// req, resp := client.InputService17TestCaseOperation1Request(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
func (c *InputService17ProtocolTest) InputService17TestCaseOperation1Request(input *InputService17TestShapeInputService17TestCaseOperation1Input) (req *request.Request, output *InputService17TestShapeInputService17TestCaseOperation1Output) {
op := &request.Operation{
Name: opInputService17TestCaseOperation1,
HTTPMethod: "POST",
HTTPPath: "/path",
}
if input == nil {
input = &InputService17TestShapeInputService17TestCaseOperation1Input{}
}
output = &InputService17TestShapeInputService17TestCaseOperation1Output{}
req = c.newRequest(op, input, output)
req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
return
}
// InputService17TestCaseOperation1 API operation for .
//
// 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 's
// API operation InputService17TestCaseOperation1 for usage and error information.
func (c *InputService17ProtocolTest) InputService17TestCaseOperation1(input *InputService17TestShapeInputService17TestCaseOperation1Input) (*InputService17TestShapeInputService17TestCaseOperation1Output, error) {
req, out := c.InputService17TestCaseOperation1Request(input)
return out, req.Send()
}
// InputService17TestCaseOperation1WithContext is the same as InputService17TestCaseOperation1 with the addition of
// the ability to pass a context and additional request options.
//
// See InputService17TestCaseOperation1 for details on how to use this API operation.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
func (c *InputService17ProtocolTest) InputService17TestCaseOperation1WithContext(ctx aws.Context, input *InputService17TestShapeInputService17TestCaseOperation1Input, opts ...request.Option) (*InputService17TestShapeInputService17TestCaseOperation1Output, error) {
req, out := c.InputService17TestCaseOperation1Request(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
type InputService17TestShapeInputService17TestCaseOperation1Input struct {
_ struct{} `type:"structure"`
TimeArg *time.Time `type:"timestamp"`
TimeArgInHeader *time.Time `location:"header" locationName:"x-amz-timearg" type:"timestamp"`
TimeArgInQuery *time.Time `location:"querystring" locationName:"TimeQuery" type:"timestamp"`
TimeCustom *time.Time `type:"timestamp" timestampFormat:"iso8601"`
TimeCustomInHeader *time.Time `location:"header" locationName:"x-amz-timecustom-header" type:"timestamp" timestampFormat:"unixTimestamp"`
TimeCustomInQuery *time.Time `location:"querystring" locationName:"TimeCustomQuery" type:"timestamp" timestampFormat:"unixTimestamp"`
TimeFormat *time.Time `type:"timestamp" timestampFormat:"rfc822"`
TimeFormatInHeader *time.Time `location:"header" locationName:"x-amz-timeformat-header" type:"timestamp" timestampFormat:"unixTimestamp"`
TimeFormatInQuery *time.Time `location:"querystring" locationName:"TimeFormatQuery" type:"timestamp" timestampFormat:"unixTimestamp"`
}
// SetTimeArg sets the TimeArg field's value.
func (s *InputService17TestShapeInputService17TestCaseOperation1Input) SetTimeArg(v time.Time) *InputService17TestShapeInputService17TestCaseOperation1Input {
s.TimeArg = &v
return s
}
// SetTimeArgInHeader sets the TimeArgInHeader field's value.
func (s *InputService17TestShapeInputService17TestCaseOperation1Input) SetTimeArgInHeader(v time.Time) *InputService17TestShapeInputService17TestCaseOperation1Input {
s.TimeArgInHeader = &v
return s
}
// SetTimeArgInQuery sets the TimeArgInQuery field's value.
func (s *InputService17TestShapeInputService17TestCaseOperation1Input) SetTimeArgInQuery(v time.Time) *InputService17TestShapeInputService17TestCaseOperation1Input {
s.TimeArgInQuery = &v
return s
}
// SetTimeCustom sets the TimeCustom field's value.
func (s *InputService17TestShapeInputService17TestCaseOperation1Input) SetTimeCustom(v time.Time) *InputService17TestShapeInputService17TestCaseOperation1Input {
s.TimeCustom = &v
return s
}
// SetTimeCustomInHeader sets the TimeCustomInHeader field's value.
func (s *InputService17TestShapeInputService17TestCaseOperation1Input) SetTimeCustomInHeader(v time.Time) *InputService17TestShapeInputService17TestCaseOperation1Input {
s.TimeCustomInHeader = &v
return s
}
// SetTimeCustomInQuery sets the TimeCustomInQuery field's value.
func (s *InputService17TestShapeInputService17TestCaseOperation1Input) SetTimeCustomInQuery(v time.Time) *InputService17TestShapeInputService17TestCaseOperation1Input {
s.TimeCustomInQuery = &v
return s
}
// SetTimeFormat sets the TimeFormat field's value.
func (s *InputService17TestShapeInputService17TestCaseOperation1Input) SetTimeFormat(v time.Time) *InputService17TestShapeInputService17TestCaseOperation1Input {
s.TimeFormat = &v
return s
}
// SetTimeFormatInHeader sets the TimeFormatInHeader field's value.
func (s *InputService17TestShapeInputService17TestCaseOperation1Input) SetTimeFormatInHeader(v time.Time) *InputService17TestShapeInputService17TestCaseOperation1Input {
s.TimeFormatInHeader = &v
return s
}
// SetTimeFormatInQuery sets the TimeFormatInQuery field's value.
func (s *InputService17TestShapeInputService17TestCaseOperation1Input) SetTimeFormatInQuery(v time.Time) *InputService17TestShapeInputService17TestCaseOperation1Input {
s.TimeFormatInQuery = &v
return s
}
type InputService17TestShapeInputService17TestCaseOperation1Output struct {
_ struct{} `type:"structure"`
}
// InputService18ProtocolTest provides the API operation methods for making requests to
// . See this package's package overview docs
// for details on the service.
//
// InputService18ProtocolTest methods are safe to use concurrently. It is not safe to
// modify mutate any of the struct's properties though.
type InputService18ProtocolTest struct {
*client.Client
}
// New creates a new instance of the InputService18ProtocolTest 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 InputService18ProtocolTest client from just a session.
// svc := inputservice18protocoltest.New(mySession)
//
// // Create a InputService18ProtocolTest client with additional configuration
// svc := inputservice18protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2"))
func NewInputService18ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *InputService18ProtocolTest {
c := p.ClientConfig("inputservice18protocoltest", cfgs...)
return newInputService18ProtocolTestClient(*c.Config, c.Handlers, c.PartitionID, c.Endpoint, c.SigningRegion, c.SigningName)
}
// newClient creates, initializes and returns a new service client instance.
func newInputService18ProtocolTestClient(cfg aws.Config, handlers request.Handlers, partitionID, endpoint, signingRegion, signingName string) *InputService18ProtocolTest {
svc := &InputService18ProtocolTest{
Client: client.New(
cfg,
metadata.ClientInfo{
ServiceName: "InputService18ProtocolTest",
ServiceID: "InputService18ProtocolTest",
SigningName: signingName,
SigningRegion: signingRegion,
PartitionID: partitionID,
Endpoint: endpoint,
APIVersion: "2014-01-01",
},
handlers,
),
}
// Handlers
svc.Handlers.Sign.PushBackNamed(v4.SignRequestHandler)
svc.Handlers.Build.PushBackNamed(restjson.BuildHandler)
svc.Handlers.Unmarshal.PushBackNamed(restjson.UnmarshalHandler)
svc.Handlers.UnmarshalMeta.PushBackNamed(restjson.UnmarshalMetaHandler)
svc.Handlers.UnmarshalError.PushBackNamed(restjson.UnmarshalErrorHandler)
return svc
}
// newRequest creates a new request for a InputService18ProtocolTest operation and runs any
// custom request initialization.
func (c *InputService18ProtocolTest) newRequest(op *request.Operation, params, data interface{}) *request.Request {
req := c.NewRequest(op, params, data)
return req
}
const opInputService18TestCaseOperation1 = "OperationName"
// InputService18TestCaseOperation1Request generates a "aws/request.Request" representing the
// client's request for the InputService18TestCaseOperation1 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 InputService18TestCaseOperation1 for more information on using the InputService18TestCaseOperation1
// 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 InputService18TestCaseOperation1Request method.
// req, resp := client.InputService18TestCaseOperation1Request(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
func (c *InputService18ProtocolTest) InputService18TestCaseOperation1Request(input *InputService18TestShapeInputService18TestCaseOperation1Input) (req *request.Request, output *InputService18TestShapeInputService18TestCaseOperation1Output) {
op := &request.Operation{
Name: opInputService18TestCaseOperation1,
HTTPMethod: "POST",
HTTPPath: "/path",
}
if input == nil {
input = &InputService18TestShapeInputService18TestCaseOperation1Input{}
}
output = &InputService18TestShapeInputService18TestCaseOperation1Output{}
req = c.newRequest(op, input, output)
req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
return
}
// InputService18TestCaseOperation1 API operation for .
//
// 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 's
// API operation InputService18TestCaseOperation1 for usage and error information.
func (c *InputService18ProtocolTest) InputService18TestCaseOperation1(input *InputService18TestShapeInputService18TestCaseOperation1Input) (*InputService18TestShapeInputService18TestCaseOperation1Output, error) {
req, out := c.InputService18TestCaseOperation1Request(input)
return out, req.Send()
}
// InputService18TestCaseOperation1WithContext is the same as InputService18TestCaseOperation1 with the addition of
// the ability to pass a context and additional request options.
//
// See InputService18TestCaseOperation1 for details on how to use this API operation.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
func (c *InputService18ProtocolTest) InputService18TestCaseOperation1WithContext(ctx aws.Context, input *InputService18TestShapeInputService18TestCaseOperation1Input, opts ...request.Option) (*InputService18TestShapeInputService18TestCaseOperation1Output, error) {
req, out := c.InputService18TestCaseOperation1Request(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
type InputService18TestShapeInputService18TestCaseOperation1Input struct {
_ struct{} `type:"structure"`
TimeArg *time.Time `locationName:"timestamp_location" type:"timestamp"`
}
// SetTimeArg sets the TimeArg field's value.
func (s *InputService18TestShapeInputService18TestCaseOperation1Input) SetTimeArg(v time.Time) *InputService18TestShapeInputService18TestCaseOperation1Input {
s.TimeArg = &v
return s
}
type InputService18TestShapeInputService18TestCaseOperation1Output struct {
_ struct{} `type:"structure"`
}
// InputService19ProtocolTest provides the API operation methods for making requests to
// . See this package's package overview docs
// for details on the service.
//
// InputService19ProtocolTest methods are safe to use concurrently. It is not safe to
// modify mutate any of the struct's properties though.
type InputService19ProtocolTest struct {
*client.Client
}
// New creates a new instance of the InputService19ProtocolTest 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 InputService19ProtocolTest client from just a session.
// svc := inputservice19protocoltest.New(mySession)
//
// // Create a InputService19ProtocolTest client with additional configuration
// svc := inputservice19protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2"))
func NewInputService19ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *InputService19ProtocolTest {
c := p.ClientConfig("inputservice19protocoltest", cfgs...)
return newInputService19ProtocolTestClient(*c.Config, c.Handlers, c.PartitionID, c.Endpoint, c.SigningRegion, c.SigningName)
}
// newClient creates, initializes and returns a new service client instance.
func newInputService19ProtocolTestClient(cfg aws.Config, handlers request.Handlers, partitionID, endpoint, signingRegion, signingName string) *InputService19ProtocolTest {
svc := &InputService19ProtocolTest{
Client: client.New(
cfg,
metadata.ClientInfo{
ServiceName: "InputService19ProtocolTest",
ServiceID: "InputService19ProtocolTest",
SigningName: signingName,
SigningRegion: signingRegion,
PartitionID: partitionID,
Endpoint: endpoint,
APIVersion: "2014-01-01",
},
handlers,
),
}
// Handlers
svc.Handlers.Sign.PushBackNamed(v4.SignRequestHandler)
svc.Handlers.Build.PushBackNamed(restjson.BuildHandler)
svc.Handlers.Unmarshal.PushBackNamed(restjson.UnmarshalHandler)
svc.Handlers.UnmarshalMeta.PushBackNamed(restjson.UnmarshalMetaHandler)
svc.Handlers.UnmarshalError.PushBackNamed(restjson.UnmarshalErrorHandler)
return svc
}
// newRequest creates a new request for a InputService19ProtocolTest operation and runs any
// custom request initialization.
func (c *InputService19ProtocolTest) newRequest(op *request.Operation, params, data interface{}) *request.Request {
req := c.NewRequest(op, params, data)
return req
}
const opInputService19TestCaseOperation1 = "OperationName"
// InputService19TestCaseOperation1Request generates a "aws/request.Request" representing the
// client's request for the InputService19TestCaseOperation1 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 InputService19TestCaseOperation1 for more information on using the InputService19TestCaseOperation1
// 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 InputService19TestCaseOperation1Request method.
// req, resp := client.InputService19TestCaseOperation1Request(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
func (c *InputService19ProtocolTest) InputService19TestCaseOperation1Request(input *InputService19TestShapeInputService19TestCaseOperation1Input) (req *request.Request, output *InputService19TestShapeInputService19TestCaseOperation1Output) {
op := &request.Operation{
Name: opInputService19TestCaseOperation1,
HTTPMethod: "POST",
HTTPPath: "/",
}
if input == nil {
input = &InputService19TestShapeInputService19TestCaseOperation1Input{}
}
output = &InputService19TestShapeInputService19TestCaseOperation1Output{}
req = c.newRequest(op, input, output)
req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
return
}
// InputService19TestCaseOperation1 API operation for .
//
// 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 's
// API operation InputService19TestCaseOperation1 for usage and error information.
func (c *InputService19ProtocolTest) InputService19TestCaseOperation1(input *InputService19TestShapeInputService19TestCaseOperation1Input) (*InputService19TestShapeInputService19TestCaseOperation1Output, error) {
req, out := c.InputService19TestCaseOperation1Request(input)
return out, req.Send()
}
// InputService19TestCaseOperation1WithContext is the same as InputService19TestCaseOperation1 with the addition of
// the ability to pass a context and additional request options.
//
// See InputService19TestCaseOperation1 for details on how to use this API operation.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
func (c *InputService19ProtocolTest) InputService19TestCaseOperation1WithContext(ctx aws.Context, input *InputService19TestShapeInputService19TestCaseOperation1Input, opts ...request.Option) (*InputService19TestShapeInputService19TestCaseOperation1Output, error) {
req, out := c.InputService19TestCaseOperation1Request(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
type InputService19TestShapeInputService19TestCaseOperation1Input struct {
_ struct{} `type:"structure" payload:"Foo"`
Foo *string `locationName:"foo" type:"string"`
}
// SetFoo sets the Foo field's value.
func (s *InputService19TestShapeInputService19TestCaseOperation1Input) SetFoo(v string) *InputService19TestShapeInputService19TestCaseOperation1Input {
s.Foo = &v
return s
}
type InputService19TestShapeInputService19TestCaseOperation1Output struct {
_ struct{} `type:"structure"`
}
// InputService20ProtocolTest provides the API operation methods for making requests to
// . See this package's package overview docs
// for details on the service.
//
// InputService20ProtocolTest methods are safe to use concurrently. It is not safe to
// modify mutate any of the struct's properties though.
type InputService20ProtocolTest struct {
*client.Client
}
// New creates a new instance of the InputService20ProtocolTest 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 InputService20ProtocolTest client from just a session.
// svc := inputservice20protocoltest.New(mySession)
//
// // Create a InputService20ProtocolTest client with additional configuration
// svc := inputservice20protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2"))
func NewInputService20ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *InputService20ProtocolTest {
c := p.ClientConfig("inputservice20protocoltest", cfgs...)
return newInputService20ProtocolTestClient(*c.Config, c.Handlers, c.PartitionID, c.Endpoint, c.SigningRegion, c.SigningName)
}
// newClient creates, initializes and returns a new service client instance.
func newInputService20ProtocolTestClient(cfg aws.Config, handlers request.Handlers, partitionID, endpoint, signingRegion, signingName string) *InputService20ProtocolTest {
svc := &InputService20ProtocolTest{
Client: client.New(
cfg,
metadata.ClientInfo{
ServiceName: "InputService20ProtocolTest",
ServiceID: "InputService20ProtocolTest",
SigningName: signingName,
SigningRegion: signingRegion,
PartitionID: partitionID,
Endpoint: endpoint,
APIVersion: "2014-01-01",
},
handlers,
),
}
// Handlers
svc.Handlers.Sign.PushBackNamed(v4.SignRequestHandler)
svc.Handlers.Build.PushBackNamed(restjson.BuildHandler)
svc.Handlers.Unmarshal.PushBackNamed(restjson.UnmarshalHandler)
svc.Handlers.UnmarshalMeta.PushBackNamed(restjson.UnmarshalMetaHandler)
svc.Handlers.UnmarshalError.PushBackNamed(restjson.UnmarshalErrorHandler)
return svc
}
// newRequest creates a new request for a InputService20ProtocolTest operation and runs any
// custom request initialization.
func (c *InputService20ProtocolTest) newRequest(op *request.Operation, params, data interface{}) *request.Request {
req := c.NewRequest(op, params, data)
return req
}
const opInputService20TestCaseOperation1 = "OperationName"
// InputService20TestCaseOperation1Request generates a "aws/request.Request" representing the
// client's request for the InputService20TestCaseOperation1 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 InputService20TestCaseOperation1 for more information on using the InputService20TestCaseOperation1
// 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 InputService20TestCaseOperation1Request method.
// req, resp := client.InputService20TestCaseOperation1Request(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
func (c *InputService20ProtocolTest) InputService20TestCaseOperation1Request(input *InputService20TestShapeInputService20TestCaseOperation1Input) (req *request.Request, output *InputService20TestShapeInputService20TestCaseOperation1Output) {
op := &request.Operation{
Name: opInputService20TestCaseOperation1,
HTTPMethod: "POST",
HTTPPath: "/path",
}
if input == nil {
input = &InputService20TestShapeInputService20TestCaseOperation1Input{}
}
output = &InputService20TestShapeInputService20TestCaseOperation1Output{}
req = c.newRequest(op, input, output)
req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
return
}
// InputService20TestCaseOperation1 API operation for .
//
// 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 's
// API operation InputService20TestCaseOperation1 for usage and error information.
func (c *InputService20ProtocolTest) InputService20TestCaseOperation1(input *InputService20TestShapeInputService20TestCaseOperation1Input) (*InputService20TestShapeInputService20TestCaseOperation1Output, error) {
req, out := c.InputService20TestCaseOperation1Request(input)
return out, req.Send()
}
// InputService20TestCaseOperation1WithContext is the same as InputService20TestCaseOperation1 with the addition of
// the ability to pass a context and additional request options.
//
// See InputService20TestCaseOperation1 for details on how to use this API operation.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
func (c *InputService20ProtocolTest) InputService20TestCaseOperation1WithContext(ctx aws.Context, input *InputService20TestShapeInputService20TestCaseOperation1Input, opts ...request.Option) (*InputService20TestShapeInputService20TestCaseOperation1Output, error) {
req, out := c.InputService20TestCaseOperation1Request(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
const opInputService20TestCaseOperation2 = "OperationName"
// InputService20TestCaseOperation2Request generates a "aws/request.Request" representing the
// client's request for the InputService20TestCaseOperation2 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 InputService20TestCaseOperation2 for more information on using the InputService20TestCaseOperation2
// 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 InputService20TestCaseOperation2Request method.
// req, resp := client.InputService20TestCaseOperation2Request(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
func (c *InputService20ProtocolTest) InputService20TestCaseOperation2Request(input *InputService20TestShapeInputService20TestCaseOperation2Input) (req *request.Request, output *InputService20TestShapeInputService20TestCaseOperation2Output) {
op := &request.Operation{
Name: opInputService20TestCaseOperation2,
HTTPMethod: "POST",
HTTPPath: "/path",
}
if input == nil {
input = &InputService20TestShapeInputService20TestCaseOperation2Input{}
}
output = &InputService20TestShapeInputService20TestCaseOperation2Output{}
req = c.newRequest(op, input, output)
req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
return
}
// InputService20TestCaseOperation2 API operation for .
//
// 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 's
// API operation InputService20TestCaseOperation2 for usage and error information.
func (c *InputService20ProtocolTest) InputService20TestCaseOperation2(input *InputService20TestShapeInputService20TestCaseOperation2Input) (*InputService20TestShapeInputService20TestCaseOperation2Output, error) {
req, out := c.InputService20TestCaseOperation2Request(input)
return out, req.Send()
}
// InputService20TestCaseOperation2WithContext is the same as InputService20TestCaseOperation2 with the addition of
// the ability to pass a context and additional request options.
//
// See InputService20TestCaseOperation2 for details on how to use this API operation.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
func (c *InputService20ProtocolTest) InputService20TestCaseOperation2WithContext(ctx aws.Context, input *InputService20TestShapeInputService20TestCaseOperation2Input, opts ...request.Option) (*InputService20TestShapeInputService20TestCaseOperation2Output, error) {
req, out := c.InputService20TestCaseOperation2Request(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
type InputService20TestShapeInputService20TestCaseOperation1Input struct {
_ struct{} `type:"structure"`
Token *string `type:"string" idempotencyToken:"true"`
}
// SetToken sets the Token field's value.
func (s *InputService20TestShapeInputService20TestCaseOperation1Input) SetToken(v string) *InputService20TestShapeInputService20TestCaseOperation1Input {
s.Token = &v
return s
}
type InputService20TestShapeInputService20TestCaseOperation1Output struct {
_ struct{} `type:"structure"`
}
type InputService20TestShapeInputService20TestCaseOperation2Input struct {
_ struct{} `type:"structure"`
Token *string `type:"string" idempotencyToken:"true"`
}
// SetToken sets the Token field's value.
func (s *InputService20TestShapeInputService20TestCaseOperation2Input) SetToken(v string) *InputService20TestShapeInputService20TestCaseOperation2Input {
s.Token = &v
return s
}
type InputService20TestShapeInputService20TestCaseOperation2Output struct {
_ struct{} `type:"structure"`
}
// InputService21ProtocolTest provides the API operation methods for making requests to
// . See this package's package overview docs
// for details on the service.
//
// InputService21ProtocolTest methods are safe to use concurrently. It is not safe to
// modify mutate any of the struct's properties though.
type InputService21ProtocolTest struct {
*client.Client
}
// New creates a new instance of the InputService21ProtocolTest 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 InputService21ProtocolTest client from just a session.
// svc := inputservice21protocoltest.New(mySession)
//
// // Create a InputService21ProtocolTest client with additional configuration
// svc := inputservice21protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2"))
func NewInputService21ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *InputService21ProtocolTest {
c := p.ClientConfig("inputservice21protocoltest", cfgs...)
return newInputService21ProtocolTestClient(*c.Config, c.Handlers, c.PartitionID, c.Endpoint, c.SigningRegion, c.SigningName)
}
// newClient creates, initializes and returns a new service client instance.
func newInputService21ProtocolTestClient(cfg aws.Config, handlers request.Handlers, partitionID, endpoint, signingRegion, signingName string) *InputService21ProtocolTest {
svc := &InputService21ProtocolTest{
Client: client.New(
cfg,
metadata.ClientInfo{
ServiceName: "InputService21ProtocolTest",
ServiceID: "InputService21ProtocolTest",
SigningName: signingName,
SigningRegion: signingRegion,
PartitionID: partitionID,
Endpoint: endpoint,
APIVersion: "2014-01-01",
},
handlers,
),
}
// Handlers
svc.Handlers.Sign.PushBackNamed(v4.SignRequestHandler)
svc.Handlers.Build.PushBackNamed(restjson.BuildHandler)
svc.Handlers.Unmarshal.PushBackNamed(restjson.UnmarshalHandler)
svc.Handlers.UnmarshalMeta.PushBackNamed(restjson.UnmarshalMetaHandler)
svc.Handlers.UnmarshalError.PushBackNamed(restjson.UnmarshalErrorHandler)
return svc
}
// newRequest creates a new request for a InputService21ProtocolTest operation and runs any
// custom request initialization.
func (c *InputService21ProtocolTest) newRequest(op *request.Operation, params, data interface{}) *request.Request {
req := c.NewRequest(op, params, data)
return req
}
const opInputService21TestCaseOperation1 = "OperationName"
// InputService21TestCaseOperation1Request generates a "aws/request.Request" representing the
// client's request for the InputService21TestCaseOperation1 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 InputService21TestCaseOperation1 for more information on using the InputService21TestCaseOperation1
// 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 InputService21TestCaseOperation1Request method.
// req, resp := client.InputService21TestCaseOperation1Request(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
func (c *InputService21ProtocolTest) InputService21TestCaseOperation1Request(input *InputService21TestShapeInputService21TestCaseOperation1Input) (req *request.Request, output *InputService21TestShapeInputService21TestCaseOperation1Output) {
op := &request.Operation{
Name: opInputService21TestCaseOperation1,
HTTPMethod: "POST",
HTTPPath: "/",
}
if input == nil {
input = &InputService21TestShapeInputService21TestCaseOperation1Input{}
}
output = &InputService21TestShapeInputService21TestCaseOperation1Output{}
req = c.newRequest(op, input, output)
req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
return
}
// InputService21TestCaseOperation1 API operation for .
//
// 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 's
// API operation InputService21TestCaseOperation1 for usage and error information.
func (c *InputService21ProtocolTest) InputService21TestCaseOperation1(input *InputService21TestShapeInputService21TestCaseOperation1Input) (*InputService21TestShapeInputService21TestCaseOperation1Output, error) {
req, out := c.InputService21TestCaseOperation1Request(input)
return out, req.Send()
}
// InputService21TestCaseOperation1WithContext is the same as InputService21TestCaseOperation1 with the addition of
// the ability to pass a context and additional request options.
//
// See InputService21TestCaseOperation1 for details on how to use this API operation.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
func (c *InputService21ProtocolTest) InputService21TestCaseOperation1WithContext(ctx aws.Context, input *InputService21TestShapeInputService21TestCaseOperation1Input, opts ...request.Option) (*InputService21TestShapeInputService21TestCaseOperation1Output, error) {
req, out := c.InputService21TestCaseOperation1Request(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
const opInputService21TestCaseOperation2 = "OperationName"
// InputService21TestCaseOperation2Request generates a "aws/request.Request" representing the
// client's request for the InputService21TestCaseOperation2 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 InputService21TestCaseOperation2 for more information on using the InputService21TestCaseOperation2
// 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 InputService21TestCaseOperation2Request method.
// req, resp := client.InputService21TestCaseOperation2Request(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
func (c *InputService21ProtocolTest) InputService21TestCaseOperation2Request(input *InputService21TestShapeInputService21TestCaseOperation2Input) (req *request.Request, output *InputService21TestShapeInputService21TestCaseOperation2Output) {
op := &request.Operation{
Name: opInputService21TestCaseOperation2,
HTTPMethod: "POST",
HTTPPath: "/",
}
if input == nil {
input = &InputService21TestShapeInputService21TestCaseOperation2Input{}
}
output = &InputService21TestShapeInputService21TestCaseOperation2Output{}
req = c.newRequest(op, input, output)
req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
return
}
// InputService21TestCaseOperation2 API operation for .
//
// 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 's
// API operation InputService21TestCaseOperation2 for usage and error information.
func (c *InputService21ProtocolTest) InputService21TestCaseOperation2(input *InputService21TestShapeInputService21TestCaseOperation2Input) (*InputService21TestShapeInputService21TestCaseOperation2Output, error) {
req, out := c.InputService21TestCaseOperation2Request(input)
return out, req.Send()
}
// InputService21TestCaseOperation2WithContext is the same as InputService21TestCaseOperation2 with the addition of
// the ability to pass a context and additional request options.
//
// See InputService21TestCaseOperation2 for details on how to use this API operation.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
func (c *InputService21ProtocolTest) InputService21TestCaseOperation2WithContext(ctx aws.Context, input *InputService21TestShapeInputService21TestCaseOperation2Input, opts ...request.Option) (*InputService21TestShapeInputService21TestCaseOperation2Output, error) {
req, out := c.InputService21TestCaseOperation2Request(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
const opInputService21TestCaseOperation3 = "OperationName"
// InputService21TestCaseOperation3Request generates a "aws/request.Request" representing the
// client's request for the InputService21TestCaseOperation3 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 InputService21TestCaseOperation3 for more information on using the InputService21TestCaseOperation3
// 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 InputService21TestCaseOperation3Request method.
// req, resp := client.InputService21TestCaseOperation3Request(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
func (c *InputService21ProtocolTest) InputService21TestCaseOperation3Request(input *InputService21TestShapeInputService21TestCaseOperation3Input) (req *request.Request, output *InputService21TestShapeInputService21TestCaseOperation3Output) {
op := &request.Operation{
Name: opInputService21TestCaseOperation3,
HTTPMethod: "POST",
HTTPPath: "/",
}
if input == nil {
input = &InputService21TestShapeInputService21TestCaseOperation3Input{}
}
output = &InputService21TestShapeInputService21TestCaseOperation3Output{}
req = c.newRequest(op, input, output)
req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
return
}
// InputService21TestCaseOperation3 API operation for .
//
// 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 's
// API operation InputService21TestCaseOperation3 for usage and error information.
func (c *InputService21ProtocolTest) InputService21TestCaseOperation3(input *InputService21TestShapeInputService21TestCaseOperation3Input) (*InputService21TestShapeInputService21TestCaseOperation3Output, error) {
req, out := c.InputService21TestCaseOperation3Request(input)
return out, req.Send()
}
// InputService21TestCaseOperation3WithContext is the same as InputService21TestCaseOperation3 with the addition of
// the ability to pass a context and additional request options.
//
// See InputService21TestCaseOperation3 for details on how to use this API operation.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
func (c *InputService21ProtocolTest) InputService21TestCaseOperation3WithContext(ctx aws.Context, input *InputService21TestShapeInputService21TestCaseOperation3Input, opts ...request.Option) (*InputService21TestShapeInputService21TestCaseOperation3Output, error) {
req, out := c.InputService21TestCaseOperation3Request(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
type InputService21TestShapeBodyStructure struct {
_ struct{} `type:"structure"`
BodyField aws.JSONValue `type:"jsonvalue"`
BodyListField []aws.JSONValue `type:"list"`
}
// SetBodyField sets the BodyField field's value.
func (s *InputService21TestShapeBodyStructure) SetBodyField(v aws.JSONValue) *InputService21TestShapeBodyStructure {
s.BodyField = v
return s
}
// SetBodyListField sets the BodyListField field's value.
func (s *InputService21TestShapeBodyStructure) SetBodyListField(v []aws.JSONValue) *InputService21TestShapeBodyStructure {
s.BodyListField = v
return s
}
type InputService21TestShapeInputService21TestCaseOperation1Input struct {
_ struct{} `type:"structure" payload:"Body"`
Body *InputService21TestShapeBodyStructure `type:"structure"`
HeaderField aws.JSONValue `location:"header" locationName:"X-Amz-Foo" type:"jsonvalue"`
QueryField aws.JSONValue `location:"querystring" locationName:"Bar" type:"jsonvalue"`
}
// SetBody sets the Body field's value.
func (s *InputService21TestShapeInputService21TestCaseOperation1Input) SetBody(v *InputService21TestShapeBodyStructure) *InputService21TestShapeInputService21TestCaseOperation1Input {
s.Body = v
return s
}
// SetHeaderField sets the HeaderField field's value.
func (s *InputService21TestShapeInputService21TestCaseOperation1Input) SetHeaderField(v aws.JSONValue) *InputService21TestShapeInputService21TestCaseOperation1Input {
s.HeaderField = v
return s
}
// SetQueryField sets the QueryField field's value.
func (s *InputService21TestShapeInputService21TestCaseOperation1Input) SetQueryField(v aws.JSONValue) *InputService21TestShapeInputService21TestCaseOperation1Input {
s.QueryField = v
return s
}
type InputService21TestShapeInputService21TestCaseOperation1Output struct {
_ struct{} `type:"structure"`
}
type InputService21TestShapeInputService21TestCaseOperation2Input struct {
_ struct{} `type:"structure" payload:"Body"`
Body *InputService21TestShapeBodyStructure `type:"structure"`
HeaderField aws.JSONValue `location:"header" locationName:"X-Amz-Foo" type:"jsonvalue"`
QueryField aws.JSONValue `location:"querystring" locationName:"Bar" type:"jsonvalue"`
}
// SetBody sets the Body field's value.
func (s *InputService21TestShapeInputService21TestCaseOperation2Input) SetBody(v *InputService21TestShapeBodyStructure) *InputService21TestShapeInputService21TestCaseOperation2Input {
s.Body = v
return s
}
// SetHeaderField sets the HeaderField field's value.
func (s *InputService21TestShapeInputService21TestCaseOperation2Input) SetHeaderField(v aws.JSONValue) *InputService21TestShapeInputService21TestCaseOperation2Input {
s.HeaderField = v
return s
}
// SetQueryField sets the QueryField field's value.
func (s *InputService21TestShapeInputService21TestCaseOperation2Input) SetQueryField(v aws.JSONValue) *InputService21TestShapeInputService21TestCaseOperation2Input {
s.QueryField = v
return s
}
type InputService21TestShapeInputService21TestCaseOperation2Output struct {
_ struct{} `type:"structure"`
}
type InputService21TestShapeInputService21TestCaseOperation3Input struct {
_ struct{} `type:"structure" payload:"Body"`
Body *InputService21TestShapeBodyStructure `type:"structure"`
HeaderField aws.JSONValue `location:"header" locationName:"X-Amz-Foo" type:"jsonvalue"`
QueryField aws.JSONValue `location:"querystring" locationName:"Bar" type:"jsonvalue"`
}
// SetBody sets the Body field's value.
func (s *InputService21TestShapeInputService21TestCaseOperation3Input) SetBody(v *InputService21TestShapeBodyStructure) *InputService21TestShapeInputService21TestCaseOperation3Input {
s.Body = v
return s
}
// SetHeaderField sets the HeaderField field's value.
func (s *InputService21TestShapeInputService21TestCaseOperation3Input) SetHeaderField(v aws.JSONValue) *InputService21TestShapeInputService21TestCaseOperation3Input {
s.HeaderField = v
return s
}
// SetQueryField sets the QueryField field's value.
func (s *InputService21TestShapeInputService21TestCaseOperation3Input) SetQueryField(v aws.JSONValue) *InputService21TestShapeInputService21TestCaseOperation3Input {
s.QueryField = v
return s
}
type InputService21TestShapeInputService21TestCaseOperation3Output struct {
_ struct{} `type:"structure"`
}
// InputService22ProtocolTest provides the API operation methods for making requests to
// . See this package's package overview docs
// for details on the service.
//
// InputService22ProtocolTest methods are safe to use concurrently. It is not safe to
// modify mutate any of the struct's properties though.
type InputService22ProtocolTest struct {
*client.Client
}
// New creates a new instance of the InputService22ProtocolTest 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 InputService22ProtocolTest client from just a session.
// svc := inputservice22protocoltest.New(mySession)
//
// // Create a InputService22ProtocolTest client with additional configuration
// svc := inputservice22protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2"))
func NewInputService22ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *InputService22ProtocolTest {
c := p.ClientConfig("inputservice22protocoltest", cfgs...)
return newInputService22ProtocolTestClient(*c.Config, c.Handlers, c.PartitionID, c.Endpoint, c.SigningRegion, c.SigningName)
}
// newClient creates, initializes and returns a new service client instance.
func newInputService22ProtocolTestClient(cfg aws.Config, handlers request.Handlers, partitionID, endpoint, signingRegion, signingName string) *InputService22ProtocolTest {
svc := &InputService22ProtocolTest{
Client: client.New(
cfg,
metadata.ClientInfo{
ServiceName: "InputService22ProtocolTest",
ServiceID: "InputService22ProtocolTest",
SigningName: signingName,
SigningRegion: signingRegion,
PartitionID: partitionID,
Endpoint: endpoint,
APIVersion: "2014-01-01",
},
handlers,
),
}
// Handlers
svc.Handlers.Sign.PushBackNamed(v4.SignRequestHandler)
svc.Handlers.Build.PushBackNamed(restjson.BuildHandler)
svc.Handlers.Unmarshal.PushBackNamed(restjson.UnmarshalHandler)
svc.Handlers.UnmarshalMeta.PushBackNamed(restjson.UnmarshalMetaHandler)
svc.Handlers.UnmarshalError.PushBackNamed(restjson.UnmarshalErrorHandler)
return svc
}
// newRequest creates a new request for a InputService22ProtocolTest operation and runs any
// custom request initialization.
func (c *InputService22ProtocolTest) newRequest(op *request.Operation, params, data interface{}) *request.Request {
req := c.NewRequest(op, params, data)
return req
}
const opInputService22TestCaseOperation1 = "OperationName"
// InputService22TestCaseOperation1Request generates a "aws/request.Request" representing the
// client's request for the InputService22TestCaseOperation1 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 InputService22TestCaseOperation1 for more information on using the InputService22TestCaseOperation1
// 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 InputService22TestCaseOperation1Request method.
// req, resp := client.InputService22TestCaseOperation1Request(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
func (c *InputService22ProtocolTest) InputService22TestCaseOperation1Request(input *InputService22TestShapeInputService22TestCaseOperation1Input) (req *request.Request, output *InputService22TestShapeInputService22TestCaseOperation1Output) {
op := &request.Operation{
Name: opInputService22TestCaseOperation1,
HTTPMethod: "POST",
HTTPPath: "/path",
}
if input == nil {
input = &InputService22TestShapeInputService22TestCaseOperation1Input{}
}
output = &InputService22TestShapeInputService22TestCaseOperation1Output{}
req = c.newRequest(op, input, output)
req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
return
}
// InputService22TestCaseOperation1 API operation for .
//
// 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 's
// API operation InputService22TestCaseOperation1 for usage and error information.
func (c *InputService22ProtocolTest) InputService22TestCaseOperation1(input *InputService22TestShapeInputService22TestCaseOperation1Input) (*InputService22TestShapeInputService22TestCaseOperation1Output, error) {
req, out := c.InputService22TestCaseOperation1Request(input)
return out, req.Send()
}
// InputService22TestCaseOperation1WithContext is the same as InputService22TestCaseOperation1 with the addition of
// the ability to pass a context and additional request options.
//
// See InputService22TestCaseOperation1 for details on how to use this API operation.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
func (c *InputService22ProtocolTest) InputService22TestCaseOperation1WithContext(ctx aws.Context, input *InputService22TestShapeInputService22TestCaseOperation1Input, opts ...request.Option) (*InputService22TestShapeInputService22TestCaseOperation1Output, error) {
req, out := c.InputService22TestCaseOperation1Request(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
const opInputService22TestCaseOperation2 = "OperationName"
// InputService22TestCaseOperation2Request generates a "aws/request.Request" representing the
// client's request for the InputService22TestCaseOperation2 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 InputService22TestCaseOperation2 for more information on using the InputService22TestCaseOperation2
// 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 InputService22TestCaseOperation2Request method.
// req, resp := client.InputService22TestCaseOperation2Request(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
func (c *InputService22ProtocolTest) InputService22TestCaseOperation2Request(input *InputService22TestShapeInputService22TestCaseOperation2Input) (req *request.Request, output *InputService22TestShapeInputService22TestCaseOperation2Output) {
op := &request.Operation{
Name: opInputService22TestCaseOperation2,
HTTPMethod: "POST",
HTTPPath: "/path",
}
if input == nil {
input = &InputService22TestShapeInputService22TestCaseOperation2Input{}
}
output = &InputService22TestShapeInputService22TestCaseOperation2Output{}
req = c.newRequest(op, input, output)
req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
return
}
// InputService22TestCaseOperation2 API operation for .
//
// 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 's
// API operation InputService22TestCaseOperation2 for usage and error information.
func (c *InputService22ProtocolTest) InputService22TestCaseOperation2(input *InputService22TestShapeInputService22TestCaseOperation2Input) (*InputService22TestShapeInputService22TestCaseOperation2Output, error) {
req, out := c.InputService22TestCaseOperation2Request(input)
return out, req.Send()
}
// InputService22TestCaseOperation2WithContext is the same as InputService22TestCaseOperation2 with the addition of
// the ability to pass a context and additional request options.
//
// See InputService22TestCaseOperation2 for details on how to use this API operation.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
func (c *InputService22ProtocolTest) InputService22TestCaseOperation2WithContext(ctx aws.Context, input *InputService22TestShapeInputService22TestCaseOperation2Input, opts ...request.Option) (*InputService22TestShapeInputService22TestCaseOperation2Output, error) {
req, out := c.InputService22TestCaseOperation2Request(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
type InputService22TestShapeInputService22TestCaseOperation1Input struct {
_ struct{} `type:"structure"`
FooEnum *string `type:"string" enum:"InputService22TestShapeEnumType"`
HeaderEnum *string `location:"header" locationName:"x-amz-enum" type:"string" enum:"InputService22TestShapeEnumType"`
ListEnums []*string `type:"list"`
QueryFooEnum *string `location:"querystring" locationName:"Enum" type:"string" enum:"InputService22TestShapeEnumType"`
QueryListEnums []*string `location:"querystring" locationName:"List" type:"list"`
}
// SetFooEnum sets the FooEnum field's value.
func (s *InputService22TestShapeInputService22TestCaseOperation1Input) SetFooEnum(v string) *InputService22TestShapeInputService22TestCaseOperation1Input {
s.FooEnum = &v
return s
}
// SetHeaderEnum sets the HeaderEnum field's value.
func (s *InputService22TestShapeInputService22TestCaseOperation1Input) SetHeaderEnum(v string) *InputService22TestShapeInputService22TestCaseOperation1Input {
s.HeaderEnum = &v
return s
}
// SetListEnums sets the ListEnums field's value.
func (s *InputService22TestShapeInputService22TestCaseOperation1Input) SetListEnums(v []*string) *InputService22TestShapeInputService22TestCaseOperation1Input {
s.ListEnums = v
return s
}
// SetQueryFooEnum sets the QueryFooEnum field's value.
func (s *InputService22TestShapeInputService22TestCaseOperation1Input) SetQueryFooEnum(v string) *InputService22TestShapeInputService22TestCaseOperation1Input {
s.QueryFooEnum = &v
return s
}
// SetQueryListEnums sets the QueryListEnums field's value.
func (s *InputService22TestShapeInputService22TestCaseOperation1Input) SetQueryListEnums(v []*string) *InputService22TestShapeInputService22TestCaseOperation1Input {
s.QueryListEnums = v
return s
}
type InputService22TestShapeInputService22TestCaseOperation1Output struct {
_ struct{} `type:"structure"`
}
type InputService22TestShapeInputService22TestCaseOperation2Input struct {
_ struct{} `type:"structure"`
FooEnum *string `type:"string" enum:"InputService22TestShapeEnumType"`
HeaderEnum *string `location:"header" locationName:"x-amz-enum" type:"string" enum:"InputService22TestShapeEnumType"`
ListEnums []*string `type:"list"`
QueryFooEnum *string `location:"querystring" locationName:"Enum" type:"string" enum:"InputService22TestShapeEnumType"`
QueryListEnums []*string `location:"querystring" locationName:"List" type:"list"`
}
// SetFooEnum sets the FooEnum field's value.
func (s *InputService22TestShapeInputService22TestCaseOperation2Input) SetFooEnum(v string) *InputService22TestShapeInputService22TestCaseOperation2Input {
s.FooEnum = &v
return s
}
// SetHeaderEnum sets the HeaderEnum field's value.
func (s *InputService22TestShapeInputService22TestCaseOperation2Input) SetHeaderEnum(v string) *InputService22TestShapeInputService22TestCaseOperation2Input {
s.HeaderEnum = &v
return s
}
// SetListEnums sets the ListEnums field's value.
func (s *InputService22TestShapeInputService22TestCaseOperation2Input) SetListEnums(v []*string) *InputService22TestShapeInputService22TestCaseOperation2Input {
s.ListEnums = v
return s
}
// SetQueryFooEnum sets the QueryFooEnum field's value.
func (s *InputService22TestShapeInputService22TestCaseOperation2Input) SetQueryFooEnum(v string) *InputService22TestShapeInputService22TestCaseOperation2Input {
s.QueryFooEnum = &v
return s
}
// SetQueryListEnums sets the QueryListEnums field's value.
func (s *InputService22TestShapeInputService22TestCaseOperation2Input) SetQueryListEnums(v []*string) *InputService22TestShapeInputService22TestCaseOperation2Input {
s.QueryListEnums = v
return s
}
type InputService22TestShapeInputService22TestCaseOperation2Output struct {
_ struct{} `type:"structure"`
}
const (
// EnumTypeFoo is a InputService22TestShapeEnumType enum value
EnumTypeFoo = "foo"
// EnumTypeBar is a InputService22TestShapeEnumType enum value
EnumTypeBar = "bar"
// EnumType0 is a InputService22TestShapeEnumType enum value
EnumType0 = "0"
// EnumType1 is a InputService22TestShapeEnumType enum value
EnumType1 = "1"
)
// InputService22TestShapeEnumType_Values returns all elements of the InputService22TestShapeEnumType enum
func InputService22TestShapeEnumType_Values() []string {
return []string{
EnumTypeFoo,
EnumTypeBar,
EnumType0,
EnumType1,
}
}
// InputService23ProtocolTest provides the API operation methods for making requests to
// . See this package's package overview docs
// for details on the service.
//
// InputService23ProtocolTest methods are safe to use concurrently. It is not safe to
// modify mutate any of the struct's properties though.
type InputService23ProtocolTest struct {
*client.Client
}
// New creates a new instance of the InputService23ProtocolTest 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 InputService23ProtocolTest client from just a session.
// svc := inputservice23protocoltest.New(mySession)
//
// // Create a InputService23ProtocolTest client with additional configuration
// svc := inputservice23protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2"))
func NewInputService23ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *InputService23ProtocolTest {
c := p.ClientConfig("inputservice23protocoltest", cfgs...)
return newInputService23ProtocolTestClient(*c.Config, c.Handlers, c.PartitionID, c.Endpoint, c.SigningRegion, c.SigningName)
}
// newClient creates, initializes and returns a new service client instance.
func newInputService23ProtocolTestClient(cfg aws.Config, handlers request.Handlers, partitionID, endpoint, signingRegion, signingName string) *InputService23ProtocolTest {
svc := &InputService23ProtocolTest{
Client: client.New(
cfg,
metadata.ClientInfo{
ServiceName: "InputService23ProtocolTest",
ServiceID: "InputService23ProtocolTest",
SigningName: signingName,
SigningRegion: signingRegion,
PartitionID: partitionID,
Endpoint: endpoint,
APIVersion: "2014-01-01",
},
handlers,
),
}
// Handlers
svc.Handlers.Sign.PushBackNamed(v4.SignRequestHandler)
svc.Handlers.Build.PushBackNamed(restjson.BuildHandler)
svc.Handlers.Unmarshal.PushBackNamed(restjson.UnmarshalHandler)
svc.Handlers.UnmarshalMeta.PushBackNamed(restjson.UnmarshalMetaHandler)
svc.Handlers.UnmarshalError.PushBackNamed(restjson.UnmarshalErrorHandler)
return svc
}
// newRequest creates a new request for a InputService23ProtocolTest operation and runs any
// custom request initialization.
func (c *InputService23ProtocolTest) newRequest(op *request.Operation, params, data interface{}) *request.Request {
req := c.NewRequest(op, params, data)
return req
}
const opInputService23TestCaseOperation1 = "StaticOp"
// InputService23TestCaseOperation1Request generates a "aws/request.Request" representing the
// client's request for the InputService23TestCaseOperation1 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 InputService23TestCaseOperation1 for more information on using the InputService23TestCaseOperation1
// 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 InputService23TestCaseOperation1Request method.
// req, resp := client.InputService23TestCaseOperation1Request(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
func (c *InputService23ProtocolTest) InputService23TestCaseOperation1Request(input *InputService23TestShapeInputService23TestCaseOperation1Input) (req *request.Request, output *InputService23TestShapeInputService23TestCaseOperation1Output) {
op := &request.Operation{
Name: opInputService23TestCaseOperation1,
HTTPMethod: "POST",
HTTPPath: "/path",
}
if input == nil {
input = &InputService23TestShapeInputService23TestCaseOperation1Input{}
}
output = &InputService23TestShapeInputService23TestCaseOperation1Output{}
req = c.newRequest(op, input, output)
req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
req.Handlers.Build.PushBackNamed(protocol.NewHostPrefixHandler("data-", nil))
req.Handlers.Build.PushBackNamed(protocol.ValidateEndpointHostHandler)
return
}
// InputService23TestCaseOperation1 API operation for .
//
// 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 's
// API operation InputService23TestCaseOperation1 for usage and error information.
func (c *InputService23ProtocolTest) InputService23TestCaseOperation1(input *InputService23TestShapeInputService23TestCaseOperation1Input) (*InputService23TestShapeInputService23TestCaseOperation1Output, error) {
req, out := c.InputService23TestCaseOperation1Request(input)
return out, req.Send()
}
// InputService23TestCaseOperation1WithContext is the same as InputService23TestCaseOperation1 with the addition of
// the ability to pass a context and additional request options.
//
// See InputService23TestCaseOperation1 for details on how to use this API operation.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
func (c *InputService23ProtocolTest) InputService23TestCaseOperation1WithContext(ctx aws.Context, input *InputService23TestShapeInputService23TestCaseOperation1Input, opts ...request.Option) (*InputService23TestShapeInputService23TestCaseOperation1Output, error) {
req, out := c.InputService23TestCaseOperation1Request(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
const opInputService23TestCaseOperation2 = "MemberRefOp"
// InputService23TestCaseOperation2Request generates a "aws/request.Request" representing the
// client's request for the InputService23TestCaseOperation2 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 InputService23TestCaseOperation2 for more information on using the InputService23TestCaseOperation2
// 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 InputService23TestCaseOperation2Request method.
// req, resp := client.InputService23TestCaseOperation2Request(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
func (c *InputService23ProtocolTest) InputService23TestCaseOperation2Request(input *InputService23TestShapeInputService23TestCaseOperation2Input) (req *request.Request, output *InputService23TestShapeInputService23TestCaseOperation2Output) {
op := &request.Operation{
Name: opInputService23TestCaseOperation2,
HTTPMethod: "POST",
HTTPPath: "/path",
}
if input == nil {
input = &InputService23TestShapeInputService23TestCaseOperation2Input{}
}
output = &InputService23TestShapeInputService23TestCaseOperation2Output{}
req = c.newRequest(op, input, output)
req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
req.Handlers.Build.PushBackNamed(protocol.NewHostPrefixHandler("foo-{Name}.", input.hostLabels))
req.Handlers.Build.PushBackNamed(protocol.ValidateEndpointHostHandler)
return
}
// InputService23TestCaseOperation2 API operation for .
//
// 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 's
// API operation InputService23TestCaseOperation2 for usage and error information.
func (c *InputService23ProtocolTest) InputService23TestCaseOperation2(input *InputService23TestShapeInputService23TestCaseOperation2Input) (*InputService23TestShapeInputService23TestCaseOperation2Output, error) {
req, out := c.InputService23TestCaseOperation2Request(input)
return out, req.Send()
}
// InputService23TestCaseOperation2WithContext is the same as InputService23TestCaseOperation2 with the addition of
// the ability to pass a context and additional request options.
//
// See InputService23TestCaseOperation2 for details on how to use this API operation.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
func (c *InputService23ProtocolTest) InputService23TestCaseOperation2WithContext(ctx aws.Context, input *InputService23TestShapeInputService23TestCaseOperation2Input, opts ...request.Option) (*InputService23TestShapeInputService23TestCaseOperation2Output, error) {
req, out := c.InputService23TestCaseOperation2Request(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
type InputService23TestShapeInputService23TestCaseOperation1Input struct {
_ struct{} `type:"structure"`
Name *string `type:"string"`
}
// SetName sets the Name field's value.
func (s *InputService23TestShapeInputService23TestCaseOperation1Input) SetName(v string) *InputService23TestShapeInputService23TestCaseOperation1Input {
s.Name = &v
return s
}
type InputService23TestShapeInputService23TestCaseOperation1Output struct {
_ struct{} `type:"structure"`
}
type InputService23TestShapeInputService23TestCaseOperation2Input struct {
_ struct{} `type:"structure"`
// Name is a required field
Name *string `type:"string" required:"true"`
}
// Validate inspects the fields of the type to determine if they are valid.
func (s *InputService23TestShapeInputService23TestCaseOperation2Input) Validate() error {
invalidParams := request.ErrInvalidParams{Context: "InputService23TestShapeInputService23TestCaseOperation2Input"}
if s.Name == nil {
invalidParams.Add(request.NewErrParamRequired("Name"))
}
if s.Name != nil && len(*s.Name) < 1 {
invalidParams.Add(request.NewErrParamMinLen("Name", 1))
}
if invalidParams.Len() > 0 {
return invalidParams
}
return nil
}
// SetName sets the Name field's value.
func (s *InputService23TestShapeInputService23TestCaseOperation2Input) SetName(v string) *InputService23TestShapeInputService23TestCaseOperation2Input {
s.Name = &v
return s
}
func (s *InputService23TestShapeInputService23TestCaseOperation2Input) hostLabels() map[string]string {
return map[string]string{
"Name": aws.StringValue(s.Name),
}
}
type InputService23TestShapeInputService23TestCaseOperation2Output struct {
_ struct{} `type:"structure"`
}
// InputService24ProtocolTest provides the API operation methods for making requests to
// . See this package's package overview docs
// for details on the service.
//
// InputService24ProtocolTest methods are safe to use concurrently. It is not safe to
// modify mutate any of the struct's properties though.
type InputService24ProtocolTest struct {
*client.Client
}
// New creates a new instance of the InputService24ProtocolTest 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 InputService24ProtocolTest client from just a session.
// svc := inputservice24protocoltest.New(mySession)
//
// // Create a InputService24ProtocolTest client with additional configuration
// svc := inputservice24protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2"))
func NewInputService24ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *InputService24ProtocolTest {
c := p.ClientConfig("inputservice24protocoltest", cfgs...)
return newInputService24ProtocolTestClient(*c.Config, c.Handlers, c.PartitionID, c.Endpoint, c.SigningRegion, c.SigningName)
}
// newClient creates, initializes and returns a new service client instance.
func newInputService24ProtocolTestClient(cfg aws.Config, handlers request.Handlers, partitionID, endpoint, signingRegion, signingName string) *InputService24ProtocolTest {
svc := &InputService24ProtocolTest{
Client: client.New(
cfg,
metadata.ClientInfo{
ServiceName: "InputService24ProtocolTest",
ServiceID: "InputService24ProtocolTest",
SigningName: signingName,
SigningRegion: signingRegion,
PartitionID: partitionID,
Endpoint: endpoint,
APIVersion: "2014-01-01",
},
handlers,
),
}
// Handlers
svc.Handlers.Sign.PushBackNamed(v4.SignRequestHandler)
svc.Handlers.Build.PushBackNamed(restjson.BuildHandler)
svc.Handlers.Unmarshal.PushBackNamed(restjson.UnmarshalHandler)
svc.Handlers.UnmarshalMeta.PushBackNamed(restjson.UnmarshalMetaHandler)
svc.Handlers.UnmarshalError.PushBackNamed(restjson.UnmarshalErrorHandler)
return svc
}
// newRequest creates a new request for a InputService24ProtocolTest operation and runs any
// custom request initialization.
func (c *InputService24ProtocolTest) newRequest(op *request.Operation, params, data interface{}) *request.Request {
req := c.NewRequest(op, params, data)
return req
}
const opInputService24TestCaseOperation1 = "OperationName"
// InputService24TestCaseOperation1Request generates a "aws/request.Request" representing the
// client's request for the InputService24TestCaseOperation1 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 InputService24TestCaseOperation1 for more information on using the InputService24TestCaseOperation1
// 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 InputService24TestCaseOperation1Request method.
// req, resp := client.InputService24TestCaseOperation1Request(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
func (c *InputService24ProtocolTest) InputService24TestCaseOperation1Request(input *InputService24TestShapeInputService24TestCaseOperation1Input) (req *request.Request, output *InputService24TestShapeInputService24TestCaseOperation1Output) {
op := &request.Operation{
Name: opInputService24TestCaseOperation1,
HTTPMethod: "GET",
HTTPPath: "/",
}
if input == nil {
input = &InputService24TestShapeInputService24TestCaseOperation1Input{}
}
output = &InputService24TestShapeInputService24TestCaseOperation1Output{}
req = c.newRequest(op, input, output)
req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
return
}
// InputService24TestCaseOperation1 API operation for .
//
// 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 's
// API operation InputService24TestCaseOperation1 for usage and error information.
func (c *InputService24ProtocolTest) InputService24TestCaseOperation1(input *InputService24TestShapeInputService24TestCaseOperation1Input) (*InputService24TestShapeInputService24TestCaseOperation1Output, error) {
req, out := c.InputService24TestCaseOperation1Request(input)
return out, req.Send()
}
// InputService24TestCaseOperation1WithContext is the same as InputService24TestCaseOperation1 with the addition of
// the ability to pass a context and additional request options.
//
// See InputService24TestCaseOperation1 for details on how to use this API operation.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
func (c *InputService24ProtocolTest) InputService24TestCaseOperation1WithContext(ctx aws.Context, input *InputService24TestShapeInputService24TestCaseOperation1Input, opts ...request.Option) (*InputService24TestShapeInputService24TestCaseOperation1Output, error) {
req, out := c.InputService24TestCaseOperation1Request(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
type InputService24TestShapeInputService24TestCaseOperation1Input struct {
_ struct{} `type:"structure"`
Header1 *string `location:"header" type:"string"`
HeaderMap map[string]*string `location:"headers" locationName:"header-map-" type:"map"`
}
// SetHeader1 sets the Header1 field's value.
func (s *InputService24TestShapeInputService24TestCaseOperation1Input) SetHeader1(v string) *InputService24TestShapeInputService24TestCaseOperation1Input {
s.Header1 = &v
return s
}
// SetHeaderMap sets the HeaderMap field's value.
func (s *InputService24TestShapeInputService24TestCaseOperation1Input) SetHeaderMap(v map[string]*string) *InputService24TestShapeInputService24TestCaseOperation1Input {
s.HeaderMap = v
return s
}
type InputService24TestShapeInputService24TestCaseOperation1Output struct {
_ struct{} `type:"structure"`
}
//
// Tests begin here
//
func TestInputService1ProtocolTestNoParametersCase1(t *testing.T) {
svc := NewInputService1ProtocolTest(unit.Session, &aws.Config{Endpoint: aws.String("https://test")})
req, _ := svc.InputService1TestCaseOperation1Request(nil)
r := req.HTTPRequest
// build request
req.Build()
if req.Error != nil {
t.Errorf("expect no error, got %v", req.Error)
}
// assert URL
awstesting.AssertURL(t, "https://test/2014-01-01/jobs", r.URL.String())
// assert headers
}
func TestInputService2ProtocolTestURIParameterOnlyWithNoLocationNameCase1(t *testing.T) {
svc := NewInputService2ProtocolTest(unit.Session, &aws.Config{Endpoint: aws.String("https://test")})
input := &InputService2TestShapeInputService2TestCaseOperation1Input{
PipelineId: aws.String("foo"),
}
req, _ := svc.InputService2TestCaseOperation1Request(input)
r := req.HTTPRequest
// build request
req.Build()
if req.Error != nil {
t.Errorf("expect no error, got %v", req.Error)
}
// assert URL
awstesting.AssertURL(t, "https://test/2014-01-01/jobsByPipeline/foo", r.URL.String())
// assert headers
}
func TestInputService3ProtocolTestURIParameterOnlyWithLocationNameCase1(t *testing.T) {
svc := NewInputService3ProtocolTest(unit.Session, &aws.Config{Endpoint: aws.String("https://test")})
input := &InputService3TestShapeInputService3TestCaseOperation1Input{
Foo: aws.String("bar"),
}
req, _ := svc.InputService3TestCaseOperation1Request(input)
r := req.HTTPRequest
// build request
req.Build()
if req.Error != nil {
t.Errorf("expect no error, got %v", req.Error)
}
// assert URL
awstesting.AssertURL(t, "https://test/2014-01-01/jobsByPipeline/bar", r.URL.String())
// assert headers
}
func TestInputService4ProtocolTestQuerystringListOfStringsCase1(t *testing.T) {
svc := NewInputService4ProtocolTest(unit.Session, &aws.Config{Endpoint: aws.String("https://test")})
input := &InputService4TestShapeInputService4TestCaseOperation1Input{
Items: []*string{
aws.String("value1"),
aws.String("value2"),
},
}
req, _ := svc.InputService4TestCaseOperation1Request(input)
r := req.HTTPRequest
// build request
req.Build()
if req.Error != nil {
t.Errorf("expect no error, got %v", req.Error)
}
// assert URL
awstesting.AssertURL(t, "https://test/path?item=value1&item=value2", r.URL.String())
// assert headers
}
func TestInputService5ProtocolTestStringToStringMapsInQuerystringCase1(t *testing.T) {
svc := NewInputService5ProtocolTest(unit.Session, &aws.Config{Endpoint: aws.String("https://test")})
input := &InputService5TestShapeInputService5TestCaseOperation1Input{
PipelineId: aws.String("foo"),
QueryDoc: map[string]*string{
"bar": aws.String("baz"),
"fizz": aws.String("buzz"),
},
}
req, _ := svc.InputService5TestCaseOperation1Request(input)
r := req.HTTPRequest
// build request
req.Build()
if req.Error != nil {
t.Errorf("expect no error, got %v", req.Error)
}
// assert URL
awstesting.AssertURL(t, "https://test/2014-01-01/jobsByPipeline/foo?bar=baz&fizz=buzz", r.URL.String())
// assert headers
}
func TestInputService6ProtocolTestStringToStringListMapsInQuerystringCase1(t *testing.T) {
svc := NewInputService6ProtocolTest(unit.Session, &aws.Config{Endpoint: aws.String("https://test")})
input := &InputService6TestShapeInputService6TestCaseOperation1Input{
PipelineId: aws.String("id"),
QueryDoc: map[string][]*string{
"fizz": {
aws.String("buzz"),
aws.String("pop"),
},
"foo": {
aws.String("bar"),
aws.String("baz"),
},
},
}
req, _ := svc.InputService6TestCaseOperation1Request(input)
r := req.HTTPRequest
// build request
req.Build()
if req.Error != nil {
t.Errorf("expect no error, got %v", req.Error)
}
// assert URL
awstesting.AssertURL(t, "https://test/2014-01-01/jobsByPipeline/id?foo=bar&foo=baz&fizz=buzz&fizz=pop", r.URL.String())
// assert headers
}
func TestInputService7ProtocolTestBooleanInQuerystringCase1(t *testing.T) {
svc := NewInputService7ProtocolTest(unit.Session, &aws.Config{Endpoint: aws.String("https://test")})
input := &InputService7TestShapeInputService7TestCaseOperation1Input{
BoolQuery: aws.Bool(true),
}
req, _ := svc.InputService7TestCaseOperation1Request(input)
r := req.HTTPRequest
// build request
req.Build()
if req.Error != nil {
t.Errorf("expect no error, got %v", req.Error)
}
// assert URL
awstesting.AssertURL(t, "https://test/path?bool-query=true", r.URL.String())
// assert headers
}
func TestInputService7ProtocolTestBooleanInQuerystringCase2(t *testing.T) {
svc := NewInputService7ProtocolTest(unit.Session, &aws.Config{Endpoint: aws.String("https://test")})
input := &InputService7TestShapeInputService7TestCaseOperation2Input{
BoolQuery: aws.Bool(false),
}
req, _ := svc.InputService7TestCaseOperation2Request(input)
r := req.HTTPRequest
// build request
req.Build()
if req.Error != nil {
t.Errorf("expect no error, got %v", req.Error)
}
// assert URL
awstesting.AssertURL(t, "https://test/path?bool-query=false", r.URL.String())
// assert headers
}
func TestInputService8ProtocolTestURIParameterAndQuerystringParamsCase1(t *testing.T) {
svc := NewInputService8ProtocolTest(unit.Session, &aws.Config{Endpoint: aws.String("https://test")})
input := &InputService8TestShapeInputService8TestCaseOperation1Input{
Ascending: aws.String("true"),
PageToken: aws.String("bar"),
PipelineId: aws.String("foo"),
}
req, _ := svc.InputService8TestCaseOperation1Request(input)
r := req.HTTPRequest
// build request
req.Build()
if req.Error != nil {
t.Errorf("expect no error, got %v", req.Error)
}
// assert URL
awstesting.AssertURL(t, "https://test/2014-01-01/jobsByPipeline/foo?Ascending=true&PageToken=bar", r.URL.String())
// assert headers
}
func TestInputService9ProtocolTestURIParameterQuerystringParamsAndJSONBodyCase1(t *testing.T) {
svc := NewInputService9ProtocolTest(unit.Session, &aws.Config{Endpoint: aws.String("https://test")})
input := &InputService9TestShapeInputService9TestCaseOperation1Input{
Ascending: aws.String("true"),
Config: &InputService9TestShapeStructType{
A: aws.String("one"),
B: aws.String("two"),
},
PageToken: aws.String("bar"),
PipelineId: aws.String("foo"),
}
req, _ := svc.InputService9TestCaseOperation1Request(input)
r := req.HTTPRequest
// build request
req.Build()
if req.Error != nil {
t.Errorf("expect no error, got %v", req.Error)
}
// assert body
if r.Body == nil {
t.Errorf("expect body not to be nil")
}
body, _ := ioutil.ReadAll(r.Body)
awstesting.AssertJSON(t, `{"Config": {"A": "one", "B": "two"}}`, util.Trim(string(body)))
// assert URL
awstesting.AssertURL(t, "https://test/2014-01-01/jobsByPipeline/foo?Ascending=true&PageToken=bar", r.URL.String())
// assert headers
if e, a := "application/json", r.Header.Get("Content-Type"); e != a {
t.Errorf("expect %v, got %v", e, a)
}
}
func TestInputService10ProtocolTestURIParameterQuerystringParamsHeadersAndJSONBodyCase1(t *testing.T) {
svc := NewInputService10ProtocolTest(unit.Session, &aws.Config{Endpoint: aws.String("https://test")})
input := &InputService10TestShapeInputService10TestCaseOperation1Input{
Ascending: aws.String("true"),
Checksum: aws.String("12345"),
Config: &InputService10TestShapeStructType{
A: aws.String("one"),
B: aws.String("two"),
},
PageToken: aws.String("bar"),
PipelineId: aws.String("foo"),
}
req, _ := svc.InputService10TestCaseOperation1Request(input)
r := req.HTTPRequest
// build request
req.Build()
if req.Error != nil {
t.Errorf("expect no error, got %v", req.Error)
}
// assert body
if r.Body == nil {
t.Errorf("expect body not to be nil")
}
body, _ := ioutil.ReadAll(r.Body)
awstesting.AssertJSON(t, `{"Config": {"A": "one", "B": "two"}}`, util.Trim(string(body)))
// assert URL
awstesting.AssertURL(t, "https://test/2014-01-01/jobsByPipeline/foo?Ascending=true&PageToken=bar", r.URL.String())
// assert headers
if e, a := "application/json", r.Header.Get("Content-Type"); e != a {
t.Errorf("expect %v, got %v", e, a)
}
if e, a := "12345", r.Header.Get("x-amz-checksum"); e != a {
t.Errorf("expect %v, got %v", e, a)
}
}
func TestInputService11ProtocolTestStreamingPayloadCase1(t *testing.T) {
svc := NewInputService11ProtocolTest(unit.Session, &aws.Config{Endpoint: aws.String("https://test")})
input := &InputService11TestShapeInputService11TestCaseOperation1Input{
Body: bytes.NewReader([]byte("contents")),
Checksum: aws.String("foo"),
VaultName: aws.String("name"),
}
req, _ := svc.InputService11TestCaseOperation1Request(input)
r := req.HTTPRequest
// build request
req.Build()
if req.Error != nil {
t.Errorf("expect no error, got %v", req.Error)
}
// assert body
if r.Body == nil {
t.Errorf("expect body not to be nil")
}
body, _ := ioutil.ReadAll(r.Body)
if e, a := "contents", util.Trim(string(body)); e != a {
t.Errorf("expect %v, got %v", e, a)
}
// assert URL
awstesting.AssertURL(t, "https://test/2014-01-01/vaults/name/archives", r.URL.String())
// assert headers
if e, a := "foo", r.Header.Get("x-amz-sha256-tree-hash"); e != a {
t.Errorf("expect %v, got %v", e, a)
}
}
func TestInputService12ProtocolTestSerializeBlobsInBodyCase1(t *testing.T) {
svc := NewInputService12ProtocolTest(unit.Session, &aws.Config{Endpoint: aws.String("https://test")})
input := &InputService12TestShapeInputService12TestCaseOperation1Input{
Bar: []byte("Blob param"),
Foo: aws.String("foo_name"),
}
req, _ := svc.InputService12TestCaseOperation1Request(input)
r := req.HTTPRequest
// build request
req.Build()
if req.Error != nil {
t.Errorf("expect no error, got %v", req.Error)
}
// assert body
if r.Body == nil {
t.Errorf("expect body not to be nil")
}
body, _ := ioutil.ReadAll(r.Body)
awstesting.AssertJSON(t, `{"Bar": "QmxvYiBwYXJhbQ=="}`, util.Trim(string(body)))
// assert URL
awstesting.AssertURL(t, "https://test/2014-01-01/foo_name", r.URL.String())
// assert headers
if e, a := "application/json", r.Header.Get("Content-Type"); e != a {
t.Errorf("expect %v, got %v", e, a)
}
}
func TestInputService13ProtocolTestBlobPayloadCase1(t *testing.T) {
svc := NewInputService13ProtocolTest(unit.Session, &aws.Config{Endpoint: aws.String("https://test")})
input := &InputService13TestShapeInputService13TestCaseOperation1Input{
Foo: []byte("bar"),
}
req, _ := svc.InputService13TestCaseOperation1Request(input)
r := req.HTTPRequest
// build request
req.Build()
if req.Error != nil {
t.Errorf("expect no error, got %v", req.Error)
}
// assert body
if r.Body == nil {
t.Errorf("expect body not to be nil")
}
body, _ := ioutil.ReadAll(r.Body)
if e, a := "bar", util.Trim(string(body)); e != a {
t.Errorf("expect %v, got %v", e, a)
}
// assert URL
awstesting.AssertURL(t, "https://test/", r.URL.String())
// assert headers
}
func TestInputService13ProtocolTestBlobPayloadCase2(t *testing.T) {
svc := NewInputService13ProtocolTest(unit.Session, &aws.Config{Endpoint: aws.String("https://test")})
input := &InputService13TestShapeInputService13TestCaseOperation2Input{}
req, _ := svc.InputService13TestCaseOperation2Request(input)
r := req.HTTPRequest
// build request
req.Build()
if req.Error != nil {
t.Errorf("expect no error, got %v", req.Error)
}
// assert URL
awstesting.AssertURL(t, "https://test/", r.URL.String())
// assert headers
}
func TestInputService14ProtocolTestStructurePayloadCase1(t *testing.T) {
svc := NewInputService14ProtocolTest(unit.Session, &aws.Config{Endpoint: aws.String("https://test")})
input := &InputService14TestShapeInputService14TestCaseOperation1Input{
Foo: &InputService14TestShapeFooShape{
Baz: aws.String("bar"),
},
}
req, _ := svc.InputService14TestCaseOperation1Request(input)
r := req.HTTPRequest
// build request
req.Build()
if req.Error != nil {
t.Errorf("expect no error, got %v", req.Error)
}
// assert body
if r.Body == nil {
t.Errorf("expect body not to be nil")
}
body, _ := ioutil.ReadAll(r.Body)
awstesting.AssertJSON(t, `{"baz": "bar"}`, util.Trim(string(body)))
// assert URL
awstesting.AssertURL(t, "https://test/", r.URL.String())
// assert headers
if e, a := "application/json", r.Header.Get("Content-Type"); e != a {
t.Errorf("expect %v, got %v", e, a)
}
}
func TestInputService14ProtocolTestStructurePayloadCase2(t *testing.T) {
svc := NewInputService14ProtocolTest(unit.Session, &aws.Config{Endpoint: aws.String("https://test")})
input := &InputService14TestShapeInputService14TestCaseOperation2Input{}
req, _ := svc.InputService14TestCaseOperation2Request(input)
r := req.HTTPRequest
// build request
req.Build()
if req.Error != nil {
t.Errorf("expect no error, got %v", req.Error)
}
// assert URL
awstesting.AssertURL(t, "https://test/", r.URL.String())
// assert headers
}
func TestInputService15ProtocolTestOmitsNullQueryParamsButSerializesEmptyStringsCase1(t *testing.T) {
svc := NewInputService15ProtocolTest(unit.Session, &aws.Config{Endpoint: aws.String("https://test")})
input := &InputService15TestShapeInputService15TestCaseOperation1Input{}
req, _ := svc.InputService15TestCaseOperation1Request(input)
r := req.HTTPRequest
// build request
req.Build()
if req.Error != nil {
t.Errorf("expect no error, got %v", req.Error)
}
// assert URL
awstesting.AssertURL(t, "https://test/path", r.URL.String())
// assert headers
}
func TestInputService15ProtocolTestOmitsNullQueryParamsButSerializesEmptyStringsCase2(t *testing.T) {
svc := NewInputService15ProtocolTest(unit.Session, &aws.Config{Endpoint: aws.String("https://test")})
input := &InputService15TestShapeInputService15TestCaseOperation2Input{
Foo: aws.String(""),
}
req, _ := svc.InputService15TestCaseOperation2Request(input)
r := req.HTTPRequest
// build request
req.Build()
if req.Error != nil {
t.Errorf("expect no error, got %v", req.Error)
}
// assert URL
awstesting.AssertURL(t, "https://test/path?abc=mno¶m-name=", r.URL.String())
// assert headers
}
func TestInputService16ProtocolTestRecursiveShapesCase1(t *testing.T) {
svc := NewInputService16ProtocolTest(unit.Session, &aws.Config{Endpoint: aws.String("https://test")})
input := &InputService16TestShapeInputService16TestCaseOperation1Input{
RecursiveStruct: &InputService16TestShapeRecursiveStructType{
NoRecurse: aws.String("foo"),
},
}
req, _ := svc.InputService16TestCaseOperation1Request(input)
r := req.HTTPRequest
// build request
req.Build()
if req.Error != nil {
t.Errorf("expect no error, got %v", req.Error)
}
// assert body
if r.Body == nil {
t.Errorf("expect body not to be nil")
}
body, _ := ioutil.ReadAll(r.Body)
awstesting.AssertJSON(t, `{"RecursiveStruct": {"NoRecurse": "foo"}}`, util.Trim(string(body)))
// assert URL
awstesting.AssertURL(t, "https://test/path", r.URL.String())
// assert headers
if e, a := "application/json", r.Header.Get("Content-Type"); e != a {
t.Errorf("expect %v, got %v", e, a)
}
}
func TestInputService16ProtocolTestRecursiveShapesCase2(t *testing.T) {
svc := NewInputService16ProtocolTest(unit.Session, &aws.Config{Endpoint: aws.String("https://test")})
input := &InputService16TestShapeInputService16TestCaseOperation2Input{
RecursiveStruct: &InputService16TestShapeRecursiveStructType{
RecursiveStruct: &InputService16TestShapeRecursiveStructType{
NoRecurse: aws.String("foo"),
},
},
}
req, _ := svc.InputService16TestCaseOperation2Request(input)
r := req.HTTPRequest
// build request
req.Build()
if req.Error != nil {
t.Errorf("expect no error, got %v", req.Error)
}
// assert body
if r.Body == nil {
t.Errorf("expect body not to be nil")
}
body, _ := ioutil.ReadAll(r.Body)
awstesting.AssertJSON(t, `{"RecursiveStruct": {"RecursiveStruct": {"NoRecurse": "foo"}}}`, util.Trim(string(body)))
// assert URL
awstesting.AssertURL(t, "https://test/path", r.URL.String())
// assert headers
if e, a := "application/json", r.Header.Get("Content-Type"); e != a {
t.Errorf("expect %v, got %v", e, a)
}
}
func TestInputService16ProtocolTestRecursiveShapesCase3(t *testing.T) {
svc := NewInputService16ProtocolTest(unit.Session, &aws.Config{Endpoint: aws.String("https://test")})
input := &InputService16TestShapeInputService16TestCaseOperation3Input{
RecursiveStruct: &InputService16TestShapeRecursiveStructType{
RecursiveStruct: &InputService16TestShapeRecursiveStructType{
RecursiveStruct: &InputService16TestShapeRecursiveStructType{
RecursiveStruct: &InputService16TestShapeRecursiveStructType{
NoRecurse: aws.String("foo"),
},
},
},
},
}
req, _ := svc.InputService16TestCaseOperation3Request(input)
r := req.HTTPRequest
// build request
req.Build()
if req.Error != nil {
t.Errorf("expect no error, got %v", req.Error)
}
// assert body
if r.Body == nil {
t.Errorf("expect body not to be nil")
}
body, _ := ioutil.ReadAll(r.Body)
awstesting.AssertJSON(t, `{"RecursiveStruct": {"RecursiveStruct": {"RecursiveStruct": {"RecursiveStruct": {"NoRecurse": "foo"}}}}}`, util.Trim(string(body)))
// assert URL
awstesting.AssertURL(t, "https://test/path", r.URL.String())
// assert headers
if e, a := "application/json", r.Header.Get("Content-Type"); e != a {
t.Errorf("expect %v, got %v", e, a)
}
}
func TestInputService16ProtocolTestRecursiveShapesCase4(t *testing.T) {
svc := NewInputService16ProtocolTest(unit.Session, &aws.Config{Endpoint: aws.String("https://test")})
input := &InputService16TestShapeInputService16TestCaseOperation4Input{
RecursiveStruct: &InputService16TestShapeRecursiveStructType{
RecursiveList: []*InputService16TestShapeRecursiveStructType{
{
NoRecurse: aws.String("foo"),
},
{
NoRecurse: aws.String("bar"),
},
},
},
}
req, _ := svc.InputService16TestCaseOperation4Request(input)
r := req.HTTPRequest
// build request
req.Build()
if req.Error != nil {
t.Errorf("expect no error, got %v", req.Error)
}
// assert body
if r.Body == nil {
t.Errorf("expect body not to be nil")
}
body, _ := ioutil.ReadAll(r.Body)
awstesting.AssertJSON(t, `{"RecursiveStruct": {"RecursiveList": [{"NoRecurse": "foo"}, {"NoRecurse": "bar"}]}}`, util.Trim(string(body)))
// assert URL
awstesting.AssertURL(t, "https://test/path", r.URL.String())
// assert headers
if e, a := "application/json", r.Header.Get("Content-Type"); e != a {
t.Errorf("expect %v, got %v", e, a)
}
}
func TestInputService16ProtocolTestRecursiveShapesCase5(t *testing.T) {
svc := NewInputService16ProtocolTest(unit.Session, &aws.Config{Endpoint: aws.String("https://test")})
input := &InputService16TestShapeInputService16TestCaseOperation5Input{
RecursiveStruct: &InputService16TestShapeRecursiveStructType{
RecursiveList: []*InputService16TestShapeRecursiveStructType{
{
NoRecurse: aws.String("foo"),
},
{
RecursiveStruct: &InputService16TestShapeRecursiveStructType{
NoRecurse: aws.String("bar"),
},
},
},
},
}
req, _ := svc.InputService16TestCaseOperation5Request(input)
r := req.HTTPRequest
// build request
req.Build()
if req.Error != nil {
t.Errorf("expect no error, got %v", req.Error)
}
// assert body
if r.Body == nil {
t.Errorf("expect body not to be nil")
}
body, _ := ioutil.ReadAll(r.Body)
awstesting.AssertJSON(t, `{"RecursiveStruct": {"RecursiveList": [{"NoRecurse": "foo"}, {"RecursiveStruct": {"NoRecurse": "bar"}}]}}`, util.Trim(string(body)))
// assert URL
awstesting.AssertURL(t, "https://test/path", r.URL.String())
// assert headers
if e, a := "application/json", r.Header.Get("Content-Type"); e != a {
t.Errorf("expect %v, got %v", e, a)
}
}
func TestInputService16ProtocolTestRecursiveShapesCase6(t *testing.T) {
svc := NewInputService16ProtocolTest(unit.Session, &aws.Config{Endpoint: aws.String("https://test")})
input := &InputService16TestShapeInputService16TestCaseOperation6Input{
RecursiveStruct: &InputService16TestShapeRecursiveStructType{
RecursiveMap: map[string]*InputService16TestShapeRecursiveStructType{
"bar": {
NoRecurse: aws.String("bar"),
},
"foo": {
NoRecurse: aws.String("foo"),
},
},
},
}
req, _ := svc.InputService16TestCaseOperation6Request(input)
r := req.HTTPRequest
// build request
req.Build()
if req.Error != nil {
t.Errorf("expect no error, got %v", req.Error)
}
// assert body
if r.Body == nil {
t.Errorf("expect body not to be nil")
}
body, _ := ioutil.ReadAll(r.Body)
awstesting.AssertJSON(t, `{"RecursiveStruct": {"RecursiveMap": {"foo": {"NoRecurse": "foo"}, "bar": {"NoRecurse": "bar"}}}}`, util.Trim(string(body)))
// assert URL
awstesting.AssertURL(t, "https://test/path", r.URL.String())
// assert headers
if e, a := "application/json", r.Header.Get("Content-Type"); e != a {
t.Errorf("expect %v, got %v", e, a)
}
}
func TestInputService17ProtocolTestTimestampValuesCase1(t *testing.T) {
svc := NewInputService17ProtocolTest(unit.Session, &aws.Config{Endpoint: aws.String("https://test")})
input := &InputService17TestShapeInputService17TestCaseOperation1Input{
TimeArg: aws.Time(time.Unix(1422172800, 0)),
TimeArgInHeader: aws.Time(time.Unix(1422172800, 0)),
TimeArgInQuery: aws.Time(time.Unix(1422172800, 0)),
TimeCustom: aws.Time(time.Unix(1422172800, 0)),
TimeCustomInHeader: aws.Time(time.Unix(1422172800, 0)),
TimeCustomInQuery: aws.Time(time.Unix(1422172800, 0)),
TimeFormat: aws.Time(time.Unix(1422172800, 0)),
TimeFormatInHeader: aws.Time(time.Unix(1422172800, 0)),
TimeFormatInQuery: aws.Time(time.Unix(1422172800, 0)),
}
req, _ := svc.InputService17TestCaseOperation1Request(input)
r := req.HTTPRequest
// build request
req.Build()
if req.Error != nil {
t.Errorf("expect no error, got %v", req.Error)
}
// assert body
if r.Body == nil {
t.Errorf("expect body not to be nil")
}
body, _ := ioutil.ReadAll(r.Body)
awstesting.AssertJSON(t, `{"TimeArg": 1422172800, "TimeCustom": "2015-01-25T08:00:00Z", "TimeFormat": "Sun, 25 Jan 2015 08:00:00 GMT"}`, util.Trim(string(body)))
// assert URL
awstesting.AssertURL(t, "https://test/path?TimeQuery=2015-01-25T08%3A00%3A00Z&TimeCustomQuery=1422172800&TimeFormatQuery=1422172800", r.URL.String())
// assert headers
if e, a := "application/json", r.Header.Get("Content-Type"); e != a {
t.Errorf("expect %v, got %v", e, a)
}
if e, a := "Sun, 25 Jan 2015 08:00:00 GMT", r.Header.Get("x-amz-timearg"); e != a {
t.Errorf("expect %v, got %v", e, a)
}
if e, a := "1422172800", r.Header.Get("x-amz-timecustom-header"); e != a {
t.Errorf("expect %v, got %v", e, a)
}
if e, a := "1422172800", r.Header.Get("x-amz-timeformat-header"); e != a {
t.Errorf("expect %v, got %v", e, a)
}
}
func TestInputService18ProtocolTestNamedLocationsInJSONBodyCase1(t *testing.T) {
svc := NewInputService18ProtocolTest(unit.Session, &aws.Config{Endpoint: aws.String("https://test")})
input := &InputService18TestShapeInputService18TestCaseOperation1Input{
TimeArg: aws.Time(time.Unix(1422172800, 0)),
}
req, _ := svc.InputService18TestCaseOperation1Request(input)
r := req.HTTPRequest
// build request
req.Build()
if req.Error != nil {
t.Errorf("expect no error, got %v", req.Error)
}
// assert body
if r.Body == nil {
t.Errorf("expect body not to be nil")
}
body, _ := ioutil.ReadAll(r.Body)
awstesting.AssertJSON(t, `{"timestamp_location": 1422172800}`, util.Trim(string(body)))
// assert URL
awstesting.AssertURL(t, "https://test/path", r.URL.String())
// assert headers
if e, a := "application/json", r.Header.Get("Content-Type"); e != a {
t.Errorf("expect %v, got %v", e, a)
}
}
func TestInputService19ProtocolTestStringPayloadCase1(t *testing.T) {
svc := NewInputService19ProtocolTest(unit.Session, &aws.Config{Endpoint: aws.String("https://test")})
input := &InputService19TestShapeInputService19TestCaseOperation1Input{
Foo: aws.String("bar"),
}
req, _ := svc.InputService19TestCaseOperation1Request(input)
r := req.HTTPRequest
// build request
req.Build()
if req.Error != nil {
t.Errorf("expect no error, got %v", req.Error)
}
// assert body
if r.Body == nil {
t.Errorf("expect body not to be nil")
}
body, _ := ioutil.ReadAll(r.Body)
if e, a := "bar", util.Trim(string(body)); e != a {
t.Errorf("expect %v, got %v", e, a)
}
// assert URL
awstesting.AssertURL(t, "https://test/", r.URL.String())
// assert headers
}
func TestInputService20ProtocolTestIdempotencyTokenAutoFillCase1(t *testing.T) {
svc := NewInputService20ProtocolTest(unit.Session, &aws.Config{Endpoint: aws.String("https://test")})
input := &InputService20TestShapeInputService20TestCaseOperation1Input{
Token: aws.String("abc123"),
}
req, _ := svc.InputService20TestCaseOperation1Request(input)
r := req.HTTPRequest
// build request
req.Build()
if req.Error != nil {
t.Errorf("expect no error, got %v", req.Error)
}
// assert body
if r.Body == nil {
t.Errorf("expect body not to be nil")
}
body, _ := ioutil.ReadAll(r.Body)
awstesting.AssertJSON(t, `{"Token": "abc123"}`, util.Trim(string(body)))
// assert URL
awstesting.AssertURL(t, "https://test/path", r.URL.String())
// assert headers
if e, a := "application/json", r.Header.Get("Content-Type"); e != a {
t.Errorf("expect %v, got %v", e, a)
}
}
func TestInputService20ProtocolTestIdempotencyTokenAutoFillCase2(t *testing.T) {
svc := NewInputService20ProtocolTest(unit.Session, &aws.Config{Endpoint: aws.String("https://test")})
input := &InputService20TestShapeInputService20TestCaseOperation2Input{}
req, _ := svc.InputService20TestCaseOperation2Request(input)
r := req.HTTPRequest
// build request
req.Build()
if req.Error != nil {
t.Errorf("expect no error, got %v", req.Error)
}
// assert body
if r.Body == nil {
t.Errorf("expect body not to be nil")
}
body, _ := ioutil.ReadAll(r.Body)
awstesting.AssertJSON(t, `{"Token": "00000000-0000-4000-8000-000000000000"}`, util.Trim(string(body)))
// assert URL
awstesting.AssertURL(t, "https://test/path", r.URL.String())
// assert headers
if e, a := "application/json", r.Header.Get("Content-Type"); e != a {
t.Errorf("expect %v, got %v", e, a)
}
}
func TestInputService21ProtocolTestJSONValueTraitCase1(t *testing.T) {
svc := NewInputService21ProtocolTest(unit.Session, &aws.Config{Endpoint: aws.String("https://test")})
input := &InputService21TestShapeInputService21TestCaseOperation1Input{
Body: &InputService21TestShapeBodyStructure{
BodyField: func() aws.JSONValue {
var m aws.JSONValue
if err := json.Unmarshal([]byte("{\"Foo\":\"Bar\"}"), &m); err != nil {
panic("failed to unmarshal JSONValue, " + err.Error())
}
return m
}(),
},
}
input.HeaderField = aws.JSONValue{"Foo": "Bar"}
input.QueryField = aws.JSONValue{"Foo": "Bar"}
req, _ := svc.InputService21TestCaseOperation1Request(input)
r := req.HTTPRequest
// build request
req.Build()
if req.Error != nil {
t.Errorf("expect no error, got %v", req.Error)
}
// assert body
if r.Body == nil {
t.Errorf("expect body not to be nil")
}
body, _ := ioutil.ReadAll(r.Body)
awstesting.AssertJSON(t, `{"BodyField":"{\"Foo\":\"Bar\"}"}`, util.Trim(string(body)))
// assert URL
awstesting.AssertURL(t, "https://test/?Bar=%7B%22Foo%22%3A%22Bar%22%7D", r.URL.String())
// assert headers
if e, a := "application/json", r.Header.Get("Content-Type"); e != a {
t.Errorf("expect %v, got %v", e, a)
}
if e, a := "eyJGb28iOiJCYXIifQ==", r.Header.Get("X-Amz-Foo"); e != a {
t.Errorf("expect %v, got %v", e, a)
}
}
func TestInputService21ProtocolTestJSONValueTraitCase2(t *testing.T) {
svc := NewInputService21ProtocolTest(unit.Session, &aws.Config{Endpoint: aws.String("https://test")})
input := &InputService21TestShapeInputService21TestCaseOperation2Input{
Body: &InputService21TestShapeBodyStructure{
BodyListField: []aws.JSONValue{
func() aws.JSONValue {
var m aws.JSONValue
if err := json.Unmarshal([]byte("{\"Foo\":\"Bar\"}"), &m); err != nil {
panic("failed to unmarshal JSONValue, " + err.Error())
}
return m
}(),
},
},
}
req, _ := svc.InputService21TestCaseOperation2Request(input)
r := req.HTTPRequest
// build request
req.Build()
if req.Error != nil {
t.Errorf("expect no error, got %v", req.Error)
}
// assert body
if r.Body == nil {
t.Errorf("expect body not to be nil")
}
body, _ := ioutil.ReadAll(r.Body)
awstesting.AssertJSON(t, `{"BodyListField":["{\"Foo\":\"Bar\"}"]}`, util.Trim(string(body)))
// assert URL
awstesting.AssertURL(t, "https://test/", r.URL.String())
// assert headers
if e, a := "application/json", r.Header.Get("Content-Type"); e != a {
t.Errorf("expect %v, got %v", e, a)
}
}
func TestInputService21ProtocolTestJSONValueTraitCase3(t *testing.T) {
svc := NewInputService21ProtocolTest(unit.Session, &aws.Config{Endpoint: aws.String("https://test")})
input := &InputService21TestShapeInputService21TestCaseOperation3Input{}
req, _ := svc.InputService21TestCaseOperation3Request(input)
r := req.HTTPRequest
// build request
req.Build()
if req.Error != nil {
t.Errorf("expect no error, got %v", req.Error)
}
// assert URL
awstesting.AssertURL(t, "https://test/", r.URL.String())
// assert headers
}
func TestInputService22ProtocolTestEnumCase1(t *testing.T) {
svc := NewInputService22ProtocolTest(unit.Session, &aws.Config{Endpoint: aws.String("https://test")})
input := &InputService22TestShapeInputService22TestCaseOperation1Input{
FooEnum: aws.String("foo"),
HeaderEnum: aws.String("baz"),
ListEnums: []*string{
aws.String("foo"),
aws.String(""),
aws.String("bar"),
},
QueryFooEnum: aws.String("bar"),
QueryListEnums: []*string{
aws.String("0"),
aws.String("1"),
aws.String(""),
},
}
req, _ := svc.InputService22TestCaseOperation1Request(input)
r := req.HTTPRequest
// build request
req.Build()
if req.Error != nil {
t.Errorf("expect no error, got %v", req.Error)
}
// assert body
if r.Body == nil {
t.Errorf("expect body not to be nil")
}
body, _ := ioutil.ReadAll(r.Body)
awstesting.AssertJSON(t, `{"FooEnum": "foo", "ListEnums": ["foo", "", "bar"]}`, util.Trim(string(body)))
// assert URL
awstesting.AssertURL(t, "https://test/path?Enum=bar&List=0&List=1&List=", r.URL.String())
// assert headers
if e, a := "application/json", r.Header.Get("Content-Type"); e != a {
t.Errorf("expect %v, got %v", e, a)
}
if e, a := "baz", r.Header.Get("x-amz-enum"); e != a {
t.Errorf("expect %v, got %v", e, a)
}
}
func TestInputService22ProtocolTestEnumCase2(t *testing.T) {
svc := NewInputService22ProtocolTest(unit.Session, &aws.Config{Endpoint: aws.String("https://test")})
input := &InputService22TestShapeInputService22TestCaseOperation2Input{}
req, _ := svc.InputService22TestCaseOperation2Request(input)
r := req.HTTPRequest
// build request
req.Build()
if req.Error != nil {
t.Errorf("expect no error, got %v", req.Error)
}
// assert URL
awstesting.AssertURL(t, "https://test/path", r.URL.String())
// assert headers
}
func TestInputService23ProtocolTestEndpointHostTraitCase1(t *testing.T) {
svc := NewInputService23ProtocolTest(unit.Session, &aws.Config{Endpoint: aws.String("https://service.region.amazonaws.com")})
input := &InputService23TestShapeInputService23TestCaseOperation1Input{
Name: aws.String("myname"),
}
req, _ := svc.InputService23TestCaseOperation1Request(input)
r := req.HTTPRequest
// build request
req.Build()
if req.Error != nil {
t.Errorf("expect no error, got %v", req.Error)
}
// assert body
if r.Body == nil {
t.Errorf("expect body not to be nil")
}
body, _ := ioutil.ReadAll(r.Body)
awstesting.AssertJSON(t, `{"Name": "myname"}`, util.Trim(string(body)))
// assert URL
awstesting.AssertURL(t, "https://data-service.region.amazonaws.com/path", r.URL.String())
// assert headers
if e, a := "application/json", r.Header.Get("Content-Type"); e != a {
t.Errorf("expect %v, got %v", e, a)
}
}
func TestInputService23ProtocolTestEndpointHostTraitCase2(t *testing.T) {
svc := NewInputService23ProtocolTest(unit.Session, &aws.Config{Endpoint: aws.String("https://service.region.amazonaws.com")})
input := &InputService23TestShapeInputService23TestCaseOperation2Input{
Name: aws.String("myname"),
}
req, _ := svc.InputService23TestCaseOperation2Request(input)
r := req.HTTPRequest
// build request
req.Build()
if req.Error != nil {
t.Errorf("expect no error, got %v", req.Error)
}
// assert body
if r.Body == nil {
t.Errorf("expect body not to be nil")
}
body, _ := ioutil.ReadAll(r.Body)
awstesting.AssertJSON(t, `{"Name": "myname"}`, util.Trim(string(body)))
// assert URL
awstesting.AssertURL(t, "https://foo-myname.service.region.amazonaws.com/path", r.URL.String())
// assert headers
if e, a := "application/json", r.Header.Get("Content-Type"); e != a {
t.Errorf("expect %v, got %v", e, a)
}
}
func TestInputService24ProtocolTestHeaderWhitespaceCase1(t *testing.T) {
svc := NewInputService24ProtocolTest(unit.Session, &aws.Config{Endpoint: aws.String("https://test")})
input := &InputService24TestShapeInputService24TestCaseOperation1Input{
Header1: aws.String(" headerValue"),
HeaderMap: map[string]*string{
" key-leading-space": aws.String("value"),
" key-with-space ": aws.String("value"),
"leading-space": aws.String(" value"),
"leading-tab": aws.String(" value"),
"with-space": aws.String(" value "),
},
}
req, _ := svc.InputService24TestCaseOperation1Request(input)
r := req.HTTPRequest
// build request
req.Build()
if req.Error != nil {
t.Errorf("expect no error, got %v", req.Error)
}
// assert URL
awstesting.AssertURL(t, "https://test/", r.URL.String())
// assert headers
if e, a := "value", r.Header.Get("header-map-key-leading-space"); e != a {
t.Errorf("expect %v, got %v", e, a)
}
if e, a := "value", r.Header.Get("header-map-key-with-space"); e != a {
t.Errorf("expect %v, got %v", e, a)
}
if e, a := "value", r.Header.Get("header-map-leading-space"); e != a {
t.Errorf("expect %v, got %v", e, a)
}
if e, a := "value", r.Header.Get("header-map-leading-tab"); e != a {
t.Errorf("expect %v, got %v", e, a)
}
if e, a := "value", r.Header.Get("header-map-with-space"); e != a {
t.Errorf("expect %v, got %v", e, a)
}
if e, a := "headerValue", r.Header.Get("header1"); e != a {
t.Errorf("expect %v, got %v", e, a)
}
}
| 6,599 |
session-manager-plugin | aws | Go | // Package restjson provides RESTful JSON serialization of AWS
// requests and responses.
package restjson
//go:generate go run -tags codegen ../../../private/model/cli/gen-protocol-tests ../../../models/protocol_tests/input/rest-json.json build_test.go
//go:generate go run -tags codegen ../../../private/model/cli/gen-protocol-tests ../../../models/protocol_tests/output/rest-json.json unmarshal_test.go
import (
"github.com/aws/aws-sdk-go/aws/request"
"github.com/aws/aws-sdk-go/private/protocol/jsonrpc"
"github.com/aws/aws-sdk-go/private/protocol/rest"
)
// BuildHandler is a named request handler for building restjson protocol
// requests
var BuildHandler = request.NamedHandler{
Name: "awssdk.restjson.Build",
Fn: Build,
}
// UnmarshalHandler is a named request handler for unmarshaling restjson
// protocol requests
var UnmarshalHandler = request.NamedHandler{
Name: "awssdk.restjson.Unmarshal",
Fn: Unmarshal,
}
// UnmarshalMetaHandler is a named request handler for unmarshaling restjson
// protocol request metadata
var UnmarshalMetaHandler = request.NamedHandler{
Name: "awssdk.restjson.UnmarshalMeta",
Fn: UnmarshalMeta,
}
// Build builds a request for the REST JSON protocol.
func Build(r *request.Request) {
rest.Build(r)
if t := rest.PayloadType(r.Params); t == "structure" || t == "" {
if v := r.HTTPRequest.Header.Get("Content-Type"); len(v) == 0 {
r.HTTPRequest.Header.Set("Content-Type", "application/json")
}
jsonrpc.Build(r)
}
}
// Unmarshal unmarshals a response body for the REST JSON protocol.
func Unmarshal(r *request.Request) {
if t := rest.PayloadType(r.Data); t == "structure" || t == "" {
jsonrpc.Unmarshal(r)
} else {
rest.Unmarshal(r)
}
}
// UnmarshalMeta unmarshals response headers for the REST JSON protocol.
func UnmarshalMeta(r *request.Request) {
rest.UnmarshalMeta(r)
}
| 60 |
session-manager-plugin | aws | Go | package restjson
import (
"bytes"
"io"
"io/ioutil"
"net/http"
"strings"
"github.com/aws/aws-sdk-go/aws/awserr"
"github.com/aws/aws-sdk-go/aws/request"
"github.com/aws/aws-sdk-go/private/protocol"
"github.com/aws/aws-sdk-go/private/protocol/json/jsonutil"
"github.com/aws/aws-sdk-go/private/protocol/rest"
)
const (
errorTypeHeader = "X-Amzn-Errortype"
errorMessageHeader = "X-Amzn-Errormessage"
)
// UnmarshalTypedError provides unmarshaling errors API response errors
// for both typed and untyped errors.
type UnmarshalTypedError struct {
exceptions map[string]func(protocol.ResponseMetadata) error
}
// NewUnmarshalTypedError returns an UnmarshalTypedError initialized for the
// set of exception names to the error unmarshalers
func NewUnmarshalTypedError(exceptions map[string]func(protocol.ResponseMetadata) error) *UnmarshalTypedError {
return &UnmarshalTypedError{
exceptions: exceptions,
}
}
// UnmarshalError attempts to unmarshal the HTTP response error as a known
// error type. If unable to unmarshal the error type, the generic SDK error
// type will be used.
func (u *UnmarshalTypedError) UnmarshalError(
resp *http.Response,
respMeta protocol.ResponseMetadata,
) (error, error) {
code := resp.Header.Get(errorTypeHeader)
msg := resp.Header.Get(errorMessageHeader)
body := resp.Body
if len(code) == 0 {
// If unable to get code from HTTP headers have to parse JSON message
// to determine what kind of exception this will be.
var buf bytes.Buffer
var jsonErr jsonErrorResponse
teeReader := io.TeeReader(resp.Body, &buf)
err := jsonutil.UnmarshalJSONError(&jsonErr, teeReader)
if err != nil {
return nil, err
}
body = ioutil.NopCloser(&buf)
code = jsonErr.Code
msg = jsonErr.Message
}
// If code has colon separators remove them so can compare against modeled
// exception names.
code = strings.SplitN(code, ":", 2)[0]
if fn, ok := u.exceptions[code]; ok {
// If exception code is know, use associated constructor to get a value
// for the exception that the JSON body can be unmarshaled into.
v := fn(respMeta)
if err := jsonutil.UnmarshalJSONCaseInsensitive(v, body); err != nil {
return nil, err
}
if err := rest.UnmarshalResponse(resp, v, true); err != nil {
return nil, err
}
return v, nil
}
// fallback to unmodeled generic exceptions
return awserr.NewRequestFailure(
awserr.New(code, msg, nil),
respMeta.StatusCode,
respMeta.RequestID,
), nil
}
// UnmarshalErrorHandler is a named request handler for unmarshaling restjson
// protocol request errors
var UnmarshalErrorHandler = request.NamedHandler{
Name: "awssdk.restjson.UnmarshalError",
Fn: UnmarshalError,
}
// UnmarshalError unmarshals a response error for the REST JSON protocol.
func UnmarshalError(r *request.Request) {
defer r.HTTPResponse.Body.Close()
var jsonErr jsonErrorResponse
err := jsonutil.UnmarshalJSONError(&jsonErr, r.HTTPResponse.Body)
if err != nil {
r.Error = awserr.NewRequestFailure(
awserr.New(request.ErrCodeSerialization,
"failed to unmarshal response error", err),
r.HTTPResponse.StatusCode,
r.RequestID,
)
return
}
code := r.HTTPResponse.Header.Get(errorTypeHeader)
if code == "" {
code = jsonErr.Code
}
msg := r.HTTPResponse.Header.Get(errorMessageHeader)
if msg == "" {
msg = jsonErr.Message
}
code = strings.SplitN(code, ":", 2)[0]
r.Error = awserr.NewRequestFailure(
awserr.New(code, jsonErr.Message, nil),
r.HTTPResponse.StatusCode,
r.RequestID,
)
}
type jsonErrorResponse struct {
Code string `json:"code"`
Message string `json:"message"`
}
| 135 |
session-manager-plugin | aws | Go | // +build go1.8
package restjson
import (
"bytes"
"encoding/hex"
"io/ioutil"
"net/http"
"reflect"
"strings"
"testing"
"github.com/aws/aws-sdk-go/aws"
"github.com/aws/aws-sdk-go/aws/awserr"
"github.com/aws/aws-sdk-go/aws/request"
"github.com/aws/aws-sdk-go/private/protocol"
)
const unknownErrJSON = `{"code":"UnknownError", "message":"error message", "something":123}`
const simpleErrJSON = `{"code":"SimpleError", "message":"some message", "foo":123}`
const simpleNoCodeJSON = `{"message":"some message", "foo":123}`
type SimpleError struct {
_ struct{} `type:"structure"`
error
Message2 *string `type:"string" locationName:"message"`
Foo *int64 `type:"integer" locationName:"foo"`
}
const otherErrJSON = `{"code":"OtherError", "message":"some message"}`
const complexCodeErrJSON = `{"code":"OtherError:foo:bar", "message":"some message"}`
type OtherError struct {
_ struct{} `type:"structure"`
error
Message2 *string `type:"string" locationName:"message"`
}
const complexErrJSON = `{"code":"ComplexError", "message":"some message", "foo": {"bar":"abc123", "baz":123}}`
type ComplexError struct {
_ struct{} `type:"structure"`
error
Message2 *string `type:"string" locationName:"message"`
Foo *ErrorNested `type:"structure" locationName:"foo"`
HeaderVal *string `type:"string" location:"header" locationName:"some-header"`
Status *int64 `type:"integer" location:"statusCode"`
}
type ErrorNested struct {
_ struct{} `type:"structure"`
Bar *string `type:"string" locationName:"bar"`
Baz *int64 `type:"integer" locationName:"baz"`
}
func TestUnmarshalTypedError(t *testing.T) {
respMeta := protocol.ResponseMetadata{
StatusCode: 400,
RequestID: "abc123",
}
exceptions := map[string]func(protocol.ResponseMetadata) error{
"SimpleError": func(meta protocol.ResponseMetadata) error {
return &SimpleError{}
},
"OtherError": func(meta protocol.ResponseMetadata) error {
return &OtherError{}
},
"ComplexError": func(meta protocol.ResponseMetadata) error {
return &ComplexError{}
},
}
cases := map[string]struct {
Response *http.Response
Expect error
Err string
}{
"simple error": {
Response: &http.Response{
Header: http.Header{},
Body: ioutil.NopCloser(strings.NewReader(simpleErrJSON)),
},
Expect: &SimpleError{
Message2: aws.String("some message"),
Foo: aws.Int64(123),
},
},
"other error": {
Response: &http.Response{
Header: http.Header{},
Body: ioutil.NopCloser(strings.NewReader(otherErrJSON)),
},
Expect: &OtherError{
Message2: aws.String("some message"),
},
},
"other complex Code error": {
Response: &http.Response{
Header: http.Header{},
Body: ioutil.NopCloser(strings.NewReader(complexCodeErrJSON)),
},
Expect: &OtherError{
Message2: aws.String("some message"),
},
},
"complex error": {
Response: &http.Response{
StatusCode: 400,
Header: http.Header{
"Some-Header": []string{"headval"},
},
Body: ioutil.NopCloser(strings.NewReader(complexErrJSON)),
},
Expect: &ComplexError{
Message2: aws.String("some message"),
HeaderVal: aws.String("headval"),
Status: aws.Int64(400),
Foo: &ErrorNested{
Bar: aws.String("abc123"),
Baz: aws.Int64(123),
},
},
},
"unknown error": {
Response: &http.Response{
Header: http.Header{},
Body: ioutil.NopCloser(strings.NewReader(unknownErrJSON)),
},
Expect: awserr.NewRequestFailure(
awserr.New("UnknownError", "error message", nil),
respMeta.StatusCode,
respMeta.RequestID,
),
},
"invalid error": {
Response: &http.Response{
StatusCode: 400,
Header: http.Header{},
Body: ioutil.NopCloser(strings.NewReader(`{`)),
},
Err: "failed decoding",
},
"unknown from header": {
Response: &http.Response{
Header: http.Header{
errorTypeHeader: []string{"UnknownError"},
errorMessageHeader: []string{"error message"},
},
Body: ioutil.NopCloser(nil),
},
Expect: awserr.NewRequestFailure(
awserr.New("UnknownError", "error message", nil),
respMeta.StatusCode,
respMeta.RequestID,
),
},
"code from header": {
Response: &http.Response{
Header: http.Header{
errorTypeHeader: []string{"SimpleError"},
},
Body: ioutil.NopCloser(strings.NewReader(simpleNoCodeJSON)),
},
Expect: &SimpleError{
Message2: aws.String("some message"),
Foo: aws.Int64(123),
},
},
"ignore message header": {
Response: &http.Response{
Header: http.Header{
errorTypeHeader: []string{"SimpleError"},
errorMessageHeader: []string{"error message"},
},
Body: ioutil.NopCloser(strings.NewReader(simpleNoCodeJSON)),
},
Expect: &SimpleError{
Message2: aws.String("some message"),
Foo: aws.Int64(123),
},
},
}
for name, c := range cases {
t.Run(name, func(t *testing.T) {
u := NewUnmarshalTypedError(exceptions)
v, err := u.UnmarshalError(c.Response, respMeta)
if len(c.Err) != 0 {
if err == nil {
t.Fatalf("expect error, got none")
}
if e, a := c.Err, err.Error(); !strings.Contains(a, e) {
t.Fatalf("expect %v in error, got %v", e, a)
}
} else if err != nil {
t.Fatalf("expect no error, got %v", err)
}
if e, a := c.Expect, v; !reflect.DeepEqual(e, a) {
t.Errorf("expect %+#v, got %#+v", e, a)
}
})
}
}
func TestUnmarshalError_SerializationError(t *testing.T) {
cases := map[string]struct {
Request *request.Request
ExpectMsg string
ExpectBytes []byte
}{
"empty body": {
Request: &request.Request{
Data: &struct{}{},
HTTPResponse: &http.Response{
StatusCode: 400,
Header: http.Header{
"X-Amzn-Requestid": []string{"abc123"},
},
Body: ioutil.NopCloser(
bytes.NewReader([]byte{}),
),
},
},
ExpectMsg: "error message missing",
},
"HTML body": {
Request: &request.Request{
Data: &struct{}{},
HTTPResponse: &http.Response{
StatusCode: 400,
Header: http.Header{
"X-Amzn-Requestid": []string{"abc123"},
},
Body: ioutil.NopCloser(
bytes.NewReader([]byte(`<html></html>`)),
),
},
},
ExpectBytes: []byte(`<html></html>`),
ExpectMsg: "failed decoding",
},
}
for name, c := range cases {
t.Run(name, func(t *testing.T) {
req := c.Request
UnmarshalError(req)
if req.Error == nil {
t.Fatal("expect error, got none")
}
aerr := req.Error.(awserr.RequestFailure)
if e, a := request.ErrCodeSerialization, aerr.Code(); e != a {
t.Errorf("expect %v, got %v", e, a)
}
uerr := aerr.OrigErr().(awserr.UnmarshalError)
if e, a := c.ExpectMsg, uerr.Message(); !strings.Contains(a, e) {
t.Errorf("Expect %q, in %q", e, a)
}
if e, a := c.ExpectBytes, uerr.Bytes(); !bytes.Equal(e, a) {
t.Errorf("expect:\n%v\nactual:\n%v", hex.Dump(e), hex.Dump(a))
}
})
}
}
| 276 |
session-manager-plugin | aws | Go | // Code generated by models/protocol_tests/generate.go. DO NOT EDIT.
package restjson_test
import (
"bytes"
"encoding/json"
"encoding/xml"
"fmt"
"io"
"io/ioutil"
"net/http"
"net/url"
"reflect"
"testing"
"time"
"github.com/aws/aws-sdk-go/aws"
"github.com/aws/aws-sdk-go/aws/client"
"github.com/aws/aws-sdk-go/aws/client/metadata"
"github.com/aws/aws-sdk-go/aws/request"
"github.com/aws/aws-sdk-go/aws/signer/v4"
"github.com/aws/aws-sdk-go/awstesting"
"github.com/aws/aws-sdk-go/awstesting/unit"
"github.com/aws/aws-sdk-go/private/protocol"
"github.com/aws/aws-sdk-go/private/protocol/restjson"
"github.com/aws/aws-sdk-go/private/protocol/xml/xmlutil"
"github.com/aws/aws-sdk-go/private/util"
)
var _ bytes.Buffer // always import bytes
var _ http.Request
var _ json.Marshaler
var _ time.Time
var _ xmlutil.XMLNode
var _ xml.Attr
var _ = ioutil.Discard
var _ = util.Trim("")
var _ = url.Values{}
var _ = io.EOF
var _ = aws.String
var _ = fmt.Println
var _ = reflect.Value{}
func init() {
protocol.RandReader = &awstesting.ZeroReader{}
}
// OutputService1ProtocolTest provides the API operation methods for making requests to
// . See this package's package overview docs
// for details on the service.
//
// OutputService1ProtocolTest methods are safe to use concurrently. It is not safe to
// modify mutate any of the struct's properties though.
type OutputService1ProtocolTest struct {
*client.Client
}
// New creates a new instance of the OutputService1ProtocolTest 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 OutputService1ProtocolTest client from just a session.
// svc := outputservice1protocoltest.New(mySession)
//
// // Create a OutputService1ProtocolTest client with additional configuration
// svc := outputservice1protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2"))
func NewOutputService1ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *OutputService1ProtocolTest {
c := p.ClientConfig("outputservice1protocoltest", cfgs...)
return newOutputService1ProtocolTestClient(*c.Config, c.Handlers, c.PartitionID, c.Endpoint, c.SigningRegion, c.SigningName)
}
// newClient creates, initializes and returns a new service client instance.
func newOutputService1ProtocolTestClient(cfg aws.Config, handlers request.Handlers, partitionID, endpoint, signingRegion, signingName string) *OutputService1ProtocolTest {
svc := &OutputService1ProtocolTest{
Client: client.New(
cfg,
metadata.ClientInfo{
ServiceName: "OutputService1ProtocolTest",
ServiceID: "OutputService1ProtocolTest",
SigningName: signingName,
SigningRegion: signingRegion,
PartitionID: partitionID,
Endpoint: endpoint,
APIVersion: "",
},
handlers,
),
}
// Handlers
svc.Handlers.Sign.PushBackNamed(v4.SignRequestHandler)
svc.Handlers.Build.PushBackNamed(restjson.BuildHandler)
svc.Handlers.Unmarshal.PushBackNamed(restjson.UnmarshalHandler)
svc.Handlers.UnmarshalMeta.PushBackNamed(restjson.UnmarshalMetaHandler)
svc.Handlers.UnmarshalError.PushBackNamed(restjson.UnmarshalErrorHandler)
return svc
}
// newRequest creates a new request for a OutputService1ProtocolTest operation and runs any
// custom request initialization.
func (c *OutputService1ProtocolTest) newRequest(op *request.Operation, params, data interface{}) *request.Request {
req := c.NewRequest(op, params, data)
return req
}
const opOutputService1TestCaseOperation1 = "OperationName"
// OutputService1TestCaseOperation1Request generates a "aws/request.Request" representing the
// client's request for the OutputService1TestCaseOperation1 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 OutputService1TestCaseOperation1 for more information on using the OutputService1TestCaseOperation1
// 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 OutputService1TestCaseOperation1Request method.
// req, resp := client.OutputService1TestCaseOperation1Request(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
func (c *OutputService1ProtocolTest) OutputService1TestCaseOperation1Request(input *OutputService1TestShapeOutputService1TestCaseOperation1Input) (req *request.Request, output *OutputService1TestShapeOutputService1TestCaseOperation1Output) {
op := &request.Operation{
Name: opOutputService1TestCaseOperation1,
HTTPPath: "/",
}
if input == nil {
input = &OutputService1TestShapeOutputService1TestCaseOperation1Input{}
}
output = &OutputService1TestShapeOutputService1TestCaseOperation1Output{}
req = c.newRequest(op, input, output)
return
}
// OutputService1TestCaseOperation1 API operation for .
//
// 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 's
// API operation OutputService1TestCaseOperation1 for usage and error information.
func (c *OutputService1ProtocolTest) OutputService1TestCaseOperation1(input *OutputService1TestShapeOutputService1TestCaseOperation1Input) (*OutputService1TestShapeOutputService1TestCaseOperation1Output, error) {
req, out := c.OutputService1TestCaseOperation1Request(input)
return out, req.Send()
}
// OutputService1TestCaseOperation1WithContext is the same as OutputService1TestCaseOperation1 with the addition of
// the ability to pass a context and additional request options.
//
// See OutputService1TestCaseOperation1 for details on how to use this API operation.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
func (c *OutputService1ProtocolTest) OutputService1TestCaseOperation1WithContext(ctx aws.Context, input *OutputService1TestShapeOutputService1TestCaseOperation1Input, opts ...request.Option) (*OutputService1TestShapeOutputService1TestCaseOperation1Output, error) {
req, out := c.OutputService1TestCaseOperation1Request(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
type OutputService1TestShapeOutputService1TestCaseOperation1Input struct {
_ struct{} `type:"structure"`
}
type OutputService1TestShapeOutputService1TestCaseOperation1Output struct {
_ struct{} `type:"structure"`
// Blob is automatically base64 encoded/decoded by the SDK.
Blob []byte `type:"blob"`
// BlobHeader is automatically base64 encoded/decoded by the SDK.
BlobHeader []byte `location:"header" type:"blob"`
Char *string `type:"character"`
Double *float64 `type:"double"`
FalseBool *bool `type:"boolean"`
Float *float64 `type:"float"`
ImaHeader *string `location:"header" type:"string"`
ImaHeaderLocation *string `location:"header" locationName:"X-Foo" type:"string"`
Long *int64 `type:"long"`
Num *int64 `type:"integer"`
Status *int64 `location:"statusCode" type:"integer"`
Str *string `type:"string"`
Timestamp *time.Time `type:"timestamp"`
TrueBool *bool `type:"boolean"`
}
// SetBlob sets the Blob field's value.
func (s *OutputService1TestShapeOutputService1TestCaseOperation1Output) SetBlob(v []byte) *OutputService1TestShapeOutputService1TestCaseOperation1Output {
s.Blob = v
return s
}
// SetBlobHeader sets the BlobHeader field's value.
func (s *OutputService1TestShapeOutputService1TestCaseOperation1Output) SetBlobHeader(v []byte) *OutputService1TestShapeOutputService1TestCaseOperation1Output {
s.BlobHeader = v
return s
}
// SetChar sets the Char field's value.
func (s *OutputService1TestShapeOutputService1TestCaseOperation1Output) SetChar(v string) *OutputService1TestShapeOutputService1TestCaseOperation1Output {
s.Char = &v
return s
}
// SetDouble sets the Double field's value.
func (s *OutputService1TestShapeOutputService1TestCaseOperation1Output) SetDouble(v float64) *OutputService1TestShapeOutputService1TestCaseOperation1Output {
s.Double = &v
return s
}
// SetFalseBool sets the FalseBool field's value.
func (s *OutputService1TestShapeOutputService1TestCaseOperation1Output) SetFalseBool(v bool) *OutputService1TestShapeOutputService1TestCaseOperation1Output {
s.FalseBool = &v
return s
}
// SetFloat sets the Float field's value.
func (s *OutputService1TestShapeOutputService1TestCaseOperation1Output) SetFloat(v float64) *OutputService1TestShapeOutputService1TestCaseOperation1Output {
s.Float = &v
return s
}
// SetImaHeader sets the ImaHeader field's value.
func (s *OutputService1TestShapeOutputService1TestCaseOperation1Output) SetImaHeader(v string) *OutputService1TestShapeOutputService1TestCaseOperation1Output {
s.ImaHeader = &v
return s
}
// SetImaHeaderLocation sets the ImaHeaderLocation field's value.
func (s *OutputService1TestShapeOutputService1TestCaseOperation1Output) SetImaHeaderLocation(v string) *OutputService1TestShapeOutputService1TestCaseOperation1Output {
s.ImaHeaderLocation = &v
return s
}
// SetLong sets the Long field's value.
func (s *OutputService1TestShapeOutputService1TestCaseOperation1Output) SetLong(v int64) *OutputService1TestShapeOutputService1TestCaseOperation1Output {
s.Long = &v
return s
}
// SetNum sets the Num field's value.
func (s *OutputService1TestShapeOutputService1TestCaseOperation1Output) SetNum(v int64) *OutputService1TestShapeOutputService1TestCaseOperation1Output {
s.Num = &v
return s
}
// SetStatus sets the Status field's value.
func (s *OutputService1TestShapeOutputService1TestCaseOperation1Output) SetStatus(v int64) *OutputService1TestShapeOutputService1TestCaseOperation1Output {
s.Status = &v
return s
}
// SetStr sets the Str field's value.
func (s *OutputService1TestShapeOutputService1TestCaseOperation1Output) SetStr(v string) *OutputService1TestShapeOutputService1TestCaseOperation1Output {
s.Str = &v
return s
}
// SetTimestamp sets the Timestamp field's value.
func (s *OutputService1TestShapeOutputService1TestCaseOperation1Output) SetTimestamp(v time.Time) *OutputService1TestShapeOutputService1TestCaseOperation1Output {
s.Timestamp = &v
return s
}
// SetTrueBool sets the TrueBool field's value.
func (s *OutputService1TestShapeOutputService1TestCaseOperation1Output) SetTrueBool(v bool) *OutputService1TestShapeOutputService1TestCaseOperation1Output {
s.TrueBool = &v
return s
}
// OutputService2ProtocolTest provides the API operation methods for making requests to
// . See this package's package overview docs
// for details on the service.
//
// OutputService2ProtocolTest methods are safe to use concurrently. It is not safe to
// modify mutate any of the struct's properties though.
type OutputService2ProtocolTest struct {
*client.Client
}
// New creates a new instance of the OutputService2ProtocolTest 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 OutputService2ProtocolTest client from just a session.
// svc := outputservice2protocoltest.New(mySession)
//
// // Create a OutputService2ProtocolTest client with additional configuration
// svc := outputservice2protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2"))
func NewOutputService2ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *OutputService2ProtocolTest {
c := p.ClientConfig("outputservice2protocoltest", cfgs...)
return newOutputService2ProtocolTestClient(*c.Config, c.Handlers, c.PartitionID, c.Endpoint, c.SigningRegion, c.SigningName)
}
// newClient creates, initializes and returns a new service client instance.
func newOutputService2ProtocolTestClient(cfg aws.Config, handlers request.Handlers, partitionID, endpoint, signingRegion, signingName string) *OutputService2ProtocolTest {
svc := &OutputService2ProtocolTest{
Client: client.New(
cfg,
metadata.ClientInfo{
ServiceName: "OutputService2ProtocolTest",
ServiceID: "OutputService2ProtocolTest",
SigningName: signingName,
SigningRegion: signingRegion,
PartitionID: partitionID,
Endpoint: endpoint,
APIVersion: "",
},
handlers,
),
}
// Handlers
svc.Handlers.Sign.PushBackNamed(v4.SignRequestHandler)
svc.Handlers.Build.PushBackNamed(restjson.BuildHandler)
svc.Handlers.Unmarshal.PushBackNamed(restjson.UnmarshalHandler)
svc.Handlers.UnmarshalMeta.PushBackNamed(restjson.UnmarshalMetaHandler)
svc.Handlers.UnmarshalError.PushBackNamed(restjson.UnmarshalErrorHandler)
return svc
}
// newRequest creates a new request for a OutputService2ProtocolTest operation and runs any
// custom request initialization.
func (c *OutputService2ProtocolTest) newRequest(op *request.Operation, params, data interface{}) *request.Request {
req := c.NewRequest(op, params, data)
return req
}
const opOutputService2TestCaseOperation1 = "OperationName"
// OutputService2TestCaseOperation1Request generates a "aws/request.Request" representing the
// client's request for the OutputService2TestCaseOperation1 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 OutputService2TestCaseOperation1 for more information on using the OutputService2TestCaseOperation1
// 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 OutputService2TestCaseOperation1Request method.
// req, resp := client.OutputService2TestCaseOperation1Request(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
func (c *OutputService2ProtocolTest) OutputService2TestCaseOperation1Request(input *OutputService2TestShapeOutputService2TestCaseOperation1Input) (req *request.Request, output *OutputService2TestShapeOutputService2TestCaseOperation1Output) {
op := &request.Operation{
Name: opOutputService2TestCaseOperation1,
HTTPPath: "/",
}
if input == nil {
input = &OutputService2TestShapeOutputService2TestCaseOperation1Input{}
}
output = &OutputService2TestShapeOutputService2TestCaseOperation1Output{}
req = c.newRequest(op, input, output)
return
}
// OutputService2TestCaseOperation1 API operation for .
//
// 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 's
// API operation OutputService2TestCaseOperation1 for usage and error information.
func (c *OutputService2ProtocolTest) OutputService2TestCaseOperation1(input *OutputService2TestShapeOutputService2TestCaseOperation1Input) (*OutputService2TestShapeOutputService2TestCaseOperation1Output, error) {
req, out := c.OutputService2TestCaseOperation1Request(input)
return out, req.Send()
}
// OutputService2TestCaseOperation1WithContext is the same as OutputService2TestCaseOperation1 with the addition of
// the ability to pass a context and additional request options.
//
// See OutputService2TestCaseOperation1 for details on how to use this API operation.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
func (c *OutputService2ProtocolTest) OutputService2TestCaseOperation1WithContext(ctx aws.Context, input *OutputService2TestShapeOutputService2TestCaseOperation1Input, opts ...request.Option) (*OutputService2TestShapeOutputService2TestCaseOperation1Output, error) {
req, out := c.OutputService2TestCaseOperation1Request(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
type OutputService2TestShapeBlobContainer struct {
_ struct{} `type:"structure"`
// Foo is automatically base64 encoded/decoded by the SDK.
Foo []byte `locationName:"foo" type:"blob"`
}
// SetFoo sets the Foo field's value.
func (s *OutputService2TestShapeBlobContainer) SetFoo(v []byte) *OutputService2TestShapeBlobContainer {
s.Foo = v
return s
}
type OutputService2TestShapeOutputService2TestCaseOperation1Input struct {
_ struct{} `type:"structure"`
}
type OutputService2TestShapeOutputService2TestCaseOperation1Output struct {
_ struct{} `type:"structure"`
// BlobMember is automatically base64 encoded/decoded by the SDK.
BlobMember []byte `type:"blob"`
StructMember *OutputService2TestShapeBlobContainer `type:"structure"`
}
// SetBlobMember sets the BlobMember field's value.
func (s *OutputService2TestShapeOutputService2TestCaseOperation1Output) SetBlobMember(v []byte) *OutputService2TestShapeOutputService2TestCaseOperation1Output {
s.BlobMember = v
return s
}
// SetStructMember sets the StructMember field's value.
func (s *OutputService2TestShapeOutputService2TestCaseOperation1Output) SetStructMember(v *OutputService2TestShapeBlobContainer) *OutputService2TestShapeOutputService2TestCaseOperation1Output {
s.StructMember = v
return s
}
// OutputService3ProtocolTest provides the API operation methods for making requests to
// . See this package's package overview docs
// for details on the service.
//
// OutputService3ProtocolTest methods are safe to use concurrently. It is not safe to
// modify mutate any of the struct's properties though.
type OutputService3ProtocolTest struct {
*client.Client
}
// New creates a new instance of the OutputService3ProtocolTest 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 OutputService3ProtocolTest client from just a session.
// svc := outputservice3protocoltest.New(mySession)
//
// // Create a OutputService3ProtocolTest client with additional configuration
// svc := outputservice3protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2"))
func NewOutputService3ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *OutputService3ProtocolTest {
c := p.ClientConfig("outputservice3protocoltest", cfgs...)
return newOutputService3ProtocolTestClient(*c.Config, c.Handlers, c.PartitionID, c.Endpoint, c.SigningRegion, c.SigningName)
}
// newClient creates, initializes and returns a new service client instance.
func newOutputService3ProtocolTestClient(cfg aws.Config, handlers request.Handlers, partitionID, endpoint, signingRegion, signingName string) *OutputService3ProtocolTest {
svc := &OutputService3ProtocolTest{
Client: client.New(
cfg,
metadata.ClientInfo{
ServiceName: "OutputService3ProtocolTest",
ServiceID: "OutputService3ProtocolTest",
SigningName: signingName,
SigningRegion: signingRegion,
PartitionID: partitionID,
Endpoint: endpoint,
APIVersion: "",
},
handlers,
),
}
// Handlers
svc.Handlers.Sign.PushBackNamed(v4.SignRequestHandler)
svc.Handlers.Build.PushBackNamed(restjson.BuildHandler)
svc.Handlers.Unmarshal.PushBackNamed(restjson.UnmarshalHandler)
svc.Handlers.UnmarshalMeta.PushBackNamed(restjson.UnmarshalMetaHandler)
svc.Handlers.UnmarshalError.PushBackNamed(restjson.UnmarshalErrorHandler)
return svc
}
// newRequest creates a new request for a OutputService3ProtocolTest operation and runs any
// custom request initialization.
func (c *OutputService3ProtocolTest) newRequest(op *request.Operation, params, data interface{}) *request.Request {
req := c.NewRequest(op, params, data)
return req
}
const opOutputService3TestCaseOperation1 = "OperationName"
// OutputService3TestCaseOperation1Request generates a "aws/request.Request" representing the
// client's request for the OutputService3TestCaseOperation1 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 OutputService3TestCaseOperation1 for more information on using the OutputService3TestCaseOperation1
// 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 OutputService3TestCaseOperation1Request method.
// req, resp := client.OutputService3TestCaseOperation1Request(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
func (c *OutputService3ProtocolTest) OutputService3TestCaseOperation1Request(input *OutputService3TestShapeOutputService3TestCaseOperation1Input) (req *request.Request, output *OutputService3TestShapeOutputService3TestCaseOperation1Output) {
op := &request.Operation{
Name: opOutputService3TestCaseOperation1,
HTTPPath: "/",
}
if input == nil {
input = &OutputService3TestShapeOutputService3TestCaseOperation1Input{}
}
output = &OutputService3TestShapeOutputService3TestCaseOperation1Output{}
req = c.newRequest(op, input, output)
return
}
// OutputService3TestCaseOperation1 API operation for .
//
// 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 's
// API operation OutputService3TestCaseOperation1 for usage and error information.
func (c *OutputService3ProtocolTest) OutputService3TestCaseOperation1(input *OutputService3TestShapeOutputService3TestCaseOperation1Input) (*OutputService3TestShapeOutputService3TestCaseOperation1Output, error) {
req, out := c.OutputService3TestCaseOperation1Request(input)
return out, req.Send()
}
// OutputService3TestCaseOperation1WithContext is the same as OutputService3TestCaseOperation1 with the addition of
// the ability to pass a context and additional request options.
//
// See OutputService3TestCaseOperation1 for details on how to use this API operation.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
func (c *OutputService3ProtocolTest) OutputService3TestCaseOperation1WithContext(ctx aws.Context, input *OutputService3TestShapeOutputService3TestCaseOperation1Input, opts ...request.Option) (*OutputService3TestShapeOutputService3TestCaseOperation1Output, error) {
req, out := c.OutputService3TestCaseOperation1Request(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
type OutputService3TestShapeOutputService3TestCaseOperation1Input struct {
_ struct{} `type:"structure"`
}
type OutputService3TestShapeOutputService3TestCaseOperation1Output struct {
_ struct{} `type:"structure"`
StructMember *OutputService3TestShapeTimeContainer `type:"structure"`
TimeArg *time.Time `type:"timestamp"`
TimeArgInHeader *time.Time `location:"header" locationName:"x-amz-timearg" type:"timestamp"`
TimeCustom *time.Time `type:"timestamp" timestampFormat:"rfc822"`
TimeCustomInHeader *time.Time `location:"header" locationName:"x-amz-timecustom" type:"timestamp" timestampFormat:"unixTimestamp"`
TimeFormat *time.Time `type:"timestamp" timestampFormat:"iso8601"`
TimeFormatInHeader *time.Time `location:"header" locationName:"x-amz-timeformat" type:"timestamp" timestampFormat:"iso8601"`
}
// SetStructMember sets the StructMember field's value.
func (s *OutputService3TestShapeOutputService3TestCaseOperation1Output) SetStructMember(v *OutputService3TestShapeTimeContainer) *OutputService3TestShapeOutputService3TestCaseOperation1Output {
s.StructMember = v
return s
}
// SetTimeArg sets the TimeArg field's value.
func (s *OutputService3TestShapeOutputService3TestCaseOperation1Output) SetTimeArg(v time.Time) *OutputService3TestShapeOutputService3TestCaseOperation1Output {
s.TimeArg = &v
return s
}
// SetTimeArgInHeader sets the TimeArgInHeader field's value.
func (s *OutputService3TestShapeOutputService3TestCaseOperation1Output) SetTimeArgInHeader(v time.Time) *OutputService3TestShapeOutputService3TestCaseOperation1Output {
s.TimeArgInHeader = &v
return s
}
// SetTimeCustom sets the TimeCustom field's value.
func (s *OutputService3TestShapeOutputService3TestCaseOperation1Output) SetTimeCustom(v time.Time) *OutputService3TestShapeOutputService3TestCaseOperation1Output {
s.TimeCustom = &v
return s
}
// SetTimeCustomInHeader sets the TimeCustomInHeader field's value.
func (s *OutputService3TestShapeOutputService3TestCaseOperation1Output) SetTimeCustomInHeader(v time.Time) *OutputService3TestShapeOutputService3TestCaseOperation1Output {
s.TimeCustomInHeader = &v
return s
}
// SetTimeFormat sets the TimeFormat field's value.
func (s *OutputService3TestShapeOutputService3TestCaseOperation1Output) SetTimeFormat(v time.Time) *OutputService3TestShapeOutputService3TestCaseOperation1Output {
s.TimeFormat = &v
return s
}
// SetTimeFormatInHeader sets the TimeFormatInHeader field's value.
func (s *OutputService3TestShapeOutputService3TestCaseOperation1Output) SetTimeFormatInHeader(v time.Time) *OutputService3TestShapeOutputService3TestCaseOperation1Output {
s.TimeFormatInHeader = &v
return s
}
type OutputService3TestShapeTimeContainer struct {
_ struct{} `type:"structure"`
Bar *time.Time `locationName:"bar" type:"timestamp" timestampFormat:"iso8601"`
Foo *time.Time `locationName:"foo" type:"timestamp"`
}
// SetBar sets the Bar field's value.
func (s *OutputService3TestShapeTimeContainer) SetBar(v time.Time) *OutputService3TestShapeTimeContainer {
s.Bar = &v
return s
}
// SetFoo sets the Foo field's value.
func (s *OutputService3TestShapeTimeContainer) SetFoo(v time.Time) *OutputService3TestShapeTimeContainer {
s.Foo = &v
return s
}
// OutputService4ProtocolTest provides the API operation methods for making requests to
// . See this package's package overview docs
// for details on the service.
//
// OutputService4ProtocolTest methods are safe to use concurrently. It is not safe to
// modify mutate any of the struct's properties though.
type OutputService4ProtocolTest struct {
*client.Client
}
// New creates a new instance of the OutputService4ProtocolTest 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 OutputService4ProtocolTest client from just a session.
// svc := outputservice4protocoltest.New(mySession)
//
// // Create a OutputService4ProtocolTest client with additional configuration
// svc := outputservice4protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2"))
func NewOutputService4ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *OutputService4ProtocolTest {
c := p.ClientConfig("outputservice4protocoltest", cfgs...)
return newOutputService4ProtocolTestClient(*c.Config, c.Handlers, c.PartitionID, c.Endpoint, c.SigningRegion, c.SigningName)
}
// newClient creates, initializes and returns a new service client instance.
func newOutputService4ProtocolTestClient(cfg aws.Config, handlers request.Handlers, partitionID, endpoint, signingRegion, signingName string) *OutputService4ProtocolTest {
svc := &OutputService4ProtocolTest{
Client: client.New(
cfg,
metadata.ClientInfo{
ServiceName: "OutputService4ProtocolTest",
ServiceID: "OutputService4ProtocolTest",
SigningName: signingName,
SigningRegion: signingRegion,
PartitionID: partitionID,
Endpoint: endpoint,
APIVersion: "",
},
handlers,
),
}
// Handlers
svc.Handlers.Sign.PushBackNamed(v4.SignRequestHandler)
svc.Handlers.Build.PushBackNamed(restjson.BuildHandler)
svc.Handlers.Unmarshal.PushBackNamed(restjson.UnmarshalHandler)
svc.Handlers.UnmarshalMeta.PushBackNamed(restjson.UnmarshalMetaHandler)
svc.Handlers.UnmarshalError.PushBackNamed(restjson.UnmarshalErrorHandler)
return svc
}
// newRequest creates a new request for a OutputService4ProtocolTest operation and runs any
// custom request initialization.
func (c *OutputService4ProtocolTest) newRequest(op *request.Operation, params, data interface{}) *request.Request {
req := c.NewRequest(op, params, data)
return req
}
const opOutputService4TestCaseOperation1 = "OperationName"
// OutputService4TestCaseOperation1Request generates a "aws/request.Request" representing the
// client's request for the OutputService4TestCaseOperation1 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 OutputService4TestCaseOperation1 for more information on using the OutputService4TestCaseOperation1
// 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 OutputService4TestCaseOperation1Request method.
// req, resp := client.OutputService4TestCaseOperation1Request(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
func (c *OutputService4ProtocolTest) OutputService4TestCaseOperation1Request(input *OutputService4TestShapeOutputService4TestCaseOperation1Input) (req *request.Request, output *OutputService4TestShapeOutputService4TestCaseOperation1Output) {
op := &request.Operation{
Name: opOutputService4TestCaseOperation1,
HTTPPath: "/",
}
if input == nil {
input = &OutputService4TestShapeOutputService4TestCaseOperation1Input{}
}
output = &OutputService4TestShapeOutputService4TestCaseOperation1Output{}
req = c.newRequest(op, input, output)
return
}
// OutputService4TestCaseOperation1 API operation for .
//
// 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 's
// API operation OutputService4TestCaseOperation1 for usage and error information.
func (c *OutputService4ProtocolTest) OutputService4TestCaseOperation1(input *OutputService4TestShapeOutputService4TestCaseOperation1Input) (*OutputService4TestShapeOutputService4TestCaseOperation1Output, error) {
req, out := c.OutputService4TestCaseOperation1Request(input)
return out, req.Send()
}
// OutputService4TestCaseOperation1WithContext is the same as OutputService4TestCaseOperation1 with the addition of
// the ability to pass a context and additional request options.
//
// See OutputService4TestCaseOperation1 for details on how to use this API operation.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
func (c *OutputService4ProtocolTest) OutputService4TestCaseOperation1WithContext(ctx aws.Context, input *OutputService4TestShapeOutputService4TestCaseOperation1Input, opts ...request.Option) (*OutputService4TestShapeOutputService4TestCaseOperation1Output, error) {
req, out := c.OutputService4TestCaseOperation1Request(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
type OutputService4TestShapeOutputService4TestCaseOperation1Input struct {
_ struct{} `type:"structure"`
}
type OutputService4TestShapeOutputService4TestCaseOperation1Output struct {
_ struct{} `type:"structure"`
ListMember []*string `type:"list"`
}
// SetListMember sets the ListMember field's value.
func (s *OutputService4TestShapeOutputService4TestCaseOperation1Output) SetListMember(v []*string) *OutputService4TestShapeOutputService4TestCaseOperation1Output {
s.ListMember = v
return s
}
// OutputService5ProtocolTest provides the API operation methods for making requests to
// . See this package's package overview docs
// for details on the service.
//
// OutputService5ProtocolTest methods are safe to use concurrently. It is not safe to
// modify mutate any of the struct's properties though.
type OutputService5ProtocolTest struct {
*client.Client
}
// New creates a new instance of the OutputService5ProtocolTest 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 OutputService5ProtocolTest client from just a session.
// svc := outputservice5protocoltest.New(mySession)
//
// // Create a OutputService5ProtocolTest client with additional configuration
// svc := outputservice5protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2"))
func NewOutputService5ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *OutputService5ProtocolTest {
c := p.ClientConfig("outputservice5protocoltest", cfgs...)
return newOutputService5ProtocolTestClient(*c.Config, c.Handlers, c.PartitionID, c.Endpoint, c.SigningRegion, c.SigningName)
}
// newClient creates, initializes and returns a new service client instance.
func newOutputService5ProtocolTestClient(cfg aws.Config, handlers request.Handlers, partitionID, endpoint, signingRegion, signingName string) *OutputService5ProtocolTest {
svc := &OutputService5ProtocolTest{
Client: client.New(
cfg,
metadata.ClientInfo{
ServiceName: "OutputService5ProtocolTest",
ServiceID: "OutputService5ProtocolTest",
SigningName: signingName,
SigningRegion: signingRegion,
PartitionID: partitionID,
Endpoint: endpoint,
APIVersion: "",
},
handlers,
),
}
// Handlers
svc.Handlers.Sign.PushBackNamed(v4.SignRequestHandler)
svc.Handlers.Build.PushBackNamed(restjson.BuildHandler)
svc.Handlers.Unmarshal.PushBackNamed(restjson.UnmarshalHandler)
svc.Handlers.UnmarshalMeta.PushBackNamed(restjson.UnmarshalMetaHandler)
svc.Handlers.UnmarshalError.PushBackNamed(restjson.UnmarshalErrorHandler)
return svc
}
// newRequest creates a new request for a OutputService5ProtocolTest operation and runs any
// custom request initialization.
func (c *OutputService5ProtocolTest) newRequest(op *request.Operation, params, data interface{}) *request.Request {
req := c.NewRequest(op, params, data)
return req
}
const opOutputService5TestCaseOperation1 = "OperationName"
// OutputService5TestCaseOperation1Request generates a "aws/request.Request" representing the
// client's request for the OutputService5TestCaseOperation1 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 OutputService5TestCaseOperation1 for more information on using the OutputService5TestCaseOperation1
// 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 OutputService5TestCaseOperation1Request method.
// req, resp := client.OutputService5TestCaseOperation1Request(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
func (c *OutputService5ProtocolTest) OutputService5TestCaseOperation1Request(input *OutputService5TestShapeOutputService5TestCaseOperation1Input) (req *request.Request, output *OutputService5TestShapeOutputService5TestCaseOperation1Output) {
op := &request.Operation{
Name: opOutputService5TestCaseOperation1,
HTTPPath: "/",
}
if input == nil {
input = &OutputService5TestShapeOutputService5TestCaseOperation1Input{}
}
output = &OutputService5TestShapeOutputService5TestCaseOperation1Output{}
req = c.newRequest(op, input, output)
return
}
// OutputService5TestCaseOperation1 API operation for .
//
// 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 's
// API operation OutputService5TestCaseOperation1 for usage and error information.
func (c *OutputService5ProtocolTest) OutputService5TestCaseOperation1(input *OutputService5TestShapeOutputService5TestCaseOperation1Input) (*OutputService5TestShapeOutputService5TestCaseOperation1Output, error) {
req, out := c.OutputService5TestCaseOperation1Request(input)
return out, req.Send()
}
// OutputService5TestCaseOperation1WithContext is the same as OutputService5TestCaseOperation1 with the addition of
// the ability to pass a context and additional request options.
//
// See OutputService5TestCaseOperation1 for details on how to use this API operation.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
func (c *OutputService5ProtocolTest) OutputService5TestCaseOperation1WithContext(ctx aws.Context, input *OutputService5TestShapeOutputService5TestCaseOperation1Input, opts ...request.Option) (*OutputService5TestShapeOutputService5TestCaseOperation1Output, error) {
req, out := c.OutputService5TestCaseOperation1Request(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
type OutputService5TestShapeOutputService5TestCaseOperation1Input struct {
_ struct{} `type:"structure"`
}
type OutputService5TestShapeOutputService5TestCaseOperation1Output struct {
_ struct{} `type:"structure"`
ListMember []*OutputService5TestShapeSingleStruct `type:"list"`
}
// SetListMember sets the ListMember field's value.
func (s *OutputService5TestShapeOutputService5TestCaseOperation1Output) SetListMember(v []*OutputService5TestShapeSingleStruct) *OutputService5TestShapeOutputService5TestCaseOperation1Output {
s.ListMember = v
return s
}
type OutputService5TestShapeSingleStruct struct {
_ struct{} `type:"structure"`
Foo *string `type:"string"`
}
// SetFoo sets the Foo field's value.
func (s *OutputService5TestShapeSingleStruct) SetFoo(v string) *OutputService5TestShapeSingleStruct {
s.Foo = &v
return s
}
// OutputService6ProtocolTest provides the API operation methods for making requests to
// . See this package's package overview docs
// for details on the service.
//
// OutputService6ProtocolTest methods are safe to use concurrently. It is not safe to
// modify mutate any of the struct's properties though.
type OutputService6ProtocolTest struct {
*client.Client
}
// New creates a new instance of the OutputService6ProtocolTest 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 OutputService6ProtocolTest client from just a session.
// svc := outputservice6protocoltest.New(mySession)
//
// // Create a OutputService6ProtocolTest client with additional configuration
// svc := outputservice6protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2"))
func NewOutputService6ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *OutputService6ProtocolTest {
c := p.ClientConfig("outputservice6protocoltest", cfgs...)
return newOutputService6ProtocolTestClient(*c.Config, c.Handlers, c.PartitionID, c.Endpoint, c.SigningRegion, c.SigningName)
}
// newClient creates, initializes and returns a new service client instance.
func newOutputService6ProtocolTestClient(cfg aws.Config, handlers request.Handlers, partitionID, endpoint, signingRegion, signingName string) *OutputService6ProtocolTest {
svc := &OutputService6ProtocolTest{
Client: client.New(
cfg,
metadata.ClientInfo{
ServiceName: "OutputService6ProtocolTest",
ServiceID: "OutputService6ProtocolTest",
SigningName: signingName,
SigningRegion: signingRegion,
PartitionID: partitionID,
Endpoint: endpoint,
APIVersion: "",
},
handlers,
),
}
// Handlers
svc.Handlers.Sign.PushBackNamed(v4.SignRequestHandler)
svc.Handlers.Build.PushBackNamed(restjson.BuildHandler)
svc.Handlers.Unmarshal.PushBackNamed(restjson.UnmarshalHandler)
svc.Handlers.UnmarshalMeta.PushBackNamed(restjson.UnmarshalMetaHandler)
svc.Handlers.UnmarshalError.PushBackNamed(restjson.UnmarshalErrorHandler)
return svc
}
// newRequest creates a new request for a OutputService6ProtocolTest operation and runs any
// custom request initialization.
func (c *OutputService6ProtocolTest) newRequest(op *request.Operation, params, data interface{}) *request.Request {
req := c.NewRequest(op, params, data)
return req
}
const opOutputService6TestCaseOperation1 = "OperationName"
// OutputService6TestCaseOperation1Request generates a "aws/request.Request" representing the
// client's request for the OutputService6TestCaseOperation1 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 OutputService6TestCaseOperation1 for more information on using the OutputService6TestCaseOperation1
// 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 OutputService6TestCaseOperation1Request method.
// req, resp := client.OutputService6TestCaseOperation1Request(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
func (c *OutputService6ProtocolTest) OutputService6TestCaseOperation1Request(input *OutputService6TestShapeOutputService6TestCaseOperation1Input) (req *request.Request, output *OutputService6TestShapeOutputService6TestCaseOperation1Output) {
op := &request.Operation{
Name: opOutputService6TestCaseOperation1,
HTTPPath: "/",
}
if input == nil {
input = &OutputService6TestShapeOutputService6TestCaseOperation1Input{}
}
output = &OutputService6TestShapeOutputService6TestCaseOperation1Output{}
req = c.newRequest(op, input, output)
return
}
// OutputService6TestCaseOperation1 API operation for .
//
// 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 's
// API operation OutputService6TestCaseOperation1 for usage and error information.
func (c *OutputService6ProtocolTest) OutputService6TestCaseOperation1(input *OutputService6TestShapeOutputService6TestCaseOperation1Input) (*OutputService6TestShapeOutputService6TestCaseOperation1Output, error) {
req, out := c.OutputService6TestCaseOperation1Request(input)
return out, req.Send()
}
// OutputService6TestCaseOperation1WithContext is the same as OutputService6TestCaseOperation1 with the addition of
// the ability to pass a context and additional request options.
//
// See OutputService6TestCaseOperation1 for details on how to use this API operation.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
func (c *OutputService6ProtocolTest) OutputService6TestCaseOperation1WithContext(ctx aws.Context, input *OutputService6TestShapeOutputService6TestCaseOperation1Input, opts ...request.Option) (*OutputService6TestShapeOutputService6TestCaseOperation1Output, error) {
req, out := c.OutputService6TestCaseOperation1Request(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
type OutputService6TestShapeOutputService6TestCaseOperation1Input struct {
_ struct{} `type:"structure"`
}
type OutputService6TestShapeOutputService6TestCaseOperation1Output struct {
_ struct{} `type:"structure"`
MapMember map[string][]*int64 `type:"map"`
}
// SetMapMember sets the MapMember field's value.
func (s *OutputService6TestShapeOutputService6TestCaseOperation1Output) SetMapMember(v map[string][]*int64) *OutputService6TestShapeOutputService6TestCaseOperation1Output {
s.MapMember = v
return s
}
// OutputService7ProtocolTest provides the API operation methods for making requests to
// . See this package's package overview docs
// for details on the service.
//
// OutputService7ProtocolTest methods are safe to use concurrently. It is not safe to
// modify mutate any of the struct's properties though.
type OutputService7ProtocolTest struct {
*client.Client
}
// New creates a new instance of the OutputService7ProtocolTest 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 OutputService7ProtocolTest client from just a session.
// svc := outputservice7protocoltest.New(mySession)
//
// // Create a OutputService7ProtocolTest client with additional configuration
// svc := outputservice7protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2"))
func NewOutputService7ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *OutputService7ProtocolTest {
c := p.ClientConfig("outputservice7protocoltest", cfgs...)
return newOutputService7ProtocolTestClient(*c.Config, c.Handlers, c.PartitionID, c.Endpoint, c.SigningRegion, c.SigningName)
}
// newClient creates, initializes and returns a new service client instance.
func newOutputService7ProtocolTestClient(cfg aws.Config, handlers request.Handlers, partitionID, endpoint, signingRegion, signingName string) *OutputService7ProtocolTest {
svc := &OutputService7ProtocolTest{
Client: client.New(
cfg,
metadata.ClientInfo{
ServiceName: "OutputService7ProtocolTest",
ServiceID: "OutputService7ProtocolTest",
SigningName: signingName,
SigningRegion: signingRegion,
PartitionID: partitionID,
Endpoint: endpoint,
APIVersion: "",
},
handlers,
),
}
// Handlers
svc.Handlers.Sign.PushBackNamed(v4.SignRequestHandler)
svc.Handlers.Build.PushBackNamed(restjson.BuildHandler)
svc.Handlers.Unmarshal.PushBackNamed(restjson.UnmarshalHandler)
svc.Handlers.UnmarshalMeta.PushBackNamed(restjson.UnmarshalMetaHandler)
svc.Handlers.UnmarshalError.PushBackNamed(restjson.UnmarshalErrorHandler)
return svc
}
// newRequest creates a new request for a OutputService7ProtocolTest operation and runs any
// custom request initialization.
func (c *OutputService7ProtocolTest) newRequest(op *request.Operation, params, data interface{}) *request.Request {
req := c.NewRequest(op, params, data)
return req
}
const opOutputService7TestCaseOperation1 = "OperationName"
// OutputService7TestCaseOperation1Request generates a "aws/request.Request" representing the
// client's request for the OutputService7TestCaseOperation1 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 OutputService7TestCaseOperation1 for more information on using the OutputService7TestCaseOperation1
// 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 OutputService7TestCaseOperation1Request method.
// req, resp := client.OutputService7TestCaseOperation1Request(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
func (c *OutputService7ProtocolTest) OutputService7TestCaseOperation1Request(input *OutputService7TestShapeOutputService7TestCaseOperation1Input) (req *request.Request, output *OutputService7TestShapeOutputService7TestCaseOperation1Output) {
op := &request.Operation{
Name: opOutputService7TestCaseOperation1,
HTTPPath: "/",
}
if input == nil {
input = &OutputService7TestShapeOutputService7TestCaseOperation1Input{}
}
output = &OutputService7TestShapeOutputService7TestCaseOperation1Output{}
req = c.newRequest(op, input, output)
return
}
// OutputService7TestCaseOperation1 API operation for .
//
// 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 's
// API operation OutputService7TestCaseOperation1 for usage and error information.
func (c *OutputService7ProtocolTest) OutputService7TestCaseOperation1(input *OutputService7TestShapeOutputService7TestCaseOperation1Input) (*OutputService7TestShapeOutputService7TestCaseOperation1Output, error) {
req, out := c.OutputService7TestCaseOperation1Request(input)
return out, req.Send()
}
// OutputService7TestCaseOperation1WithContext is the same as OutputService7TestCaseOperation1 with the addition of
// the ability to pass a context and additional request options.
//
// See OutputService7TestCaseOperation1 for details on how to use this API operation.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
func (c *OutputService7ProtocolTest) OutputService7TestCaseOperation1WithContext(ctx aws.Context, input *OutputService7TestShapeOutputService7TestCaseOperation1Input, opts ...request.Option) (*OutputService7TestShapeOutputService7TestCaseOperation1Output, error) {
req, out := c.OutputService7TestCaseOperation1Request(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
type OutputService7TestShapeOutputService7TestCaseOperation1Input struct {
_ struct{} `type:"structure"`
}
type OutputService7TestShapeOutputService7TestCaseOperation1Output struct {
_ struct{} `type:"structure"`
MapMember map[string]*time.Time `type:"map"`
}
// SetMapMember sets the MapMember field's value.
func (s *OutputService7TestShapeOutputService7TestCaseOperation1Output) SetMapMember(v map[string]*time.Time) *OutputService7TestShapeOutputService7TestCaseOperation1Output {
s.MapMember = v
return s
}
// OutputService8ProtocolTest provides the API operation methods for making requests to
// . See this package's package overview docs
// for details on the service.
//
// OutputService8ProtocolTest methods are safe to use concurrently. It is not safe to
// modify mutate any of the struct's properties though.
type OutputService8ProtocolTest struct {
*client.Client
}
// New creates a new instance of the OutputService8ProtocolTest 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 OutputService8ProtocolTest client from just a session.
// svc := outputservice8protocoltest.New(mySession)
//
// // Create a OutputService8ProtocolTest client with additional configuration
// svc := outputservice8protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2"))
func NewOutputService8ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *OutputService8ProtocolTest {
c := p.ClientConfig("outputservice8protocoltest", cfgs...)
return newOutputService8ProtocolTestClient(*c.Config, c.Handlers, c.PartitionID, c.Endpoint, c.SigningRegion, c.SigningName)
}
// newClient creates, initializes and returns a new service client instance.
func newOutputService8ProtocolTestClient(cfg aws.Config, handlers request.Handlers, partitionID, endpoint, signingRegion, signingName string) *OutputService8ProtocolTest {
svc := &OutputService8ProtocolTest{
Client: client.New(
cfg,
metadata.ClientInfo{
ServiceName: "OutputService8ProtocolTest",
ServiceID: "OutputService8ProtocolTest",
SigningName: signingName,
SigningRegion: signingRegion,
PartitionID: partitionID,
Endpoint: endpoint,
APIVersion: "",
},
handlers,
),
}
// Handlers
svc.Handlers.Sign.PushBackNamed(v4.SignRequestHandler)
svc.Handlers.Build.PushBackNamed(restjson.BuildHandler)
svc.Handlers.Unmarshal.PushBackNamed(restjson.UnmarshalHandler)
svc.Handlers.UnmarshalMeta.PushBackNamed(restjson.UnmarshalMetaHandler)
svc.Handlers.UnmarshalError.PushBackNamed(restjson.UnmarshalErrorHandler)
return svc
}
// newRequest creates a new request for a OutputService8ProtocolTest operation and runs any
// custom request initialization.
func (c *OutputService8ProtocolTest) newRequest(op *request.Operation, params, data interface{}) *request.Request {
req := c.NewRequest(op, params, data)
return req
}
const opOutputService8TestCaseOperation1 = "OperationName"
// OutputService8TestCaseOperation1Request generates a "aws/request.Request" representing the
// client's request for the OutputService8TestCaseOperation1 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 OutputService8TestCaseOperation1 for more information on using the OutputService8TestCaseOperation1
// 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 OutputService8TestCaseOperation1Request method.
// req, resp := client.OutputService8TestCaseOperation1Request(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
func (c *OutputService8ProtocolTest) OutputService8TestCaseOperation1Request(input *OutputService8TestShapeOutputService8TestCaseOperation1Input) (req *request.Request, output *OutputService8TestShapeOutputService8TestCaseOperation1Output) {
op := &request.Operation{
Name: opOutputService8TestCaseOperation1,
HTTPPath: "/",
}
if input == nil {
input = &OutputService8TestShapeOutputService8TestCaseOperation1Input{}
}
output = &OutputService8TestShapeOutputService8TestCaseOperation1Output{}
req = c.newRequest(op, input, output)
return
}
// OutputService8TestCaseOperation1 API operation for .
//
// 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 's
// API operation OutputService8TestCaseOperation1 for usage and error information.
func (c *OutputService8ProtocolTest) OutputService8TestCaseOperation1(input *OutputService8TestShapeOutputService8TestCaseOperation1Input) (*OutputService8TestShapeOutputService8TestCaseOperation1Output, error) {
req, out := c.OutputService8TestCaseOperation1Request(input)
return out, req.Send()
}
// OutputService8TestCaseOperation1WithContext is the same as OutputService8TestCaseOperation1 with the addition of
// the ability to pass a context and additional request options.
//
// See OutputService8TestCaseOperation1 for details on how to use this API operation.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
func (c *OutputService8ProtocolTest) OutputService8TestCaseOperation1WithContext(ctx aws.Context, input *OutputService8TestShapeOutputService8TestCaseOperation1Input, opts ...request.Option) (*OutputService8TestShapeOutputService8TestCaseOperation1Output, error) {
req, out := c.OutputService8TestCaseOperation1Request(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
type OutputService8TestShapeOutputService8TestCaseOperation1Input struct {
_ struct{} `type:"structure"`
}
type OutputService8TestShapeOutputService8TestCaseOperation1Output struct {
_ struct{} `type:"structure"`
StrType *string `type:"string"`
}
// SetStrType sets the StrType field's value.
func (s *OutputService8TestShapeOutputService8TestCaseOperation1Output) SetStrType(v string) *OutputService8TestShapeOutputService8TestCaseOperation1Output {
s.StrType = &v
return s
}
// OutputService9ProtocolTest provides the API operation methods for making requests to
// . See this package's package overview docs
// for details on the service.
//
// OutputService9ProtocolTest methods are safe to use concurrently. It is not safe to
// modify mutate any of the struct's properties though.
type OutputService9ProtocolTest struct {
*client.Client
}
// New creates a new instance of the OutputService9ProtocolTest 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 OutputService9ProtocolTest client from just a session.
// svc := outputservice9protocoltest.New(mySession)
//
// // Create a OutputService9ProtocolTest client with additional configuration
// svc := outputservice9protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2"))
func NewOutputService9ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *OutputService9ProtocolTest {
c := p.ClientConfig("outputservice9protocoltest", cfgs...)
return newOutputService9ProtocolTestClient(*c.Config, c.Handlers, c.PartitionID, c.Endpoint, c.SigningRegion, c.SigningName)
}
// newClient creates, initializes and returns a new service client instance.
func newOutputService9ProtocolTestClient(cfg aws.Config, handlers request.Handlers, partitionID, endpoint, signingRegion, signingName string) *OutputService9ProtocolTest {
svc := &OutputService9ProtocolTest{
Client: client.New(
cfg,
metadata.ClientInfo{
ServiceName: "OutputService9ProtocolTest",
ServiceID: "OutputService9ProtocolTest",
SigningName: signingName,
SigningRegion: signingRegion,
PartitionID: partitionID,
Endpoint: endpoint,
APIVersion: "",
},
handlers,
),
}
// Handlers
svc.Handlers.Sign.PushBackNamed(v4.SignRequestHandler)
svc.Handlers.Build.PushBackNamed(restjson.BuildHandler)
svc.Handlers.Unmarshal.PushBackNamed(restjson.UnmarshalHandler)
svc.Handlers.UnmarshalMeta.PushBackNamed(restjson.UnmarshalMetaHandler)
svc.Handlers.UnmarshalError.PushBackNamed(restjson.UnmarshalErrorHandler)
return svc
}
// newRequest creates a new request for a OutputService9ProtocolTest operation and runs any
// custom request initialization.
func (c *OutputService9ProtocolTest) newRequest(op *request.Operation, params, data interface{}) *request.Request {
req := c.NewRequest(op, params, data)
return req
}
const opOutputService9TestCaseOperation1 = "OperationName"
// OutputService9TestCaseOperation1Request generates a "aws/request.Request" representing the
// client's request for the OutputService9TestCaseOperation1 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 OutputService9TestCaseOperation1 for more information on using the OutputService9TestCaseOperation1
// 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 OutputService9TestCaseOperation1Request method.
// req, resp := client.OutputService9TestCaseOperation1Request(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
func (c *OutputService9ProtocolTest) OutputService9TestCaseOperation1Request(input *OutputService9TestShapeOutputService9TestCaseOperation1Input) (req *request.Request, output *OutputService9TestShapeOutputService9TestCaseOperation1Output) {
op := &request.Operation{
Name: opOutputService9TestCaseOperation1,
HTTPPath: "/",
}
if input == nil {
input = &OutputService9TestShapeOutputService9TestCaseOperation1Input{}
}
output = &OutputService9TestShapeOutputService9TestCaseOperation1Output{}
req = c.newRequest(op, input, output)
req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
return
}
// OutputService9TestCaseOperation1 API operation for .
//
// 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 's
// API operation OutputService9TestCaseOperation1 for usage and error information.
func (c *OutputService9ProtocolTest) OutputService9TestCaseOperation1(input *OutputService9TestShapeOutputService9TestCaseOperation1Input) (*OutputService9TestShapeOutputService9TestCaseOperation1Output, error) {
req, out := c.OutputService9TestCaseOperation1Request(input)
return out, req.Send()
}
// OutputService9TestCaseOperation1WithContext is the same as OutputService9TestCaseOperation1 with the addition of
// the ability to pass a context and additional request options.
//
// See OutputService9TestCaseOperation1 for details on how to use this API operation.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
func (c *OutputService9ProtocolTest) OutputService9TestCaseOperation1WithContext(ctx aws.Context, input *OutputService9TestShapeOutputService9TestCaseOperation1Input, opts ...request.Option) (*OutputService9TestShapeOutputService9TestCaseOperation1Output, error) {
req, out := c.OutputService9TestCaseOperation1Request(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
type OutputService9TestShapeOutputService9TestCaseOperation1Input struct {
_ struct{} `type:"structure"`
}
type OutputService9TestShapeOutputService9TestCaseOperation1Output struct {
_ struct{} `type:"structure"`
}
// OutputService10ProtocolTest provides the API operation methods for making requests to
// . See this package's package overview docs
// for details on the service.
//
// OutputService10ProtocolTest methods are safe to use concurrently. It is not safe to
// modify mutate any of the struct's properties though.
type OutputService10ProtocolTest struct {
*client.Client
}
// New creates a new instance of the OutputService10ProtocolTest 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 OutputService10ProtocolTest client from just a session.
// svc := outputservice10protocoltest.New(mySession)
//
// // Create a OutputService10ProtocolTest client with additional configuration
// svc := outputservice10protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2"))
func NewOutputService10ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *OutputService10ProtocolTest {
c := p.ClientConfig("outputservice10protocoltest", cfgs...)
return newOutputService10ProtocolTestClient(*c.Config, c.Handlers, c.PartitionID, c.Endpoint, c.SigningRegion, c.SigningName)
}
// newClient creates, initializes and returns a new service client instance.
func newOutputService10ProtocolTestClient(cfg aws.Config, handlers request.Handlers, partitionID, endpoint, signingRegion, signingName string) *OutputService10ProtocolTest {
svc := &OutputService10ProtocolTest{
Client: client.New(
cfg,
metadata.ClientInfo{
ServiceName: "OutputService10ProtocolTest",
ServiceID: "OutputService10ProtocolTest",
SigningName: signingName,
SigningRegion: signingRegion,
PartitionID: partitionID,
Endpoint: endpoint,
APIVersion: "",
},
handlers,
),
}
// Handlers
svc.Handlers.Sign.PushBackNamed(v4.SignRequestHandler)
svc.Handlers.Build.PushBackNamed(restjson.BuildHandler)
svc.Handlers.Unmarshal.PushBackNamed(restjson.UnmarshalHandler)
svc.Handlers.UnmarshalMeta.PushBackNamed(restjson.UnmarshalMetaHandler)
svc.Handlers.UnmarshalError.PushBackNamed(restjson.UnmarshalErrorHandler)
return svc
}
// newRequest creates a new request for a OutputService10ProtocolTest operation and runs any
// custom request initialization.
func (c *OutputService10ProtocolTest) newRequest(op *request.Operation, params, data interface{}) *request.Request {
req := c.NewRequest(op, params, data)
return req
}
const opOutputService10TestCaseOperation1 = "OperationName"
// OutputService10TestCaseOperation1Request generates a "aws/request.Request" representing the
// client's request for the OutputService10TestCaseOperation1 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 OutputService10TestCaseOperation1 for more information on using the OutputService10TestCaseOperation1
// 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 OutputService10TestCaseOperation1Request method.
// req, resp := client.OutputService10TestCaseOperation1Request(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
func (c *OutputService10ProtocolTest) OutputService10TestCaseOperation1Request(input *OutputService10TestShapeOutputService10TestCaseOperation1Input) (req *request.Request, output *OutputService10TestShapeOutputService10TestCaseOperation1Output) {
op := &request.Operation{
Name: opOutputService10TestCaseOperation1,
HTTPPath: "/",
}
if input == nil {
input = &OutputService10TestShapeOutputService10TestCaseOperation1Input{}
}
output = &OutputService10TestShapeOutputService10TestCaseOperation1Output{}
req = c.newRequest(op, input, output)
return
}
// OutputService10TestCaseOperation1 API operation for .
//
// 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 's
// API operation OutputService10TestCaseOperation1 for usage and error information.
func (c *OutputService10ProtocolTest) OutputService10TestCaseOperation1(input *OutputService10TestShapeOutputService10TestCaseOperation1Input) (*OutputService10TestShapeOutputService10TestCaseOperation1Output, error) {
req, out := c.OutputService10TestCaseOperation1Request(input)
return out, req.Send()
}
// OutputService10TestCaseOperation1WithContext is the same as OutputService10TestCaseOperation1 with the addition of
// the ability to pass a context and additional request options.
//
// See OutputService10TestCaseOperation1 for details on how to use this API operation.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
func (c *OutputService10ProtocolTest) OutputService10TestCaseOperation1WithContext(ctx aws.Context, input *OutputService10TestShapeOutputService10TestCaseOperation1Input, opts ...request.Option) (*OutputService10TestShapeOutputService10TestCaseOperation1Output, error) {
req, out := c.OutputService10TestCaseOperation1Request(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
type OutputService10TestShapeOutputService10TestCaseOperation1Input struct {
_ struct{} `type:"structure"`
}
type OutputService10TestShapeOutputService10TestCaseOperation1Output struct {
_ struct{} `type:"structure"`
// By default unmarshaled keys are written as a map keys in following canonicalized format:
// the first letter and any letter following a hyphen will be capitalized, and the rest as lowercase.
// Set `aws.Config.LowerCaseHeaderMaps` to `true` to write unmarshaled keys to the map as lowercase.
AllHeaders map[string]*string `location:"headers" type:"map"`
// By default unmarshaled keys are written as a map keys in following canonicalized format:
// the first letter and any letter following a hyphen will be capitalized, and the rest as lowercase.
// Set `aws.Config.LowerCaseHeaderMaps` to `true` to write unmarshaled keys to the map as lowercase.
PrefixedHeaders map[string]*string `location:"headers" locationName:"X-" type:"map"`
}
// SetAllHeaders sets the AllHeaders field's value.
func (s *OutputService10TestShapeOutputService10TestCaseOperation1Output) SetAllHeaders(v map[string]*string) *OutputService10TestShapeOutputService10TestCaseOperation1Output {
s.AllHeaders = v
return s
}
// SetPrefixedHeaders sets the PrefixedHeaders field's value.
func (s *OutputService10TestShapeOutputService10TestCaseOperation1Output) SetPrefixedHeaders(v map[string]*string) *OutputService10TestShapeOutputService10TestCaseOperation1Output {
s.PrefixedHeaders = v
return s
}
// OutputService11ProtocolTest provides the API operation methods for making requests to
// . See this package's package overview docs
// for details on the service.
//
// OutputService11ProtocolTest methods are safe to use concurrently. It is not safe to
// modify mutate any of the struct's properties though.
type OutputService11ProtocolTest struct {
*client.Client
}
// New creates a new instance of the OutputService11ProtocolTest 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 OutputService11ProtocolTest client from just a session.
// svc := outputservice11protocoltest.New(mySession)
//
// // Create a OutputService11ProtocolTest client with additional configuration
// svc := outputservice11protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2"))
func NewOutputService11ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *OutputService11ProtocolTest {
c := p.ClientConfig("outputservice11protocoltest", cfgs...)
return newOutputService11ProtocolTestClient(*c.Config, c.Handlers, c.PartitionID, c.Endpoint, c.SigningRegion, c.SigningName)
}
// newClient creates, initializes and returns a new service client instance.
func newOutputService11ProtocolTestClient(cfg aws.Config, handlers request.Handlers, partitionID, endpoint, signingRegion, signingName string) *OutputService11ProtocolTest {
svc := &OutputService11ProtocolTest{
Client: client.New(
cfg,
metadata.ClientInfo{
ServiceName: "OutputService11ProtocolTest",
ServiceID: "OutputService11ProtocolTest",
SigningName: signingName,
SigningRegion: signingRegion,
PartitionID: partitionID,
Endpoint: endpoint,
APIVersion: "",
},
handlers,
),
}
// Handlers
svc.Handlers.Sign.PushBackNamed(v4.SignRequestHandler)
svc.Handlers.Build.PushBackNamed(restjson.BuildHandler)
svc.Handlers.Unmarshal.PushBackNamed(restjson.UnmarshalHandler)
svc.Handlers.UnmarshalMeta.PushBackNamed(restjson.UnmarshalMetaHandler)
svc.Handlers.UnmarshalError.PushBackNamed(restjson.UnmarshalErrorHandler)
return svc
}
// newRequest creates a new request for a OutputService11ProtocolTest operation and runs any
// custom request initialization.
func (c *OutputService11ProtocolTest) newRequest(op *request.Operation, params, data interface{}) *request.Request {
req := c.NewRequest(op, params, data)
return req
}
const opOutputService11TestCaseOperation1 = "OperationName"
// OutputService11TestCaseOperation1Request generates a "aws/request.Request" representing the
// client's request for the OutputService11TestCaseOperation1 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 OutputService11TestCaseOperation1 for more information on using the OutputService11TestCaseOperation1
// 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 OutputService11TestCaseOperation1Request method.
// req, resp := client.OutputService11TestCaseOperation1Request(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
func (c *OutputService11ProtocolTest) OutputService11TestCaseOperation1Request(input *OutputService11TestShapeOutputService11TestCaseOperation1Input) (req *request.Request, output *OutputService11TestShapeOutputService11TestCaseOperation1Output) {
op := &request.Operation{
Name: opOutputService11TestCaseOperation1,
HTTPPath: "/",
}
if input == nil {
input = &OutputService11TestShapeOutputService11TestCaseOperation1Input{}
}
output = &OutputService11TestShapeOutputService11TestCaseOperation1Output{}
req = c.newRequest(op, input, output)
return
}
// OutputService11TestCaseOperation1 API operation for .
//
// 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 's
// API operation OutputService11TestCaseOperation1 for usage and error information.
func (c *OutputService11ProtocolTest) OutputService11TestCaseOperation1(input *OutputService11TestShapeOutputService11TestCaseOperation1Input) (*OutputService11TestShapeOutputService11TestCaseOperation1Output, error) {
req, out := c.OutputService11TestCaseOperation1Request(input)
return out, req.Send()
}
// OutputService11TestCaseOperation1WithContext is the same as OutputService11TestCaseOperation1 with the addition of
// the ability to pass a context and additional request options.
//
// See OutputService11TestCaseOperation1 for details on how to use this API operation.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
func (c *OutputService11ProtocolTest) OutputService11TestCaseOperation1WithContext(ctx aws.Context, input *OutputService11TestShapeOutputService11TestCaseOperation1Input, opts ...request.Option) (*OutputService11TestShapeOutputService11TestCaseOperation1Output, error) {
req, out := c.OutputService11TestCaseOperation1Request(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
type OutputService11TestShapeBodyStructure struct {
_ struct{} `type:"structure"`
Foo *string `type:"string"`
}
// SetFoo sets the Foo field's value.
func (s *OutputService11TestShapeBodyStructure) SetFoo(v string) *OutputService11TestShapeBodyStructure {
s.Foo = &v
return s
}
type OutputService11TestShapeOutputService11TestCaseOperation1Input struct {
_ struct{} `type:"structure"`
}
type OutputService11TestShapeOutputService11TestCaseOperation1Output struct {
_ struct{} `type:"structure" payload:"Data"`
Data *OutputService11TestShapeBodyStructure `type:"structure"`
Header *string `location:"header" locationName:"X-Foo" type:"string"`
}
// SetData sets the Data field's value.
func (s *OutputService11TestShapeOutputService11TestCaseOperation1Output) SetData(v *OutputService11TestShapeBodyStructure) *OutputService11TestShapeOutputService11TestCaseOperation1Output {
s.Data = v
return s
}
// SetHeader sets the Header field's value.
func (s *OutputService11TestShapeOutputService11TestCaseOperation1Output) SetHeader(v string) *OutputService11TestShapeOutputService11TestCaseOperation1Output {
s.Header = &v
return s
}
// OutputService12ProtocolTest provides the API operation methods for making requests to
// . See this package's package overview docs
// for details on the service.
//
// OutputService12ProtocolTest methods are safe to use concurrently. It is not safe to
// modify mutate any of the struct's properties though.
type OutputService12ProtocolTest struct {
*client.Client
}
// New creates a new instance of the OutputService12ProtocolTest 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 OutputService12ProtocolTest client from just a session.
// svc := outputservice12protocoltest.New(mySession)
//
// // Create a OutputService12ProtocolTest client with additional configuration
// svc := outputservice12protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2"))
func NewOutputService12ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *OutputService12ProtocolTest {
c := p.ClientConfig("outputservice12protocoltest", cfgs...)
return newOutputService12ProtocolTestClient(*c.Config, c.Handlers, c.PartitionID, c.Endpoint, c.SigningRegion, c.SigningName)
}
// newClient creates, initializes and returns a new service client instance.
func newOutputService12ProtocolTestClient(cfg aws.Config, handlers request.Handlers, partitionID, endpoint, signingRegion, signingName string) *OutputService12ProtocolTest {
svc := &OutputService12ProtocolTest{
Client: client.New(
cfg,
metadata.ClientInfo{
ServiceName: "OutputService12ProtocolTest",
ServiceID: "OutputService12ProtocolTest",
SigningName: signingName,
SigningRegion: signingRegion,
PartitionID: partitionID,
Endpoint: endpoint,
APIVersion: "",
},
handlers,
),
}
// Handlers
svc.Handlers.Sign.PushBackNamed(v4.SignRequestHandler)
svc.Handlers.Build.PushBackNamed(restjson.BuildHandler)
svc.Handlers.Unmarshal.PushBackNamed(restjson.UnmarshalHandler)
svc.Handlers.UnmarshalMeta.PushBackNamed(restjson.UnmarshalMetaHandler)
svc.Handlers.UnmarshalError.PushBackNamed(restjson.UnmarshalErrorHandler)
return svc
}
// newRequest creates a new request for a OutputService12ProtocolTest operation and runs any
// custom request initialization.
func (c *OutputService12ProtocolTest) newRequest(op *request.Operation, params, data interface{}) *request.Request {
req := c.NewRequest(op, params, data)
return req
}
const opOutputService12TestCaseOperation1 = "OperationName"
// OutputService12TestCaseOperation1Request generates a "aws/request.Request" representing the
// client's request for the OutputService12TestCaseOperation1 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 OutputService12TestCaseOperation1 for more information on using the OutputService12TestCaseOperation1
// 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 OutputService12TestCaseOperation1Request method.
// req, resp := client.OutputService12TestCaseOperation1Request(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
func (c *OutputService12ProtocolTest) OutputService12TestCaseOperation1Request(input *OutputService12TestShapeOutputService12TestCaseOperation1Input) (req *request.Request, output *OutputService12TestShapeOutputService12TestCaseOperation1Output) {
op := &request.Operation{
Name: opOutputService12TestCaseOperation1,
HTTPPath: "/",
}
if input == nil {
input = &OutputService12TestShapeOutputService12TestCaseOperation1Input{}
}
output = &OutputService12TestShapeOutputService12TestCaseOperation1Output{}
req = c.newRequest(op, input, output)
return
}
// OutputService12TestCaseOperation1 API operation for .
//
// 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 's
// API operation OutputService12TestCaseOperation1 for usage and error information.
func (c *OutputService12ProtocolTest) OutputService12TestCaseOperation1(input *OutputService12TestShapeOutputService12TestCaseOperation1Input) (*OutputService12TestShapeOutputService12TestCaseOperation1Output, error) {
req, out := c.OutputService12TestCaseOperation1Request(input)
return out, req.Send()
}
// OutputService12TestCaseOperation1WithContext is the same as OutputService12TestCaseOperation1 with the addition of
// the ability to pass a context and additional request options.
//
// See OutputService12TestCaseOperation1 for details on how to use this API operation.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
func (c *OutputService12ProtocolTest) OutputService12TestCaseOperation1WithContext(ctx aws.Context, input *OutputService12TestShapeOutputService12TestCaseOperation1Input, opts ...request.Option) (*OutputService12TestShapeOutputService12TestCaseOperation1Output, error) {
req, out := c.OutputService12TestCaseOperation1Request(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
type OutputService12TestShapeOutputService12TestCaseOperation1Input struct {
_ struct{} `type:"structure"`
}
type OutputService12TestShapeOutputService12TestCaseOperation1Output struct {
_ struct{} `type:"structure" payload:"Stream"`
Stream []byte `type:"blob"`
}
// SetStream sets the Stream field's value.
func (s *OutputService12TestShapeOutputService12TestCaseOperation1Output) SetStream(v []byte) *OutputService12TestShapeOutputService12TestCaseOperation1Output {
s.Stream = v
return s
}
// OutputService13ProtocolTest provides the API operation methods for making requests to
// . See this package's package overview docs
// for details on the service.
//
// OutputService13ProtocolTest methods are safe to use concurrently. It is not safe to
// modify mutate any of the struct's properties though.
type OutputService13ProtocolTest struct {
*client.Client
}
// New creates a new instance of the OutputService13ProtocolTest 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 OutputService13ProtocolTest client from just a session.
// svc := outputservice13protocoltest.New(mySession)
//
// // Create a OutputService13ProtocolTest client with additional configuration
// svc := outputservice13protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2"))
func NewOutputService13ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *OutputService13ProtocolTest {
c := p.ClientConfig("outputservice13protocoltest", cfgs...)
return newOutputService13ProtocolTestClient(*c.Config, c.Handlers, c.PartitionID, c.Endpoint, c.SigningRegion, c.SigningName)
}
// newClient creates, initializes and returns a new service client instance.
func newOutputService13ProtocolTestClient(cfg aws.Config, handlers request.Handlers, partitionID, endpoint, signingRegion, signingName string) *OutputService13ProtocolTest {
svc := &OutputService13ProtocolTest{
Client: client.New(
cfg,
metadata.ClientInfo{
ServiceName: "OutputService13ProtocolTest",
ServiceID: "OutputService13ProtocolTest",
SigningName: signingName,
SigningRegion: signingRegion,
PartitionID: partitionID,
Endpoint: endpoint,
APIVersion: "",
},
handlers,
),
}
// Handlers
svc.Handlers.Sign.PushBackNamed(v4.SignRequestHandler)
svc.Handlers.Build.PushBackNamed(restjson.BuildHandler)
svc.Handlers.Unmarshal.PushBackNamed(restjson.UnmarshalHandler)
svc.Handlers.UnmarshalMeta.PushBackNamed(restjson.UnmarshalMetaHandler)
svc.Handlers.UnmarshalError.PushBackNamed(restjson.UnmarshalErrorHandler)
return svc
}
// newRequest creates a new request for a OutputService13ProtocolTest operation and runs any
// custom request initialization.
func (c *OutputService13ProtocolTest) newRequest(op *request.Operation, params, data interface{}) *request.Request {
req := c.NewRequest(op, params, data)
return req
}
const opOutputService13TestCaseOperation1 = "OperationName"
// OutputService13TestCaseOperation1Request generates a "aws/request.Request" representing the
// client's request for the OutputService13TestCaseOperation1 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 OutputService13TestCaseOperation1 for more information on using the OutputService13TestCaseOperation1
// 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 OutputService13TestCaseOperation1Request method.
// req, resp := client.OutputService13TestCaseOperation1Request(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
func (c *OutputService13ProtocolTest) OutputService13TestCaseOperation1Request(input *OutputService13TestShapeOutputService13TestCaseOperation1Input) (req *request.Request, output *OutputService13TestShapeOutputService13TestCaseOperation1Output) {
op := &request.Operation{
Name: opOutputService13TestCaseOperation1,
HTTPPath: "/",
}
if input == nil {
input = &OutputService13TestShapeOutputService13TestCaseOperation1Input{}
}
output = &OutputService13TestShapeOutputService13TestCaseOperation1Output{}
req = c.newRequest(op, input, output)
return
}
// OutputService13TestCaseOperation1 API operation for .
//
// 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 's
// API operation OutputService13TestCaseOperation1 for usage and error information.
func (c *OutputService13ProtocolTest) OutputService13TestCaseOperation1(input *OutputService13TestShapeOutputService13TestCaseOperation1Input) (*OutputService13TestShapeOutputService13TestCaseOperation1Output, error) {
req, out := c.OutputService13TestCaseOperation1Request(input)
return out, req.Send()
}
// OutputService13TestCaseOperation1WithContext is the same as OutputService13TestCaseOperation1 with the addition of
// the ability to pass a context and additional request options.
//
// See OutputService13TestCaseOperation1 for details on how to use this API operation.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
func (c *OutputService13ProtocolTest) OutputService13TestCaseOperation1WithContext(ctx aws.Context, input *OutputService13TestShapeOutputService13TestCaseOperation1Input, opts ...request.Option) (*OutputService13TestShapeOutputService13TestCaseOperation1Output, error) {
req, out := c.OutputService13TestCaseOperation1Request(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
const opOutputService13TestCaseOperation2 = "OperationName"
// OutputService13TestCaseOperation2Request generates a "aws/request.Request" representing the
// client's request for the OutputService13TestCaseOperation2 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 OutputService13TestCaseOperation2 for more information on using the OutputService13TestCaseOperation2
// 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 OutputService13TestCaseOperation2Request method.
// req, resp := client.OutputService13TestCaseOperation2Request(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
func (c *OutputService13ProtocolTest) OutputService13TestCaseOperation2Request(input *OutputService13TestShapeOutputService13TestCaseOperation2Input) (req *request.Request, output *OutputService13TestShapeOutputService13TestCaseOperation2Output) {
op := &request.Operation{
Name: opOutputService13TestCaseOperation2,
HTTPPath: "/",
}
if input == nil {
input = &OutputService13TestShapeOutputService13TestCaseOperation2Input{}
}
output = &OutputService13TestShapeOutputService13TestCaseOperation2Output{}
req = c.newRequest(op, input, output)
return
}
// OutputService13TestCaseOperation2 API operation for .
//
// 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 's
// API operation OutputService13TestCaseOperation2 for usage and error information.
func (c *OutputService13ProtocolTest) OutputService13TestCaseOperation2(input *OutputService13TestShapeOutputService13TestCaseOperation2Input) (*OutputService13TestShapeOutputService13TestCaseOperation2Output, error) {
req, out := c.OutputService13TestCaseOperation2Request(input)
return out, req.Send()
}
// OutputService13TestCaseOperation2WithContext is the same as OutputService13TestCaseOperation2 with the addition of
// the ability to pass a context and additional request options.
//
// See OutputService13TestCaseOperation2 for details on how to use this API operation.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
func (c *OutputService13ProtocolTest) OutputService13TestCaseOperation2WithContext(ctx aws.Context, input *OutputService13TestShapeOutputService13TestCaseOperation2Input, opts ...request.Option) (*OutputService13TestShapeOutputService13TestCaseOperation2Output, error) {
req, out := c.OutputService13TestCaseOperation2Request(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
type OutputService13TestShapeOutputService13TestCaseOperation1Input struct {
_ struct{} `type:"structure"`
}
type OutputService13TestShapeOutputService13TestCaseOperation1Output struct {
_ struct{} `type:"structure"`
BodyField aws.JSONValue `type:"jsonvalue"`
BodyListField []aws.JSONValue `type:"list"`
HeaderField aws.JSONValue `location:"header" locationName:"X-Amz-Foo" type:"jsonvalue"`
}
// SetBodyField sets the BodyField field's value.
func (s *OutputService13TestShapeOutputService13TestCaseOperation1Output) SetBodyField(v aws.JSONValue) *OutputService13TestShapeOutputService13TestCaseOperation1Output {
s.BodyField = v
return s
}
// SetBodyListField sets the BodyListField field's value.
func (s *OutputService13TestShapeOutputService13TestCaseOperation1Output) SetBodyListField(v []aws.JSONValue) *OutputService13TestShapeOutputService13TestCaseOperation1Output {
s.BodyListField = v
return s
}
// SetHeaderField sets the HeaderField field's value.
func (s *OutputService13TestShapeOutputService13TestCaseOperation1Output) SetHeaderField(v aws.JSONValue) *OutputService13TestShapeOutputService13TestCaseOperation1Output {
s.HeaderField = v
return s
}
type OutputService13TestShapeOutputService13TestCaseOperation2Input struct {
_ struct{} `type:"structure"`
}
type OutputService13TestShapeOutputService13TestCaseOperation2Output struct {
_ struct{} `type:"structure"`
BodyField aws.JSONValue `type:"jsonvalue"`
BodyListField []aws.JSONValue `type:"list"`
HeaderField aws.JSONValue `location:"header" locationName:"X-Amz-Foo" type:"jsonvalue"`
}
// SetBodyField sets the BodyField field's value.
func (s *OutputService13TestShapeOutputService13TestCaseOperation2Output) SetBodyField(v aws.JSONValue) *OutputService13TestShapeOutputService13TestCaseOperation2Output {
s.BodyField = v
return s
}
// SetBodyListField sets the BodyListField field's value.
func (s *OutputService13TestShapeOutputService13TestCaseOperation2Output) SetBodyListField(v []aws.JSONValue) *OutputService13TestShapeOutputService13TestCaseOperation2Output {
s.BodyListField = v
return s
}
// SetHeaderField sets the HeaderField field's value.
func (s *OutputService13TestShapeOutputService13TestCaseOperation2Output) SetHeaderField(v aws.JSONValue) *OutputService13TestShapeOutputService13TestCaseOperation2Output {
s.HeaderField = v
return s
}
// OutputService14ProtocolTest provides the API operation methods for making requests to
// . See this package's package overview docs
// for details on the service.
//
// OutputService14ProtocolTest methods are safe to use concurrently. It is not safe to
// modify mutate any of the struct's properties though.
type OutputService14ProtocolTest struct {
*client.Client
}
// New creates a new instance of the OutputService14ProtocolTest 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 OutputService14ProtocolTest client from just a session.
// svc := outputservice14protocoltest.New(mySession)
//
// // Create a OutputService14ProtocolTest client with additional configuration
// svc := outputservice14protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2"))
func NewOutputService14ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *OutputService14ProtocolTest {
c := p.ClientConfig("outputservice14protocoltest", cfgs...)
return newOutputService14ProtocolTestClient(*c.Config, c.Handlers, c.PartitionID, c.Endpoint, c.SigningRegion, c.SigningName)
}
// newClient creates, initializes and returns a new service client instance.
func newOutputService14ProtocolTestClient(cfg aws.Config, handlers request.Handlers, partitionID, endpoint, signingRegion, signingName string) *OutputService14ProtocolTest {
svc := &OutputService14ProtocolTest{
Client: client.New(
cfg,
metadata.ClientInfo{
ServiceName: "OutputService14ProtocolTest",
ServiceID: "OutputService14ProtocolTest",
SigningName: signingName,
SigningRegion: signingRegion,
PartitionID: partitionID,
Endpoint: endpoint,
APIVersion: "2014-01-01",
},
handlers,
),
}
// Handlers
svc.Handlers.Sign.PushBackNamed(v4.SignRequestHandler)
svc.Handlers.Build.PushBackNamed(restjson.BuildHandler)
svc.Handlers.Unmarshal.PushBackNamed(restjson.UnmarshalHandler)
svc.Handlers.UnmarshalMeta.PushBackNamed(restjson.UnmarshalMetaHandler)
svc.Handlers.UnmarshalError.PushBackNamed(restjson.UnmarshalErrorHandler)
return svc
}
// newRequest creates a new request for a OutputService14ProtocolTest operation and runs any
// custom request initialization.
func (c *OutputService14ProtocolTest) newRequest(op *request.Operation, params, data interface{}) *request.Request {
req := c.NewRequest(op, params, data)
return req
}
const opOutputService14TestCaseOperation1 = "OperationName"
// OutputService14TestCaseOperation1Request generates a "aws/request.Request" representing the
// client's request for the OutputService14TestCaseOperation1 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 OutputService14TestCaseOperation1 for more information on using the OutputService14TestCaseOperation1
// 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 OutputService14TestCaseOperation1Request method.
// req, resp := client.OutputService14TestCaseOperation1Request(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
func (c *OutputService14ProtocolTest) OutputService14TestCaseOperation1Request(input *OutputService14TestShapeOutputService14TestCaseOperation1Input) (req *request.Request, output *OutputService14TestShapeOutputService14TestCaseOperation1Output) {
op := &request.Operation{
Name: opOutputService14TestCaseOperation1,
HTTPMethod: "POST",
HTTPPath: "/path",
}
if input == nil {
input = &OutputService14TestShapeOutputService14TestCaseOperation1Input{}
}
output = &OutputService14TestShapeOutputService14TestCaseOperation1Output{}
req = c.newRequest(op, input, output)
return
}
// OutputService14TestCaseOperation1 API operation for .
//
// 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 's
// API operation OutputService14TestCaseOperation1 for usage and error information.
func (c *OutputService14ProtocolTest) OutputService14TestCaseOperation1(input *OutputService14TestShapeOutputService14TestCaseOperation1Input) (*OutputService14TestShapeOutputService14TestCaseOperation1Output, error) {
req, out := c.OutputService14TestCaseOperation1Request(input)
return out, req.Send()
}
// OutputService14TestCaseOperation1WithContext is the same as OutputService14TestCaseOperation1 with the addition of
// the ability to pass a context and additional request options.
//
// See OutputService14TestCaseOperation1 for details on how to use this API operation.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
func (c *OutputService14ProtocolTest) OutputService14TestCaseOperation1WithContext(ctx aws.Context, input *OutputService14TestShapeOutputService14TestCaseOperation1Input, opts ...request.Option) (*OutputService14TestShapeOutputService14TestCaseOperation1Output, error) {
req, out := c.OutputService14TestCaseOperation1Request(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
const opOutputService14TestCaseOperation2 = "OperationName"
// OutputService14TestCaseOperation2Request generates a "aws/request.Request" representing the
// client's request for the OutputService14TestCaseOperation2 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 OutputService14TestCaseOperation2 for more information on using the OutputService14TestCaseOperation2
// 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 OutputService14TestCaseOperation2Request method.
// req, resp := client.OutputService14TestCaseOperation2Request(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
func (c *OutputService14ProtocolTest) OutputService14TestCaseOperation2Request(input *OutputService14TestShapeOutputService14TestCaseOperation2Input) (req *request.Request, output *OutputService14TestShapeOutputService14TestCaseOperation2Output) {
op := &request.Operation{
Name: opOutputService14TestCaseOperation2,
HTTPMethod: "POST",
HTTPPath: "/path",
}
if input == nil {
input = &OutputService14TestShapeOutputService14TestCaseOperation2Input{}
}
output = &OutputService14TestShapeOutputService14TestCaseOperation2Output{}
req = c.newRequest(op, input, output)
req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
return
}
// OutputService14TestCaseOperation2 API operation for .
//
// 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 's
// API operation OutputService14TestCaseOperation2 for usage and error information.
func (c *OutputService14ProtocolTest) OutputService14TestCaseOperation2(input *OutputService14TestShapeOutputService14TestCaseOperation2Input) (*OutputService14TestShapeOutputService14TestCaseOperation2Output, error) {
req, out := c.OutputService14TestCaseOperation2Request(input)
return out, req.Send()
}
// OutputService14TestCaseOperation2WithContext is the same as OutputService14TestCaseOperation2 with the addition of
// the ability to pass a context and additional request options.
//
// See OutputService14TestCaseOperation2 for details on how to use this API operation.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
func (c *OutputService14ProtocolTest) OutputService14TestCaseOperation2WithContext(ctx aws.Context, input *OutputService14TestShapeOutputService14TestCaseOperation2Input, opts ...request.Option) (*OutputService14TestShapeOutputService14TestCaseOperation2Output, error) {
req, out := c.OutputService14TestCaseOperation2Request(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
type OutputService14TestShapeOutputService14TestCaseOperation1Input struct {
_ struct{} `type:"structure"`
}
type OutputService14TestShapeOutputService14TestCaseOperation1Output struct {
_ struct{} `type:"structure"`
FooEnum *string `type:"string" enum:"OutputService14TestShapeRESTJSONEnumType"`
HeaderEnum *string `location:"header" locationName:"x-amz-enum" type:"string" enum:"OutputService14TestShapeRESTJSONEnumType"`
ListEnums []*string `type:"list"`
}
// SetFooEnum sets the FooEnum field's value.
func (s *OutputService14TestShapeOutputService14TestCaseOperation1Output) SetFooEnum(v string) *OutputService14TestShapeOutputService14TestCaseOperation1Output {
s.FooEnum = &v
return s
}
// SetHeaderEnum sets the HeaderEnum field's value.
func (s *OutputService14TestShapeOutputService14TestCaseOperation1Output) SetHeaderEnum(v string) *OutputService14TestShapeOutputService14TestCaseOperation1Output {
s.HeaderEnum = &v
return s
}
// SetListEnums sets the ListEnums field's value.
func (s *OutputService14TestShapeOutputService14TestCaseOperation1Output) SetListEnums(v []*string) *OutputService14TestShapeOutputService14TestCaseOperation1Output {
s.ListEnums = v
return s
}
type OutputService14TestShapeOutputService14TestCaseOperation2Input struct {
_ struct{} `type:"structure"`
FooEnum *string `type:"string" enum:"OutputService14TestShapeRESTJSONEnumType"`
HeaderEnum *string `location:"header" locationName:"x-amz-enum" type:"string" enum:"OutputService14TestShapeRESTJSONEnumType"`
ListEnums []*string `type:"list"`
}
// SetFooEnum sets the FooEnum field's value.
func (s *OutputService14TestShapeOutputService14TestCaseOperation2Input) SetFooEnum(v string) *OutputService14TestShapeOutputService14TestCaseOperation2Input {
s.FooEnum = &v
return s
}
// SetHeaderEnum sets the HeaderEnum field's value.
func (s *OutputService14TestShapeOutputService14TestCaseOperation2Input) SetHeaderEnum(v string) *OutputService14TestShapeOutputService14TestCaseOperation2Input {
s.HeaderEnum = &v
return s
}
// SetListEnums sets the ListEnums field's value.
func (s *OutputService14TestShapeOutputService14TestCaseOperation2Input) SetListEnums(v []*string) *OutputService14TestShapeOutputService14TestCaseOperation2Input {
s.ListEnums = v
return s
}
type OutputService14TestShapeOutputService14TestCaseOperation2Output struct {
_ struct{} `type:"structure"`
}
const (
// RESTJSONEnumTypeFoo is a OutputService14TestShapeRESTJSONEnumType enum value
RESTJSONEnumTypeFoo = "foo"
// RESTJSONEnumTypeBar is a OutputService14TestShapeRESTJSONEnumType enum value
RESTJSONEnumTypeBar = "bar"
// RESTJSONEnumType0 is a OutputService14TestShapeRESTJSONEnumType enum value
RESTJSONEnumType0 = "0"
// RESTJSONEnumType1 is a OutputService14TestShapeRESTJSONEnumType enum value
RESTJSONEnumType1 = "1"
)
// OutputService14TestShapeRESTJSONEnumType_Values returns all elements of the OutputService14TestShapeRESTJSONEnumType enum
func OutputService14TestShapeRESTJSONEnumType_Values() []string {
return []string{
RESTJSONEnumTypeFoo,
RESTJSONEnumTypeBar,
RESTJSONEnumType0,
RESTJSONEnumType1,
}
}
//
// Tests begin here
//
func TestOutputService1ProtocolTestScalarMembersCase1(t *testing.T) {
svc := NewOutputService1ProtocolTest(unit.Session, &aws.Config{Endpoint: aws.String("https://test")})
buf := bytes.NewReader([]byte("{\"Str\": \"myname\", \"Num\": 123, \"FalseBool\": false, \"TrueBool\": true, \"Float\": 1.2, \"Double\": 1.3, \"Long\": 200, \"Char\": \"a\", \"Timestamp\": \"2015-01-25T08:00:00Z\", \"Blob\": \"aGVsbG8=\"}"))
req, out := svc.OutputService1TestCaseOperation1Request(nil)
req.HTTPResponse = &http.Response{StatusCode: 200, Body: ioutil.NopCloser(buf), Header: http.Header{}}
// set headers
req.HTTPResponse.Header.Set("BlobHeader", "aGVsbG8=")
req.HTTPResponse.Header.Set("ImaHeader", "test")
req.HTTPResponse.Header.Set("X-Foo", "abc")
// unmarshal response
req.Handlers.UnmarshalMeta.Run(req)
req.Handlers.Unmarshal.Run(req)
if req.Error != nil {
t.Errorf("expect not error, got %v", req.Error)
}
// assert response
if out == nil {
t.Errorf("expect not to be nil")
}
if e, a := "hello", string(out.Blob); e != a {
t.Errorf("expect %v, got %v", e, a)
}
if e, a := "hello", string(out.BlobHeader); e != a {
t.Errorf("expect %v, got %v", e, a)
}
if e, a := "a", *out.Char; e != a {
t.Errorf("expect %v, got %v", e, a)
}
if e, a := 1.3, *out.Double; e != a {
t.Errorf("expect %v, got %v", e, a)
}
if e, a := false, *out.FalseBool; e != a {
t.Errorf("expect %v, got %v", e, a)
}
if e, a := 1.2, *out.Float; e != a {
t.Errorf("expect %v, got %v", e, a)
}
if e, a := "test", *out.ImaHeader; e != a {
t.Errorf("expect %v, got %v", e, a)
}
if e, a := "abc", *out.ImaHeaderLocation; e != a {
t.Errorf("expect %v, got %v", e, a)
}
if e, a := int64(200), *out.Long; e != a {
t.Errorf("expect %v, got %v", e, a)
}
if e, a := int64(123), *out.Num; e != a {
t.Errorf("expect %v, got %v", e, a)
}
if e, a := int64(200), *out.Status; e != a {
t.Errorf("expect %v, got %v", e, a)
}
if e, a := "myname", *out.Str; e != a {
t.Errorf("expect %v, got %v", e, a)
}
if e, a := time.Unix(1.4221728e+09, 0).UTC().String(), out.Timestamp.UTC().String(); e != a {
t.Errorf("expect %v, got %v", e, a)
}
if e, a := true, *out.TrueBool; e != a {
t.Errorf("expect %v, got %v", e, a)
}
}
func TestOutputService2ProtocolTestBlobMembersCase1(t *testing.T) {
svc := NewOutputService2ProtocolTest(unit.Session, &aws.Config{Endpoint: aws.String("https://test")})
buf := bytes.NewReader([]byte("{\"BlobMember\": \"aGkh\", \"StructMember\": {\"foo\": \"dGhlcmUh\"}}"))
req, out := svc.OutputService2TestCaseOperation1Request(nil)
req.HTTPResponse = &http.Response{StatusCode: 200, Body: ioutil.NopCloser(buf), Header: http.Header{}}
// set headers
// unmarshal response
req.Handlers.UnmarshalMeta.Run(req)
req.Handlers.Unmarshal.Run(req)
if req.Error != nil {
t.Errorf("expect not error, got %v", req.Error)
}
// assert response
if out == nil {
t.Errorf("expect not to be nil")
}
if e, a := "hi!", string(out.BlobMember); e != a {
t.Errorf("expect %v, got %v", e, a)
}
if e, a := "there!", string(out.StructMember.Foo); e != a {
t.Errorf("expect %v, got %v", e, a)
}
}
func TestOutputService3ProtocolTestTimestampMembersCase1(t *testing.T) {
svc := NewOutputService3ProtocolTest(unit.Session, &aws.Config{Endpoint: aws.String("https://test")})
buf := bytes.NewReader([]byte("{\"TimeArg\": 1398796238, \"TimeCustom\": \"Tue, 29 Apr 2014 18:30:38 GMT\", \"TimeFormat\": \"2014-04-29T18:30:38Z\", \"StructMember\": {\"foo\": 1398796238, \"bar\": \"2014-04-29T18:30:38Z\"}}"))
req, out := svc.OutputService3TestCaseOperation1Request(nil)
req.HTTPResponse = &http.Response{StatusCode: 200, Body: ioutil.NopCloser(buf), Header: http.Header{}}
// set headers
req.HTTPResponse.Header.Set("x-amz-timearg", "Tue, 29 Apr 2014 18:30:38 GMT")
req.HTTPResponse.Header.Set("x-amz-timecustom", "1398796238")
req.HTTPResponse.Header.Set("x-amz-timeformat", "2014-04-29T18:30:38Z")
// unmarshal response
req.Handlers.UnmarshalMeta.Run(req)
req.Handlers.Unmarshal.Run(req)
if req.Error != nil {
t.Errorf("expect not error, got %v", req.Error)
}
// assert response
if out == nil {
t.Errorf("expect not to be nil")
}
if e, a := time.Unix(1.398796238e+09, 0).UTC().String(), out.StructMember.Bar.UTC().String(); e != a {
t.Errorf("expect %v, got %v", e, a)
}
if e, a := time.Unix(1.398796238e+09, 0).UTC().String(), out.StructMember.Foo.UTC().String(); e != a {
t.Errorf("expect %v, got %v", e, a)
}
if e, a := time.Unix(1.398796238e+09, 0).UTC().String(), out.TimeArg.UTC().String(); e != a {
t.Errorf("expect %v, got %v", e, a)
}
if e, a := time.Unix(1.398796238e+09, 0).UTC().String(), out.TimeArgInHeader.UTC().String(); e != a {
t.Errorf("expect %v, got %v", e, a)
}
if e, a := time.Unix(1.398796238e+09, 0).UTC().String(), out.TimeCustom.UTC().String(); e != a {
t.Errorf("expect %v, got %v", e, a)
}
if e, a := time.Unix(1.398796238e+09, 0).UTC().String(), out.TimeCustomInHeader.UTC().String(); e != a {
t.Errorf("expect %v, got %v", e, a)
}
if e, a := time.Unix(1.398796238e+09, 0).UTC().String(), out.TimeFormat.UTC().String(); e != a {
t.Errorf("expect %v, got %v", e, a)
}
if e, a := time.Unix(1.398796238e+09, 0).UTC().String(), out.TimeFormatInHeader.UTC().String(); e != a {
t.Errorf("expect %v, got %v", e, a)
}
}
func TestOutputService4ProtocolTestListsCase1(t *testing.T) {
svc := NewOutputService4ProtocolTest(unit.Session, &aws.Config{Endpoint: aws.String("https://test")})
buf := bytes.NewReader([]byte("{\"ListMember\": [\"a\", \"b\"]}"))
req, out := svc.OutputService4TestCaseOperation1Request(nil)
req.HTTPResponse = &http.Response{StatusCode: 200, Body: ioutil.NopCloser(buf), Header: http.Header{}}
// set headers
// unmarshal response
req.Handlers.UnmarshalMeta.Run(req)
req.Handlers.Unmarshal.Run(req)
if req.Error != nil {
t.Errorf("expect not error, got %v", req.Error)
}
// assert response
if out == nil {
t.Errorf("expect not to be nil")
}
if e, a := "a", *out.ListMember[0]; e != a {
t.Errorf("expect %v, got %v", e, a)
}
if e, a := "b", *out.ListMember[1]; e != a {
t.Errorf("expect %v, got %v", e, a)
}
}
func TestOutputService5ProtocolTestListsWithStructureMemberCase1(t *testing.T) {
svc := NewOutputService5ProtocolTest(unit.Session, &aws.Config{Endpoint: aws.String("https://test")})
buf := bytes.NewReader([]byte("{\"ListMember\": [{\"Foo\": \"a\"}, {\"Foo\": \"b\"}]}"))
req, out := svc.OutputService5TestCaseOperation1Request(nil)
req.HTTPResponse = &http.Response{StatusCode: 200, Body: ioutil.NopCloser(buf), Header: http.Header{}}
// set headers
// unmarshal response
req.Handlers.UnmarshalMeta.Run(req)
req.Handlers.Unmarshal.Run(req)
if req.Error != nil {
t.Errorf("expect not error, got %v", req.Error)
}
// assert response
if out == nil {
t.Errorf("expect not to be nil")
}
if e, a := "a", *out.ListMember[0].Foo; e != a {
t.Errorf("expect %v, got %v", e, a)
}
if e, a := "b", *out.ListMember[1].Foo; e != a {
t.Errorf("expect %v, got %v", e, a)
}
}
func TestOutputService6ProtocolTestMapsCase1(t *testing.T) {
svc := NewOutputService6ProtocolTest(unit.Session, &aws.Config{Endpoint: aws.String("https://test")})
buf := bytes.NewReader([]byte("{\"MapMember\": {\"a\": [1, 2], \"b\": [3, 4]}}"))
req, out := svc.OutputService6TestCaseOperation1Request(nil)
req.HTTPResponse = &http.Response{StatusCode: 200, Body: ioutil.NopCloser(buf), Header: http.Header{}}
// set headers
// unmarshal response
req.Handlers.UnmarshalMeta.Run(req)
req.Handlers.Unmarshal.Run(req)
if req.Error != nil {
t.Errorf("expect not error, got %v", req.Error)
}
// assert response
if out == nil {
t.Errorf("expect not to be nil")
}
if e, a := int64(1), *out.MapMember["a"][0]; e != a {
t.Errorf("expect %v, got %v", e, a)
}
if e, a := int64(2), *out.MapMember["a"][1]; e != a {
t.Errorf("expect %v, got %v", e, a)
}
if e, a := int64(3), *out.MapMember["b"][0]; e != a {
t.Errorf("expect %v, got %v", e, a)
}
if e, a := int64(4), *out.MapMember["b"][1]; e != a {
t.Errorf("expect %v, got %v", e, a)
}
}
func TestOutputService7ProtocolTestComplexMapValuesCase1(t *testing.T) {
svc := NewOutputService7ProtocolTest(unit.Session, &aws.Config{Endpoint: aws.String("https://test")})
buf := bytes.NewReader([]byte("{\"MapMember\": {\"a\": 1398796238, \"b\": 1398796238}}"))
req, out := svc.OutputService7TestCaseOperation1Request(nil)
req.HTTPResponse = &http.Response{StatusCode: 200, Body: ioutil.NopCloser(buf), Header: http.Header{}}
// set headers
// unmarshal response
req.Handlers.UnmarshalMeta.Run(req)
req.Handlers.Unmarshal.Run(req)
if req.Error != nil {
t.Errorf("expect not error, got %v", req.Error)
}
// assert response
if out == nil {
t.Errorf("expect not to be nil")
}
if e, a := time.Unix(1.398796238e+09, 0).UTC().String(), out.MapMember["a"].UTC().String(); e != a {
t.Errorf("expect %v, got %v", e, a)
}
if e, a := time.Unix(1.398796238e+09, 0).UTC().String(), out.MapMember["b"].UTC().String(); e != a {
t.Errorf("expect %v, got %v", e, a)
}
}
func TestOutputService8ProtocolTestIgnoresExtraDataCase1(t *testing.T) {
svc := NewOutputService8ProtocolTest(unit.Session, &aws.Config{Endpoint: aws.String("https://test")})
buf := bytes.NewReader([]byte("{\"foo\": \"bar\"}"))
req, out := svc.OutputService8TestCaseOperation1Request(nil)
req.HTTPResponse = &http.Response{StatusCode: 200, Body: ioutil.NopCloser(buf), Header: http.Header{}}
// set headers
// unmarshal response
req.Handlers.UnmarshalMeta.Run(req)
req.Handlers.Unmarshal.Run(req)
if req.Error != nil {
t.Errorf("expect not error, got %v", req.Error)
}
// assert response
if out == nil {
t.Errorf("expect not to be nil")
}
}
func TestOutputService9ProtocolTestIgnoresUndefinedOutputCase1(t *testing.T) {
svc := NewOutputService9ProtocolTest(unit.Session, &aws.Config{Endpoint: aws.String("https://test")})
buf := bytes.NewReader([]byte("OK"))
req, out := svc.OutputService9TestCaseOperation1Request(nil)
req.HTTPResponse = &http.Response{StatusCode: 200, Body: ioutil.NopCloser(buf), Header: http.Header{}}
// set headers
// unmarshal response
req.Handlers.UnmarshalMeta.Run(req)
req.Handlers.Unmarshal.Run(req)
if req.Error != nil {
t.Errorf("expect not error, got %v", req.Error)
}
// assert response
if out == nil {
t.Errorf("expect not to be nil")
}
}
func TestOutputService10ProtocolTestSupportsHeaderMapsCase1(t *testing.T) {
svc := NewOutputService10ProtocolTest(unit.Session, &aws.Config{Endpoint: aws.String("https://test")})
buf := bytes.NewReader([]byte("{}"))
req, out := svc.OutputService10TestCaseOperation1Request(nil)
req.HTTPResponse = &http.Response{StatusCode: 200, Body: ioutil.NopCloser(buf), Header: http.Header{}}
// set headers
req.HTTPResponse.Header.Set("Content-Length", "10")
req.HTTPResponse.Header.Set("X-Bam", "boo")
req.HTTPResponse.Header.Set("X-Foo", "bar")
// unmarshal response
req.Handlers.UnmarshalMeta.Run(req)
req.Handlers.Unmarshal.Run(req)
if req.Error != nil {
t.Errorf("expect not error, got %v", req.Error)
}
// assert response
if out == nil {
t.Errorf("expect not to be nil")
}
if e, a := "10", *out.AllHeaders["Content-Length"]; e != a {
t.Errorf("expect %v, got %v", e, a)
}
if e, a := "boo", *out.AllHeaders["X-Bam"]; e != a {
t.Errorf("expect %v, got %v", e, a)
}
if e, a := "bar", *out.AllHeaders["X-Foo"]; e != a {
t.Errorf("expect %v, got %v", e, a)
}
if e, a := "boo", *out.PrefixedHeaders["Bam"]; e != a {
t.Errorf("expect %v, got %v", e, a)
}
if e, a := "bar", *out.PrefixedHeaders["Foo"]; e != a {
t.Errorf("expect %v, got %v", e, a)
}
}
func TestOutputService11ProtocolTestJSONPayloadCase1(t *testing.T) {
svc := NewOutputService11ProtocolTest(unit.Session, &aws.Config{Endpoint: aws.String("https://test")})
buf := bytes.NewReader([]byte("{\"Foo\": \"abc\"}"))
req, out := svc.OutputService11TestCaseOperation1Request(nil)
req.HTTPResponse = &http.Response{StatusCode: 200, Body: ioutil.NopCloser(buf), Header: http.Header{}}
// set headers
req.HTTPResponse.Header.Set("X-Foo", "baz")
// unmarshal response
req.Handlers.UnmarshalMeta.Run(req)
req.Handlers.Unmarshal.Run(req)
if req.Error != nil {
t.Errorf("expect not error, got %v", req.Error)
}
// assert response
if out == nil {
t.Errorf("expect not to be nil")
}
if e, a := "abc", *out.Data.Foo; e != a {
t.Errorf("expect %v, got %v", e, a)
}
if e, a := "baz", *out.Header; e != a {
t.Errorf("expect %v, got %v", e, a)
}
}
func TestOutputService12ProtocolTestStreamingPayloadCase1(t *testing.T) {
svc := NewOutputService12ProtocolTest(unit.Session, &aws.Config{Endpoint: aws.String("https://test")})
buf := bytes.NewReader([]byte("abc"))
req, out := svc.OutputService12TestCaseOperation1Request(nil)
req.HTTPResponse = &http.Response{StatusCode: 200, Body: ioutil.NopCloser(buf), Header: http.Header{}}
// set headers
// unmarshal response
req.Handlers.UnmarshalMeta.Run(req)
req.Handlers.Unmarshal.Run(req)
if req.Error != nil {
t.Errorf("expect not error, got %v", req.Error)
}
// assert response
if out == nil {
t.Errorf("expect not to be nil")
}
if e, a := "abc", string(out.Stream); e != a {
t.Errorf("expect %v, got %v", e, a)
}
}
func TestOutputService13ProtocolTestJSONValueTraitCase1(t *testing.T) {
svc := NewOutputService13ProtocolTest(unit.Session, &aws.Config{Endpoint: aws.String("https://test")})
buf := bytes.NewReader([]byte("{\"BodyField\":\"{\\\"Foo\\\":\\\"Bar\\\"}\"}"))
req, out := svc.OutputService13TestCaseOperation1Request(nil)
req.HTTPResponse = &http.Response{StatusCode: 200, Body: ioutil.NopCloser(buf), Header: http.Header{}}
// set headers
req.HTTPResponse.Header.Set("X-Amz-Foo", "eyJGb28iOiJCYXIifQ==")
// unmarshal response
req.Handlers.UnmarshalMeta.Run(req)
req.Handlers.Unmarshal.Run(req)
if req.Error != nil {
t.Errorf("expect not error, got %v", req.Error)
}
// assert response
if out == nil {
t.Errorf("expect not to be nil")
}
reflect.DeepEqual(out.BodyField, map[string]interface{}{"Foo": "Bar"})
reflect.DeepEqual(out.HeaderField, map[string]interface{}{"Foo": "Bar"})
}
func TestOutputService13ProtocolTestJSONValueTraitCase2(t *testing.T) {
svc := NewOutputService13ProtocolTest(unit.Session, &aws.Config{Endpoint: aws.String("https://test")})
buf := bytes.NewReader([]byte("{\"BodyListField\":[\"{\\\"Foo\\\":\\\"Bar\\\"}\"]}"))
req, out := svc.OutputService13TestCaseOperation2Request(nil)
req.HTTPResponse = &http.Response{StatusCode: 200, Body: ioutil.NopCloser(buf), Header: http.Header{}}
// set headers
// unmarshal response
req.Handlers.UnmarshalMeta.Run(req)
req.Handlers.Unmarshal.Run(req)
if req.Error != nil {
t.Errorf("expect not error, got %v", req.Error)
}
// assert response
if out == nil {
t.Errorf("expect not to be nil")
}
reflect.DeepEqual(out.BodyListField[0], map[string]interface{}{"Foo": "Bar"})
}
func TestOutputService14ProtocolTestEnumCase1(t *testing.T) {
svc := NewOutputService14ProtocolTest(unit.Session, &aws.Config{Endpoint: aws.String("https://test")})
buf := bytes.NewReader([]byte("{\"FooEnum\": \"foo\", \"ListEnums\": [\"foo\", \"bar\"]}"))
req, out := svc.OutputService14TestCaseOperation1Request(nil)
req.HTTPResponse = &http.Response{StatusCode: 200, Body: ioutil.NopCloser(buf), Header: http.Header{}}
// set headers
req.HTTPResponse.Header.Set("x-amz-enum", "baz")
// unmarshal response
req.Handlers.UnmarshalMeta.Run(req)
req.Handlers.Unmarshal.Run(req)
if req.Error != nil {
t.Errorf("expect not error, got %v", req.Error)
}
// assert response
if out == nil {
t.Errorf("expect not to be nil")
}
if e, a := "foo", *out.FooEnum; e != a {
t.Errorf("expect %v, got %v", e, a)
}
if e, a := "baz", *out.HeaderEnum; e != a {
t.Errorf("expect %v, got %v", e, a)
}
if e, a := "foo", *out.ListEnums[0]; e != a {
t.Errorf("expect %v, got %v", e, a)
}
if e, a := "bar", *out.ListEnums[1]; e != a {
t.Errorf("expect %v, got %v", e, a)
}
}
func TestOutputService14ProtocolTestEnumCase2(t *testing.T) {
svc := NewOutputService14ProtocolTest(unit.Session, &aws.Config{Endpoint: aws.String("https://test")})
buf := bytes.NewReader([]byte(""))
req, out := svc.OutputService14TestCaseOperation2Request(nil)
req.HTTPResponse = &http.Response{StatusCode: 200, Body: ioutil.NopCloser(buf), Header: http.Header{}}
// set headers
// unmarshal response
req.Handlers.UnmarshalMeta.Run(req)
req.Handlers.Unmarshal.Run(req)
if req.Error != nil {
t.Errorf("expect not error, got %v", req.Error)
}
// assert response
if out == nil {
t.Errorf("expect not to be nil")
}
}
| 3,125 |
session-manager-plugin | aws | Go | // +build bench
package restxml_test
import (
"net/http"
"net/http/httptest"
"os"
"testing"
"bytes"
"encoding/xml"
"github.com/aws/aws-sdk-go/aws"
"github.com/aws/aws-sdk-go/aws/credentials"
"github.com/aws/aws-sdk-go/aws/endpoints"
"github.com/aws/aws-sdk-go/aws/request"
"github.com/aws/aws-sdk-go/aws/session"
"github.com/aws/aws-sdk-go/private/protocol/restxml"
"github.com/aws/aws-sdk-go/service/cloudfront"
"github.com/aws/aws-sdk-go/service/s3"
)
var (
cloudfrontSvc *cloudfront.CloudFront
s3Svc *s3.S3
)
func TestMain(m *testing.M) {
server := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
w.WriteHeader(http.StatusOK)
}))
sess := session.Must(session.NewSession(&aws.Config{
Credentials: credentials.NewStaticCredentials("Key", "Secret", "Token"),
Endpoint: aws.String(server.URL),
S3ForcePathStyle: aws.Bool(true),
DisableSSL: aws.Bool(true),
Region: aws.String(endpoints.UsWest2RegionID),
}))
cloudfrontSvc = cloudfront.New(sess)
s3Svc = s3.New(sess)
c := m.Run()
server.Close()
os.Exit(c)
}
func BenchmarkRESTXMLBuild_Complex_CFCreateDistro(b *testing.B) {
params := cloudfrontCreateDistributionInput()
benchRESTXMLBuild(b, func() *request.Request {
req, _ := cloudfrontSvc.CreateDistributionRequest(params)
return req
})
}
func BenchmarkRESTXMLBuild_Simple_CFDeleteDistro(b *testing.B) {
params := cloudfrontDeleteDistributionInput()
benchRESTXMLBuild(b, func() *request.Request {
req, _ := cloudfrontSvc.DeleteDistributionRequest(params)
return req
})
}
func BenchmarkRESTXMLBuild_REST_S3HeadObject(b *testing.B) {
params := s3HeadObjectInput()
benchRESTXMLBuild(b, func() *request.Request {
req, _ := s3Svc.HeadObjectRequest(params)
return req
})
}
func BenchmarkRESTXMLBuild_XML_S3PutObjectAcl(b *testing.B) {
params := s3PutObjectAclInput()
benchRESTXMLBuild(b, func() *request.Request {
req, _ := s3Svc.PutObjectAclRequest(params)
return req
})
}
func BenchmarkRESTXMLRequest_Complex_CFCreateDistro(b *testing.B) {
benchRESTXMLRequest(b, func() *request.Request {
req, _ := cloudfrontSvc.CreateDistributionRequest(cloudfrontCreateDistributionInput())
return req
})
}
func BenchmarkRESTXMLRequest_Simple_CFDeleteDistro(b *testing.B) {
benchRESTXMLRequest(b, func() *request.Request {
req, _ := cloudfrontSvc.DeleteDistributionRequest(cloudfrontDeleteDistributionInput())
return req
})
}
func BenchmarkRESTXMLRequest_REST_S3HeadObject(b *testing.B) {
benchRESTXMLRequest(b, func() *request.Request {
req, _ := s3Svc.HeadObjectRequest(s3HeadObjectInput())
return req
})
}
func BenchmarkRESTXMLRequest_XML_S3PutObjectAcl(b *testing.B) {
benchRESTXMLRequest(b, func() *request.Request {
req, _ := s3Svc.PutObjectAclRequest(s3PutObjectAclInput())
return req
})
}
func BenchmarkEncodingXML_Simple(b *testing.B) {
params := cloudfrontDeleteDistributionInput()
for i := 0; i < b.N; i++ {
buf := &bytes.Buffer{}
encoder := xml.NewEncoder(buf)
if err := encoder.Encode(params); err != nil {
b.Fatal("Unexpected error", err)
}
}
}
func benchRESTXMLBuild(b *testing.B, reqFn func() *request.Request) {
b.ResetTimer()
for i := 0; i < b.N; i++ {
req := reqFn()
restxml.Build(req)
if req.Error != nil {
b.Fatal("Unexpected error", req.Error)
}
}
}
func benchRESTXMLRequest(b *testing.B, reqFn func() *request.Request) {
b.ResetTimer()
for i := 0; i < b.N; i++ {
err := reqFn().Send()
if err != nil {
b.Fatal("Unexpected error", err)
}
}
}
func cloudfrontCreateDistributionInput() *cloudfront.CreateDistributionInput {
return &cloudfront.CreateDistributionInput{
DistributionConfig: &cloudfront.DistributionConfig{ // Required
CallerReference: aws.String("string"), // Required
Comment: aws.String("string"), // Required
DefaultCacheBehavior: &cloudfront.DefaultCacheBehavior{ // Required
ForwardedValues: &cloudfront.ForwardedValues{ // Required
Cookies: &cloudfront.CookiePreference{ // Required
Forward: aws.String("ItemSelection"), // Required
WhitelistedNames: &cloudfront.CookieNames{
Quantity: aws.Int64(1), // Required
Items: []*string{
aws.String("string"), // Required
// More values...
},
},
},
QueryString: aws.Bool(true), // Required
Headers: &cloudfront.Headers{
Quantity: aws.Int64(1), // Required
Items: []*string{
aws.String("string"), // Required
// More values...
},
},
},
MinTTL: aws.Int64(1), // Required
TargetOriginId: aws.String("string"), // Required
TrustedSigners: &cloudfront.TrustedSigners{ // Required
Enabled: aws.Bool(true), // Required
Quantity: aws.Int64(1), // Required
Items: []*string{
aws.String("string"), // Required
// More values...
},
},
ViewerProtocolPolicy: aws.String("ViewerProtocolPolicy"), // Required
AllowedMethods: &cloudfront.AllowedMethods{
Items: []*string{ // Required
aws.String("Method"), // Required
// More values...
},
Quantity: aws.Int64(1), // Required
CachedMethods: &cloudfront.CachedMethods{
Items: []*string{ // Required
aws.String("Method"), // Required
// More values...
},
Quantity: aws.Int64(1), // Required
},
},
DefaultTTL: aws.Int64(1),
MaxTTL: aws.Int64(1),
SmoothStreaming: aws.Bool(true),
},
Enabled: aws.Bool(true), // Required
Origins: &cloudfront.Origins{ // Required
Quantity: aws.Int64(1), // Required
Items: []*cloudfront.Origin{
{ // Required
DomainName: aws.String("string"), // Required
Id: aws.String("string"), // Required
CustomOriginConfig: &cloudfront.CustomOriginConfig{
HTTPPort: aws.Int64(1), // Required
HTTPSPort: aws.Int64(1), // Required
OriginProtocolPolicy: aws.String("OriginProtocolPolicy"), // Required
},
OriginPath: aws.String("string"),
S3OriginConfig: &cloudfront.S3OriginConfig{
OriginAccessIdentity: aws.String("string"), // Required
},
},
// More values...
},
},
Aliases: &cloudfront.Aliases{
Quantity: aws.Int64(1), // Required
Items: []*string{
aws.String("string"), // Required
// More values...
},
},
CacheBehaviors: &cloudfront.CacheBehaviors{
Quantity: aws.Int64(1), // Required
Items: []*cloudfront.CacheBehavior{
{ // Required
ForwardedValues: &cloudfront.ForwardedValues{ // Required
Cookies: &cloudfront.CookiePreference{ // Required
Forward: aws.String("ItemSelection"), // Required
WhitelistedNames: &cloudfront.CookieNames{
Quantity: aws.Int64(1), // Required
Items: []*string{
aws.String("string"), // Required
// More values...
},
},
},
QueryString: aws.Bool(true), // Required
Headers: &cloudfront.Headers{
Quantity: aws.Int64(1), // Required
Items: []*string{
aws.String("string"), // Required
// More values...
},
},
},
MinTTL: aws.Int64(1), // Required
PathPattern: aws.String("string"), // Required
TargetOriginId: aws.String("string"), // Required
TrustedSigners: &cloudfront.TrustedSigners{ // Required
Enabled: aws.Bool(true), // Required
Quantity: aws.Int64(1), // Required
Items: []*string{
aws.String("string"), // Required
// More values...
},
},
ViewerProtocolPolicy: aws.String("ViewerProtocolPolicy"), // Required
AllowedMethods: &cloudfront.AllowedMethods{
Items: []*string{ // Required
aws.String("Method"), // Required
// More values...
},
Quantity: aws.Int64(1), // Required
CachedMethods: &cloudfront.CachedMethods{
Items: []*string{ // Required
aws.String("Method"), // Required
// More values...
},
Quantity: aws.Int64(1), // Required
},
},
DefaultTTL: aws.Int64(1),
MaxTTL: aws.Int64(1),
SmoothStreaming: aws.Bool(true),
},
// More values...
},
},
CustomErrorResponses: &cloudfront.CustomErrorResponses{
Quantity: aws.Int64(1), // Required
Items: []*cloudfront.CustomErrorResponse{
{ // Required
ErrorCode: aws.Int64(1), // Required
ErrorCachingMinTTL: aws.Int64(1),
ResponseCode: aws.String("string"),
ResponsePagePath: aws.String("string"),
},
// More values...
},
},
DefaultRootObject: aws.String("string"),
Logging: &cloudfront.LoggingConfig{
Bucket: aws.String("string"), // Required
Enabled: aws.Bool(true), // Required
IncludeCookies: aws.Bool(true), // Required
Prefix: aws.String("string"), // Required
},
PriceClass: aws.String("PriceClass"),
Restrictions: &cloudfront.Restrictions{
GeoRestriction: &cloudfront.GeoRestriction{ // Required
Quantity: aws.Int64(1), // Required
RestrictionType: aws.String("GeoRestrictionType"), // Required
Items: []*string{
aws.String("string"), // Required
// More values...
},
},
},
ViewerCertificate: &cloudfront.ViewerCertificate{
CloudFrontDefaultCertificate: aws.Bool(true),
IAMCertificateId: aws.String("string"),
MinimumProtocolVersion: aws.String("MinimumProtocolVersion"),
SSLSupportMethod: aws.String("SSLSupportMethod"),
},
},
}
}
func cloudfrontDeleteDistributionInput() *cloudfront.DeleteDistributionInput {
return &cloudfront.DeleteDistributionInput{
Id: aws.String("string"), // Required
IfMatch: aws.String("string"),
}
}
func s3HeadObjectInput() *s3.HeadObjectInput {
return &s3.HeadObjectInput{
Bucket: aws.String("somebucketname"),
Key: aws.String("keyname"),
VersionId: aws.String("someVersion"),
IfMatch: aws.String("IfMatch"),
}
}
func s3PutObjectAclInput() *s3.PutObjectAclInput {
return &s3.PutObjectAclInput{
Bucket: aws.String("somebucketname"),
Key: aws.String("keyname"),
AccessControlPolicy: &s3.AccessControlPolicy{
Grants: []*s3.Grant{
{
Grantee: &s3.Grantee{
DisplayName: aws.String("someName"),
EmailAddress: aws.String("someAddr"),
ID: aws.String("someID"),
Type: aws.String(s3.TypeCanonicalUser),
URI: aws.String("someURI"),
},
Permission: aws.String(s3.PermissionWrite),
},
},
Owner: &s3.Owner{
DisplayName: aws.String("howdy"),
ID: aws.String("someID"),
},
},
}
}
| 367 |
session-manager-plugin | aws | Go | // Code generated by models/protocol_tests/generate.go. DO NOT EDIT.
package restxml_test
import (
"bytes"
"encoding/json"
"encoding/xml"
"fmt"
"io"
"io/ioutil"
"net/http"
"net/url"
"reflect"
"testing"
"time"
"github.com/aws/aws-sdk-go/aws"
"github.com/aws/aws-sdk-go/aws/client"
"github.com/aws/aws-sdk-go/aws/client/metadata"
"github.com/aws/aws-sdk-go/aws/request"
"github.com/aws/aws-sdk-go/aws/signer/v4"
"github.com/aws/aws-sdk-go/awstesting"
"github.com/aws/aws-sdk-go/awstesting/unit"
"github.com/aws/aws-sdk-go/private/protocol"
"github.com/aws/aws-sdk-go/private/protocol/restxml"
"github.com/aws/aws-sdk-go/private/protocol/xml/xmlutil"
"github.com/aws/aws-sdk-go/private/util"
)
var _ bytes.Buffer // always import bytes
var _ http.Request
var _ json.Marshaler
var _ time.Time
var _ xmlutil.XMLNode
var _ xml.Attr
var _ = ioutil.Discard
var _ = util.Trim("")
var _ = url.Values{}
var _ = io.EOF
var _ = aws.String
var _ = fmt.Println
var _ = reflect.Value{}
func init() {
protocol.RandReader = &awstesting.ZeroReader{}
}
// InputService1ProtocolTest provides the API operation methods for making requests to
// . See this package's package overview docs
// for details on the service.
//
// InputService1ProtocolTest methods are safe to use concurrently. It is not safe to
// modify mutate any of the struct's properties though.
type InputService1ProtocolTest struct {
*client.Client
}
// New creates a new instance of the InputService1ProtocolTest 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 InputService1ProtocolTest client from just a session.
// svc := inputservice1protocoltest.New(mySession)
//
// // Create a InputService1ProtocolTest client with additional configuration
// svc := inputservice1protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2"))
func NewInputService1ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *InputService1ProtocolTest {
c := p.ClientConfig("inputservice1protocoltest", cfgs...)
return newInputService1ProtocolTestClient(*c.Config, c.Handlers, c.PartitionID, c.Endpoint, c.SigningRegion, c.SigningName)
}
// newClient creates, initializes and returns a new service client instance.
func newInputService1ProtocolTestClient(cfg aws.Config, handlers request.Handlers, partitionID, endpoint, signingRegion, signingName string) *InputService1ProtocolTest {
svc := &InputService1ProtocolTest{
Client: client.New(
cfg,
metadata.ClientInfo{
ServiceName: "InputService1ProtocolTest",
ServiceID: "InputService1ProtocolTest",
SigningName: signingName,
SigningRegion: signingRegion,
PartitionID: partitionID,
Endpoint: endpoint,
APIVersion: "2014-01-01",
},
handlers,
),
}
// Handlers
svc.Handlers.Sign.PushBackNamed(v4.SignRequestHandler)
svc.Handlers.Build.PushBackNamed(restxml.BuildHandler)
svc.Handlers.Unmarshal.PushBackNamed(restxml.UnmarshalHandler)
svc.Handlers.UnmarshalMeta.PushBackNamed(restxml.UnmarshalMetaHandler)
svc.Handlers.UnmarshalError.PushBackNamed(restxml.UnmarshalErrorHandler)
return svc
}
// newRequest creates a new request for a InputService1ProtocolTest operation and runs any
// custom request initialization.
func (c *InputService1ProtocolTest) newRequest(op *request.Operation, params, data interface{}) *request.Request {
req := c.NewRequest(op, params, data)
return req
}
const opInputService1TestCaseOperation1 = "OperationName"
// InputService1TestCaseOperation1Request generates a "aws/request.Request" representing the
// client's request for the InputService1TestCaseOperation1 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 InputService1TestCaseOperation1 for more information on using the InputService1TestCaseOperation1
// 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 InputService1TestCaseOperation1Request method.
// req, resp := client.InputService1TestCaseOperation1Request(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
func (c *InputService1ProtocolTest) InputService1TestCaseOperation1Request(input *InputService1TestShapeInputService1TestCaseOperation1Input) (req *request.Request, output *InputService1TestShapeInputService1TestCaseOperation1Output) {
op := &request.Operation{
Name: opInputService1TestCaseOperation1,
HTTPMethod: "POST",
HTTPPath: "/2014-01-01/hostedzone",
}
if input == nil {
input = &InputService1TestShapeInputService1TestCaseOperation1Input{}
}
output = &InputService1TestShapeInputService1TestCaseOperation1Output{}
req = c.newRequest(op, input, output)
req.Handlers.Unmarshal.Swap(restxml.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
return
}
// InputService1TestCaseOperation1 API operation for .
//
// 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 's
// API operation InputService1TestCaseOperation1 for usage and error information.
func (c *InputService1ProtocolTest) InputService1TestCaseOperation1(input *InputService1TestShapeInputService1TestCaseOperation1Input) (*InputService1TestShapeInputService1TestCaseOperation1Output, error) {
req, out := c.InputService1TestCaseOperation1Request(input)
return out, req.Send()
}
// InputService1TestCaseOperation1WithContext is the same as InputService1TestCaseOperation1 with the addition of
// the ability to pass a context and additional request options.
//
// See InputService1TestCaseOperation1 for details on how to use this API operation.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
func (c *InputService1ProtocolTest) InputService1TestCaseOperation1WithContext(ctx aws.Context, input *InputService1TestShapeInputService1TestCaseOperation1Input, opts ...request.Option) (*InputService1TestShapeInputService1TestCaseOperation1Output, error) {
req, out := c.InputService1TestCaseOperation1Request(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
const opInputService1TestCaseOperation2 = "OperationName"
// InputService1TestCaseOperation2Request generates a "aws/request.Request" representing the
// client's request for the InputService1TestCaseOperation2 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 InputService1TestCaseOperation2 for more information on using the InputService1TestCaseOperation2
// 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 InputService1TestCaseOperation2Request method.
// req, resp := client.InputService1TestCaseOperation2Request(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
func (c *InputService1ProtocolTest) InputService1TestCaseOperation2Request(input *InputService1TestShapeInputService1TestCaseOperation2Input) (req *request.Request, output *InputService1TestShapeInputService1TestCaseOperation2Output) {
op := &request.Operation{
Name: opInputService1TestCaseOperation2,
HTTPMethod: "PUT",
HTTPPath: "/2014-01-01/hostedzone",
}
if input == nil {
input = &InputService1TestShapeInputService1TestCaseOperation2Input{}
}
output = &InputService1TestShapeInputService1TestCaseOperation2Output{}
req = c.newRequest(op, input, output)
req.Handlers.Unmarshal.Swap(restxml.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
return
}
// InputService1TestCaseOperation2 API operation for .
//
// 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 's
// API operation InputService1TestCaseOperation2 for usage and error information.
func (c *InputService1ProtocolTest) InputService1TestCaseOperation2(input *InputService1TestShapeInputService1TestCaseOperation2Input) (*InputService1TestShapeInputService1TestCaseOperation2Output, error) {
req, out := c.InputService1TestCaseOperation2Request(input)
return out, req.Send()
}
// InputService1TestCaseOperation2WithContext is the same as InputService1TestCaseOperation2 with the addition of
// the ability to pass a context and additional request options.
//
// See InputService1TestCaseOperation2 for details on how to use this API operation.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
func (c *InputService1ProtocolTest) InputService1TestCaseOperation2WithContext(ctx aws.Context, input *InputService1TestShapeInputService1TestCaseOperation2Input, opts ...request.Option) (*InputService1TestShapeInputService1TestCaseOperation2Output, error) {
req, out := c.InputService1TestCaseOperation2Request(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
const opInputService1TestCaseOperation3 = "OperationName"
// InputService1TestCaseOperation3Request generates a "aws/request.Request" representing the
// client's request for the InputService1TestCaseOperation3 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 InputService1TestCaseOperation3 for more information on using the InputService1TestCaseOperation3
// 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 InputService1TestCaseOperation3Request method.
// req, resp := client.InputService1TestCaseOperation3Request(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
func (c *InputService1ProtocolTest) InputService1TestCaseOperation3Request(input *InputService1TestShapeInputService1TestCaseOperation3Input) (req *request.Request, output *InputService1TestShapeInputService1TestCaseOperation3Output) {
op := &request.Operation{
Name: opInputService1TestCaseOperation3,
HTTPMethod: "GET",
HTTPPath: "/2014-01-01/hostedzone",
}
if input == nil {
input = &InputService1TestShapeInputService1TestCaseOperation3Input{}
}
output = &InputService1TestShapeInputService1TestCaseOperation3Output{}
req = c.newRequest(op, input, output)
req.Handlers.Unmarshal.Swap(restxml.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
return
}
// InputService1TestCaseOperation3 API operation for .
//
// 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 's
// API operation InputService1TestCaseOperation3 for usage and error information.
func (c *InputService1ProtocolTest) InputService1TestCaseOperation3(input *InputService1TestShapeInputService1TestCaseOperation3Input) (*InputService1TestShapeInputService1TestCaseOperation3Output, error) {
req, out := c.InputService1TestCaseOperation3Request(input)
return out, req.Send()
}
// InputService1TestCaseOperation3WithContext is the same as InputService1TestCaseOperation3 with the addition of
// the ability to pass a context and additional request options.
//
// See InputService1TestCaseOperation3 for details on how to use this API operation.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
func (c *InputService1ProtocolTest) InputService1TestCaseOperation3WithContext(ctx aws.Context, input *InputService1TestShapeInputService1TestCaseOperation3Input, opts ...request.Option) (*InputService1TestShapeInputService1TestCaseOperation3Output, error) {
req, out := c.InputService1TestCaseOperation3Request(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
type InputService1TestShapeInputService1TestCaseOperation1Input struct {
_ struct{} `locationName:"OperationRequest" type:"structure" xmlURI:"https://foo/"`
Description *string `type:"string"`
Name *string `type:"string"`
}
// SetDescription sets the Description field's value.
func (s *InputService1TestShapeInputService1TestCaseOperation1Input) SetDescription(v string) *InputService1TestShapeInputService1TestCaseOperation1Input {
s.Description = &v
return s
}
// SetName sets the Name field's value.
func (s *InputService1TestShapeInputService1TestCaseOperation1Input) SetName(v string) *InputService1TestShapeInputService1TestCaseOperation1Input {
s.Name = &v
return s
}
type InputService1TestShapeInputService1TestCaseOperation1Output struct {
_ struct{} `type:"structure"`
}
type InputService1TestShapeInputService1TestCaseOperation2Input struct {
_ struct{} `locationName:"OperationRequest" type:"structure" xmlURI:"https://foo/"`
Description *string `type:"string"`
Name *string `type:"string"`
}
// SetDescription sets the Description field's value.
func (s *InputService1TestShapeInputService1TestCaseOperation2Input) SetDescription(v string) *InputService1TestShapeInputService1TestCaseOperation2Input {
s.Description = &v
return s
}
// SetName sets the Name field's value.
func (s *InputService1TestShapeInputService1TestCaseOperation2Input) SetName(v string) *InputService1TestShapeInputService1TestCaseOperation2Input {
s.Name = &v
return s
}
type InputService1TestShapeInputService1TestCaseOperation2Output struct {
_ struct{} `type:"structure"`
}
type InputService1TestShapeInputService1TestCaseOperation3Input struct {
_ struct{} `type:"structure"`
}
type InputService1TestShapeInputService1TestCaseOperation3Output struct {
_ struct{} `type:"structure"`
}
// InputService2ProtocolTest provides the API operation methods for making requests to
// . See this package's package overview docs
// for details on the service.
//
// InputService2ProtocolTest methods are safe to use concurrently. It is not safe to
// modify mutate any of the struct's properties though.
type InputService2ProtocolTest struct {
*client.Client
}
// New creates a new instance of the InputService2ProtocolTest 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 InputService2ProtocolTest client from just a session.
// svc := inputservice2protocoltest.New(mySession)
//
// // Create a InputService2ProtocolTest client with additional configuration
// svc := inputservice2protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2"))
func NewInputService2ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *InputService2ProtocolTest {
c := p.ClientConfig("inputservice2protocoltest", cfgs...)
return newInputService2ProtocolTestClient(*c.Config, c.Handlers, c.PartitionID, c.Endpoint, c.SigningRegion, c.SigningName)
}
// newClient creates, initializes and returns a new service client instance.
func newInputService2ProtocolTestClient(cfg aws.Config, handlers request.Handlers, partitionID, endpoint, signingRegion, signingName string) *InputService2ProtocolTest {
svc := &InputService2ProtocolTest{
Client: client.New(
cfg,
metadata.ClientInfo{
ServiceName: "InputService2ProtocolTest",
ServiceID: "InputService2ProtocolTest",
SigningName: signingName,
SigningRegion: signingRegion,
PartitionID: partitionID,
Endpoint: endpoint,
APIVersion: "2014-01-01",
},
handlers,
),
}
// Handlers
svc.Handlers.Sign.PushBackNamed(v4.SignRequestHandler)
svc.Handlers.Build.PushBackNamed(restxml.BuildHandler)
svc.Handlers.Unmarshal.PushBackNamed(restxml.UnmarshalHandler)
svc.Handlers.UnmarshalMeta.PushBackNamed(restxml.UnmarshalMetaHandler)
svc.Handlers.UnmarshalError.PushBackNamed(restxml.UnmarshalErrorHandler)
return svc
}
// newRequest creates a new request for a InputService2ProtocolTest operation and runs any
// custom request initialization.
func (c *InputService2ProtocolTest) newRequest(op *request.Operation, params, data interface{}) *request.Request {
req := c.NewRequest(op, params, data)
return req
}
const opInputService2TestCaseOperation1 = "OperationName"
// InputService2TestCaseOperation1Request generates a "aws/request.Request" representing the
// client's request for the InputService2TestCaseOperation1 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 InputService2TestCaseOperation1 for more information on using the InputService2TestCaseOperation1
// 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 InputService2TestCaseOperation1Request method.
// req, resp := client.InputService2TestCaseOperation1Request(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
func (c *InputService2ProtocolTest) InputService2TestCaseOperation1Request(input *InputService2TestShapeInputService2TestCaseOperation1Input) (req *request.Request, output *InputService2TestShapeInputService2TestCaseOperation1Output) {
op := &request.Operation{
Name: opInputService2TestCaseOperation1,
HTTPMethod: "POST",
HTTPPath: "/2014-01-01/hostedzone",
}
if input == nil {
input = &InputService2TestShapeInputService2TestCaseOperation1Input{}
}
output = &InputService2TestShapeInputService2TestCaseOperation1Output{}
req = c.newRequest(op, input, output)
req.Handlers.Unmarshal.Swap(restxml.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
return
}
// InputService2TestCaseOperation1 API operation for .
//
// 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 's
// API operation InputService2TestCaseOperation1 for usage and error information.
func (c *InputService2ProtocolTest) InputService2TestCaseOperation1(input *InputService2TestShapeInputService2TestCaseOperation1Input) (*InputService2TestShapeInputService2TestCaseOperation1Output, error) {
req, out := c.InputService2TestCaseOperation1Request(input)
return out, req.Send()
}
// InputService2TestCaseOperation1WithContext is the same as InputService2TestCaseOperation1 with the addition of
// the ability to pass a context and additional request options.
//
// See InputService2TestCaseOperation1 for details on how to use this API operation.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
func (c *InputService2ProtocolTest) InputService2TestCaseOperation1WithContext(ctx aws.Context, input *InputService2TestShapeInputService2TestCaseOperation1Input, opts ...request.Option) (*InputService2TestShapeInputService2TestCaseOperation1Output, error) {
req, out := c.InputService2TestCaseOperation1Request(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
type InputService2TestShapeInputService2TestCaseOperation1Input struct {
_ struct{} `locationName:"OperationRequest" type:"structure" xmlURI:"https://foo/"`
First *bool `type:"boolean"`
Fourth *int64 `type:"integer"`
Second *bool `type:"boolean"`
Third *float64 `type:"float"`
}
// SetFirst sets the First field's value.
func (s *InputService2TestShapeInputService2TestCaseOperation1Input) SetFirst(v bool) *InputService2TestShapeInputService2TestCaseOperation1Input {
s.First = &v
return s
}
// SetFourth sets the Fourth field's value.
func (s *InputService2TestShapeInputService2TestCaseOperation1Input) SetFourth(v int64) *InputService2TestShapeInputService2TestCaseOperation1Input {
s.Fourth = &v
return s
}
// SetSecond sets the Second field's value.
func (s *InputService2TestShapeInputService2TestCaseOperation1Input) SetSecond(v bool) *InputService2TestShapeInputService2TestCaseOperation1Input {
s.Second = &v
return s
}
// SetThird sets the Third field's value.
func (s *InputService2TestShapeInputService2TestCaseOperation1Input) SetThird(v float64) *InputService2TestShapeInputService2TestCaseOperation1Input {
s.Third = &v
return s
}
type InputService2TestShapeInputService2TestCaseOperation1Output struct {
_ struct{} `type:"structure"`
}
// InputService3ProtocolTest provides the API operation methods for making requests to
// . See this package's package overview docs
// for details on the service.
//
// InputService3ProtocolTest methods are safe to use concurrently. It is not safe to
// modify mutate any of the struct's properties though.
type InputService3ProtocolTest struct {
*client.Client
}
// New creates a new instance of the InputService3ProtocolTest 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 InputService3ProtocolTest client from just a session.
// svc := inputservice3protocoltest.New(mySession)
//
// // Create a InputService3ProtocolTest client with additional configuration
// svc := inputservice3protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2"))
func NewInputService3ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *InputService3ProtocolTest {
c := p.ClientConfig("inputservice3protocoltest", cfgs...)
return newInputService3ProtocolTestClient(*c.Config, c.Handlers, c.PartitionID, c.Endpoint, c.SigningRegion, c.SigningName)
}
// newClient creates, initializes and returns a new service client instance.
func newInputService3ProtocolTestClient(cfg aws.Config, handlers request.Handlers, partitionID, endpoint, signingRegion, signingName string) *InputService3ProtocolTest {
svc := &InputService3ProtocolTest{
Client: client.New(
cfg,
metadata.ClientInfo{
ServiceName: "InputService3ProtocolTest",
ServiceID: "InputService3ProtocolTest",
SigningName: signingName,
SigningRegion: signingRegion,
PartitionID: partitionID,
Endpoint: endpoint,
APIVersion: "2014-01-01",
},
handlers,
),
}
// Handlers
svc.Handlers.Sign.PushBackNamed(v4.SignRequestHandler)
svc.Handlers.Build.PushBackNamed(restxml.BuildHandler)
svc.Handlers.Unmarshal.PushBackNamed(restxml.UnmarshalHandler)
svc.Handlers.UnmarshalMeta.PushBackNamed(restxml.UnmarshalMetaHandler)
svc.Handlers.UnmarshalError.PushBackNamed(restxml.UnmarshalErrorHandler)
return svc
}
// newRequest creates a new request for a InputService3ProtocolTest operation and runs any
// custom request initialization.
func (c *InputService3ProtocolTest) newRequest(op *request.Operation, params, data interface{}) *request.Request {
req := c.NewRequest(op, params, data)
return req
}
const opInputService3TestCaseOperation1 = "OperationName"
// InputService3TestCaseOperation1Request generates a "aws/request.Request" representing the
// client's request for the InputService3TestCaseOperation1 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 InputService3TestCaseOperation1 for more information on using the InputService3TestCaseOperation1
// 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 InputService3TestCaseOperation1Request method.
// req, resp := client.InputService3TestCaseOperation1Request(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
func (c *InputService3ProtocolTest) InputService3TestCaseOperation1Request(input *InputService3TestShapeInputService3TestCaseOperation1Input) (req *request.Request, output *InputService3TestShapeInputService3TestCaseOperation1Output) {
op := &request.Operation{
Name: opInputService3TestCaseOperation1,
HTTPMethod: "POST",
HTTPPath: "/2014-01-01/hostedzone",
}
if input == nil {
input = &InputService3TestShapeInputService3TestCaseOperation1Input{}
}
output = &InputService3TestShapeInputService3TestCaseOperation1Output{}
req = c.newRequest(op, input, output)
req.Handlers.Unmarshal.Swap(restxml.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
return
}
// InputService3TestCaseOperation1 API operation for .
//
// 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 's
// API operation InputService3TestCaseOperation1 for usage and error information.
func (c *InputService3ProtocolTest) InputService3TestCaseOperation1(input *InputService3TestShapeInputService3TestCaseOperation1Input) (*InputService3TestShapeInputService3TestCaseOperation1Output, error) {
req, out := c.InputService3TestCaseOperation1Request(input)
return out, req.Send()
}
// InputService3TestCaseOperation1WithContext is the same as InputService3TestCaseOperation1 with the addition of
// the ability to pass a context and additional request options.
//
// See InputService3TestCaseOperation1 for details on how to use this API operation.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
func (c *InputService3ProtocolTest) InputService3TestCaseOperation1WithContext(ctx aws.Context, input *InputService3TestShapeInputService3TestCaseOperation1Input, opts ...request.Option) (*InputService3TestShapeInputService3TestCaseOperation1Output, error) {
req, out := c.InputService3TestCaseOperation1Request(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
const opInputService3TestCaseOperation2 = "OperationName"
// InputService3TestCaseOperation2Request generates a "aws/request.Request" representing the
// client's request for the InputService3TestCaseOperation2 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 InputService3TestCaseOperation2 for more information on using the InputService3TestCaseOperation2
// 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 InputService3TestCaseOperation2Request method.
// req, resp := client.InputService3TestCaseOperation2Request(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
func (c *InputService3ProtocolTest) InputService3TestCaseOperation2Request(input *InputService3TestShapeInputService3TestCaseOperation2Input) (req *request.Request, output *InputService3TestShapeInputService3TestCaseOperation2Output) {
op := &request.Operation{
Name: opInputService3TestCaseOperation2,
HTTPMethod: "POST",
HTTPPath: "/2014-01-01/hostedzone",
}
if input == nil {
input = &InputService3TestShapeInputService3TestCaseOperation2Input{}
}
output = &InputService3TestShapeInputService3TestCaseOperation2Output{}
req = c.newRequest(op, input, output)
req.Handlers.Unmarshal.Swap(restxml.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
return
}
// InputService3TestCaseOperation2 API operation for .
//
// 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 's
// API operation InputService3TestCaseOperation2 for usage and error information.
func (c *InputService3ProtocolTest) InputService3TestCaseOperation2(input *InputService3TestShapeInputService3TestCaseOperation2Input) (*InputService3TestShapeInputService3TestCaseOperation2Output, error) {
req, out := c.InputService3TestCaseOperation2Request(input)
return out, req.Send()
}
// InputService3TestCaseOperation2WithContext is the same as InputService3TestCaseOperation2 with the addition of
// the ability to pass a context and additional request options.
//
// See InputService3TestCaseOperation2 for details on how to use this API operation.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
func (c *InputService3ProtocolTest) InputService3TestCaseOperation2WithContext(ctx aws.Context, input *InputService3TestShapeInputService3TestCaseOperation2Input, opts ...request.Option) (*InputService3TestShapeInputService3TestCaseOperation2Output, error) {
req, out := c.InputService3TestCaseOperation2Request(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
type InputService3TestShapeInputService3TestCaseOperation1Input struct {
_ struct{} `locationName:"OperationRequest" type:"structure" xmlURI:"https://foo/"`
Description *string `type:"string"`
SubStructure *InputService3TestShapeSubStructure `type:"structure"`
}
// SetDescription sets the Description field's value.
func (s *InputService3TestShapeInputService3TestCaseOperation1Input) SetDescription(v string) *InputService3TestShapeInputService3TestCaseOperation1Input {
s.Description = &v
return s
}
// SetSubStructure sets the SubStructure field's value.
func (s *InputService3TestShapeInputService3TestCaseOperation1Input) SetSubStructure(v *InputService3TestShapeSubStructure) *InputService3TestShapeInputService3TestCaseOperation1Input {
s.SubStructure = v
return s
}
type InputService3TestShapeInputService3TestCaseOperation1Output struct {
_ struct{} `type:"structure"`
}
type InputService3TestShapeInputService3TestCaseOperation2Input struct {
_ struct{} `locationName:"OperationRequest" type:"structure" xmlURI:"https://foo/"`
Description *string `type:"string"`
SubStructure *InputService3TestShapeSubStructure `type:"structure"`
}
// SetDescription sets the Description field's value.
func (s *InputService3TestShapeInputService3TestCaseOperation2Input) SetDescription(v string) *InputService3TestShapeInputService3TestCaseOperation2Input {
s.Description = &v
return s
}
// SetSubStructure sets the SubStructure field's value.
func (s *InputService3TestShapeInputService3TestCaseOperation2Input) SetSubStructure(v *InputService3TestShapeSubStructure) *InputService3TestShapeInputService3TestCaseOperation2Input {
s.SubStructure = v
return s
}
type InputService3TestShapeInputService3TestCaseOperation2Output struct {
_ struct{} `type:"structure"`
}
type InputService3TestShapeSubStructure struct {
_ struct{} `type:"structure"`
Bar *string `type:"string"`
Foo *string `type:"string"`
}
// SetBar sets the Bar field's value.
func (s *InputService3TestShapeSubStructure) SetBar(v string) *InputService3TestShapeSubStructure {
s.Bar = &v
return s
}
// SetFoo sets the Foo field's value.
func (s *InputService3TestShapeSubStructure) SetFoo(v string) *InputService3TestShapeSubStructure {
s.Foo = &v
return s
}
// InputService4ProtocolTest provides the API operation methods for making requests to
// . See this package's package overview docs
// for details on the service.
//
// InputService4ProtocolTest methods are safe to use concurrently. It is not safe to
// modify mutate any of the struct's properties though.
type InputService4ProtocolTest struct {
*client.Client
}
// New creates a new instance of the InputService4ProtocolTest 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 InputService4ProtocolTest client from just a session.
// svc := inputservice4protocoltest.New(mySession)
//
// // Create a InputService4ProtocolTest client with additional configuration
// svc := inputservice4protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2"))
func NewInputService4ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *InputService4ProtocolTest {
c := p.ClientConfig("inputservice4protocoltest", cfgs...)
return newInputService4ProtocolTestClient(*c.Config, c.Handlers, c.PartitionID, c.Endpoint, c.SigningRegion, c.SigningName)
}
// newClient creates, initializes and returns a new service client instance.
func newInputService4ProtocolTestClient(cfg aws.Config, handlers request.Handlers, partitionID, endpoint, signingRegion, signingName string) *InputService4ProtocolTest {
svc := &InputService4ProtocolTest{
Client: client.New(
cfg,
metadata.ClientInfo{
ServiceName: "InputService4ProtocolTest",
ServiceID: "InputService4ProtocolTest",
SigningName: signingName,
SigningRegion: signingRegion,
PartitionID: partitionID,
Endpoint: endpoint,
APIVersion: "2014-01-01",
},
handlers,
),
}
// Handlers
svc.Handlers.Sign.PushBackNamed(v4.SignRequestHandler)
svc.Handlers.Build.PushBackNamed(restxml.BuildHandler)
svc.Handlers.Unmarshal.PushBackNamed(restxml.UnmarshalHandler)
svc.Handlers.UnmarshalMeta.PushBackNamed(restxml.UnmarshalMetaHandler)
svc.Handlers.UnmarshalError.PushBackNamed(restxml.UnmarshalErrorHandler)
return svc
}
// newRequest creates a new request for a InputService4ProtocolTest operation and runs any
// custom request initialization.
func (c *InputService4ProtocolTest) newRequest(op *request.Operation, params, data interface{}) *request.Request {
req := c.NewRequest(op, params, data)
return req
}
const opInputService4TestCaseOperation1 = "OperationName"
// InputService4TestCaseOperation1Request generates a "aws/request.Request" representing the
// client's request for the InputService4TestCaseOperation1 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 InputService4TestCaseOperation1 for more information on using the InputService4TestCaseOperation1
// 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 InputService4TestCaseOperation1Request method.
// req, resp := client.InputService4TestCaseOperation1Request(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
func (c *InputService4ProtocolTest) InputService4TestCaseOperation1Request(input *InputService4TestShapeInputService4TestCaseOperation1Input) (req *request.Request, output *InputService4TestShapeInputService4TestCaseOperation1Output) {
op := &request.Operation{
Name: opInputService4TestCaseOperation1,
HTTPMethod: "POST",
HTTPPath: "/2014-01-01/hostedzone",
}
if input == nil {
input = &InputService4TestShapeInputService4TestCaseOperation1Input{}
}
output = &InputService4TestShapeInputService4TestCaseOperation1Output{}
req = c.newRequest(op, input, output)
req.Handlers.Unmarshal.Swap(restxml.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
return
}
// InputService4TestCaseOperation1 API operation for .
//
// 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 's
// API operation InputService4TestCaseOperation1 for usage and error information.
func (c *InputService4ProtocolTest) InputService4TestCaseOperation1(input *InputService4TestShapeInputService4TestCaseOperation1Input) (*InputService4TestShapeInputService4TestCaseOperation1Output, error) {
req, out := c.InputService4TestCaseOperation1Request(input)
return out, req.Send()
}
// InputService4TestCaseOperation1WithContext is the same as InputService4TestCaseOperation1 with the addition of
// the ability to pass a context and additional request options.
//
// See InputService4TestCaseOperation1 for details on how to use this API operation.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
func (c *InputService4ProtocolTest) InputService4TestCaseOperation1WithContext(ctx aws.Context, input *InputService4TestShapeInputService4TestCaseOperation1Input, opts ...request.Option) (*InputService4TestShapeInputService4TestCaseOperation1Output, error) {
req, out := c.InputService4TestCaseOperation1Request(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
type InputService4TestShapeInputService4TestCaseOperation1Input struct {
_ struct{} `locationName:"OperationRequest" type:"structure" xmlURI:"https://foo/"`
Description *string `type:"string"`
SubStructure *InputService4TestShapeSubStructure `type:"structure"`
}
// SetDescription sets the Description field's value.
func (s *InputService4TestShapeInputService4TestCaseOperation1Input) SetDescription(v string) *InputService4TestShapeInputService4TestCaseOperation1Input {
s.Description = &v
return s
}
// SetSubStructure sets the SubStructure field's value.
func (s *InputService4TestShapeInputService4TestCaseOperation1Input) SetSubStructure(v *InputService4TestShapeSubStructure) *InputService4TestShapeInputService4TestCaseOperation1Input {
s.SubStructure = v
return s
}
type InputService4TestShapeInputService4TestCaseOperation1Output struct {
_ struct{} `type:"structure"`
}
type InputService4TestShapeSubStructure struct {
_ struct{} `type:"structure"`
Bar *string `type:"string"`
Foo *string `type:"string"`
}
// SetBar sets the Bar field's value.
func (s *InputService4TestShapeSubStructure) SetBar(v string) *InputService4TestShapeSubStructure {
s.Bar = &v
return s
}
// SetFoo sets the Foo field's value.
func (s *InputService4TestShapeSubStructure) SetFoo(v string) *InputService4TestShapeSubStructure {
s.Foo = &v
return s
}
// InputService5ProtocolTest provides the API operation methods for making requests to
// . See this package's package overview docs
// for details on the service.
//
// InputService5ProtocolTest methods are safe to use concurrently. It is not safe to
// modify mutate any of the struct's properties though.
type InputService5ProtocolTest struct {
*client.Client
}
// New creates a new instance of the InputService5ProtocolTest 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 InputService5ProtocolTest client from just a session.
// svc := inputservice5protocoltest.New(mySession)
//
// // Create a InputService5ProtocolTest client with additional configuration
// svc := inputservice5protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2"))
func NewInputService5ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *InputService5ProtocolTest {
c := p.ClientConfig("inputservice5protocoltest", cfgs...)
return newInputService5ProtocolTestClient(*c.Config, c.Handlers, c.PartitionID, c.Endpoint, c.SigningRegion, c.SigningName)
}
// newClient creates, initializes and returns a new service client instance.
func newInputService5ProtocolTestClient(cfg aws.Config, handlers request.Handlers, partitionID, endpoint, signingRegion, signingName string) *InputService5ProtocolTest {
svc := &InputService5ProtocolTest{
Client: client.New(
cfg,
metadata.ClientInfo{
ServiceName: "InputService5ProtocolTest",
ServiceID: "InputService5ProtocolTest",
SigningName: signingName,
SigningRegion: signingRegion,
PartitionID: partitionID,
Endpoint: endpoint,
APIVersion: "2014-01-01",
},
handlers,
),
}
// Handlers
svc.Handlers.Sign.PushBackNamed(v4.SignRequestHandler)
svc.Handlers.Build.PushBackNamed(restxml.BuildHandler)
svc.Handlers.Unmarshal.PushBackNamed(restxml.UnmarshalHandler)
svc.Handlers.UnmarshalMeta.PushBackNamed(restxml.UnmarshalMetaHandler)
svc.Handlers.UnmarshalError.PushBackNamed(restxml.UnmarshalErrorHandler)
return svc
}
// newRequest creates a new request for a InputService5ProtocolTest operation and runs any
// custom request initialization.
func (c *InputService5ProtocolTest) newRequest(op *request.Operation, params, data interface{}) *request.Request {
req := c.NewRequest(op, params, data)
return req
}
const opInputService5TestCaseOperation1 = "OperationName"
// InputService5TestCaseOperation1Request generates a "aws/request.Request" representing the
// client's request for the InputService5TestCaseOperation1 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 InputService5TestCaseOperation1 for more information on using the InputService5TestCaseOperation1
// 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 InputService5TestCaseOperation1Request method.
// req, resp := client.InputService5TestCaseOperation1Request(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
func (c *InputService5ProtocolTest) InputService5TestCaseOperation1Request(input *InputService5TestShapeInputService5TestCaseOperation1Input) (req *request.Request, output *InputService5TestShapeInputService5TestCaseOperation1Output) {
op := &request.Operation{
Name: opInputService5TestCaseOperation1,
HTTPMethod: "POST",
HTTPPath: "/2014-01-01/hostedzone",
}
if input == nil {
input = &InputService5TestShapeInputService5TestCaseOperation1Input{}
}
output = &InputService5TestShapeInputService5TestCaseOperation1Output{}
req = c.newRequest(op, input, output)
req.Handlers.Unmarshal.Swap(restxml.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
return
}
// InputService5TestCaseOperation1 API operation for .
//
// 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 's
// API operation InputService5TestCaseOperation1 for usage and error information.
func (c *InputService5ProtocolTest) InputService5TestCaseOperation1(input *InputService5TestShapeInputService5TestCaseOperation1Input) (*InputService5TestShapeInputService5TestCaseOperation1Output, error) {
req, out := c.InputService5TestCaseOperation1Request(input)
return out, req.Send()
}
// InputService5TestCaseOperation1WithContext is the same as InputService5TestCaseOperation1 with the addition of
// the ability to pass a context and additional request options.
//
// See InputService5TestCaseOperation1 for details on how to use this API operation.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
func (c *InputService5ProtocolTest) InputService5TestCaseOperation1WithContext(ctx aws.Context, input *InputService5TestShapeInputService5TestCaseOperation1Input, opts ...request.Option) (*InputService5TestShapeInputService5TestCaseOperation1Output, error) {
req, out := c.InputService5TestCaseOperation1Request(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
type InputService5TestShapeInputService5TestCaseOperation1Input struct {
_ struct{} `locationName:"OperationRequest" type:"structure" xmlURI:"https://foo/"`
ListParam []*string `type:"list"`
}
// SetListParam sets the ListParam field's value.
func (s *InputService5TestShapeInputService5TestCaseOperation1Input) SetListParam(v []*string) *InputService5TestShapeInputService5TestCaseOperation1Input {
s.ListParam = v
return s
}
type InputService5TestShapeInputService5TestCaseOperation1Output struct {
_ struct{} `type:"structure"`
}
// InputService6ProtocolTest provides the API operation methods for making requests to
// . See this package's package overview docs
// for details on the service.
//
// InputService6ProtocolTest methods are safe to use concurrently. It is not safe to
// modify mutate any of the struct's properties though.
type InputService6ProtocolTest struct {
*client.Client
}
// New creates a new instance of the InputService6ProtocolTest 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 InputService6ProtocolTest client from just a session.
// svc := inputservice6protocoltest.New(mySession)
//
// // Create a InputService6ProtocolTest client with additional configuration
// svc := inputservice6protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2"))
func NewInputService6ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *InputService6ProtocolTest {
c := p.ClientConfig("inputservice6protocoltest", cfgs...)
return newInputService6ProtocolTestClient(*c.Config, c.Handlers, c.PartitionID, c.Endpoint, c.SigningRegion, c.SigningName)
}
// newClient creates, initializes and returns a new service client instance.
func newInputService6ProtocolTestClient(cfg aws.Config, handlers request.Handlers, partitionID, endpoint, signingRegion, signingName string) *InputService6ProtocolTest {
svc := &InputService6ProtocolTest{
Client: client.New(
cfg,
metadata.ClientInfo{
ServiceName: "InputService6ProtocolTest",
ServiceID: "InputService6ProtocolTest",
SigningName: signingName,
SigningRegion: signingRegion,
PartitionID: partitionID,
Endpoint: endpoint,
APIVersion: "2014-01-01",
},
handlers,
),
}
// Handlers
svc.Handlers.Sign.PushBackNamed(v4.SignRequestHandler)
svc.Handlers.Build.PushBackNamed(restxml.BuildHandler)
svc.Handlers.Unmarshal.PushBackNamed(restxml.UnmarshalHandler)
svc.Handlers.UnmarshalMeta.PushBackNamed(restxml.UnmarshalMetaHandler)
svc.Handlers.UnmarshalError.PushBackNamed(restxml.UnmarshalErrorHandler)
return svc
}
// newRequest creates a new request for a InputService6ProtocolTest operation and runs any
// custom request initialization.
func (c *InputService6ProtocolTest) newRequest(op *request.Operation, params, data interface{}) *request.Request {
req := c.NewRequest(op, params, data)
return req
}
const opInputService6TestCaseOperation1 = "OperationName"
// InputService6TestCaseOperation1Request generates a "aws/request.Request" representing the
// client's request for the InputService6TestCaseOperation1 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 InputService6TestCaseOperation1 for more information on using the InputService6TestCaseOperation1
// 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 InputService6TestCaseOperation1Request method.
// req, resp := client.InputService6TestCaseOperation1Request(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
func (c *InputService6ProtocolTest) InputService6TestCaseOperation1Request(input *InputService6TestShapeInputService6TestCaseOperation1Input) (req *request.Request, output *InputService6TestShapeInputService6TestCaseOperation1Output) {
op := &request.Operation{
Name: opInputService6TestCaseOperation1,
HTTPMethod: "POST",
HTTPPath: "/2014-01-01/hostedzone",
}
if input == nil {
input = &InputService6TestShapeInputService6TestCaseOperation1Input{}
}
output = &InputService6TestShapeInputService6TestCaseOperation1Output{}
req = c.newRequest(op, input, output)
req.Handlers.Unmarshal.Swap(restxml.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
return
}
// InputService6TestCaseOperation1 API operation for .
//
// 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 's
// API operation InputService6TestCaseOperation1 for usage and error information.
func (c *InputService6ProtocolTest) InputService6TestCaseOperation1(input *InputService6TestShapeInputService6TestCaseOperation1Input) (*InputService6TestShapeInputService6TestCaseOperation1Output, error) {
req, out := c.InputService6TestCaseOperation1Request(input)
return out, req.Send()
}
// InputService6TestCaseOperation1WithContext is the same as InputService6TestCaseOperation1 with the addition of
// the ability to pass a context and additional request options.
//
// See InputService6TestCaseOperation1 for details on how to use this API operation.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
func (c *InputService6ProtocolTest) InputService6TestCaseOperation1WithContext(ctx aws.Context, input *InputService6TestShapeInputService6TestCaseOperation1Input, opts ...request.Option) (*InputService6TestShapeInputService6TestCaseOperation1Output, error) {
req, out := c.InputService6TestCaseOperation1Request(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
type InputService6TestShapeInputService6TestCaseOperation1Input struct {
_ struct{} `locationName:"OperationRequest" type:"structure" xmlURI:"https://foo/"`
ListParam []*string `locationName:"AlternateName" locationNameList:"NotMember" type:"list"`
}
// SetListParam sets the ListParam field's value.
func (s *InputService6TestShapeInputService6TestCaseOperation1Input) SetListParam(v []*string) *InputService6TestShapeInputService6TestCaseOperation1Input {
s.ListParam = v
return s
}
type InputService6TestShapeInputService6TestCaseOperation1Output struct {
_ struct{} `type:"structure"`
}
// InputService7ProtocolTest provides the API operation methods for making requests to
// . See this package's package overview docs
// for details on the service.
//
// InputService7ProtocolTest methods are safe to use concurrently. It is not safe to
// modify mutate any of the struct's properties though.
type InputService7ProtocolTest struct {
*client.Client
}
// New creates a new instance of the InputService7ProtocolTest 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 InputService7ProtocolTest client from just a session.
// svc := inputservice7protocoltest.New(mySession)
//
// // Create a InputService7ProtocolTest client with additional configuration
// svc := inputservice7protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2"))
func NewInputService7ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *InputService7ProtocolTest {
c := p.ClientConfig("inputservice7protocoltest", cfgs...)
return newInputService7ProtocolTestClient(*c.Config, c.Handlers, c.PartitionID, c.Endpoint, c.SigningRegion, c.SigningName)
}
// newClient creates, initializes and returns a new service client instance.
func newInputService7ProtocolTestClient(cfg aws.Config, handlers request.Handlers, partitionID, endpoint, signingRegion, signingName string) *InputService7ProtocolTest {
svc := &InputService7ProtocolTest{
Client: client.New(
cfg,
metadata.ClientInfo{
ServiceName: "InputService7ProtocolTest",
ServiceID: "InputService7ProtocolTest",
SigningName: signingName,
SigningRegion: signingRegion,
PartitionID: partitionID,
Endpoint: endpoint,
APIVersion: "2014-01-01",
},
handlers,
),
}
// Handlers
svc.Handlers.Sign.PushBackNamed(v4.SignRequestHandler)
svc.Handlers.Build.PushBackNamed(restxml.BuildHandler)
svc.Handlers.Unmarshal.PushBackNamed(restxml.UnmarshalHandler)
svc.Handlers.UnmarshalMeta.PushBackNamed(restxml.UnmarshalMetaHandler)
svc.Handlers.UnmarshalError.PushBackNamed(restxml.UnmarshalErrorHandler)
return svc
}
// newRequest creates a new request for a InputService7ProtocolTest operation and runs any
// custom request initialization.
func (c *InputService7ProtocolTest) newRequest(op *request.Operation, params, data interface{}) *request.Request {
req := c.NewRequest(op, params, data)
return req
}
const opInputService7TestCaseOperation1 = "OperationName"
// InputService7TestCaseOperation1Request generates a "aws/request.Request" representing the
// client's request for the InputService7TestCaseOperation1 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 InputService7TestCaseOperation1 for more information on using the InputService7TestCaseOperation1
// 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 InputService7TestCaseOperation1Request method.
// req, resp := client.InputService7TestCaseOperation1Request(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
func (c *InputService7ProtocolTest) InputService7TestCaseOperation1Request(input *InputService7TestShapeInputService7TestCaseOperation1Input) (req *request.Request, output *InputService7TestShapeInputService7TestCaseOperation1Output) {
op := &request.Operation{
Name: opInputService7TestCaseOperation1,
HTTPMethod: "POST",
HTTPPath: "/2014-01-01/hostedzone",
}
if input == nil {
input = &InputService7TestShapeInputService7TestCaseOperation1Input{}
}
output = &InputService7TestShapeInputService7TestCaseOperation1Output{}
req = c.newRequest(op, input, output)
req.Handlers.Unmarshal.Swap(restxml.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
return
}
// InputService7TestCaseOperation1 API operation for .
//
// 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 's
// API operation InputService7TestCaseOperation1 for usage and error information.
func (c *InputService7ProtocolTest) InputService7TestCaseOperation1(input *InputService7TestShapeInputService7TestCaseOperation1Input) (*InputService7TestShapeInputService7TestCaseOperation1Output, error) {
req, out := c.InputService7TestCaseOperation1Request(input)
return out, req.Send()
}
// InputService7TestCaseOperation1WithContext is the same as InputService7TestCaseOperation1 with the addition of
// the ability to pass a context and additional request options.
//
// See InputService7TestCaseOperation1 for details on how to use this API operation.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
func (c *InputService7ProtocolTest) InputService7TestCaseOperation1WithContext(ctx aws.Context, input *InputService7TestShapeInputService7TestCaseOperation1Input, opts ...request.Option) (*InputService7TestShapeInputService7TestCaseOperation1Output, error) {
req, out := c.InputService7TestCaseOperation1Request(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
type InputService7TestShapeInputService7TestCaseOperation1Input struct {
_ struct{} `locationName:"OperationRequest" type:"structure" xmlURI:"https://foo/"`
ListParam []*string `type:"list" flattened:"true"`
}
// SetListParam sets the ListParam field's value.
func (s *InputService7TestShapeInputService7TestCaseOperation1Input) SetListParam(v []*string) *InputService7TestShapeInputService7TestCaseOperation1Input {
s.ListParam = v
return s
}
type InputService7TestShapeInputService7TestCaseOperation1Output struct {
_ struct{} `type:"structure"`
}
// InputService8ProtocolTest provides the API operation methods for making requests to
// . See this package's package overview docs
// for details on the service.
//
// InputService8ProtocolTest methods are safe to use concurrently. It is not safe to
// modify mutate any of the struct's properties though.
type InputService8ProtocolTest struct {
*client.Client
}
// New creates a new instance of the InputService8ProtocolTest 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 InputService8ProtocolTest client from just a session.
// svc := inputservice8protocoltest.New(mySession)
//
// // Create a InputService8ProtocolTest client with additional configuration
// svc := inputservice8protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2"))
func NewInputService8ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *InputService8ProtocolTest {
c := p.ClientConfig("inputservice8protocoltest", cfgs...)
return newInputService8ProtocolTestClient(*c.Config, c.Handlers, c.PartitionID, c.Endpoint, c.SigningRegion, c.SigningName)
}
// newClient creates, initializes and returns a new service client instance.
func newInputService8ProtocolTestClient(cfg aws.Config, handlers request.Handlers, partitionID, endpoint, signingRegion, signingName string) *InputService8ProtocolTest {
svc := &InputService8ProtocolTest{
Client: client.New(
cfg,
metadata.ClientInfo{
ServiceName: "InputService8ProtocolTest",
ServiceID: "InputService8ProtocolTest",
SigningName: signingName,
SigningRegion: signingRegion,
PartitionID: partitionID,
Endpoint: endpoint,
APIVersion: "2014-01-01",
},
handlers,
),
}
// Handlers
svc.Handlers.Sign.PushBackNamed(v4.SignRequestHandler)
svc.Handlers.Build.PushBackNamed(restxml.BuildHandler)
svc.Handlers.Unmarshal.PushBackNamed(restxml.UnmarshalHandler)
svc.Handlers.UnmarshalMeta.PushBackNamed(restxml.UnmarshalMetaHandler)
svc.Handlers.UnmarshalError.PushBackNamed(restxml.UnmarshalErrorHandler)
return svc
}
// newRequest creates a new request for a InputService8ProtocolTest operation and runs any
// custom request initialization.
func (c *InputService8ProtocolTest) newRequest(op *request.Operation, params, data interface{}) *request.Request {
req := c.NewRequest(op, params, data)
return req
}
const opInputService8TestCaseOperation1 = "OperationName"
// InputService8TestCaseOperation1Request generates a "aws/request.Request" representing the
// client's request for the InputService8TestCaseOperation1 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 InputService8TestCaseOperation1 for more information on using the InputService8TestCaseOperation1
// 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 InputService8TestCaseOperation1Request method.
// req, resp := client.InputService8TestCaseOperation1Request(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
func (c *InputService8ProtocolTest) InputService8TestCaseOperation1Request(input *InputService8TestShapeInputService8TestCaseOperation1Input) (req *request.Request, output *InputService8TestShapeInputService8TestCaseOperation1Output) {
op := &request.Operation{
Name: opInputService8TestCaseOperation1,
HTTPMethod: "POST",
HTTPPath: "/2014-01-01/hostedzone",
}
if input == nil {
input = &InputService8TestShapeInputService8TestCaseOperation1Input{}
}
output = &InputService8TestShapeInputService8TestCaseOperation1Output{}
req = c.newRequest(op, input, output)
req.Handlers.Unmarshal.Swap(restxml.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
return
}
// InputService8TestCaseOperation1 API operation for .
//
// 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 's
// API operation InputService8TestCaseOperation1 for usage and error information.
func (c *InputService8ProtocolTest) InputService8TestCaseOperation1(input *InputService8TestShapeInputService8TestCaseOperation1Input) (*InputService8TestShapeInputService8TestCaseOperation1Output, error) {
req, out := c.InputService8TestCaseOperation1Request(input)
return out, req.Send()
}
// InputService8TestCaseOperation1WithContext is the same as InputService8TestCaseOperation1 with the addition of
// the ability to pass a context and additional request options.
//
// See InputService8TestCaseOperation1 for details on how to use this API operation.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
func (c *InputService8ProtocolTest) InputService8TestCaseOperation1WithContext(ctx aws.Context, input *InputService8TestShapeInputService8TestCaseOperation1Input, opts ...request.Option) (*InputService8TestShapeInputService8TestCaseOperation1Output, error) {
req, out := c.InputService8TestCaseOperation1Request(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
type InputService8TestShapeInputService8TestCaseOperation1Input struct {
_ struct{} `locationName:"OperationRequest" type:"structure" xmlURI:"https://foo/"`
ListParam []*string `locationName:"item" type:"list" flattened:"true"`
}
// SetListParam sets the ListParam field's value.
func (s *InputService8TestShapeInputService8TestCaseOperation1Input) SetListParam(v []*string) *InputService8TestShapeInputService8TestCaseOperation1Input {
s.ListParam = v
return s
}
type InputService8TestShapeInputService8TestCaseOperation1Output struct {
_ struct{} `type:"structure"`
}
// InputService9ProtocolTest provides the API operation methods for making requests to
// . See this package's package overview docs
// for details on the service.
//
// InputService9ProtocolTest methods are safe to use concurrently. It is not safe to
// modify mutate any of the struct's properties though.
type InputService9ProtocolTest struct {
*client.Client
}
// New creates a new instance of the InputService9ProtocolTest 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 InputService9ProtocolTest client from just a session.
// svc := inputservice9protocoltest.New(mySession)
//
// // Create a InputService9ProtocolTest client with additional configuration
// svc := inputservice9protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2"))
func NewInputService9ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *InputService9ProtocolTest {
c := p.ClientConfig("inputservice9protocoltest", cfgs...)
return newInputService9ProtocolTestClient(*c.Config, c.Handlers, c.PartitionID, c.Endpoint, c.SigningRegion, c.SigningName)
}
// newClient creates, initializes and returns a new service client instance.
func newInputService9ProtocolTestClient(cfg aws.Config, handlers request.Handlers, partitionID, endpoint, signingRegion, signingName string) *InputService9ProtocolTest {
svc := &InputService9ProtocolTest{
Client: client.New(
cfg,
metadata.ClientInfo{
ServiceName: "InputService9ProtocolTest",
ServiceID: "InputService9ProtocolTest",
SigningName: signingName,
SigningRegion: signingRegion,
PartitionID: partitionID,
Endpoint: endpoint,
APIVersion: "2014-01-01",
},
handlers,
),
}
// Handlers
svc.Handlers.Sign.PushBackNamed(v4.SignRequestHandler)
svc.Handlers.Build.PushBackNamed(restxml.BuildHandler)
svc.Handlers.Unmarshal.PushBackNamed(restxml.UnmarshalHandler)
svc.Handlers.UnmarshalMeta.PushBackNamed(restxml.UnmarshalMetaHandler)
svc.Handlers.UnmarshalError.PushBackNamed(restxml.UnmarshalErrorHandler)
return svc
}
// newRequest creates a new request for a InputService9ProtocolTest operation and runs any
// custom request initialization.
func (c *InputService9ProtocolTest) newRequest(op *request.Operation, params, data interface{}) *request.Request {
req := c.NewRequest(op, params, data)
return req
}
const opInputService9TestCaseOperation1 = "OperationName"
// InputService9TestCaseOperation1Request generates a "aws/request.Request" representing the
// client's request for the InputService9TestCaseOperation1 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 InputService9TestCaseOperation1 for more information on using the InputService9TestCaseOperation1
// 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 InputService9TestCaseOperation1Request method.
// req, resp := client.InputService9TestCaseOperation1Request(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
func (c *InputService9ProtocolTest) InputService9TestCaseOperation1Request(input *InputService9TestShapeInputService9TestCaseOperation1Input) (req *request.Request, output *InputService9TestShapeInputService9TestCaseOperation1Output) {
op := &request.Operation{
Name: opInputService9TestCaseOperation1,
HTTPMethod: "POST",
HTTPPath: "/2014-01-01/hostedzone",
}
if input == nil {
input = &InputService9TestShapeInputService9TestCaseOperation1Input{}
}
output = &InputService9TestShapeInputService9TestCaseOperation1Output{}
req = c.newRequest(op, input, output)
req.Handlers.Unmarshal.Swap(restxml.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
return
}
// InputService9TestCaseOperation1 API operation for .
//
// 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 's
// API operation InputService9TestCaseOperation1 for usage and error information.
func (c *InputService9ProtocolTest) InputService9TestCaseOperation1(input *InputService9TestShapeInputService9TestCaseOperation1Input) (*InputService9TestShapeInputService9TestCaseOperation1Output, error) {
req, out := c.InputService9TestCaseOperation1Request(input)
return out, req.Send()
}
// InputService9TestCaseOperation1WithContext is the same as InputService9TestCaseOperation1 with the addition of
// the ability to pass a context and additional request options.
//
// See InputService9TestCaseOperation1 for details on how to use this API operation.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
func (c *InputService9ProtocolTest) InputService9TestCaseOperation1WithContext(ctx aws.Context, input *InputService9TestShapeInputService9TestCaseOperation1Input, opts ...request.Option) (*InputService9TestShapeInputService9TestCaseOperation1Output, error) {
req, out := c.InputService9TestCaseOperation1Request(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
type InputService9TestShapeInputService9TestCaseOperation1Input struct {
_ struct{} `locationName:"OperationRequest" type:"structure" xmlURI:"https://foo/"`
ListParam []*InputService9TestShapeSingleFieldStruct `locationName:"item" type:"list" flattened:"true"`
}
// SetListParam sets the ListParam field's value.
func (s *InputService9TestShapeInputService9TestCaseOperation1Input) SetListParam(v []*InputService9TestShapeSingleFieldStruct) *InputService9TestShapeInputService9TestCaseOperation1Input {
s.ListParam = v
return s
}
type InputService9TestShapeInputService9TestCaseOperation1Output struct {
_ struct{} `type:"structure"`
}
type InputService9TestShapeSingleFieldStruct struct {
_ struct{} `type:"structure"`
Element *string `locationName:"value" type:"string"`
}
// SetElement sets the Element field's value.
func (s *InputService9TestShapeSingleFieldStruct) SetElement(v string) *InputService9TestShapeSingleFieldStruct {
s.Element = &v
return s
}
// InputService10ProtocolTest provides the API operation methods for making requests to
// . See this package's package overview docs
// for details on the service.
//
// InputService10ProtocolTest methods are safe to use concurrently. It is not safe to
// modify mutate any of the struct's properties though.
type InputService10ProtocolTest struct {
*client.Client
}
// New creates a new instance of the InputService10ProtocolTest 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 InputService10ProtocolTest client from just a session.
// svc := inputservice10protocoltest.New(mySession)
//
// // Create a InputService10ProtocolTest client with additional configuration
// svc := inputservice10protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2"))
func NewInputService10ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *InputService10ProtocolTest {
c := p.ClientConfig("inputservice10protocoltest", cfgs...)
return newInputService10ProtocolTestClient(*c.Config, c.Handlers, c.PartitionID, c.Endpoint, c.SigningRegion, c.SigningName)
}
// newClient creates, initializes and returns a new service client instance.
func newInputService10ProtocolTestClient(cfg aws.Config, handlers request.Handlers, partitionID, endpoint, signingRegion, signingName string) *InputService10ProtocolTest {
svc := &InputService10ProtocolTest{
Client: client.New(
cfg,
metadata.ClientInfo{
ServiceName: "InputService10ProtocolTest",
ServiceID: "InputService10ProtocolTest",
SigningName: signingName,
SigningRegion: signingRegion,
PartitionID: partitionID,
Endpoint: endpoint,
APIVersion: "2014-01-01",
},
handlers,
),
}
// Handlers
svc.Handlers.Sign.PushBackNamed(v4.SignRequestHandler)
svc.Handlers.Build.PushBackNamed(restxml.BuildHandler)
svc.Handlers.Unmarshal.PushBackNamed(restxml.UnmarshalHandler)
svc.Handlers.UnmarshalMeta.PushBackNamed(restxml.UnmarshalMetaHandler)
svc.Handlers.UnmarshalError.PushBackNamed(restxml.UnmarshalErrorHandler)
return svc
}
// newRequest creates a new request for a InputService10ProtocolTest operation and runs any
// custom request initialization.
func (c *InputService10ProtocolTest) newRequest(op *request.Operation, params, data interface{}) *request.Request {
req := c.NewRequest(op, params, data)
return req
}
const opInputService10TestCaseOperation1 = "OperationName"
// InputService10TestCaseOperation1Request generates a "aws/request.Request" representing the
// client's request for the InputService10TestCaseOperation1 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 InputService10TestCaseOperation1 for more information on using the InputService10TestCaseOperation1
// 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 InputService10TestCaseOperation1Request method.
// req, resp := client.InputService10TestCaseOperation1Request(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
func (c *InputService10ProtocolTest) InputService10TestCaseOperation1Request(input *InputService10TestShapeInputService10TestCaseOperation1Input) (req *request.Request, output *InputService10TestShapeInputService10TestCaseOperation1Output) {
op := &request.Operation{
Name: opInputService10TestCaseOperation1,
HTTPMethod: "POST",
HTTPPath: "/2014-01-01/hostedzone",
}
if input == nil {
input = &InputService10TestShapeInputService10TestCaseOperation1Input{}
}
output = &InputService10TestShapeInputService10TestCaseOperation1Output{}
req = c.newRequest(op, input, output)
req.Handlers.Unmarshal.Swap(restxml.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
return
}
// InputService10TestCaseOperation1 API operation for .
//
// 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 's
// API operation InputService10TestCaseOperation1 for usage and error information.
func (c *InputService10ProtocolTest) InputService10TestCaseOperation1(input *InputService10TestShapeInputService10TestCaseOperation1Input) (*InputService10TestShapeInputService10TestCaseOperation1Output, error) {
req, out := c.InputService10TestCaseOperation1Request(input)
return out, req.Send()
}
// InputService10TestCaseOperation1WithContext is the same as InputService10TestCaseOperation1 with the addition of
// the ability to pass a context and additional request options.
//
// See InputService10TestCaseOperation1 for details on how to use this API operation.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
func (c *InputService10ProtocolTest) InputService10TestCaseOperation1WithContext(ctx aws.Context, input *InputService10TestShapeInputService10TestCaseOperation1Input, opts ...request.Option) (*InputService10TestShapeInputService10TestCaseOperation1Output, error) {
req, out := c.InputService10TestCaseOperation1Request(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
type InputService10TestShapeInputService10TestCaseOperation1Input struct {
_ struct{} `locationName:"OperationRequest" type:"structure" xmlURI:"https://foo/"`
StructureParam *InputService10TestShapeStructureShape `type:"structure"`
}
// SetStructureParam sets the StructureParam field's value.
func (s *InputService10TestShapeInputService10TestCaseOperation1Input) SetStructureParam(v *InputService10TestShapeStructureShape) *InputService10TestShapeInputService10TestCaseOperation1Input {
s.StructureParam = v
return s
}
type InputService10TestShapeInputService10TestCaseOperation1Output struct {
_ struct{} `type:"structure"`
}
type InputService10TestShapeStructureShape struct {
_ struct{} `type:"structure"`
// B is automatically base64 encoded/decoded by the SDK.
B []byte `locationName:"b" type:"blob"`
}
// SetB sets the B field's value.
func (s *InputService10TestShapeStructureShape) SetB(v []byte) *InputService10TestShapeStructureShape {
s.B = v
return s
}
// InputService11ProtocolTest provides the API operation methods for making requests to
// . See this package's package overview docs
// for details on the service.
//
// InputService11ProtocolTest methods are safe to use concurrently. It is not safe to
// modify mutate any of the struct's properties though.
type InputService11ProtocolTest struct {
*client.Client
}
// New creates a new instance of the InputService11ProtocolTest 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 InputService11ProtocolTest client from just a session.
// svc := inputservice11protocoltest.New(mySession)
//
// // Create a InputService11ProtocolTest client with additional configuration
// svc := inputservice11protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2"))
func NewInputService11ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *InputService11ProtocolTest {
c := p.ClientConfig("inputservice11protocoltest", cfgs...)
return newInputService11ProtocolTestClient(*c.Config, c.Handlers, c.PartitionID, c.Endpoint, c.SigningRegion, c.SigningName)
}
// newClient creates, initializes and returns a new service client instance.
func newInputService11ProtocolTestClient(cfg aws.Config, handlers request.Handlers, partitionID, endpoint, signingRegion, signingName string) *InputService11ProtocolTest {
svc := &InputService11ProtocolTest{
Client: client.New(
cfg,
metadata.ClientInfo{
ServiceName: "InputService11ProtocolTest",
ServiceID: "InputService11ProtocolTest",
SigningName: signingName,
SigningRegion: signingRegion,
PartitionID: partitionID,
Endpoint: endpoint,
APIVersion: "2014-01-01",
},
handlers,
),
}
// Handlers
svc.Handlers.Sign.PushBackNamed(v4.SignRequestHandler)
svc.Handlers.Build.PushBackNamed(restxml.BuildHandler)
svc.Handlers.Unmarshal.PushBackNamed(restxml.UnmarshalHandler)
svc.Handlers.UnmarshalMeta.PushBackNamed(restxml.UnmarshalMetaHandler)
svc.Handlers.UnmarshalError.PushBackNamed(restxml.UnmarshalErrorHandler)
return svc
}
// newRequest creates a new request for a InputService11ProtocolTest operation and runs any
// custom request initialization.
func (c *InputService11ProtocolTest) newRequest(op *request.Operation, params, data interface{}) *request.Request {
req := c.NewRequest(op, params, data)
return req
}
const opInputService11TestCaseOperation1 = "OperationName"
// InputService11TestCaseOperation1Request generates a "aws/request.Request" representing the
// client's request for the InputService11TestCaseOperation1 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 InputService11TestCaseOperation1 for more information on using the InputService11TestCaseOperation1
// 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 InputService11TestCaseOperation1Request method.
// req, resp := client.InputService11TestCaseOperation1Request(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
func (c *InputService11ProtocolTest) InputService11TestCaseOperation1Request(input *InputService11TestShapeInputService11TestCaseOperation1Input) (req *request.Request, output *InputService11TestShapeInputService11TestCaseOperation1Output) {
op := &request.Operation{
Name: opInputService11TestCaseOperation1,
HTTPMethod: "POST",
HTTPPath: "/2014-01-01/hostedzone",
}
if input == nil {
input = &InputService11TestShapeInputService11TestCaseOperation1Input{}
}
output = &InputService11TestShapeInputService11TestCaseOperation1Output{}
req = c.newRequest(op, input, output)
req.Handlers.Unmarshal.Swap(restxml.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
return
}
// InputService11TestCaseOperation1 API operation for .
//
// 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 's
// API operation InputService11TestCaseOperation1 for usage and error information.
func (c *InputService11ProtocolTest) InputService11TestCaseOperation1(input *InputService11TestShapeInputService11TestCaseOperation1Input) (*InputService11TestShapeInputService11TestCaseOperation1Output, error) {
req, out := c.InputService11TestCaseOperation1Request(input)
return out, req.Send()
}
// InputService11TestCaseOperation1WithContext is the same as InputService11TestCaseOperation1 with the addition of
// the ability to pass a context and additional request options.
//
// See InputService11TestCaseOperation1 for details on how to use this API operation.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
func (c *InputService11ProtocolTest) InputService11TestCaseOperation1WithContext(ctx aws.Context, input *InputService11TestShapeInputService11TestCaseOperation1Input, opts ...request.Option) (*InputService11TestShapeInputService11TestCaseOperation1Output, error) {
req, out := c.InputService11TestCaseOperation1Request(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
type InputService11TestShapeInputService11TestCaseOperation1Input struct {
_ struct{} `locationName:"TimestampStructure" type:"structure" xmlURI:"https://foo/"`
TimeArg *time.Time `type:"timestamp"`
TimeArgInHeader *time.Time `location:"header" locationName:"x-amz-timearg" type:"timestamp"`
TimeArgInQuery *time.Time `location:"querystring" locationName:"TimeQuery" type:"timestamp"`
TimeCustom *time.Time `type:"timestamp" timestampFormat:"rfc822"`
TimeCustomInHeader *time.Time `location:"header" locationName:"x-amz-timecustom-header" type:"timestamp" timestampFormat:"unixTimestamp"`
TimeCustomInQuery *time.Time `location:"querystring" locationName:"TimeCustomQuery" type:"timestamp" timestampFormat:"unixTimestamp"`
TimeFormat *time.Time `type:"timestamp" timestampFormat:"rfc822"`
TimeFormatInHeader *time.Time `location:"header" locationName:"x-amz-timeformat-header" type:"timestamp" timestampFormat:"unixTimestamp"`
TimeFormatInQuery *time.Time `location:"querystring" locationName:"TimeFormatQuery" type:"timestamp" timestampFormat:"unixTimestamp"`
}
// SetTimeArg sets the TimeArg field's value.
func (s *InputService11TestShapeInputService11TestCaseOperation1Input) SetTimeArg(v time.Time) *InputService11TestShapeInputService11TestCaseOperation1Input {
s.TimeArg = &v
return s
}
// SetTimeArgInHeader sets the TimeArgInHeader field's value.
func (s *InputService11TestShapeInputService11TestCaseOperation1Input) SetTimeArgInHeader(v time.Time) *InputService11TestShapeInputService11TestCaseOperation1Input {
s.TimeArgInHeader = &v
return s
}
// SetTimeArgInQuery sets the TimeArgInQuery field's value.
func (s *InputService11TestShapeInputService11TestCaseOperation1Input) SetTimeArgInQuery(v time.Time) *InputService11TestShapeInputService11TestCaseOperation1Input {
s.TimeArgInQuery = &v
return s
}
// SetTimeCustom sets the TimeCustom field's value.
func (s *InputService11TestShapeInputService11TestCaseOperation1Input) SetTimeCustom(v time.Time) *InputService11TestShapeInputService11TestCaseOperation1Input {
s.TimeCustom = &v
return s
}
// SetTimeCustomInHeader sets the TimeCustomInHeader field's value.
func (s *InputService11TestShapeInputService11TestCaseOperation1Input) SetTimeCustomInHeader(v time.Time) *InputService11TestShapeInputService11TestCaseOperation1Input {
s.TimeCustomInHeader = &v
return s
}
// SetTimeCustomInQuery sets the TimeCustomInQuery field's value.
func (s *InputService11TestShapeInputService11TestCaseOperation1Input) SetTimeCustomInQuery(v time.Time) *InputService11TestShapeInputService11TestCaseOperation1Input {
s.TimeCustomInQuery = &v
return s
}
// SetTimeFormat sets the TimeFormat field's value.
func (s *InputService11TestShapeInputService11TestCaseOperation1Input) SetTimeFormat(v time.Time) *InputService11TestShapeInputService11TestCaseOperation1Input {
s.TimeFormat = &v
return s
}
// SetTimeFormatInHeader sets the TimeFormatInHeader field's value.
func (s *InputService11TestShapeInputService11TestCaseOperation1Input) SetTimeFormatInHeader(v time.Time) *InputService11TestShapeInputService11TestCaseOperation1Input {
s.TimeFormatInHeader = &v
return s
}
// SetTimeFormatInQuery sets the TimeFormatInQuery field's value.
func (s *InputService11TestShapeInputService11TestCaseOperation1Input) SetTimeFormatInQuery(v time.Time) *InputService11TestShapeInputService11TestCaseOperation1Input {
s.TimeFormatInQuery = &v
return s
}
type InputService11TestShapeInputService11TestCaseOperation1Output struct {
_ struct{} `type:"structure"`
}
// InputService12ProtocolTest provides the API operation methods for making requests to
// . See this package's package overview docs
// for details on the service.
//
// InputService12ProtocolTest methods are safe to use concurrently. It is not safe to
// modify mutate any of the struct's properties though.
type InputService12ProtocolTest struct {
*client.Client
}
// New creates a new instance of the InputService12ProtocolTest 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 InputService12ProtocolTest client from just a session.
// svc := inputservice12protocoltest.New(mySession)
//
// // Create a InputService12ProtocolTest client with additional configuration
// svc := inputservice12protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2"))
func NewInputService12ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *InputService12ProtocolTest {
c := p.ClientConfig("inputservice12protocoltest", cfgs...)
return newInputService12ProtocolTestClient(*c.Config, c.Handlers, c.PartitionID, c.Endpoint, c.SigningRegion, c.SigningName)
}
// newClient creates, initializes and returns a new service client instance.
func newInputService12ProtocolTestClient(cfg aws.Config, handlers request.Handlers, partitionID, endpoint, signingRegion, signingName string) *InputService12ProtocolTest {
svc := &InputService12ProtocolTest{
Client: client.New(
cfg,
metadata.ClientInfo{
ServiceName: "InputService12ProtocolTest",
ServiceID: "InputService12ProtocolTest",
SigningName: signingName,
SigningRegion: signingRegion,
PartitionID: partitionID,
Endpoint: endpoint,
APIVersion: "2014-01-01",
},
handlers,
),
}
// Handlers
svc.Handlers.Sign.PushBackNamed(v4.SignRequestHandler)
svc.Handlers.Build.PushBackNamed(restxml.BuildHandler)
svc.Handlers.Unmarshal.PushBackNamed(restxml.UnmarshalHandler)
svc.Handlers.UnmarshalMeta.PushBackNamed(restxml.UnmarshalMetaHandler)
svc.Handlers.UnmarshalError.PushBackNamed(restxml.UnmarshalErrorHandler)
return svc
}
// newRequest creates a new request for a InputService12ProtocolTest operation and runs any
// custom request initialization.
func (c *InputService12ProtocolTest) newRequest(op *request.Operation, params, data interface{}) *request.Request {
req := c.NewRequest(op, params, data)
return req
}
const opInputService12TestCaseOperation1 = "OperationName"
// InputService12TestCaseOperation1Request generates a "aws/request.Request" representing the
// client's request for the InputService12TestCaseOperation1 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 InputService12TestCaseOperation1 for more information on using the InputService12TestCaseOperation1
// 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 InputService12TestCaseOperation1Request method.
// req, resp := client.InputService12TestCaseOperation1Request(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
func (c *InputService12ProtocolTest) InputService12TestCaseOperation1Request(input *InputService12TestShapeInputService12TestCaseOperation1Input) (req *request.Request, output *InputService12TestShapeInputService12TestCaseOperation1Output) {
op := &request.Operation{
Name: opInputService12TestCaseOperation1,
HTTPMethod: "POST",
HTTPPath: "/",
}
if input == nil {
input = &InputService12TestShapeInputService12TestCaseOperation1Input{}
}
output = &InputService12TestShapeInputService12TestCaseOperation1Output{}
req = c.newRequest(op, input, output)
req.Handlers.Unmarshal.Swap(restxml.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
return
}
// InputService12TestCaseOperation1 API operation for .
//
// 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 's
// API operation InputService12TestCaseOperation1 for usage and error information.
func (c *InputService12ProtocolTest) InputService12TestCaseOperation1(input *InputService12TestShapeInputService12TestCaseOperation1Input) (*InputService12TestShapeInputService12TestCaseOperation1Output, error) {
req, out := c.InputService12TestCaseOperation1Request(input)
return out, req.Send()
}
// InputService12TestCaseOperation1WithContext is the same as InputService12TestCaseOperation1 with the addition of
// the ability to pass a context and additional request options.
//
// See InputService12TestCaseOperation1 for details on how to use this API operation.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
func (c *InputService12ProtocolTest) InputService12TestCaseOperation1WithContext(ctx aws.Context, input *InputService12TestShapeInputService12TestCaseOperation1Input, opts ...request.Option) (*InputService12TestShapeInputService12TestCaseOperation1Output, error) {
req, out := c.InputService12TestCaseOperation1Request(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
type InputService12TestShapeInputService12TestCaseOperation1Input struct {
_ struct{} `locationName:"OperationRequest" type:"structure" xmlURI:"https://foo/"`
Foo map[string]*string `location:"headers" locationName:"x-foo-" type:"map"`
}
// SetFoo sets the Foo field's value.
func (s *InputService12TestShapeInputService12TestCaseOperation1Input) SetFoo(v map[string]*string) *InputService12TestShapeInputService12TestCaseOperation1Input {
s.Foo = v
return s
}
type InputService12TestShapeInputService12TestCaseOperation1Output struct {
_ struct{} `type:"structure"`
}
// InputService13ProtocolTest provides the API operation methods for making requests to
// . See this package's package overview docs
// for details on the service.
//
// InputService13ProtocolTest methods are safe to use concurrently. It is not safe to
// modify mutate any of the struct's properties though.
type InputService13ProtocolTest struct {
*client.Client
}
// New creates a new instance of the InputService13ProtocolTest 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 InputService13ProtocolTest client from just a session.
// svc := inputservice13protocoltest.New(mySession)
//
// // Create a InputService13ProtocolTest client with additional configuration
// svc := inputservice13protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2"))
func NewInputService13ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *InputService13ProtocolTest {
c := p.ClientConfig("inputservice13protocoltest", cfgs...)
return newInputService13ProtocolTestClient(*c.Config, c.Handlers, c.PartitionID, c.Endpoint, c.SigningRegion, c.SigningName)
}
// newClient creates, initializes and returns a new service client instance.
func newInputService13ProtocolTestClient(cfg aws.Config, handlers request.Handlers, partitionID, endpoint, signingRegion, signingName string) *InputService13ProtocolTest {
svc := &InputService13ProtocolTest{
Client: client.New(
cfg,
metadata.ClientInfo{
ServiceName: "InputService13ProtocolTest",
ServiceID: "InputService13ProtocolTest",
SigningName: signingName,
SigningRegion: signingRegion,
PartitionID: partitionID,
Endpoint: endpoint,
APIVersion: "2014-01-01",
},
handlers,
),
}
// Handlers
svc.Handlers.Sign.PushBackNamed(v4.SignRequestHandler)
svc.Handlers.Build.PushBackNamed(restxml.BuildHandler)
svc.Handlers.Unmarshal.PushBackNamed(restxml.UnmarshalHandler)
svc.Handlers.UnmarshalMeta.PushBackNamed(restxml.UnmarshalMetaHandler)
svc.Handlers.UnmarshalError.PushBackNamed(restxml.UnmarshalErrorHandler)
return svc
}
// newRequest creates a new request for a InputService13ProtocolTest operation and runs any
// custom request initialization.
func (c *InputService13ProtocolTest) newRequest(op *request.Operation, params, data interface{}) *request.Request {
req := c.NewRequest(op, params, data)
return req
}
const opInputService13TestCaseOperation1 = "OperationName"
// InputService13TestCaseOperation1Request generates a "aws/request.Request" representing the
// client's request for the InputService13TestCaseOperation1 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 InputService13TestCaseOperation1 for more information on using the InputService13TestCaseOperation1
// 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 InputService13TestCaseOperation1Request method.
// req, resp := client.InputService13TestCaseOperation1Request(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
func (c *InputService13ProtocolTest) InputService13TestCaseOperation1Request(input *InputService13TestShapeInputService13TestCaseOperation1Input) (req *request.Request, output *InputService13TestShapeInputService13TestCaseOperation1Output) {
op := &request.Operation{
Name: opInputService13TestCaseOperation1,
HTTPMethod: "GET",
HTTPPath: "/path",
}
if input == nil {
input = &InputService13TestShapeInputService13TestCaseOperation1Input{}
}
output = &InputService13TestShapeInputService13TestCaseOperation1Output{}
req = c.newRequest(op, input, output)
req.Handlers.Unmarshal.Swap(restxml.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
return
}
// InputService13TestCaseOperation1 API operation for .
//
// 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 's
// API operation InputService13TestCaseOperation1 for usage and error information.
func (c *InputService13ProtocolTest) InputService13TestCaseOperation1(input *InputService13TestShapeInputService13TestCaseOperation1Input) (*InputService13TestShapeInputService13TestCaseOperation1Output, error) {
req, out := c.InputService13TestCaseOperation1Request(input)
return out, req.Send()
}
// InputService13TestCaseOperation1WithContext is the same as InputService13TestCaseOperation1 with the addition of
// the ability to pass a context and additional request options.
//
// See InputService13TestCaseOperation1 for details on how to use this API operation.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
func (c *InputService13ProtocolTest) InputService13TestCaseOperation1WithContext(ctx aws.Context, input *InputService13TestShapeInputService13TestCaseOperation1Input, opts ...request.Option) (*InputService13TestShapeInputService13TestCaseOperation1Output, error) {
req, out := c.InputService13TestCaseOperation1Request(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
type InputService13TestShapeInputService13TestCaseOperation1Input struct {
_ struct{} `locationName:"InputShape" type:"structure"`
Items []*string `location:"querystring" locationName:"item" type:"list"`
}
// SetItems sets the Items field's value.
func (s *InputService13TestShapeInputService13TestCaseOperation1Input) SetItems(v []*string) *InputService13TestShapeInputService13TestCaseOperation1Input {
s.Items = v
return s
}
type InputService13TestShapeInputService13TestCaseOperation1Output struct {
_ struct{} `type:"structure"`
}
// InputService14ProtocolTest provides the API operation methods for making requests to
// . See this package's package overview docs
// for details on the service.
//
// InputService14ProtocolTest methods are safe to use concurrently. It is not safe to
// modify mutate any of the struct's properties though.
type InputService14ProtocolTest struct {
*client.Client
}
// New creates a new instance of the InputService14ProtocolTest 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 InputService14ProtocolTest client from just a session.
// svc := inputservice14protocoltest.New(mySession)
//
// // Create a InputService14ProtocolTest client with additional configuration
// svc := inputservice14protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2"))
func NewInputService14ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *InputService14ProtocolTest {
c := p.ClientConfig("inputservice14protocoltest", cfgs...)
return newInputService14ProtocolTestClient(*c.Config, c.Handlers, c.PartitionID, c.Endpoint, c.SigningRegion, c.SigningName)
}
// newClient creates, initializes and returns a new service client instance.
func newInputService14ProtocolTestClient(cfg aws.Config, handlers request.Handlers, partitionID, endpoint, signingRegion, signingName string) *InputService14ProtocolTest {
svc := &InputService14ProtocolTest{
Client: client.New(
cfg,
metadata.ClientInfo{
ServiceName: "InputService14ProtocolTest",
ServiceID: "InputService14ProtocolTest",
SigningName: signingName,
SigningRegion: signingRegion,
PartitionID: partitionID,
Endpoint: endpoint,
APIVersion: "2014-01-01",
},
handlers,
),
}
// Handlers
svc.Handlers.Sign.PushBackNamed(v4.SignRequestHandler)
svc.Handlers.Build.PushBackNamed(restxml.BuildHandler)
svc.Handlers.Unmarshal.PushBackNamed(restxml.UnmarshalHandler)
svc.Handlers.UnmarshalMeta.PushBackNamed(restxml.UnmarshalMetaHandler)
svc.Handlers.UnmarshalError.PushBackNamed(restxml.UnmarshalErrorHandler)
return svc
}
// newRequest creates a new request for a InputService14ProtocolTest operation and runs any
// custom request initialization.
func (c *InputService14ProtocolTest) newRequest(op *request.Operation, params, data interface{}) *request.Request {
req := c.NewRequest(op, params, data)
return req
}
const opInputService14TestCaseOperation1 = "OperationName"
// InputService14TestCaseOperation1Request generates a "aws/request.Request" representing the
// client's request for the InputService14TestCaseOperation1 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 InputService14TestCaseOperation1 for more information on using the InputService14TestCaseOperation1
// 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 InputService14TestCaseOperation1Request method.
// req, resp := client.InputService14TestCaseOperation1Request(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
func (c *InputService14ProtocolTest) InputService14TestCaseOperation1Request(input *InputService14TestShapeInputService14TestCaseOperation1Input) (req *request.Request, output *InputService14TestShapeInputService14TestCaseOperation1Output) {
op := &request.Operation{
Name: opInputService14TestCaseOperation1,
HTTPMethod: "GET",
HTTPPath: "/2014-01-01/jobsByPipeline/{PipelineId}",
}
if input == nil {
input = &InputService14TestShapeInputService14TestCaseOperation1Input{}
}
output = &InputService14TestShapeInputService14TestCaseOperation1Output{}
req = c.newRequest(op, input, output)
req.Handlers.Unmarshal.Swap(restxml.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
return
}
// InputService14TestCaseOperation1 API operation for .
//
// 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 's
// API operation InputService14TestCaseOperation1 for usage and error information.
func (c *InputService14ProtocolTest) InputService14TestCaseOperation1(input *InputService14TestShapeInputService14TestCaseOperation1Input) (*InputService14TestShapeInputService14TestCaseOperation1Output, error) {
req, out := c.InputService14TestCaseOperation1Request(input)
return out, req.Send()
}
// InputService14TestCaseOperation1WithContext is the same as InputService14TestCaseOperation1 with the addition of
// the ability to pass a context and additional request options.
//
// See InputService14TestCaseOperation1 for details on how to use this API operation.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
func (c *InputService14ProtocolTest) InputService14TestCaseOperation1WithContext(ctx aws.Context, input *InputService14TestShapeInputService14TestCaseOperation1Input, opts ...request.Option) (*InputService14TestShapeInputService14TestCaseOperation1Output, error) {
req, out := c.InputService14TestCaseOperation1Request(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
type InputService14TestShapeInputService14TestCaseOperation1Input struct {
_ struct{} `locationName:"InputShape" type:"structure"`
// PipelineId is a required field
PipelineId *string `location:"uri" type:"string" required:"true"`
QueryDoc map[string]*string `location:"querystring" type:"map"`
}
// Validate inspects the fields of the type to determine if they are valid.
func (s *InputService14TestShapeInputService14TestCaseOperation1Input) Validate() error {
invalidParams := request.ErrInvalidParams{Context: "InputService14TestShapeInputService14TestCaseOperation1Input"}
if s.PipelineId == nil {
invalidParams.Add(request.NewErrParamRequired("PipelineId"))
}
if s.PipelineId != nil && len(*s.PipelineId) < 1 {
invalidParams.Add(request.NewErrParamMinLen("PipelineId", 1))
}
if invalidParams.Len() > 0 {
return invalidParams
}
return nil
}
// SetPipelineId sets the PipelineId field's value.
func (s *InputService14TestShapeInputService14TestCaseOperation1Input) SetPipelineId(v string) *InputService14TestShapeInputService14TestCaseOperation1Input {
s.PipelineId = &v
return s
}
// SetQueryDoc sets the QueryDoc field's value.
func (s *InputService14TestShapeInputService14TestCaseOperation1Input) SetQueryDoc(v map[string]*string) *InputService14TestShapeInputService14TestCaseOperation1Input {
s.QueryDoc = v
return s
}
type InputService14TestShapeInputService14TestCaseOperation1Output struct {
_ struct{} `type:"structure"`
}
// InputService15ProtocolTest provides the API operation methods for making requests to
// . See this package's package overview docs
// for details on the service.
//
// InputService15ProtocolTest methods are safe to use concurrently. It is not safe to
// modify mutate any of the struct's properties though.
type InputService15ProtocolTest struct {
*client.Client
}
// New creates a new instance of the InputService15ProtocolTest 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 InputService15ProtocolTest client from just a session.
// svc := inputservice15protocoltest.New(mySession)
//
// // Create a InputService15ProtocolTest client with additional configuration
// svc := inputservice15protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2"))
func NewInputService15ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *InputService15ProtocolTest {
c := p.ClientConfig("inputservice15protocoltest", cfgs...)
return newInputService15ProtocolTestClient(*c.Config, c.Handlers, c.PartitionID, c.Endpoint, c.SigningRegion, c.SigningName)
}
// newClient creates, initializes and returns a new service client instance.
func newInputService15ProtocolTestClient(cfg aws.Config, handlers request.Handlers, partitionID, endpoint, signingRegion, signingName string) *InputService15ProtocolTest {
svc := &InputService15ProtocolTest{
Client: client.New(
cfg,
metadata.ClientInfo{
ServiceName: "InputService15ProtocolTest",
ServiceID: "InputService15ProtocolTest",
SigningName: signingName,
SigningRegion: signingRegion,
PartitionID: partitionID,
Endpoint: endpoint,
APIVersion: "2014-01-01",
},
handlers,
),
}
// Handlers
svc.Handlers.Sign.PushBackNamed(v4.SignRequestHandler)
svc.Handlers.Build.PushBackNamed(restxml.BuildHandler)
svc.Handlers.Unmarshal.PushBackNamed(restxml.UnmarshalHandler)
svc.Handlers.UnmarshalMeta.PushBackNamed(restxml.UnmarshalMetaHandler)
svc.Handlers.UnmarshalError.PushBackNamed(restxml.UnmarshalErrorHandler)
return svc
}
// newRequest creates a new request for a InputService15ProtocolTest operation and runs any
// custom request initialization.
func (c *InputService15ProtocolTest) newRequest(op *request.Operation, params, data interface{}) *request.Request {
req := c.NewRequest(op, params, data)
return req
}
const opInputService15TestCaseOperation1 = "OperationName"
// InputService15TestCaseOperation1Request generates a "aws/request.Request" representing the
// client's request for the InputService15TestCaseOperation1 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 InputService15TestCaseOperation1 for more information on using the InputService15TestCaseOperation1
// 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 InputService15TestCaseOperation1Request method.
// req, resp := client.InputService15TestCaseOperation1Request(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
func (c *InputService15ProtocolTest) InputService15TestCaseOperation1Request(input *InputService15TestShapeInputService15TestCaseOperation1Input) (req *request.Request, output *InputService15TestShapeInputService15TestCaseOperation1Output) {
op := &request.Operation{
Name: opInputService15TestCaseOperation1,
HTTPMethod: "GET",
HTTPPath: "/2014-01-01/jobsByPipeline/{PipelineId}",
}
if input == nil {
input = &InputService15TestShapeInputService15TestCaseOperation1Input{}
}
output = &InputService15TestShapeInputService15TestCaseOperation1Output{}
req = c.newRequest(op, input, output)
req.Handlers.Unmarshal.Swap(restxml.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
return
}
// InputService15TestCaseOperation1 API operation for .
//
// 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 's
// API operation InputService15TestCaseOperation1 for usage and error information.
func (c *InputService15ProtocolTest) InputService15TestCaseOperation1(input *InputService15TestShapeInputService15TestCaseOperation1Input) (*InputService15TestShapeInputService15TestCaseOperation1Output, error) {
req, out := c.InputService15TestCaseOperation1Request(input)
return out, req.Send()
}
// InputService15TestCaseOperation1WithContext is the same as InputService15TestCaseOperation1 with the addition of
// the ability to pass a context and additional request options.
//
// See InputService15TestCaseOperation1 for details on how to use this API operation.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
func (c *InputService15ProtocolTest) InputService15TestCaseOperation1WithContext(ctx aws.Context, input *InputService15TestShapeInputService15TestCaseOperation1Input, opts ...request.Option) (*InputService15TestShapeInputService15TestCaseOperation1Output, error) {
req, out := c.InputService15TestCaseOperation1Request(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
type InputService15TestShapeInputService15TestCaseOperation1Input struct {
_ struct{} `locationName:"InputShape" type:"structure"`
// PipelineId is a required field
PipelineId *string `location:"uri" type:"string" required:"true"`
QueryDoc map[string][]*string `location:"querystring" type:"map"`
}
// Validate inspects the fields of the type to determine if they are valid.
func (s *InputService15TestShapeInputService15TestCaseOperation1Input) Validate() error {
invalidParams := request.ErrInvalidParams{Context: "InputService15TestShapeInputService15TestCaseOperation1Input"}
if s.PipelineId == nil {
invalidParams.Add(request.NewErrParamRequired("PipelineId"))
}
if s.PipelineId != nil && len(*s.PipelineId) < 1 {
invalidParams.Add(request.NewErrParamMinLen("PipelineId", 1))
}
if invalidParams.Len() > 0 {
return invalidParams
}
return nil
}
// SetPipelineId sets the PipelineId field's value.
func (s *InputService15TestShapeInputService15TestCaseOperation1Input) SetPipelineId(v string) *InputService15TestShapeInputService15TestCaseOperation1Input {
s.PipelineId = &v
return s
}
// SetQueryDoc sets the QueryDoc field's value.
func (s *InputService15TestShapeInputService15TestCaseOperation1Input) SetQueryDoc(v map[string][]*string) *InputService15TestShapeInputService15TestCaseOperation1Input {
s.QueryDoc = v
return s
}
type InputService15TestShapeInputService15TestCaseOperation1Output struct {
_ struct{} `type:"structure"`
}
// InputService16ProtocolTest provides the API operation methods for making requests to
// . See this package's package overview docs
// for details on the service.
//
// InputService16ProtocolTest methods are safe to use concurrently. It is not safe to
// modify mutate any of the struct's properties though.
type InputService16ProtocolTest struct {
*client.Client
}
// New creates a new instance of the InputService16ProtocolTest 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 InputService16ProtocolTest client from just a session.
// svc := inputservice16protocoltest.New(mySession)
//
// // Create a InputService16ProtocolTest client with additional configuration
// svc := inputservice16protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2"))
func NewInputService16ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *InputService16ProtocolTest {
c := p.ClientConfig("inputservice16protocoltest", cfgs...)
return newInputService16ProtocolTestClient(*c.Config, c.Handlers, c.PartitionID, c.Endpoint, c.SigningRegion, c.SigningName)
}
// newClient creates, initializes and returns a new service client instance.
func newInputService16ProtocolTestClient(cfg aws.Config, handlers request.Handlers, partitionID, endpoint, signingRegion, signingName string) *InputService16ProtocolTest {
svc := &InputService16ProtocolTest{
Client: client.New(
cfg,
metadata.ClientInfo{
ServiceName: "InputService16ProtocolTest",
ServiceID: "InputService16ProtocolTest",
SigningName: signingName,
SigningRegion: signingRegion,
PartitionID: partitionID,
Endpoint: endpoint,
APIVersion: "2014-01-01",
},
handlers,
),
}
// Handlers
svc.Handlers.Sign.PushBackNamed(v4.SignRequestHandler)
svc.Handlers.Build.PushBackNamed(restxml.BuildHandler)
svc.Handlers.Unmarshal.PushBackNamed(restxml.UnmarshalHandler)
svc.Handlers.UnmarshalMeta.PushBackNamed(restxml.UnmarshalMetaHandler)
svc.Handlers.UnmarshalError.PushBackNamed(restxml.UnmarshalErrorHandler)
return svc
}
// newRequest creates a new request for a InputService16ProtocolTest operation and runs any
// custom request initialization.
func (c *InputService16ProtocolTest) newRequest(op *request.Operation, params, data interface{}) *request.Request {
req := c.NewRequest(op, params, data)
return req
}
const opInputService16TestCaseOperation1 = "OperationName"
// InputService16TestCaseOperation1Request generates a "aws/request.Request" representing the
// client's request for the InputService16TestCaseOperation1 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 InputService16TestCaseOperation1 for more information on using the InputService16TestCaseOperation1
// 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 InputService16TestCaseOperation1Request method.
// req, resp := client.InputService16TestCaseOperation1Request(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
func (c *InputService16ProtocolTest) InputService16TestCaseOperation1Request(input *InputService16TestShapeInputService16TestCaseOperation1Input) (req *request.Request, output *InputService16TestShapeInputService16TestCaseOperation1Output) {
op := &request.Operation{
Name: opInputService16TestCaseOperation1,
HTTPMethod: "GET",
HTTPPath: "/path",
}
if input == nil {
input = &InputService16TestShapeInputService16TestCaseOperation1Input{}
}
output = &InputService16TestShapeInputService16TestCaseOperation1Output{}
req = c.newRequest(op, input, output)
req.Handlers.Unmarshal.Swap(restxml.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
return
}
// InputService16TestCaseOperation1 API operation for .
//
// 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 's
// API operation InputService16TestCaseOperation1 for usage and error information.
func (c *InputService16ProtocolTest) InputService16TestCaseOperation1(input *InputService16TestShapeInputService16TestCaseOperation1Input) (*InputService16TestShapeInputService16TestCaseOperation1Output, error) {
req, out := c.InputService16TestCaseOperation1Request(input)
return out, req.Send()
}
// InputService16TestCaseOperation1WithContext is the same as InputService16TestCaseOperation1 with the addition of
// the ability to pass a context and additional request options.
//
// See InputService16TestCaseOperation1 for details on how to use this API operation.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
func (c *InputService16ProtocolTest) InputService16TestCaseOperation1WithContext(ctx aws.Context, input *InputService16TestShapeInputService16TestCaseOperation1Input, opts ...request.Option) (*InputService16TestShapeInputService16TestCaseOperation1Output, error) {
req, out := c.InputService16TestCaseOperation1Request(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
const opInputService16TestCaseOperation2 = "OperationName"
// InputService16TestCaseOperation2Request generates a "aws/request.Request" representing the
// client's request for the InputService16TestCaseOperation2 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 InputService16TestCaseOperation2 for more information on using the InputService16TestCaseOperation2
// 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 InputService16TestCaseOperation2Request method.
// req, resp := client.InputService16TestCaseOperation2Request(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
func (c *InputService16ProtocolTest) InputService16TestCaseOperation2Request(input *InputService16TestShapeInputService16TestCaseOperation2Input) (req *request.Request, output *InputService16TestShapeInputService16TestCaseOperation2Output) {
op := &request.Operation{
Name: opInputService16TestCaseOperation2,
HTTPMethod: "GET",
HTTPPath: "/path",
}
if input == nil {
input = &InputService16TestShapeInputService16TestCaseOperation2Input{}
}
output = &InputService16TestShapeInputService16TestCaseOperation2Output{}
req = c.newRequest(op, input, output)
req.Handlers.Unmarshal.Swap(restxml.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
return
}
// InputService16TestCaseOperation2 API operation for .
//
// 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 's
// API operation InputService16TestCaseOperation2 for usage and error information.
func (c *InputService16ProtocolTest) InputService16TestCaseOperation2(input *InputService16TestShapeInputService16TestCaseOperation2Input) (*InputService16TestShapeInputService16TestCaseOperation2Output, error) {
req, out := c.InputService16TestCaseOperation2Request(input)
return out, req.Send()
}
// InputService16TestCaseOperation2WithContext is the same as InputService16TestCaseOperation2 with the addition of
// the ability to pass a context and additional request options.
//
// See InputService16TestCaseOperation2 for details on how to use this API operation.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
func (c *InputService16ProtocolTest) InputService16TestCaseOperation2WithContext(ctx aws.Context, input *InputService16TestShapeInputService16TestCaseOperation2Input, opts ...request.Option) (*InputService16TestShapeInputService16TestCaseOperation2Output, error) {
req, out := c.InputService16TestCaseOperation2Request(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
type InputService16TestShapeInputService16TestCaseOperation1Input struct {
_ struct{} `locationName:"InputShape" type:"structure"`
BoolQuery *bool `location:"querystring" locationName:"bool-query" type:"boolean"`
}
// SetBoolQuery sets the BoolQuery field's value.
func (s *InputService16TestShapeInputService16TestCaseOperation1Input) SetBoolQuery(v bool) *InputService16TestShapeInputService16TestCaseOperation1Input {
s.BoolQuery = &v
return s
}
type InputService16TestShapeInputService16TestCaseOperation1Output struct {
_ struct{} `type:"structure"`
}
type InputService16TestShapeInputService16TestCaseOperation2Input struct {
_ struct{} `locationName:"InputShape" type:"structure"`
BoolQuery *bool `location:"querystring" locationName:"bool-query" type:"boolean"`
}
// SetBoolQuery sets the BoolQuery field's value.
func (s *InputService16TestShapeInputService16TestCaseOperation2Input) SetBoolQuery(v bool) *InputService16TestShapeInputService16TestCaseOperation2Input {
s.BoolQuery = &v
return s
}
type InputService16TestShapeInputService16TestCaseOperation2Output struct {
_ struct{} `type:"structure"`
}
// InputService17ProtocolTest provides the API operation methods for making requests to
// . See this package's package overview docs
// for details on the service.
//
// InputService17ProtocolTest methods are safe to use concurrently. It is not safe to
// modify mutate any of the struct's properties though.
type InputService17ProtocolTest struct {
*client.Client
}
// New creates a new instance of the InputService17ProtocolTest 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 InputService17ProtocolTest client from just a session.
// svc := inputservice17protocoltest.New(mySession)
//
// // Create a InputService17ProtocolTest client with additional configuration
// svc := inputservice17protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2"))
func NewInputService17ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *InputService17ProtocolTest {
c := p.ClientConfig("inputservice17protocoltest", cfgs...)
return newInputService17ProtocolTestClient(*c.Config, c.Handlers, c.PartitionID, c.Endpoint, c.SigningRegion, c.SigningName)
}
// newClient creates, initializes and returns a new service client instance.
func newInputService17ProtocolTestClient(cfg aws.Config, handlers request.Handlers, partitionID, endpoint, signingRegion, signingName string) *InputService17ProtocolTest {
svc := &InputService17ProtocolTest{
Client: client.New(
cfg,
metadata.ClientInfo{
ServiceName: "InputService17ProtocolTest",
ServiceID: "InputService17ProtocolTest",
SigningName: signingName,
SigningRegion: signingRegion,
PartitionID: partitionID,
Endpoint: endpoint,
APIVersion: "2014-01-01",
},
handlers,
),
}
// Handlers
svc.Handlers.Sign.PushBackNamed(v4.SignRequestHandler)
svc.Handlers.Build.PushBackNamed(restxml.BuildHandler)
svc.Handlers.Unmarshal.PushBackNamed(restxml.UnmarshalHandler)
svc.Handlers.UnmarshalMeta.PushBackNamed(restxml.UnmarshalMetaHandler)
svc.Handlers.UnmarshalError.PushBackNamed(restxml.UnmarshalErrorHandler)
return svc
}
// newRequest creates a new request for a InputService17ProtocolTest operation and runs any
// custom request initialization.
func (c *InputService17ProtocolTest) newRequest(op *request.Operation, params, data interface{}) *request.Request {
req := c.NewRequest(op, params, data)
return req
}
const opInputService17TestCaseOperation1 = "OperationName"
// InputService17TestCaseOperation1Request generates a "aws/request.Request" representing the
// client's request for the InputService17TestCaseOperation1 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 InputService17TestCaseOperation1 for more information on using the InputService17TestCaseOperation1
// 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 InputService17TestCaseOperation1Request method.
// req, resp := client.InputService17TestCaseOperation1Request(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
func (c *InputService17ProtocolTest) InputService17TestCaseOperation1Request(input *InputService17TestShapeInputService17TestCaseOperation1Input) (req *request.Request, output *InputService17TestShapeInputService17TestCaseOperation1Output) {
op := &request.Operation{
Name: opInputService17TestCaseOperation1,
HTTPMethod: "POST",
HTTPPath: "/",
}
if input == nil {
input = &InputService17TestShapeInputService17TestCaseOperation1Input{}
}
output = &InputService17TestShapeInputService17TestCaseOperation1Output{}
req = c.newRequest(op, input, output)
req.Handlers.Unmarshal.Swap(restxml.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
return
}
// InputService17TestCaseOperation1 API operation for .
//
// 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 's
// API operation InputService17TestCaseOperation1 for usage and error information.
func (c *InputService17ProtocolTest) InputService17TestCaseOperation1(input *InputService17TestShapeInputService17TestCaseOperation1Input) (*InputService17TestShapeInputService17TestCaseOperation1Output, error) {
req, out := c.InputService17TestCaseOperation1Request(input)
return out, req.Send()
}
// InputService17TestCaseOperation1WithContext is the same as InputService17TestCaseOperation1 with the addition of
// the ability to pass a context and additional request options.
//
// See InputService17TestCaseOperation1 for details on how to use this API operation.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
func (c *InputService17ProtocolTest) InputService17TestCaseOperation1WithContext(ctx aws.Context, input *InputService17TestShapeInputService17TestCaseOperation1Input, opts ...request.Option) (*InputService17TestShapeInputService17TestCaseOperation1Output, error) {
req, out := c.InputService17TestCaseOperation1Request(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
type InputService17TestShapeInputService17TestCaseOperation1Input struct {
_ struct{} `locationName:"InputShape" type:"structure" payload:"Foo"`
Foo *string `locationName:"foo" type:"string"`
}
// SetFoo sets the Foo field's value.
func (s *InputService17TestShapeInputService17TestCaseOperation1Input) SetFoo(v string) *InputService17TestShapeInputService17TestCaseOperation1Input {
s.Foo = &v
return s
}
type InputService17TestShapeInputService17TestCaseOperation1Output struct {
_ struct{} `type:"structure"`
}
// InputService18ProtocolTest provides the API operation methods for making requests to
// . See this package's package overview docs
// for details on the service.
//
// InputService18ProtocolTest methods are safe to use concurrently. It is not safe to
// modify mutate any of the struct's properties though.
type InputService18ProtocolTest struct {
*client.Client
}
// New creates a new instance of the InputService18ProtocolTest 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 InputService18ProtocolTest client from just a session.
// svc := inputservice18protocoltest.New(mySession)
//
// // Create a InputService18ProtocolTest client with additional configuration
// svc := inputservice18protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2"))
func NewInputService18ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *InputService18ProtocolTest {
c := p.ClientConfig("inputservice18protocoltest", cfgs...)
return newInputService18ProtocolTestClient(*c.Config, c.Handlers, c.PartitionID, c.Endpoint, c.SigningRegion, c.SigningName)
}
// newClient creates, initializes and returns a new service client instance.
func newInputService18ProtocolTestClient(cfg aws.Config, handlers request.Handlers, partitionID, endpoint, signingRegion, signingName string) *InputService18ProtocolTest {
svc := &InputService18ProtocolTest{
Client: client.New(
cfg,
metadata.ClientInfo{
ServiceName: "InputService18ProtocolTest",
ServiceID: "InputService18ProtocolTest",
SigningName: signingName,
SigningRegion: signingRegion,
PartitionID: partitionID,
Endpoint: endpoint,
APIVersion: "2014-01-01",
},
handlers,
),
}
// Handlers
svc.Handlers.Sign.PushBackNamed(v4.SignRequestHandler)
svc.Handlers.Build.PushBackNamed(restxml.BuildHandler)
svc.Handlers.Unmarshal.PushBackNamed(restxml.UnmarshalHandler)
svc.Handlers.UnmarshalMeta.PushBackNamed(restxml.UnmarshalMetaHandler)
svc.Handlers.UnmarshalError.PushBackNamed(restxml.UnmarshalErrorHandler)
return svc
}
// newRequest creates a new request for a InputService18ProtocolTest operation and runs any
// custom request initialization.
func (c *InputService18ProtocolTest) newRequest(op *request.Operation, params, data interface{}) *request.Request {
req := c.NewRequest(op, params, data)
return req
}
const opInputService18TestCaseOperation1 = "OperationName"
// InputService18TestCaseOperation1Request generates a "aws/request.Request" representing the
// client's request for the InputService18TestCaseOperation1 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 InputService18TestCaseOperation1 for more information on using the InputService18TestCaseOperation1
// 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 InputService18TestCaseOperation1Request method.
// req, resp := client.InputService18TestCaseOperation1Request(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
func (c *InputService18ProtocolTest) InputService18TestCaseOperation1Request(input *InputService18TestShapeInputService18TestCaseOperation1Input) (req *request.Request, output *InputService18TestShapeInputService18TestCaseOperation1Output) {
op := &request.Operation{
Name: opInputService18TestCaseOperation1,
HTTPMethod: "POST",
HTTPPath: "/",
}
if input == nil {
input = &InputService18TestShapeInputService18TestCaseOperation1Input{}
}
output = &InputService18TestShapeInputService18TestCaseOperation1Output{}
req = c.newRequest(op, input, output)
req.Handlers.Unmarshal.Swap(restxml.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
return
}
// InputService18TestCaseOperation1 API operation for .
//
// 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 's
// API operation InputService18TestCaseOperation1 for usage and error information.
func (c *InputService18ProtocolTest) InputService18TestCaseOperation1(input *InputService18TestShapeInputService18TestCaseOperation1Input) (*InputService18TestShapeInputService18TestCaseOperation1Output, error) {
req, out := c.InputService18TestCaseOperation1Request(input)
return out, req.Send()
}
// InputService18TestCaseOperation1WithContext is the same as InputService18TestCaseOperation1 with the addition of
// the ability to pass a context and additional request options.
//
// See InputService18TestCaseOperation1 for details on how to use this API operation.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
func (c *InputService18ProtocolTest) InputService18TestCaseOperation1WithContext(ctx aws.Context, input *InputService18TestShapeInputService18TestCaseOperation1Input, opts ...request.Option) (*InputService18TestShapeInputService18TestCaseOperation1Output, error) {
req, out := c.InputService18TestCaseOperation1Request(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
const opInputService18TestCaseOperation2 = "OperationName"
// InputService18TestCaseOperation2Request generates a "aws/request.Request" representing the
// client's request for the InputService18TestCaseOperation2 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 InputService18TestCaseOperation2 for more information on using the InputService18TestCaseOperation2
// 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 InputService18TestCaseOperation2Request method.
// req, resp := client.InputService18TestCaseOperation2Request(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
func (c *InputService18ProtocolTest) InputService18TestCaseOperation2Request(input *InputService18TestShapeInputService18TestCaseOperation2Input) (req *request.Request, output *InputService18TestShapeInputService18TestCaseOperation2Output) {
op := &request.Operation{
Name: opInputService18TestCaseOperation2,
HTTPMethod: "POST",
HTTPPath: "/",
}
if input == nil {
input = &InputService18TestShapeInputService18TestCaseOperation2Input{}
}
output = &InputService18TestShapeInputService18TestCaseOperation2Output{}
req = c.newRequest(op, input, output)
req.Handlers.Unmarshal.Swap(restxml.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
return
}
// InputService18TestCaseOperation2 API operation for .
//
// 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 's
// API operation InputService18TestCaseOperation2 for usage and error information.
func (c *InputService18ProtocolTest) InputService18TestCaseOperation2(input *InputService18TestShapeInputService18TestCaseOperation2Input) (*InputService18TestShapeInputService18TestCaseOperation2Output, error) {
req, out := c.InputService18TestCaseOperation2Request(input)
return out, req.Send()
}
// InputService18TestCaseOperation2WithContext is the same as InputService18TestCaseOperation2 with the addition of
// the ability to pass a context and additional request options.
//
// See InputService18TestCaseOperation2 for details on how to use this API operation.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
func (c *InputService18ProtocolTest) InputService18TestCaseOperation2WithContext(ctx aws.Context, input *InputService18TestShapeInputService18TestCaseOperation2Input, opts ...request.Option) (*InputService18TestShapeInputService18TestCaseOperation2Output, error) {
req, out := c.InputService18TestCaseOperation2Request(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
type InputService18TestShapeInputService18TestCaseOperation1Input struct {
_ struct{} `locationName:"InputShape" type:"structure" payload:"Foo"`
Foo []byte `locationName:"foo" type:"blob"`
}
// SetFoo sets the Foo field's value.
func (s *InputService18TestShapeInputService18TestCaseOperation1Input) SetFoo(v []byte) *InputService18TestShapeInputService18TestCaseOperation1Input {
s.Foo = v
return s
}
type InputService18TestShapeInputService18TestCaseOperation1Output struct {
_ struct{} `type:"structure"`
}
type InputService18TestShapeInputService18TestCaseOperation2Input struct {
_ struct{} `locationName:"InputShape" type:"structure" payload:"Foo"`
Foo []byte `locationName:"foo" type:"blob"`
}
// SetFoo sets the Foo field's value.
func (s *InputService18TestShapeInputService18TestCaseOperation2Input) SetFoo(v []byte) *InputService18TestShapeInputService18TestCaseOperation2Input {
s.Foo = v
return s
}
type InputService18TestShapeInputService18TestCaseOperation2Output struct {
_ struct{} `type:"structure"`
}
// InputService19ProtocolTest provides the API operation methods for making requests to
// . See this package's package overview docs
// for details on the service.
//
// InputService19ProtocolTest methods are safe to use concurrently. It is not safe to
// modify mutate any of the struct's properties though.
type InputService19ProtocolTest struct {
*client.Client
}
// New creates a new instance of the InputService19ProtocolTest 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 InputService19ProtocolTest client from just a session.
// svc := inputservice19protocoltest.New(mySession)
//
// // Create a InputService19ProtocolTest client with additional configuration
// svc := inputservice19protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2"))
func NewInputService19ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *InputService19ProtocolTest {
c := p.ClientConfig("inputservice19protocoltest", cfgs...)
return newInputService19ProtocolTestClient(*c.Config, c.Handlers, c.PartitionID, c.Endpoint, c.SigningRegion, c.SigningName)
}
// newClient creates, initializes and returns a new service client instance.
func newInputService19ProtocolTestClient(cfg aws.Config, handlers request.Handlers, partitionID, endpoint, signingRegion, signingName string) *InputService19ProtocolTest {
svc := &InputService19ProtocolTest{
Client: client.New(
cfg,
metadata.ClientInfo{
ServiceName: "InputService19ProtocolTest",
ServiceID: "InputService19ProtocolTest",
SigningName: signingName,
SigningRegion: signingRegion,
PartitionID: partitionID,
Endpoint: endpoint,
APIVersion: "2014-01-01",
},
handlers,
),
}
// Handlers
svc.Handlers.Sign.PushBackNamed(v4.SignRequestHandler)
svc.Handlers.Build.PushBackNamed(restxml.BuildHandler)
svc.Handlers.Unmarshal.PushBackNamed(restxml.UnmarshalHandler)
svc.Handlers.UnmarshalMeta.PushBackNamed(restxml.UnmarshalMetaHandler)
svc.Handlers.UnmarshalError.PushBackNamed(restxml.UnmarshalErrorHandler)
return svc
}
// newRequest creates a new request for a InputService19ProtocolTest operation and runs any
// custom request initialization.
func (c *InputService19ProtocolTest) newRequest(op *request.Operation, params, data interface{}) *request.Request {
req := c.NewRequest(op, params, data)
return req
}
const opInputService19TestCaseOperation1 = "OperationName"
// InputService19TestCaseOperation1Request generates a "aws/request.Request" representing the
// client's request for the InputService19TestCaseOperation1 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 InputService19TestCaseOperation1 for more information on using the InputService19TestCaseOperation1
// 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 InputService19TestCaseOperation1Request method.
// req, resp := client.InputService19TestCaseOperation1Request(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
func (c *InputService19ProtocolTest) InputService19TestCaseOperation1Request(input *InputService19TestShapeInputService19TestCaseOperation1Input) (req *request.Request, output *InputService19TestShapeInputService19TestCaseOperation1Output) {
op := &request.Operation{
Name: opInputService19TestCaseOperation1,
HTTPMethod: "POST",
HTTPPath: "/",
}
if input == nil {
input = &InputService19TestShapeInputService19TestCaseOperation1Input{}
}
output = &InputService19TestShapeInputService19TestCaseOperation1Output{}
req = c.newRequest(op, input, output)
req.Handlers.Unmarshal.Swap(restxml.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
return
}
// InputService19TestCaseOperation1 API operation for .
//
// 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 's
// API operation InputService19TestCaseOperation1 for usage and error information.
func (c *InputService19ProtocolTest) InputService19TestCaseOperation1(input *InputService19TestShapeInputService19TestCaseOperation1Input) (*InputService19TestShapeInputService19TestCaseOperation1Output, error) {
req, out := c.InputService19TestCaseOperation1Request(input)
return out, req.Send()
}
// InputService19TestCaseOperation1WithContext is the same as InputService19TestCaseOperation1 with the addition of
// the ability to pass a context and additional request options.
//
// See InputService19TestCaseOperation1 for details on how to use this API operation.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
func (c *InputService19ProtocolTest) InputService19TestCaseOperation1WithContext(ctx aws.Context, input *InputService19TestShapeInputService19TestCaseOperation1Input, opts ...request.Option) (*InputService19TestShapeInputService19TestCaseOperation1Output, error) {
req, out := c.InputService19TestCaseOperation1Request(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
const opInputService19TestCaseOperation2 = "OperationName"
// InputService19TestCaseOperation2Request generates a "aws/request.Request" representing the
// client's request for the InputService19TestCaseOperation2 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 InputService19TestCaseOperation2 for more information on using the InputService19TestCaseOperation2
// 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 InputService19TestCaseOperation2Request method.
// req, resp := client.InputService19TestCaseOperation2Request(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
func (c *InputService19ProtocolTest) InputService19TestCaseOperation2Request(input *InputService19TestShapeInputService19TestCaseOperation2Input) (req *request.Request, output *InputService19TestShapeInputService19TestCaseOperation2Output) {
op := &request.Operation{
Name: opInputService19TestCaseOperation2,
HTTPMethod: "POST",
HTTPPath: "/",
}
if input == nil {
input = &InputService19TestShapeInputService19TestCaseOperation2Input{}
}
output = &InputService19TestShapeInputService19TestCaseOperation2Output{}
req = c.newRequest(op, input, output)
req.Handlers.Unmarshal.Swap(restxml.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
return
}
// InputService19TestCaseOperation2 API operation for .
//
// 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 's
// API operation InputService19TestCaseOperation2 for usage and error information.
func (c *InputService19ProtocolTest) InputService19TestCaseOperation2(input *InputService19TestShapeInputService19TestCaseOperation2Input) (*InputService19TestShapeInputService19TestCaseOperation2Output, error) {
req, out := c.InputService19TestCaseOperation2Request(input)
return out, req.Send()
}
// InputService19TestCaseOperation2WithContext is the same as InputService19TestCaseOperation2 with the addition of
// the ability to pass a context and additional request options.
//
// See InputService19TestCaseOperation2 for details on how to use this API operation.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
func (c *InputService19ProtocolTest) InputService19TestCaseOperation2WithContext(ctx aws.Context, input *InputService19TestShapeInputService19TestCaseOperation2Input, opts ...request.Option) (*InputService19TestShapeInputService19TestCaseOperation2Output, error) {
req, out := c.InputService19TestCaseOperation2Request(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
const opInputService19TestCaseOperation3 = "OperationName"
// InputService19TestCaseOperation3Request generates a "aws/request.Request" representing the
// client's request for the InputService19TestCaseOperation3 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 InputService19TestCaseOperation3 for more information on using the InputService19TestCaseOperation3
// 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 InputService19TestCaseOperation3Request method.
// req, resp := client.InputService19TestCaseOperation3Request(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
func (c *InputService19ProtocolTest) InputService19TestCaseOperation3Request(input *InputService19TestShapeInputService19TestCaseOperation3Input) (req *request.Request, output *InputService19TestShapeInputService19TestCaseOperation3Output) {
op := &request.Operation{
Name: opInputService19TestCaseOperation3,
HTTPMethod: "POST",
HTTPPath: "/",
}
if input == nil {
input = &InputService19TestShapeInputService19TestCaseOperation3Input{}
}
output = &InputService19TestShapeInputService19TestCaseOperation3Output{}
req = c.newRequest(op, input, output)
req.Handlers.Unmarshal.Swap(restxml.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
return
}
// InputService19TestCaseOperation3 API operation for .
//
// 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 's
// API operation InputService19TestCaseOperation3 for usage and error information.
func (c *InputService19ProtocolTest) InputService19TestCaseOperation3(input *InputService19TestShapeInputService19TestCaseOperation3Input) (*InputService19TestShapeInputService19TestCaseOperation3Output, error) {
req, out := c.InputService19TestCaseOperation3Request(input)
return out, req.Send()
}
// InputService19TestCaseOperation3WithContext is the same as InputService19TestCaseOperation3 with the addition of
// the ability to pass a context and additional request options.
//
// See InputService19TestCaseOperation3 for details on how to use this API operation.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
func (c *InputService19ProtocolTest) InputService19TestCaseOperation3WithContext(ctx aws.Context, input *InputService19TestShapeInputService19TestCaseOperation3Input, opts ...request.Option) (*InputService19TestShapeInputService19TestCaseOperation3Output, error) {
req, out := c.InputService19TestCaseOperation3Request(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
const opInputService19TestCaseOperation4 = "OperationName"
// InputService19TestCaseOperation4Request generates a "aws/request.Request" representing the
// client's request for the InputService19TestCaseOperation4 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 InputService19TestCaseOperation4 for more information on using the InputService19TestCaseOperation4
// 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 InputService19TestCaseOperation4Request method.
// req, resp := client.InputService19TestCaseOperation4Request(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
func (c *InputService19ProtocolTest) InputService19TestCaseOperation4Request(input *InputService19TestShapeInputService19TestCaseOperation4Input) (req *request.Request, output *InputService19TestShapeInputService19TestCaseOperation4Output) {
op := &request.Operation{
Name: opInputService19TestCaseOperation4,
HTTPMethod: "POST",
HTTPPath: "/",
}
if input == nil {
input = &InputService19TestShapeInputService19TestCaseOperation4Input{}
}
output = &InputService19TestShapeInputService19TestCaseOperation4Output{}
req = c.newRequest(op, input, output)
req.Handlers.Unmarshal.Swap(restxml.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
return
}
// InputService19TestCaseOperation4 API operation for .
//
// 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 's
// API operation InputService19TestCaseOperation4 for usage and error information.
func (c *InputService19ProtocolTest) InputService19TestCaseOperation4(input *InputService19TestShapeInputService19TestCaseOperation4Input) (*InputService19TestShapeInputService19TestCaseOperation4Output, error) {
req, out := c.InputService19TestCaseOperation4Request(input)
return out, req.Send()
}
// InputService19TestCaseOperation4WithContext is the same as InputService19TestCaseOperation4 with the addition of
// the ability to pass a context and additional request options.
//
// See InputService19TestCaseOperation4 for details on how to use this API operation.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
func (c *InputService19ProtocolTest) InputService19TestCaseOperation4WithContext(ctx aws.Context, input *InputService19TestShapeInputService19TestCaseOperation4Input, opts ...request.Option) (*InputService19TestShapeInputService19TestCaseOperation4Output, error) {
req, out := c.InputService19TestCaseOperation4Request(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
type InputService19TestShapeFooShape struct {
_ struct{} `locationName:"foo" type:"structure"`
Baz *string `locationName:"baz" type:"string"`
}
// SetBaz sets the Baz field's value.
func (s *InputService19TestShapeFooShape) SetBaz(v string) *InputService19TestShapeFooShape {
s.Baz = &v
return s
}
type InputService19TestShapeInputService19TestCaseOperation1Input struct {
_ struct{} `locationName:"InputShape" type:"structure" payload:"Foo"`
Foo *InputService19TestShapeFooShape `locationName:"foo" type:"structure"`
}
// SetFoo sets the Foo field's value.
func (s *InputService19TestShapeInputService19TestCaseOperation1Input) SetFoo(v *InputService19TestShapeFooShape) *InputService19TestShapeInputService19TestCaseOperation1Input {
s.Foo = v
return s
}
type InputService19TestShapeInputService19TestCaseOperation1Output struct {
_ struct{} `type:"structure"`
}
type InputService19TestShapeInputService19TestCaseOperation2Input struct {
_ struct{} `locationName:"InputShape" type:"structure" payload:"Foo"`
Foo *InputService19TestShapeFooShape `locationName:"foo" type:"structure"`
}
// SetFoo sets the Foo field's value.
func (s *InputService19TestShapeInputService19TestCaseOperation2Input) SetFoo(v *InputService19TestShapeFooShape) *InputService19TestShapeInputService19TestCaseOperation2Input {
s.Foo = v
return s
}
type InputService19TestShapeInputService19TestCaseOperation2Output struct {
_ struct{} `type:"structure"`
}
type InputService19TestShapeInputService19TestCaseOperation3Input struct {
_ struct{} `locationName:"InputShape" type:"structure" payload:"Foo"`
Foo *InputService19TestShapeFooShape `locationName:"foo" type:"structure"`
}
// SetFoo sets the Foo field's value.
func (s *InputService19TestShapeInputService19TestCaseOperation3Input) SetFoo(v *InputService19TestShapeFooShape) *InputService19TestShapeInputService19TestCaseOperation3Input {
s.Foo = v
return s
}
type InputService19TestShapeInputService19TestCaseOperation3Output struct {
_ struct{} `type:"structure"`
}
type InputService19TestShapeInputService19TestCaseOperation4Input struct {
_ struct{} `locationName:"InputShape" type:"structure" payload:"Foo"`
Foo *InputService19TestShapeFooShape `locationName:"foo" type:"structure"`
}
// SetFoo sets the Foo field's value.
func (s *InputService19TestShapeInputService19TestCaseOperation4Input) SetFoo(v *InputService19TestShapeFooShape) *InputService19TestShapeInputService19TestCaseOperation4Input {
s.Foo = v
return s
}
type InputService19TestShapeInputService19TestCaseOperation4Output struct {
_ struct{} `type:"structure"`
}
// InputService20ProtocolTest provides the API operation methods for making requests to
// . See this package's package overview docs
// for details on the service.
//
// InputService20ProtocolTest methods are safe to use concurrently. It is not safe to
// modify mutate any of the struct's properties though.
type InputService20ProtocolTest struct {
*client.Client
}
// New creates a new instance of the InputService20ProtocolTest 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 InputService20ProtocolTest client from just a session.
// svc := inputservice20protocoltest.New(mySession)
//
// // Create a InputService20ProtocolTest client with additional configuration
// svc := inputservice20protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2"))
func NewInputService20ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *InputService20ProtocolTest {
c := p.ClientConfig("inputservice20protocoltest", cfgs...)
return newInputService20ProtocolTestClient(*c.Config, c.Handlers, c.PartitionID, c.Endpoint, c.SigningRegion, c.SigningName)
}
// newClient creates, initializes and returns a new service client instance.
func newInputService20ProtocolTestClient(cfg aws.Config, handlers request.Handlers, partitionID, endpoint, signingRegion, signingName string) *InputService20ProtocolTest {
svc := &InputService20ProtocolTest{
Client: client.New(
cfg,
metadata.ClientInfo{
ServiceName: "InputService20ProtocolTest",
ServiceID: "InputService20ProtocolTest",
SigningName: signingName,
SigningRegion: signingRegion,
PartitionID: partitionID,
Endpoint: endpoint,
APIVersion: "2014-01-01",
},
handlers,
),
}
// Handlers
svc.Handlers.Sign.PushBackNamed(v4.SignRequestHandler)
svc.Handlers.Build.PushBackNamed(restxml.BuildHandler)
svc.Handlers.Unmarshal.PushBackNamed(restxml.UnmarshalHandler)
svc.Handlers.UnmarshalMeta.PushBackNamed(restxml.UnmarshalMetaHandler)
svc.Handlers.UnmarshalError.PushBackNamed(restxml.UnmarshalErrorHandler)
return svc
}
// newRequest creates a new request for a InputService20ProtocolTest operation and runs any
// custom request initialization.
func (c *InputService20ProtocolTest) newRequest(op *request.Operation, params, data interface{}) *request.Request {
req := c.NewRequest(op, params, data)
return req
}
const opInputService20TestCaseOperation1 = "OperationName"
// InputService20TestCaseOperation1Request generates a "aws/request.Request" representing the
// client's request for the InputService20TestCaseOperation1 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 InputService20TestCaseOperation1 for more information on using the InputService20TestCaseOperation1
// 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 InputService20TestCaseOperation1Request method.
// req, resp := client.InputService20TestCaseOperation1Request(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
func (c *InputService20ProtocolTest) InputService20TestCaseOperation1Request(input *InputService20TestShapeInputService20TestCaseOperation1Input) (req *request.Request, output *InputService20TestShapeInputService20TestCaseOperation1Output) {
op := &request.Operation{
Name: opInputService20TestCaseOperation1,
HTTPMethod: "POST",
HTTPPath: "/",
}
if input == nil {
input = &InputService20TestShapeInputService20TestCaseOperation1Input{}
}
output = &InputService20TestShapeInputService20TestCaseOperation1Output{}
req = c.newRequest(op, input, output)
req.Handlers.Unmarshal.Swap(restxml.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
return
}
// InputService20TestCaseOperation1 API operation for .
//
// 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 's
// API operation InputService20TestCaseOperation1 for usage and error information.
func (c *InputService20ProtocolTest) InputService20TestCaseOperation1(input *InputService20TestShapeInputService20TestCaseOperation1Input) (*InputService20TestShapeInputService20TestCaseOperation1Output, error) {
req, out := c.InputService20TestCaseOperation1Request(input)
return out, req.Send()
}
// InputService20TestCaseOperation1WithContext is the same as InputService20TestCaseOperation1 with the addition of
// the ability to pass a context and additional request options.
//
// See InputService20TestCaseOperation1 for details on how to use this API operation.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
func (c *InputService20ProtocolTest) InputService20TestCaseOperation1WithContext(ctx aws.Context, input *InputService20TestShapeInputService20TestCaseOperation1Input, opts ...request.Option) (*InputService20TestShapeInputService20TestCaseOperation1Output, error) {
req, out := c.InputService20TestCaseOperation1Request(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
type InputService20TestShapeGrant struct {
_ struct{} `locationName:"Grant" type:"structure"`
Grantee *InputService20TestShapeGrantee `type:"structure" xmlPrefix:"xsi" xmlURI:"http://www.w3.org/2001/XMLSchema-instance"`
}
// SetGrantee sets the Grantee field's value.
func (s *InputService20TestShapeGrant) SetGrantee(v *InputService20TestShapeGrantee) *InputService20TestShapeGrant {
s.Grantee = v
return s
}
type InputService20TestShapeGrantee struct {
_ struct{} `type:"structure" xmlPrefix:"xsi" xmlURI:"http://www.w3.org/2001/XMLSchema-instance"`
EmailAddress *string `type:"string"`
Type *string `locationName:"xsi:type" type:"string" xmlAttribute:"true"`
}
// SetEmailAddress sets the EmailAddress field's value.
func (s *InputService20TestShapeGrantee) SetEmailAddress(v string) *InputService20TestShapeGrantee {
s.EmailAddress = &v
return s
}
// SetType sets the Type field's value.
func (s *InputService20TestShapeGrantee) SetType(v string) *InputService20TestShapeGrantee {
s.Type = &v
return s
}
type InputService20TestShapeInputService20TestCaseOperation1Input struct {
_ struct{} `locationName:"InputShape" type:"structure" payload:"Grant"`
Grant *InputService20TestShapeGrant `locationName:"Grant" type:"structure"`
}
// SetGrant sets the Grant field's value.
func (s *InputService20TestShapeInputService20TestCaseOperation1Input) SetGrant(v *InputService20TestShapeGrant) *InputService20TestShapeInputService20TestCaseOperation1Input {
s.Grant = v
return s
}
type InputService20TestShapeInputService20TestCaseOperation1Output struct {
_ struct{} `type:"structure"`
}
// InputService21ProtocolTest provides the API operation methods for making requests to
// . See this package's package overview docs
// for details on the service.
//
// InputService21ProtocolTest methods are safe to use concurrently. It is not safe to
// modify mutate any of the struct's properties though.
type InputService21ProtocolTest struct {
*client.Client
}
// New creates a new instance of the InputService21ProtocolTest 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 InputService21ProtocolTest client from just a session.
// svc := inputservice21protocoltest.New(mySession)
//
// // Create a InputService21ProtocolTest client with additional configuration
// svc := inputservice21protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2"))
func NewInputService21ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *InputService21ProtocolTest {
c := p.ClientConfig("inputservice21protocoltest", cfgs...)
return newInputService21ProtocolTestClient(*c.Config, c.Handlers, c.PartitionID, c.Endpoint, c.SigningRegion, c.SigningName)
}
// newClient creates, initializes and returns a new service client instance.
func newInputService21ProtocolTestClient(cfg aws.Config, handlers request.Handlers, partitionID, endpoint, signingRegion, signingName string) *InputService21ProtocolTest {
svc := &InputService21ProtocolTest{
Client: client.New(
cfg,
metadata.ClientInfo{
ServiceName: "InputService21ProtocolTest",
ServiceID: "InputService21ProtocolTest",
SigningName: signingName,
SigningRegion: signingRegion,
PartitionID: partitionID,
Endpoint: endpoint,
APIVersion: "2014-01-01",
},
handlers,
),
}
// Handlers
svc.Handlers.Sign.PushBackNamed(v4.SignRequestHandler)
svc.Handlers.Build.PushBackNamed(restxml.BuildHandler)
svc.Handlers.Unmarshal.PushBackNamed(restxml.UnmarshalHandler)
svc.Handlers.UnmarshalMeta.PushBackNamed(restxml.UnmarshalMetaHandler)
svc.Handlers.UnmarshalError.PushBackNamed(restxml.UnmarshalErrorHandler)
return svc
}
// newRequest creates a new request for a InputService21ProtocolTest operation and runs any
// custom request initialization.
func (c *InputService21ProtocolTest) newRequest(op *request.Operation, params, data interface{}) *request.Request {
req := c.NewRequest(op, params, data)
return req
}
const opInputService21TestCaseOperation1 = "OperationName"
// InputService21TestCaseOperation1Request generates a "aws/request.Request" representing the
// client's request for the InputService21TestCaseOperation1 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 InputService21TestCaseOperation1 for more information on using the InputService21TestCaseOperation1
// 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 InputService21TestCaseOperation1Request method.
// req, resp := client.InputService21TestCaseOperation1Request(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
func (c *InputService21ProtocolTest) InputService21TestCaseOperation1Request(input *InputService21TestShapeInputService21TestCaseOperation1Input) (req *request.Request, output *InputService21TestShapeInputService21TestCaseOperation1Output) {
op := &request.Operation{
Name: opInputService21TestCaseOperation1,
HTTPMethod: "GET",
HTTPPath: "/{Bucket}/{Key+}",
}
if input == nil {
input = &InputService21TestShapeInputService21TestCaseOperation1Input{}
}
output = &InputService21TestShapeInputService21TestCaseOperation1Output{}
req = c.newRequest(op, input, output)
req.Handlers.Unmarshal.Swap(restxml.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
return
}
// InputService21TestCaseOperation1 API operation for .
//
// 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 's
// API operation InputService21TestCaseOperation1 for usage and error information.
func (c *InputService21ProtocolTest) InputService21TestCaseOperation1(input *InputService21TestShapeInputService21TestCaseOperation1Input) (*InputService21TestShapeInputService21TestCaseOperation1Output, error) {
req, out := c.InputService21TestCaseOperation1Request(input)
return out, req.Send()
}
// InputService21TestCaseOperation1WithContext is the same as InputService21TestCaseOperation1 with the addition of
// the ability to pass a context and additional request options.
//
// See InputService21TestCaseOperation1 for details on how to use this API operation.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
func (c *InputService21ProtocolTest) InputService21TestCaseOperation1WithContext(ctx aws.Context, input *InputService21TestShapeInputService21TestCaseOperation1Input, opts ...request.Option) (*InputService21TestShapeInputService21TestCaseOperation1Output, error) {
req, out := c.InputService21TestCaseOperation1Request(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
type InputService21TestShapeInputService21TestCaseOperation1Input struct {
_ struct{} `locationName:"InputShape" type:"structure"`
// Bucket is a required field
Bucket *string `location:"uri" type:"string" required:"true"`
// Key is a required field
Key *string `location:"uri" type:"string" required:"true"`
}
// Validate inspects the fields of the type to determine if they are valid.
func (s *InputService21TestShapeInputService21TestCaseOperation1Input) Validate() error {
invalidParams := request.ErrInvalidParams{Context: "InputService21TestShapeInputService21TestCaseOperation1Input"}
if s.Bucket == nil {
invalidParams.Add(request.NewErrParamRequired("Bucket"))
}
if s.Bucket != nil && len(*s.Bucket) < 1 {
invalidParams.Add(request.NewErrParamMinLen("Bucket", 1))
}
if s.Key == nil {
invalidParams.Add(request.NewErrParamRequired("Key"))
}
if s.Key != nil && len(*s.Key) < 1 {
invalidParams.Add(request.NewErrParamMinLen("Key", 1))
}
if invalidParams.Len() > 0 {
return invalidParams
}
return nil
}
// SetBucket sets the Bucket field's value.
func (s *InputService21TestShapeInputService21TestCaseOperation1Input) SetBucket(v string) *InputService21TestShapeInputService21TestCaseOperation1Input {
s.Bucket = &v
return s
}
// SetKey sets the Key field's value.
func (s *InputService21TestShapeInputService21TestCaseOperation1Input) SetKey(v string) *InputService21TestShapeInputService21TestCaseOperation1Input {
s.Key = &v
return s
}
type InputService21TestShapeInputService21TestCaseOperation1Output struct {
_ struct{} `type:"structure"`
}
// InputService22ProtocolTest provides the API operation methods for making requests to
// . See this package's package overview docs
// for details on the service.
//
// InputService22ProtocolTest methods are safe to use concurrently. It is not safe to
// modify mutate any of the struct's properties though.
type InputService22ProtocolTest struct {
*client.Client
}
// New creates a new instance of the InputService22ProtocolTest 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 InputService22ProtocolTest client from just a session.
// svc := inputservice22protocoltest.New(mySession)
//
// // Create a InputService22ProtocolTest client with additional configuration
// svc := inputservice22protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2"))
func NewInputService22ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *InputService22ProtocolTest {
c := p.ClientConfig("inputservice22protocoltest", cfgs...)
return newInputService22ProtocolTestClient(*c.Config, c.Handlers, c.PartitionID, c.Endpoint, c.SigningRegion, c.SigningName)
}
// newClient creates, initializes and returns a new service client instance.
func newInputService22ProtocolTestClient(cfg aws.Config, handlers request.Handlers, partitionID, endpoint, signingRegion, signingName string) *InputService22ProtocolTest {
svc := &InputService22ProtocolTest{
Client: client.New(
cfg,
metadata.ClientInfo{
ServiceName: "InputService22ProtocolTest",
ServiceID: "InputService22ProtocolTest",
SigningName: signingName,
SigningRegion: signingRegion,
PartitionID: partitionID,
Endpoint: endpoint,
APIVersion: "2014-01-01",
},
handlers,
),
}
// Handlers
svc.Handlers.Sign.PushBackNamed(v4.SignRequestHandler)
svc.Handlers.Build.PushBackNamed(restxml.BuildHandler)
svc.Handlers.Unmarshal.PushBackNamed(restxml.UnmarshalHandler)
svc.Handlers.UnmarshalMeta.PushBackNamed(restxml.UnmarshalMetaHandler)
svc.Handlers.UnmarshalError.PushBackNamed(restxml.UnmarshalErrorHandler)
return svc
}
// newRequest creates a new request for a InputService22ProtocolTest operation and runs any
// custom request initialization.
func (c *InputService22ProtocolTest) newRequest(op *request.Operation, params, data interface{}) *request.Request {
req := c.NewRequest(op, params, data)
return req
}
const opInputService22TestCaseOperation1 = "OperationName"
// InputService22TestCaseOperation1Request generates a "aws/request.Request" representing the
// client's request for the InputService22TestCaseOperation1 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 InputService22TestCaseOperation1 for more information on using the InputService22TestCaseOperation1
// 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 InputService22TestCaseOperation1Request method.
// req, resp := client.InputService22TestCaseOperation1Request(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
func (c *InputService22ProtocolTest) InputService22TestCaseOperation1Request(input *InputService22TestShapeInputService22TestCaseOperation1Input) (req *request.Request, output *InputService22TestShapeInputService22TestCaseOperation1Output) {
op := &request.Operation{
Name: opInputService22TestCaseOperation1,
HTTPMethod: "POST",
HTTPPath: "/path",
}
if input == nil {
input = &InputService22TestShapeInputService22TestCaseOperation1Input{}
}
output = &InputService22TestShapeInputService22TestCaseOperation1Output{}
req = c.newRequest(op, input, output)
req.Handlers.Unmarshal.Swap(restxml.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
return
}
// InputService22TestCaseOperation1 API operation for .
//
// 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 's
// API operation InputService22TestCaseOperation1 for usage and error information.
func (c *InputService22ProtocolTest) InputService22TestCaseOperation1(input *InputService22TestShapeInputService22TestCaseOperation1Input) (*InputService22TestShapeInputService22TestCaseOperation1Output, error) {
req, out := c.InputService22TestCaseOperation1Request(input)
return out, req.Send()
}
// InputService22TestCaseOperation1WithContext is the same as InputService22TestCaseOperation1 with the addition of
// the ability to pass a context and additional request options.
//
// See InputService22TestCaseOperation1 for details on how to use this API operation.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
func (c *InputService22ProtocolTest) InputService22TestCaseOperation1WithContext(ctx aws.Context, input *InputService22TestShapeInputService22TestCaseOperation1Input, opts ...request.Option) (*InputService22TestShapeInputService22TestCaseOperation1Output, error) {
req, out := c.InputService22TestCaseOperation1Request(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
const opInputService22TestCaseOperation2 = "OperationName"
// InputService22TestCaseOperation2Request generates a "aws/request.Request" representing the
// client's request for the InputService22TestCaseOperation2 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 InputService22TestCaseOperation2 for more information on using the InputService22TestCaseOperation2
// 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 InputService22TestCaseOperation2Request method.
// req, resp := client.InputService22TestCaseOperation2Request(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
func (c *InputService22ProtocolTest) InputService22TestCaseOperation2Request(input *InputService22TestShapeInputService22TestCaseOperation2Input) (req *request.Request, output *InputService22TestShapeInputService22TestCaseOperation2Output) {
op := &request.Operation{
Name: opInputService22TestCaseOperation2,
HTTPMethod: "POST",
HTTPPath: "/path?abc=mno",
}
if input == nil {
input = &InputService22TestShapeInputService22TestCaseOperation2Input{}
}
output = &InputService22TestShapeInputService22TestCaseOperation2Output{}
req = c.newRequest(op, input, output)
req.Handlers.Unmarshal.Swap(restxml.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
return
}
// InputService22TestCaseOperation2 API operation for .
//
// 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 's
// API operation InputService22TestCaseOperation2 for usage and error information.
func (c *InputService22ProtocolTest) InputService22TestCaseOperation2(input *InputService22TestShapeInputService22TestCaseOperation2Input) (*InputService22TestShapeInputService22TestCaseOperation2Output, error) {
req, out := c.InputService22TestCaseOperation2Request(input)
return out, req.Send()
}
// InputService22TestCaseOperation2WithContext is the same as InputService22TestCaseOperation2 with the addition of
// the ability to pass a context and additional request options.
//
// See InputService22TestCaseOperation2 for details on how to use this API operation.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
func (c *InputService22ProtocolTest) InputService22TestCaseOperation2WithContext(ctx aws.Context, input *InputService22TestShapeInputService22TestCaseOperation2Input, opts ...request.Option) (*InputService22TestShapeInputService22TestCaseOperation2Output, error) {
req, out := c.InputService22TestCaseOperation2Request(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
type InputService22TestShapeInputService22TestCaseOperation1Input struct {
_ struct{} `locationName:"InputShape" type:"structure"`
Foo *string `location:"querystring" locationName:"param-name" type:"string"`
}
// SetFoo sets the Foo field's value.
func (s *InputService22TestShapeInputService22TestCaseOperation1Input) SetFoo(v string) *InputService22TestShapeInputService22TestCaseOperation1Input {
s.Foo = &v
return s
}
type InputService22TestShapeInputService22TestCaseOperation1Output struct {
_ struct{} `type:"structure"`
}
type InputService22TestShapeInputService22TestCaseOperation2Input struct {
_ struct{} `locationName:"InputShape" type:"structure"`
Foo *string `location:"querystring" locationName:"param-name" type:"string"`
}
// SetFoo sets the Foo field's value.
func (s *InputService22TestShapeInputService22TestCaseOperation2Input) SetFoo(v string) *InputService22TestShapeInputService22TestCaseOperation2Input {
s.Foo = &v
return s
}
type InputService22TestShapeInputService22TestCaseOperation2Output struct {
_ struct{} `type:"structure"`
}
// InputService23ProtocolTest provides the API operation methods for making requests to
// . See this package's package overview docs
// for details on the service.
//
// InputService23ProtocolTest methods are safe to use concurrently. It is not safe to
// modify mutate any of the struct's properties though.
type InputService23ProtocolTest struct {
*client.Client
}
// New creates a new instance of the InputService23ProtocolTest 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 InputService23ProtocolTest client from just a session.
// svc := inputservice23protocoltest.New(mySession)
//
// // Create a InputService23ProtocolTest client with additional configuration
// svc := inputservice23protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2"))
func NewInputService23ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *InputService23ProtocolTest {
c := p.ClientConfig("inputservice23protocoltest", cfgs...)
return newInputService23ProtocolTestClient(*c.Config, c.Handlers, c.PartitionID, c.Endpoint, c.SigningRegion, c.SigningName)
}
// newClient creates, initializes and returns a new service client instance.
func newInputService23ProtocolTestClient(cfg aws.Config, handlers request.Handlers, partitionID, endpoint, signingRegion, signingName string) *InputService23ProtocolTest {
svc := &InputService23ProtocolTest{
Client: client.New(
cfg,
metadata.ClientInfo{
ServiceName: "InputService23ProtocolTest",
ServiceID: "InputService23ProtocolTest",
SigningName: signingName,
SigningRegion: signingRegion,
PartitionID: partitionID,
Endpoint: endpoint,
APIVersion: "2014-01-01",
},
handlers,
),
}
// Handlers
svc.Handlers.Sign.PushBackNamed(v4.SignRequestHandler)
svc.Handlers.Build.PushBackNamed(restxml.BuildHandler)
svc.Handlers.Unmarshal.PushBackNamed(restxml.UnmarshalHandler)
svc.Handlers.UnmarshalMeta.PushBackNamed(restxml.UnmarshalMetaHandler)
svc.Handlers.UnmarshalError.PushBackNamed(restxml.UnmarshalErrorHandler)
return svc
}
// newRequest creates a new request for a InputService23ProtocolTest operation and runs any
// custom request initialization.
func (c *InputService23ProtocolTest) newRequest(op *request.Operation, params, data interface{}) *request.Request {
req := c.NewRequest(op, params, data)
return req
}
const opInputService23TestCaseOperation1 = "OperationName"
// InputService23TestCaseOperation1Request generates a "aws/request.Request" representing the
// client's request for the InputService23TestCaseOperation1 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 InputService23TestCaseOperation1 for more information on using the InputService23TestCaseOperation1
// 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 InputService23TestCaseOperation1Request method.
// req, resp := client.InputService23TestCaseOperation1Request(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
func (c *InputService23ProtocolTest) InputService23TestCaseOperation1Request(input *InputService23TestShapeInputService23TestCaseOperation1Input) (req *request.Request, output *InputService23TestShapeInputService23TestCaseOperation1Output) {
op := &request.Operation{
Name: opInputService23TestCaseOperation1,
HTTPMethod: "POST",
HTTPPath: "/path",
}
if input == nil {
input = &InputService23TestShapeInputService23TestCaseOperation1Input{}
}
output = &InputService23TestShapeInputService23TestCaseOperation1Output{}
req = c.newRequest(op, input, output)
req.Handlers.Unmarshal.Swap(restxml.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
return
}
// InputService23TestCaseOperation1 API operation for .
//
// 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 's
// API operation InputService23TestCaseOperation1 for usage and error information.
func (c *InputService23ProtocolTest) InputService23TestCaseOperation1(input *InputService23TestShapeInputService23TestCaseOperation1Input) (*InputService23TestShapeInputService23TestCaseOperation1Output, error) {
req, out := c.InputService23TestCaseOperation1Request(input)
return out, req.Send()
}
// InputService23TestCaseOperation1WithContext is the same as InputService23TestCaseOperation1 with the addition of
// the ability to pass a context and additional request options.
//
// See InputService23TestCaseOperation1 for details on how to use this API operation.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
func (c *InputService23ProtocolTest) InputService23TestCaseOperation1WithContext(ctx aws.Context, input *InputService23TestShapeInputService23TestCaseOperation1Input, opts ...request.Option) (*InputService23TestShapeInputService23TestCaseOperation1Output, error) {
req, out := c.InputService23TestCaseOperation1Request(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
const opInputService23TestCaseOperation2 = "OperationName"
// InputService23TestCaseOperation2Request generates a "aws/request.Request" representing the
// client's request for the InputService23TestCaseOperation2 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 InputService23TestCaseOperation2 for more information on using the InputService23TestCaseOperation2
// 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 InputService23TestCaseOperation2Request method.
// req, resp := client.InputService23TestCaseOperation2Request(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
func (c *InputService23ProtocolTest) InputService23TestCaseOperation2Request(input *InputService23TestShapeInputService23TestCaseOperation2Input) (req *request.Request, output *InputService23TestShapeInputService23TestCaseOperation2Output) {
op := &request.Operation{
Name: opInputService23TestCaseOperation2,
HTTPMethod: "POST",
HTTPPath: "/path",
}
if input == nil {
input = &InputService23TestShapeInputService23TestCaseOperation2Input{}
}
output = &InputService23TestShapeInputService23TestCaseOperation2Output{}
req = c.newRequest(op, input, output)
req.Handlers.Unmarshal.Swap(restxml.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
return
}
// InputService23TestCaseOperation2 API operation for .
//
// 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 's
// API operation InputService23TestCaseOperation2 for usage and error information.
func (c *InputService23ProtocolTest) InputService23TestCaseOperation2(input *InputService23TestShapeInputService23TestCaseOperation2Input) (*InputService23TestShapeInputService23TestCaseOperation2Output, error) {
req, out := c.InputService23TestCaseOperation2Request(input)
return out, req.Send()
}
// InputService23TestCaseOperation2WithContext is the same as InputService23TestCaseOperation2 with the addition of
// the ability to pass a context and additional request options.
//
// See InputService23TestCaseOperation2 for details on how to use this API operation.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
func (c *InputService23ProtocolTest) InputService23TestCaseOperation2WithContext(ctx aws.Context, input *InputService23TestShapeInputService23TestCaseOperation2Input, opts ...request.Option) (*InputService23TestShapeInputService23TestCaseOperation2Output, error) {
req, out := c.InputService23TestCaseOperation2Request(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
const opInputService23TestCaseOperation3 = "OperationName"
// InputService23TestCaseOperation3Request generates a "aws/request.Request" representing the
// client's request for the InputService23TestCaseOperation3 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 InputService23TestCaseOperation3 for more information on using the InputService23TestCaseOperation3
// 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 InputService23TestCaseOperation3Request method.
// req, resp := client.InputService23TestCaseOperation3Request(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
func (c *InputService23ProtocolTest) InputService23TestCaseOperation3Request(input *InputService23TestShapeInputService23TestCaseOperation3Input) (req *request.Request, output *InputService23TestShapeInputService23TestCaseOperation3Output) {
op := &request.Operation{
Name: opInputService23TestCaseOperation3,
HTTPMethod: "POST",
HTTPPath: "/path",
}
if input == nil {
input = &InputService23TestShapeInputService23TestCaseOperation3Input{}
}
output = &InputService23TestShapeInputService23TestCaseOperation3Output{}
req = c.newRequest(op, input, output)
req.Handlers.Unmarshal.Swap(restxml.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
return
}
// InputService23TestCaseOperation3 API operation for .
//
// 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 's
// API operation InputService23TestCaseOperation3 for usage and error information.
func (c *InputService23ProtocolTest) InputService23TestCaseOperation3(input *InputService23TestShapeInputService23TestCaseOperation3Input) (*InputService23TestShapeInputService23TestCaseOperation3Output, error) {
req, out := c.InputService23TestCaseOperation3Request(input)
return out, req.Send()
}
// InputService23TestCaseOperation3WithContext is the same as InputService23TestCaseOperation3 with the addition of
// the ability to pass a context and additional request options.
//
// See InputService23TestCaseOperation3 for details on how to use this API operation.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
func (c *InputService23ProtocolTest) InputService23TestCaseOperation3WithContext(ctx aws.Context, input *InputService23TestShapeInputService23TestCaseOperation3Input, opts ...request.Option) (*InputService23TestShapeInputService23TestCaseOperation3Output, error) {
req, out := c.InputService23TestCaseOperation3Request(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
const opInputService23TestCaseOperation4 = "OperationName"
// InputService23TestCaseOperation4Request generates a "aws/request.Request" representing the
// client's request for the InputService23TestCaseOperation4 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 InputService23TestCaseOperation4 for more information on using the InputService23TestCaseOperation4
// 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 InputService23TestCaseOperation4Request method.
// req, resp := client.InputService23TestCaseOperation4Request(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
func (c *InputService23ProtocolTest) InputService23TestCaseOperation4Request(input *InputService23TestShapeInputService23TestCaseOperation4Input) (req *request.Request, output *InputService23TestShapeInputService23TestCaseOperation4Output) {
op := &request.Operation{
Name: opInputService23TestCaseOperation4,
HTTPMethod: "POST",
HTTPPath: "/path",
}
if input == nil {
input = &InputService23TestShapeInputService23TestCaseOperation4Input{}
}
output = &InputService23TestShapeInputService23TestCaseOperation4Output{}
req = c.newRequest(op, input, output)
req.Handlers.Unmarshal.Swap(restxml.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
return
}
// InputService23TestCaseOperation4 API operation for .
//
// 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 's
// API operation InputService23TestCaseOperation4 for usage and error information.
func (c *InputService23ProtocolTest) InputService23TestCaseOperation4(input *InputService23TestShapeInputService23TestCaseOperation4Input) (*InputService23TestShapeInputService23TestCaseOperation4Output, error) {
req, out := c.InputService23TestCaseOperation4Request(input)
return out, req.Send()
}
// InputService23TestCaseOperation4WithContext is the same as InputService23TestCaseOperation4 with the addition of
// the ability to pass a context and additional request options.
//
// See InputService23TestCaseOperation4 for details on how to use this API operation.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
func (c *InputService23ProtocolTest) InputService23TestCaseOperation4WithContext(ctx aws.Context, input *InputService23TestShapeInputService23TestCaseOperation4Input, opts ...request.Option) (*InputService23TestShapeInputService23TestCaseOperation4Output, error) {
req, out := c.InputService23TestCaseOperation4Request(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
const opInputService23TestCaseOperation5 = "OperationName"
// InputService23TestCaseOperation5Request generates a "aws/request.Request" representing the
// client's request for the InputService23TestCaseOperation5 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 InputService23TestCaseOperation5 for more information on using the InputService23TestCaseOperation5
// 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 InputService23TestCaseOperation5Request method.
// req, resp := client.InputService23TestCaseOperation5Request(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
func (c *InputService23ProtocolTest) InputService23TestCaseOperation5Request(input *InputService23TestShapeInputService23TestCaseOperation5Input) (req *request.Request, output *InputService23TestShapeInputService23TestCaseOperation5Output) {
op := &request.Operation{
Name: opInputService23TestCaseOperation5,
HTTPMethod: "POST",
HTTPPath: "/path",
}
if input == nil {
input = &InputService23TestShapeInputService23TestCaseOperation5Input{}
}
output = &InputService23TestShapeInputService23TestCaseOperation5Output{}
req = c.newRequest(op, input, output)
req.Handlers.Unmarshal.Swap(restxml.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
return
}
// InputService23TestCaseOperation5 API operation for .
//
// 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 's
// API operation InputService23TestCaseOperation5 for usage and error information.
func (c *InputService23ProtocolTest) InputService23TestCaseOperation5(input *InputService23TestShapeInputService23TestCaseOperation5Input) (*InputService23TestShapeInputService23TestCaseOperation5Output, error) {
req, out := c.InputService23TestCaseOperation5Request(input)
return out, req.Send()
}
// InputService23TestCaseOperation5WithContext is the same as InputService23TestCaseOperation5 with the addition of
// the ability to pass a context and additional request options.
//
// See InputService23TestCaseOperation5 for details on how to use this API operation.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
func (c *InputService23ProtocolTest) InputService23TestCaseOperation5WithContext(ctx aws.Context, input *InputService23TestShapeInputService23TestCaseOperation5Input, opts ...request.Option) (*InputService23TestShapeInputService23TestCaseOperation5Output, error) {
req, out := c.InputService23TestCaseOperation5Request(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
const opInputService23TestCaseOperation6 = "OperationName"
// InputService23TestCaseOperation6Request generates a "aws/request.Request" representing the
// client's request for the InputService23TestCaseOperation6 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 InputService23TestCaseOperation6 for more information on using the InputService23TestCaseOperation6
// 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 InputService23TestCaseOperation6Request method.
// req, resp := client.InputService23TestCaseOperation6Request(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
func (c *InputService23ProtocolTest) InputService23TestCaseOperation6Request(input *InputService23TestShapeInputService23TestCaseOperation6Input) (req *request.Request, output *InputService23TestShapeInputService23TestCaseOperation6Output) {
op := &request.Operation{
Name: opInputService23TestCaseOperation6,
HTTPMethod: "POST",
HTTPPath: "/path",
}
if input == nil {
input = &InputService23TestShapeInputService23TestCaseOperation6Input{}
}
output = &InputService23TestShapeInputService23TestCaseOperation6Output{}
req = c.newRequest(op, input, output)
req.Handlers.Unmarshal.Swap(restxml.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
return
}
// InputService23TestCaseOperation6 API operation for .
//
// 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 's
// API operation InputService23TestCaseOperation6 for usage and error information.
func (c *InputService23ProtocolTest) InputService23TestCaseOperation6(input *InputService23TestShapeInputService23TestCaseOperation6Input) (*InputService23TestShapeInputService23TestCaseOperation6Output, error) {
req, out := c.InputService23TestCaseOperation6Request(input)
return out, req.Send()
}
// InputService23TestCaseOperation6WithContext is the same as InputService23TestCaseOperation6 with the addition of
// the ability to pass a context and additional request options.
//
// See InputService23TestCaseOperation6 for details on how to use this API operation.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
func (c *InputService23ProtocolTest) InputService23TestCaseOperation6WithContext(ctx aws.Context, input *InputService23TestShapeInputService23TestCaseOperation6Input, opts ...request.Option) (*InputService23TestShapeInputService23TestCaseOperation6Output, error) {
req, out := c.InputService23TestCaseOperation6Request(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
type InputService23TestShapeInputService23TestCaseOperation1Input struct {
_ struct{} `locationName:"OperationRequest" type:"structure" xmlURI:"https://foo/"`
RecursiveStruct *InputService23TestShapeRecursiveStructType `type:"structure"`
}
// SetRecursiveStruct sets the RecursiveStruct field's value.
func (s *InputService23TestShapeInputService23TestCaseOperation1Input) SetRecursiveStruct(v *InputService23TestShapeRecursiveStructType) *InputService23TestShapeInputService23TestCaseOperation1Input {
s.RecursiveStruct = v
return s
}
type InputService23TestShapeInputService23TestCaseOperation1Output struct {
_ struct{} `type:"structure"`
}
type InputService23TestShapeInputService23TestCaseOperation2Input struct {
_ struct{} `locationName:"OperationRequest" type:"structure" xmlURI:"https://foo/"`
RecursiveStruct *InputService23TestShapeRecursiveStructType `type:"structure"`
}
// SetRecursiveStruct sets the RecursiveStruct field's value.
func (s *InputService23TestShapeInputService23TestCaseOperation2Input) SetRecursiveStruct(v *InputService23TestShapeRecursiveStructType) *InputService23TestShapeInputService23TestCaseOperation2Input {
s.RecursiveStruct = v
return s
}
type InputService23TestShapeInputService23TestCaseOperation2Output struct {
_ struct{} `type:"structure"`
}
type InputService23TestShapeInputService23TestCaseOperation3Input struct {
_ struct{} `locationName:"OperationRequest" type:"structure" xmlURI:"https://foo/"`
RecursiveStruct *InputService23TestShapeRecursiveStructType `type:"structure"`
}
// SetRecursiveStruct sets the RecursiveStruct field's value.
func (s *InputService23TestShapeInputService23TestCaseOperation3Input) SetRecursiveStruct(v *InputService23TestShapeRecursiveStructType) *InputService23TestShapeInputService23TestCaseOperation3Input {
s.RecursiveStruct = v
return s
}
type InputService23TestShapeInputService23TestCaseOperation3Output struct {
_ struct{} `type:"structure"`
}
type InputService23TestShapeInputService23TestCaseOperation4Input struct {
_ struct{} `locationName:"OperationRequest" type:"structure" xmlURI:"https://foo/"`
RecursiveStruct *InputService23TestShapeRecursiveStructType `type:"structure"`
}
// SetRecursiveStruct sets the RecursiveStruct field's value.
func (s *InputService23TestShapeInputService23TestCaseOperation4Input) SetRecursiveStruct(v *InputService23TestShapeRecursiveStructType) *InputService23TestShapeInputService23TestCaseOperation4Input {
s.RecursiveStruct = v
return s
}
type InputService23TestShapeInputService23TestCaseOperation4Output struct {
_ struct{} `type:"structure"`
}
type InputService23TestShapeInputService23TestCaseOperation5Input struct {
_ struct{} `locationName:"OperationRequest" type:"structure" xmlURI:"https://foo/"`
RecursiveStruct *InputService23TestShapeRecursiveStructType `type:"structure"`
}
// SetRecursiveStruct sets the RecursiveStruct field's value.
func (s *InputService23TestShapeInputService23TestCaseOperation5Input) SetRecursiveStruct(v *InputService23TestShapeRecursiveStructType) *InputService23TestShapeInputService23TestCaseOperation5Input {
s.RecursiveStruct = v
return s
}
type InputService23TestShapeInputService23TestCaseOperation5Output struct {
_ struct{} `type:"structure"`
}
type InputService23TestShapeInputService23TestCaseOperation6Input struct {
_ struct{} `locationName:"OperationRequest" type:"structure" xmlURI:"https://foo/"`
RecursiveStruct *InputService23TestShapeRecursiveStructType `type:"structure"`
}
// SetRecursiveStruct sets the RecursiveStruct field's value.
func (s *InputService23TestShapeInputService23TestCaseOperation6Input) SetRecursiveStruct(v *InputService23TestShapeRecursiveStructType) *InputService23TestShapeInputService23TestCaseOperation6Input {
s.RecursiveStruct = v
return s
}
type InputService23TestShapeInputService23TestCaseOperation6Output struct {
_ struct{} `type:"structure"`
}
type InputService23TestShapeRecursiveStructType struct {
_ struct{} `type:"structure"`
NoRecurse *string `type:"string"`
RecursiveList []*InputService23TestShapeRecursiveStructType `type:"list"`
RecursiveMap map[string]*InputService23TestShapeRecursiveStructType `type:"map"`
RecursiveStruct *InputService23TestShapeRecursiveStructType `type:"structure"`
}
// SetNoRecurse sets the NoRecurse field's value.
func (s *InputService23TestShapeRecursiveStructType) SetNoRecurse(v string) *InputService23TestShapeRecursiveStructType {
s.NoRecurse = &v
return s
}
// SetRecursiveList sets the RecursiveList field's value.
func (s *InputService23TestShapeRecursiveStructType) SetRecursiveList(v []*InputService23TestShapeRecursiveStructType) *InputService23TestShapeRecursiveStructType {
s.RecursiveList = v
return s
}
// SetRecursiveMap sets the RecursiveMap field's value.
func (s *InputService23TestShapeRecursiveStructType) SetRecursiveMap(v map[string]*InputService23TestShapeRecursiveStructType) *InputService23TestShapeRecursiveStructType {
s.RecursiveMap = v
return s
}
// SetRecursiveStruct sets the RecursiveStruct field's value.
func (s *InputService23TestShapeRecursiveStructType) SetRecursiveStruct(v *InputService23TestShapeRecursiveStructType) *InputService23TestShapeRecursiveStructType {
s.RecursiveStruct = v
return s
}
// InputService24ProtocolTest provides the API operation methods for making requests to
// . See this package's package overview docs
// for details on the service.
//
// InputService24ProtocolTest methods are safe to use concurrently. It is not safe to
// modify mutate any of the struct's properties though.
type InputService24ProtocolTest struct {
*client.Client
}
// New creates a new instance of the InputService24ProtocolTest 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 InputService24ProtocolTest client from just a session.
// svc := inputservice24protocoltest.New(mySession)
//
// // Create a InputService24ProtocolTest client with additional configuration
// svc := inputservice24protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2"))
func NewInputService24ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *InputService24ProtocolTest {
c := p.ClientConfig("inputservice24protocoltest", cfgs...)
return newInputService24ProtocolTestClient(*c.Config, c.Handlers, c.PartitionID, c.Endpoint, c.SigningRegion, c.SigningName)
}
// newClient creates, initializes and returns a new service client instance.
func newInputService24ProtocolTestClient(cfg aws.Config, handlers request.Handlers, partitionID, endpoint, signingRegion, signingName string) *InputService24ProtocolTest {
svc := &InputService24ProtocolTest{
Client: client.New(
cfg,
metadata.ClientInfo{
ServiceName: "InputService24ProtocolTest",
ServiceID: "InputService24ProtocolTest",
SigningName: signingName,
SigningRegion: signingRegion,
PartitionID: partitionID,
Endpoint: endpoint,
APIVersion: "2014-01-01",
},
handlers,
),
}
// Handlers
svc.Handlers.Sign.PushBackNamed(v4.SignRequestHandler)
svc.Handlers.Build.PushBackNamed(restxml.BuildHandler)
svc.Handlers.Unmarshal.PushBackNamed(restxml.UnmarshalHandler)
svc.Handlers.UnmarshalMeta.PushBackNamed(restxml.UnmarshalMetaHandler)
svc.Handlers.UnmarshalError.PushBackNamed(restxml.UnmarshalErrorHandler)
return svc
}
// newRequest creates a new request for a InputService24ProtocolTest operation and runs any
// custom request initialization.
func (c *InputService24ProtocolTest) newRequest(op *request.Operation, params, data interface{}) *request.Request {
req := c.NewRequest(op, params, data)
return req
}
const opInputService24TestCaseOperation1 = "OperationName"
// InputService24TestCaseOperation1Request generates a "aws/request.Request" representing the
// client's request for the InputService24TestCaseOperation1 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 InputService24TestCaseOperation1 for more information on using the InputService24TestCaseOperation1
// 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 InputService24TestCaseOperation1Request method.
// req, resp := client.InputService24TestCaseOperation1Request(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
func (c *InputService24ProtocolTest) InputService24TestCaseOperation1Request(input *InputService24TestShapeInputService24TestCaseOperation1Input) (req *request.Request, output *InputService24TestShapeInputService24TestCaseOperation1Output) {
op := &request.Operation{
Name: opInputService24TestCaseOperation1,
HTTPMethod: "POST",
HTTPPath: "/path",
}
if input == nil {
input = &InputService24TestShapeInputService24TestCaseOperation1Input{}
}
output = &InputService24TestShapeInputService24TestCaseOperation1Output{}
req = c.newRequest(op, input, output)
req.Handlers.Unmarshal.Swap(restxml.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
return
}
// InputService24TestCaseOperation1 API operation for .
//
// 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 's
// API operation InputService24TestCaseOperation1 for usage and error information.
func (c *InputService24ProtocolTest) InputService24TestCaseOperation1(input *InputService24TestShapeInputService24TestCaseOperation1Input) (*InputService24TestShapeInputService24TestCaseOperation1Output, error) {
req, out := c.InputService24TestCaseOperation1Request(input)
return out, req.Send()
}
// InputService24TestCaseOperation1WithContext is the same as InputService24TestCaseOperation1 with the addition of
// the ability to pass a context and additional request options.
//
// See InputService24TestCaseOperation1 for details on how to use this API operation.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
func (c *InputService24ProtocolTest) InputService24TestCaseOperation1WithContext(ctx aws.Context, input *InputService24TestShapeInputService24TestCaseOperation1Input, opts ...request.Option) (*InputService24TestShapeInputService24TestCaseOperation1Output, error) {
req, out := c.InputService24TestCaseOperation1Request(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
const opInputService24TestCaseOperation2 = "OperationName"
// InputService24TestCaseOperation2Request generates a "aws/request.Request" representing the
// client's request for the InputService24TestCaseOperation2 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 InputService24TestCaseOperation2 for more information on using the InputService24TestCaseOperation2
// 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 InputService24TestCaseOperation2Request method.
// req, resp := client.InputService24TestCaseOperation2Request(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
func (c *InputService24ProtocolTest) InputService24TestCaseOperation2Request(input *InputService24TestShapeInputService24TestCaseOperation2Input) (req *request.Request, output *InputService24TestShapeInputService24TestCaseOperation2Output) {
op := &request.Operation{
Name: opInputService24TestCaseOperation2,
HTTPMethod: "POST",
HTTPPath: "/path",
}
if input == nil {
input = &InputService24TestShapeInputService24TestCaseOperation2Input{}
}
output = &InputService24TestShapeInputService24TestCaseOperation2Output{}
req = c.newRequest(op, input, output)
req.Handlers.Unmarshal.Swap(restxml.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
return
}
// InputService24TestCaseOperation2 API operation for .
//
// 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 's
// API operation InputService24TestCaseOperation2 for usage and error information.
func (c *InputService24ProtocolTest) InputService24TestCaseOperation2(input *InputService24TestShapeInputService24TestCaseOperation2Input) (*InputService24TestShapeInputService24TestCaseOperation2Output, error) {
req, out := c.InputService24TestCaseOperation2Request(input)
return out, req.Send()
}
// InputService24TestCaseOperation2WithContext is the same as InputService24TestCaseOperation2 with the addition of
// the ability to pass a context and additional request options.
//
// See InputService24TestCaseOperation2 for details on how to use this API operation.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
func (c *InputService24ProtocolTest) InputService24TestCaseOperation2WithContext(ctx aws.Context, input *InputService24TestShapeInputService24TestCaseOperation2Input, opts ...request.Option) (*InputService24TestShapeInputService24TestCaseOperation2Output, error) {
req, out := c.InputService24TestCaseOperation2Request(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
type InputService24TestShapeInputService24TestCaseOperation1Input struct {
_ struct{} `locationName:"InputShape" type:"structure"`
Token *string `type:"string" idempotencyToken:"true"`
}
// SetToken sets the Token field's value.
func (s *InputService24TestShapeInputService24TestCaseOperation1Input) SetToken(v string) *InputService24TestShapeInputService24TestCaseOperation1Input {
s.Token = &v
return s
}
type InputService24TestShapeInputService24TestCaseOperation1Output struct {
_ struct{} `type:"structure"`
}
type InputService24TestShapeInputService24TestCaseOperation2Input struct {
_ struct{} `locationName:"InputShape" type:"structure"`
Token *string `type:"string" idempotencyToken:"true"`
}
// SetToken sets the Token field's value.
func (s *InputService24TestShapeInputService24TestCaseOperation2Input) SetToken(v string) *InputService24TestShapeInputService24TestCaseOperation2Input {
s.Token = &v
return s
}
type InputService24TestShapeInputService24TestCaseOperation2Output struct {
_ struct{} `type:"structure"`
}
// InputService25ProtocolTest provides the API operation methods for making requests to
// . See this package's package overview docs
// for details on the service.
//
// InputService25ProtocolTest methods are safe to use concurrently. It is not safe to
// modify mutate any of the struct's properties though.
type InputService25ProtocolTest struct {
*client.Client
}
// New creates a new instance of the InputService25ProtocolTest 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 InputService25ProtocolTest client from just a session.
// svc := inputservice25protocoltest.New(mySession)
//
// // Create a InputService25ProtocolTest client with additional configuration
// svc := inputservice25protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2"))
func NewInputService25ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *InputService25ProtocolTest {
c := p.ClientConfig("inputservice25protocoltest", cfgs...)
return newInputService25ProtocolTestClient(*c.Config, c.Handlers, c.PartitionID, c.Endpoint, c.SigningRegion, c.SigningName)
}
// newClient creates, initializes and returns a new service client instance.
func newInputService25ProtocolTestClient(cfg aws.Config, handlers request.Handlers, partitionID, endpoint, signingRegion, signingName string) *InputService25ProtocolTest {
svc := &InputService25ProtocolTest{
Client: client.New(
cfg,
metadata.ClientInfo{
ServiceName: "InputService25ProtocolTest",
ServiceID: "InputService25ProtocolTest",
SigningName: signingName,
SigningRegion: signingRegion,
PartitionID: partitionID,
Endpoint: endpoint,
APIVersion: "2014-01-01",
},
handlers,
),
}
// Handlers
svc.Handlers.Sign.PushBackNamed(v4.SignRequestHandler)
svc.Handlers.Build.PushBackNamed(restxml.BuildHandler)
svc.Handlers.Unmarshal.PushBackNamed(restxml.UnmarshalHandler)
svc.Handlers.UnmarshalMeta.PushBackNamed(restxml.UnmarshalMetaHandler)
svc.Handlers.UnmarshalError.PushBackNamed(restxml.UnmarshalErrorHandler)
return svc
}
// newRequest creates a new request for a InputService25ProtocolTest operation and runs any
// custom request initialization.
func (c *InputService25ProtocolTest) newRequest(op *request.Operation, params, data interface{}) *request.Request {
req := c.NewRequest(op, params, data)
return req
}
const opInputService25TestCaseOperation1 = "OperationName"
// InputService25TestCaseOperation1Request generates a "aws/request.Request" representing the
// client's request for the InputService25TestCaseOperation1 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 InputService25TestCaseOperation1 for more information on using the InputService25TestCaseOperation1
// 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 InputService25TestCaseOperation1Request method.
// req, resp := client.InputService25TestCaseOperation1Request(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
func (c *InputService25ProtocolTest) InputService25TestCaseOperation1Request(input *InputService25TestShapeInputService25TestCaseOperation1Input) (req *request.Request, output *InputService25TestShapeInputService25TestCaseOperation1Output) {
op := &request.Operation{
Name: opInputService25TestCaseOperation1,
HTTPMethod: "POST",
HTTPPath: "/Enum/{URIEnum}",
}
if input == nil {
input = &InputService25TestShapeInputService25TestCaseOperation1Input{}
}
output = &InputService25TestShapeInputService25TestCaseOperation1Output{}
req = c.newRequest(op, input, output)
req.Handlers.Unmarshal.Swap(restxml.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
return
}
// InputService25TestCaseOperation1 API operation for .
//
// 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 's
// API operation InputService25TestCaseOperation1 for usage and error information.
func (c *InputService25ProtocolTest) InputService25TestCaseOperation1(input *InputService25TestShapeInputService25TestCaseOperation1Input) (*InputService25TestShapeInputService25TestCaseOperation1Output, error) {
req, out := c.InputService25TestCaseOperation1Request(input)
return out, req.Send()
}
// InputService25TestCaseOperation1WithContext is the same as InputService25TestCaseOperation1 with the addition of
// the ability to pass a context and additional request options.
//
// See InputService25TestCaseOperation1 for details on how to use this API operation.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
func (c *InputService25ProtocolTest) InputService25TestCaseOperation1WithContext(ctx aws.Context, input *InputService25TestShapeInputService25TestCaseOperation1Input, opts ...request.Option) (*InputService25TestShapeInputService25TestCaseOperation1Output, error) {
req, out := c.InputService25TestCaseOperation1Request(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
const opInputService25TestCaseOperation2 = "OperationName"
// InputService25TestCaseOperation2Request generates a "aws/request.Request" representing the
// client's request for the InputService25TestCaseOperation2 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 InputService25TestCaseOperation2 for more information on using the InputService25TestCaseOperation2
// 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 InputService25TestCaseOperation2Request method.
// req, resp := client.InputService25TestCaseOperation2Request(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
func (c *InputService25ProtocolTest) InputService25TestCaseOperation2Request(input *InputService25TestShapeInputService25TestCaseOperation2Input) (req *request.Request, output *InputService25TestShapeInputService25TestCaseOperation2Output) {
op := &request.Operation{
Name: opInputService25TestCaseOperation2,
HTTPMethod: "POST",
HTTPPath: "/Enum/{URIEnum}",
}
if input == nil {
input = &InputService25TestShapeInputService25TestCaseOperation2Input{}
}
output = &InputService25TestShapeInputService25TestCaseOperation2Output{}
req = c.newRequest(op, input, output)
req.Handlers.Unmarshal.Swap(restxml.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
return
}
// InputService25TestCaseOperation2 API operation for .
//
// 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 's
// API operation InputService25TestCaseOperation2 for usage and error information.
func (c *InputService25ProtocolTest) InputService25TestCaseOperation2(input *InputService25TestShapeInputService25TestCaseOperation2Input) (*InputService25TestShapeInputService25TestCaseOperation2Output, error) {
req, out := c.InputService25TestCaseOperation2Request(input)
return out, req.Send()
}
// InputService25TestCaseOperation2WithContext is the same as InputService25TestCaseOperation2 with the addition of
// the ability to pass a context and additional request options.
//
// See InputService25TestCaseOperation2 for details on how to use this API operation.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
func (c *InputService25ProtocolTest) InputService25TestCaseOperation2WithContext(ctx aws.Context, input *InputService25TestShapeInputService25TestCaseOperation2Input, opts ...request.Option) (*InputService25TestShapeInputService25TestCaseOperation2Output, error) {
req, out := c.InputService25TestCaseOperation2Request(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
type InputService25TestShapeInputService25TestCaseOperation1Input struct {
_ struct{} `locationName:"InputShape" type:"structure"`
FooEnum *string `type:"string" enum:"InputService25TestShapeEnumType"`
HeaderEnum *string `location:"header" locationName:"x-amz-enum" type:"string" enum:"InputService25TestShapeEnumType"`
ListEnums []*string `type:"list"`
// URIFooEnum is a required field
URIFooEnum *string `location:"uri" locationName:"URIEnum" type:"string" required:"true" enum:"InputService25TestShapeEnumType"`
URIListEnums []*string `location:"querystring" locationName:"ListEnums" type:"list"`
}
// Validate inspects the fields of the type to determine if they are valid.
func (s *InputService25TestShapeInputService25TestCaseOperation1Input) Validate() error {
invalidParams := request.ErrInvalidParams{Context: "InputService25TestShapeInputService25TestCaseOperation1Input"}
if s.URIFooEnum == nil {
invalidParams.Add(request.NewErrParamRequired("URIFooEnum"))
}
if s.URIFooEnum != nil && len(*s.URIFooEnum) < 1 {
invalidParams.Add(request.NewErrParamMinLen("URIFooEnum", 1))
}
if invalidParams.Len() > 0 {
return invalidParams
}
return nil
}
// SetFooEnum sets the FooEnum field's value.
func (s *InputService25TestShapeInputService25TestCaseOperation1Input) SetFooEnum(v string) *InputService25TestShapeInputService25TestCaseOperation1Input {
s.FooEnum = &v
return s
}
// SetHeaderEnum sets the HeaderEnum field's value.
func (s *InputService25TestShapeInputService25TestCaseOperation1Input) SetHeaderEnum(v string) *InputService25TestShapeInputService25TestCaseOperation1Input {
s.HeaderEnum = &v
return s
}
// SetListEnums sets the ListEnums field's value.
func (s *InputService25TestShapeInputService25TestCaseOperation1Input) SetListEnums(v []*string) *InputService25TestShapeInputService25TestCaseOperation1Input {
s.ListEnums = v
return s
}
// SetURIFooEnum sets the URIFooEnum field's value.
func (s *InputService25TestShapeInputService25TestCaseOperation1Input) SetURIFooEnum(v string) *InputService25TestShapeInputService25TestCaseOperation1Input {
s.URIFooEnum = &v
return s
}
// SetURIListEnums sets the URIListEnums field's value.
func (s *InputService25TestShapeInputService25TestCaseOperation1Input) SetURIListEnums(v []*string) *InputService25TestShapeInputService25TestCaseOperation1Input {
s.URIListEnums = v
return s
}
type InputService25TestShapeInputService25TestCaseOperation1Output struct {
_ struct{} `type:"structure"`
}
type InputService25TestShapeInputService25TestCaseOperation2Input struct {
_ struct{} `locationName:"InputShape" type:"structure"`
FooEnum *string `type:"string" enum:"InputService25TestShapeEnumType"`
HeaderEnum *string `location:"header" locationName:"x-amz-enum" type:"string" enum:"InputService25TestShapeEnumType"`
ListEnums []*string `type:"list"`
// URIFooEnum is a required field
URIFooEnum *string `location:"uri" locationName:"URIEnum" type:"string" required:"true" enum:"InputService25TestShapeEnumType"`
URIListEnums []*string `location:"querystring" locationName:"ListEnums" type:"list"`
}
// Validate inspects the fields of the type to determine if they are valid.
func (s *InputService25TestShapeInputService25TestCaseOperation2Input) Validate() error {
invalidParams := request.ErrInvalidParams{Context: "InputService25TestShapeInputService25TestCaseOperation2Input"}
if s.URIFooEnum == nil {
invalidParams.Add(request.NewErrParamRequired("URIFooEnum"))
}
if s.URIFooEnum != nil && len(*s.URIFooEnum) < 1 {
invalidParams.Add(request.NewErrParamMinLen("URIFooEnum", 1))
}
if invalidParams.Len() > 0 {
return invalidParams
}
return nil
}
// SetFooEnum sets the FooEnum field's value.
func (s *InputService25TestShapeInputService25TestCaseOperation2Input) SetFooEnum(v string) *InputService25TestShapeInputService25TestCaseOperation2Input {
s.FooEnum = &v
return s
}
// SetHeaderEnum sets the HeaderEnum field's value.
func (s *InputService25TestShapeInputService25TestCaseOperation2Input) SetHeaderEnum(v string) *InputService25TestShapeInputService25TestCaseOperation2Input {
s.HeaderEnum = &v
return s
}
// SetListEnums sets the ListEnums field's value.
func (s *InputService25TestShapeInputService25TestCaseOperation2Input) SetListEnums(v []*string) *InputService25TestShapeInputService25TestCaseOperation2Input {
s.ListEnums = v
return s
}
// SetURIFooEnum sets the URIFooEnum field's value.
func (s *InputService25TestShapeInputService25TestCaseOperation2Input) SetURIFooEnum(v string) *InputService25TestShapeInputService25TestCaseOperation2Input {
s.URIFooEnum = &v
return s
}
// SetURIListEnums sets the URIListEnums field's value.
func (s *InputService25TestShapeInputService25TestCaseOperation2Input) SetURIListEnums(v []*string) *InputService25TestShapeInputService25TestCaseOperation2Input {
s.URIListEnums = v
return s
}
type InputService25TestShapeInputService25TestCaseOperation2Output struct {
_ struct{} `type:"structure"`
}
const (
// EnumTypeFoo is a InputService25TestShapeEnumType enum value
EnumTypeFoo = "foo"
// EnumTypeBar is a InputService25TestShapeEnumType enum value
EnumTypeBar = "bar"
// EnumType0 is a InputService25TestShapeEnumType enum value
EnumType0 = "0"
// EnumType1 is a InputService25TestShapeEnumType enum value
EnumType1 = "1"
)
// InputService25TestShapeEnumType_Values returns all elements of the InputService25TestShapeEnumType enum
func InputService25TestShapeEnumType_Values() []string {
return []string{
EnumTypeFoo,
EnumTypeBar,
EnumType0,
EnumType1,
}
}
// InputService26ProtocolTest provides the API operation methods for making requests to
// . See this package's package overview docs
// for details on the service.
//
// InputService26ProtocolTest methods are safe to use concurrently. It is not safe to
// modify mutate any of the struct's properties though.
type InputService26ProtocolTest struct {
*client.Client
}
// New creates a new instance of the InputService26ProtocolTest 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 InputService26ProtocolTest client from just a session.
// svc := inputservice26protocoltest.New(mySession)
//
// // Create a InputService26ProtocolTest client with additional configuration
// svc := inputservice26protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2"))
func NewInputService26ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *InputService26ProtocolTest {
c := p.ClientConfig("inputservice26protocoltest", cfgs...)
return newInputService26ProtocolTestClient(*c.Config, c.Handlers, c.PartitionID, c.Endpoint, c.SigningRegion, c.SigningName)
}
// newClient creates, initializes and returns a new service client instance.
func newInputService26ProtocolTestClient(cfg aws.Config, handlers request.Handlers, partitionID, endpoint, signingRegion, signingName string) *InputService26ProtocolTest {
svc := &InputService26ProtocolTest{
Client: client.New(
cfg,
metadata.ClientInfo{
ServiceName: "InputService26ProtocolTest",
ServiceID: "InputService26ProtocolTest",
SigningName: signingName,
SigningRegion: signingRegion,
PartitionID: partitionID,
Endpoint: endpoint,
APIVersion: "2014-01-01",
},
handlers,
),
}
// Handlers
svc.Handlers.Sign.PushBackNamed(v4.SignRequestHandler)
svc.Handlers.Build.PushBackNamed(restxml.BuildHandler)
svc.Handlers.Unmarshal.PushBackNamed(restxml.UnmarshalHandler)
svc.Handlers.UnmarshalMeta.PushBackNamed(restxml.UnmarshalMetaHandler)
svc.Handlers.UnmarshalError.PushBackNamed(restxml.UnmarshalErrorHandler)
return svc
}
// newRequest creates a new request for a InputService26ProtocolTest operation and runs any
// custom request initialization.
func (c *InputService26ProtocolTest) newRequest(op *request.Operation, params, data interface{}) *request.Request {
req := c.NewRequest(op, params, data)
return req
}
const opInputService26TestCaseOperation1 = "StaticOp"
// InputService26TestCaseOperation1Request generates a "aws/request.Request" representing the
// client's request for the InputService26TestCaseOperation1 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 InputService26TestCaseOperation1 for more information on using the InputService26TestCaseOperation1
// 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 InputService26TestCaseOperation1Request method.
// req, resp := client.InputService26TestCaseOperation1Request(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
func (c *InputService26ProtocolTest) InputService26TestCaseOperation1Request(input *InputService26TestShapeInputService26TestCaseOperation1Input) (req *request.Request, output *InputService26TestShapeInputService26TestCaseOperation1Output) {
op := &request.Operation{
Name: opInputService26TestCaseOperation1,
HTTPMethod: "POST",
HTTPPath: "/path",
}
if input == nil {
input = &InputService26TestShapeInputService26TestCaseOperation1Input{}
}
output = &InputService26TestShapeInputService26TestCaseOperation1Output{}
req = c.newRequest(op, input, output)
req.Handlers.Unmarshal.Swap(restxml.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
req.Handlers.Build.PushBackNamed(protocol.NewHostPrefixHandler("data-", nil))
req.Handlers.Build.PushBackNamed(protocol.ValidateEndpointHostHandler)
return
}
// InputService26TestCaseOperation1 API operation for .
//
// 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 's
// API operation InputService26TestCaseOperation1 for usage and error information.
func (c *InputService26ProtocolTest) InputService26TestCaseOperation1(input *InputService26TestShapeInputService26TestCaseOperation1Input) (*InputService26TestShapeInputService26TestCaseOperation1Output, error) {
req, out := c.InputService26TestCaseOperation1Request(input)
return out, req.Send()
}
// InputService26TestCaseOperation1WithContext is the same as InputService26TestCaseOperation1 with the addition of
// the ability to pass a context and additional request options.
//
// See InputService26TestCaseOperation1 for details on how to use this API operation.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
func (c *InputService26ProtocolTest) InputService26TestCaseOperation1WithContext(ctx aws.Context, input *InputService26TestShapeInputService26TestCaseOperation1Input, opts ...request.Option) (*InputService26TestShapeInputService26TestCaseOperation1Output, error) {
req, out := c.InputService26TestCaseOperation1Request(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
const opInputService26TestCaseOperation2 = "MemberRefOp"
// InputService26TestCaseOperation2Request generates a "aws/request.Request" representing the
// client's request for the InputService26TestCaseOperation2 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 InputService26TestCaseOperation2 for more information on using the InputService26TestCaseOperation2
// 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 InputService26TestCaseOperation2Request method.
// req, resp := client.InputService26TestCaseOperation2Request(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
func (c *InputService26ProtocolTest) InputService26TestCaseOperation2Request(input *InputService26TestShapeInputService26TestCaseOperation2Input) (req *request.Request, output *InputService26TestShapeInputService26TestCaseOperation2Output) {
op := &request.Operation{
Name: opInputService26TestCaseOperation2,
HTTPMethod: "POST",
HTTPPath: "/path",
}
if input == nil {
input = &InputService26TestShapeInputService26TestCaseOperation2Input{}
}
output = &InputService26TestShapeInputService26TestCaseOperation2Output{}
req = c.newRequest(op, input, output)
req.Handlers.Unmarshal.Swap(restxml.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
req.Handlers.Build.PushBackNamed(protocol.NewHostPrefixHandler("foo-{Name}.", input.hostLabels))
req.Handlers.Build.PushBackNamed(protocol.ValidateEndpointHostHandler)
return
}
// InputService26TestCaseOperation2 API operation for .
//
// 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 's
// API operation InputService26TestCaseOperation2 for usage and error information.
func (c *InputService26ProtocolTest) InputService26TestCaseOperation2(input *InputService26TestShapeInputService26TestCaseOperation2Input) (*InputService26TestShapeInputService26TestCaseOperation2Output, error) {
req, out := c.InputService26TestCaseOperation2Request(input)
return out, req.Send()
}
// InputService26TestCaseOperation2WithContext is the same as InputService26TestCaseOperation2 with the addition of
// the ability to pass a context and additional request options.
//
// See InputService26TestCaseOperation2 for details on how to use this API operation.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
func (c *InputService26ProtocolTest) InputService26TestCaseOperation2WithContext(ctx aws.Context, input *InputService26TestShapeInputService26TestCaseOperation2Input, opts ...request.Option) (*InputService26TestShapeInputService26TestCaseOperation2Output, error) {
req, out := c.InputService26TestCaseOperation2Request(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
type InputService26TestShapeInputService26TestCaseOperation1Input struct {
_ struct{} `locationName:"StaticOpRequest" type:"structure"`
Name *string `type:"string"`
}
// SetName sets the Name field's value.
func (s *InputService26TestShapeInputService26TestCaseOperation1Input) SetName(v string) *InputService26TestShapeInputService26TestCaseOperation1Input {
s.Name = &v
return s
}
type InputService26TestShapeInputService26TestCaseOperation1Output struct {
_ struct{} `type:"structure"`
}
type InputService26TestShapeInputService26TestCaseOperation2Input struct {
_ struct{} `locationName:"MemberRefOpRequest" type:"structure"`
// Name is a required field
Name *string `type:"string" required:"true"`
}
// Validate inspects the fields of the type to determine if they are valid.
func (s *InputService26TestShapeInputService26TestCaseOperation2Input) Validate() error {
invalidParams := request.ErrInvalidParams{Context: "InputService26TestShapeInputService26TestCaseOperation2Input"}
if s.Name == nil {
invalidParams.Add(request.NewErrParamRequired("Name"))
}
if s.Name != nil && len(*s.Name) < 1 {
invalidParams.Add(request.NewErrParamMinLen("Name", 1))
}
if invalidParams.Len() > 0 {
return invalidParams
}
return nil
}
// SetName sets the Name field's value.
func (s *InputService26TestShapeInputService26TestCaseOperation2Input) SetName(v string) *InputService26TestShapeInputService26TestCaseOperation2Input {
s.Name = &v
return s
}
func (s *InputService26TestShapeInputService26TestCaseOperation2Input) hostLabels() map[string]string {
return map[string]string{
"Name": aws.StringValue(s.Name),
}
}
type InputService26TestShapeInputService26TestCaseOperation2Output struct {
_ struct{} `type:"structure"`
}
// InputService27ProtocolTest provides the API operation methods for making requests to
// . See this package's package overview docs
// for details on the service.
//
// InputService27ProtocolTest methods are safe to use concurrently. It is not safe to
// modify mutate any of the struct's properties though.
type InputService27ProtocolTest struct {
*client.Client
}
// New creates a new instance of the InputService27ProtocolTest 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 InputService27ProtocolTest client from just a session.
// svc := inputservice27protocoltest.New(mySession)
//
// // Create a InputService27ProtocolTest client with additional configuration
// svc := inputservice27protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2"))
func NewInputService27ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *InputService27ProtocolTest {
c := p.ClientConfig("inputservice27protocoltest", cfgs...)
return newInputService27ProtocolTestClient(*c.Config, c.Handlers, c.PartitionID, c.Endpoint, c.SigningRegion, c.SigningName)
}
// newClient creates, initializes and returns a new service client instance.
func newInputService27ProtocolTestClient(cfg aws.Config, handlers request.Handlers, partitionID, endpoint, signingRegion, signingName string) *InputService27ProtocolTest {
svc := &InputService27ProtocolTest{
Client: client.New(
cfg,
metadata.ClientInfo{
ServiceName: "InputService27ProtocolTest",
ServiceID: "InputService27ProtocolTest",
SigningName: signingName,
SigningRegion: signingRegion,
PartitionID: partitionID,
Endpoint: endpoint,
APIVersion: "2014-01-01",
},
handlers,
),
}
// Handlers
svc.Handlers.Sign.PushBackNamed(v4.SignRequestHandler)
svc.Handlers.Build.PushBackNamed(restxml.BuildHandler)
svc.Handlers.Unmarshal.PushBackNamed(restxml.UnmarshalHandler)
svc.Handlers.UnmarshalMeta.PushBackNamed(restxml.UnmarshalMetaHandler)
svc.Handlers.UnmarshalError.PushBackNamed(restxml.UnmarshalErrorHandler)
return svc
}
// newRequest creates a new request for a InputService27ProtocolTest operation and runs any
// custom request initialization.
func (c *InputService27ProtocolTest) newRequest(op *request.Operation, params, data interface{}) *request.Request {
req := c.NewRequest(op, params, data)
return req
}
const opInputService27TestCaseOperation1 = "OperationName"
// InputService27TestCaseOperation1Request generates a "aws/request.Request" representing the
// client's request for the InputService27TestCaseOperation1 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 InputService27TestCaseOperation1 for more information on using the InputService27TestCaseOperation1
// 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 InputService27TestCaseOperation1Request method.
// req, resp := client.InputService27TestCaseOperation1Request(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
func (c *InputService27ProtocolTest) InputService27TestCaseOperation1Request(input *InputService27TestShapeInputService27TestCaseOperation1Input) (req *request.Request, output *InputService27TestShapeInputService27TestCaseOperation1Output) {
op := &request.Operation{
Name: opInputService27TestCaseOperation1,
HTTPMethod: "GET",
HTTPPath: "/",
}
if input == nil {
input = &InputService27TestShapeInputService27TestCaseOperation1Input{}
}
output = &InputService27TestShapeInputService27TestCaseOperation1Output{}
req = c.newRequest(op, input, output)
req.Handlers.Unmarshal.Swap(restxml.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
return
}
// InputService27TestCaseOperation1 API operation for .
//
// 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 's
// API operation InputService27TestCaseOperation1 for usage and error information.
func (c *InputService27ProtocolTest) InputService27TestCaseOperation1(input *InputService27TestShapeInputService27TestCaseOperation1Input) (*InputService27TestShapeInputService27TestCaseOperation1Output, error) {
req, out := c.InputService27TestCaseOperation1Request(input)
return out, req.Send()
}
// InputService27TestCaseOperation1WithContext is the same as InputService27TestCaseOperation1 with the addition of
// the ability to pass a context and additional request options.
//
// See InputService27TestCaseOperation1 for details on how to use this API operation.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
func (c *InputService27ProtocolTest) InputService27TestCaseOperation1WithContext(ctx aws.Context, input *InputService27TestShapeInputService27TestCaseOperation1Input, opts ...request.Option) (*InputService27TestShapeInputService27TestCaseOperation1Output, error) {
req, out := c.InputService27TestCaseOperation1Request(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
type InputService27TestShapeInputService27TestCaseOperation1Input struct {
_ struct{} `locationName:"InputShape" type:"structure"`
Header1 *string `location:"header" type:"string"`
HeaderMap map[string]*string `location:"headers" locationName:"header-map-" type:"map"`
}
// SetHeader1 sets the Header1 field's value.
func (s *InputService27TestShapeInputService27TestCaseOperation1Input) SetHeader1(v string) *InputService27TestShapeInputService27TestCaseOperation1Input {
s.Header1 = &v
return s
}
// SetHeaderMap sets the HeaderMap field's value.
func (s *InputService27TestShapeInputService27TestCaseOperation1Input) SetHeaderMap(v map[string]*string) *InputService27TestShapeInputService27TestCaseOperation1Input {
s.HeaderMap = v
return s
}
type InputService27TestShapeInputService27TestCaseOperation1Output struct {
_ struct{} `type:"structure"`
}
//
// Tests begin here
//
func TestInputService1ProtocolTestBasicXMLSerializationCase1(t *testing.T) {
svc := NewInputService1ProtocolTest(unit.Session, &aws.Config{Endpoint: aws.String("https://test")})
input := &InputService1TestShapeInputService1TestCaseOperation1Input{
Description: aws.String("bar"),
Name: aws.String("foo"),
}
req, _ := svc.InputService1TestCaseOperation1Request(input)
r := req.HTTPRequest
// build request
req.Build()
if req.Error != nil {
t.Errorf("expect no error, got %v", req.Error)
}
// assert body
if r.Body == nil {
t.Errorf("expect body not to be nil")
}
body, _ := ioutil.ReadAll(r.Body)
awstesting.AssertXML(t, `<OperationRequest xmlns="https://foo/"><Name>foo</Name><Description>bar</Description></OperationRequest>`, util.Trim(string(body)))
// assert URL
awstesting.AssertURL(t, "https://test/2014-01-01/hostedzone", r.URL.String())
// assert headers
}
func TestInputService1ProtocolTestBasicXMLSerializationCase2(t *testing.T) {
svc := NewInputService1ProtocolTest(unit.Session, &aws.Config{Endpoint: aws.String("https://test")})
input := &InputService1TestShapeInputService1TestCaseOperation2Input{
Description: aws.String("bar"),
Name: aws.String("foo"),
}
req, _ := svc.InputService1TestCaseOperation2Request(input)
r := req.HTTPRequest
// build request
req.Build()
if req.Error != nil {
t.Errorf("expect no error, got %v", req.Error)
}
// assert body
if r.Body == nil {
t.Errorf("expect body not to be nil")
}
body, _ := ioutil.ReadAll(r.Body)
awstesting.AssertXML(t, `<OperationRequest xmlns="https://foo/"><Name>foo</Name><Description>bar</Description></OperationRequest>`, util.Trim(string(body)))
// assert URL
awstesting.AssertURL(t, "https://test/2014-01-01/hostedzone", r.URL.String())
// assert headers
}
func TestInputService1ProtocolTestBasicXMLSerializationCase3(t *testing.T) {
svc := NewInputService1ProtocolTest(unit.Session, &aws.Config{Endpoint: aws.String("https://test")})
input := &InputService1TestShapeInputService1TestCaseOperation3Input{}
req, _ := svc.InputService1TestCaseOperation3Request(input)
r := req.HTTPRequest
// build request
req.Build()
if req.Error != nil {
t.Errorf("expect no error, got %v", req.Error)
}
// assert URL
awstesting.AssertURL(t, "https://test/2014-01-01/hostedzone", r.URL.String())
// assert headers
}
func TestInputService2ProtocolTestSerializeOtherScalarTypesCase1(t *testing.T) {
svc := NewInputService2ProtocolTest(unit.Session, &aws.Config{Endpoint: aws.String("https://test")})
input := &InputService2TestShapeInputService2TestCaseOperation1Input{
First: aws.Bool(true),
Fourth: aws.Int64(3),
Second: aws.Bool(false),
Third: aws.Float64(1.2),
}
req, _ := svc.InputService2TestCaseOperation1Request(input)
r := req.HTTPRequest
// build request
req.Build()
if req.Error != nil {
t.Errorf("expect no error, got %v", req.Error)
}
// assert body
if r.Body == nil {
t.Errorf("expect body not to be nil")
}
body, _ := ioutil.ReadAll(r.Body)
awstesting.AssertXML(t, `<OperationRequest xmlns="https://foo/"><First>true</First><Second>false</Second><Third>1.2</Third><Fourth>3</Fourth></OperationRequest>`, util.Trim(string(body)))
// assert URL
awstesting.AssertURL(t, "https://test/2014-01-01/hostedzone", r.URL.String())
// assert headers
}
func TestInputService3ProtocolTestNestedStructuresCase1(t *testing.T) {
svc := NewInputService3ProtocolTest(unit.Session, &aws.Config{Endpoint: aws.String("https://test")})
input := &InputService3TestShapeInputService3TestCaseOperation1Input{
Description: aws.String("baz"),
SubStructure: &InputService3TestShapeSubStructure{
Bar: aws.String("b"),
Foo: aws.String("a"),
},
}
req, _ := svc.InputService3TestCaseOperation1Request(input)
r := req.HTTPRequest
// build request
req.Build()
if req.Error != nil {
t.Errorf("expect no error, got %v", req.Error)
}
// assert body
if r.Body == nil {
t.Errorf("expect body not to be nil")
}
body, _ := ioutil.ReadAll(r.Body)
awstesting.AssertXML(t, `<OperationRequest xmlns="https://foo/"><SubStructure><Foo>a</Foo><Bar>b</Bar></SubStructure><Description>baz</Description></OperationRequest>`, util.Trim(string(body)))
// assert URL
awstesting.AssertURL(t, "https://test/2014-01-01/hostedzone", r.URL.String())
// assert headers
}
func TestInputService3ProtocolTestNestedStructuresCase2(t *testing.T) {
svc := NewInputService3ProtocolTest(unit.Session, &aws.Config{Endpoint: aws.String("https://test")})
input := &InputService3TestShapeInputService3TestCaseOperation2Input{
Description: aws.String("baz"),
SubStructure: &InputService3TestShapeSubStructure{
Foo: aws.String("a"),
},
}
req, _ := svc.InputService3TestCaseOperation2Request(input)
r := req.HTTPRequest
// build request
req.Build()
if req.Error != nil {
t.Errorf("expect no error, got %v", req.Error)
}
// assert body
if r.Body == nil {
t.Errorf("expect body not to be nil")
}
body, _ := ioutil.ReadAll(r.Body)
awstesting.AssertXML(t, `<OperationRequest xmlns="https://foo/"><SubStructure><Foo>a</Foo></SubStructure><Description>baz</Description></OperationRequest>`, util.Trim(string(body)))
// assert URL
awstesting.AssertURL(t, "https://test/2014-01-01/hostedzone", r.URL.String())
// assert headers
}
func TestInputService4ProtocolTestNestedStructuresCase1(t *testing.T) {
svc := NewInputService4ProtocolTest(unit.Session, &aws.Config{Endpoint: aws.String("https://test")})
input := &InputService4TestShapeInputService4TestCaseOperation1Input{
Description: aws.String("baz"),
SubStructure: &InputService4TestShapeSubStructure{},
}
req, _ := svc.InputService4TestCaseOperation1Request(input)
r := req.HTTPRequest
// build request
req.Build()
if req.Error != nil {
t.Errorf("expect no error, got %v", req.Error)
}
// assert body
if r.Body == nil {
t.Errorf("expect body not to be nil")
}
body, _ := ioutil.ReadAll(r.Body)
awstesting.AssertXML(t, `<OperationRequest xmlns="https://foo/"><SubStructure /><Description>baz</Description></OperationRequest>`, util.Trim(string(body)))
// assert URL
awstesting.AssertURL(t, "https://test/2014-01-01/hostedzone", r.URL.String())
// assert headers
}
func TestInputService5ProtocolTestNonFlattenedListsCase1(t *testing.T) {
svc := NewInputService5ProtocolTest(unit.Session, &aws.Config{Endpoint: aws.String("https://test")})
input := &InputService5TestShapeInputService5TestCaseOperation1Input{
ListParam: []*string{
aws.String("one"),
aws.String("two"),
aws.String("three"),
},
}
req, _ := svc.InputService5TestCaseOperation1Request(input)
r := req.HTTPRequest
// build request
req.Build()
if req.Error != nil {
t.Errorf("expect no error, got %v", req.Error)
}
// assert body
if r.Body == nil {
t.Errorf("expect body not to be nil")
}
body, _ := ioutil.ReadAll(r.Body)
awstesting.AssertXML(t, `<OperationRequest xmlns="https://foo/"><ListParam><member>one</member><member>two</member><member>three</member></ListParam></OperationRequest>`, util.Trim(string(body)))
// assert URL
awstesting.AssertURL(t, "https://test/2014-01-01/hostedzone", r.URL.String())
// assert headers
}
func TestInputService6ProtocolTestNonFlattenedListsWithLocationNameCase1(t *testing.T) {
svc := NewInputService6ProtocolTest(unit.Session, &aws.Config{Endpoint: aws.String("https://test")})
input := &InputService6TestShapeInputService6TestCaseOperation1Input{
ListParam: []*string{
aws.String("one"),
aws.String("two"),
aws.String("three"),
},
}
req, _ := svc.InputService6TestCaseOperation1Request(input)
r := req.HTTPRequest
// build request
req.Build()
if req.Error != nil {
t.Errorf("expect no error, got %v", req.Error)
}
// assert body
if r.Body == nil {
t.Errorf("expect body not to be nil")
}
body, _ := ioutil.ReadAll(r.Body)
awstesting.AssertXML(t, `<OperationRequest xmlns="https://foo/"><AlternateName><NotMember>one</NotMember><NotMember>two</NotMember><NotMember>three</NotMember></AlternateName></OperationRequest>`, util.Trim(string(body)))
// assert URL
awstesting.AssertURL(t, "https://test/2014-01-01/hostedzone", r.URL.String())
// assert headers
}
func TestInputService7ProtocolTestFlattenedListsCase1(t *testing.T) {
svc := NewInputService7ProtocolTest(unit.Session, &aws.Config{Endpoint: aws.String("https://test")})
input := &InputService7TestShapeInputService7TestCaseOperation1Input{
ListParam: []*string{
aws.String("one"),
aws.String("two"),
aws.String("three"),
},
}
req, _ := svc.InputService7TestCaseOperation1Request(input)
r := req.HTTPRequest
// build request
req.Build()
if req.Error != nil {
t.Errorf("expect no error, got %v", req.Error)
}
// assert body
if r.Body == nil {
t.Errorf("expect body not to be nil")
}
body, _ := ioutil.ReadAll(r.Body)
awstesting.AssertXML(t, `<OperationRequest xmlns="https://foo/"><ListParam>one</ListParam><ListParam>two</ListParam><ListParam>three</ListParam></OperationRequest>`, util.Trim(string(body)))
// assert URL
awstesting.AssertURL(t, "https://test/2014-01-01/hostedzone", r.URL.String())
// assert headers
}
func TestInputService8ProtocolTestFlattenedListsWithLocationNameCase1(t *testing.T) {
svc := NewInputService8ProtocolTest(unit.Session, &aws.Config{Endpoint: aws.String("https://test")})
input := &InputService8TestShapeInputService8TestCaseOperation1Input{
ListParam: []*string{
aws.String("one"),
aws.String("two"),
aws.String("three"),
},
}
req, _ := svc.InputService8TestCaseOperation1Request(input)
r := req.HTTPRequest
// build request
req.Build()
if req.Error != nil {
t.Errorf("expect no error, got %v", req.Error)
}
// assert body
if r.Body == nil {
t.Errorf("expect body not to be nil")
}
body, _ := ioutil.ReadAll(r.Body)
awstesting.AssertXML(t, `<OperationRequest xmlns="https://foo/"><item>one</item><item>two</item><item>three</item></OperationRequest>`, util.Trim(string(body)))
// assert URL
awstesting.AssertURL(t, "https://test/2014-01-01/hostedzone", r.URL.String())
// assert headers
}
func TestInputService9ProtocolTestListOfStructuresCase1(t *testing.T) {
svc := NewInputService9ProtocolTest(unit.Session, &aws.Config{Endpoint: aws.String("https://test")})
input := &InputService9TestShapeInputService9TestCaseOperation1Input{
ListParam: []*InputService9TestShapeSingleFieldStruct{
{
Element: aws.String("one"),
},
{
Element: aws.String("two"),
},
{
Element: aws.String("three"),
},
},
}
req, _ := svc.InputService9TestCaseOperation1Request(input)
r := req.HTTPRequest
// build request
req.Build()
if req.Error != nil {
t.Errorf("expect no error, got %v", req.Error)
}
// assert body
if r.Body == nil {
t.Errorf("expect body not to be nil")
}
body, _ := ioutil.ReadAll(r.Body)
awstesting.AssertXML(t, `<OperationRequest xmlns="https://foo/"><item><value>one</value></item><item><value>two</value></item><item><value>three</value></item></OperationRequest>`, util.Trim(string(body)))
// assert URL
awstesting.AssertURL(t, "https://test/2014-01-01/hostedzone", r.URL.String())
// assert headers
}
func TestInputService10ProtocolTestBlobShapesCase1(t *testing.T) {
svc := NewInputService10ProtocolTest(unit.Session, &aws.Config{Endpoint: aws.String("https://test")})
input := &InputService10TestShapeInputService10TestCaseOperation1Input{
StructureParam: &InputService10TestShapeStructureShape{
B: []byte("foo"),
},
}
req, _ := svc.InputService10TestCaseOperation1Request(input)
r := req.HTTPRequest
// build request
req.Build()
if req.Error != nil {
t.Errorf("expect no error, got %v", req.Error)
}
// assert body
if r.Body == nil {
t.Errorf("expect body not to be nil")
}
body, _ := ioutil.ReadAll(r.Body)
awstesting.AssertXML(t, `<OperationRequest xmlns="https://foo/"><StructureParam><b>Zm9v</b></StructureParam></OperationRequest>`, util.Trim(string(body)))
// assert URL
awstesting.AssertURL(t, "https://test/2014-01-01/hostedzone", r.URL.String())
// assert headers
}
func TestInputService11ProtocolTestTimestampShapesCase1(t *testing.T) {
svc := NewInputService11ProtocolTest(unit.Session, &aws.Config{Endpoint: aws.String("https://test")})
input := &InputService11TestShapeInputService11TestCaseOperation1Input{
TimeArg: aws.Time(time.Unix(1422172800, 0)),
TimeArgInHeader: aws.Time(time.Unix(1422172800, 0)),
TimeArgInQuery: aws.Time(time.Unix(1422172800, 0)),
TimeCustom: aws.Time(time.Unix(1422172800, 0)),
TimeCustomInHeader: aws.Time(time.Unix(1422172800, 0)),
TimeCustomInQuery: aws.Time(time.Unix(1422172800, 0)),
TimeFormat: aws.Time(time.Unix(1422172800, 0)),
TimeFormatInHeader: aws.Time(time.Unix(1422172800, 0)),
TimeFormatInQuery: aws.Time(time.Unix(1422172800, 0)),
}
req, _ := svc.InputService11TestCaseOperation1Request(input)
r := req.HTTPRequest
// build request
req.Build()
if req.Error != nil {
t.Errorf("expect no error, got %v", req.Error)
}
// assert body
if r.Body == nil {
t.Errorf("expect body not to be nil")
}
body, _ := ioutil.ReadAll(r.Body)
awstesting.AssertXML(t, `<TimestampStructure xmlns="https://foo/"><TimeArg>2015-01-25T08:00:00Z</TimeArg><TimeCustom>Sun, 25 Jan 2015 08:00:00 GMT</TimeCustom><TimeFormat>Sun, 25 Jan 2015 08:00:00 GMT</TimeFormat></TimestampStructure>`, util.Trim(string(body)))
// assert URL
awstesting.AssertURL(t, "https://test/2014-01-01/hostedzone?TimeQuery=2015-01-25T08%3A00%3A00Z&TimeCustomQuery=1422172800&TimeFormatQuery=1422172800", r.URL.String())
// assert headers
if e, a := "Sun, 25 Jan 2015 08:00:00 GMT", r.Header.Get("x-amz-timearg"); e != a {
t.Errorf("expect %v, got %v", e, a)
}
if e, a := "1422172800", r.Header.Get("x-amz-timecustom-header"); e != a {
t.Errorf("expect %v, got %v", e, a)
}
if e, a := "1422172800", r.Header.Get("x-amz-timeformat-header"); e != a {
t.Errorf("expect %v, got %v", e, a)
}
}
func TestInputService12ProtocolTestHeaderMapsCase1(t *testing.T) {
svc := NewInputService12ProtocolTest(unit.Session, &aws.Config{Endpoint: aws.String("https://test")})
input := &InputService12TestShapeInputService12TestCaseOperation1Input{
Foo: map[string]*string{
"a": aws.String("b"),
"c": aws.String("d"),
},
}
req, _ := svc.InputService12TestCaseOperation1Request(input)
r := req.HTTPRequest
// build request
req.Build()
if req.Error != nil {
t.Errorf("expect no error, got %v", req.Error)
}
// assert URL
awstesting.AssertURL(t, "https://test/", r.URL.String())
// assert headers
if e, a := "b", r.Header.Get("x-foo-a"); e != a {
t.Errorf("expect %v, got %v", e, a)
}
if e, a := "d", r.Header.Get("x-foo-c"); e != a {
t.Errorf("expect %v, got %v", e, a)
}
}
func TestInputService13ProtocolTestQuerystringListOfStringsCase1(t *testing.T) {
svc := NewInputService13ProtocolTest(unit.Session, &aws.Config{Endpoint: aws.String("https://test")})
input := &InputService13TestShapeInputService13TestCaseOperation1Input{
Items: []*string{
aws.String("value1"),
aws.String("value2"),
},
}
req, _ := svc.InputService13TestCaseOperation1Request(input)
r := req.HTTPRequest
// build request
req.Build()
if req.Error != nil {
t.Errorf("expect no error, got %v", req.Error)
}
// assert URL
awstesting.AssertURL(t, "https://test/path?item=value1&item=value2", r.URL.String())
// assert headers
}
func TestInputService14ProtocolTestStringToStringMapsInQuerystringCase1(t *testing.T) {
svc := NewInputService14ProtocolTest(unit.Session, &aws.Config{Endpoint: aws.String("https://test")})
input := &InputService14TestShapeInputService14TestCaseOperation1Input{
PipelineId: aws.String("foo"),
QueryDoc: map[string]*string{
"bar": aws.String("baz"),
"fizz": aws.String("buzz"),
},
}
req, _ := svc.InputService14TestCaseOperation1Request(input)
r := req.HTTPRequest
// build request
req.Build()
if req.Error != nil {
t.Errorf("expect no error, got %v", req.Error)
}
// assert URL
awstesting.AssertURL(t, "https://test/2014-01-01/jobsByPipeline/foo?bar=baz&fizz=buzz", r.URL.String())
// assert headers
}
func TestInputService15ProtocolTestStringToStringListMapsInQuerystringCase1(t *testing.T) {
svc := NewInputService15ProtocolTest(unit.Session, &aws.Config{Endpoint: aws.String("https://test")})
input := &InputService15TestShapeInputService15TestCaseOperation1Input{
PipelineId: aws.String("id"),
QueryDoc: map[string][]*string{
"fizz": {
aws.String("buzz"),
aws.String("pop"),
},
"foo": {
aws.String("bar"),
aws.String("baz"),
},
},
}
req, _ := svc.InputService15TestCaseOperation1Request(input)
r := req.HTTPRequest
// build request
req.Build()
if req.Error != nil {
t.Errorf("expect no error, got %v", req.Error)
}
// assert URL
awstesting.AssertURL(t, "https://test/2014-01-01/jobsByPipeline/id?foo=bar&foo=baz&fizz=buzz&fizz=pop", r.URL.String())
// assert headers
}
func TestInputService16ProtocolTestBooleanInQuerystringCase1(t *testing.T) {
svc := NewInputService16ProtocolTest(unit.Session, &aws.Config{Endpoint: aws.String("https://test")})
input := &InputService16TestShapeInputService16TestCaseOperation1Input{
BoolQuery: aws.Bool(true),
}
req, _ := svc.InputService16TestCaseOperation1Request(input)
r := req.HTTPRequest
// build request
req.Build()
if req.Error != nil {
t.Errorf("expect no error, got %v", req.Error)
}
// assert URL
awstesting.AssertURL(t, "https://test/path?bool-query=true", r.URL.String())
// assert headers
}
func TestInputService16ProtocolTestBooleanInQuerystringCase2(t *testing.T) {
svc := NewInputService16ProtocolTest(unit.Session, &aws.Config{Endpoint: aws.String("https://test")})
input := &InputService16TestShapeInputService16TestCaseOperation2Input{
BoolQuery: aws.Bool(false),
}
req, _ := svc.InputService16TestCaseOperation2Request(input)
r := req.HTTPRequest
// build request
req.Build()
if req.Error != nil {
t.Errorf("expect no error, got %v", req.Error)
}
// assert URL
awstesting.AssertURL(t, "https://test/path?bool-query=false", r.URL.String())
// assert headers
}
func TestInputService17ProtocolTestStringPayloadCase1(t *testing.T) {
svc := NewInputService17ProtocolTest(unit.Session, &aws.Config{Endpoint: aws.String("https://test")})
input := &InputService17TestShapeInputService17TestCaseOperation1Input{
Foo: aws.String("bar"),
}
req, _ := svc.InputService17TestCaseOperation1Request(input)
r := req.HTTPRequest
// build request
req.Build()
if req.Error != nil {
t.Errorf("expect no error, got %v", req.Error)
}
// assert body
if r.Body == nil {
t.Errorf("expect body not to be nil")
}
body, _ := ioutil.ReadAll(r.Body)
if e, a := "bar", util.Trim(string(body)); e != a {
t.Errorf("expect %v, got %v", e, a)
}
// assert URL
awstesting.AssertURL(t, "https://test/", r.URL.String())
// assert headers
}
func TestInputService18ProtocolTestBlobPayloadCase1(t *testing.T) {
svc := NewInputService18ProtocolTest(unit.Session, &aws.Config{Endpoint: aws.String("https://test")})
input := &InputService18TestShapeInputService18TestCaseOperation1Input{
Foo: []byte("bar"),
}
req, _ := svc.InputService18TestCaseOperation1Request(input)
r := req.HTTPRequest
// build request
req.Build()
if req.Error != nil {
t.Errorf("expect no error, got %v", req.Error)
}
// assert body
if r.Body == nil {
t.Errorf("expect body not to be nil")
}
body, _ := ioutil.ReadAll(r.Body)
if e, a := "bar", util.Trim(string(body)); e != a {
t.Errorf("expect %v, got %v", e, a)
}
// assert URL
awstesting.AssertURL(t, "https://test/", r.URL.String())
// assert headers
}
func TestInputService18ProtocolTestBlobPayloadCase2(t *testing.T) {
svc := NewInputService18ProtocolTest(unit.Session, &aws.Config{Endpoint: aws.String("https://test")})
input := &InputService18TestShapeInputService18TestCaseOperation2Input{}
req, _ := svc.InputService18TestCaseOperation2Request(input)
r := req.HTTPRequest
// build request
req.Build()
if req.Error != nil {
t.Errorf("expect no error, got %v", req.Error)
}
// assert URL
awstesting.AssertURL(t, "https://test/", r.URL.String())
// assert headers
}
func TestInputService19ProtocolTestStructurePayloadCase1(t *testing.T) {
svc := NewInputService19ProtocolTest(unit.Session, &aws.Config{Endpoint: aws.String("https://test")})
input := &InputService19TestShapeInputService19TestCaseOperation1Input{
Foo: &InputService19TestShapeFooShape{
Baz: aws.String("bar"),
},
}
req, _ := svc.InputService19TestCaseOperation1Request(input)
r := req.HTTPRequest
// build request
req.Build()
if req.Error != nil {
t.Errorf("expect no error, got %v", req.Error)
}
// assert body
if r.Body == nil {
t.Errorf("expect body not to be nil")
}
body, _ := ioutil.ReadAll(r.Body)
awstesting.AssertXML(t, `<foo><baz>bar</baz></foo>`, util.Trim(string(body)))
// assert URL
awstesting.AssertURL(t, "https://test/", r.URL.String())
// assert headers
}
func TestInputService19ProtocolTestStructurePayloadCase2(t *testing.T) {
svc := NewInputService19ProtocolTest(unit.Session, &aws.Config{Endpoint: aws.String("https://test")})
input := &InputService19TestShapeInputService19TestCaseOperation2Input{}
req, _ := svc.InputService19TestCaseOperation2Request(input)
r := req.HTTPRequest
// build request
req.Build()
if req.Error != nil {
t.Errorf("expect no error, got %v", req.Error)
}
// assert URL
awstesting.AssertURL(t, "https://test/", r.URL.String())
// assert headers
}
func TestInputService19ProtocolTestStructurePayloadCase3(t *testing.T) {
svc := NewInputService19ProtocolTest(unit.Session, &aws.Config{Endpoint: aws.String("https://test")})
input := &InputService19TestShapeInputService19TestCaseOperation3Input{
Foo: &InputService19TestShapeFooShape{},
}
req, _ := svc.InputService19TestCaseOperation3Request(input)
r := req.HTTPRequest
// build request
req.Build()
if req.Error != nil {
t.Errorf("expect no error, got %v", req.Error)
}
// assert body
if r.Body == nil {
t.Errorf("expect body not to be nil")
}
body, _ := ioutil.ReadAll(r.Body)
awstesting.AssertXML(t, `<foo />`, util.Trim(string(body)))
// assert URL
awstesting.AssertURL(t, "https://test/", r.URL.String())
// assert headers
}
func TestInputService19ProtocolTestStructurePayloadCase4(t *testing.T) {
svc := NewInputService19ProtocolTest(unit.Session, &aws.Config{Endpoint: aws.String("https://test")})
input := &InputService19TestShapeInputService19TestCaseOperation4Input{}
req, _ := svc.InputService19TestCaseOperation4Request(input)
r := req.HTTPRequest
// build request
req.Build()
if req.Error != nil {
t.Errorf("expect no error, got %v", req.Error)
}
// assert URL
awstesting.AssertURL(t, "https://test/", r.URL.String())
// assert headers
}
func TestInputService20ProtocolTestXMLAttributeCase1(t *testing.T) {
svc := NewInputService20ProtocolTest(unit.Session, &aws.Config{Endpoint: aws.String("https://test")})
input := &InputService20TestShapeInputService20TestCaseOperation1Input{
Grant: &InputService20TestShapeGrant{
Grantee: &InputService20TestShapeGrantee{
EmailAddress: aws.String("[email protected]"),
Type: aws.String("CanonicalUser"),
},
},
}
req, _ := svc.InputService20TestCaseOperation1Request(input)
r := req.HTTPRequest
// build request
req.Build()
if req.Error != nil {
t.Errorf("expect no error, got %v", req.Error)
}
// assert body
if r.Body == nil {
t.Errorf("expect body not to be nil")
}
body, _ := ioutil.ReadAll(r.Body)
awstesting.AssertXML(t, `<Grant><Grantee xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="CanonicalUser"><EmailAddress>[email protected]</EmailAddress></Grantee></Grant>`, util.Trim(string(body)))
// assert URL
awstesting.AssertURL(t, "https://test/", r.URL.String())
// assert headers
}
func TestInputService21ProtocolTestGreedyKeysCase1(t *testing.T) {
svc := NewInputService21ProtocolTest(unit.Session, &aws.Config{Endpoint: aws.String("https://test")})
input := &InputService21TestShapeInputService21TestCaseOperation1Input{
Bucket: aws.String("my/bucket"),
Key: aws.String("testing /123"),
}
req, _ := svc.InputService21TestCaseOperation1Request(input)
r := req.HTTPRequest
// build request
req.Build()
if req.Error != nil {
t.Errorf("expect no error, got %v", req.Error)
}
// assert URL
awstesting.AssertURL(t, "https://test/my%2Fbucket/testing%20/123", r.URL.String())
// assert headers
}
func TestInputService22ProtocolTestOmitsNullQueryParamsButSerializesEmptyStringsCase1(t *testing.T) {
svc := NewInputService22ProtocolTest(unit.Session, &aws.Config{Endpoint: aws.String("https://test")})
input := &InputService22TestShapeInputService22TestCaseOperation1Input{}
req, _ := svc.InputService22TestCaseOperation1Request(input)
r := req.HTTPRequest
// build request
req.Build()
if req.Error != nil {
t.Errorf("expect no error, got %v", req.Error)
}
// assert URL
awstesting.AssertURL(t, "https://test/path", r.URL.String())
// assert headers
}
func TestInputService22ProtocolTestOmitsNullQueryParamsButSerializesEmptyStringsCase2(t *testing.T) {
svc := NewInputService22ProtocolTest(unit.Session, &aws.Config{Endpoint: aws.String("https://test")})
input := &InputService22TestShapeInputService22TestCaseOperation2Input{
Foo: aws.String(""),
}
req, _ := svc.InputService22TestCaseOperation2Request(input)
r := req.HTTPRequest
// build request
req.Build()
if req.Error != nil {
t.Errorf("expect no error, got %v", req.Error)
}
// assert URL
awstesting.AssertURL(t, "https://test/path?abc=mno¶m-name=", r.URL.String())
// assert headers
}
func TestInputService23ProtocolTestRecursiveShapesCase1(t *testing.T) {
svc := NewInputService23ProtocolTest(unit.Session, &aws.Config{Endpoint: aws.String("https://test")})
input := &InputService23TestShapeInputService23TestCaseOperation1Input{
RecursiveStruct: &InputService23TestShapeRecursiveStructType{
NoRecurse: aws.String("foo"),
},
}
req, _ := svc.InputService23TestCaseOperation1Request(input)
r := req.HTTPRequest
// build request
req.Build()
if req.Error != nil {
t.Errorf("expect no error, got %v", req.Error)
}
// assert body
if r.Body == nil {
t.Errorf("expect body not to be nil")
}
body, _ := ioutil.ReadAll(r.Body)
awstesting.AssertXML(t, `<OperationRequest xmlns="https://foo/"><RecursiveStruct><NoRecurse>foo</NoRecurse></RecursiveStruct></OperationRequest>`, util.Trim(string(body)))
// assert URL
awstesting.AssertURL(t, "https://test/path", r.URL.String())
// assert headers
}
func TestInputService23ProtocolTestRecursiveShapesCase2(t *testing.T) {
svc := NewInputService23ProtocolTest(unit.Session, &aws.Config{Endpoint: aws.String("https://test")})
input := &InputService23TestShapeInputService23TestCaseOperation2Input{
RecursiveStruct: &InputService23TestShapeRecursiveStructType{
RecursiveStruct: &InputService23TestShapeRecursiveStructType{
NoRecurse: aws.String("foo"),
},
},
}
req, _ := svc.InputService23TestCaseOperation2Request(input)
r := req.HTTPRequest
// build request
req.Build()
if req.Error != nil {
t.Errorf("expect no error, got %v", req.Error)
}
// assert body
if r.Body == nil {
t.Errorf("expect body not to be nil")
}
body, _ := ioutil.ReadAll(r.Body)
awstesting.AssertXML(t, `<OperationRequest xmlns="https://foo/"><RecursiveStruct><RecursiveStruct><NoRecurse>foo</NoRecurse></RecursiveStruct></RecursiveStruct></OperationRequest>`, util.Trim(string(body)))
// assert URL
awstesting.AssertURL(t, "https://test/path", r.URL.String())
// assert headers
}
func TestInputService23ProtocolTestRecursiveShapesCase3(t *testing.T) {
svc := NewInputService23ProtocolTest(unit.Session, &aws.Config{Endpoint: aws.String("https://test")})
input := &InputService23TestShapeInputService23TestCaseOperation3Input{
RecursiveStruct: &InputService23TestShapeRecursiveStructType{
RecursiveStruct: &InputService23TestShapeRecursiveStructType{
RecursiveStruct: &InputService23TestShapeRecursiveStructType{
RecursiveStruct: &InputService23TestShapeRecursiveStructType{
NoRecurse: aws.String("foo"),
},
},
},
},
}
req, _ := svc.InputService23TestCaseOperation3Request(input)
r := req.HTTPRequest
// build request
req.Build()
if req.Error != nil {
t.Errorf("expect no error, got %v", req.Error)
}
// assert body
if r.Body == nil {
t.Errorf("expect body not to be nil")
}
body, _ := ioutil.ReadAll(r.Body)
awstesting.AssertXML(t, `<OperationRequest xmlns="https://foo/"><RecursiveStruct><RecursiveStruct><RecursiveStruct><RecursiveStruct><NoRecurse>foo</NoRecurse></RecursiveStruct></RecursiveStruct></RecursiveStruct></RecursiveStruct></OperationRequest>`, util.Trim(string(body)))
// assert URL
awstesting.AssertURL(t, "https://test/path", r.URL.String())
// assert headers
}
func TestInputService23ProtocolTestRecursiveShapesCase4(t *testing.T) {
svc := NewInputService23ProtocolTest(unit.Session, &aws.Config{Endpoint: aws.String("https://test")})
input := &InputService23TestShapeInputService23TestCaseOperation4Input{
RecursiveStruct: &InputService23TestShapeRecursiveStructType{
RecursiveList: []*InputService23TestShapeRecursiveStructType{
{
NoRecurse: aws.String("foo"),
},
{
NoRecurse: aws.String("bar"),
},
},
},
}
req, _ := svc.InputService23TestCaseOperation4Request(input)
r := req.HTTPRequest
// build request
req.Build()
if req.Error != nil {
t.Errorf("expect no error, got %v", req.Error)
}
// assert body
if r.Body == nil {
t.Errorf("expect body not to be nil")
}
body, _ := ioutil.ReadAll(r.Body)
awstesting.AssertXML(t, `<OperationRequest xmlns="https://foo/"><RecursiveStruct><RecursiveList><member><NoRecurse>foo</NoRecurse></member><member><NoRecurse>bar</NoRecurse></member></RecursiveList></RecursiveStruct></OperationRequest>`, util.Trim(string(body)))
// assert URL
awstesting.AssertURL(t, "https://test/path", r.URL.String())
// assert headers
}
func TestInputService23ProtocolTestRecursiveShapesCase5(t *testing.T) {
svc := NewInputService23ProtocolTest(unit.Session, &aws.Config{Endpoint: aws.String("https://test")})
input := &InputService23TestShapeInputService23TestCaseOperation5Input{
RecursiveStruct: &InputService23TestShapeRecursiveStructType{
RecursiveList: []*InputService23TestShapeRecursiveStructType{
{
NoRecurse: aws.String("foo"),
},
{
RecursiveStruct: &InputService23TestShapeRecursiveStructType{
NoRecurse: aws.String("bar"),
},
},
},
},
}
req, _ := svc.InputService23TestCaseOperation5Request(input)
r := req.HTTPRequest
// build request
req.Build()
if req.Error != nil {
t.Errorf("expect no error, got %v", req.Error)
}
// assert body
if r.Body == nil {
t.Errorf("expect body not to be nil")
}
body, _ := ioutil.ReadAll(r.Body)
awstesting.AssertXML(t, `<OperationRequest xmlns="https://foo/"><RecursiveStruct><RecursiveList><member><NoRecurse>foo</NoRecurse></member><member><RecursiveStruct><NoRecurse>bar</NoRecurse></RecursiveStruct></member></RecursiveList></RecursiveStruct></OperationRequest>`, util.Trim(string(body)))
// assert URL
awstesting.AssertURL(t, "https://test/path", r.URL.String())
// assert headers
}
func TestInputService23ProtocolTestRecursiveShapesCase6(t *testing.T) {
svc := NewInputService23ProtocolTest(unit.Session, &aws.Config{Endpoint: aws.String("https://test")})
input := &InputService23TestShapeInputService23TestCaseOperation6Input{
RecursiveStruct: &InputService23TestShapeRecursiveStructType{
RecursiveMap: map[string]*InputService23TestShapeRecursiveStructType{
"bar": {
NoRecurse: aws.String("bar"),
},
"foo": {
NoRecurse: aws.String("foo"),
},
},
},
}
req, _ := svc.InputService23TestCaseOperation6Request(input)
r := req.HTTPRequest
// build request
req.Build()
if req.Error != nil {
t.Errorf("expect no error, got %v", req.Error)
}
// assert body
if r.Body == nil {
t.Errorf("expect body not to be nil")
}
body, _ := ioutil.ReadAll(r.Body)
awstesting.AssertXML(t, `<OperationRequest xmlns="https://foo/"><RecursiveStruct><RecursiveMap><entry><key>bar</key><value><NoRecurse>bar</NoRecurse></value></entry><entry><key>foo</key><value><NoRecurse>foo</NoRecurse></value></entry></RecursiveMap></RecursiveStruct></OperationRequest>`, util.Trim(string(body)))
// assert URL
awstesting.AssertURL(t, "https://test/path", r.URL.String())
// assert headers
}
func TestInputService24ProtocolTestIdempotencyTokenAutoFillCase1(t *testing.T) {
svc := NewInputService24ProtocolTest(unit.Session, &aws.Config{Endpoint: aws.String("https://test")})
input := &InputService24TestShapeInputService24TestCaseOperation1Input{
Token: aws.String("abc123"),
}
req, _ := svc.InputService24TestCaseOperation1Request(input)
r := req.HTTPRequest
// build request
req.Build()
if req.Error != nil {
t.Errorf("expect no error, got %v", req.Error)
}
// assert body
if r.Body == nil {
t.Errorf("expect body not to be nil")
}
body, _ := ioutil.ReadAll(r.Body)
awstesting.AssertXML(t, `<InputShape><Token>abc123</Token></InputShape>`, util.Trim(string(body)))
// assert URL
awstesting.AssertURL(t, "https://test/path", r.URL.String())
// assert headers
}
func TestInputService24ProtocolTestIdempotencyTokenAutoFillCase2(t *testing.T) {
svc := NewInputService24ProtocolTest(unit.Session, &aws.Config{Endpoint: aws.String("https://test")})
input := &InputService24TestShapeInputService24TestCaseOperation2Input{}
req, _ := svc.InputService24TestCaseOperation2Request(input)
r := req.HTTPRequest
// build request
req.Build()
if req.Error != nil {
t.Errorf("expect no error, got %v", req.Error)
}
// assert body
if r.Body == nil {
t.Errorf("expect body not to be nil")
}
body, _ := ioutil.ReadAll(r.Body)
awstesting.AssertXML(t, `<InputShape><Token>00000000-0000-4000-8000-000000000000</Token></InputShape>`, util.Trim(string(body)))
// assert URL
awstesting.AssertURL(t, "https://test/path", r.URL.String())
// assert headers
}
func TestInputService25ProtocolTestEnumCase1(t *testing.T) {
svc := NewInputService25ProtocolTest(unit.Session, &aws.Config{Endpoint: aws.String("https://test")})
input := &InputService25TestShapeInputService25TestCaseOperation1Input{
FooEnum: aws.String("foo"),
HeaderEnum: aws.String("baz"),
ListEnums: []*string{
aws.String("foo"),
aws.String(""),
aws.String("bar"),
},
URIFooEnum: aws.String("bar"),
URIListEnums: []*string{
aws.String("0"),
aws.String(""),
aws.String("1"),
},
}
req, _ := svc.InputService25TestCaseOperation1Request(input)
r := req.HTTPRequest
// build request
req.Build()
if req.Error != nil {
t.Errorf("expect no error, got %v", req.Error)
}
// assert body
if r.Body == nil {
t.Errorf("expect body not to be nil")
}
body, _ := ioutil.ReadAll(r.Body)
awstesting.AssertXML(t, `<InputShape><FooEnum>foo</FooEnum><ListEnums><member>foo</member><member></member><member>bar</member></ListEnums></InputShape>`, util.Trim(string(body)))
// assert URL
awstesting.AssertURL(t, "https://test/Enum/bar?ListEnums=0&ListEnums=&ListEnums=1", r.URL.String())
// assert headers
if e, a := "baz", r.Header.Get("x-amz-enum"); e != a {
t.Errorf("expect %v, got %v", e, a)
}
}
func TestInputService25ProtocolTestEnumCase2(t *testing.T) {
svc := NewInputService25ProtocolTest(unit.Session, &aws.Config{Endpoint: aws.String("https://test")})
input := &InputService25TestShapeInputService25TestCaseOperation2Input{
URIFooEnum: aws.String("bar"),
}
req, _ := svc.InputService25TestCaseOperation2Request(input)
r := req.HTTPRequest
// build request
req.Build()
if req.Error != nil {
t.Errorf("expect no error, got %v", req.Error)
}
// assert URL
awstesting.AssertURL(t, "https://test/Enum/bar", r.URL.String())
// assert headers
}
func TestInputService26ProtocolTestEndpointHostTraitCase1(t *testing.T) {
svc := NewInputService26ProtocolTest(unit.Session, &aws.Config{Endpoint: aws.String("https://service.region.amazonaws.com")})
input := &InputService26TestShapeInputService26TestCaseOperation1Input{
Name: aws.String("myname"),
}
req, _ := svc.InputService26TestCaseOperation1Request(input)
r := req.HTTPRequest
// build request
req.Build()
if req.Error != nil {
t.Errorf("expect no error, got %v", req.Error)
}
// assert body
if r.Body == nil {
t.Errorf("expect body not to be nil")
}
body, _ := ioutil.ReadAll(r.Body)
awstesting.AssertXML(t, `<StaticOpRequest><Name>myname</Name></StaticOpRequest>`, util.Trim(string(body)))
// assert URL
awstesting.AssertURL(t, "https://data-service.region.amazonaws.com/path", r.URL.String())
// assert headers
}
func TestInputService26ProtocolTestEndpointHostTraitCase2(t *testing.T) {
svc := NewInputService26ProtocolTest(unit.Session, &aws.Config{Endpoint: aws.String("https://service.region.amazonaws.com")})
input := &InputService26TestShapeInputService26TestCaseOperation2Input{
Name: aws.String("myname"),
}
req, _ := svc.InputService26TestCaseOperation2Request(input)
r := req.HTTPRequest
// build request
req.Build()
if req.Error != nil {
t.Errorf("expect no error, got %v", req.Error)
}
// assert body
if r.Body == nil {
t.Errorf("expect body not to be nil")
}
body, _ := ioutil.ReadAll(r.Body)
awstesting.AssertXML(t, `<MemberRefOpRequest><Name>myname</Name></MemberRefOpRequest>`, util.Trim(string(body)))
// assert URL
awstesting.AssertURL(t, "https://foo-myname.service.region.amazonaws.com/path", r.URL.String())
// assert headers
}
func TestInputService27ProtocolTestHeaderWhitespaceCase1(t *testing.T) {
svc := NewInputService27ProtocolTest(unit.Session, &aws.Config{Endpoint: aws.String("https://test")})
input := &InputService27TestShapeInputService27TestCaseOperation1Input{
Header1: aws.String(" headerValue"),
HeaderMap: map[string]*string{
" key-leading-space": aws.String("value"),
" key-with-space ": aws.String("value"),
"leading-space": aws.String(" value"),
"leading-tab": aws.String(" value"),
"with-space": aws.String(" value "),
},
}
req, _ := svc.InputService27TestCaseOperation1Request(input)
r := req.HTTPRequest
// build request
req.Build()
if req.Error != nil {
t.Errorf("expect no error, got %v", req.Error)
}
// assert URL
awstesting.AssertURL(t, "https://test/", r.URL.String())
// assert headers
if e, a := "value", r.Header.Get("header-map-key-leading-space"); e != a {
t.Errorf("expect %v, got %v", e, a)
}
if e, a := "value", r.Header.Get("header-map-key-with-space"); e != a {
t.Errorf("expect %v, got %v", e, a)
}
if e, a := "value", r.Header.Get("header-map-leading-space"); e != a {
t.Errorf("expect %v, got %v", e, a)
}
if e, a := "value", r.Header.Get("header-map-leading-tab"); e != a {
t.Errorf("expect %v, got %v", e, a)
}
if e, a := "value", r.Header.Get("header-map-with-space"); e != a {
t.Errorf("expect %v, got %v", e, a)
}
if e, a := "headerValue", r.Header.Get("header1"); e != a {
t.Errorf("expect %v, got %v", e, a)
}
}
| 7,335 |
session-manager-plugin | aws | Go | // Package restxml provides RESTful XML serialization of AWS
// requests and responses.
package restxml
//go:generate go run -tags codegen ../../../private/model/cli/gen-protocol-tests ../../../models/protocol_tests/input/rest-xml.json build_test.go
//go:generate go run -tags codegen ../../../private/model/cli/gen-protocol-tests ../../../models/protocol_tests/output/rest-xml.json unmarshal_test.go
import (
"bytes"
"encoding/xml"
"github.com/aws/aws-sdk-go/aws/awserr"
"github.com/aws/aws-sdk-go/aws/request"
"github.com/aws/aws-sdk-go/private/protocol/query"
"github.com/aws/aws-sdk-go/private/protocol/rest"
"github.com/aws/aws-sdk-go/private/protocol/xml/xmlutil"
)
// BuildHandler is a named request handler for building restxml protocol requests
var BuildHandler = request.NamedHandler{Name: "awssdk.restxml.Build", Fn: Build}
// UnmarshalHandler is a named request handler for unmarshaling restxml protocol requests
var UnmarshalHandler = request.NamedHandler{Name: "awssdk.restxml.Unmarshal", Fn: Unmarshal}
// UnmarshalMetaHandler is a named request handler for unmarshaling restxml protocol request metadata
var UnmarshalMetaHandler = request.NamedHandler{Name: "awssdk.restxml.UnmarshalMeta", Fn: UnmarshalMeta}
// UnmarshalErrorHandler is a named request handler for unmarshaling restxml protocol request errors
var UnmarshalErrorHandler = request.NamedHandler{Name: "awssdk.restxml.UnmarshalError", Fn: UnmarshalError}
// Build builds a request payload for the REST XML protocol.
func Build(r *request.Request) {
rest.Build(r)
if t := rest.PayloadType(r.Params); t == "structure" || t == "" {
var buf bytes.Buffer
err := xmlutil.BuildXML(r.Params, xml.NewEncoder(&buf))
if err != nil {
r.Error = awserr.NewRequestFailure(
awserr.New(request.ErrCodeSerialization,
"failed to encode rest XML request", err),
0,
r.RequestID,
)
return
}
r.SetBufferBody(buf.Bytes())
}
}
// Unmarshal unmarshals a payload response for the REST XML protocol.
func Unmarshal(r *request.Request) {
if t := rest.PayloadType(r.Data); t == "structure" || t == "" {
defer r.HTTPResponse.Body.Close()
decoder := xml.NewDecoder(r.HTTPResponse.Body)
err := xmlutil.UnmarshalXML(r.Data, decoder, "")
if err != nil {
r.Error = awserr.NewRequestFailure(
awserr.New(request.ErrCodeSerialization,
"failed to decode REST XML response", err),
r.HTTPResponse.StatusCode,
r.RequestID,
)
return
}
} else {
rest.Unmarshal(r)
}
}
// UnmarshalMeta unmarshals response headers for the REST XML protocol.
func UnmarshalMeta(r *request.Request) {
rest.UnmarshalMeta(r)
}
// UnmarshalError unmarshals a response error for the REST XML protocol.
func UnmarshalError(r *request.Request) {
query.UnmarshalError(r)
}
| 80 |
session-manager-plugin | aws | Go | // Code generated by models/protocol_tests/generate.go. DO NOT EDIT.
package restxml_test
import (
"bytes"
"encoding/json"
"encoding/xml"
"fmt"
"io"
"io/ioutil"
"net/http"
"net/url"
"reflect"
"testing"
"time"
"github.com/aws/aws-sdk-go/aws"
"github.com/aws/aws-sdk-go/aws/client"
"github.com/aws/aws-sdk-go/aws/client/metadata"
"github.com/aws/aws-sdk-go/aws/request"
"github.com/aws/aws-sdk-go/aws/signer/v4"
"github.com/aws/aws-sdk-go/awstesting"
"github.com/aws/aws-sdk-go/awstesting/unit"
"github.com/aws/aws-sdk-go/private/protocol"
"github.com/aws/aws-sdk-go/private/protocol/restxml"
"github.com/aws/aws-sdk-go/private/protocol/xml/xmlutil"
"github.com/aws/aws-sdk-go/private/util"
)
var _ bytes.Buffer // always import bytes
var _ http.Request
var _ json.Marshaler
var _ time.Time
var _ xmlutil.XMLNode
var _ xml.Attr
var _ = ioutil.Discard
var _ = util.Trim("")
var _ = url.Values{}
var _ = io.EOF
var _ = aws.String
var _ = fmt.Println
var _ = reflect.Value{}
func init() {
protocol.RandReader = &awstesting.ZeroReader{}
}
// OutputService1ProtocolTest provides the API operation methods for making requests to
// . See this package's package overview docs
// for details on the service.
//
// OutputService1ProtocolTest methods are safe to use concurrently. It is not safe to
// modify mutate any of the struct's properties though.
type OutputService1ProtocolTest struct {
*client.Client
}
// New creates a new instance of the OutputService1ProtocolTest 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 OutputService1ProtocolTest client from just a session.
// svc := outputservice1protocoltest.New(mySession)
//
// // Create a OutputService1ProtocolTest client with additional configuration
// svc := outputservice1protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2"))
func NewOutputService1ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *OutputService1ProtocolTest {
c := p.ClientConfig("outputservice1protocoltest", cfgs...)
return newOutputService1ProtocolTestClient(*c.Config, c.Handlers, c.PartitionID, c.Endpoint, c.SigningRegion, c.SigningName)
}
// newClient creates, initializes and returns a new service client instance.
func newOutputService1ProtocolTestClient(cfg aws.Config, handlers request.Handlers, partitionID, endpoint, signingRegion, signingName string) *OutputService1ProtocolTest {
svc := &OutputService1ProtocolTest{
Client: client.New(
cfg,
metadata.ClientInfo{
ServiceName: "OutputService1ProtocolTest",
ServiceID: "OutputService1ProtocolTest",
SigningName: signingName,
SigningRegion: signingRegion,
PartitionID: partitionID,
Endpoint: endpoint,
APIVersion: "",
},
handlers,
),
}
// Handlers
svc.Handlers.Sign.PushBackNamed(v4.SignRequestHandler)
svc.Handlers.Build.PushBackNamed(restxml.BuildHandler)
svc.Handlers.Unmarshal.PushBackNamed(restxml.UnmarshalHandler)
svc.Handlers.UnmarshalMeta.PushBackNamed(restxml.UnmarshalMetaHandler)
svc.Handlers.UnmarshalError.PushBackNamed(restxml.UnmarshalErrorHandler)
return svc
}
// newRequest creates a new request for a OutputService1ProtocolTest operation and runs any
// custom request initialization.
func (c *OutputService1ProtocolTest) newRequest(op *request.Operation, params, data interface{}) *request.Request {
req := c.NewRequest(op, params, data)
return req
}
const opOutputService1TestCaseOperation1 = "OperationName"
// OutputService1TestCaseOperation1Request generates a "aws/request.Request" representing the
// client's request for the OutputService1TestCaseOperation1 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 OutputService1TestCaseOperation1 for more information on using the OutputService1TestCaseOperation1
// 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 OutputService1TestCaseOperation1Request method.
// req, resp := client.OutputService1TestCaseOperation1Request(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
func (c *OutputService1ProtocolTest) OutputService1TestCaseOperation1Request(input *OutputService1TestShapeOutputService1TestCaseOperation1Input) (req *request.Request, output *OutputService1TestShapeOutputService1TestCaseOperation1Output) {
op := &request.Operation{
Name: opOutputService1TestCaseOperation1,
HTTPPath: "/",
}
if input == nil {
input = &OutputService1TestShapeOutputService1TestCaseOperation1Input{}
}
output = &OutputService1TestShapeOutputService1TestCaseOperation1Output{}
req = c.newRequest(op, input, output)
return
}
// OutputService1TestCaseOperation1 API operation for .
//
// 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 's
// API operation OutputService1TestCaseOperation1 for usage and error information.
func (c *OutputService1ProtocolTest) OutputService1TestCaseOperation1(input *OutputService1TestShapeOutputService1TestCaseOperation1Input) (*OutputService1TestShapeOutputService1TestCaseOperation1Output, error) {
req, out := c.OutputService1TestCaseOperation1Request(input)
return out, req.Send()
}
// OutputService1TestCaseOperation1WithContext is the same as OutputService1TestCaseOperation1 with the addition of
// the ability to pass a context and additional request options.
//
// See OutputService1TestCaseOperation1 for details on how to use this API operation.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
func (c *OutputService1ProtocolTest) OutputService1TestCaseOperation1WithContext(ctx aws.Context, input *OutputService1TestShapeOutputService1TestCaseOperation1Input, opts ...request.Option) (*OutputService1TestShapeOutputService1TestCaseOperation1Output, error) {
req, out := c.OutputService1TestCaseOperation1Request(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
const opOutputService1TestCaseOperation2 = "OperationName"
// OutputService1TestCaseOperation2Request generates a "aws/request.Request" representing the
// client's request for the OutputService1TestCaseOperation2 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 OutputService1TestCaseOperation2 for more information on using the OutputService1TestCaseOperation2
// 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 OutputService1TestCaseOperation2Request method.
// req, resp := client.OutputService1TestCaseOperation2Request(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
func (c *OutputService1ProtocolTest) OutputService1TestCaseOperation2Request(input *OutputService1TestShapeOutputService1TestCaseOperation2Input) (req *request.Request, output *OutputService1TestShapeOutputService1TestCaseOperation2Output) {
op := &request.Operation{
Name: opOutputService1TestCaseOperation2,
HTTPPath: "/",
}
if input == nil {
input = &OutputService1TestShapeOutputService1TestCaseOperation2Input{}
}
output = &OutputService1TestShapeOutputService1TestCaseOperation2Output{}
req = c.newRequest(op, input, output)
return
}
// OutputService1TestCaseOperation2 API operation for .
//
// 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 's
// API operation OutputService1TestCaseOperation2 for usage and error information.
func (c *OutputService1ProtocolTest) OutputService1TestCaseOperation2(input *OutputService1TestShapeOutputService1TestCaseOperation2Input) (*OutputService1TestShapeOutputService1TestCaseOperation2Output, error) {
req, out := c.OutputService1TestCaseOperation2Request(input)
return out, req.Send()
}
// OutputService1TestCaseOperation2WithContext is the same as OutputService1TestCaseOperation2 with the addition of
// the ability to pass a context and additional request options.
//
// See OutputService1TestCaseOperation2 for details on how to use this API operation.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
func (c *OutputService1ProtocolTest) OutputService1TestCaseOperation2WithContext(ctx aws.Context, input *OutputService1TestShapeOutputService1TestCaseOperation2Input, opts ...request.Option) (*OutputService1TestShapeOutputService1TestCaseOperation2Output, error) {
req, out := c.OutputService1TestCaseOperation2Request(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
type OutputService1TestShapeOutputService1TestCaseOperation1Input struct {
_ struct{} `type:"structure"`
}
type OutputService1TestShapeOutputService1TestCaseOperation1Output struct {
_ struct{} `type:"structure"`
// Blob is automatically base64 encoded/decoded by the SDK.
Blob []byte `type:"blob"`
// BlobHeader is automatically base64 encoded/decoded by the SDK.
BlobHeader []byte `location:"header" type:"blob"`
Char *string `type:"character"`
Double *float64 `type:"double"`
FalseBool *bool `type:"boolean"`
Float *float64 `type:"float"`
ImaHeader *string `location:"header" type:"string"`
ImaHeaderLocation *string `location:"header" locationName:"X-Foo" type:"string"`
Long *int64 `type:"long"`
Num *int64 `locationName:"FooNum" type:"integer"`
Str *string `type:"string"`
Timestamp *time.Time `type:"timestamp"`
TrueBool *bool `type:"boolean"`
}
// SetBlob sets the Blob field's value.
func (s *OutputService1TestShapeOutputService1TestCaseOperation1Output) SetBlob(v []byte) *OutputService1TestShapeOutputService1TestCaseOperation1Output {
s.Blob = v
return s
}
// SetBlobHeader sets the BlobHeader field's value.
func (s *OutputService1TestShapeOutputService1TestCaseOperation1Output) SetBlobHeader(v []byte) *OutputService1TestShapeOutputService1TestCaseOperation1Output {
s.BlobHeader = v
return s
}
// SetChar sets the Char field's value.
func (s *OutputService1TestShapeOutputService1TestCaseOperation1Output) SetChar(v string) *OutputService1TestShapeOutputService1TestCaseOperation1Output {
s.Char = &v
return s
}
// SetDouble sets the Double field's value.
func (s *OutputService1TestShapeOutputService1TestCaseOperation1Output) SetDouble(v float64) *OutputService1TestShapeOutputService1TestCaseOperation1Output {
s.Double = &v
return s
}
// SetFalseBool sets the FalseBool field's value.
func (s *OutputService1TestShapeOutputService1TestCaseOperation1Output) SetFalseBool(v bool) *OutputService1TestShapeOutputService1TestCaseOperation1Output {
s.FalseBool = &v
return s
}
// SetFloat sets the Float field's value.
func (s *OutputService1TestShapeOutputService1TestCaseOperation1Output) SetFloat(v float64) *OutputService1TestShapeOutputService1TestCaseOperation1Output {
s.Float = &v
return s
}
// SetImaHeader sets the ImaHeader field's value.
func (s *OutputService1TestShapeOutputService1TestCaseOperation1Output) SetImaHeader(v string) *OutputService1TestShapeOutputService1TestCaseOperation1Output {
s.ImaHeader = &v
return s
}
// SetImaHeaderLocation sets the ImaHeaderLocation field's value.
func (s *OutputService1TestShapeOutputService1TestCaseOperation1Output) SetImaHeaderLocation(v string) *OutputService1TestShapeOutputService1TestCaseOperation1Output {
s.ImaHeaderLocation = &v
return s
}
// SetLong sets the Long field's value.
func (s *OutputService1TestShapeOutputService1TestCaseOperation1Output) SetLong(v int64) *OutputService1TestShapeOutputService1TestCaseOperation1Output {
s.Long = &v
return s
}
// SetNum sets the Num field's value.
func (s *OutputService1TestShapeOutputService1TestCaseOperation1Output) SetNum(v int64) *OutputService1TestShapeOutputService1TestCaseOperation1Output {
s.Num = &v
return s
}
// SetStr sets the Str field's value.
func (s *OutputService1TestShapeOutputService1TestCaseOperation1Output) SetStr(v string) *OutputService1TestShapeOutputService1TestCaseOperation1Output {
s.Str = &v
return s
}
// SetTimestamp sets the Timestamp field's value.
func (s *OutputService1TestShapeOutputService1TestCaseOperation1Output) SetTimestamp(v time.Time) *OutputService1TestShapeOutputService1TestCaseOperation1Output {
s.Timestamp = &v
return s
}
// SetTrueBool sets the TrueBool field's value.
func (s *OutputService1TestShapeOutputService1TestCaseOperation1Output) SetTrueBool(v bool) *OutputService1TestShapeOutputService1TestCaseOperation1Output {
s.TrueBool = &v
return s
}
type OutputService1TestShapeOutputService1TestCaseOperation2Input struct {
_ struct{} `type:"structure"`
}
type OutputService1TestShapeOutputService1TestCaseOperation2Output struct {
_ struct{} `type:"structure"`
// Blob is automatically base64 encoded/decoded by the SDK.
Blob []byte `type:"blob"`
// BlobHeader is automatically base64 encoded/decoded by the SDK.
BlobHeader []byte `location:"header" type:"blob"`
Char *string `type:"character"`
Double *float64 `type:"double"`
FalseBool *bool `type:"boolean"`
Float *float64 `type:"float"`
ImaHeader *string `location:"header" type:"string"`
ImaHeaderLocation *string `location:"header" locationName:"X-Foo" type:"string"`
Long *int64 `type:"long"`
Num *int64 `locationName:"FooNum" type:"integer"`
Str *string `type:"string"`
Timestamp *time.Time `type:"timestamp"`
TrueBool *bool `type:"boolean"`
}
// SetBlob sets the Blob field's value.
func (s *OutputService1TestShapeOutputService1TestCaseOperation2Output) SetBlob(v []byte) *OutputService1TestShapeOutputService1TestCaseOperation2Output {
s.Blob = v
return s
}
// SetBlobHeader sets the BlobHeader field's value.
func (s *OutputService1TestShapeOutputService1TestCaseOperation2Output) SetBlobHeader(v []byte) *OutputService1TestShapeOutputService1TestCaseOperation2Output {
s.BlobHeader = v
return s
}
// SetChar sets the Char field's value.
func (s *OutputService1TestShapeOutputService1TestCaseOperation2Output) SetChar(v string) *OutputService1TestShapeOutputService1TestCaseOperation2Output {
s.Char = &v
return s
}
// SetDouble sets the Double field's value.
func (s *OutputService1TestShapeOutputService1TestCaseOperation2Output) SetDouble(v float64) *OutputService1TestShapeOutputService1TestCaseOperation2Output {
s.Double = &v
return s
}
// SetFalseBool sets the FalseBool field's value.
func (s *OutputService1TestShapeOutputService1TestCaseOperation2Output) SetFalseBool(v bool) *OutputService1TestShapeOutputService1TestCaseOperation2Output {
s.FalseBool = &v
return s
}
// SetFloat sets the Float field's value.
func (s *OutputService1TestShapeOutputService1TestCaseOperation2Output) SetFloat(v float64) *OutputService1TestShapeOutputService1TestCaseOperation2Output {
s.Float = &v
return s
}
// SetImaHeader sets the ImaHeader field's value.
func (s *OutputService1TestShapeOutputService1TestCaseOperation2Output) SetImaHeader(v string) *OutputService1TestShapeOutputService1TestCaseOperation2Output {
s.ImaHeader = &v
return s
}
// SetImaHeaderLocation sets the ImaHeaderLocation field's value.
func (s *OutputService1TestShapeOutputService1TestCaseOperation2Output) SetImaHeaderLocation(v string) *OutputService1TestShapeOutputService1TestCaseOperation2Output {
s.ImaHeaderLocation = &v
return s
}
// SetLong sets the Long field's value.
func (s *OutputService1TestShapeOutputService1TestCaseOperation2Output) SetLong(v int64) *OutputService1TestShapeOutputService1TestCaseOperation2Output {
s.Long = &v
return s
}
// SetNum sets the Num field's value.
func (s *OutputService1TestShapeOutputService1TestCaseOperation2Output) SetNum(v int64) *OutputService1TestShapeOutputService1TestCaseOperation2Output {
s.Num = &v
return s
}
// SetStr sets the Str field's value.
func (s *OutputService1TestShapeOutputService1TestCaseOperation2Output) SetStr(v string) *OutputService1TestShapeOutputService1TestCaseOperation2Output {
s.Str = &v
return s
}
// SetTimestamp sets the Timestamp field's value.
func (s *OutputService1TestShapeOutputService1TestCaseOperation2Output) SetTimestamp(v time.Time) *OutputService1TestShapeOutputService1TestCaseOperation2Output {
s.Timestamp = &v
return s
}
// SetTrueBool sets the TrueBool field's value.
func (s *OutputService1TestShapeOutputService1TestCaseOperation2Output) SetTrueBool(v bool) *OutputService1TestShapeOutputService1TestCaseOperation2Output {
s.TrueBool = &v
return s
}
// OutputService2ProtocolTest provides the API operation methods for making requests to
// . See this package's package overview docs
// for details on the service.
//
// OutputService2ProtocolTest methods are safe to use concurrently. It is not safe to
// modify mutate any of the struct's properties though.
type OutputService2ProtocolTest struct {
*client.Client
}
// New creates a new instance of the OutputService2ProtocolTest 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 OutputService2ProtocolTest client from just a session.
// svc := outputservice2protocoltest.New(mySession)
//
// // Create a OutputService2ProtocolTest client with additional configuration
// svc := outputservice2protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2"))
func NewOutputService2ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *OutputService2ProtocolTest {
c := p.ClientConfig("outputservice2protocoltest", cfgs...)
return newOutputService2ProtocolTestClient(*c.Config, c.Handlers, c.PartitionID, c.Endpoint, c.SigningRegion, c.SigningName)
}
// newClient creates, initializes and returns a new service client instance.
func newOutputService2ProtocolTestClient(cfg aws.Config, handlers request.Handlers, partitionID, endpoint, signingRegion, signingName string) *OutputService2ProtocolTest {
svc := &OutputService2ProtocolTest{
Client: client.New(
cfg,
metadata.ClientInfo{
ServiceName: "OutputService2ProtocolTest",
ServiceID: "OutputService2ProtocolTest",
SigningName: signingName,
SigningRegion: signingRegion,
PartitionID: partitionID,
Endpoint: endpoint,
APIVersion: "",
},
handlers,
),
}
// Handlers
svc.Handlers.Sign.PushBackNamed(v4.SignRequestHandler)
svc.Handlers.Build.PushBackNamed(restxml.BuildHandler)
svc.Handlers.Unmarshal.PushBackNamed(restxml.UnmarshalHandler)
svc.Handlers.UnmarshalMeta.PushBackNamed(restxml.UnmarshalMetaHandler)
svc.Handlers.UnmarshalError.PushBackNamed(restxml.UnmarshalErrorHandler)
return svc
}
// newRequest creates a new request for a OutputService2ProtocolTest operation and runs any
// custom request initialization.
func (c *OutputService2ProtocolTest) newRequest(op *request.Operation, params, data interface{}) *request.Request {
req := c.NewRequest(op, params, data)
return req
}
const opOutputService2TestCaseOperation1 = "OperationName"
// OutputService2TestCaseOperation1Request generates a "aws/request.Request" representing the
// client's request for the OutputService2TestCaseOperation1 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 OutputService2TestCaseOperation1 for more information on using the OutputService2TestCaseOperation1
// 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 OutputService2TestCaseOperation1Request method.
// req, resp := client.OutputService2TestCaseOperation1Request(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
func (c *OutputService2ProtocolTest) OutputService2TestCaseOperation1Request(input *OutputService2TestShapeOutputService2TestCaseOperation1Input) (req *request.Request, output *OutputService2TestShapeOutputService2TestCaseOperation1Output) {
op := &request.Operation{
Name: opOutputService2TestCaseOperation1,
HTTPPath: "/",
}
if input == nil {
input = &OutputService2TestShapeOutputService2TestCaseOperation1Input{}
}
output = &OutputService2TestShapeOutputService2TestCaseOperation1Output{}
req = c.newRequest(op, input, output)
return
}
// OutputService2TestCaseOperation1 API operation for .
//
// 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 's
// API operation OutputService2TestCaseOperation1 for usage and error information.
func (c *OutputService2ProtocolTest) OutputService2TestCaseOperation1(input *OutputService2TestShapeOutputService2TestCaseOperation1Input) (*OutputService2TestShapeOutputService2TestCaseOperation1Output, error) {
req, out := c.OutputService2TestCaseOperation1Request(input)
return out, req.Send()
}
// OutputService2TestCaseOperation1WithContext is the same as OutputService2TestCaseOperation1 with the addition of
// the ability to pass a context and additional request options.
//
// See OutputService2TestCaseOperation1 for details on how to use this API operation.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
func (c *OutputService2ProtocolTest) OutputService2TestCaseOperation1WithContext(ctx aws.Context, input *OutputService2TestShapeOutputService2TestCaseOperation1Input, opts ...request.Option) (*OutputService2TestShapeOutputService2TestCaseOperation1Output, error) {
req, out := c.OutputService2TestCaseOperation1Request(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
type OutputService2TestShapeOutputService2TestCaseOperation1Input struct {
_ struct{} `type:"structure"`
}
type OutputService2TestShapeOutputService2TestCaseOperation1Output struct {
_ struct{} `type:"structure"`
// Blob is automatically base64 encoded/decoded by the SDK.
Blob []byte `type:"blob"`
}
// SetBlob sets the Blob field's value.
func (s *OutputService2TestShapeOutputService2TestCaseOperation1Output) SetBlob(v []byte) *OutputService2TestShapeOutputService2TestCaseOperation1Output {
s.Blob = v
return s
}
// OutputService3ProtocolTest provides the API operation methods for making requests to
// . See this package's package overview docs
// for details on the service.
//
// OutputService3ProtocolTest methods are safe to use concurrently. It is not safe to
// modify mutate any of the struct's properties though.
type OutputService3ProtocolTest struct {
*client.Client
}
// New creates a new instance of the OutputService3ProtocolTest 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 OutputService3ProtocolTest client from just a session.
// svc := outputservice3protocoltest.New(mySession)
//
// // Create a OutputService3ProtocolTest client with additional configuration
// svc := outputservice3protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2"))
func NewOutputService3ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *OutputService3ProtocolTest {
c := p.ClientConfig("outputservice3protocoltest", cfgs...)
return newOutputService3ProtocolTestClient(*c.Config, c.Handlers, c.PartitionID, c.Endpoint, c.SigningRegion, c.SigningName)
}
// newClient creates, initializes and returns a new service client instance.
func newOutputService3ProtocolTestClient(cfg aws.Config, handlers request.Handlers, partitionID, endpoint, signingRegion, signingName string) *OutputService3ProtocolTest {
svc := &OutputService3ProtocolTest{
Client: client.New(
cfg,
metadata.ClientInfo{
ServiceName: "OutputService3ProtocolTest",
ServiceID: "OutputService3ProtocolTest",
SigningName: signingName,
SigningRegion: signingRegion,
PartitionID: partitionID,
Endpoint: endpoint,
APIVersion: "",
},
handlers,
),
}
// Handlers
svc.Handlers.Sign.PushBackNamed(v4.SignRequestHandler)
svc.Handlers.Build.PushBackNamed(restxml.BuildHandler)
svc.Handlers.Unmarshal.PushBackNamed(restxml.UnmarshalHandler)
svc.Handlers.UnmarshalMeta.PushBackNamed(restxml.UnmarshalMetaHandler)
svc.Handlers.UnmarshalError.PushBackNamed(restxml.UnmarshalErrorHandler)
return svc
}
// newRequest creates a new request for a OutputService3ProtocolTest operation and runs any
// custom request initialization.
func (c *OutputService3ProtocolTest) newRequest(op *request.Operation, params, data interface{}) *request.Request {
req := c.NewRequest(op, params, data)
return req
}
const opOutputService3TestCaseOperation1 = "OperationName"
// OutputService3TestCaseOperation1Request generates a "aws/request.Request" representing the
// client's request for the OutputService3TestCaseOperation1 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 OutputService3TestCaseOperation1 for more information on using the OutputService3TestCaseOperation1
// 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 OutputService3TestCaseOperation1Request method.
// req, resp := client.OutputService3TestCaseOperation1Request(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
func (c *OutputService3ProtocolTest) OutputService3TestCaseOperation1Request(input *OutputService3TestShapeOutputService3TestCaseOperation1Input) (req *request.Request, output *OutputService3TestShapeOutputService3TestCaseOperation1Output) {
op := &request.Operation{
Name: opOutputService3TestCaseOperation1,
HTTPPath: "/",
}
if input == nil {
input = &OutputService3TestShapeOutputService3TestCaseOperation1Input{}
}
output = &OutputService3TestShapeOutputService3TestCaseOperation1Output{}
req = c.newRequest(op, input, output)
return
}
// OutputService3TestCaseOperation1 API operation for .
//
// 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 's
// API operation OutputService3TestCaseOperation1 for usage and error information.
func (c *OutputService3ProtocolTest) OutputService3TestCaseOperation1(input *OutputService3TestShapeOutputService3TestCaseOperation1Input) (*OutputService3TestShapeOutputService3TestCaseOperation1Output, error) {
req, out := c.OutputService3TestCaseOperation1Request(input)
return out, req.Send()
}
// OutputService3TestCaseOperation1WithContext is the same as OutputService3TestCaseOperation1 with the addition of
// the ability to pass a context and additional request options.
//
// See OutputService3TestCaseOperation1 for details on how to use this API operation.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
func (c *OutputService3ProtocolTest) OutputService3TestCaseOperation1WithContext(ctx aws.Context, input *OutputService3TestShapeOutputService3TestCaseOperation1Input, opts ...request.Option) (*OutputService3TestShapeOutputService3TestCaseOperation1Output, error) {
req, out := c.OutputService3TestCaseOperation1Request(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
type OutputService3TestShapeOutputService3TestCaseOperation1Input struct {
_ struct{} `type:"structure"`
}
type OutputService3TestShapeOutputService3TestCaseOperation1Output struct {
_ struct{} `type:"structure"`
ListMember []*string `type:"list"`
}
// SetListMember sets the ListMember field's value.
func (s *OutputService3TestShapeOutputService3TestCaseOperation1Output) SetListMember(v []*string) *OutputService3TestShapeOutputService3TestCaseOperation1Output {
s.ListMember = v
return s
}
// OutputService4ProtocolTest provides the API operation methods for making requests to
// . See this package's package overview docs
// for details on the service.
//
// OutputService4ProtocolTest methods are safe to use concurrently. It is not safe to
// modify mutate any of the struct's properties though.
type OutputService4ProtocolTest struct {
*client.Client
}
// New creates a new instance of the OutputService4ProtocolTest 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 OutputService4ProtocolTest client from just a session.
// svc := outputservice4protocoltest.New(mySession)
//
// // Create a OutputService4ProtocolTest client with additional configuration
// svc := outputservice4protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2"))
func NewOutputService4ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *OutputService4ProtocolTest {
c := p.ClientConfig("outputservice4protocoltest", cfgs...)
return newOutputService4ProtocolTestClient(*c.Config, c.Handlers, c.PartitionID, c.Endpoint, c.SigningRegion, c.SigningName)
}
// newClient creates, initializes and returns a new service client instance.
func newOutputService4ProtocolTestClient(cfg aws.Config, handlers request.Handlers, partitionID, endpoint, signingRegion, signingName string) *OutputService4ProtocolTest {
svc := &OutputService4ProtocolTest{
Client: client.New(
cfg,
metadata.ClientInfo{
ServiceName: "OutputService4ProtocolTest",
ServiceID: "OutputService4ProtocolTest",
SigningName: signingName,
SigningRegion: signingRegion,
PartitionID: partitionID,
Endpoint: endpoint,
APIVersion: "",
},
handlers,
),
}
// Handlers
svc.Handlers.Sign.PushBackNamed(v4.SignRequestHandler)
svc.Handlers.Build.PushBackNamed(restxml.BuildHandler)
svc.Handlers.Unmarshal.PushBackNamed(restxml.UnmarshalHandler)
svc.Handlers.UnmarshalMeta.PushBackNamed(restxml.UnmarshalMetaHandler)
svc.Handlers.UnmarshalError.PushBackNamed(restxml.UnmarshalErrorHandler)
return svc
}
// newRequest creates a new request for a OutputService4ProtocolTest operation and runs any
// custom request initialization.
func (c *OutputService4ProtocolTest) newRequest(op *request.Operation, params, data interface{}) *request.Request {
req := c.NewRequest(op, params, data)
return req
}
const opOutputService4TestCaseOperation1 = "OperationName"
// OutputService4TestCaseOperation1Request generates a "aws/request.Request" representing the
// client's request for the OutputService4TestCaseOperation1 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 OutputService4TestCaseOperation1 for more information on using the OutputService4TestCaseOperation1
// 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 OutputService4TestCaseOperation1Request method.
// req, resp := client.OutputService4TestCaseOperation1Request(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
func (c *OutputService4ProtocolTest) OutputService4TestCaseOperation1Request(input *OutputService4TestShapeOutputService4TestCaseOperation1Input) (req *request.Request, output *OutputService4TestShapeOutputService4TestCaseOperation1Output) {
op := &request.Operation{
Name: opOutputService4TestCaseOperation1,
HTTPPath: "/",
}
if input == nil {
input = &OutputService4TestShapeOutputService4TestCaseOperation1Input{}
}
output = &OutputService4TestShapeOutputService4TestCaseOperation1Output{}
req = c.newRequest(op, input, output)
return
}
// OutputService4TestCaseOperation1 API operation for .
//
// 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 's
// API operation OutputService4TestCaseOperation1 for usage and error information.
func (c *OutputService4ProtocolTest) OutputService4TestCaseOperation1(input *OutputService4TestShapeOutputService4TestCaseOperation1Input) (*OutputService4TestShapeOutputService4TestCaseOperation1Output, error) {
req, out := c.OutputService4TestCaseOperation1Request(input)
return out, req.Send()
}
// OutputService4TestCaseOperation1WithContext is the same as OutputService4TestCaseOperation1 with the addition of
// the ability to pass a context and additional request options.
//
// See OutputService4TestCaseOperation1 for details on how to use this API operation.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
func (c *OutputService4ProtocolTest) OutputService4TestCaseOperation1WithContext(ctx aws.Context, input *OutputService4TestShapeOutputService4TestCaseOperation1Input, opts ...request.Option) (*OutputService4TestShapeOutputService4TestCaseOperation1Output, error) {
req, out := c.OutputService4TestCaseOperation1Request(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
type OutputService4TestShapeOutputService4TestCaseOperation1Input struct {
_ struct{} `type:"structure"`
}
type OutputService4TestShapeOutputService4TestCaseOperation1Output struct {
_ struct{} `type:"structure"`
ListMember []*string `locationNameList:"item" type:"list"`
}
// SetListMember sets the ListMember field's value.
func (s *OutputService4TestShapeOutputService4TestCaseOperation1Output) SetListMember(v []*string) *OutputService4TestShapeOutputService4TestCaseOperation1Output {
s.ListMember = v
return s
}
// OutputService5ProtocolTest provides the API operation methods for making requests to
// . See this package's package overview docs
// for details on the service.
//
// OutputService5ProtocolTest methods are safe to use concurrently. It is not safe to
// modify mutate any of the struct's properties though.
type OutputService5ProtocolTest struct {
*client.Client
}
// New creates a new instance of the OutputService5ProtocolTest 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 OutputService5ProtocolTest client from just a session.
// svc := outputservice5protocoltest.New(mySession)
//
// // Create a OutputService5ProtocolTest client with additional configuration
// svc := outputservice5protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2"))
func NewOutputService5ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *OutputService5ProtocolTest {
c := p.ClientConfig("outputservice5protocoltest", cfgs...)
return newOutputService5ProtocolTestClient(*c.Config, c.Handlers, c.PartitionID, c.Endpoint, c.SigningRegion, c.SigningName)
}
// newClient creates, initializes and returns a new service client instance.
func newOutputService5ProtocolTestClient(cfg aws.Config, handlers request.Handlers, partitionID, endpoint, signingRegion, signingName string) *OutputService5ProtocolTest {
svc := &OutputService5ProtocolTest{
Client: client.New(
cfg,
metadata.ClientInfo{
ServiceName: "OutputService5ProtocolTest",
ServiceID: "OutputService5ProtocolTest",
SigningName: signingName,
SigningRegion: signingRegion,
PartitionID: partitionID,
Endpoint: endpoint,
APIVersion: "",
},
handlers,
),
}
// Handlers
svc.Handlers.Sign.PushBackNamed(v4.SignRequestHandler)
svc.Handlers.Build.PushBackNamed(restxml.BuildHandler)
svc.Handlers.Unmarshal.PushBackNamed(restxml.UnmarshalHandler)
svc.Handlers.UnmarshalMeta.PushBackNamed(restxml.UnmarshalMetaHandler)
svc.Handlers.UnmarshalError.PushBackNamed(restxml.UnmarshalErrorHandler)
return svc
}
// newRequest creates a new request for a OutputService5ProtocolTest operation and runs any
// custom request initialization.
func (c *OutputService5ProtocolTest) newRequest(op *request.Operation, params, data interface{}) *request.Request {
req := c.NewRequest(op, params, data)
return req
}
const opOutputService5TestCaseOperation1 = "OperationName"
// OutputService5TestCaseOperation1Request generates a "aws/request.Request" representing the
// client's request for the OutputService5TestCaseOperation1 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 OutputService5TestCaseOperation1 for more information on using the OutputService5TestCaseOperation1
// 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 OutputService5TestCaseOperation1Request method.
// req, resp := client.OutputService5TestCaseOperation1Request(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
func (c *OutputService5ProtocolTest) OutputService5TestCaseOperation1Request(input *OutputService5TestShapeOutputService5TestCaseOperation1Input) (req *request.Request, output *OutputService5TestShapeOutputService5TestCaseOperation1Output) {
op := &request.Operation{
Name: opOutputService5TestCaseOperation1,
HTTPPath: "/",
}
if input == nil {
input = &OutputService5TestShapeOutputService5TestCaseOperation1Input{}
}
output = &OutputService5TestShapeOutputService5TestCaseOperation1Output{}
req = c.newRequest(op, input, output)
return
}
// OutputService5TestCaseOperation1 API operation for .
//
// 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 's
// API operation OutputService5TestCaseOperation1 for usage and error information.
func (c *OutputService5ProtocolTest) OutputService5TestCaseOperation1(input *OutputService5TestShapeOutputService5TestCaseOperation1Input) (*OutputService5TestShapeOutputService5TestCaseOperation1Output, error) {
req, out := c.OutputService5TestCaseOperation1Request(input)
return out, req.Send()
}
// OutputService5TestCaseOperation1WithContext is the same as OutputService5TestCaseOperation1 with the addition of
// the ability to pass a context and additional request options.
//
// See OutputService5TestCaseOperation1 for details on how to use this API operation.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
func (c *OutputService5ProtocolTest) OutputService5TestCaseOperation1WithContext(ctx aws.Context, input *OutputService5TestShapeOutputService5TestCaseOperation1Input, opts ...request.Option) (*OutputService5TestShapeOutputService5TestCaseOperation1Output, error) {
req, out := c.OutputService5TestCaseOperation1Request(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
type OutputService5TestShapeOutputService5TestCaseOperation1Input struct {
_ struct{} `type:"structure"`
}
type OutputService5TestShapeOutputService5TestCaseOperation1Output struct {
_ struct{} `type:"structure"`
ListMember []*string `type:"list" flattened:"true"`
}
// SetListMember sets the ListMember field's value.
func (s *OutputService5TestShapeOutputService5TestCaseOperation1Output) SetListMember(v []*string) *OutputService5TestShapeOutputService5TestCaseOperation1Output {
s.ListMember = v
return s
}
// OutputService6ProtocolTest provides the API operation methods for making requests to
// . See this package's package overview docs
// for details on the service.
//
// OutputService6ProtocolTest methods are safe to use concurrently. It is not safe to
// modify mutate any of the struct's properties though.
type OutputService6ProtocolTest struct {
*client.Client
}
// New creates a new instance of the OutputService6ProtocolTest 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 OutputService6ProtocolTest client from just a session.
// svc := outputservice6protocoltest.New(mySession)
//
// // Create a OutputService6ProtocolTest client with additional configuration
// svc := outputservice6protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2"))
func NewOutputService6ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *OutputService6ProtocolTest {
c := p.ClientConfig("outputservice6protocoltest", cfgs...)
return newOutputService6ProtocolTestClient(*c.Config, c.Handlers, c.PartitionID, c.Endpoint, c.SigningRegion, c.SigningName)
}
// newClient creates, initializes and returns a new service client instance.
func newOutputService6ProtocolTestClient(cfg aws.Config, handlers request.Handlers, partitionID, endpoint, signingRegion, signingName string) *OutputService6ProtocolTest {
svc := &OutputService6ProtocolTest{
Client: client.New(
cfg,
metadata.ClientInfo{
ServiceName: "OutputService6ProtocolTest",
ServiceID: "OutputService6ProtocolTest",
SigningName: signingName,
SigningRegion: signingRegion,
PartitionID: partitionID,
Endpoint: endpoint,
APIVersion: "",
},
handlers,
),
}
// Handlers
svc.Handlers.Sign.PushBackNamed(v4.SignRequestHandler)
svc.Handlers.Build.PushBackNamed(restxml.BuildHandler)
svc.Handlers.Unmarshal.PushBackNamed(restxml.UnmarshalHandler)
svc.Handlers.UnmarshalMeta.PushBackNamed(restxml.UnmarshalMetaHandler)
svc.Handlers.UnmarshalError.PushBackNamed(restxml.UnmarshalErrorHandler)
return svc
}
// newRequest creates a new request for a OutputService6ProtocolTest operation and runs any
// custom request initialization.
func (c *OutputService6ProtocolTest) newRequest(op *request.Operation, params, data interface{}) *request.Request {
req := c.NewRequest(op, params, data)
return req
}
const opOutputService6TestCaseOperation1 = "OperationName"
// OutputService6TestCaseOperation1Request generates a "aws/request.Request" representing the
// client's request for the OutputService6TestCaseOperation1 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 OutputService6TestCaseOperation1 for more information on using the OutputService6TestCaseOperation1
// 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 OutputService6TestCaseOperation1Request method.
// req, resp := client.OutputService6TestCaseOperation1Request(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
func (c *OutputService6ProtocolTest) OutputService6TestCaseOperation1Request(input *OutputService6TestShapeOutputService6TestCaseOperation1Input) (req *request.Request, output *OutputService6TestShapeOutputService6TestCaseOperation1Output) {
op := &request.Operation{
Name: opOutputService6TestCaseOperation1,
HTTPPath: "/",
}
if input == nil {
input = &OutputService6TestShapeOutputService6TestCaseOperation1Input{}
}
output = &OutputService6TestShapeOutputService6TestCaseOperation1Output{}
req = c.newRequest(op, input, output)
return
}
// OutputService6TestCaseOperation1 API operation for .
//
// 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 's
// API operation OutputService6TestCaseOperation1 for usage and error information.
func (c *OutputService6ProtocolTest) OutputService6TestCaseOperation1(input *OutputService6TestShapeOutputService6TestCaseOperation1Input) (*OutputService6TestShapeOutputService6TestCaseOperation1Output, error) {
req, out := c.OutputService6TestCaseOperation1Request(input)
return out, req.Send()
}
// OutputService6TestCaseOperation1WithContext is the same as OutputService6TestCaseOperation1 with the addition of
// the ability to pass a context and additional request options.
//
// See OutputService6TestCaseOperation1 for details on how to use this API operation.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
func (c *OutputService6ProtocolTest) OutputService6TestCaseOperation1WithContext(ctx aws.Context, input *OutputService6TestShapeOutputService6TestCaseOperation1Input, opts ...request.Option) (*OutputService6TestShapeOutputService6TestCaseOperation1Output, error) {
req, out := c.OutputService6TestCaseOperation1Request(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
type OutputService6TestShapeOutputService6TestCaseOperation1Input struct {
_ struct{} `type:"structure"`
}
type OutputService6TestShapeOutputService6TestCaseOperation1Output struct {
_ struct{} `type:"structure"`
Map map[string]*OutputService6TestShapeSingleStructure `type:"map"`
}
// SetMap sets the Map field's value.
func (s *OutputService6TestShapeOutputService6TestCaseOperation1Output) SetMap(v map[string]*OutputService6TestShapeSingleStructure) *OutputService6TestShapeOutputService6TestCaseOperation1Output {
s.Map = v
return s
}
type OutputService6TestShapeSingleStructure struct {
_ struct{} `type:"structure"`
Foo *string `locationName:"foo" type:"string"`
}
// SetFoo sets the Foo field's value.
func (s *OutputService6TestShapeSingleStructure) SetFoo(v string) *OutputService6TestShapeSingleStructure {
s.Foo = &v
return s
}
// OutputService7ProtocolTest provides the API operation methods for making requests to
// . See this package's package overview docs
// for details on the service.
//
// OutputService7ProtocolTest methods are safe to use concurrently. It is not safe to
// modify mutate any of the struct's properties though.
type OutputService7ProtocolTest struct {
*client.Client
}
// New creates a new instance of the OutputService7ProtocolTest 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 OutputService7ProtocolTest client from just a session.
// svc := outputservice7protocoltest.New(mySession)
//
// // Create a OutputService7ProtocolTest client with additional configuration
// svc := outputservice7protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2"))
func NewOutputService7ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *OutputService7ProtocolTest {
c := p.ClientConfig("outputservice7protocoltest", cfgs...)
return newOutputService7ProtocolTestClient(*c.Config, c.Handlers, c.PartitionID, c.Endpoint, c.SigningRegion, c.SigningName)
}
// newClient creates, initializes and returns a new service client instance.
func newOutputService7ProtocolTestClient(cfg aws.Config, handlers request.Handlers, partitionID, endpoint, signingRegion, signingName string) *OutputService7ProtocolTest {
svc := &OutputService7ProtocolTest{
Client: client.New(
cfg,
metadata.ClientInfo{
ServiceName: "OutputService7ProtocolTest",
ServiceID: "OutputService7ProtocolTest",
SigningName: signingName,
SigningRegion: signingRegion,
PartitionID: partitionID,
Endpoint: endpoint,
APIVersion: "",
},
handlers,
),
}
// Handlers
svc.Handlers.Sign.PushBackNamed(v4.SignRequestHandler)
svc.Handlers.Build.PushBackNamed(restxml.BuildHandler)
svc.Handlers.Unmarshal.PushBackNamed(restxml.UnmarshalHandler)
svc.Handlers.UnmarshalMeta.PushBackNamed(restxml.UnmarshalMetaHandler)
svc.Handlers.UnmarshalError.PushBackNamed(restxml.UnmarshalErrorHandler)
return svc
}
// newRequest creates a new request for a OutputService7ProtocolTest operation and runs any
// custom request initialization.
func (c *OutputService7ProtocolTest) newRequest(op *request.Operation, params, data interface{}) *request.Request {
req := c.NewRequest(op, params, data)
return req
}
const opOutputService7TestCaseOperation1 = "OperationName"
// OutputService7TestCaseOperation1Request generates a "aws/request.Request" representing the
// client's request for the OutputService7TestCaseOperation1 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 OutputService7TestCaseOperation1 for more information on using the OutputService7TestCaseOperation1
// 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 OutputService7TestCaseOperation1Request method.
// req, resp := client.OutputService7TestCaseOperation1Request(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
func (c *OutputService7ProtocolTest) OutputService7TestCaseOperation1Request(input *OutputService7TestShapeOutputService7TestCaseOperation1Input) (req *request.Request, output *OutputService7TestShapeOutputService7TestCaseOperation1Output) {
op := &request.Operation{
Name: opOutputService7TestCaseOperation1,
HTTPPath: "/",
}
if input == nil {
input = &OutputService7TestShapeOutputService7TestCaseOperation1Input{}
}
output = &OutputService7TestShapeOutputService7TestCaseOperation1Output{}
req = c.newRequest(op, input, output)
return
}
// OutputService7TestCaseOperation1 API operation for .
//
// 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 's
// API operation OutputService7TestCaseOperation1 for usage and error information.
func (c *OutputService7ProtocolTest) OutputService7TestCaseOperation1(input *OutputService7TestShapeOutputService7TestCaseOperation1Input) (*OutputService7TestShapeOutputService7TestCaseOperation1Output, error) {
req, out := c.OutputService7TestCaseOperation1Request(input)
return out, req.Send()
}
// OutputService7TestCaseOperation1WithContext is the same as OutputService7TestCaseOperation1 with the addition of
// the ability to pass a context and additional request options.
//
// See OutputService7TestCaseOperation1 for details on how to use this API operation.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
func (c *OutputService7ProtocolTest) OutputService7TestCaseOperation1WithContext(ctx aws.Context, input *OutputService7TestShapeOutputService7TestCaseOperation1Input, opts ...request.Option) (*OutputService7TestShapeOutputService7TestCaseOperation1Output, error) {
req, out := c.OutputService7TestCaseOperation1Request(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
type OutputService7TestShapeOutputService7TestCaseOperation1Input struct {
_ struct{} `type:"structure"`
}
type OutputService7TestShapeOutputService7TestCaseOperation1Output struct {
_ struct{} `type:"structure"`
Map map[string]*string `type:"map" flattened:"true"`
}
// SetMap sets the Map field's value.
func (s *OutputService7TestShapeOutputService7TestCaseOperation1Output) SetMap(v map[string]*string) *OutputService7TestShapeOutputService7TestCaseOperation1Output {
s.Map = v
return s
}
// OutputService8ProtocolTest provides the API operation methods for making requests to
// . See this package's package overview docs
// for details on the service.
//
// OutputService8ProtocolTest methods are safe to use concurrently. It is not safe to
// modify mutate any of the struct's properties though.
type OutputService8ProtocolTest struct {
*client.Client
}
// New creates a new instance of the OutputService8ProtocolTest 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 OutputService8ProtocolTest client from just a session.
// svc := outputservice8protocoltest.New(mySession)
//
// // Create a OutputService8ProtocolTest client with additional configuration
// svc := outputservice8protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2"))
func NewOutputService8ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *OutputService8ProtocolTest {
c := p.ClientConfig("outputservice8protocoltest", cfgs...)
return newOutputService8ProtocolTestClient(*c.Config, c.Handlers, c.PartitionID, c.Endpoint, c.SigningRegion, c.SigningName)
}
// newClient creates, initializes and returns a new service client instance.
func newOutputService8ProtocolTestClient(cfg aws.Config, handlers request.Handlers, partitionID, endpoint, signingRegion, signingName string) *OutputService8ProtocolTest {
svc := &OutputService8ProtocolTest{
Client: client.New(
cfg,
metadata.ClientInfo{
ServiceName: "OutputService8ProtocolTest",
ServiceID: "OutputService8ProtocolTest",
SigningName: signingName,
SigningRegion: signingRegion,
PartitionID: partitionID,
Endpoint: endpoint,
APIVersion: "",
},
handlers,
),
}
// Handlers
svc.Handlers.Sign.PushBackNamed(v4.SignRequestHandler)
svc.Handlers.Build.PushBackNamed(restxml.BuildHandler)
svc.Handlers.Unmarshal.PushBackNamed(restxml.UnmarshalHandler)
svc.Handlers.UnmarshalMeta.PushBackNamed(restxml.UnmarshalMetaHandler)
svc.Handlers.UnmarshalError.PushBackNamed(restxml.UnmarshalErrorHandler)
return svc
}
// newRequest creates a new request for a OutputService8ProtocolTest operation and runs any
// custom request initialization.
func (c *OutputService8ProtocolTest) newRequest(op *request.Operation, params, data interface{}) *request.Request {
req := c.NewRequest(op, params, data)
return req
}
const opOutputService8TestCaseOperation1 = "OperationName"
// OutputService8TestCaseOperation1Request generates a "aws/request.Request" representing the
// client's request for the OutputService8TestCaseOperation1 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 OutputService8TestCaseOperation1 for more information on using the OutputService8TestCaseOperation1
// 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 OutputService8TestCaseOperation1Request method.
// req, resp := client.OutputService8TestCaseOperation1Request(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
func (c *OutputService8ProtocolTest) OutputService8TestCaseOperation1Request(input *OutputService8TestShapeOutputService8TestCaseOperation1Input) (req *request.Request, output *OutputService8TestShapeOutputService8TestCaseOperation1Output) {
op := &request.Operation{
Name: opOutputService8TestCaseOperation1,
HTTPPath: "/",
}
if input == nil {
input = &OutputService8TestShapeOutputService8TestCaseOperation1Input{}
}
output = &OutputService8TestShapeOutputService8TestCaseOperation1Output{}
req = c.newRequest(op, input, output)
return
}
// OutputService8TestCaseOperation1 API operation for .
//
// 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 's
// API operation OutputService8TestCaseOperation1 for usage and error information.
func (c *OutputService8ProtocolTest) OutputService8TestCaseOperation1(input *OutputService8TestShapeOutputService8TestCaseOperation1Input) (*OutputService8TestShapeOutputService8TestCaseOperation1Output, error) {
req, out := c.OutputService8TestCaseOperation1Request(input)
return out, req.Send()
}
// OutputService8TestCaseOperation1WithContext is the same as OutputService8TestCaseOperation1 with the addition of
// the ability to pass a context and additional request options.
//
// See OutputService8TestCaseOperation1 for details on how to use this API operation.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
func (c *OutputService8ProtocolTest) OutputService8TestCaseOperation1WithContext(ctx aws.Context, input *OutputService8TestShapeOutputService8TestCaseOperation1Input, opts ...request.Option) (*OutputService8TestShapeOutputService8TestCaseOperation1Output, error) {
req, out := c.OutputService8TestCaseOperation1Request(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
type OutputService8TestShapeOutputService8TestCaseOperation1Input struct {
_ struct{} `type:"structure"`
}
type OutputService8TestShapeOutputService8TestCaseOperation1Output struct {
_ struct{} `type:"structure"`
Map map[string]*string `locationNameKey:"foo" locationNameValue:"bar" type:"map"`
}
// SetMap sets the Map field's value.
func (s *OutputService8TestShapeOutputService8TestCaseOperation1Output) SetMap(v map[string]*string) *OutputService8TestShapeOutputService8TestCaseOperation1Output {
s.Map = v
return s
}
// OutputService9ProtocolTest provides the API operation methods for making requests to
// . See this package's package overview docs
// for details on the service.
//
// OutputService9ProtocolTest methods are safe to use concurrently. It is not safe to
// modify mutate any of the struct's properties though.
type OutputService9ProtocolTest struct {
*client.Client
}
// New creates a new instance of the OutputService9ProtocolTest 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 OutputService9ProtocolTest client from just a session.
// svc := outputservice9protocoltest.New(mySession)
//
// // Create a OutputService9ProtocolTest client with additional configuration
// svc := outputservice9protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2"))
func NewOutputService9ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *OutputService9ProtocolTest {
c := p.ClientConfig("outputservice9protocoltest", cfgs...)
return newOutputService9ProtocolTestClient(*c.Config, c.Handlers, c.PartitionID, c.Endpoint, c.SigningRegion, c.SigningName)
}
// newClient creates, initializes and returns a new service client instance.
func newOutputService9ProtocolTestClient(cfg aws.Config, handlers request.Handlers, partitionID, endpoint, signingRegion, signingName string) *OutputService9ProtocolTest {
svc := &OutputService9ProtocolTest{
Client: client.New(
cfg,
metadata.ClientInfo{
ServiceName: "OutputService9ProtocolTest",
ServiceID: "OutputService9ProtocolTest",
SigningName: signingName,
SigningRegion: signingRegion,
PartitionID: partitionID,
Endpoint: endpoint,
APIVersion: "",
},
handlers,
),
}
// Handlers
svc.Handlers.Sign.PushBackNamed(v4.SignRequestHandler)
svc.Handlers.Build.PushBackNamed(restxml.BuildHandler)
svc.Handlers.Unmarshal.PushBackNamed(restxml.UnmarshalHandler)
svc.Handlers.UnmarshalMeta.PushBackNamed(restxml.UnmarshalMetaHandler)
svc.Handlers.UnmarshalError.PushBackNamed(restxml.UnmarshalErrorHandler)
return svc
}
// newRequest creates a new request for a OutputService9ProtocolTest operation and runs any
// custom request initialization.
func (c *OutputService9ProtocolTest) newRequest(op *request.Operation, params, data interface{}) *request.Request {
req := c.NewRequest(op, params, data)
return req
}
const opOutputService9TestCaseOperation1 = "OperationName"
// OutputService9TestCaseOperation1Request generates a "aws/request.Request" representing the
// client's request for the OutputService9TestCaseOperation1 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 OutputService9TestCaseOperation1 for more information on using the OutputService9TestCaseOperation1
// 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 OutputService9TestCaseOperation1Request method.
// req, resp := client.OutputService9TestCaseOperation1Request(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
func (c *OutputService9ProtocolTest) OutputService9TestCaseOperation1Request(input *OutputService9TestShapeOutputService9TestCaseOperation1Input) (req *request.Request, output *OutputService9TestShapeOutputService9TestCaseOperation1Output) {
op := &request.Operation{
Name: opOutputService9TestCaseOperation1,
HTTPPath: "/",
}
if input == nil {
input = &OutputService9TestShapeOutputService9TestCaseOperation1Input{}
}
output = &OutputService9TestShapeOutputService9TestCaseOperation1Output{}
req = c.newRequest(op, input, output)
return
}
// OutputService9TestCaseOperation1 API operation for .
//
// 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 's
// API operation OutputService9TestCaseOperation1 for usage and error information.
func (c *OutputService9ProtocolTest) OutputService9TestCaseOperation1(input *OutputService9TestShapeOutputService9TestCaseOperation1Input) (*OutputService9TestShapeOutputService9TestCaseOperation1Output, error) {
req, out := c.OutputService9TestCaseOperation1Request(input)
return out, req.Send()
}
// OutputService9TestCaseOperation1WithContext is the same as OutputService9TestCaseOperation1 with the addition of
// the ability to pass a context and additional request options.
//
// See OutputService9TestCaseOperation1 for details on how to use this API operation.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
func (c *OutputService9ProtocolTest) OutputService9TestCaseOperation1WithContext(ctx aws.Context, input *OutputService9TestShapeOutputService9TestCaseOperation1Input, opts ...request.Option) (*OutputService9TestShapeOutputService9TestCaseOperation1Output, error) {
req, out := c.OutputService9TestCaseOperation1Request(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
type OutputService9TestShapeOutputService9TestCaseOperation1Input struct {
_ struct{} `type:"structure"`
}
type OutputService9TestShapeOutputService9TestCaseOperation1Output struct {
_ struct{} `type:"structure" payload:"Data"`
Data *OutputService9TestShapeSingleStructure `type:"structure"`
Header *string `location:"header" locationName:"X-Foo" type:"string"`
}
// SetData sets the Data field's value.
func (s *OutputService9TestShapeOutputService9TestCaseOperation1Output) SetData(v *OutputService9TestShapeSingleStructure) *OutputService9TestShapeOutputService9TestCaseOperation1Output {
s.Data = v
return s
}
// SetHeader sets the Header field's value.
func (s *OutputService9TestShapeOutputService9TestCaseOperation1Output) SetHeader(v string) *OutputService9TestShapeOutputService9TestCaseOperation1Output {
s.Header = &v
return s
}
type OutputService9TestShapeSingleStructure struct {
_ struct{} `type:"structure"`
Foo *string `type:"string"`
}
// SetFoo sets the Foo field's value.
func (s *OutputService9TestShapeSingleStructure) SetFoo(v string) *OutputService9TestShapeSingleStructure {
s.Foo = &v
return s
}
// OutputService10ProtocolTest provides the API operation methods for making requests to
// . See this package's package overview docs
// for details on the service.
//
// OutputService10ProtocolTest methods are safe to use concurrently. It is not safe to
// modify mutate any of the struct's properties though.
type OutputService10ProtocolTest struct {
*client.Client
}
// New creates a new instance of the OutputService10ProtocolTest 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 OutputService10ProtocolTest client from just a session.
// svc := outputservice10protocoltest.New(mySession)
//
// // Create a OutputService10ProtocolTest client with additional configuration
// svc := outputservice10protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2"))
func NewOutputService10ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *OutputService10ProtocolTest {
c := p.ClientConfig("outputservice10protocoltest", cfgs...)
return newOutputService10ProtocolTestClient(*c.Config, c.Handlers, c.PartitionID, c.Endpoint, c.SigningRegion, c.SigningName)
}
// newClient creates, initializes and returns a new service client instance.
func newOutputService10ProtocolTestClient(cfg aws.Config, handlers request.Handlers, partitionID, endpoint, signingRegion, signingName string) *OutputService10ProtocolTest {
svc := &OutputService10ProtocolTest{
Client: client.New(
cfg,
metadata.ClientInfo{
ServiceName: "OutputService10ProtocolTest",
ServiceID: "OutputService10ProtocolTest",
SigningName: signingName,
SigningRegion: signingRegion,
PartitionID: partitionID,
Endpoint: endpoint,
APIVersion: "",
},
handlers,
),
}
// Handlers
svc.Handlers.Sign.PushBackNamed(v4.SignRequestHandler)
svc.Handlers.Build.PushBackNamed(restxml.BuildHandler)
svc.Handlers.Unmarshal.PushBackNamed(restxml.UnmarshalHandler)
svc.Handlers.UnmarshalMeta.PushBackNamed(restxml.UnmarshalMetaHandler)
svc.Handlers.UnmarshalError.PushBackNamed(restxml.UnmarshalErrorHandler)
return svc
}
// newRequest creates a new request for a OutputService10ProtocolTest operation and runs any
// custom request initialization.
func (c *OutputService10ProtocolTest) newRequest(op *request.Operation, params, data interface{}) *request.Request {
req := c.NewRequest(op, params, data)
return req
}
const opOutputService10TestCaseOperation1 = "OperationName"
// OutputService10TestCaseOperation1Request generates a "aws/request.Request" representing the
// client's request for the OutputService10TestCaseOperation1 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 OutputService10TestCaseOperation1 for more information on using the OutputService10TestCaseOperation1
// 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 OutputService10TestCaseOperation1Request method.
// req, resp := client.OutputService10TestCaseOperation1Request(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
func (c *OutputService10ProtocolTest) OutputService10TestCaseOperation1Request(input *OutputService10TestShapeOutputService10TestCaseOperation1Input) (req *request.Request, output *OutputService10TestShapeOutputService10TestCaseOperation1Output) {
op := &request.Operation{
Name: opOutputService10TestCaseOperation1,
HTTPPath: "/",
}
if input == nil {
input = &OutputService10TestShapeOutputService10TestCaseOperation1Input{}
}
output = &OutputService10TestShapeOutputService10TestCaseOperation1Output{}
req = c.newRequest(op, input, output)
return
}
// OutputService10TestCaseOperation1 API operation for .
//
// 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 's
// API operation OutputService10TestCaseOperation1 for usage and error information.
func (c *OutputService10ProtocolTest) OutputService10TestCaseOperation1(input *OutputService10TestShapeOutputService10TestCaseOperation1Input) (*OutputService10TestShapeOutputService10TestCaseOperation1Output, error) {
req, out := c.OutputService10TestCaseOperation1Request(input)
return out, req.Send()
}
// OutputService10TestCaseOperation1WithContext is the same as OutputService10TestCaseOperation1 with the addition of
// the ability to pass a context and additional request options.
//
// See OutputService10TestCaseOperation1 for details on how to use this API operation.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
func (c *OutputService10ProtocolTest) OutputService10TestCaseOperation1WithContext(ctx aws.Context, input *OutputService10TestShapeOutputService10TestCaseOperation1Input, opts ...request.Option) (*OutputService10TestShapeOutputService10TestCaseOperation1Output, error) {
req, out := c.OutputService10TestCaseOperation1Request(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
type OutputService10TestShapeOutputService10TestCaseOperation1Input struct {
_ struct{} `type:"structure"`
}
type OutputService10TestShapeOutputService10TestCaseOperation1Output struct {
_ struct{} `type:"structure" payload:"Stream"`
Stream []byte `type:"blob"`
}
// SetStream sets the Stream field's value.
func (s *OutputService10TestShapeOutputService10TestCaseOperation1Output) SetStream(v []byte) *OutputService10TestShapeOutputService10TestCaseOperation1Output {
s.Stream = v
return s
}
// OutputService11ProtocolTest provides the API operation methods for making requests to
// . See this package's package overview docs
// for details on the service.
//
// OutputService11ProtocolTest methods are safe to use concurrently. It is not safe to
// modify mutate any of the struct's properties though.
type OutputService11ProtocolTest struct {
*client.Client
}
// New creates a new instance of the OutputService11ProtocolTest 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 OutputService11ProtocolTest client from just a session.
// svc := outputservice11protocoltest.New(mySession)
//
// // Create a OutputService11ProtocolTest client with additional configuration
// svc := outputservice11protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2"))
func NewOutputService11ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *OutputService11ProtocolTest {
c := p.ClientConfig("outputservice11protocoltest", cfgs...)
return newOutputService11ProtocolTestClient(*c.Config, c.Handlers, c.PartitionID, c.Endpoint, c.SigningRegion, c.SigningName)
}
// newClient creates, initializes and returns a new service client instance.
func newOutputService11ProtocolTestClient(cfg aws.Config, handlers request.Handlers, partitionID, endpoint, signingRegion, signingName string) *OutputService11ProtocolTest {
svc := &OutputService11ProtocolTest{
Client: client.New(
cfg,
metadata.ClientInfo{
ServiceName: "OutputService11ProtocolTest",
ServiceID: "OutputService11ProtocolTest",
SigningName: signingName,
SigningRegion: signingRegion,
PartitionID: partitionID,
Endpoint: endpoint,
APIVersion: "",
},
handlers,
),
}
// Handlers
svc.Handlers.Sign.PushBackNamed(v4.SignRequestHandler)
svc.Handlers.Build.PushBackNamed(restxml.BuildHandler)
svc.Handlers.Unmarshal.PushBackNamed(restxml.UnmarshalHandler)
svc.Handlers.UnmarshalMeta.PushBackNamed(restxml.UnmarshalMetaHandler)
svc.Handlers.UnmarshalError.PushBackNamed(restxml.UnmarshalErrorHandler)
return svc
}
// newRequest creates a new request for a OutputService11ProtocolTest operation and runs any
// custom request initialization.
func (c *OutputService11ProtocolTest) newRequest(op *request.Operation, params, data interface{}) *request.Request {
req := c.NewRequest(op, params, data)
return req
}
const opOutputService11TestCaseOperation1 = "OperationName"
// OutputService11TestCaseOperation1Request generates a "aws/request.Request" representing the
// client's request for the OutputService11TestCaseOperation1 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 OutputService11TestCaseOperation1 for more information on using the OutputService11TestCaseOperation1
// 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 OutputService11TestCaseOperation1Request method.
// req, resp := client.OutputService11TestCaseOperation1Request(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
func (c *OutputService11ProtocolTest) OutputService11TestCaseOperation1Request(input *OutputService11TestShapeOutputService11TestCaseOperation1Input) (req *request.Request, output *OutputService11TestShapeOutputService11TestCaseOperation1Output) {
op := &request.Operation{
Name: opOutputService11TestCaseOperation1,
HTTPPath: "/",
}
if input == nil {
input = &OutputService11TestShapeOutputService11TestCaseOperation1Input{}
}
output = &OutputService11TestShapeOutputService11TestCaseOperation1Output{}
req = c.newRequest(op, input, output)
return
}
// OutputService11TestCaseOperation1 API operation for .
//
// 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 's
// API operation OutputService11TestCaseOperation1 for usage and error information.
func (c *OutputService11ProtocolTest) OutputService11TestCaseOperation1(input *OutputService11TestShapeOutputService11TestCaseOperation1Input) (*OutputService11TestShapeOutputService11TestCaseOperation1Output, error) {
req, out := c.OutputService11TestCaseOperation1Request(input)
return out, req.Send()
}
// OutputService11TestCaseOperation1WithContext is the same as OutputService11TestCaseOperation1 with the addition of
// the ability to pass a context and additional request options.
//
// See OutputService11TestCaseOperation1 for details on how to use this API operation.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
func (c *OutputService11ProtocolTest) OutputService11TestCaseOperation1WithContext(ctx aws.Context, input *OutputService11TestShapeOutputService11TestCaseOperation1Input, opts ...request.Option) (*OutputService11TestShapeOutputService11TestCaseOperation1Output, error) {
req, out := c.OutputService11TestCaseOperation1Request(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
type OutputService11TestShapeOutputService11TestCaseOperation1Input struct {
_ struct{} `type:"structure"`
}
type OutputService11TestShapeOutputService11TestCaseOperation1Output struct {
_ struct{} `type:"structure"`
Char *string `location:"header" locationName:"x-char" type:"character"`
Double *float64 `location:"header" locationName:"x-double" type:"double"`
FalseBool *bool `location:"header" locationName:"x-false-bool" type:"boolean"`
Float *float64 `location:"header" locationName:"x-float" type:"float"`
Integer *int64 `location:"header" locationName:"x-int" type:"integer"`
Long *int64 `location:"header" locationName:"x-long" type:"long"`
Str *string `location:"header" locationName:"x-str" type:"string"`
Timestamp *time.Time `location:"header" locationName:"x-timestamp" type:"timestamp"`
TrueBool *bool `location:"header" locationName:"x-true-bool" type:"boolean"`
}
// SetChar sets the Char field's value.
func (s *OutputService11TestShapeOutputService11TestCaseOperation1Output) SetChar(v string) *OutputService11TestShapeOutputService11TestCaseOperation1Output {
s.Char = &v
return s
}
// SetDouble sets the Double field's value.
func (s *OutputService11TestShapeOutputService11TestCaseOperation1Output) SetDouble(v float64) *OutputService11TestShapeOutputService11TestCaseOperation1Output {
s.Double = &v
return s
}
// SetFalseBool sets the FalseBool field's value.
func (s *OutputService11TestShapeOutputService11TestCaseOperation1Output) SetFalseBool(v bool) *OutputService11TestShapeOutputService11TestCaseOperation1Output {
s.FalseBool = &v
return s
}
// SetFloat sets the Float field's value.
func (s *OutputService11TestShapeOutputService11TestCaseOperation1Output) SetFloat(v float64) *OutputService11TestShapeOutputService11TestCaseOperation1Output {
s.Float = &v
return s
}
// SetInteger sets the Integer field's value.
func (s *OutputService11TestShapeOutputService11TestCaseOperation1Output) SetInteger(v int64) *OutputService11TestShapeOutputService11TestCaseOperation1Output {
s.Integer = &v
return s
}
// SetLong sets the Long field's value.
func (s *OutputService11TestShapeOutputService11TestCaseOperation1Output) SetLong(v int64) *OutputService11TestShapeOutputService11TestCaseOperation1Output {
s.Long = &v
return s
}
// SetStr sets the Str field's value.
func (s *OutputService11TestShapeOutputService11TestCaseOperation1Output) SetStr(v string) *OutputService11TestShapeOutputService11TestCaseOperation1Output {
s.Str = &v
return s
}
// SetTimestamp sets the Timestamp field's value.
func (s *OutputService11TestShapeOutputService11TestCaseOperation1Output) SetTimestamp(v time.Time) *OutputService11TestShapeOutputService11TestCaseOperation1Output {
s.Timestamp = &v
return s
}
// SetTrueBool sets the TrueBool field's value.
func (s *OutputService11TestShapeOutputService11TestCaseOperation1Output) SetTrueBool(v bool) *OutputService11TestShapeOutputService11TestCaseOperation1Output {
s.TrueBool = &v
return s
}
// OutputService12ProtocolTest provides the API operation methods for making requests to
// . See this package's package overview docs
// for details on the service.
//
// OutputService12ProtocolTest methods are safe to use concurrently. It is not safe to
// modify mutate any of the struct's properties though.
type OutputService12ProtocolTest struct {
*client.Client
}
// New creates a new instance of the OutputService12ProtocolTest 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 OutputService12ProtocolTest client from just a session.
// svc := outputservice12protocoltest.New(mySession)
//
// // Create a OutputService12ProtocolTest client with additional configuration
// svc := outputservice12protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2"))
func NewOutputService12ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *OutputService12ProtocolTest {
c := p.ClientConfig("outputservice12protocoltest", cfgs...)
return newOutputService12ProtocolTestClient(*c.Config, c.Handlers, c.PartitionID, c.Endpoint, c.SigningRegion, c.SigningName)
}
// newClient creates, initializes and returns a new service client instance.
func newOutputService12ProtocolTestClient(cfg aws.Config, handlers request.Handlers, partitionID, endpoint, signingRegion, signingName string) *OutputService12ProtocolTest {
svc := &OutputService12ProtocolTest{
Client: client.New(
cfg,
metadata.ClientInfo{
ServiceName: "OutputService12ProtocolTest",
ServiceID: "OutputService12ProtocolTest",
SigningName: signingName,
SigningRegion: signingRegion,
PartitionID: partitionID,
Endpoint: endpoint,
APIVersion: "",
},
handlers,
),
}
// Handlers
svc.Handlers.Sign.PushBackNamed(v4.SignRequestHandler)
svc.Handlers.Build.PushBackNamed(restxml.BuildHandler)
svc.Handlers.Unmarshal.PushBackNamed(restxml.UnmarshalHandler)
svc.Handlers.UnmarshalMeta.PushBackNamed(restxml.UnmarshalMetaHandler)
svc.Handlers.UnmarshalError.PushBackNamed(restxml.UnmarshalErrorHandler)
return svc
}
// newRequest creates a new request for a OutputService12ProtocolTest operation and runs any
// custom request initialization.
func (c *OutputService12ProtocolTest) newRequest(op *request.Operation, params, data interface{}) *request.Request {
req := c.NewRequest(op, params, data)
return req
}
const opOutputService12TestCaseOperation1 = "OperationName"
// OutputService12TestCaseOperation1Request generates a "aws/request.Request" representing the
// client's request for the OutputService12TestCaseOperation1 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 OutputService12TestCaseOperation1 for more information on using the OutputService12TestCaseOperation1
// 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 OutputService12TestCaseOperation1Request method.
// req, resp := client.OutputService12TestCaseOperation1Request(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
func (c *OutputService12ProtocolTest) OutputService12TestCaseOperation1Request(input *OutputService12TestShapeOutputService12TestCaseOperation1Input) (req *request.Request, output *OutputService12TestShapeOutputService12TestCaseOperation1Output) {
op := &request.Operation{
Name: opOutputService12TestCaseOperation1,
HTTPPath: "/",
}
if input == nil {
input = &OutputService12TestShapeOutputService12TestCaseOperation1Input{}
}
output = &OutputService12TestShapeOutputService12TestCaseOperation1Output{}
req = c.newRequest(op, input, output)
return
}
// OutputService12TestCaseOperation1 API operation for .
//
// 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 's
// API operation OutputService12TestCaseOperation1 for usage and error information.
func (c *OutputService12ProtocolTest) OutputService12TestCaseOperation1(input *OutputService12TestShapeOutputService12TestCaseOperation1Input) (*OutputService12TestShapeOutputService12TestCaseOperation1Output, error) {
req, out := c.OutputService12TestCaseOperation1Request(input)
return out, req.Send()
}
// OutputService12TestCaseOperation1WithContext is the same as OutputService12TestCaseOperation1 with the addition of
// the ability to pass a context and additional request options.
//
// See OutputService12TestCaseOperation1 for details on how to use this API operation.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
func (c *OutputService12ProtocolTest) OutputService12TestCaseOperation1WithContext(ctx aws.Context, input *OutputService12TestShapeOutputService12TestCaseOperation1Input, opts ...request.Option) (*OutputService12TestShapeOutputService12TestCaseOperation1Output, error) {
req, out := c.OutputService12TestCaseOperation1Request(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
type OutputService12TestShapeOutputService12TestCaseOperation1Input struct {
_ struct{} `type:"structure"`
}
type OutputService12TestShapeOutputService12TestCaseOperation1Output struct {
_ struct{} `type:"structure"`
Foo *string `type:"string"`
}
// SetFoo sets the Foo field's value.
func (s *OutputService12TestShapeOutputService12TestCaseOperation1Output) SetFoo(v string) *OutputService12TestShapeOutputService12TestCaseOperation1Output {
s.Foo = &v
return s
}
// OutputService13ProtocolTest provides the API operation methods for making requests to
// . See this package's package overview docs
// for details on the service.
//
// OutputService13ProtocolTest methods are safe to use concurrently. It is not safe to
// modify mutate any of the struct's properties though.
type OutputService13ProtocolTest struct {
*client.Client
}
// New creates a new instance of the OutputService13ProtocolTest 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 OutputService13ProtocolTest client from just a session.
// svc := outputservice13protocoltest.New(mySession)
//
// // Create a OutputService13ProtocolTest client with additional configuration
// svc := outputservice13protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2"))
func NewOutputService13ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *OutputService13ProtocolTest {
c := p.ClientConfig("outputservice13protocoltest", cfgs...)
return newOutputService13ProtocolTestClient(*c.Config, c.Handlers, c.PartitionID, c.Endpoint, c.SigningRegion, c.SigningName)
}
// newClient creates, initializes and returns a new service client instance.
func newOutputService13ProtocolTestClient(cfg aws.Config, handlers request.Handlers, partitionID, endpoint, signingRegion, signingName string) *OutputService13ProtocolTest {
svc := &OutputService13ProtocolTest{
Client: client.New(
cfg,
metadata.ClientInfo{
ServiceName: "OutputService13ProtocolTest",
ServiceID: "OutputService13ProtocolTest",
SigningName: signingName,
SigningRegion: signingRegion,
PartitionID: partitionID,
Endpoint: endpoint,
APIVersion: "",
},
handlers,
),
}
// Handlers
svc.Handlers.Sign.PushBackNamed(v4.SignRequestHandler)
svc.Handlers.Build.PushBackNamed(restxml.BuildHandler)
svc.Handlers.Unmarshal.PushBackNamed(restxml.UnmarshalHandler)
svc.Handlers.UnmarshalMeta.PushBackNamed(restxml.UnmarshalMetaHandler)
svc.Handlers.UnmarshalError.PushBackNamed(restxml.UnmarshalErrorHandler)
return svc
}
// newRequest creates a new request for a OutputService13ProtocolTest operation and runs any
// custom request initialization.
func (c *OutputService13ProtocolTest) newRequest(op *request.Operation, params, data interface{}) *request.Request {
req := c.NewRequest(op, params, data)
return req
}
const opOutputService13TestCaseOperation1 = "OperationName"
// OutputService13TestCaseOperation1Request generates a "aws/request.Request" representing the
// client's request for the OutputService13TestCaseOperation1 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 OutputService13TestCaseOperation1 for more information on using the OutputService13TestCaseOperation1
// 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 OutputService13TestCaseOperation1Request method.
// req, resp := client.OutputService13TestCaseOperation1Request(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
func (c *OutputService13ProtocolTest) OutputService13TestCaseOperation1Request(input *OutputService13TestShapeOutputService13TestCaseOperation1Input) (req *request.Request, output *OutputService13TestShapeOutputService13TestCaseOperation1Output) {
op := &request.Operation{
Name: opOutputService13TestCaseOperation1,
HTTPPath: "/",
}
if input == nil {
input = &OutputService13TestShapeOutputService13TestCaseOperation1Input{}
}
output = &OutputService13TestShapeOutputService13TestCaseOperation1Output{}
req = c.newRequest(op, input, output)
return
}
// OutputService13TestCaseOperation1 API operation for .
//
// 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 's
// API operation OutputService13TestCaseOperation1 for usage and error information.
func (c *OutputService13ProtocolTest) OutputService13TestCaseOperation1(input *OutputService13TestShapeOutputService13TestCaseOperation1Input) (*OutputService13TestShapeOutputService13TestCaseOperation1Output, error) {
req, out := c.OutputService13TestCaseOperation1Request(input)
return out, req.Send()
}
// OutputService13TestCaseOperation1WithContext is the same as OutputService13TestCaseOperation1 with the addition of
// the ability to pass a context and additional request options.
//
// See OutputService13TestCaseOperation1 for details on how to use this API operation.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
func (c *OutputService13ProtocolTest) OutputService13TestCaseOperation1WithContext(ctx aws.Context, input *OutputService13TestShapeOutputService13TestCaseOperation1Input, opts ...request.Option) (*OutputService13TestShapeOutputService13TestCaseOperation1Output, error) {
req, out := c.OutputService13TestCaseOperation1Request(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
type OutputService13TestShapeOutputService13TestCaseOperation1Input struct {
_ struct{} `type:"structure"`
}
type OutputService13TestShapeOutputService13TestCaseOperation1Output struct {
_ struct{} `type:"structure"`
StructMember *OutputService13TestShapeTimeContainer `type:"structure"`
TimeArg *time.Time `type:"timestamp"`
TimeArgInHeader *time.Time `location:"header" locationName:"x-amz-timearg" type:"timestamp"`
TimeCustom *time.Time `type:"timestamp" timestampFormat:"rfc822"`
TimeCustomInHeader *time.Time `location:"header" locationName:"x-amz-timecustom" type:"timestamp" timestampFormat:"unixTimestamp"`
TimeFormat *time.Time `type:"timestamp" timestampFormat:"unixTimestamp"`
TimeFormatInHeader *time.Time `location:"header" locationName:"x-amz-timeformat" type:"timestamp" timestampFormat:"unixTimestamp"`
}
// SetStructMember sets the StructMember field's value.
func (s *OutputService13TestShapeOutputService13TestCaseOperation1Output) SetStructMember(v *OutputService13TestShapeTimeContainer) *OutputService13TestShapeOutputService13TestCaseOperation1Output {
s.StructMember = v
return s
}
// SetTimeArg sets the TimeArg field's value.
func (s *OutputService13TestShapeOutputService13TestCaseOperation1Output) SetTimeArg(v time.Time) *OutputService13TestShapeOutputService13TestCaseOperation1Output {
s.TimeArg = &v
return s
}
// SetTimeArgInHeader sets the TimeArgInHeader field's value.
func (s *OutputService13TestShapeOutputService13TestCaseOperation1Output) SetTimeArgInHeader(v time.Time) *OutputService13TestShapeOutputService13TestCaseOperation1Output {
s.TimeArgInHeader = &v
return s
}
// SetTimeCustom sets the TimeCustom field's value.
func (s *OutputService13TestShapeOutputService13TestCaseOperation1Output) SetTimeCustom(v time.Time) *OutputService13TestShapeOutputService13TestCaseOperation1Output {
s.TimeCustom = &v
return s
}
// SetTimeCustomInHeader sets the TimeCustomInHeader field's value.
func (s *OutputService13TestShapeOutputService13TestCaseOperation1Output) SetTimeCustomInHeader(v time.Time) *OutputService13TestShapeOutputService13TestCaseOperation1Output {
s.TimeCustomInHeader = &v
return s
}
// SetTimeFormat sets the TimeFormat field's value.
func (s *OutputService13TestShapeOutputService13TestCaseOperation1Output) SetTimeFormat(v time.Time) *OutputService13TestShapeOutputService13TestCaseOperation1Output {
s.TimeFormat = &v
return s
}
// SetTimeFormatInHeader sets the TimeFormatInHeader field's value.
func (s *OutputService13TestShapeOutputService13TestCaseOperation1Output) SetTimeFormatInHeader(v time.Time) *OutputService13TestShapeOutputService13TestCaseOperation1Output {
s.TimeFormatInHeader = &v
return s
}
type OutputService13TestShapeTimeContainer struct {
_ struct{} `type:"structure"`
Bar *time.Time `locationName:"bar" type:"timestamp" timestampFormat:"unixTimestamp"`
Foo *time.Time `locationName:"foo" type:"timestamp"`
}
// SetBar sets the Bar field's value.
func (s *OutputService13TestShapeTimeContainer) SetBar(v time.Time) *OutputService13TestShapeTimeContainer {
s.Bar = &v
return s
}
// SetFoo sets the Foo field's value.
func (s *OutputService13TestShapeTimeContainer) SetFoo(v time.Time) *OutputService13TestShapeTimeContainer {
s.Foo = &v
return s
}
// OutputService14ProtocolTest provides the API operation methods for making requests to
// . See this package's package overview docs
// for details on the service.
//
// OutputService14ProtocolTest methods are safe to use concurrently. It is not safe to
// modify mutate any of the struct's properties though.
type OutputService14ProtocolTest struct {
*client.Client
}
// New creates a new instance of the OutputService14ProtocolTest 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 OutputService14ProtocolTest client from just a session.
// svc := outputservice14protocoltest.New(mySession)
//
// // Create a OutputService14ProtocolTest client with additional configuration
// svc := outputservice14protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2"))
func NewOutputService14ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *OutputService14ProtocolTest {
c := p.ClientConfig("outputservice14protocoltest", cfgs...)
return newOutputService14ProtocolTestClient(*c.Config, c.Handlers, c.PartitionID, c.Endpoint, c.SigningRegion, c.SigningName)
}
// newClient creates, initializes and returns a new service client instance.
func newOutputService14ProtocolTestClient(cfg aws.Config, handlers request.Handlers, partitionID, endpoint, signingRegion, signingName string) *OutputService14ProtocolTest {
svc := &OutputService14ProtocolTest{
Client: client.New(
cfg,
metadata.ClientInfo{
ServiceName: "OutputService14ProtocolTest",
ServiceID: "OutputService14ProtocolTest",
SigningName: signingName,
SigningRegion: signingRegion,
PartitionID: partitionID,
Endpoint: endpoint,
APIVersion: "",
},
handlers,
),
}
// Handlers
svc.Handlers.Sign.PushBackNamed(v4.SignRequestHandler)
svc.Handlers.Build.PushBackNamed(restxml.BuildHandler)
svc.Handlers.Unmarshal.PushBackNamed(restxml.UnmarshalHandler)
svc.Handlers.UnmarshalMeta.PushBackNamed(restxml.UnmarshalMetaHandler)
svc.Handlers.UnmarshalError.PushBackNamed(restxml.UnmarshalErrorHandler)
return svc
}
// newRequest creates a new request for a OutputService14ProtocolTest operation and runs any
// custom request initialization.
func (c *OutputService14ProtocolTest) newRequest(op *request.Operation, params, data interface{}) *request.Request {
req := c.NewRequest(op, params, data)
return req
}
const opOutputService14TestCaseOperation1 = "OperationName"
// OutputService14TestCaseOperation1Request generates a "aws/request.Request" representing the
// client's request for the OutputService14TestCaseOperation1 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 OutputService14TestCaseOperation1 for more information on using the OutputService14TestCaseOperation1
// 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 OutputService14TestCaseOperation1Request method.
// req, resp := client.OutputService14TestCaseOperation1Request(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
func (c *OutputService14ProtocolTest) OutputService14TestCaseOperation1Request(input *OutputService14TestShapeOutputService14TestCaseOperation1Input) (req *request.Request, output *OutputService14TestShapeOutputService14TestCaseOperation1Output) {
op := &request.Operation{
Name: opOutputService14TestCaseOperation1,
HTTPMethod: "POST",
HTTPPath: "/path",
}
if input == nil {
input = &OutputService14TestShapeOutputService14TestCaseOperation1Input{}
}
output = &OutputService14TestShapeOutputService14TestCaseOperation1Output{}
req = c.newRequest(op, input, output)
return
}
// OutputService14TestCaseOperation1 API operation for .
//
// 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 's
// API operation OutputService14TestCaseOperation1 for usage and error information.
func (c *OutputService14ProtocolTest) OutputService14TestCaseOperation1(input *OutputService14TestShapeOutputService14TestCaseOperation1Input) (*OutputService14TestShapeOutputService14TestCaseOperation1Output, error) {
req, out := c.OutputService14TestCaseOperation1Request(input)
return out, req.Send()
}
// OutputService14TestCaseOperation1WithContext is the same as OutputService14TestCaseOperation1 with the addition of
// the ability to pass a context and additional request options.
//
// See OutputService14TestCaseOperation1 for details on how to use this API operation.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
func (c *OutputService14ProtocolTest) OutputService14TestCaseOperation1WithContext(ctx aws.Context, input *OutputService14TestShapeOutputService14TestCaseOperation1Input, opts ...request.Option) (*OutputService14TestShapeOutputService14TestCaseOperation1Output, error) {
req, out := c.OutputService14TestCaseOperation1Request(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
const opOutputService14TestCaseOperation2 = "OperationName"
// OutputService14TestCaseOperation2Request generates a "aws/request.Request" representing the
// client's request for the OutputService14TestCaseOperation2 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 OutputService14TestCaseOperation2 for more information on using the OutputService14TestCaseOperation2
// 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 OutputService14TestCaseOperation2Request method.
// req, resp := client.OutputService14TestCaseOperation2Request(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
func (c *OutputService14ProtocolTest) OutputService14TestCaseOperation2Request(input *OutputService14TestShapeOutputService14TestCaseOperation2Input) (req *request.Request, output *OutputService14TestShapeOutputService14TestCaseOperation2Output) {
op := &request.Operation{
Name: opOutputService14TestCaseOperation2,
HTTPMethod: "POST",
HTTPPath: "/path",
}
if input == nil {
input = &OutputService14TestShapeOutputService14TestCaseOperation2Input{}
}
output = &OutputService14TestShapeOutputService14TestCaseOperation2Output{}
req = c.newRequest(op, input, output)
req.Handlers.Unmarshal.Swap(restxml.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
return
}
// OutputService14TestCaseOperation2 API operation for .
//
// 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 's
// API operation OutputService14TestCaseOperation2 for usage and error information.
func (c *OutputService14ProtocolTest) OutputService14TestCaseOperation2(input *OutputService14TestShapeOutputService14TestCaseOperation2Input) (*OutputService14TestShapeOutputService14TestCaseOperation2Output, error) {
req, out := c.OutputService14TestCaseOperation2Request(input)
return out, req.Send()
}
// OutputService14TestCaseOperation2WithContext is the same as OutputService14TestCaseOperation2 with the addition of
// the ability to pass a context and additional request options.
//
// See OutputService14TestCaseOperation2 for details on how to use this API operation.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
func (c *OutputService14ProtocolTest) OutputService14TestCaseOperation2WithContext(ctx aws.Context, input *OutputService14TestShapeOutputService14TestCaseOperation2Input, opts ...request.Option) (*OutputService14TestShapeOutputService14TestCaseOperation2Output, error) {
req, out := c.OutputService14TestCaseOperation2Request(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
type OutputService14TestShapeOutputService14TestCaseOperation1Input struct {
_ struct{} `type:"structure"`
}
type OutputService14TestShapeOutputService14TestCaseOperation1Output struct {
_ struct{} `type:"structure"`
FooEnum *string `type:"string" enum:"OutputService14TestShapeRESTJSONEnumType"`
HeaderEnum *string `location:"header" locationName:"x-amz-enum" type:"string" enum:"OutputService14TestShapeRESTJSONEnumType"`
ListEnums []*string `type:"list"`
}
// SetFooEnum sets the FooEnum field's value.
func (s *OutputService14TestShapeOutputService14TestCaseOperation1Output) SetFooEnum(v string) *OutputService14TestShapeOutputService14TestCaseOperation1Output {
s.FooEnum = &v
return s
}
// SetHeaderEnum sets the HeaderEnum field's value.
func (s *OutputService14TestShapeOutputService14TestCaseOperation1Output) SetHeaderEnum(v string) *OutputService14TestShapeOutputService14TestCaseOperation1Output {
s.HeaderEnum = &v
return s
}
// SetListEnums sets the ListEnums field's value.
func (s *OutputService14TestShapeOutputService14TestCaseOperation1Output) SetListEnums(v []*string) *OutputService14TestShapeOutputService14TestCaseOperation1Output {
s.ListEnums = v
return s
}
type OutputService14TestShapeOutputService14TestCaseOperation2Input struct {
_ struct{} `locationName:"OutputShape" type:"structure"`
FooEnum *string `type:"string" enum:"OutputService14TestShapeRESTJSONEnumType"`
HeaderEnum *string `location:"header" locationName:"x-amz-enum" type:"string" enum:"OutputService14TestShapeRESTJSONEnumType"`
ListEnums []*string `type:"list"`
}
// SetFooEnum sets the FooEnum field's value.
func (s *OutputService14TestShapeOutputService14TestCaseOperation2Input) SetFooEnum(v string) *OutputService14TestShapeOutputService14TestCaseOperation2Input {
s.FooEnum = &v
return s
}
// SetHeaderEnum sets the HeaderEnum field's value.
func (s *OutputService14TestShapeOutputService14TestCaseOperation2Input) SetHeaderEnum(v string) *OutputService14TestShapeOutputService14TestCaseOperation2Input {
s.HeaderEnum = &v
return s
}
// SetListEnums sets the ListEnums field's value.
func (s *OutputService14TestShapeOutputService14TestCaseOperation2Input) SetListEnums(v []*string) *OutputService14TestShapeOutputService14TestCaseOperation2Input {
s.ListEnums = v
return s
}
type OutputService14TestShapeOutputService14TestCaseOperation2Output struct {
_ struct{} `type:"structure"`
}
const (
// RESTJSONEnumTypeFoo is a OutputService14TestShapeRESTJSONEnumType enum value
RESTJSONEnumTypeFoo = "foo"
// RESTJSONEnumTypeBar is a OutputService14TestShapeRESTJSONEnumType enum value
RESTJSONEnumTypeBar = "bar"
// RESTJSONEnumType0 is a OutputService14TestShapeRESTJSONEnumType enum value
RESTJSONEnumType0 = "0"
// RESTJSONEnumType1 is a OutputService14TestShapeRESTJSONEnumType enum value
RESTJSONEnumType1 = "1"
)
// OutputService14TestShapeRESTJSONEnumType_Values returns all elements of the OutputService14TestShapeRESTJSONEnumType enum
func OutputService14TestShapeRESTJSONEnumType_Values() []string {
return []string{
RESTJSONEnumTypeFoo,
RESTJSONEnumTypeBar,
RESTJSONEnumType0,
RESTJSONEnumType1,
}
}
// OutputService15ProtocolTest provides the API operation methods for making requests to
// . See this package's package overview docs
// for details on the service.
//
// OutputService15ProtocolTest methods are safe to use concurrently. It is not safe to
// modify mutate any of the struct's properties though.
type OutputService15ProtocolTest struct {
*client.Client
}
// New creates a new instance of the OutputService15ProtocolTest 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 OutputService15ProtocolTest client from just a session.
// svc := outputservice15protocoltest.New(mySession)
//
// // Create a OutputService15ProtocolTest client with additional configuration
// svc := outputservice15protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2"))
func NewOutputService15ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *OutputService15ProtocolTest {
c := p.ClientConfig("outputservice15protocoltest", cfgs...)
return newOutputService15ProtocolTestClient(*c.Config, c.Handlers, c.PartitionID, c.Endpoint, c.SigningRegion, c.SigningName)
}
// newClient creates, initializes and returns a new service client instance.
func newOutputService15ProtocolTestClient(cfg aws.Config, handlers request.Handlers, partitionID, endpoint, signingRegion, signingName string) *OutputService15ProtocolTest {
svc := &OutputService15ProtocolTest{
Client: client.New(
cfg,
metadata.ClientInfo{
ServiceName: "OutputService15ProtocolTest",
ServiceID: "OutputService15ProtocolTest",
SigningName: signingName,
SigningRegion: signingRegion,
PartitionID: partitionID,
Endpoint: endpoint,
APIVersion: "",
},
handlers,
),
}
// Handlers
svc.Handlers.Sign.PushBackNamed(v4.SignRequestHandler)
svc.Handlers.Build.PushBackNamed(restxml.BuildHandler)
svc.Handlers.Unmarshal.PushBackNamed(restxml.UnmarshalHandler)
svc.Handlers.UnmarshalMeta.PushBackNamed(restxml.UnmarshalMetaHandler)
svc.Handlers.UnmarshalError.PushBackNamed(restxml.UnmarshalErrorHandler)
return svc
}
// newRequest creates a new request for a OutputService15ProtocolTest operation and runs any
// custom request initialization.
func (c *OutputService15ProtocolTest) newRequest(op *request.Operation, params, data interface{}) *request.Request {
req := c.NewRequest(op, params, data)
return req
}
const opOutputService15TestCaseOperation1 = "OperationName"
// OutputService15TestCaseOperation1Request generates a "aws/request.Request" representing the
// client's request for the OutputService15TestCaseOperation1 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 OutputService15TestCaseOperation1 for more information on using the OutputService15TestCaseOperation1
// 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 OutputService15TestCaseOperation1Request method.
// req, resp := client.OutputService15TestCaseOperation1Request(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
func (c *OutputService15ProtocolTest) OutputService15TestCaseOperation1Request(input *OutputService15TestShapeOutputService15TestCaseOperation1Input) (req *request.Request, output *OutputService15TestShapeOutputService15TestCaseOperation1Output) {
op := &request.Operation{
Name: opOutputService15TestCaseOperation1,
HTTPMethod: "GET",
HTTPPath: "/path",
}
if input == nil {
input = &OutputService15TestShapeOutputService15TestCaseOperation1Input{}
}
output = &OutputService15TestShapeOutputService15TestCaseOperation1Output{}
req = c.newRequest(op, input, output)
return
}
// OutputService15TestCaseOperation1 API operation for .
//
// 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 's
// API operation OutputService15TestCaseOperation1 for usage and error information.
func (c *OutputService15ProtocolTest) OutputService15TestCaseOperation1(input *OutputService15TestShapeOutputService15TestCaseOperation1Input) (*OutputService15TestShapeOutputService15TestCaseOperation1Output, error) {
req, out := c.OutputService15TestCaseOperation1Request(input)
return out, req.Send()
}
// OutputService15TestCaseOperation1WithContext is the same as OutputService15TestCaseOperation1 with the addition of
// the ability to pass a context and additional request options.
//
// See OutputService15TestCaseOperation1 for details on how to use this API operation.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
func (c *OutputService15ProtocolTest) OutputService15TestCaseOperation1WithContext(ctx aws.Context, input *OutputService15TestShapeOutputService15TestCaseOperation1Input, opts ...request.Option) (*OutputService15TestShapeOutputService15TestCaseOperation1Output, error) {
req, out := c.OutputService15TestCaseOperation1Request(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
type OutputService15TestShapeItemDetailShape struct {
_ struct{} `type:"structure" xmlPrefix:"xsi" xmlURI:"http://www.w3.org/2001/XMLSchema-instance"`
ID *string `type:"string"`
// Type is a required field
Type *string `locationName:"xsi:type" type:"string" xmlAttribute:"true" required:"true" enum:"OutputService15TestShapeItemType"`
}
// SetID sets the ID field's value.
func (s *OutputService15TestShapeItemDetailShape) SetID(v string) *OutputService15TestShapeItemDetailShape {
s.ID = &v
return s
}
// SetType sets the Type field's value.
func (s *OutputService15TestShapeItemDetailShape) SetType(v string) *OutputService15TestShapeItemDetailShape {
s.Type = &v
return s
}
type OutputService15TestShapeItemShape struct {
_ struct{} `type:"structure"`
ItemDetail *OutputService15TestShapeItemDetailShape `type:"structure" xmlPrefix:"xsi" xmlURI:"http://www.w3.org/2001/XMLSchema-instance"`
}
// SetItemDetail sets the ItemDetail field's value.
func (s *OutputService15TestShapeItemShape) SetItemDetail(v *OutputService15TestShapeItemDetailShape) *OutputService15TestShapeItemShape {
s.ItemDetail = v
return s
}
type OutputService15TestShapeOutputService15TestCaseOperation1Input struct {
_ struct{} `type:"structure"`
}
type OutputService15TestShapeOutputService15TestCaseOperation1Output struct {
_ struct{} `type:"structure"`
ListItems []*OutputService15TestShapeItemShape `locationName:"ItemsList" locationNameList:"Item" type:"list"`
}
// SetListItems sets the ListItems field's value.
func (s *OutputService15TestShapeOutputService15TestCaseOperation1Output) SetListItems(v []*OutputService15TestShapeItemShape) *OutputService15TestShapeOutputService15TestCaseOperation1Output {
s.ListItems = v
return s
}
const (
// ItemTypeType1 is a OutputService15TestShapeItemType enum value
ItemTypeType1 = "Type1"
// ItemTypeType2 is a OutputService15TestShapeItemType enum value
ItemTypeType2 = "Type2"
// ItemTypeType3 is a OutputService15TestShapeItemType enum value
ItemTypeType3 = "Type3"
)
// OutputService15TestShapeItemType_Values returns all elements of the OutputService15TestShapeItemType enum
func OutputService15TestShapeItemType_Values() []string {
return []string{
ItemTypeType1,
ItemTypeType2,
ItemTypeType3,
}
}
//
// Tests begin here
//
func TestOutputService1ProtocolTestScalarMembersCase1(t *testing.T) {
svc := NewOutputService1ProtocolTest(unit.Session, &aws.Config{Endpoint: aws.String("https://test")})
buf := bytes.NewReader([]byte("<OperationNameResponse><Str>myname</Str><FooNum>123</FooNum><FalseBool>false</FalseBool><TrueBool>true</TrueBool><Float>1.2</Float><Double>1.3</Double><Long>200</Long><Char>a</Char><Timestamp>2015-01-25T08:00:00Z</Timestamp><Blob>aGVsbG8=</Blob></OperationNameResponse>"))
req, out := svc.OutputService1TestCaseOperation1Request(nil)
req.HTTPResponse = &http.Response{StatusCode: 200, Body: ioutil.NopCloser(buf), Header: http.Header{}}
// set headers
req.HTTPResponse.Header.Set("BlobHeader", "aGVsbG8=")
req.HTTPResponse.Header.Set("ImaHeader", "test")
req.HTTPResponse.Header.Set("X-Foo", "abc")
// unmarshal response
req.Handlers.UnmarshalMeta.Run(req)
req.Handlers.Unmarshal.Run(req)
if req.Error != nil {
t.Errorf("expect not error, got %v", req.Error)
}
// assert response
if out == nil {
t.Errorf("expect not to be nil")
}
if e, a := "hello", string(out.Blob); e != a {
t.Errorf("expect %v, got %v", e, a)
}
if e, a := "hello", string(out.BlobHeader); e != a {
t.Errorf("expect %v, got %v", e, a)
}
if e, a := "a", *out.Char; e != a {
t.Errorf("expect %v, got %v", e, a)
}
if e, a := 1.3, *out.Double; e != a {
t.Errorf("expect %v, got %v", e, a)
}
if e, a := false, *out.FalseBool; e != a {
t.Errorf("expect %v, got %v", e, a)
}
if e, a := 1.2, *out.Float; e != a {
t.Errorf("expect %v, got %v", e, a)
}
if e, a := "test", *out.ImaHeader; e != a {
t.Errorf("expect %v, got %v", e, a)
}
if e, a := "abc", *out.ImaHeaderLocation; e != a {
t.Errorf("expect %v, got %v", e, a)
}
if e, a := int64(200), *out.Long; e != a {
t.Errorf("expect %v, got %v", e, a)
}
if e, a := int64(123), *out.Num; e != a {
t.Errorf("expect %v, got %v", e, a)
}
if e, a := "myname", *out.Str; e != a {
t.Errorf("expect %v, got %v", e, a)
}
if e, a := time.Unix(1.4221728e+09, 0).UTC().String(), out.Timestamp.UTC().String(); e != a {
t.Errorf("expect %v, got %v", e, a)
}
if e, a := true, *out.TrueBool; e != a {
t.Errorf("expect %v, got %v", e, a)
}
}
func TestOutputService1ProtocolTestScalarMembersCase2(t *testing.T) {
svc := NewOutputService1ProtocolTest(unit.Session, &aws.Config{Endpoint: aws.String("https://test")})
buf := bytes.NewReader([]byte("<OperationNameResponse><Str></Str><FooNum>123</FooNum><FalseBool>false</FalseBool><TrueBool>true</TrueBool><Float>1.2</Float><Double>1.3</Double><Long>200</Long><Char>a</Char><Timestamp>2015-01-25T08:00:00Z</Timestamp></OperationNameResponse>"))
req, out := svc.OutputService1TestCaseOperation2Request(nil)
req.HTTPResponse = &http.Response{StatusCode: 200, Body: ioutil.NopCloser(buf), Header: http.Header{}}
// set headers
req.HTTPResponse.Header.Set("ImaHeader", "test")
req.HTTPResponse.Header.Set("X-Foo", "abc")
// unmarshal response
req.Handlers.UnmarshalMeta.Run(req)
req.Handlers.Unmarshal.Run(req)
if req.Error != nil {
t.Errorf("expect not error, got %v", req.Error)
}
// assert response
if out == nil {
t.Errorf("expect not to be nil")
}
if e, a := "a", *out.Char; e != a {
t.Errorf("expect %v, got %v", e, a)
}
if e, a := 1.3, *out.Double; e != a {
t.Errorf("expect %v, got %v", e, a)
}
if e, a := false, *out.FalseBool; e != a {
t.Errorf("expect %v, got %v", e, a)
}
if e, a := 1.2, *out.Float; e != a {
t.Errorf("expect %v, got %v", e, a)
}
if e, a := "test", *out.ImaHeader; e != a {
t.Errorf("expect %v, got %v", e, a)
}
if e, a := "abc", *out.ImaHeaderLocation; e != a {
t.Errorf("expect %v, got %v", e, a)
}
if e, a := int64(200), *out.Long; e != a {
t.Errorf("expect %v, got %v", e, a)
}
if e, a := int64(123), *out.Num; e != a {
t.Errorf("expect %v, got %v", e, a)
}
if e, a := "", *out.Str; e != a {
t.Errorf("expect %v, got %v", e, a)
}
if e, a := time.Unix(1.4221728e+09, 0).UTC().String(), out.Timestamp.UTC().String(); e != a {
t.Errorf("expect %v, got %v", e, a)
}
if e, a := true, *out.TrueBool; e != a {
t.Errorf("expect %v, got %v", e, a)
}
}
func TestOutputService2ProtocolTestBlobCase1(t *testing.T) {
svc := NewOutputService2ProtocolTest(unit.Session, &aws.Config{Endpoint: aws.String("https://test")})
buf := bytes.NewReader([]byte("<OperationNameResult><Blob>dmFsdWU=</Blob></OperationNameResult>"))
req, out := svc.OutputService2TestCaseOperation1Request(nil)
req.HTTPResponse = &http.Response{StatusCode: 200, Body: ioutil.NopCloser(buf), Header: http.Header{}}
// set headers
// unmarshal response
req.Handlers.UnmarshalMeta.Run(req)
req.Handlers.Unmarshal.Run(req)
if req.Error != nil {
t.Errorf("expect not error, got %v", req.Error)
}
// assert response
if out == nil {
t.Errorf("expect not to be nil")
}
if e, a := "value", string(out.Blob); e != a {
t.Errorf("expect %v, got %v", e, a)
}
}
func TestOutputService3ProtocolTestListsCase1(t *testing.T) {
svc := NewOutputService3ProtocolTest(unit.Session, &aws.Config{Endpoint: aws.String("https://test")})
buf := bytes.NewReader([]byte("<OperationNameResult><ListMember><member>abc</member><member>123</member></ListMember></OperationNameResult>"))
req, out := svc.OutputService3TestCaseOperation1Request(nil)
req.HTTPResponse = &http.Response{StatusCode: 200, Body: ioutil.NopCloser(buf), Header: http.Header{}}
// set headers
// unmarshal response
req.Handlers.UnmarshalMeta.Run(req)
req.Handlers.Unmarshal.Run(req)
if req.Error != nil {
t.Errorf("expect not error, got %v", req.Error)
}
// assert response
if out == nil {
t.Errorf("expect not to be nil")
}
if e, a := "abc", *out.ListMember[0]; e != a {
t.Errorf("expect %v, got %v", e, a)
}
if e, a := "123", *out.ListMember[1]; e != a {
t.Errorf("expect %v, got %v", e, a)
}
}
func TestOutputService4ProtocolTestListWithCustomMemberNameCase1(t *testing.T) {
svc := NewOutputService4ProtocolTest(unit.Session, &aws.Config{Endpoint: aws.String("https://test")})
buf := bytes.NewReader([]byte("<OperationNameResult><ListMember><item>abc</item><item>123</item></ListMember></OperationNameResult>"))
req, out := svc.OutputService4TestCaseOperation1Request(nil)
req.HTTPResponse = &http.Response{StatusCode: 200, Body: ioutil.NopCloser(buf), Header: http.Header{}}
// set headers
// unmarshal response
req.Handlers.UnmarshalMeta.Run(req)
req.Handlers.Unmarshal.Run(req)
if req.Error != nil {
t.Errorf("expect not error, got %v", req.Error)
}
// assert response
if out == nil {
t.Errorf("expect not to be nil")
}
if e, a := "abc", *out.ListMember[0]; e != a {
t.Errorf("expect %v, got %v", e, a)
}
if e, a := "123", *out.ListMember[1]; e != a {
t.Errorf("expect %v, got %v", e, a)
}
}
func TestOutputService5ProtocolTestFlattenedListCase1(t *testing.T) {
svc := NewOutputService5ProtocolTest(unit.Session, &aws.Config{Endpoint: aws.String("https://test")})
buf := bytes.NewReader([]byte("<OperationNameResult><ListMember>abc</ListMember><ListMember>123</ListMember></OperationNameResult>"))
req, out := svc.OutputService5TestCaseOperation1Request(nil)
req.HTTPResponse = &http.Response{StatusCode: 200, Body: ioutil.NopCloser(buf), Header: http.Header{}}
// set headers
// unmarshal response
req.Handlers.UnmarshalMeta.Run(req)
req.Handlers.Unmarshal.Run(req)
if req.Error != nil {
t.Errorf("expect not error, got %v", req.Error)
}
// assert response
if out == nil {
t.Errorf("expect not to be nil")
}
if e, a := "abc", *out.ListMember[0]; e != a {
t.Errorf("expect %v, got %v", e, a)
}
if e, a := "123", *out.ListMember[1]; e != a {
t.Errorf("expect %v, got %v", e, a)
}
}
func TestOutputService6ProtocolTestNormalMapCase1(t *testing.T) {
svc := NewOutputService6ProtocolTest(unit.Session, &aws.Config{Endpoint: aws.String("https://test")})
buf := bytes.NewReader([]byte("<OperationNameResult><Map><entry><key>qux</key><value><foo>bar</foo></value></entry><entry><key>baz</key><value><foo>bam</foo></value></entry></Map></OperationNameResult>"))
req, out := svc.OutputService6TestCaseOperation1Request(nil)
req.HTTPResponse = &http.Response{StatusCode: 200, Body: ioutil.NopCloser(buf), Header: http.Header{}}
// set headers
// unmarshal response
req.Handlers.UnmarshalMeta.Run(req)
req.Handlers.Unmarshal.Run(req)
if req.Error != nil {
t.Errorf("expect not error, got %v", req.Error)
}
// assert response
if out == nil {
t.Errorf("expect not to be nil")
}
if e, a := "bam", *out.Map["baz"].Foo; e != a {
t.Errorf("expect %v, got %v", e, a)
}
if e, a := "bar", *out.Map["qux"].Foo; e != a {
t.Errorf("expect %v, got %v", e, a)
}
}
func TestOutputService7ProtocolTestFlattenedMapCase1(t *testing.T) {
svc := NewOutputService7ProtocolTest(unit.Session, &aws.Config{Endpoint: aws.String("https://test")})
buf := bytes.NewReader([]byte("<OperationNameResult><Map><key>qux</key><value>bar</value></Map><Map><key>baz</key><value>bam</value></Map></OperationNameResult>"))
req, out := svc.OutputService7TestCaseOperation1Request(nil)
req.HTTPResponse = &http.Response{StatusCode: 200, Body: ioutil.NopCloser(buf), Header: http.Header{}}
// set headers
// unmarshal response
req.Handlers.UnmarshalMeta.Run(req)
req.Handlers.Unmarshal.Run(req)
if req.Error != nil {
t.Errorf("expect not error, got %v", req.Error)
}
// assert response
if out == nil {
t.Errorf("expect not to be nil")
}
if e, a := "bam", *out.Map["baz"]; e != a {
t.Errorf("expect %v, got %v", e, a)
}
if e, a := "bar", *out.Map["qux"]; e != a {
t.Errorf("expect %v, got %v", e, a)
}
}
func TestOutputService8ProtocolTestNamedMapCase1(t *testing.T) {
svc := NewOutputService8ProtocolTest(unit.Session, &aws.Config{Endpoint: aws.String("https://test")})
buf := bytes.NewReader([]byte("<OperationNameResult><Map><entry><foo>qux</foo><bar>bar</bar></entry><entry><foo>baz</foo><bar>bam</bar></entry></Map></OperationNameResult>"))
req, out := svc.OutputService8TestCaseOperation1Request(nil)
req.HTTPResponse = &http.Response{StatusCode: 200, Body: ioutil.NopCloser(buf), Header: http.Header{}}
// set headers
// unmarshal response
req.Handlers.UnmarshalMeta.Run(req)
req.Handlers.Unmarshal.Run(req)
if req.Error != nil {
t.Errorf("expect not error, got %v", req.Error)
}
// assert response
if out == nil {
t.Errorf("expect not to be nil")
}
if e, a := "bam", *out.Map["baz"]; e != a {
t.Errorf("expect %v, got %v", e, a)
}
if e, a := "bar", *out.Map["qux"]; e != a {
t.Errorf("expect %v, got %v", e, a)
}
}
func TestOutputService9ProtocolTestXMLPayloadCase1(t *testing.T) {
svc := NewOutputService9ProtocolTest(unit.Session, &aws.Config{Endpoint: aws.String("https://test")})
buf := bytes.NewReader([]byte("<OperationNameResponse><Foo>abc</Foo></OperationNameResponse>"))
req, out := svc.OutputService9TestCaseOperation1Request(nil)
req.HTTPResponse = &http.Response{StatusCode: 200, Body: ioutil.NopCloser(buf), Header: http.Header{}}
// set headers
req.HTTPResponse.Header.Set("X-Foo", "baz")
// unmarshal response
req.Handlers.UnmarshalMeta.Run(req)
req.Handlers.Unmarshal.Run(req)
if req.Error != nil {
t.Errorf("expect not error, got %v", req.Error)
}
// assert response
if out == nil {
t.Errorf("expect not to be nil")
}
if e, a := "abc", *out.Data.Foo; e != a {
t.Errorf("expect %v, got %v", e, a)
}
if e, a := "baz", *out.Header; e != a {
t.Errorf("expect %v, got %v", e, a)
}
}
func TestOutputService10ProtocolTestStreamingPayloadCase1(t *testing.T) {
svc := NewOutputService10ProtocolTest(unit.Session, &aws.Config{Endpoint: aws.String("https://test")})
buf := bytes.NewReader([]byte("abc"))
req, out := svc.OutputService10TestCaseOperation1Request(nil)
req.HTTPResponse = &http.Response{StatusCode: 200, Body: ioutil.NopCloser(buf), Header: http.Header{}}
// set headers
// unmarshal response
req.Handlers.UnmarshalMeta.Run(req)
req.Handlers.Unmarshal.Run(req)
if req.Error != nil {
t.Errorf("expect not error, got %v", req.Error)
}
// assert response
if out == nil {
t.Errorf("expect not to be nil")
}
if e, a := "abc", string(out.Stream); e != a {
t.Errorf("expect %v, got %v", e, a)
}
}
func TestOutputService11ProtocolTestScalarMembersInHeadersCase1(t *testing.T) {
svc := NewOutputService11ProtocolTest(unit.Session, &aws.Config{Endpoint: aws.String("https://test")})
buf := bytes.NewReader([]byte(""))
req, out := svc.OutputService11TestCaseOperation1Request(nil)
req.HTTPResponse = &http.Response{StatusCode: 200, Body: ioutil.NopCloser(buf), Header: http.Header{}}
// set headers
req.HTTPResponse.Header.Set("x-char", "a")
req.HTTPResponse.Header.Set("x-double", "1.5")
req.HTTPResponse.Header.Set("x-false-bool", "false")
req.HTTPResponse.Header.Set("x-float", "1.5")
req.HTTPResponse.Header.Set("x-int", "1")
req.HTTPResponse.Header.Set("x-long", "100")
req.HTTPResponse.Header.Set("x-str", "string")
req.HTTPResponse.Header.Set("x-timestamp", "Sun, 25 Jan 2015 08:00:00 GMT")
req.HTTPResponse.Header.Set("x-true-bool", "true")
// unmarshal response
req.Handlers.UnmarshalMeta.Run(req)
req.Handlers.Unmarshal.Run(req)
if req.Error != nil {
t.Errorf("expect not error, got %v", req.Error)
}
// assert response
if out == nil {
t.Errorf("expect not to be nil")
}
if e, a := "a", *out.Char; e != a {
t.Errorf("expect %v, got %v", e, a)
}
if e, a := 1.5, *out.Double; e != a {
t.Errorf("expect %v, got %v", e, a)
}
if e, a := false, *out.FalseBool; e != a {
t.Errorf("expect %v, got %v", e, a)
}
if e, a := 1.5, *out.Float; e != a {
t.Errorf("expect %v, got %v", e, a)
}
if e, a := int64(1), *out.Integer; e != a {
t.Errorf("expect %v, got %v", e, a)
}
if e, a := int64(100), *out.Long; e != a {
t.Errorf("expect %v, got %v", e, a)
}
if e, a := "string", *out.Str; e != a {
t.Errorf("expect %v, got %v", e, a)
}
if e, a := time.Unix(1.4221728e+09, 0).UTC().String(), out.Timestamp.UTC().String(); e != a {
t.Errorf("expect %v, got %v", e, a)
}
if e, a := true, *out.TrueBool; e != a {
t.Errorf("expect %v, got %v", e, a)
}
}
func TestOutputService12ProtocolTestEmptyStringCase1(t *testing.T) {
svc := NewOutputService12ProtocolTest(unit.Session, &aws.Config{Endpoint: aws.String("https://test")})
buf := bytes.NewReader([]byte("<OperationNameResponse><Foo/><RequestId>requestid</RequestId></OperationNameResponse>"))
req, out := svc.OutputService12TestCaseOperation1Request(nil)
req.HTTPResponse = &http.Response{StatusCode: 200, Body: ioutil.NopCloser(buf), Header: http.Header{}}
// set headers
// unmarshal response
req.Handlers.UnmarshalMeta.Run(req)
req.Handlers.Unmarshal.Run(req)
if req.Error != nil {
t.Errorf("expect not error, got %v", req.Error)
}
// assert response
if out == nil {
t.Errorf("expect not to be nil")
}
if e, a := "", *out.Foo; e != a {
t.Errorf("expect %v, got %v", e, a)
}
}
func TestOutputService13ProtocolTestTimestampMembersCase1(t *testing.T) {
svc := NewOutputService13ProtocolTest(unit.Session, &aws.Config{Endpoint: aws.String("https://test")})
buf := bytes.NewReader([]byte("<OperationNameResponse><StructMember><foo>2014-04-29T18:30:38Z</foo><bar>1398796238</bar></StructMember><TimeArg>2014-04-29T18:30:38Z</TimeArg><TimeCustom>Tue, 29 Apr 2014 18:30:38 GMT</TimeCustom><TimeFormat>1398796238</TimeFormat><RequestId>requestid</RequestId></OperationNameResponse>"))
req, out := svc.OutputService13TestCaseOperation1Request(nil)
req.HTTPResponse = &http.Response{StatusCode: 200, Body: ioutil.NopCloser(buf), Header: http.Header{}}
// set headers
req.HTTPResponse.Header.Set("x-amz-timearg", "Tue, 29 Apr 2014 18:30:38 GMT")
req.HTTPResponse.Header.Set("x-amz-timecustom", "1398796238")
req.HTTPResponse.Header.Set("x-amz-timeformat", "1398796238")
// unmarshal response
req.Handlers.UnmarshalMeta.Run(req)
req.Handlers.Unmarshal.Run(req)
if req.Error != nil {
t.Errorf("expect not error, got %v", req.Error)
}
// assert response
if out == nil {
t.Errorf("expect not to be nil")
}
if e, a := time.Unix(1.398796238e+09, 0).UTC().String(), out.StructMember.Bar.UTC().String(); e != a {
t.Errorf("expect %v, got %v", e, a)
}
if e, a := time.Unix(1.398796238e+09, 0).UTC().String(), out.StructMember.Foo.UTC().String(); e != a {
t.Errorf("expect %v, got %v", e, a)
}
if e, a := time.Unix(1.398796238e+09, 0).UTC().String(), out.TimeArg.UTC().String(); e != a {
t.Errorf("expect %v, got %v", e, a)
}
if e, a := time.Unix(1.398796238e+09, 0).UTC().String(), out.TimeArgInHeader.UTC().String(); e != a {
t.Errorf("expect %v, got %v", e, a)
}
if e, a := time.Unix(1.398796238e+09, 0).UTC().String(), out.TimeCustom.UTC().String(); e != a {
t.Errorf("expect %v, got %v", e, a)
}
if e, a := time.Unix(1.398796238e+09, 0).UTC().String(), out.TimeCustomInHeader.UTC().String(); e != a {
t.Errorf("expect %v, got %v", e, a)
}
if e, a := time.Unix(1.398796238e+09, 0).UTC().String(), out.TimeFormat.UTC().String(); e != a {
t.Errorf("expect %v, got %v", e, a)
}
if e, a := time.Unix(1.398796238e+09, 0).UTC().String(), out.TimeFormatInHeader.UTC().String(); e != a {
t.Errorf("expect %v, got %v", e, a)
}
}
func TestOutputService14ProtocolTestEnumCase1(t *testing.T) {
svc := NewOutputService14ProtocolTest(unit.Session, &aws.Config{Endpoint: aws.String("https://test")})
buf := bytes.NewReader([]byte("<OperationNameResponse><FooEnum>foo</FooEnum><ListEnums><member>0</member><member>1</member></ListEnums></OperationNameResponse>"))
req, out := svc.OutputService14TestCaseOperation1Request(nil)
req.HTTPResponse = &http.Response{StatusCode: 200, Body: ioutil.NopCloser(buf), Header: http.Header{}}
// set headers
req.HTTPResponse.Header.Set("x-amz-enum", "baz")
// unmarshal response
req.Handlers.UnmarshalMeta.Run(req)
req.Handlers.Unmarshal.Run(req)
if req.Error != nil {
t.Errorf("expect not error, got %v", req.Error)
}
// assert response
if out == nil {
t.Errorf("expect not to be nil")
}
if e, a := "foo", *out.FooEnum; e != a {
t.Errorf("expect %v, got %v", e, a)
}
if e, a := "baz", *out.HeaderEnum; e != a {
t.Errorf("expect %v, got %v", e, a)
}
if e, a := "0", *out.ListEnums[0]; e != a {
t.Errorf("expect %v, got %v", e, a)
}
if e, a := "1", *out.ListEnums[1]; e != a {
t.Errorf("expect %v, got %v", e, a)
}
}
func TestOutputService14ProtocolTestEnumCase2(t *testing.T) {
svc := NewOutputService14ProtocolTest(unit.Session, &aws.Config{Endpoint: aws.String("https://test")})
buf := bytes.NewReader([]byte(""))
req, out := svc.OutputService14TestCaseOperation2Request(nil)
req.HTTPResponse = &http.Response{StatusCode: 200, Body: ioutil.NopCloser(buf), Header: http.Header{}}
// set headers
// unmarshal response
req.Handlers.UnmarshalMeta.Run(req)
req.Handlers.Unmarshal.Run(req)
if req.Error != nil {
t.Errorf("expect not error, got %v", req.Error)
}
// assert response
if out == nil {
t.Errorf("expect not to be nil")
}
}
func TestOutputService15ProtocolTestXMLAttributesCase1(t *testing.T) {
svc := NewOutputService15ProtocolTest(unit.Session, &aws.Config{Endpoint: aws.String("https://test")})
buf := bytes.NewReader([]byte("<SomeOutputDoc xmlns=\"http://s3.amazonaws.com/doc/2006-03-01/\"><ItemsList><Item><ItemDetail xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xsi:type=\"Type1\"><ID>id1</ID></ItemDetail></Item><Item><ItemDetail xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xsi:type=\"Type2\"><ID>id2</ID></ItemDetail></Item><Item><ItemDetail xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xsi:type=\"Type3\"><ID>id3</ID></ItemDetail></Item></ItemsList></SomeOutputDoc>"))
req, out := svc.OutputService15TestCaseOperation1Request(nil)
req.HTTPResponse = &http.Response{StatusCode: 200, Body: ioutil.NopCloser(buf), Header: http.Header{}}
// set headers
// unmarshal response
req.Handlers.UnmarshalMeta.Run(req)
req.Handlers.Unmarshal.Run(req)
if req.Error != nil {
t.Errorf("expect not error, got %v", req.Error)
}
// assert response
if out == nil {
t.Errorf("expect not to be nil")
}
if e, a := "id1", *out.ListItems[0].ItemDetail.ID; e != a {
t.Errorf("expect %v, got %v", e, a)
}
if e, a := "Type1", *out.ListItems[0].ItemDetail.Type; e != a {
t.Errorf("expect %v, got %v", e, a)
}
if e, a := "id2", *out.ListItems[1].ItemDetail.ID; e != a {
t.Errorf("expect %v, got %v", e, a)
}
if e, a := "Type2", *out.ListItems[1].ItemDetail.Type; e != a {
t.Errorf("expect %v, got %v", e, a)
}
if e, a := "id3", *out.ListItems[2].ItemDetail.ID; e != a {
t.Errorf("expect %v, got %v", e, a)
}
if e, a := "Type3", *out.ListItems[2].ItemDetail.Type; e != a {
t.Errorf("expect %v, got %v", e, a)
}
}
| 3,513 |
session-manager-plugin | aws | Go | // Package xmlutil provides XML serialization of AWS requests and responses.
package xmlutil
import (
"encoding/base64"
"encoding/xml"
"fmt"
"reflect"
"sort"
"strconv"
"strings"
"time"
"github.com/aws/aws-sdk-go/private/protocol"
)
// BuildXML will serialize params into an xml.Encoder. Error will be returned
// if the serialization of any of the params or nested values fails.
func BuildXML(params interface{}, e *xml.Encoder) error {
return buildXML(params, e, false)
}
func buildXML(params interface{}, e *xml.Encoder, sorted bool) error {
b := xmlBuilder{encoder: e, namespaces: map[string]string{}}
root := NewXMLElement(xml.Name{})
if err := b.buildValue(reflect.ValueOf(params), root, ""); err != nil {
return err
}
for _, c := range root.Children {
for _, v := range c {
return StructToXML(e, v, sorted)
}
}
return nil
}
// Returns the reflection element of a value, if it is a pointer.
func elemOf(value reflect.Value) reflect.Value {
for value.Kind() == reflect.Ptr {
value = value.Elem()
}
return value
}
// A xmlBuilder serializes values from Go code to XML
type xmlBuilder struct {
encoder *xml.Encoder
namespaces map[string]string
}
// buildValue generic XMLNode builder for any type. Will build value for their specific type
// struct, list, map, scalar.
//
// Also takes a "type" tag value to set what type a value should be converted to XMLNode as. If
// type is not provided reflect will be used to determine the value's type.
func (b *xmlBuilder) buildValue(value reflect.Value, current *XMLNode, tag reflect.StructTag) error {
value = elemOf(value)
if !value.IsValid() { // no need to handle zero values
return nil
} else if tag.Get("location") != "" { // don't handle non-body location values
return nil
}
xml := tag.Get("xml")
if len(xml) != 0 {
name := strings.SplitAfterN(xml, ",", 2)[0]
if name == "-" {
return nil
}
}
t := tag.Get("type")
if t == "" {
switch value.Kind() {
case reflect.Struct:
t = "structure"
case reflect.Slice:
t = "list"
case reflect.Map:
t = "map"
}
}
switch t {
case "structure":
if field, ok := value.Type().FieldByName("_"); ok {
tag = tag + reflect.StructTag(" ") + field.Tag
}
return b.buildStruct(value, current, tag)
case "list":
return b.buildList(value, current, tag)
case "map":
return b.buildMap(value, current, tag)
default:
return b.buildScalar(value, current, tag)
}
}
// buildStruct adds a struct and its fields to the current XMLNode. All fields and any nested
// types are converted to XMLNodes also.
func (b *xmlBuilder) buildStruct(value reflect.Value, current *XMLNode, tag reflect.StructTag) error {
if !value.IsValid() {
return nil
}
// unwrap payloads
if payload := tag.Get("payload"); payload != "" {
field, _ := value.Type().FieldByName(payload)
tag = field.Tag
value = elemOf(value.FieldByName(payload))
if !value.IsValid() {
return nil
}
}
child := NewXMLElement(xml.Name{Local: tag.Get("locationName")})
// there is an xmlNamespace associated with this struct
if prefix, uri := tag.Get("xmlPrefix"), tag.Get("xmlURI"); uri != "" {
ns := xml.Attr{
Name: xml.Name{Local: "xmlns"},
Value: uri,
}
if prefix != "" {
b.namespaces[prefix] = uri // register the namespace
ns.Name.Local = "xmlns:" + prefix
}
child.Attr = append(child.Attr, ns)
}
var payloadFields, nonPayloadFields int
t := value.Type()
for i := 0; i < value.NumField(); i++ {
member := elemOf(value.Field(i))
field := t.Field(i)
if field.PkgPath != "" {
continue // ignore unexported fields
}
if field.Tag.Get("ignore") != "" {
continue
}
mTag := field.Tag
if mTag.Get("location") != "" { // skip non-body members
nonPayloadFields++
continue
}
payloadFields++
if protocol.CanSetIdempotencyToken(value.Field(i), field) {
token := protocol.GetIdempotencyToken()
member = reflect.ValueOf(token)
}
memberName := mTag.Get("locationName")
if memberName == "" {
memberName = field.Name
mTag = reflect.StructTag(string(mTag) + ` locationName:"` + memberName + `"`)
}
if err := b.buildValue(member, child, mTag); err != nil {
return err
}
}
// Only case where the child shape is not added is if the shape only contains
// non-payload fields, e.g headers/query.
if !(payloadFields == 0 && nonPayloadFields > 0) {
current.AddChild(child)
}
return nil
}
// buildList adds the value's list items to the current XMLNode as children nodes. All
// nested values in the list are converted to XMLNodes also.
func (b *xmlBuilder) buildList(value reflect.Value, current *XMLNode, tag reflect.StructTag) error {
if value.IsNil() { // don't build omitted lists
return nil
}
// check for unflattened list member
flattened := tag.Get("flattened") != ""
xname := xml.Name{Local: tag.Get("locationName")}
if flattened {
for i := 0; i < value.Len(); i++ {
child := NewXMLElement(xname)
current.AddChild(child)
if err := b.buildValue(value.Index(i), child, ""); err != nil {
return err
}
}
} else {
list := NewXMLElement(xname)
current.AddChild(list)
for i := 0; i < value.Len(); i++ {
iname := tag.Get("locationNameList")
if iname == "" {
iname = "member"
}
child := NewXMLElement(xml.Name{Local: iname})
list.AddChild(child)
if err := b.buildValue(value.Index(i), child, ""); err != nil {
return err
}
}
}
return nil
}
// buildMap adds the value's key/value pairs to the current XMLNode as children nodes. All
// nested values in the map are converted to XMLNodes also.
//
// Error will be returned if it is unable to build the map's values into XMLNodes
func (b *xmlBuilder) buildMap(value reflect.Value, current *XMLNode, tag reflect.StructTag) error {
if value.IsNil() { // don't build omitted maps
return nil
}
maproot := NewXMLElement(xml.Name{Local: tag.Get("locationName")})
current.AddChild(maproot)
current = maproot
kname, vname := "key", "value"
if n := tag.Get("locationNameKey"); n != "" {
kname = n
}
if n := tag.Get("locationNameValue"); n != "" {
vname = n
}
// sorting is not required for compliance, but it makes testing easier
keys := make([]string, value.Len())
for i, k := range value.MapKeys() {
keys[i] = k.String()
}
sort.Strings(keys)
for _, k := range keys {
v := value.MapIndex(reflect.ValueOf(k))
mapcur := current
if tag.Get("flattened") == "" { // add "entry" tag to non-flat maps
child := NewXMLElement(xml.Name{Local: "entry"})
mapcur.AddChild(child)
mapcur = child
}
kchild := NewXMLElement(xml.Name{Local: kname})
kchild.Text = k
vchild := NewXMLElement(xml.Name{Local: vname})
mapcur.AddChild(kchild)
mapcur.AddChild(vchild)
if err := b.buildValue(v, vchild, ""); err != nil {
return err
}
}
return nil
}
// buildScalar will convert the value into a string and append it as a attribute or child
// of the current XMLNode.
//
// The value will be added as an attribute if tag contains a "xmlAttribute" attribute value.
//
// Error will be returned if the value type is unsupported.
func (b *xmlBuilder) buildScalar(value reflect.Value, current *XMLNode, tag reflect.StructTag) error {
var str string
switch converted := value.Interface().(type) {
case string:
str = converted
case []byte:
if !value.IsNil() {
str = base64.StdEncoding.EncodeToString(converted)
}
case bool:
str = strconv.FormatBool(converted)
case int64:
str = strconv.FormatInt(converted, 10)
case int:
str = strconv.Itoa(converted)
case float64:
str = strconv.FormatFloat(converted, 'f', -1, 64)
case float32:
str = strconv.FormatFloat(float64(converted), 'f', -1, 32)
case time.Time:
format := tag.Get("timestampFormat")
if len(format) == 0 {
format = protocol.ISO8601TimeFormatName
}
str = protocol.FormatTime(format, converted)
default:
return fmt.Errorf("unsupported value for param %s: %v (%s)",
tag.Get("locationName"), value.Interface(), value.Type().Name())
}
xname := xml.Name{Local: tag.Get("locationName")}
if tag.Get("xmlAttribute") != "" { // put into current node's attribute list
attr := xml.Attr{Name: xname, Value: str}
current.Attr = append(current.Attr, attr)
} else if len(xname.Local) == 0 {
current.Text = str
} else { // regular text node
current.AddChild(&XMLNode{Name: xname, Text: str})
}
return nil
}
| 318 |
session-manager-plugin | aws | Go | // +build go1.7
package xmlutil
import (
"bytes"
"encoding/xml"
"testing"
"github.com/aws/aws-sdk-go/aws"
)
type implicitPayload struct {
_ struct{} `type:"structure"`
StrVal *string `type:"string"`
Second *nestedType `type:"structure"`
Third *nestedType `type:"structure"`
}
type namedImplicitPayload struct {
_ struct{} `type:"structure" locationName:"namedPayload"`
StrVal *string `type:"string"`
Second *nestedType `type:"structure"`
Third *nestedType `type:"structure"`
}
type explicitPayload struct {
_ struct{} `type:"structure" payload:"Second"`
Second *nestedType `type:"structure" locationName:"Second"`
}
type useEmptyNested struct {
_ struct{} `type:"structure" locationName:"useEmptyNested"`
StrVal *string `type:"string"`
Empty *emptyType `type:"structure"`
}
type useIgnoreNested struct {
_ struct{} `type:"structure" locationName:"useIgnoreNested"`
StrVal *string `type:"string"`
Ignore *ignoreNested `type:"structure"`
}
type skipNonPayload struct {
_ struct{} `type:"structure" locationName:"skipNonPayload"`
Field *string `type:"string" location:"header"`
}
type namedEmptyPayload struct {
_ struct{} `type:"structure" locationName:"namedEmptyPayload"`
}
type nestedType struct {
_ struct{} `type:"structure"`
IntVal *int64 `type:"integer"`
StrVal *string `type:"string"`
}
type emptyType struct {
_ struct{} `type:"structure"`
}
type ignoreNested struct {
_ struct{} `type:"structure"`
IgnoreMe *string `type:"string" ignore:"true"`
}
func TestBuildXML(t *testing.T) {
cases := map[string]struct {
Input interface{}
Expect string
}{
"explicit payload": {
Input: &explicitPayload{
Second: &nestedType{
IntVal: aws.Int64(1234),
StrVal: aws.String("string value"),
},
},
Expect: `<Second><IntVal>1234</IntVal><StrVal>string value</StrVal></Second>`,
},
"implicit payload": {
Input: &implicitPayload{
StrVal: aws.String("string value"),
Second: &nestedType{
IntVal: aws.Int64(1111),
StrVal: aws.String("second string"),
},
Third: &nestedType{
IntVal: aws.Int64(2222),
StrVal: aws.String("third string"),
},
},
Expect: `<Second><IntVal>1111</IntVal><StrVal>second string</StrVal></Second><StrVal>string value</StrVal><Third><IntVal>2222</IntVal><StrVal>third string</StrVal></Third>`,
},
"named implicit payload": {
Input: &namedImplicitPayload{
StrVal: aws.String("string value"),
Second: &nestedType{
IntVal: aws.Int64(1111),
StrVal: aws.String("second string"),
},
Third: &nestedType{
IntVal: aws.Int64(2222),
StrVal: aws.String("third string"),
},
},
Expect: `<namedPayload><Second><IntVal>1111</IntVal><StrVal>second string</StrVal></Second><StrVal>string value</StrVal><Third><IntVal>2222</IntVal><StrVal>third string</StrVal></Third></namedPayload>`,
},
"empty with fields nested type": {
Input: &namedImplicitPayload{
StrVal: aws.String("string value"),
Second: &nestedType{},
Third: &nestedType{
IntVal: aws.Int64(2222),
StrVal: aws.String("third string"),
},
},
Expect: `<namedPayload><Second></Second><StrVal>string value</StrVal><Third><IntVal>2222</IntVal><StrVal>third string</StrVal></Third></namedPayload>`,
},
"empty no fields nested type": {
Input: &useEmptyNested{
StrVal: aws.String("string value"),
Empty: &emptyType{},
},
Expect: `<useEmptyNested><Empty></Empty><StrVal>string value</StrVal></useEmptyNested>`,
},
"ignored nested field": {
Input: &useIgnoreNested{
StrVal: aws.String("string value"),
Ignore: &ignoreNested{
IgnoreMe: aws.String("abc123"),
},
},
Expect: `<useIgnoreNested><Ignore></Ignore><StrVal>string value</StrVal></useIgnoreNested>`,
},
"skip non payload root": {
Input: &skipNonPayload{
Field: aws.String("value"),
},
Expect: "",
},
"skip empty root": {
Input: &emptyType{},
Expect: "",
},
"named empty payload": {
Input: &namedEmptyPayload{},
Expect: "<namedEmptyPayload></namedEmptyPayload>",
},
"escape line feed and carriage return": {
Input: &implicitPayload{
StrVal: aws.String("this\nstring\rhas\r\nescapable\n\rcharacters"),
},
Expect: "<StrVal>this
string
has
escapable

characters</StrVal>",
},
}
for name, c := range cases {
t.Run(name, func(t *testing.T) {
var w bytes.Buffer
if err := buildXML(c.Input, xml.NewEncoder(&w), true); err != nil {
t.Fatalf("expect no error, %v", err)
}
if e, a := c.Expect, w.String(); e != a {
t.Errorf("expect:\n%s\nactual:\n%s\n", e, a)
}
})
}
}
| 177 |
session-manager-plugin | aws | Go | package xmlutil
import (
"encoding/xml"
"strings"
)
type xmlAttrSlice []xml.Attr
func (x xmlAttrSlice) Len() int {
return len(x)
}
func (x xmlAttrSlice) Less(i, j int) bool {
spaceI, spaceJ := x[i].Name.Space, x[j].Name.Space
localI, localJ := x[i].Name.Local, x[j].Name.Local
valueI, valueJ := x[i].Value, x[j].Value
spaceCmp := strings.Compare(spaceI, spaceJ)
localCmp := strings.Compare(localI, localJ)
valueCmp := strings.Compare(valueI, valueJ)
if spaceCmp == -1 || (spaceCmp == 0 && (localCmp == -1 || (localCmp == 0 && valueCmp == -1))) {
return true
}
return false
}
func (x xmlAttrSlice) Swap(i, j int) {
x[i], x[j] = x[j], x[i]
}
| 33 |
session-manager-plugin | aws | Go | package xmlutil
import (
"encoding/xml"
"reflect"
"sort"
"testing"
)
func TestXmlAttrSlice(t *testing.T) {
tests := []struct {
input []xml.Attr
expected []xml.Attr
}{
{
input: []xml.Attr{},
expected: []xml.Attr{},
},
{
input: []xml.Attr{
{
Name: xml.Name{
Space: "foo",
Local: "bar",
},
Value: "baz",
},
{
Name: xml.Name{
Space: "foo",
Local: "baz",
},
Value: "bar",
},
{
Name: xml.Name{
Space: "foo",
Local: "bar",
},
Value: "bar",
},
{
Name: xml.Name{
Space: "baz",
Local: "bar",
},
Value: "foo",
},
},
expected: []xml.Attr{
{
Name: xml.Name{
Space: "baz",
Local: "bar",
},
Value: "foo",
},
{
Name: xml.Name{
Space: "foo",
Local: "bar",
},
Value: "bar",
},
{
Name: xml.Name{
Space: "foo",
Local: "bar",
},
Value: "baz",
},
{
Name: xml.Name{
Space: "foo",
Local: "baz",
},
Value: "bar",
},
},
},
}
for i, tt := range tests {
sort.Sort(xmlAttrSlice(tt.input))
if e, a := tt.expected, tt.input; !reflect.DeepEqual(e, a) {
t.Errorf("case %d expected %v, got %v", i, e, a)
}
}
}
| 89 |
session-manager-plugin | aws | Go | package xmlutil
import (
"bytes"
"encoding/base64"
"encoding/xml"
"fmt"
"io"
"reflect"
"strconv"
"strings"
"time"
"github.com/aws/aws-sdk-go/aws/awserr"
"github.com/aws/aws-sdk-go/private/protocol"
)
// UnmarshalXMLError unmarshals the XML error from the stream into the value
// type specified. The value must be a pointer. If the message fails to
// unmarshal, the message content will be included in the returned error as a
// awserr.UnmarshalError.
func UnmarshalXMLError(v interface{}, stream io.Reader) error {
var errBuf bytes.Buffer
body := io.TeeReader(stream, &errBuf)
err := xml.NewDecoder(body).Decode(v)
if err != nil && err != io.EOF {
return awserr.NewUnmarshalError(err,
"failed to unmarshal error message", errBuf.Bytes())
}
return nil
}
// UnmarshalXML deserializes an xml.Decoder into the container v. V
// needs to match the shape of the XML expected to be decoded.
// If the shape doesn't match unmarshaling will fail.
func UnmarshalXML(v interface{}, d *xml.Decoder, wrapper string) error {
n, err := XMLToStruct(d, nil)
if err != nil {
return err
}
if n.Children != nil {
for _, root := range n.Children {
for _, c := range root {
if wrappedChild, ok := c.Children[wrapper]; ok {
c = wrappedChild[0] // pull out wrapped element
}
err = parse(reflect.ValueOf(v), c, "")
if err != nil {
if err == io.EOF {
return nil
}
return err
}
}
}
return nil
}
return nil
}
// parse deserializes any value from the XMLNode. The type tag is used to infer the type, or reflect
// will be used to determine the type from r.
func parse(r reflect.Value, node *XMLNode, tag reflect.StructTag) error {
xml := tag.Get("xml")
if len(xml) != 0 {
name := strings.SplitAfterN(xml, ",", 2)[0]
if name == "-" {
return nil
}
}
rtype := r.Type()
if rtype.Kind() == reflect.Ptr {
rtype = rtype.Elem() // check kind of actual element type
}
t := tag.Get("type")
if t == "" {
switch rtype.Kind() {
case reflect.Struct:
// also it can't be a time object
if _, ok := r.Interface().(*time.Time); !ok {
t = "structure"
}
case reflect.Slice:
// also it can't be a byte slice
if _, ok := r.Interface().([]byte); !ok {
t = "list"
}
case reflect.Map:
t = "map"
}
}
switch t {
case "structure":
if field, ok := rtype.FieldByName("_"); ok {
tag = field.Tag
}
return parseStruct(r, node, tag)
case "list":
return parseList(r, node, tag)
case "map":
return parseMap(r, node, tag)
default:
return parseScalar(r, node, tag)
}
}
// parseStruct deserializes a structure and its fields from an XMLNode. Any nested
// types in the structure will also be deserialized.
func parseStruct(r reflect.Value, node *XMLNode, tag reflect.StructTag) error {
t := r.Type()
if r.Kind() == reflect.Ptr {
if r.IsNil() { // create the structure if it's nil
s := reflect.New(r.Type().Elem())
r.Set(s)
r = s
}
r = r.Elem()
t = t.Elem()
}
// unwrap any payloads
if payload := tag.Get("payload"); payload != "" {
field, _ := t.FieldByName(payload)
return parseStruct(r.FieldByName(payload), node, field.Tag)
}
for i := 0; i < t.NumField(); i++ {
field := t.Field(i)
if c := field.Name[0:1]; strings.ToLower(c) == c {
continue // ignore unexported fields
}
// figure out what this field is called
name := field.Name
if field.Tag.Get("flattened") != "" && field.Tag.Get("locationNameList") != "" {
name = field.Tag.Get("locationNameList")
} else if locName := field.Tag.Get("locationName"); locName != "" {
name = locName
}
// try to find the field by name in elements
elems := node.Children[name]
if elems == nil { // try to find the field in attributes
if val, ok := node.findElem(name); ok {
elems = []*XMLNode{{Text: val}}
}
}
member := r.FieldByName(field.Name)
for _, elem := range elems {
err := parse(member, elem, field.Tag)
if err != nil {
return err
}
}
}
return nil
}
// parseList deserializes a list of values from an XML node. Each list entry
// will also be deserialized.
func parseList(r reflect.Value, node *XMLNode, tag reflect.StructTag) error {
t := r.Type()
if tag.Get("flattened") == "" { // look at all item entries
mname := "member"
if name := tag.Get("locationNameList"); name != "" {
mname = name
}
if Children, ok := node.Children[mname]; ok {
if r.IsNil() {
r.Set(reflect.MakeSlice(t, len(Children), len(Children)))
}
for i, c := range Children {
err := parse(r.Index(i), c, "")
if err != nil {
return err
}
}
}
} else { // flattened list means this is a single element
if r.IsNil() {
r.Set(reflect.MakeSlice(t, 0, 0))
}
childR := reflect.Zero(t.Elem())
r.Set(reflect.Append(r, childR))
err := parse(r.Index(r.Len()-1), node, "")
if err != nil {
return err
}
}
return nil
}
// parseMap deserializes a map from an XMLNode. The direct children of the XMLNode
// will also be deserialized as map entries.
func parseMap(r reflect.Value, node *XMLNode, tag reflect.StructTag) error {
if r.IsNil() {
r.Set(reflect.MakeMap(r.Type()))
}
if tag.Get("flattened") == "" { // look at all child entries
for _, entry := range node.Children["entry"] {
parseMapEntry(r, entry, tag)
}
} else { // this element is itself an entry
parseMapEntry(r, node, tag)
}
return nil
}
// parseMapEntry deserializes a map entry from a XML node.
func parseMapEntry(r reflect.Value, node *XMLNode, tag reflect.StructTag) error {
kname, vname := "key", "value"
if n := tag.Get("locationNameKey"); n != "" {
kname = n
}
if n := tag.Get("locationNameValue"); n != "" {
vname = n
}
keys, ok := node.Children[kname]
values := node.Children[vname]
if ok {
for i, key := range keys {
keyR := reflect.ValueOf(key.Text)
value := values[i]
valueR := reflect.New(r.Type().Elem()).Elem()
parse(valueR, value, "")
r.SetMapIndex(keyR, valueR)
}
}
return nil
}
// parseScaller deserializes an XMLNode value into a concrete type based on the
// interface type of r.
//
// Error is returned if the deserialization fails due to invalid type conversion,
// or unsupported interface type.
func parseScalar(r reflect.Value, node *XMLNode, tag reflect.StructTag) error {
switch r.Interface().(type) {
case *string:
r.Set(reflect.ValueOf(&node.Text))
return nil
case []byte:
b, err := base64.StdEncoding.DecodeString(node.Text)
if err != nil {
return err
}
r.Set(reflect.ValueOf(b))
case *bool:
v, err := strconv.ParseBool(node.Text)
if err != nil {
return err
}
r.Set(reflect.ValueOf(&v))
case *int64:
v, err := strconv.ParseInt(node.Text, 10, 64)
if err != nil {
return err
}
r.Set(reflect.ValueOf(&v))
case *float64:
v, err := strconv.ParseFloat(node.Text, 64)
if err != nil {
return err
}
r.Set(reflect.ValueOf(&v))
case *time.Time:
format := tag.Get("timestampFormat")
if len(format) == 0 {
format = protocol.ISO8601TimeFormatName
}
t, err := protocol.ParseTime(format, node.Text)
if err != nil {
return err
}
r.Set(reflect.ValueOf(&t))
default:
return fmt.Errorf("unsupported value: %v (%s)", r.Interface(), r.Type())
}
return nil
}
| 300 |
session-manager-plugin | aws | Go | package xmlutil
import (
"encoding/xml"
"fmt"
"io"
"reflect"
"strings"
"testing"
"github.com/aws/aws-sdk-go/aws"
"github.com/aws/aws-sdk-go/aws/awsutil"
)
type mockBody struct {
DoneErr error
Body io.Reader
}
func (m *mockBody) Read(p []byte) (int, error) {
n, err := m.Body.Read(p)
if (n == 0 || err == io.EOF) && m.DoneErr != nil {
return n, m.DoneErr
}
return n, err
}
type mockOutput struct {
_ struct{} `type:"structure"`
String *string `type:"string"`
Integer *int64 `type:"integer"`
Nested *mockNestedStruct `type:"structure"`
List []*mockListElem `locationName:"List" locationNameList:"Elem" type:"list"`
Closed *mockClosedTags `type:"structure"`
}
type mockNestedStruct struct {
_ struct{} `type:"structure"`
NestedString *string `type:"string"`
NestedInt *int64 `type:"integer"`
}
type mockClosedTags struct {
_ struct{} `type:"structure" xmlPrefix:"xsi" xmlURI:"http://www.w3.org/2001/XMLSchema-instance"`
Attr *string `locationName:"xsi:attrval" type:"string" xmlAttribute:"true"`
}
type mockListElem struct {
_ struct{} `type:"structure" xmlPrefix:"xsi" xmlURI:"http://www.w3.org/2001/XMLSchema-instance"`
String *string `type:"string"`
NestedElem *mockNestedListElem `type:"structure"`
}
type mockNestedListElem struct {
_ struct{} `type:"structure" xmlPrefix:"xsi" xmlURI:"http://www.w3.org/2001/XMLSchema-instance"`
String *string `type:"string"`
Type *string `locationName:"xsi:type" type:"string" xmlAttribute:"true"`
}
func TestUnmarshal(t *testing.T) {
const xmlBodyStr = `<?xml version="1.0" encoding="UTF-8"?>
<MockResponse xmlns="http://xmlns.example.com">
<String>string value</String>
<Integer>123</Integer>
<Closed xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:attrval="attr value"/>
<Nested>
<NestedString>nested string value</NestedString>
<NestedInt>321</NestedInt>
</Nested>
<List>
<Elem>
<NestedElem xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="type">
<String>nested elem string value</String>
</NestedElem>
<String>elem string value</String>
</Elem>
</List>
</MockResponse>`
expect := mockOutput{
String: aws.String("string value"),
Integer: aws.Int64(123),
Closed: &mockClosedTags{
Attr: aws.String("attr value"),
},
Nested: &mockNestedStruct{
NestedString: aws.String("nested string value"),
NestedInt: aws.Int64(321),
},
List: []*mockListElem{
{
String: aws.String("elem string value"),
NestedElem: &mockNestedListElem{
String: aws.String("nested elem string value"),
Type: aws.String("type"),
},
},
},
}
actual := mockOutput{}
decoder := xml.NewDecoder(strings.NewReader(xmlBodyStr))
err := UnmarshalXML(&actual, decoder, "")
if err != nil {
t.Fatalf("expect no error, got %v", err)
}
if !reflect.DeepEqual(expect, actual) {
t.Errorf("expect unmarshal to match\nExpect: %s\nActual: %s",
awsutil.Prettify(expect), awsutil.Prettify(actual))
}
}
func TestUnmarshal_UnexpectedEOF(t *testing.T) {
const partialXMLBody = `<?xml version="1.0" encoding="UTF-8"?>
<First>first value</First>
<Second>Second val`
out := struct {
First *string `locationName:"First" type:"string"`
Second *string `locationName:"Second" type:"string"`
}{}
expect := out
expect.First = aws.String("first")
expect.Second = aws.String("second")
expectErr := fmt.Errorf("expected read error")
body := &mockBody{
DoneErr: expectErr,
Body: strings.NewReader(partialXMLBody),
}
decoder := xml.NewDecoder(body)
err := UnmarshalXML(&out, decoder, "")
if err == nil {
t.Fatalf("expect error, got none")
}
if e, a := expectErr, err; e != a {
t.Errorf("expect %v error in %v, but was not", e, a)
}
}
| 143 |
session-manager-plugin | aws | Go | package xmlutil
import (
"encoding/xml"
"fmt"
"io"
"sort"
)
// A XMLNode contains the values to be encoded or decoded.
type XMLNode struct {
Name xml.Name `json:",omitempty"`
Children map[string][]*XMLNode `json:",omitempty"`
Text string `json:",omitempty"`
Attr []xml.Attr `json:",omitempty"`
namespaces map[string]string
parent *XMLNode
}
// textEncoder is a string type alias that implemnts the TextMarshaler interface.
// This alias type is used to ensure that the line feed (\n) (U+000A) is escaped.
type textEncoder string
func (t textEncoder) MarshalText() ([]byte, error) {
return []byte(t), nil
}
// NewXMLElement returns a pointer to a new XMLNode initialized to default values.
func NewXMLElement(name xml.Name) *XMLNode {
return &XMLNode{
Name: name,
Children: map[string][]*XMLNode{},
Attr: []xml.Attr{},
}
}
// AddChild adds child to the XMLNode.
func (n *XMLNode) AddChild(child *XMLNode) {
child.parent = n
if _, ok := n.Children[child.Name.Local]; !ok {
n.Children[child.Name.Local] = []*XMLNode{}
}
n.Children[child.Name.Local] = append(n.Children[child.Name.Local], child)
}
// XMLToStruct converts a xml.Decoder stream to XMLNode with nested values.
func XMLToStruct(d *xml.Decoder, s *xml.StartElement) (*XMLNode, error) {
out := &XMLNode{}
for {
tok, err := d.Token()
if err != nil {
if err == io.EOF {
break
} else {
return out, err
}
}
if tok == nil {
break
}
switch typed := tok.(type) {
case xml.CharData:
out.Text = string(typed.Copy())
case xml.StartElement:
el := typed.Copy()
out.Attr = el.Attr
if out.Children == nil {
out.Children = map[string][]*XMLNode{}
}
name := typed.Name.Local
slice := out.Children[name]
if slice == nil {
slice = []*XMLNode{}
}
node, e := XMLToStruct(d, &el)
out.findNamespaces()
if e != nil {
return out, e
}
node.Name = typed.Name
node.findNamespaces()
tempOut := *out
// Save into a temp variable, simply because out gets squashed during
// loop iterations
node.parent = &tempOut
slice = append(slice, node)
out.Children[name] = slice
case xml.EndElement:
if s != nil && s.Name.Local == typed.Name.Local { // matching end token
return out, nil
}
out = &XMLNode{}
}
}
return out, nil
}
func (n *XMLNode) findNamespaces() {
ns := map[string]string{}
for _, a := range n.Attr {
if a.Name.Space == "xmlns" {
ns[a.Value] = a.Name.Local
}
}
n.namespaces = ns
}
func (n *XMLNode) findElem(name string) (string, bool) {
for node := n; node != nil; node = node.parent {
for _, a := range node.Attr {
namespace := a.Name.Space
if v, ok := node.namespaces[namespace]; ok {
namespace = v
}
if name == fmt.Sprintf("%s:%s", namespace, a.Name.Local) {
return a.Value, true
}
}
}
return "", false
}
// StructToXML writes an XMLNode to a xml.Encoder as tokens.
func StructToXML(e *xml.Encoder, node *XMLNode, sorted bool) error {
// Sort Attributes
attrs := node.Attr
if sorted {
sortedAttrs := make([]xml.Attr, len(attrs))
for _, k := range node.Attr {
sortedAttrs = append(sortedAttrs, k)
}
sort.Sort(xmlAttrSlice(sortedAttrs))
attrs = sortedAttrs
}
startElement := xml.StartElement{Name: node.Name, Attr: attrs}
if node.Text != "" {
e.EncodeElement(textEncoder(node.Text), startElement)
return e.Flush()
}
e.EncodeToken(startElement)
if sorted {
sortedNames := []string{}
for k := range node.Children {
sortedNames = append(sortedNames, k)
}
sort.Strings(sortedNames)
for _, k := range sortedNames {
for _, v := range node.Children[k] {
StructToXML(e, v, sorted)
}
}
} else {
for _, c := range node.Children {
for _, v := range c {
StructToXML(e, v, sorted)
}
}
}
e.EncodeToken(startElement.End())
return e.Flush()
}
| 174 |
session-manager-plugin | aws | Go | package v2
import (
"crypto/hmac"
"crypto/sha256"
"encoding/base64"
"errors"
"fmt"
"net/http"
"net/url"
"sort"
"strings"
"time"
"github.com/aws/aws-sdk-go/aws"
"github.com/aws/aws-sdk-go/aws/credentials"
"github.com/aws/aws-sdk-go/aws/request"
)
var (
errInvalidMethod = errors.New("v2 signer only handles HTTP POST")
)
const (
signatureVersion = "2"
signatureMethod = "HmacSHA256"
timeFormat = "2006-01-02T15:04:05Z"
)
type signer struct {
// Values that must be populated from the request
Request *http.Request
Time time.Time
Credentials *credentials.Credentials
Debug aws.LogLevelType
Logger aws.Logger
Query url.Values
stringToSign string
signature string
}
// SignRequestHandler is a named request handler the SDK will use to sign
// service client request with using the V4 signature.
var SignRequestHandler = request.NamedHandler{
Name: "v2.SignRequestHandler", Fn: SignSDKRequest,
}
// SignSDKRequest requests with signature version 2.
//
// Will sign the requests with the service config's Credentials object
// Signing is skipped if the credentials is the credentials.AnonymousCredentials
// object.
func SignSDKRequest(req *request.Request) {
// If the request does not need to be signed ignore the signing of the
// request if the AnonymousCredentials object is used.
if req.Config.Credentials == credentials.AnonymousCredentials {
return
}
if req.HTTPRequest.Method != "POST" && req.HTTPRequest.Method != "GET" {
// The V2 signer only supports GET and POST
req.Error = errInvalidMethod
return
}
v2 := signer{
Request: req.HTTPRequest,
Time: req.Time,
Credentials: req.Config.Credentials,
Debug: req.Config.LogLevel.Value(),
Logger: req.Config.Logger,
}
req.Error = v2.Sign()
if req.Error != nil {
return
}
if req.HTTPRequest.Method == "POST" {
// Set the body of the request based on the modified query parameters
req.SetStringBody(v2.Query.Encode())
// Now that the body has changed, remove any Content-Length header,
// because it will be incorrect
req.HTTPRequest.ContentLength = 0
req.HTTPRequest.Header.Del("Content-Length")
} else {
req.HTTPRequest.URL.RawQuery = v2.Query.Encode()
}
}
func (v2 *signer) Sign() error {
credValue, err := v2.Credentials.Get()
if err != nil {
return err
}
if v2.Request.Method == "POST" {
// Parse the HTTP request to obtain the query parameters that will
// be used to build the string to sign. Note that because the HTTP
// request will need to be modified, the PostForm and Form properties
// are reset to nil after parsing.
v2.Request.ParseForm()
v2.Query = v2.Request.PostForm
v2.Request.PostForm = nil
v2.Request.Form = nil
} else {
v2.Query = v2.Request.URL.Query()
}
// Set new query parameters
v2.Query.Set("AWSAccessKeyId", credValue.AccessKeyID)
v2.Query.Set("SignatureVersion", signatureVersion)
v2.Query.Set("SignatureMethod", signatureMethod)
v2.Query.Set("Timestamp", v2.Time.UTC().Format(timeFormat))
if credValue.SessionToken != "" {
v2.Query.Set("SecurityToken", credValue.SessionToken)
}
// in case this is a retry, ensure no signature present
v2.Query.Del("Signature")
method := v2.Request.Method
host := v2.Request.URL.Host
path := v2.Request.URL.Path
if path == "" {
path = "/"
}
// obtain all of the query keys and sort them
queryKeys := make([]string, 0, len(v2.Query))
for key := range v2.Query {
queryKeys = append(queryKeys, key)
}
sort.Strings(queryKeys)
// build URL-encoded query keys and values
queryKeysAndValues := make([]string, len(queryKeys))
for i, key := range queryKeys {
k := strings.Replace(url.QueryEscape(key), "+", "%20", -1)
v := strings.Replace(url.QueryEscape(v2.Query.Get(key)), "+", "%20", -1)
queryKeysAndValues[i] = k + "=" + v
}
// join into one query string
query := strings.Join(queryKeysAndValues, "&")
// build the canonical string for the V2 signature
v2.stringToSign = strings.Join([]string{
method,
host,
path,
query,
}, "\n")
hash := hmac.New(sha256.New, []byte(credValue.SecretAccessKey))
hash.Write([]byte(v2.stringToSign))
v2.signature = base64.StdEncoding.EncodeToString(hash.Sum(nil))
v2.Query.Set("Signature", v2.signature)
if v2.Debug.Matches(aws.LogDebugWithSigning) {
v2.logSigningInfo()
}
return nil
}
const logSignInfoMsg = `DEBUG: Request Signature:
---[ STRING TO SIGN ]--------------------------------
%s
---[ SIGNATURE ]-------------------------------------
%s
-----------------------------------------------------`
func (v2 *signer) logSigningInfo() {
msg := fmt.Sprintf(logSignInfoMsg, v2.stringToSign, v2.Query.Get("Signature"))
v2.Logger.Log(msg)
}
| 181 |
session-manager-plugin | aws | Go | package v2
import (
"bytes"
"net/http"
"net/url"
"os"
"strconv"
"testing"
"time"
"github.com/aws/aws-sdk-go/aws"
"github.com/aws/aws-sdk-go/aws/credentials"
"github.com/aws/aws-sdk-go/aws/request"
"github.com/aws/aws-sdk-go/awstesting"
)
type signerBuilder struct {
ServiceName string
Region string
SignTime time.Time
Query url.Values
Method string
SessionToken string
}
func (sb signerBuilder) BuildSigner() signer {
endpoint := "https://" + sb.ServiceName + "." + sb.Region + ".amazonaws.com"
var req *http.Request
if sb.Method == "POST" {
body := []byte(sb.Query.Encode())
reader := bytes.NewReader(body)
req, _ = http.NewRequest(sb.Method, endpoint, reader)
req.Header.Add("Content-Type", "application/x-www-form-urlencoded")
req.Header.Add("Content-Length", strconv.Itoa(len(body)))
} else {
req, _ = http.NewRequest(sb.Method, endpoint, nil)
req.URL.RawQuery = sb.Query.Encode()
}
sig := signer{
Request: req,
Time: sb.SignTime,
Credentials: credentials.NewStaticCredentials(
"AKID",
"SECRET",
sb.SessionToken),
}
if os.Getenv("DEBUG") != "" {
sig.Debug = aws.LogDebug
sig.Logger = aws.NewDefaultLogger()
}
return sig
}
func TestSignRequestWithAndWithoutSession(t *testing.T) {
// have to create more than once, so use a function
newQuery := func() url.Values {
query := make(url.Values)
query.Add("Action", "CreateDomain")
query.Add("DomainName", "TestDomain-1437033376")
query.Add("Version", "2009-04-15")
return query
}
// create request without a SecurityToken (session) in the credentials
query := newQuery()
timestamp := time.Date(2015, 7, 16, 7, 56, 16, 0, time.UTC)
builder := signerBuilder{
Method: "POST",
ServiceName: "sdb",
Region: "ap-southeast-2",
SignTime: timestamp,
Query: query,
}
signer := builder.BuildSigner()
err := signer.Sign()
if err != nil {
t.Fatalf("expect no error, got %v", err)
}
if e, a := "tm4dX8Ks7pzFSVHz7qHdoJVXKRLuC4gWz9eti60d8ks=", signer.signature; e != a {
t.Errorf("expect %v, got %v", e, a)
}
if e, a := 8, len(signer.Query); e != a {
t.Errorf("expect %v, got %v", e, a)
}
if e, a := "AKID", signer.Query.Get("AWSAccessKeyId"); e != a {
t.Errorf("expect %v, got %v", e, a)
}
if e, a := "2015-07-16T07:56:16Z", signer.Query.Get("Timestamp"); e != a {
t.Errorf("expect %v, got %v", e, a)
}
if e, a := "HmacSHA256", signer.Query.Get("SignatureMethod"); e != a {
t.Errorf("expect %v, got %v", e, a)
}
if e, a := "2", signer.Query.Get("SignatureVersion"); e != a {
t.Errorf("expect %v, got %v", e, a)
}
if e, a := "tm4dX8Ks7pzFSVHz7qHdoJVXKRLuC4gWz9eti60d8ks=", signer.Query.Get("Signature"); e != a {
t.Errorf("expect %v, got %v", e, a)
}
if e, a := "CreateDomain", signer.Query.Get("Action"); e != a {
t.Errorf("expect %v, got %v", e, a)
}
if e, a := "TestDomain-1437033376", signer.Query.Get("DomainName"); e != a {
t.Errorf("expect %v, got %v", e, a)
}
if e, a := "2009-04-15", signer.Query.Get("Version"); e != a {
t.Errorf("expect %v, got %v", e, a)
}
// should not have a SecurityToken parameter
_, ok := signer.Query["SecurityToken"]
if ok {
t.Errorf("expect SecurityToken found, was not")
}
// now sign again, this time with a security token (session)
query = newQuery()
builder.SessionToken = "SESSION"
signer = builder.BuildSigner()
err = signer.Sign()
if err != nil {
t.Fatalf("expect no error, got %v", err)
}
if e, a := "Ch6qv3rzXB1SLqY2vFhsgA1WQ9rnQIE2WJCigOvAJwI=", signer.signature; e != a {
t.Errorf("expect %v, got %v", e, a)
}
if e, a := 9, len(signer.Query); e != a { // expect one more parameter
t.Errorf("expect %v, got %v", e, a)
}
if e, a := "Ch6qv3rzXB1SLqY2vFhsgA1WQ9rnQIE2WJCigOvAJwI=", signer.Query.Get("Signature"); e != a {
t.Errorf("expect %v, got %v", e, a)
}
if e, a := "SESSION", signer.Query.Get("SecurityToken"); e != a {
t.Errorf("expect %v, got %v", e, a)
}
}
func TestMoreComplexSignRequest(t *testing.T) {
query := make(url.Values)
query.Add("Action", "PutAttributes")
query.Add("DomainName", "TestDomain-1437041569")
query.Add("Version", "2009-04-15")
query.Add("Attribute.2.Name", "Attr2")
query.Add("Attribute.2.Value", "Value2")
query.Add("Attribute.2.Replace", "true")
query.Add("Attribute.1.Name", "Attr1-%\\+ %")
query.Add("Attribute.1.Value", " \tValue1 +!@#$%^&*(){}[]\"';:?/.>,<\x12\x00")
query.Add("Attribute.1.Replace", "true")
query.Add("ItemName", "Item 1")
timestamp := time.Date(2015, 7, 16, 10, 12, 51, 0, time.UTC)
builder := signerBuilder{
Method: "POST",
ServiceName: "sdb",
Region: "ap-southeast-2",
SignTime: timestamp,
Query: query,
SessionToken: "SESSION",
}
signer := builder.BuildSigner()
err := signer.Sign()
if err != nil {
t.Fatalf("expect no error, got %v", err)
}
if e, a := "WNdE62UJKLKoA6XncVY/9RDbrKmcVMdQPQOTAs8SgwQ=", signer.signature; e != a {
t.Errorf("expect %v, got %v", e, a)
}
}
func TestGet(t *testing.T) {
svc := awstesting.NewClient(&aws.Config{
Credentials: credentials.NewStaticCredentials("AKID", "SECRET", "SESSION"),
Region: aws.String("ap-southeast-2"),
})
r := svc.NewRequest(
&request.Operation{
Name: "OpName",
HTTPMethod: "GET",
HTTPPath: "/",
},
nil,
nil,
)
r.Build()
if e, a := "GET", r.HTTPRequest.Method; e != a {
t.Errorf("expect %v, got %v", e, a)
}
if e, a := "", r.HTTPRequest.URL.Query().Get("Signature"); e != a {
t.Errorf("expect %v, got %v", e, a)
}
SignSDKRequest(r)
if r.Error != nil {
t.Fatalf("expect no error, got %v", r.Error)
}
t.Logf("Signature: %s", r.HTTPRequest.URL.Query().Get("Signature"))
if len(r.HTTPRequest.URL.Query().Get("Signature")) == 0 {
t.Errorf("expect signature to be set, was not")
}
}
func TestAnonymousCredentials(t *testing.T) {
svc := awstesting.NewClient(&aws.Config{
Credentials: credentials.AnonymousCredentials,
Region: aws.String("ap-southeast-2"),
})
r := svc.NewRequest(
&request.Operation{
Name: "PutAttributes",
HTTPMethod: "POST",
HTTPPath: "/",
},
nil,
nil,
)
r.Build()
SignSDKRequest(r)
req := r.HTTPRequest
req.ParseForm()
if a := req.PostForm.Get("Signature"); len(a) != 0 {
t.Errorf("expect no signature, got %v", a)
}
}
| 239 |
session-manager-plugin | aws | Go | package util
import "sort"
// SortedKeys returns a sorted slice of keys of a map.
func SortedKeys(m map[string]interface{}) []string {
i, sorted := 0, make([]string, len(m))
for k := range m {
sorted[i] = k
i++
}
sort.Strings(sorted)
return sorted
}
| 15 |
session-manager-plugin | aws | Go | package util
import (
"bytes"
"encoding/xml"
"fmt"
"go/format"
"io"
"reflect"
"regexp"
"strings"
"github.com/aws/aws-sdk-go/private/protocol/xml/xmlutil"
)
// GoFmt returns the Go formated string of the input.
//
// Panics if the format fails.
func GoFmt(buf string) string {
formatted, err := format.Source([]byte(buf))
if err != nil {
panic(fmt.Errorf("%s\nOriginal code:\n%s", err.Error(), buf))
}
return string(formatted)
}
var reTrim = regexp.MustCompile(`\s{2,}`)
// Trim removes all leading and trailing white space.
//
// All consecutive spaces will be reduced to a single space.
func Trim(s string) string {
return strings.TrimSpace(reTrim.ReplaceAllString(s, " "))
}
// Capitalize capitalizes the first character of the string.
func Capitalize(s string) string {
if len(s) == 1 {
return strings.ToUpper(s)
}
return strings.ToUpper(s[0:1]) + s[1:]
}
// SortXML sorts the reader's XML elements
//
// Deprecated: incorrectly handles XML namespaces, should not be used.
func SortXML(r io.Reader) string {
var buf bytes.Buffer
d := xml.NewDecoder(r)
root, _ := xmlutil.XMLToStruct(d, nil)
e := xml.NewEncoder(&buf)
xmlutil.StructToXML(e, root, true)
return buf.String()
}
// PrettyPrint generates a human readable representation of the value v.
// All values of v are recursively found and pretty printed also.
func PrettyPrint(v interface{}) string {
value := reflect.ValueOf(v)
switch value.Kind() {
case reflect.Struct:
str := fullName(value.Type()) + "{\n"
for i := 0; i < value.NumField(); i++ {
l := string(value.Type().Field(i).Name[0])
if strings.ToUpper(l) == l {
str += value.Type().Field(i).Name + ": "
str += PrettyPrint(value.Field(i).Interface())
str += ",\n"
}
}
str += "}"
return str
case reflect.Map:
str := "map[" + fullName(value.Type().Key()) + "]" + fullName(value.Type().Elem()) + "{\n"
for _, k := range value.MapKeys() {
str += "\"" + k.String() + "\": "
str += PrettyPrint(value.MapIndex(k).Interface())
str += ",\n"
}
str += "}"
return str
case reflect.Ptr:
if e := value.Elem(); e.IsValid() {
return "&" + PrettyPrint(e.Interface())
}
return "nil"
case reflect.Slice:
str := "[]" + fullName(value.Type().Elem()) + "{\n"
for i := 0; i < value.Len(); i++ {
str += PrettyPrint(value.Index(i).Interface())
str += ",\n"
}
str += "}"
return str
default:
return fmt.Sprintf("%#v", v)
}
}
func pkgName(t reflect.Type) string {
pkg := t.PkgPath()
c := strings.Split(pkg, "/")
return c[len(c)-1]
}
func fullName(t reflect.Type) string {
if pkg := pkgName(t); pkg != "" {
return pkg + "." + t.Name()
}
return t.Name()
}
| 112 |
session-manager-plugin | aws | Go | // Package service contains automatically generated AWS clients.
package service
//go:generate go run -tags codegen ../private/model/cli/gen-api/main.go -path=../service ../models/apis/*/*/api-2.json
//go:generate gofmt -s -w ../service
| 6 |
session-manager-plugin | aws | Go | // Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
package accessanalyzer
import (
"fmt"
"time"
"github.com/aws/aws-sdk-go/aws"
"github.com/aws/aws-sdk-go/aws/awsutil"
"github.com/aws/aws-sdk-go/aws/request"
"github.com/aws/aws-sdk-go/private/protocol"
"github.com/aws/aws-sdk-go/private/protocol/restjson"
)
const opApplyArchiveRule = "ApplyArchiveRule"
// ApplyArchiveRuleRequest generates a "aws/request.Request" representing the
// client's request for the ApplyArchiveRule 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 ApplyArchiveRule for more information on using the ApplyArchiveRule
// 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 ApplyArchiveRuleRequest method.
// req, resp := client.ApplyArchiveRuleRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/accessanalyzer-2019-11-01/ApplyArchiveRule
func (c *AccessAnalyzer) ApplyArchiveRuleRequest(input *ApplyArchiveRuleInput) (req *request.Request, output *ApplyArchiveRuleOutput) {
op := &request.Operation{
Name: opApplyArchiveRule,
HTTPMethod: "PUT",
HTTPPath: "/archive-rule",
}
if input == nil {
input = &ApplyArchiveRuleInput{}
}
output = &ApplyArchiveRuleOutput{}
req = c.newRequest(op, input, output)
req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
return
}
// ApplyArchiveRule API operation for Access Analyzer.
//
// Retroactively applies the archive rule to existing findings that meet the
// archive rule criteria.
//
// 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 Access Analyzer's
// API operation ApplyArchiveRule for usage and error information.
//
// Returned Error Types:
// * ResourceNotFoundException
// The specified resource could not be found.
//
// * ValidationException
// Validation exception error.
//
// * InternalServerException
// Internal server error.
//
// * ThrottlingException
// Throttling limit exceeded error.
//
// * AccessDeniedException
// You do not have sufficient access to perform this action.
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/accessanalyzer-2019-11-01/ApplyArchiveRule
func (c *AccessAnalyzer) ApplyArchiveRule(input *ApplyArchiveRuleInput) (*ApplyArchiveRuleOutput, error) {
req, out := c.ApplyArchiveRuleRequest(input)
return out, req.Send()
}
// ApplyArchiveRuleWithContext is the same as ApplyArchiveRule with the addition of
// the ability to pass a context and additional request options.
//
// See ApplyArchiveRule for details on how to use this API operation.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
func (c *AccessAnalyzer) ApplyArchiveRuleWithContext(ctx aws.Context, input *ApplyArchiveRuleInput, opts ...request.Option) (*ApplyArchiveRuleOutput, error) {
req, out := c.ApplyArchiveRuleRequest(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
const opCancelPolicyGeneration = "CancelPolicyGeneration"
// CancelPolicyGenerationRequest generates a "aws/request.Request" representing the
// client's request for the CancelPolicyGeneration 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 CancelPolicyGeneration for more information on using the CancelPolicyGeneration
// 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 CancelPolicyGenerationRequest method.
// req, resp := client.CancelPolicyGenerationRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/accessanalyzer-2019-11-01/CancelPolicyGeneration
func (c *AccessAnalyzer) CancelPolicyGenerationRequest(input *CancelPolicyGenerationInput) (req *request.Request, output *CancelPolicyGenerationOutput) {
op := &request.Operation{
Name: opCancelPolicyGeneration,
HTTPMethod: "PUT",
HTTPPath: "/policy/generation/{jobId}",
}
if input == nil {
input = &CancelPolicyGenerationInput{}
}
output = &CancelPolicyGenerationOutput{}
req = c.newRequest(op, input, output)
req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
return
}
// CancelPolicyGeneration API operation for Access Analyzer.
//
// Cancels the requested policy generation.
//
// 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 Access Analyzer's
// API operation CancelPolicyGeneration for usage and error information.
//
// Returned Error Types:
// * ValidationException
// Validation exception error.
//
// * InternalServerException
// Internal server error.
//
// * ThrottlingException
// Throttling limit exceeded error.
//
// * AccessDeniedException
// You do not have sufficient access to perform this action.
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/accessanalyzer-2019-11-01/CancelPolicyGeneration
func (c *AccessAnalyzer) CancelPolicyGeneration(input *CancelPolicyGenerationInput) (*CancelPolicyGenerationOutput, error) {
req, out := c.CancelPolicyGenerationRequest(input)
return out, req.Send()
}
// CancelPolicyGenerationWithContext is the same as CancelPolicyGeneration with the addition of
// the ability to pass a context and additional request options.
//
// See CancelPolicyGeneration for details on how to use this API operation.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
func (c *AccessAnalyzer) CancelPolicyGenerationWithContext(ctx aws.Context, input *CancelPolicyGenerationInput, opts ...request.Option) (*CancelPolicyGenerationOutput, error) {
req, out := c.CancelPolicyGenerationRequest(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
const opCreateAccessPreview = "CreateAccessPreview"
// CreateAccessPreviewRequest generates a "aws/request.Request" representing the
// client's request for the CreateAccessPreview 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 CreateAccessPreview for more information on using the CreateAccessPreview
// 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 CreateAccessPreviewRequest method.
// req, resp := client.CreateAccessPreviewRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/accessanalyzer-2019-11-01/CreateAccessPreview
func (c *AccessAnalyzer) CreateAccessPreviewRequest(input *CreateAccessPreviewInput) (req *request.Request, output *CreateAccessPreviewOutput) {
op := &request.Operation{
Name: opCreateAccessPreview,
HTTPMethod: "PUT",
HTTPPath: "/access-preview",
}
if input == nil {
input = &CreateAccessPreviewInput{}
}
output = &CreateAccessPreviewOutput{}
req = c.newRequest(op, input, output)
return
}
// CreateAccessPreview API operation for Access Analyzer.
//
// Creates an access preview that allows you to preview Access Analyzer findings
// for your resource before deploying resource permissions.
//
// 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 Access Analyzer's
// API operation CreateAccessPreview for usage and error information.
//
// Returned Error Types:
// * ResourceNotFoundException
// The specified resource could not be found.
//
// * ConflictException
// A conflict exception error.
//
// * ValidationException
// Validation exception error.
//
// * InternalServerException
// Internal server error.
//
// * ServiceQuotaExceededException
// Service quote met error.
//
// * ThrottlingException
// Throttling limit exceeded error.
//
// * AccessDeniedException
// You do not have sufficient access to perform this action.
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/accessanalyzer-2019-11-01/CreateAccessPreview
func (c *AccessAnalyzer) CreateAccessPreview(input *CreateAccessPreviewInput) (*CreateAccessPreviewOutput, error) {
req, out := c.CreateAccessPreviewRequest(input)
return out, req.Send()
}
// CreateAccessPreviewWithContext is the same as CreateAccessPreview with the addition of
// the ability to pass a context and additional request options.
//
// See CreateAccessPreview for details on how to use this API operation.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
func (c *AccessAnalyzer) CreateAccessPreviewWithContext(ctx aws.Context, input *CreateAccessPreviewInput, opts ...request.Option) (*CreateAccessPreviewOutput, error) {
req, out := c.CreateAccessPreviewRequest(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
const opCreateAnalyzer = "CreateAnalyzer"
// CreateAnalyzerRequest generates a "aws/request.Request" representing the
// client's request for the CreateAnalyzer 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 CreateAnalyzer for more information on using the CreateAnalyzer
// 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 CreateAnalyzerRequest method.
// req, resp := client.CreateAnalyzerRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/accessanalyzer-2019-11-01/CreateAnalyzer
func (c *AccessAnalyzer) CreateAnalyzerRequest(input *CreateAnalyzerInput) (req *request.Request, output *CreateAnalyzerOutput) {
op := &request.Operation{
Name: opCreateAnalyzer,
HTTPMethod: "PUT",
HTTPPath: "/analyzer",
}
if input == nil {
input = &CreateAnalyzerInput{}
}
output = &CreateAnalyzerOutput{}
req = c.newRequest(op, input, output)
return
}
// CreateAnalyzer API operation for Access Analyzer.
//
// Creates an analyzer for your 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 Access Analyzer's
// API operation CreateAnalyzer for usage and error information.
//
// Returned Error Types:
// * ConflictException
// A conflict exception error.
//
// * ValidationException
// Validation exception error.
//
// * InternalServerException
// Internal server error.
//
// * ServiceQuotaExceededException
// Service quote met error.
//
// * ThrottlingException
// Throttling limit exceeded error.
//
// * AccessDeniedException
// You do not have sufficient access to perform this action.
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/accessanalyzer-2019-11-01/CreateAnalyzer
func (c *AccessAnalyzer) CreateAnalyzer(input *CreateAnalyzerInput) (*CreateAnalyzerOutput, error) {
req, out := c.CreateAnalyzerRequest(input)
return out, req.Send()
}
// CreateAnalyzerWithContext is the same as CreateAnalyzer with the addition of
// the ability to pass a context and additional request options.
//
// See CreateAnalyzer for details on how to use this API operation.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
func (c *AccessAnalyzer) CreateAnalyzerWithContext(ctx aws.Context, input *CreateAnalyzerInput, opts ...request.Option) (*CreateAnalyzerOutput, error) {
req, out := c.CreateAnalyzerRequest(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
const opCreateArchiveRule = "CreateArchiveRule"
// CreateArchiveRuleRequest generates a "aws/request.Request" representing the
// client's request for the CreateArchiveRule 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 CreateArchiveRule for more information on using the CreateArchiveRule
// 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 CreateArchiveRuleRequest method.
// req, resp := client.CreateArchiveRuleRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/accessanalyzer-2019-11-01/CreateArchiveRule
func (c *AccessAnalyzer) CreateArchiveRuleRequest(input *CreateArchiveRuleInput) (req *request.Request, output *CreateArchiveRuleOutput) {
op := &request.Operation{
Name: opCreateArchiveRule,
HTTPMethod: "PUT",
HTTPPath: "/analyzer/{analyzerName}/archive-rule",
}
if input == nil {
input = &CreateArchiveRuleInput{}
}
output = &CreateArchiveRuleOutput{}
req = c.newRequest(op, input, output)
req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
return
}
// CreateArchiveRule API operation for Access Analyzer.
//
// Creates an archive rule for the specified analyzer. Archive rules automatically
// archive new findings that meet the criteria you define when you create the
// rule.
//
// To learn about filter keys that you can use to create an archive rule, see
// Access Analyzer filter keys (https://docs.aws.amazon.com/IAM/latest/UserGuide/access-analyzer-reference-filter-keys.html)
// in the IAM User Guide.
//
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
// with awserr.Error's Code and Message methods to get detailed information about
// the error.
//
// See the AWS API reference guide for Access Analyzer's
// API operation CreateArchiveRule for usage and error information.
//
// Returned Error Types:
// * ResourceNotFoundException
// The specified resource could not be found.
//
// * ConflictException
// A conflict exception error.
//
// * ValidationException
// Validation exception error.
//
// * InternalServerException
// Internal server error.
//
// * ServiceQuotaExceededException
// Service quote met error.
//
// * ThrottlingException
// Throttling limit exceeded error.
//
// * AccessDeniedException
// You do not have sufficient access to perform this action.
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/accessanalyzer-2019-11-01/CreateArchiveRule
func (c *AccessAnalyzer) CreateArchiveRule(input *CreateArchiveRuleInput) (*CreateArchiveRuleOutput, error) {
req, out := c.CreateArchiveRuleRequest(input)
return out, req.Send()
}
// CreateArchiveRuleWithContext is the same as CreateArchiveRule with the addition of
// the ability to pass a context and additional request options.
//
// See CreateArchiveRule for details on how to use this API operation.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
func (c *AccessAnalyzer) CreateArchiveRuleWithContext(ctx aws.Context, input *CreateArchiveRuleInput, opts ...request.Option) (*CreateArchiveRuleOutput, error) {
req, out := c.CreateArchiveRuleRequest(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
const opDeleteAnalyzer = "DeleteAnalyzer"
// DeleteAnalyzerRequest generates a "aws/request.Request" representing the
// client's request for the DeleteAnalyzer 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 DeleteAnalyzer for more information on using the DeleteAnalyzer
// 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 DeleteAnalyzerRequest method.
// req, resp := client.DeleteAnalyzerRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/accessanalyzer-2019-11-01/DeleteAnalyzer
func (c *AccessAnalyzer) DeleteAnalyzerRequest(input *DeleteAnalyzerInput) (req *request.Request, output *DeleteAnalyzerOutput) {
op := &request.Operation{
Name: opDeleteAnalyzer,
HTTPMethod: "DELETE",
HTTPPath: "/analyzer/{analyzerName}",
}
if input == nil {
input = &DeleteAnalyzerInput{}
}
output = &DeleteAnalyzerOutput{}
req = c.newRequest(op, input, output)
req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
return
}
// DeleteAnalyzer API operation for Access Analyzer.
//
// Deletes the specified analyzer. When you delete an analyzer, Access Analyzer
// is disabled for the account or organization in the current or specific Region.
// All findings that were generated by the analyzer are deleted. You cannot
// undo this action.
//
// 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 Access Analyzer's
// API operation DeleteAnalyzer for usage and error information.
//
// Returned Error Types:
// * ResourceNotFoundException
// The specified resource could not be found.
//
// * ValidationException
// Validation exception error.
//
// * InternalServerException
// Internal server error.
//
// * ThrottlingException
// Throttling limit exceeded error.
//
// * AccessDeniedException
// You do not have sufficient access to perform this action.
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/accessanalyzer-2019-11-01/DeleteAnalyzer
func (c *AccessAnalyzer) DeleteAnalyzer(input *DeleteAnalyzerInput) (*DeleteAnalyzerOutput, error) {
req, out := c.DeleteAnalyzerRequest(input)
return out, req.Send()
}
// DeleteAnalyzerWithContext is the same as DeleteAnalyzer with the addition of
// the ability to pass a context and additional request options.
//
// See DeleteAnalyzer for details on how to use this API operation.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
func (c *AccessAnalyzer) DeleteAnalyzerWithContext(ctx aws.Context, input *DeleteAnalyzerInput, opts ...request.Option) (*DeleteAnalyzerOutput, error) {
req, out := c.DeleteAnalyzerRequest(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
const opDeleteArchiveRule = "DeleteArchiveRule"
// DeleteArchiveRuleRequest generates a "aws/request.Request" representing the
// client's request for the DeleteArchiveRule 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 DeleteArchiveRule for more information on using the DeleteArchiveRule
// 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 DeleteArchiveRuleRequest method.
// req, resp := client.DeleteArchiveRuleRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/accessanalyzer-2019-11-01/DeleteArchiveRule
func (c *AccessAnalyzer) DeleteArchiveRuleRequest(input *DeleteArchiveRuleInput) (req *request.Request, output *DeleteArchiveRuleOutput) {
op := &request.Operation{
Name: opDeleteArchiveRule,
HTTPMethod: "DELETE",
HTTPPath: "/analyzer/{analyzerName}/archive-rule/{ruleName}",
}
if input == nil {
input = &DeleteArchiveRuleInput{}
}
output = &DeleteArchiveRuleOutput{}
req = c.newRequest(op, input, output)
req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
return
}
// DeleteArchiveRule API operation for Access Analyzer.
//
// Deletes the specified archive rule.
//
// 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 Access Analyzer's
// API operation DeleteArchiveRule for usage and error information.
//
// Returned Error Types:
// * ResourceNotFoundException
// The specified resource could not be found.
//
// * ValidationException
// Validation exception error.
//
// * InternalServerException
// Internal server error.
//
// * ThrottlingException
// Throttling limit exceeded error.
//
// * AccessDeniedException
// You do not have sufficient access to perform this action.
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/accessanalyzer-2019-11-01/DeleteArchiveRule
func (c *AccessAnalyzer) DeleteArchiveRule(input *DeleteArchiveRuleInput) (*DeleteArchiveRuleOutput, error) {
req, out := c.DeleteArchiveRuleRequest(input)
return out, req.Send()
}
// DeleteArchiveRuleWithContext is the same as DeleteArchiveRule with the addition of
// the ability to pass a context and additional request options.
//
// See DeleteArchiveRule for details on how to use this API operation.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
func (c *AccessAnalyzer) DeleteArchiveRuleWithContext(ctx aws.Context, input *DeleteArchiveRuleInput, opts ...request.Option) (*DeleteArchiveRuleOutput, error) {
req, out := c.DeleteArchiveRuleRequest(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
const opGetAccessPreview = "GetAccessPreview"
// GetAccessPreviewRequest generates a "aws/request.Request" representing the
// client's request for the GetAccessPreview 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 GetAccessPreview for more information on using the GetAccessPreview
// 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 GetAccessPreviewRequest method.
// req, resp := client.GetAccessPreviewRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/accessanalyzer-2019-11-01/GetAccessPreview
func (c *AccessAnalyzer) GetAccessPreviewRequest(input *GetAccessPreviewInput) (req *request.Request, output *GetAccessPreviewOutput) {
op := &request.Operation{
Name: opGetAccessPreview,
HTTPMethod: "GET",
HTTPPath: "/access-preview/{accessPreviewId}",
}
if input == nil {
input = &GetAccessPreviewInput{}
}
output = &GetAccessPreviewOutput{}
req = c.newRequest(op, input, output)
return
}
// GetAccessPreview API operation for Access Analyzer.
//
// Retrieves information about an access preview for the specified analyzer.
//
// 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 Access Analyzer's
// API operation GetAccessPreview for usage and error information.
//
// Returned Error Types:
// * ResourceNotFoundException
// The specified resource could not be found.
//
// * ValidationException
// Validation exception error.
//
// * InternalServerException
// Internal server error.
//
// * ThrottlingException
// Throttling limit exceeded error.
//
// * AccessDeniedException
// You do not have sufficient access to perform this action.
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/accessanalyzer-2019-11-01/GetAccessPreview
func (c *AccessAnalyzer) GetAccessPreview(input *GetAccessPreviewInput) (*GetAccessPreviewOutput, error) {
req, out := c.GetAccessPreviewRequest(input)
return out, req.Send()
}
// GetAccessPreviewWithContext is the same as GetAccessPreview with the addition of
// the ability to pass a context and additional request options.
//
// See GetAccessPreview for details on how to use this API operation.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
func (c *AccessAnalyzer) GetAccessPreviewWithContext(ctx aws.Context, input *GetAccessPreviewInput, opts ...request.Option) (*GetAccessPreviewOutput, error) {
req, out := c.GetAccessPreviewRequest(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
const opGetAnalyzedResource = "GetAnalyzedResource"
// GetAnalyzedResourceRequest generates a "aws/request.Request" representing the
// client's request for the GetAnalyzedResource 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 GetAnalyzedResource for more information on using the GetAnalyzedResource
// 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 GetAnalyzedResourceRequest method.
// req, resp := client.GetAnalyzedResourceRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/accessanalyzer-2019-11-01/GetAnalyzedResource
func (c *AccessAnalyzer) GetAnalyzedResourceRequest(input *GetAnalyzedResourceInput) (req *request.Request, output *GetAnalyzedResourceOutput) {
op := &request.Operation{
Name: opGetAnalyzedResource,
HTTPMethod: "GET",
HTTPPath: "/analyzed-resource",
}
if input == nil {
input = &GetAnalyzedResourceInput{}
}
output = &GetAnalyzedResourceOutput{}
req = c.newRequest(op, input, output)
return
}
// GetAnalyzedResource API operation for Access Analyzer.
//
// Retrieves information about a resource that was analyzed.
//
// 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 Access Analyzer's
// API operation GetAnalyzedResource for usage and error information.
//
// Returned Error Types:
// * ResourceNotFoundException
// The specified resource could not be found.
//
// * ValidationException
// Validation exception error.
//
// * InternalServerException
// Internal server error.
//
// * ThrottlingException
// Throttling limit exceeded error.
//
// * AccessDeniedException
// You do not have sufficient access to perform this action.
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/accessanalyzer-2019-11-01/GetAnalyzedResource
func (c *AccessAnalyzer) GetAnalyzedResource(input *GetAnalyzedResourceInput) (*GetAnalyzedResourceOutput, error) {
req, out := c.GetAnalyzedResourceRequest(input)
return out, req.Send()
}
// GetAnalyzedResourceWithContext is the same as GetAnalyzedResource with the addition of
// the ability to pass a context and additional request options.
//
// See GetAnalyzedResource for details on how to use this API operation.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
func (c *AccessAnalyzer) GetAnalyzedResourceWithContext(ctx aws.Context, input *GetAnalyzedResourceInput, opts ...request.Option) (*GetAnalyzedResourceOutput, error) {
req, out := c.GetAnalyzedResourceRequest(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
const opGetAnalyzer = "GetAnalyzer"
// GetAnalyzerRequest generates a "aws/request.Request" representing the
// client's request for the GetAnalyzer 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 GetAnalyzer for more information on using the GetAnalyzer
// 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 GetAnalyzerRequest method.
// req, resp := client.GetAnalyzerRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/accessanalyzer-2019-11-01/GetAnalyzer
func (c *AccessAnalyzer) GetAnalyzerRequest(input *GetAnalyzerInput) (req *request.Request, output *GetAnalyzerOutput) {
op := &request.Operation{
Name: opGetAnalyzer,
HTTPMethod: "GET",
HTTPPath: "/analyzer/{analyzerName}",
}
if input == nil {
input = &GetAnalyzerInput{}
}
output = &GetAnalyzerOutput{}
req = c.newRequest(op, input, output)
return
}
// GetAnalyzer API operation for Access Analyzer.
//
// Retrieves information about the specified analyzer.
//
// 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 Access Analyzer's
// API operation GetAnalyzer for usage and error information.
//
// Returned Error Types:
// * ResourceNotFoundException
// The specified resource could not be found.
//
// * ValidationException
// Validation exception error.
//
// * InternalServerException
// Internal server error.
//
// * ThrottlingException
// Throttling limit exceeded error.
//
// * AccessDeniedException
// You do not have sufficient access to perform this action.
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/accessanalyzer-2019-11-01/GetAnalyzer
func (c *AccessAnalyzer) GetAnalyzer(input *GetAnalyzerInput) (*GetAnalyzerOutput, error) {
req, out := c.GetAnalyzerRequest(input)
return out, req.Send()
}
// GetAnalyzerWithContext is the same as GetAnalyzer with the addition of
// the ability to pass a context and additional request options.
//
// See GetAnalyzer for details on how to use this API operation.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
func (c *AccessAnalyzer) GetAnalyzerWithContext(ctx aws.Context, input *GetAnalyzerInput, opts ...request.Option) (*GetAnalyzerOutput, error) {
req, out := c.GetAnalyzerRequest(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
const opGetArchiveRule = "GetArchiveRule"
// GetArchiveRuleRequest generates a "aws/request.Request" representing the
// client's request for the GetArchiveRule 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 GetArchiveRule for more information on using the GetArchiveRule
// 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 GetArchiveRuleRequest method.
// req, resp := client.GetArchiveRuleRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/accessanalyzer-2019-11-01/GetArchiveRule
func (c *AccessAnalyzer) GetArchiveRuleRequest(input *GetArchiveRuleInput) (req *request.Request, output *GetArchiveRuleOutput) {
op := &request.Operation{
Name: opGetArchiveRule,
HTTPMethod: "GET",
HTTPPath: "/analyzer/{analyzerName}/archive-rule/{ruleName}",
}
if input == nil {
input = &GetArchiveRuleInput{}
}
output = &GetArchiveRuleOutput{}
req = c.newRequest(op, input, output)
return
}
// GetArchiveRule API operation for Access Analyzer.
//
// Retrieves information about an archive rule.
//
// To learn about filter keys that you can use to create an archive rule, see
// Access Analyzer filter keys (https://docs.aws.amazon.com/IAM/latest/UserGuide/access-analyzer-reference-filter-keys.html)
// in the IAM User Guide.
//
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
// with awserr.Error's Code and Message methods to get detailed information about
// the error.
//
// See the AWS API reference guide for Access Analyzer's
// API operation GetArchiveRule for usage and error information.
//
// Returned Error Types:
// * ResourceNotFoundException
// The specified resource could not be found.
//
// * ValidationException
// Validation exception error.
//
// * InternalServerException
// Internal server error.
//
// * ThrottlingException
// Throttling limit exceeded error.
//
// * AccessDeniedException
// You do not have sufficient access to perform this action.
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/accessanalyzer-2019-11-01/GetArchiveRule
func (c *AccessAnalyzer) GetArchiveRule(input *GetArchiveRuleInput) (*GetArchiveRuleOutput, error) {
req, out := c.GetArchiveRuleRequest(input)
return out, req.Send()
}
// GetArchiveRuleWithContext is the same as GetArchiveRule with the addition of
// the ability to pass a context and additional request options.
//
// See GetArchiveRule for details on how to use this API operation.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
func (c *AccessAnalyzer) GetArchiveRuleWithContext(ctx aws.Context, input *GetArchiveRuleInput, opts ...request.Option) (*GetArchiveRuleOutput, error) {
req, out := c.GetArchiveRuleRequest(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
const opGetFinding = "GetFinding"
// GetFindingRequest generates a "aws/request.Request" representing the
// client's request for the GetFinding 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 GetFinding for more information on using the GetFinding
// 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 GetFindingRequest method.
// req, resp := client.GetFindingRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/accessanalyzer-2019-11-01/GetFinding
func (c *AccessAnalyzer) GetFindingRequest(input *GetFindingInput) (req *request.Request, output *GetFindingOutput) {
op := &request.Operation{
Name: opGetFinding,
HTTPMethod: "GET",
HTTPPath: "/finding/{id}",
}
if input == nil {
input = &GetFindingInput{}
}
output = &GetFindingOutput{}
req = c.newRequest(op, input, output)
return
}
// GetFinding API operation for Access Analyzer.
//
// Retrieves information about the specified finding.
//
// 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 Access Analyzer's
// API operation GetFinding for usage and error information.
//
// Returned Error Types:
// * ResourceNotFoundException
// The specified resource could not be found.
//
// * ValidationException
// Validation exception error.
//
// * InternalServerException
// Internal server error.
//
// * ThrottlingException
// Throttling limit exceeded error.
//
// * AccessDeniedException
// You do not have sufficient access to perform this action.
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/accessanalyzer-2019-11-01/GetFinding
func (c *AccessAnalyzer) GetFinding(input *GetFindingInput) (*GetFindingOutput, error) {
req, out := c.GetFindingRequest(input)
return out, req.Send()
}
// GetFindingWithContext is the same as GetFinding with the addition of
// the ability to pass a context and additional request options.
//
// See GetFinding for details on how to use this API operation.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
func (c *AccessAnalyzer) GetFindingWithContext(ctx aws.Context, input *GetFindingInput, opts ...request.Option) (*GetFindingOutput, error) {
req, out := c.GetFindingRequest(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
const opGetGeneratedPolicy = "GetGeneratedPolicy"
// GetGeneratedPolicyRequest generates a "aws/request.Request" representing the
// client's request for the GetGeneratedPolicy 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 GetGeneratedPolicy for more information on using the GetGeneratedPolicy
// 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 GetGeneratedPolicyRequest method.
// req, resp := client.GetGeneratedPolicyRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/accessanalyzer-2019-11-01/GetGeneratedPolicy
func (c *AccessAnalyzer) GetGeneratedPolicyRequest(input *GetGeneratedPolicyInput) (req *request.Request, output *GetGeneratedPolicyOutput) {
op := &request.Operation{
Name: opGetGeneratedPolicy,
HTTPMethod: "GET",
HTTPPath: "/policy/generation/{jobId}",
}
if input == nil {
input = &GetGeneratedPolicyInput{}
}
output = &GetGeneratedPolicyOutput{}
req = c.newRequest(op, input, output)
return
}
// GetGeneratedPolicy API operation for Access Analyzer.
//
// Retrieves the policy that was generated using StartPolicyGeneration.
//
// 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 Access Analyzer's
// API operation GetGeneratedPolicy for usage and error information.
//
// Returned Error Types:
// * ValidationException
// Validation exception error.
//
// * InternalServerException
// Internal server error.
//
// * ThrottlingException
// Throttling limit exceeded error.
//
// * AccessDeniedException
// You do not have sufficient access to perform this action.
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/accessanalyzer-2019-11-01/GetGeneratedPolicy
func (c *AccessAnalyzer) GetGeneratedPolicy(input *GetGeneratedPolicyInput) (*GetGeneratedPolicyOutput, error) {
req, out := c.GetGeneratedPolicyRequest(input)
return out, req.Send()
}
// GetGeneratedPolicyWithContext is the same as GetGeneratedPolicy with the addition of
// the ability to pass a context and additional request options.
//
// See GetGeneratedPolicy for details on how to use this API operation.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
func (c *AccessAnalyzer) GetGeneratedPolicyWithContext(ctx aws.Context, input *GetGeneratedPolicyInput, opts ...request.Option) (*GetGeneratedPolicyOutput, error) {
req, out := c.GetGeneratedPolicyRequest(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
const opListAccessPreviewFindings = "ListAccessPreviewFindings"
// ListAccessPreviewFindingsRequest generates a "aws/request.Request" representing the
// client's request for the ListAccessPreviewFindings 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 ListAccessPreviewFindings for more information on using the ListAccessPreviewFindings
// 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 ListAccessPreviewFindingsRequest method.
// req, resp := client.ListAccessPreviewFindingsRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/accessanalyzer-2019-11-01/ListAccessPreviewFindings
func (c *AccessAnalyzer) ListAccessPreviewFindingsRequest(input *ListAccessPreviewFindingsInput) (req *request.Request, output *ListAccessPreviewFindingsOutput) {
op := &request.Operation{
Name: opListAccessPreviewFindings,
HTTPMethod: "POST",
HTTPPath: "/access-preview/{accessPreviewId}",
Paginator: &request.Paginator{
InputTokens: []string{"nextToken"},
OutputTokens: []string{"nextToken"},
LimitToken: "maxResults",
TruncationToken: "",
},
}
if input == nil {
input = &ListAccessPreviewFindingsInput{}
}
output = &ListAccessPreviewFindingsOutput{}
req = c.newRequest(op, input, output)
return
}
// ListAccessPreviewFindings API operation for Access Analyzer.
//
// Retrieves a list of access preview findings generated by the specified access
// preview.
//
// 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 Access Analyzer's
// API operation ListAccessPreviewFindings for usage and error information.
//
// Returned Error Types:
// * ResourceNotFoundException
// The specified resource could not be found.
//
// * ConflictException
// A conflict exception error.
//
// * ValidationException
// Validation exception error.
//
// * InternalServerException
// Internal server error.
//
// * ThrottlingException
// Throttling limit exceeded error.
//
// * AccessDeniedException
// You do not have sufficient access to perform this action.
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/accessanalyzer-2019-11-01/ListAccessPreviewFindings
func (c *AccessAnalyzer) ListAccessPreviewFindings(input *ListAccessPreviewFindingsInput) (*ListAccessPreviewFindingsOutput, error) {
req, out := c.ListAccessPreviewFindingsRequest(input)
return out, req.Send()
}
// ListAccessPreviewFindingsWithContext is the same as ListAccessPreviewFindings with the addition of
// the ability to pass a context and additional request options.
//
// See ListAccessPreviewFindings for details on how to use this API operation.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
func (c *AccessAnalyzer) ListAccessPreviewFindingsWithContext(ctx aws.Context, input *ListAccessPreviewFindingsInput, opts ...request.Option) (*ListAccessPreviewFindingsOutput, error) {
req, out := c.ListAccessPreviewFindingsRequest(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
// ListAccessPreviewFindingsPages iterates over the pages of a ListAccessPreviewFindings operation,
// calling the "fn" function with the response data for each page. To stop
// iterating, return false from the fn function.
//
// See ListAccessPreviewFindings 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 ListAccessPreviewFindings operation.
// pageNum := 0
// err := client.ListAccessPreviewFindingsPages(params,
// func(page *accessanalyzer.ListAccessPreviewFindingsOutput, lastPage bool) bool {
// pageNum++
// fmt.Println(page)
// return pageNum <= 3
// })
//
func (c *AccessAnalyzer) ListAccessPreviewFindingsPages(input *ListAccessPreviewFindingsInput, fn func(*ListAccessPreviewFindingsOutput, bool) bool) error {
return c.ListAccessPreviewFindingsPagesWithContext(aws.BackgroundContext(), input, fn)
}
// ListAccessPreviewFindingsPagesWithContext same as ListAccessPreviewFindingsPages except
// it takes a Context and allows setting request options on the pages.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
func (c *AccessAnalyzer) ListAccessPreviewFindingsPagesWithContext(ctx aws.Context, input *ListAccessPreviewFindingsInput, fn func(*ListAccessPreviewFindingsOutput, bool) bool, opts ...request.Option) error {
p := request.Pagination{
NewRequest: func() (*request.Request, error) {
var inCpy *ListAccessPreviewFindingsInput
if input != nil {
tmp := *input
inCpy = &tmp
}
req, _ := c.ListAccessPreviewFindingsRequest(inCpy)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return req, nil
},
}
for p.Next() {
if !fn(p.Page().(*ListAccessPreviewFindingsOutput), !p.HasNextPage()) {
break
}
}
return p.Err()
}
const opListAccessPreviews = "ListAccessPreviews"
// ListAccessPreviewsRequest generates a "aws/request.Request" representing the
// client's request for the ListAccessPreviews 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 ListAccessPreviews for more information on using the ListAccessPreviews
// 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 ListAccessPreviewsRequest method.
// req, resp := client.ListAccessPreviewsRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/accessanalyzer-2019-11-01/ListAccessPreviews
func (c *AccessAnalyzer) ListAccessPreviewsRequest(input *ListAccessPreviewsInput) (req *request.Request, output *ListAccessPreviewsOutput) {
op := &request.Operation{
Name: opListAccessPreviews,
HTTPMethod: "GET",
HTTPPath: "/access-preview",
Paginator: &request.Paginator{
InputTokens: []string{"nextToken"},
OutputTokens: []string{"nextToken"},
LimitToken: "maxResults",
TruncationToken: "",
},
}
if input == nil {
input = &ListAccessPreviewsInput{}
}
output = &ListAccessPreviewsOutput{}
req = c.newRequest(op, input, output)
return
}
// ListAccessPreviews API operation for Access Analyzer.
//
// Retrieves a list of access previews for the specified analyzer.
//
// 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 Access Analyzer's
// API operation ListAccessPreviews for usage and error information.
//
// Returned Error Types:
// * ResourceNotFoundException
// The specified resource could not be found.
//
// * ValidationException
// Validation exception error.
//
// * InternalServerException
// Internal server error.
//
// * ThrottlingException
// Throttling limit exceeded error.
//
// * AccessDeniedException
// You do not have sufficient access to perform this action.
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/accessanalyzer-2019-11-01/ListAccessPreviews
func (c *AccessAnalyzer) ListAccessPreviews(input *ListAccessPreviewsInput) (*ListAccessPreviewsOutput, error) {
req, out := c.ListAccessPreviewsRequest(input)
return out, req.Send()
}
// ListAccessPreviewsWithContext is the same as ListAccessPreviews with the addition of
// the ability to pass a context and additional request options.
//
// See ListAccessPreviews for details on how to use this API operation.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
func (c *AccessAnalyzer) ListAccessPreviewsWithContext(ctx aws.Context, input *ListAccessPreviewsInput, opts ...request.Option) (*ListAccessPreviewsOutput, error) {
req, out := c.ListAccessPreviewsRequest(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
// ListAccessPreviewsPages iterates over the pages of a ListAccessPreviews operation,
// calling the "fn" function with the response data for each page. To stop
// iterating, return false from the fn function.
//
// See ListAccessPreviews 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 ListAccessPreviews operation.
// pageNum := 0
// err := client.ListAccessPreviewsPages(params,
// func(page *accessanalyzer.ListAccessPreviewsOutput, lastPage bool) bool {
// pageNum++
// fmt.Println(page)
// return pageNum <= 3
// })
//
func (c *AccessAnalyzer) ListAccessPreviewsPages(input *ListAccessPreviewsInput, fn func(*ListAccessPreviewsOutput, bool) bool) error {
return c.ListAccessPreviewsPagesWithContext(aws.BackgroundContext(), input, fn)
}
// ListAccessPreviewsPagesWithContext same as ListAccessPreviewsPages except
// it takes a Context and allows setting request options on the pages.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
func (c *AccessAnalyzer) ListAccessPreviewsPagesWithContext(ctx aws.Context, input *ListAccessPreviewsInput, fn func(*ListAccessPreviewsOutput, bool) bool, opts ...request.Option) error {
p := request.Pagination{
NewRequest: func() (*request.Request, error) {
var inCpy *ListAccessPreviewsInput
if input != nil {
tmp := *input
inCpy = &tmp
}
req, _ := c.ListAccessPreviewsRequest(inCpy)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return req, nil
},
}
for p.Next() {
if !fn(p.Page().(*ListAccessPreviewsOutput), !p.HasNextPage()) {
break
}
}
return p.Err()
}
const opListAnalyzedResources = "ListAnalyzedResources"
// ListAnalyzedResourcesRequest generates a "aws/request.Request" representing the
// client's request for the ListAnalyzedResources 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 ListAnalyzedResources for more information on using the ListAnalyzedResources
// 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 ListAnalyzedResourcesRequest method.
// req, resp := client.ListAnalyzedResourcesRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/accessanalyzer-2019-11-01/ListAnalyzedResources
func (c *AccessAnalyzer) ListAnalyzedResourcesRequest(input *ListAnalyzedResourcesInput) (req *request.Request, output *ListAnalyzedResourcesOutput) {
op := &request.Operation{
Name: opListAnalyzedResources,
HTTPMethod: "POST",
HTTPPath: "/analyzed-resource",
Paginator: &request.Paginator{
InputTokens: []string{"nextToken"},
OutputTokens: []string{"nextToken"},
LimitToken: "maxResults",
TruncationToken: "",
},
}
if input == nil {
input = &ListAnalyzedResourcesInput{}
}
output = &ListAnalyzedResourcesOutput{}
req = c.newRequest(op, input, output)
return
}
// ListAnalyzedResources API operation for Access Analyzer.
//
// Retrieves a list of resources of the specified type that have been analyzed
// by the specified analyzer..
//
// 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 Access Analyzer's
// API operation ListAnalyzedResources for usage and error information.
//
// Returned Error Types:
// * ResourceNotFoundException
// The specified resource could not be found.
//
// * ValidationException
// Validation exception error.
//
// * InternalServerException
// Internal server error.
//
// * ThrottlingException
// Throttling limit exceeded error.
//
// * AccessDeniedException
// You do not have sufficient access to perform this action.
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/accessanalyzer-2019-11-01/ListAnalyzedResources
func (c *AccessAnalyzer) ListAnalyzedResources(input *ListAnalyzedResourcesInput) (*ListAnalyzedResourcesOutput, error) {
req, out := c.ListAnalyzedResourcesRequest(input)
return out, req.Send()
}
// ListAnalyzedResourcesWithContext is the same as ListAnalyzedResources with the addition of
// the ability to pass a context and additional request options.
//
// See ListAnalyzedResources for details on how to use this API operation.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
func (c *AccessAnalyzer) ListAnalyzedResourcesWithContext(ctx aws.Context, input *ListAnalyzedResourcesInput, opts ...request.Option) (*ListAnalyzedResourcesOutput, error) {
req, out := c.ListAnalyzedResourcesRequest(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
// ListAnalyzedResourcesPages iterates over the pages of a ListAnalyzedResources operation,
// calling the "fn" function with the response data for each page. To stop
// iterating, return false from the fn function.
//
// See ListAnalyzedResources 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 ListAnalyzedResources operation.
// pageNum := 0
// err := client.ListAnalyzedResourcesPages(params,
// func(page *accessanalyzer.ListAnalyzedResourcesOutput, lastPage bool) bool {
// pageNum++
// fmt.Println(page)
// return pageNum <= 3
// })
//
func (c *AccessAnalyzer) ListAnalyzedResourcesPages(input *ListAnalyzedResourcesInput, fn func(*ListAnalyzedResourcesOutput, bool) bool) error {
return c.ListAnalyzedResourcesPagesWithContext(aws.BackgroundContext(), input, fn)
}
// ListAnalyzedResourcesPagesWithContext same as ListAnalyzedResourcesPages except
// it takes a Context and allows setting request options on the pages.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
func (c *AccessAnalyzer) ListAnalyzedResourcesPagesWithContext(ctx aws.Context, input *ListAnalyzedResourcesInput, fn func(*ListAnalyzedResourcesOutput, bool) bool, opts ...request.Option) error {
p := request.Pagination{
NewRequest: func() (*request.Request, error) {
var inCpy *ListAnalyzedResourcesInput
if input != nil {
tmp := *input
inCpy = &tmp
}
req, _ := c.ListAnalyzedResourcesRequest(inCpy)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return req, nil
},
}
for p.Next() {
if !fn(p.Page().(*ListAnalyzedResourcesOutput), !p.HasNextPage()) {
break
}
}
return p.Err()
}
const opListAnalyzers = "ListAnalyzers"
// ListAnalyzersRequest generates a "aws/request.Request" representing the
// client's request for the ListAnalyzers 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 ListAnalyzers for more information on using the ListAnalyzers
// 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 ListAnalyzersRequest method.
// req, resp := client.ListAnalyzersRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/accessanalyzer-2019-11-01/ListAnalyzers
func (c *AccessAnalyzer) ListAnalyzersRequest(input *ListAnalyzersInput) (req *request.Request, output *ListAnalyzersOutput) {
op := &request.Operation{
Name: opListAnalyzers,
HTTPMethod: "GET",
HTTPPath: "/analyzer",
Paginator: &request.Paginator{
InputTokens: []string{"nextToken"},
OutputTokens: []string{"nextToken"},
LimitToken: "maxResults",
TruncationToken: "",
},
}
if input == nil {
input = &ListAnalyzersInput{}
}
output = &ListAnalyzersOutput{}
req = c.newRequest(op, input, output)
return
}
// ListAnalyzers API operation for Access Analyzer.
//
// Retrieves a list of analyzers.
//
// 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 Access Analyzer's
// API operation ListAnalyzers for usage and error information.
//
// Returned Error Types:
// * ValidationException
// Validation exception error.
//
// * InternalServerException
// Internal server error.
//
// * ThrottlingException
// Throttling limit exceeded error.
//
// * AccessDeniedException
// You do not have sufficient access to perform this action.
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/accessanalyzer-2019-11-01/ListAnalyzers
func (c *AccessAnalyzer) ListAnalyzers(input *ListAnalyzersInput) (*ListAnalyzersOutput, error) {
req, out := c.ListAnalyzersRequest(input)
return out, req.Send()
}
// ListAnalyzersWithContext is the same as ListAnalyzers with the addition of
// the ability to pass a context and additional request options.
//
// See ListAnalyzers for details on how to use this API operation.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
func (c *AccessAnalyzer) ListAnalyzersWithContext(ctx aws.Context, input *ListAnalyzersInput, opts ...request.Option) (*ListAnalyzersOutput, error) {
req, out := c.ListAnalyzersRequest(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
// ListAnalyzersPages iterates over the pages of a ListAnalyzers operation,
// calling the "fn" function with the response data for each page. To stop
// iterating, return false from the fn function.
//
// See ListAnalyzers 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 ListAnalyzers operation.
// pageNum := 0
// err := client.ListAnalyzersPages(params,
// func(page *accessanalyzer.ListAnalyzersOutput, lastPage bool) bool {
// pageNum++
// fmt.Println(page)
// return pageNum <= 3
// })
//
func (c *AccessAnalyzer) ListAnalyzersPages(input *ListAnalyzersInput, fn func(*ListAnalyzersOutput, bool) bool) error {
return c.ListAnalyzersPagesWithContext(aws.BackgroundContext(), input, fn)
}
// ListAnalyzersPagesWithContext same as ListAnalyzersPages except
// it takes a Context and allows setting request options on the pages.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
func (c *AccessAnalyzer) ListAnalyzersPagesWithContext(ctx aws.Context, input *ListAnalyzersInput, fn func(*ListAnalyzersOutput, bool) bool, opts ...request.Option) error {
p := request.Pagination{
NewRequest: func() (*request.Request, error) {
var inCpy *ListAnalyzersInput
if input != nil {
tmp := *input
inCpy = &tmp
}
req, _ := c.ListAnalyzersRequest(inCpy)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return req, nil
},
}
for p.Next() {
if !fn(p.Page().(*ListAnalyzersOutput), !p.HasNextPage()) {
break
}
}
return p.Err()
}
const opListArchiveRules = "ListArchiveRules"
// ListArchiveRulesRequest generates a "aws/request.Request" representing the
// client's request for the ListArchiveRules 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 ListArchiveRules for more information on using the ListArchiveRules
// 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 ListArchiveRulesRequest method.
// req, resp := client.ListArchiveRulesRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/accessanalyzer-2019-11-01/ListArchiveRules
func (c *AccessAnalyzer) ListArchiveRulesRequest(input *ListArchiveRulesInput) (req *request.Request, output *ListArchiveRulesOutput) {
op := &request.Operation{
Name: opListArchiveRules,
HTTPMethod: "GET",
HTTPPath: "/analyzer/{analyzerName}/archive-rule",
Paginator: &request.Paginator{
InputTokens: []string{"nextToken"},
OutputTokens: []string{"nextToken"},
LimitToken: "maxResults",
TruncationToken: "",
},
}
if input == nil {
input = &ListArchiveRulesInput{}
}
output = &ListArchiveRulesOutput{}
req = c.newRequest(op, input, output)
return
}
// ListArchiveRules API operation for Access Analyzer.
//
// Retrieves a list of archive rules created for the specified analyzer.
//
// 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 Access Analyzer's
// API operation ListArchiveRules for usage and error information.
//
// Returned Error Types:
// * ValidationException
// Validation exception error.
//
// * InternalServerException
// Internal server error.
//
// * ThrottlingException
// Throttling limit exceeded error.
//
// * AccessDeniedException
// You do not have sufficient access to perform this action.
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/accessanalyzer-2019-11-01/ListArchiveRules
func (c *AccessAnalyzer) ListArchiveRules(input *ListArchiveRulesInput) (*ListArchiveRulesOutput, error) {
req, out := c.ListArchiveRulesRequest(input)
return out, req.Send()
}
// ListArchiveRulesWithContext is the same as ListArchiveRules with the addition of
// the ability to pass a context and additional request options.
//
// See ListArchiveRules for details on how to use this API operation.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
func (c *AccessAnalyzer) ListArchiveRulesWithContext(ctx aws.Context, input *ListArchiveRulesInput, opts ...request.Option) (*ListArchiveRulesOutput, error) {
req, out := c.ListArchiveRulesRequest(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
// ListArchiveRulesPages iterates over the pages of a ListArchiveRules operation,
// calling the "fn" function with the response data for each page. To stop
// iterating, return false from the fn function.
//
// See ListArchiveRules 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 ListArchiveRules operation.
// pageNum := 0
// err := client.ListArchiveRulesPages(params,
// func(page *accessanalyzer.ListArchiveRulesOutput, lastPage bool) bool {
// pageNum++
// fmt.Println(page)
// return pageNum <= 3
// })
//
func (c *AccessAnalyzer) ListArchiveRulesPages(input *ListArchiveRulesInput, fn func(*ListArchiveRulesOutput, bool) bool) error {
return c.ListArchiveRulesPagesWithContext(aws.BackgroundContext(), input, fn)
}
// ListArchiveRulesPagesWithContext same as ListArchiveRulesPages except
// it takes a Context and allows setting request options on the pages.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
func (c *AccessAnalyzer) ListArchiveRulesPagesWithContext(ctx aws.Context, input *ListArchiveRulesInput, fn func(*ListArchiveRulesOutput, bool) bool, opts ...request.Option) error {
p := request.Pagination{
NewRequest: func() (*request.Request, error) {
var inCpy *ListArchiveRulesInput
if input != nil {
tmp := *input
inCpy = &tmp
}
req, _ := c.ListArchiveRulesRequest(inCpy)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return req, nil
},
}
for p.Next() {
if !fn(p.Page().(*ListArchiveRulesOutput), !p.HasNextPage()) {
break
}
}
return p.Err()
}
const opListFindings = "ListFindings"
// ListFindingsRequest generates a "aws/request.Request" representing the
// client's request for the ListFindings 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 ListFindings for more information on using the ListFindings
// 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 ListFindingsRequest method.
// req, resp := client.ListFindingsRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/accessanalyzer-2019-11-01/ListFindings
func (c *AccessAnalyzer) ListFindingsRequest(input *ListFindingsInput) (req *request.Request, output *ListFindingsOutput) {
op := &request.Operation{
Name: opListFindings,
HTTPMethod: "POST",
HTTPPath: "/finding",
Paginator: &request.Paginator{
InputTokens: []string{"nextToken"},
OutputTokens: []string{"nextToken"},
LimitToken: "maxResults",
TruncationToken: "",
},
}
if input == nil {
input = &ListFindingsInput{}
}
output = &ListFindingsOutput{}
req = c.newRequest(op, input, output)
return
}
// ListFindings API operation for Access Analyzer.
//
// Retrieves a list of findings generated by the specified analyzer.
//
// To learn about filter keys that you can use to retrieve a list of findings,
// see Access Analyzer filter keys (https://docs.aws.amazon.com/IAM/latest/UserGuide/access-analyzer-reference-filter-keys.html)
// in the IAM User Guide.
//
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
// with awserr.Error's Code and Message methods to get detailed information about
// the error.
//
// See the AWS API reference guide for Access Analyzer's
// API operation ListFindings for usage and error information.
//
// Returned Error Types:
// * ResourceNotFoundException
// The specified resource could not be found.
//
// * ValidationException
// Validation exception error.
//
// * InternalServerException
// Internal server error.
//
// * ThrottlingException
// Throttling limit exceeded error.
//
// * AccessDeniedException
// You do not have sufficient access to perform this action.
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/accessanalyzer-2019-11-01/ListFindings
func (c *AccessAnalyzer) ListFindings(input *ListFindingsInput) (*ListFindingsOutput, error) {
req, out := c.ListFindingsRequest(input)
return out, req.Send()
}
// ListFindingsWithContext is the same as ListFindings with the addition of
// the ability to pass a context and additional request options.
//
// See ListFindings for details on how to use this API operation.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
func (c *AccessAnalyzer) ListFindingsWithContext(ctx aws.Context, input *ListFindingsInput, opts ...request.Option) (*ListFindingsOutput, error) {
req, out := c.ListFindingsRequest(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
// ListFindingsPages iterates over the pages of a ListFindings operation,
// calling the "fn" function with the response data for each page. To stop
// iterating, return false from the fn function.
//
// See ListFindings 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 ListFindings operation.
// pageNum := 0
// err := client.ListFindingsPages(params,
// func(page *accessanalyzer.ListFindingsOutput, lastPage bool) bool {
// pageNum++
// fmt.Println(page)
// return pageNum <= 3
// })
//
func (c *AccessAnalyzer) ListFindingsPages(input *ListFindingsInput, fn func(*ListFindingsOutput, bool) bool) error {
return c.ListFindingsPagesWithContext(aws.BackgroundContext(), input, fn)
}
// ListFindingsPagesWithContext same as ListFindingsPages except
// it takes a Context and allows setting request options on the pages.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
func (c *AccessAnalyzer) ListFindingsPagesWithContext(ctx aws.Context, input *ListFindingsInput, fn func(*ListFindingsOutput, bool) bool, opts ...request.Option) error {
p := request.Pagination{
NewRequest: func() (*request.Request, error) {
var inCpy *ListFindingsInput
if input != nil {
tmp := *input
inCpy = &tmp
}
req, _ := c.ListFindingsRequest(inCpy)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return req, nil
},
}
for p.Next() {
if !fn(p.Page().(*ListFindingsOutput), !p.HasNextPage()) {
break
}
}
return p.Err()
}
const opListPolicyGenerations = "ListPolicyGenerations"
// ListPolicyGenerationsRequest generates a "aws/request.Request" representing the
// client's request for the ListPolicyGenerations 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 ListPolicyGenerations for more information on using the ListPolicyGenerations
// 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 ListPolicyGenerationsRequest method.
// req, resp := client.ListPolicyGenerationsRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/accessanalyzer-2019-11-01/ListPolicyGenerations
func (c *AccessAnalyzer) ListPolicyGenerationsRequest(input *ListPolicyGenerationsInput) (req *request.Request, output *ListPolicyGenerationsOutput) {
op := &request.Operation{
Name: opListPolicyGenerations,
HTTPMethod: "GET",
HTTPPath: "/policy/generation",
Paginator: &request.Paginator{
InputTokens: []string{"nextToken"},
OutputTokens: []string{"nextToken"},
LimitToken: "maxResults",
TruncationToken: "",
},
}
if input == nil {
input = &ListPolicyGenerationsInput{}
}
output = &ListPolicyGenerationsOutput{}
req = c.newRequest(op, input, output)
return
}
// ListPolicyGenerations API operation for Access Analyzer.
//
// Lists all of the policy generations requested in the last seven days.
//
// 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 Access Analyzer's
// API operation ListPolicyGenerations for usage and error information.
//
// Returned Error Types:
// * ValidationException
// Validation exception error.
//
// * InternalServerException
// Internal server error.
//
// * ThrottlingException
// Throttling limit exceeded error.
//
// * AccessDeniedException
// You do not have sufficient access to perform this action.
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/accessanalyzer-2019-11-01/ListPolicyGenerations
func (c *AccessAnalyzer) ListPolicyGenerations(input *ListPolicyGenerationsInput) (*ListPolicyGenerationsOutput, error) {
req, out := c.ListPolicyGenerationsRequest(input)
return out, req.Send()
}
// ListPolicyGenerationsWithContext is the same as ListPolicyGenerations with the addition of
// the ability to pass a context and additional request options.
//
// See ListPolicyGenerations for details on how to use this API operation.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
func (c *AccessAnalyzer) ListPolicyGenerationsWithContext(ctx aws.Context, input *ListPolicyGenerationsInput, opts ...request.Option) (*ListPolicyGenerationsOutput, error) {
req, out := c.ListPolicyGenerationsRequest(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
// ListPolicyGenerationsPages iterates over the pages of a ListPolicyGenerations operation,
// calling the "fn" function with the response data for each page. To stop
// iterating, return false from the fn function.
//
// See ListPolicyGenerations 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 ListPolicyGenerations operation.
// pageNum := 0
// err := client.ListPolicyGenerationsPages(params,
// func(page *accessanalyzer.ListPolicyGenerationsOutput, lastPage bool) bool {
// pageNum++
// fmt.Println(page)
// return pageNum <= 3
// })
//
func (c *AccessAnalyzer) ListPolicyGenerationsPages(input *ListPolicyGenerationsInput, fn func(*ListPolicyGenerationsOutput, bool) bool) error {
return c.ListPolicyGenerationsPagesWithContext(aws.BackgroundContext(), input, fn)
}
// ListPolicyGenerationsPagesWithContext same as ListPolicyGenerationsPages except
// it takes a Context and allows setting request options on the pages.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
func (c *AccessAnalyzer) ListPolicyGenerationsPagesWithContext(ctx aws.Context, input *ListPolicyGenerationsInput, fn func(*ListPolicyGenerationsOutput, bool) bool, opts ...request.Option) error {
p := request.Pagination{
NewRequest: func() (*request.Request, error) {
var inCpy *ListPolicyGenerationsInput
if input != nil {
tmp := *input
inCpy = &tmp
}
req, _ := c.ListPolicyGenerationsRequest(inCpy)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return req, nil
},
}
for p.Next() {
if !fn(p.Page().(*ListPolicyGenerationsOutput), !p.HasNextPage()) {
break
}
}
return p.Err()
}
const opListTagsForResource = "ListTagsForResource"
// ListTagsForResourceRequest generates a "aws/request.Request" representing the
// client's request for the ListTagsForResource operation. The "output" return
// value will be populated with the request's response once the request completes
// successfully.
//
// Use "Send" method on the returned Request to send the API call to the service.
// the "output" return value is not valid until after Send returns without error.
//
// See ListTagsForResource for more information on using the ListTagsForResource
// API call, and error handling.
//
// This method is useful when you want to inject custom logic or configuration
// into the SDK's request lifecycle. Such as custom headers, or retry logic.
//
//
// // Example sending a request using the ListTagsForResourceRequest method.
// req, resp := client.ListTagsForResourceRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/accessanalyzer-2019-11-01/ListTagsForResource
func (c *AccessAnalyzer) ListTagsForResourceRequest(input *ListTagsForResourceInput) (req *request.Request, output *ListTagsForResourceOutput) {
op := &request.Operation{
Name: opListTagsForResource,
HTTPMethod: "GET",
HTTPPath: "/tags/{resourceArn}",
}
if input == nil {
input = &ListTagsForResourceInput{}
}
output = &ListTagsForResourceOutput{}
req = c.newRequest(op, input, output)
return
}
// ListTagsForResource API operation for Access Analyzer.
//
// Retrieves a list of tags applied to the specified resource.
//
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
// with awserr.Error's Code and Message methods to get detailed information about
// the error.
//
// See the AWS API reference guide for Access Analyzer's
// API operation ListTagsForResource for usage and error information.
//
// Returned Error Types:
// * ResourceNotFoundException
// The specified resource could not be found.
//
// * ValidationException
// Validation exception error.
//
// * InternalServerException
// Internal server error.
//
// * ThrottlingException
// Throttling limit exceeded error.
//
// * AccessDeniedException
// You do not have sufficient access to perform this action.
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/accessanalyzer-2019-11-01/ListTagsForResource
func (c *AccessAnalyzer) ListTagsForResource(input *ListTagsForResourceInput) (*ListTagsForResourceOutput, error) {
req, out := c.ListTagsForResourceRequest(input)
return out, req.Send()
}
// ListTagsForResourceWithContext is the same as ListTagsForResource with the addition of
// the ability to pass a context and additional request options.
//
// See ListTagsForResource for details on how to use this API operation.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
func (c *AccessAnalyzer) ListTagsForResourceWithContext(ctx aws.Context, input *ListTagsForResourceInput, opts ...request.Option) (*ListTagsForResourceOutput, error) {
req, out := c.ListTagsForResourceRequest(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
const opStartPolicyGeneration = "StartPolicyGeneration"
// StartPolicyGenerationRequest generates a "aws/request.Request" representing the
// client's request for the StartPolicyGeneration 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 StartPolicyGeneration for more information on using the StartPolicyGeneration
// 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 StartPolicyGenerationRequest method.
// req, resp := client.StartPolicyGenerationRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/accessanalyzer-2019-11-01/StartPolicyGeneration
func (c *AccessAnalyzer) StartPolicyGenerationRequest(input *StartPolicyGenerationInput) (req *request.Request, output *StartPolicyGenerationOutput) {
op := &request.Operation{
Name: opStartPolicyGeneration,
HTTPMethod: "PUT",
HTTPPath: "/policy/generation",
}
if input == nil {
input = &StartPolicyGenerationInput{}
}
output = &StartPolicyGenerationOutput{}
req = c.newRequest(op, input, output)
return
}
// StartPolicyGeneration API operation for Access Analyzer.
//
// Starts the policy generation request.
//
// 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 Access Analyzer's
// API operation StartPolicyGeneration for usage and error information.
//
// Returned Error Types:
// * ConflictException
// A conflict exception error.
//
// * ValidationException
// Validation exception error.
//
// * InternalServerException
// Internal server error.
//
// * ServiceQuotaExceededException
// Service quote met error.
//
// * ThrottlingException
// Throttling limit exceeded error.
//
// * AccessDeniedException
// You do not have sufficient access to perform this action.
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/accessanalyzer-2019-11-01/StartPolicyGeneration
func (c *AccessAnalyzer) StartPolicyGeneration(input *StartPolicyGenerationInput) (*StartPolicyGenerationOutput, error) {
req, out := c.StartPolicyGenerationRequest(input)
return out, req.Send()
}
// StartPolicyGenerationWithContext is the same as StartPolicyGeneration with the addition of
// the ability to pass a context and additional request options.
//
// See StartPolicyGeneration for details on how to use this API operation.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
func (c *AccessAnalyzer) StartPolicyGenerationWithContext(ctx aws.Context, input *StartPolicyGenerationInput, opts ...request.Option) (*StartPolicyGenerationOutput, error) {
req, out := c.StartPolicyGenerationRequest(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
const opStartResourceScan = "StartResourceScan"
// StartResourceScanRequest generates a "aws/request.Request" representing the
// client's request for the StartResourceScan 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 StartResourceScan for more information on using the StartResourceScan
// 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 StartResourceScanRequest method.
// req, resp := client.StartResourceScanRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/accessanalyzer-2019-11-01/StartResourceScan
func (c *AccessAnalyzer) StartResourceScanRequest(input *StartResourceScanInput) (req *request.Request, output *StartResourceScanOutput) {
op := &request.Operation{
Name: opStartResourceScan,
HTTPMethod: "POST",
HTTPPath: "/resource/scan",
}
if input == nil {
input = &StartResourceScanInput{}
}
output = &StartResourceScanOutput{}
req = c.newRequest(op, input, output)
req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
return
}
// StartResourceScan API operation for Access Analyzer.
//
// Immediately starts a scan of the policies applied to the specified resource.
//
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
// with awserr.Error's Code and Message methods to get detailed information about
// the error.
//
// See the AWS API reference guide for Access Analyzer's
// API operation StartResourceScan for usage and error information.
//
// Returned Error Types:
// * ResourceNotFoundException
// The specified resource could not be found.
//
// * ValidationException
// Validation exception error.
//
// * InternalServerException
// Internal server error.
//
// * ThrottlingException
// Throttling limit exceeded error.
//
// * AccessDeniedException
// You do not have sufficient access to perform this action.
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/accessanalyzer-2019-11-01/StartResourceScan
func (c *AccessAnalyzer) StartResourceScan(input *StartResourceScanInput) (*StartResourceScanOutput, error) {
req, out := c.StartResourceScanRequest(input)
return out, req.Send()
}
// StartResourceScanWithContext is the same as StartResourceScan with the addition of
// the ability to pass a context and additional request options.
//
// See StartResourceScan for details on how to use this API operation.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
func (c *AccessAnalyzer) StartResourceScanWithContext(ctx aws.Context, input *StartResourceScanInput, opts ...request.Option) (*StartResourceScanOutput, error) {
req, out := c.StartResourceScanRequest(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
const opTagResource = "TagResource"
// TagResourceRequest generates a "aws/request.Request" representing the
// client's request for the TagResource operation. The "output" return
// value will be populated with the request's response once the request completes
// successfully.
//
// Use "Send" method on the returned Request to send the API call to the service.
// the "output" return value is not valid until after Send returns without error.
//
// See TagResource for more information on using the TagResource
// API call, and error handling.
//
// This method is useful when you want to inject custom logic or configuration
// into the SDK's request lifecycle. Such as custom headers, or retry logic.
//
//
// // Example sending a request using the TagResourceRequest method.
// req, resp := client.TagResourceRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/accessanalyzer-2019-11-01/TagResource
func (c *AccessAnalyzer) TagResourceRequest(input *TagResourceInput) (req *request.Request, output *TagResourceOutput) {
op := &request.Operation{
Name: opTagResource,
HTTPMethod: "POST",
HTTPPath: "/tags/{resourceArn}",
}
if input == nil {
input = &TagResourceInput{}
}
output = &TagResourceOutput{}
req = c.newRequest(op, input, output)
req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
return
}
// TagResource API operation for Access Analyzer.
//
// Adds a tag to the specified resource.
//
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
// with awserr.Error's Code and Message methods to get detailed information about
// the error.
//
// See the AWS API reference guide for Access Analyzer's
// API operation TagResource for usage and error information.
//
// Returned Error Types:
// * ResourceNotFoundException
// The specified resource could not be found.
//
// * ValidationException
// Validation exception error.
//
// * InternalServerException
// Internal server error.
//
// * ThrottlingException
// Throttling limit exceeded error.
//
// * AccessDeniedException
// You do not have sufficient access to perform this action.
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/accessanalyzer-2019-11-01/TagResource
func (c *AccessAnalyzer) TagResource(input *TagResourceInput) (*TagResourceOutput, error) {
req, out := c.TagResourceRequest(input)
return out, req.Send()
}
// TagResourceWithContext is the same as TagResource with the addition of
// the ability to pass a context and additional request options.
//
// See TagResource for details on how to use this API operation.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
func (c *AccessAnalyzer) TagResourceWithContext(ctx aws.Context, input *TagResourceInput, opts ...request.Option) (*TagResourceOutput, error) {
req, out := c.TagResourceRequest(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
const opUntagResource = "UntagResource"
// UntagResourceRequest generates a "aws/request.Request" representing the
// client's request for the UntagResource operation. The "output" return
// value will be populated with the request's response once the request completes
// successfully.
//
// Use "Send" method on the returned Request to send the API call to the service.
// the "output" return value is not valid until after Send returns without error.
//
// See UntagResource for more information on using the UntagResource
// API call, and error handling.
//
// This method is useful when you want to inject custom logic or configuration
// into the SDK's request lifecycle. Such as custom headers, or retry logic.
//
//
// // Example sending a request using the UntagResourceRequest method.
// req, resp := client.UntagResourceRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/accessanalyzer-2019-11-01/UntagResource
func (c *AccessAnalyzer) UntagResourceRequest(input *UntagResourceInput) (req *request.Request, output *UntagResourceOutput) {
op := &request.Operation{
Name: opUntagResource,
HTTPMethod: "DELETE",
HTTPPath: "/tags/{resourceArn}",
}
if input == nil {
input = &UntagResourceInput{}
}
output = &UntagResourceOutput{}
req = c.newRequest(op, input, output)
req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
return
}
// UntagResource API operation for Access Analyzer.
//
// Removes a tag from the specified resource.
//
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
// with awserr.Error's Code and Message methods to get detailed information about
// the error.
//
// See the AWS API reference guide for Access Analyzer's
// API operation UntagResource for usage and error information.
//
// Returned Error Types:
// * ResourceNotFoundException
// The specified resource could not be found.
//
// * ValidationException
// Validation exception error.
//
// * InternalServerException
// Internal server error.
//
// * ThrottlingException
// Throttling limit exceeded error.
//
// * AccessDeniedException
// You do not have sufficient access to perform this action.
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/accessanalyzer-2019-11-01/UntagResource
func (c *AccessAnalyzer) UntagResource(input *UntagResourceInput) (*UntagResourceOutput, error) {
req, out := c.UntagResourceRequest(input)
return out, req.Send()
}
// UntagResourceWithContext is the same as UntagResource with the addition of
// the ability to pass a context and additional request options.
//
// See UntagResource for details on how to use this API operation.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
func (c *AccessAnalyzer) UntagResourceWithContext(ctx aws.Context, input *UntagResourceInput, opts ...request.Option) (*UntagResourceOutput, error) {
req, out := c.UntagResourceRequest(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
const opUpdateArchiveRule = "UpdateArchiveRule"
// UpdateArchiveRuleRequest generates a "aws/request.Request" representing the
// client's request for the UpdateArchiveRule 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 UpdateArchiveRule for more information on using the UpdateArchiveRule
// 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 UpdateArchiveRuleRequest method.
// req, resp := client.UpdateArchiveRuleRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/accessanalyzer-2019-11-01/UpdateArchiveRule
func (c *AccessAnalyzer) UpdateArchiveRuleRequest(input *UpdateArchiveRuleInput) (req *request.Request, output *UpdateArchiveRuleOutput) {
op := &request.Operation{
Name: opUpdateArchiveRule,
HTTPMethod: "PUT",
HTTPPath: "/analyzer/{analyzerName}/archive-rule/{ruleName}",
}
if input == nil {
input = &UpdateArchiveRuleInput{}
}
output = &UpdateArchiveRuleOutput{}
req = c.newRequest(op, input, output)
req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
return
}
// UpdateArchiveRule API operation for Access Analyzer.
//
// Updates the criteria and values for the specified archive rule.
//
// 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 Access Analyzer's
// API operation UpdateArchiveRule for usage and error information.
//
// Returned Error Types:
// * ResourceNotFoundException
// The specified resource could not be found.
//
// * ValidationException
// Validation exception error.
//
// * InternalServerException
// Internal server error.
//
// * ThrottlingException
// Throttling limit exceeded error.
//
// * AccessDeniedException
// You do not have sufficient access to perform this action.
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/accessanalyzer-2019-11-01/UpdateArchiveRule
func (c *AccessAnalyzer) UpdateArchiveRule(input *UpdateArchiveRuleInput) (*UpdateArchiveRuleOutput, error) {
req, out := c.UpdateArchiveRuleRequest(input)
return out, req.Send()
}
// UpdateArchiveRuleWithContext is the same as UpdateArchiveRule with the addition of
// the ability to pass a context and additional request options.
//
// See UpdateArchiveRule for details on how to use this API operation.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
func (c *AccessAnalyzer) UpdateArchiveRuleWithContext(ctx aws.Context, input *UpdateArchiveRuleInput, opts ...request.Option) (*UpdateArchiveRuleOutput, error) {
req, out := c.UpdateArchiveRuleRequest(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
const opUpdateFindings = "UpdateFindings"
// UpdateFindingsRequest generates a "aws/request.Request" representing the
// client's request for the UpdateFindings 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 UpdateFindings for more information on using the UpdateFindings
// 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 UpdateFindingsRequest method.
// req, resp := client.UpdateFindingsRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/accessanalyzer-2019-11-01/UpdateFindings
func (c *AccessAnalyzer) UpdateFindingsRequest(input *UpdateFindingsInput) (req *request.Request, output *UpdateFindingsOutput) {
op := &request.Operation{
Name: opUpdateFindings,
HTTPMethod: "PUT",
HTTPPath: "/finding",
}
if input == nil {
input = &UpdateFindingsInput{}
}
output = &UpdateFindingsOutput{}
req = c.newRequest(op, input, output)
req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
return
}
// UpdateFindings API operation for Access Analyzer.
//
// Updates the status for the specified findings.
//
// 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 Access Analyzer's
// API operation UpdateFindings for usage and error information.
//
// Returned Error Types:
// * ResourceNotFoundException
// The specified resource could not be found.
//
// * ValidationException
// Validation exception error.
//
// * InternalServerException
// Internal server error.
//
// * ThrottlingException
// Throttling limit exceeded error.
//
// * AccessDeniedException
// You do not have sufficient access to perform this action.
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/accessanalyzer-2019-11-01/UpdateFindings
func (c *AccessAnalyzer) UpdateFindings(input *UpdateFindingsInput) (*UpdateFindingsOutput, error) {
req, out := c.UpdateFindingsRequest(input)
return out, req.Send()
}
// UpdateFindingsWithContext is the same as UpdateFindings with the addition of
// the ability to pass a context and additional request options.
//
// See UpdateFindings for details on how to use this API operation.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
func (c *AccessAnalyzer) UpdateFindingsWithContext(ctx aws.Context, input *UpdateFindingsInput, opts ...request.Option) (*UpdateFindingsOutput, error) {
req, out := c.UpdateFindingsRequest(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
const opValidatePolicy = "ValidatePolicy"
// ValidatePolicyRequest generates a "aws/request.Request" representing the
// client's request for the ValidatePolicy 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 ValidatePolicy for more information on using the ValidatePolicy
// 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 ValidatePolicyRequest method.
// req, resp := client.ValidatePolicyRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/accessanalyzer-2019-11-01/ValidatePolicy
func (c *AccessAnalyzer) ValidatePolicyRequest(input *ValidatePolicyInput) (req *request.Request, output *ValidatePolicyOutput) {
op := &request.Operation{
Name: opValidatePolicy,
HTTPMethod: "POST",
HTTPPath: "/policy/validation",
Paginator: &request.Paginator{
InputTokens: []string{"nextToken"},
OutputTokens: []string{"nextToken"},
LimitToken: "maxResults",
TruncationToken: "",
},
}
if input == nil {
input = &ValidatePolicyInput{}
}
output = &ValidatePolicyOutput{}
req = c.newRequest(op, input, output)
return
}
// ValidatePolicy API operation for Access Analyzer.
//
// Requests the validation of a policy and returns a list of findings. The findings
// help you identify issues and provide actionable recommendations to resolve
// the issue and enable you to author functional policies that meet security
// best practices.
//
// 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 Access Analyzer's
// API operation ValidatePolicy for usage and error information.
//
// Returned Error Types:
// * ValidationException
// Validation exception error.
//
// * InternalServerException
// Internal server error.
//
// * ThrottlingException
// Throttling limit exceeded error.
//
// * AccessDeniedException
// You do not have sufficient access to perform this action.
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/accessanalyzer-2019-11-01/ValidatePolicy
func (c *AccessAnalyzer) ValidatePolicy(input *ValidatePolicyInput) (*ValidatePolicyOutput, error) {
req, out := c.ValidatePolicyRequest(input)
return out, req.Send()
}
// ValidatePolicyWithContext is the same as ValidatePolicy with the addition of
// the ability to pass a context and additional request options.
//
// See ValidatePolicy for details on how to use this API operation.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
func (c *AccessAnalyzer) ValidatePolicyWithContext(ctx aws.Context, input *ValidatePolicyInput, opts ...request.Option) (*ValidatePolicyOutput, error) {
req, out := c.ValidatePolicyRequest(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
// ValidatePolicyPages iterates over the pages of a ValidatePolicy operation,
// calling the "fn" function with the response data for each page. To stop
// iterating, return false from the fn function.
//
// See ValidatePolicy 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 ValidatePolicy operation.
// pageNum := 0
// err := client.ValidatePolicyPages(params,
// func(page *accessanalyzer.ValidatePolicyOutput, lastPage bool) bool {
// pageNum++
// fmt.Println(page)
// return pageNum <= 3
// })
//
func (c *AccessAnalyzer) ValidatePolicyPages(input *ValidatePolicyInput, fn func(*ValidatePolicyOutput, bool) bool) error {
return c.ValidatePolicyPagesWithContext(aws.BackgroundContext(), input, fn)
}
// ValidatePolicyPagesWithContext same as ValidatePolicyPages except
// it takes a Context and allows setting request options on the pages.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
func (c *AccessAnalyzer) ValidatePolicyPagesWithContext(ctx aws.Context, input *ValidatePolicyInput, fn func(*ValidatePolicyOutput, bool) bool, opts ...request.Option) error {
p := request.Pagination{
NewRequest: func() (*request.Request, error) {
var inCpy *ValidatePolicyInput
if input != nil {
tmp := *input
inCpy = &tmp
}
req, _ := c.ValidatePolicyRequest(inCpy)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return req, nil
},
}
for p.Next() {
if !fn(p.Page().(*ValidatePolicyOutput), !p.HasNextPage()) {
break
}
}
return p.Err()
}
// You do not have sufficient access to perform this action.
type AccessDeniedException struct {
_ struct{} `type:"structure"`
RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
// String returns the string representation
func (s AccessDeniedException) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s AccessDeniedException) GoString() string {
return s.String()
}
func newErrorAccessDeniedException(v protocol.ResponseMetadata) error {
return &AccessDeniedException{
RespMetadata: v,
}
}
// Code returns the exception type name.
func (s *AccessDeniedException) Code() string {
return "AccessDeniedException"
}
// Message returns the exception's message.
func (s *AccessDeniedException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
return ""
}
// OrigErr always returns nil, satisfies awserr.Error interface.
func (s *AccessDeniedException) OrigErr() error {
return nil
}
func (s *AccessDeniedException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
func (s *AccessDeniedException) StatusCode() int {
return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
func (s *AccessDeniedException) RequestID() string {
return s.RespMetadata.RequestID
}
// Contains information about an access preview.
type AccessPreview struct {
_ struct{} `type:"structure"`
// The ARN of the analyzer used to generate the access preview.
//
// AnalyzerArn is a required field
AnalyzerArn *string `locationName:"analyzerArn" type:"string" required:"true"`
// A map of resource ARNs for the proposed resource configuration.
//
// Configurations is a required field
Configurations map[string]*Configuration `locationName:"configurations" type:"map" required:"true"`
// The time at which the access preview was created.
//
// CreatedAt is a required field
CreatedAt *time.Time `locationName:"createdAt" type:"timestamp" timestampFormat:"iso8601" required:"true"`
// The unique ID for the access preview.
//
// Id is a required field
Id *string `locationName:"id" type:"string" required:"true"`
// The status of the access preview.
//
// * Creating - The access preview creation is in progress.
//
// * Completed - The access preview is complete. You can preview findings
// for external access to the resource.
//
// * Failed - The access preview creation has failed.
//
// Status is a required field
Status *string `locationName:"status" type:"string" required:"true" enum:"AccessPreviewStatus"`
// Provides more details about the current status of the access preview.
//
// For example, if the creation of the access preview fails, a Failed status
// is returned. This failure can be due to an internal issue with the analysis
// or due to an invalid resource configuration.
StatusReason *AccessPreviewStatusReason `locationName:"statusReason" type:"structure"`
}
// String returns the string representation
func (s AccessPreview) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s AccessPreview) GoString() string {
return s.String()
}
// SetAnalyzerArn sets the AnalyzerArn field's value.
func (s *AccessPreview) SetAnalyzerArn(v string) *AccessPreview {
s.AnalyzerArn = &v
return s
}
// SetConfigurations sets the Configurations field's value.
func (s *AccessPreview) SetConfigurations(v map[string]*Configuration) *AccessPreview {
s.Configurations = v
return s
}
// SetCreatedAt sets the CreatedAt field's value.
func (s *AccessPreview) SetCreatedAt(v time.Time) *AccessPreview {
s.CreatedAt = &v
return s
}
// SetId sets the Id field's value.
func (s *AccessPreview) SetId(v string) *AccessPreview {
s.Id = &v
return s
}
// SetStatus sets the Status field's value.
func (s *AccessPreview) SetStatus(v string) *AccessPreview {
s.Status = &v
return s
}
// SetStatusReason sets the StatusReason field's value.
func (s *AccessPreview) SetStatusReason(v *AccessPreviewStatusReason) *AccessPreview {
s.StatusReason = v
return s
}
// An access preview finding generated by the access preview.
type AccessPreviewFinding struct {
_ struct{} `type:"structure"`
// The action in the analyzed policy statement that an external principal has
// permission to perform.
Action []*string `locationName:"action" type:"list"`
// Provides context on how the access preview finding compares to existing access
// identified in Access Analyzer.
//
// * New - The finding is for newly-introduced access.
//
// * Unchanged - The preview finding is an existing finding that would remain
// unchanged.
//
// * Changed - The preview finding is an existing finding with a change in
// status.
//
// For example, a Changed finding with preview status Resolved and existing
// status Active indicates the existing Active finding would become Resolved
// as a result of the proposed permissions change.
//
// ChangeType is a required field
ChangeType *string `locationName:"changeType" type:"string" required:"true" enum:"FindingChangeType"`
// The condition in the analyzed policy statement that resulted in a finding.
Condition map[string]*string `locationName:"condition" type:"map"`
// The time at which the access preview finding was created.
//
// CreatedAt is a required field
CreatedAt *time.Time `locationName:"createdAt" type:"timestamp" timestampFormat:"iso8601" required:"true"`
// An error.
Error *string `locationName:"error" type:"string"`
// The existing ID of the finding in Access Analyzer, provided only for existing
// findings.
ExistingFindingId *string `locationName:"existingFindingId" type:"string"`
// The existing status of the finding, provided only for existing findings.
ExistingFindingStatus *string `locationName:"existingFindingStatus" type:"string" enum:"FindingStatus"`
// The ID of the access preview finding. This ID uniquely identifies the element
// in the list of access preview findings and is not related to the finding
// ID in Access Analyzer.
//
// Id is a required field
Id *string `locationName:"id" type:"string" required:"true"`
// Indicates whether the policy that generated the finding allows public access
// to the resource.
IsPublic *bool `locationName:"isPublic" type:"boolean"`
// The external principal that has access to a resource within the zone of trust.
Principal map[string]*string `locationName:"principal" type:"map"`
// The resource that an external principal has access to. This is the resource
// associated with the access preview.
Resource *string `locationName:"resource" type:"string"`
// The AWS account ID that owns the resource. For most AWS resources, the owning
// account is the account in which the resource was created.
//
// ResourceOwnerAccount is a required field
ResourceOwnerAccount *string `locationName:"resourceOwnerAccount" type:"string" required:"true"`
// The type of the resource that can be accessed in the finding.
//
// ResourceType is a required field
ResourceType *string `locationName:"resourceType" type:"string" required:"true" enum:"ResourceType"`
// The sources of the finding. This indicates how the access that generated
// the finding is granted. It is populated for Amazon S3 bucket findings.
Sources []*FindingSource `locationName:"sources" type:"list"`
// The preview status of the finding. This is what the status of the finding
// would be after permissions deployment. For example, a Changed finding with
// preview status Resolved and existing status Active indicates the existing
// Active finding would become Resolved as a result of the proposed permissions
// change.
//
// Status is a required field
Status *string `locationName:"status" type:"string" required:"true" enum:"FindingStatus"`
}
// String returns the string representation
func (s AccessPreviewFinding) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s AccessPreviewFinding) GoString() string {
return s.String()
}
// SetAction sets the Action field's value.
func (s *AccessPreviewFinding) SetAction(v []*string) *AccessPreviewFinding {
s.Action = v
return s
}
// SetChangeType sets the ChangeType field's value.
func (s *AccessPreviewFinding) SetChangeType(v string) *AccessPreviewFinding {
s.ChangeType = &v
return s
}
// SetCondition sets the Condition field's value.
func (s *AccessPreviewFinding) SetCondition(v map[string]*string) *AccessPreviewFinding {
s.Condition = v
return s
}
// SetCreatedAt sets the CreatedAt field's value.
func (s *AccessPreviewFinding) SetCreatedAt(v time.Time) *AccessPreviewFinding {
s.CreatedAt = &v
return s
}
// SetError sets the Error field's value.
func (s *AccessPreviewFinding) SetError(v string) *AccessPreviewFinding {
s.Error = &v
return s
}
// SetExistingFindingId sets the ExistingFindingId field's value.
func (s *AccessPreviewFinding) SetExistingFindingId(v string) *AccessPreviewFinding {
s.ExistingFindingId = &v
return s
}
// SetExistingFindingStatus sets the ExistingFindingStatus field's value.
func (s *AccessPreviewFinding) SetExistingFindingStatus(v string) *AccessPreviewFinding {
s.ExistingFindingStatus = &v
return s
}
// SetId sets the Id field's value.
func (s *AccessPreviewFinding) SetId(v string) *AccessPreviewFinding {
s.Id = &v
return s
}
// SetIsPublic sets the IsPublic field's value.
func (s *AccessPreviewFinding) SetIsPublic(v bool) *AccessPreviewFinding {
s.IsPublic = &v
return s
}
// SetPrincipal sets the Principal field's value.
func (s *AccessPreviewFinding) SetPrincipal(v map[string]*string) *AccessPreviewFinding {
s.Principal = v
return s
}
// SetResource sets the Resource field's value.
func (s *AccessPreviewFinding) SetResource(v string) *AccessPreviewFinding {
s.Resource = &v
return s
}
// SetResourceOwnerAccount sets the ResourceOwnerAccount field's value.
func (s *AccessPreviewFinding) SetResourceOwnerAccount(v string) *AccessPreviewFinding {
s.ResourceOwnerAccount = &v
return s
}
// SetResourceType sets the ResourceType field's value.
func (s *AccessPreviewFinding) SetResourceType(v string) *AccessPreviewFinding {
s.ResourceType = &v
return s
}
// SetSources sets the Sources field's value.
func (s *AccessPreviewFinding) SetSources(v []*FindingSource) *AccessPreviewFinding {
s.Sources = v
return s
}
// SetStatus sets the Status field's value.
func (s *AccessPreviewFinding) SetStatus(v string) *AccessPreviewFinding {
s.Status = &v
return s
}
// Provides more details about the current status of the access preview. For
// example, if the creation of the access preview fails, a Failed status is
// returned. This failure can be due to an internal issue with the analysis
// or due to an invalid proposed resource configuration.
type AccessPreviewStatusReason struct {
_ struct{} `type:"structure"`
// The reason code for the current status of the access preview.
//
// Code is a required field
Code *string `locationName:"code" type:"string" required:"true" enum:"AccessPreviewStatusReasonCode"`
}
// String returns the string representation
func (s AccessPreviewStatusReason) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s AccessPreviewStatusReason) GoString() string {
return s.String()
}
// SetCode sets the Code field's value.
func (s *AccessPreviewStatusReason) SetCode(v string) *AccessPreviewStatusReason {
s.Code = &v
return s
}
// Contains a summary of information about an access preview.
type AccessPreviewSummary struct {
_ struct{} `type:"structure"`
// The ARN of the analyzer used to generate the access preview.
//
// AnalyzerArn is a required field
AnalyzerArn *string `locationName:"analyzerArn" type:"string" required:"true"`
// The time at which the access preview was created.
//
// CreatedAt is a required field
CreatedAt *time.Time `locationName:"createdAt" type:"timestamp" timestampFormat:"iso8601" required:"true"`
// The unique ID for the access preview.
//
// Id is a required field
Id *string `locationName:"id" type:"string" required:"true"`
// The status of the access preview.
//
// * Creating - The access preview creation is in progress.
//
// * Completed - The access preview is complete and previews the findings
// for external access to the resource.
//
// * Failed - The access preview creation has failed.
//
// Status is a required field
Status *string `locationName:"status" type:"string" required:"true" enum:"AccessPreviewStatus"`
// Provides more details about the current status of the access preview. For
// example, if the creation of the access preview fails, a Failed status is
// returned. This failure can be due to an internal issue with the analysis
// or due to an invalid proposed resource configuration.
StatusReason *AccessPreviewStatusReason `locationName:"statusReason" type:"structure"`
}
// String returns the string representation
func (s AccessPreviewSummary) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s AccessPreviewSummary) GoString() string {
return s.String()
}
// SetAnalyzerArn sets the AnalyzerArn field's value.
func (s *AccessPreviewSummary) SetAnalyzerArn(v string) *AccessPreviewSummary {
s.AnalyzerArn = &v
return s
}
// SetCreatedAt sets the CreatedAt field's value.
func (s *AccessPreviewSummary) SetCreatedAt(v time.Time) *AccessPreviewSummary {
s.CreatedAt = &v
return s
}
// SetId sets the Id field's value.
func (s *AccessPreviewSummary) SetId(v string) *AccessPreviewSummary {
s.Id = &v
return s
}
// SetStatus sets the Status field's value.
func (s *AccessPreviewSummary) SetStatus(v string) *AccessPreviewSummary {
s.Status = &v
return s
}
// SetStatusReason sets the StatusReason field's value.
func (s *AccessPreviewSummary) SetStatusReason(v *AccessPreviewStatusReason) *AccessPreviewSummary {
s.StatusReason = v
return s
}
// You specify each grantee as a type-value pair using one of these types. You
// can specify only one type of grantee. For more information, see PutBucketAcl
// (https://docs.aws.amazon.com/AmazonS3/latest/API/API_PutBucketAcl.html).
type AclGrantee struct {
_ struct{} `type:"structure"`
// The value specified is the canonical user ID of an AWS account.
Id *string `locationName:"id" type:"string"`
// Used for granting permissions to a predefined group.
Uri *string `locationName:"uri" type:"string"`
}
// String returns the string representation
func (s AclGrantee) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s AclGrantee) GoString() string {
return s.String()
}
// SetId sets the Id field's value.
func (s *AclGrantee) SetId(v string) *AclGrantee {
s.Id = &v
return s
}
// SetUri sets the Uri field's value.
func (s *AclGrantee) SetUri(v string) *AclGrantee {
s.Uri = &v
return s
}
// Contains details about the analyzed resource.
type AnalyzedResource struct {
_ struct{} `type:"structure"`
// The actions that an external principal is granted permission to use by the
// policy that generated the finding.
Actions []*string `locationName:"actions" type:"list"`
// The time at which the resource was analyzed.
//
// AnalyzedAt is a required field
AnalyzedAt *time.Time `locationName:"analyzedAt" type:"timestamp" timestampFormat:"iso8601" required:"true"`
// The time at which the finding was created.
//
// CreatedAt is a required field
CreatedAt *time.Time `locationName:"createdAt" type:"timestamp" timestampFormat:"iso8601" required:"true"`
// An error message.
Error *string `locationName:"error" type:"string"`
// Indicates whether the policy that generated the finding grants public access
// to the resource.
//
// IsPublic is a required field
IsPublic *bool `locationName:"isPublic" type:"boolean" required:"true"`
// The ARN of the resource that was analyzed.
//
// ResourceArn is a required field
ResourceArn *string `locationName:"resourceArn" type:"string" required:"true"`
// The AWS account ID that owns the resource.
//
// ResourceOwnerAccount is a required field
ResourceOwnerAccount *string `locationName:"resourceOwnerAccount" type:"string" required:"true"`
// The type of the resource that was analyzed.
//
// ResourceType is a required field
ResourceType *string `locationName:"resourceType" type:"string" required:"true" enum:"ResourceType"`
// Indicates how the access that generated the finding is granted. This is populated
// for Amazon S3 bucket findings.
SharedVia []*string `locationName:"sharedVia" type:"list"`
// The current status of the finding generated from the analyzed resource.
Status *string `locationName:"status" type:"string" enum:"FindingStatus"`
// The time at which the finding was updated.
//
// UpdatedAt is a required field
UpdatedAt *time.Time `locationName:"updatedAt" type:"timestamp" timestampFormat:"iso8601" required:"true"`
}
// String returns the string representation
func (s AnalyzedResource) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s AnalyzedResource) GoString() string {
return s.String()
}
// SetActions sets the Actions field's value.
func (s *AnalyzedResource) SetActions(v []*string) *AnalyzedResource {
s.Actions = v
return s
}
// SetAnalyzedAt sets the AnalyzedAt field's value.
func (s *AnalyzedResource) SetAnalyzedAt(v time.Time) *AnalyzedResource {
s.AnalyzedAt = &v
return s
}
// SetCreatedAt sets the CreatedAt field's value.
func (s *AnalyzedResource) SetCreatedAt(v time.Time) *AnalyzedResource {
s.CreatedAt = &v
return s
}
// SetError sets the Error field's value.
func (s *AnalyzedResource) SetError(v string) *AnalyzedResource {
s.Error = &v
return s
}
// SetIsPublic sets the IsPublic field's value.
func (s *AnalyzedResource) SetIsPublic(v bool) *AnalyzedResource {
s.IsPublic = &v
return s
}
// SetResourceArn sets the ResourceArn field's value.
func (s *AnalyzedResource) SetResourceArn(v string) *AnalyzedResource {
s.ResourceArn = &v
return s
}
// SetResourceOwnerAccount sets the ResourceOwnerAccount field's value.
func (s *AnalyzedResource) SetResourceOwnerAccount(v string) *AnalyzedResource {
s.ResourceOwnerAccount = &v
return s
}
// SetResourceType sets the ResourceType field's value.
func (s *AnalyzedResource) SetResourceType(v string) *AnalyzedResource {
s.ResourceType = &v
return s
}
// SetSharedVia sets the SharedVia field's value.
func (s *AnalyzedResource) SetSharedVia(v []*string) *AnalyzedResource {
s.SharedVia = v
return s
}
// SetStatus sets the Status field's value.
func (s *AnalyzedResource) SetStatus(v string) *AnalyzedResource {
s.Status = &v
return s
}
// SetUpdatedAt sets the UpdatedAt field's value.
func (s *AnalyzedResource) SetUpdatedAt(v time.Time) *AnalyzedResource {
s.UpdatedAt = &v
return s
}
// Contains the ARN of the analyzed resource.
type AnalyzedResourceSummary struct {
_ struct{} `type:"structure"`
// The ARN of the analyzed resource.
//
// ResourceArn is a required field
ResourceArn *string `locationName:"resourceArn" type:"string" required:"true"`
// The AWS account ID that owns the resource.
//
// ResourceOwnerAccount is a required field
ResourceOwnerAccount *string `locationName:"resourceOwnerAccount" type:"string" required:"true"`
// The type of resource that was analyzed.
//
// ResourceType is a required field
ResourceType *string `locationName:"resourceType" type:"string" required:"true" enum:"ResourceType"`
}
// String returns the string representation
func (s AnalyzedResourceSummary) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s AnalyzedResourceSummary) GoString() string {
return s.String()
}
// SetResourceArn sets the ResourceArn field's value.
func (s *AnalyzedResourceSummary) SetResourceArn(v string) *AnalyzedResourceSummary {
s.ResourceArn = &v
return s
}
// SetResourceOwnerAccount sets the ResourceOwnerAccount field's value.
func (s *AnalyzedResourceSummary) SetResourceOwnerAccount(v string) *AnalyzedResourceSummary {
s.ResourceOwnerAccount = &v
return s
}
// SetResourceType sets the ResourceType field's value.
func (s *AnalyzedResourceSummary) SetResourceType(v string) *AnalyzedResourceSummary {
s.ResourceType = &v
return s
}
// Contains information about the analyzer.
type AnalyzerSummary struct {
_ struct{} `type:"structure"`
// The ARN of the analyzer.
//
// Arn is a required field
Arn *string `locationName:"arn" type:"string" required:"true"`
// A timestamp for the time at which the analyzer was created.
//
// CreatedAt is a required field
CreatedAt *time.Time `locationName:"createdAt" type:"timestamp" timestampFormat:"iso8601" required:"true"`
// The resource that was most recently analyzed by the analyzer.
LastResourceAnalyzed *string `locationName:"lastResourceAnalyzed" type:"string"`
// The time at which the most recently analyzed resource was analyzed.
LastResourceAnalyzedAt *time.Time `locationName:"lastResourceAnalyzedAt" type:"timestamp" timestampFormat:"iso8601"`
// The name of the analyzer.
//
// Name is a required field
Name *string `locationName:"name" min:"1" type:"string" required:"true"`
// The status of the analyzer. An Active analyzer successfully monitors supported
// resources and generates new findings. The analyzer is Disabled when a user
// action, such as removing trusted access for AWS IAM Access Analyzer from
// AWS Organizations, causes the analyzer to stop generating new findings. The
// status is Creating when the analyzer creation is in progress and Failed when
// the analyzer creation has failed.
//
// Status is a required field
Status *string `locationName:"status" type:"string" required:"true" enum:"AnalyzerStatus"`
// The statusReason provides more details about the current status of the analyzer.
// For example, if the creation for the analyzer fails, a Failed status is returned.
// For an analyzer with organization as the type, this failure can be due to
// an issue with creating the service-linked roles required in the member accounts
// of the AWS organization.
StatusReason *StatusReason `locationName:"statusReason" type:"structure"`
// The tags added to the analyzer.
Tags map[string]*string `locationName:"tags" type:"map"`
// The type of analyzer, which corresponds to the zone of trust chosen for the
// analyzer.
//
// Type is a required field
Type *string `locationName:"type" type:"string" required:"true" enum:"Type"`
}
// String returns the string representation
func (s AnalyzerSummary) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s AnalyzerSummary) GoString() string {
return s.String()
}
// SetArn sets the Arn field's value.
func (s *AnalyzerSummary) SetArn(v string) *AnalyzerSummary {
s.Arn = &v
return s
}
// SetCreatedAt sets the CreatedAt field's value.
func (s *AnalyzerSummary) SetCreatedAt(v time.Time) *AnalyzerSummary {
s.CreatedAt = &v
return s
}
// SetLastResourceAnalyzed sets the LastResourceAnalyzed field's value.
func (s *AnalyzerSummary) SetLastResourceAnalyzed(v string) *AnalyzerSummary {
s.LastResourceAnalyzed = &v
return s
}
// SetLastResourceAnalyzedAt sets the LastResourceAnalyzedAt field's value.
func (s *AnalyzerSummary) SetLastResourceAnalyzedAt(v time.Time) *AnalyzerSummary {
s.LastResourceAnalyzedAt = &v
return s
}
// SetName sets the Name field's value.
func (s *AnalyzerSummary) SetName(v string) *AnalyzerSummary {
s.Name = &v
return s
}
// SetStatus sets the Status field's value.
func (s *AnalyzerSummary) SetStatus(v string) *AnalyzerSummary {
s.Status = &v
return s
}
// SetStatusReason sets the StatusReason field's value.
func (s *AnalyzerSummary) SetStatusReason(v *StatusReason) *AnalyzerSummary {
s.StatusReason = v
return s
}
// SetTags sets the Tags field's value.
func (s *AnalyzerSummary) SetTags(v map[string]*string) *AnalyzerSummary {
s.Tags = v
return s
}
// SetType sets the Type field's value.
func (s *AnalyzerSummary) SetType(v string) *AnalyzerSummary {
s.Type = &v
return s
}
// Retroactively applies an archive rule.
type ApplyArchiveRuleInput struct {
_ struct{} `type:"structure"`
// The Amazon resource name (ARN) of the analyzer.
//
// AnalyzerArn is a required field
AnalyzerArn *string `locationName:"analyzerArn" type:"string" required:"true"`
// A client token.
ClientToken *string `locationName:"clientToken" type:"string" idempotencyToken:"true"`
// The name of the rule to apply.
//
// RuleName is a required field
RuleName *string `locationName:"ruleName" min:"1" type:"string" required:"true"`
}
// String returns the string representation
func (s ApplyArchiveRuleInput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s ApplyArchiveRuleInput) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
func (s *ApplyArchiveRuleInput) Validate() error {
invalidParams := request.ErrInvalidParams{Context: "ApplyArchiveRuleInput"}
if s.AnalyzerArn == nil {
invalidParams.Add(request.NewErrParamRequired("AnalyzerArn"))
}
if s.RuleName == nil {
invalidParams.Add(request.NewErrParamRequired("RuleName"))
}
if s.RuleName != nil && len(*s.RuleName) < 1 {
invalidParams.Add(request.NewErrParamMinLen("RuleName", 1))
}
if invalidParams.Len() > 0 {
return invalidParams
}
return nil
}
// SetAnalyzerArn sets the AnalyzerArn field's value.
func (s *ApplyArchiveRuleInput) SetAnalyzerArn(v string) *ApplyArchiveRuleInput {
s.AnalyzerArn = &v
return s
}
// SetClientToken sets the ClientToken field's value.
func (s *ApplyArchiveRuleInput) SetClientToken(v string) *ApplyArchiveRuleInput {
s.ClientToken = &v
return s
}
// SetRuleName sets the RuleName field's value.
func (s *ApplyArchiveRuleInput) SetRuleName(v string) *ApplyArchiveRuleInput {
s.RuleName = &v
return s
}
type ApplyArchiveRuleOutput struct {
_ struct{} `type:"structure"`
}
// String returns the string representation
func (s ApplyArchiveRuleOutput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s ApplyArchiveRuleOutput) GoString() string {
return s.String()
}
// Contains information about an archive rule.
type ArchiveRuleSummary struct {
_ struct{} `type:"structure"`
// The time at which the archive rule was created.
//
// CreatedAt is a required field
CreatedAt *time.Time `locationName:"createdAt" type:"timestamp" timestampFormat:"iso8601" required:"true"`
// A filter used to define the archive rule.
//
// Filter is a required field
Filter map[string]*Criterion `locationName:"filter" type:"map" required:"true"`
// The name of the archive rule.
//
// RuleName is a required field
RuleName *string `locationName:"ruleName" min:"1" type:"string" required:"true"`
// The time at which the archive rule was last updated.
//
// UpdatedAt is a required field
UpdatedAt *time.Time `locationName:"updatedAt" type:"timestamp" timestampFormat:"iso8601" required:"true"`
}
// String returns the string representation
func (s ArchiveRuleSummary) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s ArchiveRuleSummary) GoString() string {
return s.String()
}
// SetCreatedAt sets the CreatedAt field's value.
func (s *ArchiveRuleSummary) SetCreatedAt(v time.Time) *ArchiveRuleSummary {
s.CreatedAt = &v
return s
}
// SetFilter sets the Filter field's value.
func (s *ArchiveRuleSummary) SetFilter(v map[string]*Criterion) *ArchiveRuleSummary {
s.Filter = v
return s
}
// SetRuleName sets the RuleName field's value.
func (s *ArchiveRuleSummary) SetRuleName(v string) *ArchiveRuleSummary {
s.RuleName = &v
return s
}
// SetUpdatedAt sets the UpdatedAt field's value.
func (s *ArchiveRuleSummary) SetUpdatedAt(v time.Time) *ArchiveRuleSummary {
s.UpdatedAt = &v
return s
}
type CancelPolicyGenerationInput struct {
_ struct{} `type:"structure"`
// The JobId that is returned by the StartPolicyGeneration operation. The JobId
// can be used with GetGeneratedPolicy to retrieve the generated policies or
// used with CancelPolicyGeneration to cancel the policy generation request.
//
// JobId is a required field
JobId *string `location:"uri" locationName:"jobId" type:"string" required:"true"`
}
// String returns the string representation
func (s CancelPolicyGenerationInput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s CancelPolicyGenerationInput) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
func (s *CancelPolicyGenerationInput) Validate() error {
invalidParams := request.ErrInvalidParams{Context: "CancelPolicyGenerationInput"}
if s.JobId == nil {
invalidParams.Add(request.NewErrParamRequired("JobId"))
}
if s.JobId != nil && len(*s.JobId) < 1 {
invalidParams.Add(request.NewErrParamMinLen("JobId", 1))
}
if invalidParams.Len() > 0 {
return invalidParams
}
return nil
}
// SetJobId sets the JobId field's value.
func (s *CancelPolicyGenerationInput) SetJobId(v string) *CancelPolicyGenerationInput {
s.JobId = &v
return s
}
type CancelPolicyGenerationOutput struct {
_ struct{} `type:"structure"`
}
// String returns the string representation
func (s CancelPolicyGenerationOutput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s CancelPolicyGenerationOutput) GoString() string {
return s.String()
}
// Contains information about CloudTrail access.
type CloudTrailDetails struct {
_ struct{} `type:"structure"`
// The ARN of the service role that Access Analyzer uses to access your CloudTrail
// trail and service last accessed information.
//
// AccessRole is a required field
AccessRole *string `locationName:"accessRole" type:"string" required:"true"`
// The end of the time range for which Access Analyzer reviews your CloudTrail
// events. Events with a timestamp after this time are not considered to generate
// a policy. If this is not included in the request, the default value is the
// current time.
EndTime *time.Time `locationName:"endTime" type:"timestamp" timestampFormat:"iso8601"`
// The start of the time range for which Access Analyzer reviews your CloudTrail
// events. Events with a timestamp before this time are not considered to generate
// a policy.
//
// StartTime is a required field
StartTime *time.Time `locationName:"startTime" type:"timestamp" timestampFormat:"iso8601" required:"true"`
// A Trail object that contains settings for a trail.
//
// Trails is a required field
Trails []*Trail `locationName:"trails" type:"list" required:"true"`
}
// String returns the string representation
func (s CloudTrailDetails) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s CloudTrailDetails) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
func (s *CloudTrailDetails) Validate() error {
invalidParams := request.ErrInvalidParams{Context: "CloudTrailDetails"}
if s.AccessRole == nil {
invalidParams.Add(request.NewErrParamRequired("AccessRole"))
}
if s.StartTime == nil {
invalidParams.Add(request.NewErrParamRequired("StartTime"))
}
if s.Trails == nil {
invalidParams.Add(request.NewErrParamRequired("Trails"))
}
if s.Trails != nil {
for i, v := range s.Trails {
if v == nil {
continue
}
if err := v.Validate(); err != nil {
invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Trails", i), err.(request.ErrInvalidParams))
}
}
}
if invalidParams.Len() > 0 {
return invalidParams
}
return nil
}
// SetAccessRole sets the AccessRole field's value.
func (s *CloudTrailDetails) SetAccessRole(v string) *CloudTrailDetails {
s.AccessRole = &v
return s
}
// SetEndTime sets the EndTime field's value.
func (s *CloudTrailDetails) SetEndTime(v time.Time) *CloudTrailDetails {
s.EndTime = &v
return s
}
// SetStartTime sets the StartTime field's value.
func (s *CloudTrailDetails) SetStartTime(v time.Time) *CloudTrailDetails {
s.StartTime = &v
return s
}
// SetTrails sets the Trails field's value.
func (s *CloudTrailDetails) SetTrails(v []*Trail) *CloudTrailDetails {
s.Trails = v
return s
}
// Contains information about CloudTrail access.
type CloudTrailProperties struct {
_ struct{} `type:"structure"`
// The end of the time range for which Access Analyzer reviews your CloudTrail
// events. Events with a timestamp after this time are not considered to generate
// a policy. If this is not included in the request, the default value is the
// current time.
//
// EndTime is a required field
EndTime *time.Time `locationName:"endTime" type:"timestamp" timestampFormat:"iso8601" required:"true"`
// The start of the time range for which Access Analyzer reviews your CloudTrail
// events. Events with a timestamp before this time are not considered to generate
// a policy.
//
// StartTime is a required field
StartTime *time.Time `locationName:"startTime" type:"timestamp" timestampFormat:"iso8601" required:"true"`
// A TrailProperties object that contains settings for trail properties.
//
// TrailProperties is a required field
TrailProperties []*TrailProperties `locationName:"trailProperties" type:"list" required:"true"`
}
// String returns the string representation
func (s CloudTrailProperties) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s CloudTrailProperties) GoString() string {
return s.String()
}
// SetEndTime sets the EndTime field's value.
func (s *CloudTrailProperties) SetEndTime(v time.Time) *CloudTrailProperties {
s.EndTime = &v
return s
}
// SetStartTime sets the StartTime field's value.
func (s *CloudTrailProperties) SetStartTime(v time.Time) *CloudTrailProperties {
s.StartTime = &v
return s
}
// SetTrailProperties sets the TrailProperties field's value.
func (s *CloudTrailProperties) SetTrailProperties(v []*TrailProperties) *CloudTrailProperties {
s.TrailProperties = v
return s
}
// Access control configuration structures for your resource. You specify the
// configuration as a type-value pair. You can specify only one type of access
// control configuration.
type Configuration struct {
_ struct{} `type:"structure"`
// The access control configuration is for an IAM role.
IamRole *IamRoleConfiguration `locationName:"iamRole" type:"structure"`
// The access control configuration is for a KMS key.
KmsKey *KmsKeyConfiguration `locationName:"kmsKey" type:"structure"`
// The access control configuration is for an Amazon S3 Bucket.
S3Bucket *S3BucketConfiguration `locationName:"s3Bucket" type:"structure"`
// The access control configuration is for a Secrets Manager secret.
SecretsManagerSecret *SecretsManagerSecretConfiguration `locationName:"secretsManagerSecret" type:"structure"`
// The access control configuration is for an SQS queue.
SqsQueue *SqsQueueConfiguration `locationName:"sqsQueue" type:"structure"`
}
// String returns the string representation
func (s Configuration) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s Configuration) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
func (s *Configuration) Validate() error {
invalidParams := request.ErrInvalidParams{Context: "Configuration"}
if s.KmsKey != nil {
if err := s.KmsKey.Validate(); err != nil {
invalidParams.AddNested("KmsKey", err.(request.ErrInvalidParams))
}
}
if s.S3Bucket != nil {
if err := s.S3Bucket.Validate(); err != nil {
invalidParams.AddNested("S3Bucket", err.(request.ErrInvalidParams))
}
}
if invalidParams.Len() > 0 {
return invalidParams
}
return nil
}
// SetIamRole sets the IamRole field's value.
func (s *Configuration) SetIamRole(v *IamRoleConfiguration) *Configuration {
s.IamRole = v
return s
}
// SetKmsKey sets the KmsKey field's value.
func (s *Configuration) SetKmsKey(v *KmsKeyConfiguration) *Configuration {
s.KmsKey = v
return s
}
// SetS3Bucket sets the S3Bucket field's value.
func (s *Configuration) SetS3Bucket(v *S3BucketConfiguration) *Configuration {
s.S3Bucket = v
return s
}
// SetSecretsManagerSecret sets the SecretsManagerSecret field's value.
func (s *Configuration) SetSecretsManagerSecret(v *SecretsManagerSecretConfiguration) *Configuration {
s.SecretsManagerSecret = v
return s
}
// SetSqsQueue sets the SqsQueue field's value.
func (s *Configuration) SetSqsQueue(v *SqsQueueConfiguration) *Configuration {
s.SqsQueue = v
return s
}
// A conflict exception error.
type ConflictException struct {
_ struct{} `type:"structure"`
RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
// The ID of the resource.
//
// ResourceId is a required field
ResourceId *string `locationName:"resourceId" type:"string" required:"true"`
// The resource type.
//
// ResourceType is a required field
ResourceType *string `locationName:"resourceType" type:"string" required:"true"`
}
// String returns the string representation
func (s ConflictException) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s ConflictException) GoString() string {
return s.String()
}
func newErrorConflictException(v protocol.ResponseMetadata) error {
return &ConflictException{
RespMetadata: v,
}
}
// Code returns the exception type name.
func (s *ConflictException) Code() string {
return "ConflictException"
}
// Message returns the exception's message.
func (s *ConflictException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
return ""
}
// OrigErr always returns nil, satisfies awserr.Error interface.
func (s *ConflictException) OrigErr() error {
return nil
}
func (s *ConflictException) Error() string {
return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String())
}
// Status code returns the HTTP status code for the request's response error.
func (s *ConflictException) StatusCode() int {
return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
func (s *ConflictException) RequestID() string {
return s.RespMetadata.RequestID
}
type CreateAccessPreviewInput struct {
_ struct{} `type:"structure"`
// The ARN of the account analyzer (https://docs.aws.amazon.com/IAM/latest/UserGuide/access-analyzer-getting-started.html#permission-resources)
// used to generate the access preview. You can only create an access preview
// for analyzers with an Account type and Active status.
//
// AnalyzerArn is a required field
AnalyzerArn *string `locationName:"analyzerArn" type:"string" required:"true"`
// A client token.
ClientToken *string `locationName:"clientToken" type:"string" idempotencyToken:"true"`
// Access control configuration for your resource that is used to generate the
// access preview. The access preview includes findings for external access
// allowed to the resource with the proposed access control configuration. The
// configuration must contain exactly one element.
//
// Configurations is a required field
Configurations map[string]*Configuration `locationName:"configurations" type:"map" required:"true"`
}
// String returns the string representation
func (s CreateAccessPreviewInput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s CreateAccessPreviewInput) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
func (s *CreateAccessPreviewInput) Validate() error {
invalidParams := request.ErrInvalidParams{Context: "CreateAccessPreviewInput"}
if s.AnalyzerArn == nil {
invalidParams.Add(request.NewErrParamRequired("AnalyzerArn"))
}
if s.Configurations == nil {
invalidParams.Add(request.NewErrParamRequired("Configurations"))
}
if s.Configurations != nil {
for i, v := range s.Configurations {
if v == nil {
continue
}
if err := v.Validate(); err != nil {
invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Configurations", i), err.(request.ErrInvalidParams))
}
}
}
if invalidParams.Len() > 0 {
return invalidParams
}
return nil
}
// SetAnalyzerArn sets the AnalyzerArn field's value.
func (s *CreateAccessPreviewInput) SetAnalyzerArn(v string) *CreateAccessPreviewInput {
s.AnalyzerArn = &v
return s
}
// SetClientToken sets the ClientToken field's value.
func (s *CreateAccessPreviewInput) SetClientToken(v string) *CreateAccessPreviewInput {
s.ClientToken = &v
return s
}
// SetConfigurations sets the Configurations field's value.
func (s *CreateAccessPreviewInput) SetConfigurations(v map[string]*Configuration) *CreateAccessPreviewInput {
s.Configurations = v
return s
}
type CreateAccessPreviewOutput struct {
_ struct{} `type:"structure"`
// The unique ID for the access preview.
//
// Id is a required field
Id *string `locationName:"id" type:"string" required:"true"`
}
// String returns the string representation
func (s CreateAccessPreviewOutput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s CreateAccessPreviewOutput) GoString() string {
return s.String()
}
// SetId sets the Id field's value.
func (s *CreateAccessPreviewOutput) SetId(v string) *CreateAccessPreviewOutput {
s.Id = &v
return s
}
// Creates an analyzer.
type CreateAnalyzerInput struct {
_ struct{} `type:"structure"`
// The name of the analyzer to create.
//
// AnalyzerName is a required field
AnalyzerName *string `locationName:"analyzerName" min:"1" type:"string" required:"true"`
// Specifies the archive rules to add for the analyzer. Archive rules automatically
// archive findings that meet the criteria you define for the rule.
ArchiveRules []*InlineArchiveRule `locationName:"archiveRules" type:"list"`
// A client token.
ClientToken *string `locationName:"clientToken" type:"string" idempotencyToken:"true"`
// The tags to apply to the analyzer.
Tags map[string]*string `locationName:"tags" type:"map"`
// The type of analyzer to create. Only ACCOUNT and ORGANIZATION analyzers are
// supported. You can create only one analyzer per account per Region. You can
// create up to 5 analyzers per organization per Region.
//
// Type is a required field
Type *string `locationName:"type" type:"string" required:"true" enum:"Type"`
}
// String returns the string representation
func (s CreateAnalyzerInput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s CreateAnalyzerInput) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
func (s *CreateAnalyzerInput) Validate() error {
invalidParams := request.ErrInvalidParams{Context: "CreateAnalyzerInput"}
if s.AnalyzerName == nil {
invalidParams.Add(request.NewErrParamRequired("AnalyzerName"))
}
if s.AnalyzerName != nil && len(*s.AnalyzerName) < 1 {
invalidParams.Add(request.NewErrParamMinLen("AnalyzerName", 1))
}
if s.Type == nil {
invalidParams.Add(request.NewErrParamRequired("Type"))
}
if s.ArchiveRules != nil {
for i, v := range s.ArchiveRules {
if v == nil {
continue
}
if err := v.Validate(); err != nil {
invalidParams.AddNested(fmt.Sprintf("%s[%v]", "ArchiveRules", i), err.(request.ErrInvalidParams))
}
}
}
if invalidParams.Len() > 0 {
return invalidParams
}
return nil
}
// SetAnalyzerName sets the AnalyzerName field's value.
func (s *CreateAnalyzerInput) SetAnalyzerName(v string) *CreateAnalyzerInput {
s.AnalyzerName = &v
return s
}
// SetArchiveRules sets the ArchiveRules field's value.
func (s *CreateAnalyzerInput) SetArchiveRules(v []*InlineArchiveRule) *CreateAnalyzerInput {
s.ArchiveRules = v
return s
}
// SetClientToken sets the ClientToken field's value.
func (s *CreateAnalyzerInput) SetClientToken(v string) *CreateAnalyzerInput {
s.ClientToken = &v
return s
}
// SetTags sets the Tags field's value.
func (s *CreateAnalyzerInput) SetTags(v map[string]*string) *CreateAnalyzerInput {
s.Tags = v
return s
}
// SetType sets the Type field's value.
func (s *CreateAnalyzerInput) SetType(v string) *CreateAnalyzerInput {
s.Type = &v
return s
}
// The response to the request to create an analyzer.
type CreateAnalyzerOutput struct {
_ struct{} `type:"structure"`
// The ARN of the analyzer that was created by the request.
Arn *string `locationName:"arn" type:"string"`
}
// String returns the string representation
func (s CreateAnalyzerOutput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s CreateAnalyzerOutput) GoString() string {
return s.String()
}
// SetArn sets the Arn field's value.
func (s *CreateAnalyzerOutput) SetArn(v string) *CreateAnalyzerOutput {
s.Arn = &v
return s
}
// Creates an archive rule.
type CreateArchiveRuleInput struct {
_ struct{} `type:"structure"`
// The name of the created analyzer.
//
// AnalyzerName is a required field
AnalyzerName *string `location:"uri" locationName:"analyzerName" min:"1" type:"string" required:"true"`
// A client token.
ClientToken *string `locationName:"clientToken" type:"string" idempotencyToken:"true"`
// The criteria for the rule.
//
// Filter is a required field
Filter map[string]*Criterion `locationName:"filter" type:"map" required:"true"`
// The name of the rule to create.
//
// RuleName is a required field
RuleName *string `locationName:"ruleName" min:"1" type:"string" required:"true"`
}
// String returns the string representation
func (s CreateArchiveRuleInput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s CreateArchiveRuleInput) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
func (s *CreateArchiveRuleInput) Validate() error {
invalidParams := request.ErrInvalidParams{Context: "CreateArchiveRuleInput"}
if s.AnalyzerName == nil {
invalidParams.Add(request.NewErrParamRequired("AnalyzerName"))
}
if s.AnalyzerName != nil && len(*s.AnalyzerName) < 1 {
invalidParams.Add(request.NewErrParamMinLen("AnalyzerName", 1))
}
if s.Filter == nil {
invalidParams.Add(request.NewErrParamRequired("Filter"))
}
if s.RuleName == nil {
invalidParams.Add(request.NewErrParamRequired("RuleName"))
}
if s.RuleName != nil && len(*s.RuleName) < 1 {
invalidParams.Add(request.NewErrParamMinLen("RuleName", 1))
}
if s.Filter != nil {
for i, v := range s.Filter {
if v == nil {
continue
}
if err := v.Validate(); err != nil {
invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Filter", i), err.(request.ErrInvalidParams))
}
}
}
if invalidParams.Len() > 0 {
return invalidParams
}
return nil
}
// SetAnalyzerName sets the AnalyzerName field's value.
func (s *CreateArchiveRuleInput) SetAnalyzerName(v string) *CreateArchiveRuleInput {
s.AnalyzerName = &v
return s
}
// SetClientToken sets the ClientToken field's value.
func (s *CreateArchiveRuleInput) SetClientToken(v string) *CreateArchiveRuleInput {
s.ClientToken = &v
return s
}
// SetFilter sets the Filter field's value.
func (s *CreateArchiveRuleInput) SetFilter(v map[string]*Criterion) *CreateArchiveRuleInput {
s.Filter = v
return s
}
// SetRuleName sets the RuleName field's value.
func (s *CreateArchiveRuleInput) SetRuleName(v string) *CreateArchiveRuleInput {
s.RuleName = &v
return s
}
type CreateArchiveRuleOutput struct {
_ struct{} `type:"structure"`
}
// String returns the string representation
func (s CreateArchiveRuleOutput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s CreateArchiveRuleOutput) GoString() string {
return s.String()
}
// The criteria to use in the filter that defines the archive rule.
type Criterion struct {
_ struct{} `type:"structure"`
// A "contains" operator to match for the filter used to create the rule.
Contains []*string `locationName:"contains" min:"1" type:"list"`
// An "equals" operator to match for the filter used to create the rule.
Eq []*string `locationName:"eq" min:"1" type:"list"`
// An "exists" operator to match for the filter used to create the rule.
Exists *bool `locationName:"exists" type:"boolean"`
// A "not equals" operator to match for the filter used to create the rule.
Neq []*string `locationName:"neq" min:"1" type:"list"`
}
// String returns the string representation
func (s Criterion) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s Criterion) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
func (s *Criterion) Validate() error {
invalidParams := request.ErrInvalidParams{Context: "Criterion"}
if s.Contains != nil && len(s.Contains) < 1 {
invalidParams.Add(request.NewErrParamMinLen("Contains", 1))
}
if s.Eq != nil && len(s.Eq) < 1 {
invalidParams.Add(request.NewErrParamMinLen("Eq", 1))
}
if s.Neq != nil && len(s.Neq) < 1 {
invalidParams.Add(request.NewErrParamMinLen("Neq", 1))
}
if invalidParams.Len() > 0 {
return invalidParams
}
return nil
}
// SetContains sets the Contains field's value.
func (s *Criterion) SetContains(v []*string) *Criterion {
s.Contains = v
return s
}
// SetEq sets the Eq field's value.
func (s *Criterion) SetEq(v []*string) *Criterion {
s.Eq = v
return s
}
// SetExists sets the Exists field's value.
func (s *Criterion) SetExists(v bool) *Criterion {
s.Exists = &v
return s
}
// SetNeq sets the Neq field's value.
func (s *Criterion) SetNeq(v []*string) *Criterion {
s.Neq = v
return s
}
// Deletes an analyzer.
type DeleteAnalyzerInput struct {
_ struct{} `type:"structure"`
// The name of the analyzer to delete.
//
// AnalyzerName is a required field
AnalyzerName *string `location:"uri" locationName:"analyzerName" min:"1" type:"string" required:"true"`
// A client token.
ClientToken *string `location:"querystring" locationName:"clientToken" type:"string" idempotencyToken:"true"`
}
// String returns the string representation
func (s DeleteAnalyzerInput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s DeleteAnalyzerInput) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
func (s *DeleteAnalyzerInput) Validate() error {
invalidParams := request.ErrInvalidParams{Context: "DeleteAnalyzerInput"}
if s.AnalyzerName == nil {
invalidParams.Add(request.NewErrParamRequired("AnalyzerName"))
}
if s.AnalyzerName != nil && len(*s.AnalyzerName) < 1 {
invalidParams.Add(request.NewErrParamMinLen("AnalyzerName", 1))
}
if invalidParams.Len() > 0 {
return invalidParams
}
return nil
}
// SetAnalyzerName sets the AnalyzerName field's value.
func (s *DeleteAnalyzerInput) SetAnalyzerName(v string) *DeleteAnalyzerInput {
s.AnalyzerName = &v
return s
}
// SetClientToken sets the ClientToken field's value.
func (s *DeleteAnalyzerInput) SetClientToken(v string) *DeleteAnalyzerInput {
s.ClientToken = &v
return s
}
type DeleteAnalyzerOutput struct {
_ struct{} `type:"structure"`
}
// String returns the string representation
func (s DeleteAnalyzerOutput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s DeleteAnalyzerOutput) GoString() string {
return s.String()
}
// Deletes an archive rule.
type DeleteArchiveRuleInput struct {
_ struct{} `type:"structure"`
// The name of the analyzer that associated with the archive rule to delete.
//
// AnalyzerName is a required field
AnalyzerName *string `location:"uri" locationName:"analyzerName" min:"1" type:"string" required:"true"`
// A client token.
ClientToken *string `location:"querystring" locationName:"clientToken" type:"string" idempotencyToken:"true"`
// The name of the rule to delete.
//
// RuleName is a required field
RuleName *string `location:"uri" locationName:"ruleName" min:"1" type:"string" required:"true"`
}
// String returns the string representation
func (s DeleteArchiveRuleInput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s DeleteArchiveRuleInput) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
func (s *DeleteArchiveRuleInput) Validate() error {
invalidParams := request.ErrInvalidParams{Context: "DeleteArchiveRuleInput"}
if s.AnalyzerName == nil {
invalidParams.Add(request.NewErrParamRequired("AnalyzerName"))
}
if s.AnalyzerName != nil && len(*s.AnalyzerName) < 1 {
invalidParams.Add(request.NewErrParamMinLen("AnalyzerName", 1))
}
if s.RuleName == nil {
invalidParams.Add(request.NewErrParamRequired("RuleName"))
}
if s.RuleName != nil && len(*s.RuleName) < 1 {
invalidParams.Add(request.NewErrParamMinLen("RuleName", 1))
}
if invalidParams.Len() > 0 {
return invalidParams
}
return nil
}
// SetAnalyzerName sets the AnalyzerName field's value.
func (s *DeleteArchiveRuleInput) SetAnalyzerName(v string) *DeleteArchiveRuleInput {
s.AnalyzerName = &v
return s
}
// SetClientToken sets the ClientToken field's value.
func (s *DeleteArchiveRuleInput) SetClientToken(v string) *DeleteArchiveRuleInput {
s.ClientToken = &v
return s
}
// SetRuleName sets the RuleName field's value.
func (s *DeleteArchiveRuleInput) SetRuleName(v string) *DeleteArchiveRuleInput {
s.RuleName = &v
return s
}
type DeleteArchiveRuleOutput struct {
_ struct{} `type:"structure"`
}
// String returns the string representation
func (s DeleteArchiveRuleOutput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s DeleteArchiveRuleOutput) GoString() string {
return s.String()
}
// Contains information about a finding.
type Finding struct {
_ struct{} `type:"structure"`
// The action in the analyzed policy statement that an external principal has
// permission to use.
Action []*string `locationName:"action" type:"list"`
// The time at which the resource was analyzed.
//
// AnalyzedAt is a required field
AnalyzedAt *time.Time `locationName:"analyzedAt" type:"timestamp" timestampFormat:"iso8601" required:"true"`
// The condition in the analyzed policy statement that resulted in a finding.
//
// Condition is a required field
Condition map[string]*string `locationName:"condition" type:"map" required:"true"`
// The time at which the finding was generated.
//
// CreatedAt is a required field
CreatedAt *time.Time `locationName:"createdAt" type:"timestamp" timestampFormat:"iso8601" required:"true"`
// An error.
Error *string `locationName:"error" type:"string"`
// The ID of the finding.
//
// Id is a required field
Id *string `locationName:"id" type:"string" required:"true"`
// Indicates whether the policy that generated the finding allows public access
// to the resource.
IsPublic *bool `locationName:"isPublic" type:"boolean"`
// The external principal that access to a resource within the zone of trust.
Principal map[string]*string `locationName:"principal" type:"map"`
// The resource that an external principal has access to.
Resource *string `locationName:"resource" type:"string"`
// The AWS account ID that owns the resource.
//
// ResourceOwnerAccount is a required field
ResourceOwnerAccount *string `locationName:"resourceOwnerAccount" type:"string" required:"true"`
// The type of the resource identified in the finding.
//
// ResourceType is a required field
ResourceType *string `locationName:"resourceType" type:"string" required:"true" enum:"ResourceType"`
// The sources of the finding. This indicates how the access that generated
// the finding is granted. It is populated for Amazon S3 bucket findings.
Sources []*FindingSource `locationName:"sources" type:"list"`
// The current status of the finding.
//
// Status is a required field
Status *string `locationName:"status" type:"string" required:"true" enum:"FindingStatus"`
// The time at which the finding was updated.
//
// UpdatedAt is a required field
UpdatedAt *time.Time `locationName:"updatedAt" type:"timestamp" timestampFormat:"iso8601" required:"true"`
}
// String returns the string representation
func (s Finding) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s Finding) GoString() string {
return s.String()
}
// SetAction sets the Action field's value.
func (s *Finding) SetAction(v []*string) *Finding {
s.Action = v
return s
}
// SetAnalyzedAt sets the AnalyzedAt field's value.
func (s *Finding) SetAnalyzedAt(v time.Time) *Finding {
s.AnalyzedAt = &v
return s
}
// SetCondition sets the Condition field's value.
func (s *Finding) SetCondition(v map[string]*string) *Finding {
s.Condition = v
return s
}
// SetCreatedAt sets the CreatedAt field's value.
func (s *Finding) SetCreatedAt(v time.Time) *Finding {
s.CreatedAt = &v
return s
}
// SetError sets the Error field's value.
func (s *Finding) SetError(v string) *Finding {
s.Error = &v
return s
}
// SetId sets the Id field's value.
func (s *Finding) SetId(v string) *Finding {
s.Id = &v
return s
}
// SetIsPublic sets the IsPublic field's value.
func (s *Finding) SetIsPublic(v bool) *Finding {
s.IsPublic = &v
return s
}
// SetPrincipal sets the Principal field's value.
func (s *Finding) SetPrincipal(v map[string]*string) *Finding {
s.Principal = v
return s
}
// SetResource sets the Resource field's value.
func (s *Finding) SetResource(v string) *Finding {
s.Resource = &v
return s
}
// SetResourceOwnerAccount sets the ResourceOwnerAccount field's value.
func (s *Finding) SetResourceOwnerAccount(v string) *Finding {
s.ResourceOwnerAccount = &v
return s
}
// SetResourceType sets the ResourceType field's value.
func (s *Finding) SetResourceType(v string) *Finding {
s.ResourceType = &v
return s
}
// SetSources sets the Sources field's value.
func (s *Finding) SetSources(v []*FindingSource) *Finding {
s.Sources = v
return s
}
// SetStatus sets the Status field's value.
func (s *Finding) SetStatus(v string) *Finding {
s.Status = &v
return s
}
// SetUpdatedAt sets the UpdatedAt field's value.
func (s *Finding) SetUpdatedAt(v time.Time) *Finding {
s.UpdatedAt = &v
return s
}
// The source of the finding. This indicates how the access that generated the
// finding is granted. It is populated for Amazon S3 bucket findings.
type FindingSource struct {
_ struct{} `type:"structure"`
// Includes details about how the access that generated the finding is granted.
// This is populated for Amazon S3 bucket findings.
Detail *FindingSourceDetail `locationName:"detail" type:"structure"`
// Indicates the type of access that generated the finding.
//
// Type is a required field
Type *string `locationName:"type" type:"string" required:"true" enum:"FindingSourceType"`
}
// String returns the string representation
func (s FindingSource) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s FindingSource) GoString() string {
return s.String()
}
// SetDetail sets the Detail field's value.
func (s *FindingSource) SetDetail(v *FindingSourceDetail) *FindingSource {
s.Detail = v
return s
}
// SetType sets the Type field's value.
func (s *FindingSource) SetType(v string) *FindingSource {
s.Type = &v
return s
}
// Includes details about how the access that generated the finding is granted.
// This is populated for Amazon S3 bucket findings.
type FindingSourceDetail struct {
_ struct{} `type:"structure"`
// The ARN of the access point that generated the finding.
AccessPointArn *string `locationName:"accessPointArn" type:"string"`
}
// String returns the string representation
func (s FindingSourceDetail) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s FindingSourceDetail) GoString() string {
return s.String()
}
// SetAccessPointArn sets the AccessPointArn field's value.
func (s *FindingSourceDetail) SetAccessPointArn(v string) *FindingSourceDetail {
s.AccessPointArn = &v
return s
}
// Contains information about a finding.
type FindingSummary struct {
_ struct{} `type:"structure"`
// The action in the analyzed policy statement that an external principal has
// permission to use.
Action []*string `locationName:"action" type:"list"`
// The time at which the resource-based policy that generated the finding was
// analyzed.
//
// AnalyzedAt is a required field
AnalyzedAt *time.Time `locationName:"analyzedAt" type:"timestamp" timestampFormat:"iso8601" required:"true"`
// The condition in the analyzed policy statement that resulted in a finding.
//
// Condition is a required field
Condition map[string]*string `locationName:"condition" type:"map" required:"true"`
// The time at which the finding was created.
//
// CreatedAt is a required field
CreatedAt *time.Time `locationName:"createdAt" type:"timestamp" timestampFormat:"iso8601" required:"true"`
// The error that resulted in an Error finding.
Error *string `locationName:"error" type:"string"`
// The ID of the finding.
//
// Id is a required field
Id *string `locationName:"id" type:"string" required:"true"`
// Indicates whether the finding reports a resource that has a policy that allows
// public access.
IsPublic *bool `locationName:"isPublic" type:"boolean"`
// The external principal that has access to a resource within the zone of trust.
Principal map[string]*string `locationName:"principal" type:"map"`
// The resource that the external principal has access to.
Resource *string `locationName:"resource" type:"string"`
// The AWS account ID that owns the resource.
//
// ResourceOwnerAccount is a required field
ResourceOwnerAccount *string `locationName:"resourceOwnerAccount" type:"string" required:"true"`
// The type of the resource that the external principal has access to.
//
// ResourceType is a required field
ResourceType *string `locationName:"resourceType" type:"string" required:"true" enum:"ResourceType"`
// The sources of the finding. This indicates how the access that generated
// the finding is granted. It is populated for Amazon S3 bucket findings.
Sources []*FindingSource `locationName:"sources" type:"list"`
// The status of the finding.
//
// Status is a required field
Status *string `locationName:"status" type:"string" required:"true" enum:"FindingStatus"`
// The time at which the finding was most recently updated.
//
// UpdatedAt is a required field
UpdatedAt *time.Time `locationName:"updatedAt" type:"timestamp" timestampFormat:"iso8601" required:"true"`
}
// String returns the string representation
func (s FindingSummary) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s FindingSummary) GoString() string {
return s.String()
}
// SetAction sets the Action field's value.
func (s *FindingSummary) SetAction(v []*string) *FindingSummary {
s.Action = v
return s
}
// SetAnalyzedAt sets the AnalyzedAt field's value.
func (s *FindingSummary) SetAnalyzedAt(v time.Time) *FindingSummary {
s.AnalyzedAt = &v
return s
}
// SetCondition sets the Condition field's value.
func (s *FindingSummary) SetCondition(v map[string]*string) *FindingSummary {
s.Condition = v
return s
}
// SetCreatedAt sets the CreatedAt field's value.
func (s *FindingSummary) SetCreatedAt(v time.Time) *FindingSummary {
s.CreatedAt = &v
return s
}
// SetError sets the Error field's value.
func (s *FindingSummary) SetError(v string) *FindingSummary {
s.Error = &v
return s
}
// SetId sets the Id field's value.
func (s *FindingSummary) SetId(v string) *FindingSummary {
s.Id = &v
return s
}
// SetIsPublic sets the IsPublic field's value.
func (s *FindingSummary) SetIsPublic(v bool) *FindingSummary {
s.IsPublic = &v
return s
}
// SetPrincipal sets the Principal field's value.
func (s *FindingSummary) SetPrincipal(v map[string]*string) *FindingSummary {
s.Principal = v
return s
}
// SetResource sets the Resource field's value.
func (s *FindingSummary) SetResource(v string) *FindingSummary {
s.Resource = &v
return s
}
// SetResourceOwnerAccount sets the ResourceOwnerAccount field's value.
func (s *FindingSummary) SetResourceOwnerAccount(v string) *FindingSummary {
s.ResourceOwnerAccount = &v
return s
}
// SetResourceType sets the ResourceType field's value.
func (s *FindingSummary) SetResourceType(v string) *FindingSummary {
s.ResourceType = &v
return s
}
// SetSources sets the Sources field's value.
func (s *FindingSummary) SetSources(v []*FindingSource) *FindingSummary {
s.Sources = v
return s
}
// SetStatus sets the Status field's value.
func (s *FindingSummary) SetStatus(v string) *FindingSummary {
s.Status = &v
return s
}
// SetUpdatedAt sets the UpdatedAt field's value.
func (s *FindingSummary) SetUpdatedAt(v time.Time) *FindingSummary {
s.UpdatedAt = &v
return s
}
// Contains the text for the generated policy.
type GeneratedPolicy struct {
_ struct{} `type:"structure"`
// The text to use as the content for the new policy. The policy is created
// using the CreatePolicy (https://docs.aws.amazon.com/IAM/latest/APIReference/API_CreatePolicy.html)
// action.
//
// Policy is a required field
Policy *string `locationName:"policy" type:"string" required:"true"`
}
// String returns the string representation
func (s GeneratedPolicy) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s GeneratedPolicy) GoString() string {
return s.String()
}
// SetPolicy sets the Policy field's value.
func (s *GeneratedPolicy) SetPolicy(v string) *GeneratedPolicy {
s.Policy = &v
return s
}
// Contains the generated policy details.
type GeneratedPolicyProperties struct {
_ struct{} `type:"structure"`
// Lists details about the Trail used to generated policy.
CloudTrailProperties *CloudTrailProperties `locationName:"cloudTrailProperties" type:"structure"`
// This value is set to true if the generated policy contains all possible actions
// for a service that Access Analyzer identified from the CloudTrail trail that
// you specified, and false otherwise.
IsComplete *bool `locationName:"isComplete" type:"boolean"`
// The ARN of the IAM entity (user or role) for which you are generating a policy.
//
// PrincipalArn is a required field
PrincipalArn *string `locationName:"principalArn" type:"string" required:"true"`
}
// String returns the string representation
func (s GeneratedPolicyProperties) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s GeneratedPolicyProperties) GoString() string {
return s.String()
}
// SetCloudTrailProperties sets the CloudTrailProperties field's value.
func (s *GeneratedPolicyProperties) SetCloudTrailProperties(v *CloudTrailProperties) *GeneratedPolicyProperties {
s.CloudTrailProperties = v
return s
}
// SetIsComplete sets the IsComplete field's value.
func (s *GeneratedPolicyProperties) SetIsComplete(v bool) *GeneratedPolicyProperties {
s.IsComplete = &v
return s
}
// SetPrincipalArn sets the PrincipalArn field's value.
func (s *GeneratedPolicyProperties) SetPrincipalArn(v string) *GeneratedPolicyProperties {
s.PrincipalArn = &v
return s
}
// Contains the text for the generated policy and its details.
type GeneratedPolicyResult struct {
_ struct{} `type:"structure"`
// The text to use as the content for the new policy. The policy is created
// using the CreatePolicy (https://docs.aws.amazon.com/IAM/latest/APIReference/API_CreatePolicy.html)
// action.
GeneratedPolicies []*GeneratedPolicy `locationName:"generatedPolicies" type:"list"`
// A GeneratedPolicyProperties object that contains properties of the generated
// policy.
//
// Properties is a required field
Properties *GeneratedPolicyProperties `locationName:"properties" type:"structure" required:"true"`
}
// String returns the string representation
func (s GeneratedPolicyResult) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s GeneratedPolicyResult) GoString() string {
return s.String()
}
// SetGeneratedPolicies sets the GeneratedPolicies field's value.
func (s *GeneratedPolicyResult) SetGeneratedPolicies(v []*GeneratedPolicy) *GeneratedPolicyResult {
s.GeneratedPolicies = v
return s
}
// SetProperties sets the Properties field's value.
func (s *GeneratedPolicyResult) SetProperties(v *GeneratedPolicyProperties) *GeneratedPolicyResult {
s.Properties = v
return s
}
type GetAccessPreviewInput struct {
_ struct{} `type:"structure"`
// The unique ID for the access preview.
//
// AccessPreviewId is a required field
AccessPreviewId *string `location:"uri" locationName:"accessPreviewId" type:"string" required:"true"`
// The ARN of the analyzer (https://docs.aws.amazon.com/IAM/latest/UserGuide/access-analyzer-getting-started.html#permission-resources)
// used to generate the access preview.
//
// AnalyzerArn is a required field
AnalyzerArn *string `location:"querystring" locationName:"analyzerArn" type:"string" required:"true"`
}
// String returns the string representation
func (s GetAccessPreviewInput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s GetAccessPreviewInput) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
func (s *GetAccessPreviewInput) Validate() error {
invalidParams := request.ErrInvalidParams{Context: "GetAccessPreviewInput"}
if s.AccessPreviewId == nil {
invalidParams.Add(request.NewErrParamRequired("AccessPreviewId"))
}
if s.AccessPreviewId != nil && len(*s.AccessPreviewId) < 1 {
invalidParams.Add(request.NewErrParamMinLen("AccessPreviewId", 1))
}
if s.AnalyzerArn == nil {
invalidParams.Add(request.NewErrParamRequired("AnalyzerArn"))
}
if invalidParams.Len() > 0 {
return invalidParams
}
return nil
}
// SetAccessPreviewId sets the AccessPreviewId field's value.
func (s *GetAccessPreviewInput) SetAccessPreviewId(v string) *GetAccessPreviewInput {
s.AccessPreviewId = &v
return s
}
// SetAnalyzerArn sets the AnalyzerArn field's value.
func (s *GetAccessPreviewInput) SetAnalyzerArn(v string) *GetAccessPreviewInput {
s.AnalyzerArn = &v
return s
}
type GetAccessPreviewOutput struct {
_ struct{} `type:"structure"`
// An object that contains information about the access preview.
//
// AccessPreview is a required field
AccessPreview *AccessPreview `locationName:"accessPreview" type:"structure" required:"true"`
}
// String returns the string representation
func (s GetAccessPreviewOutput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s GetAccessPreviewOutput) GoString() string {
return s.String()
}
// SetAccessPreview sets the AccessPreview field's value.
func (s *GetAccessPreviewOutput) SetAccessPreview(v *AccessPreview) *GetAccessPreviewOutput {
s.AccessPreview = v
return s
}
// Retrieves an analyzed resource.
type GetAnalyzedResourceInput struct {
_ struct{} `type:"structure"`
// The ARN of the analyzer (https://docs.aws.amazon.com/IAM/latest/UserGuide/access-analyzer-getting-started.html#permission-resources)
// to retrieve information from.
//
// AnalyzerArn is a required field
AnalyzerArn *string `location:"querystring" locationName:"analyzerArn" type:"string" required:"true"`
// The ARN of the resource to retrieve information about.
//
// ResourceArn is a required field
ResourceArn *string `location:"querystring" locationName:"resourceArn" type:"string" required:"true"`
}
// String returns the string representation
func (s GetAnalyzedResourceInput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s GetAnalyzedResourceInput) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
func (s *GetAnalyzedResourceInput) Validate() error {
invalidParams := request.ErrInvalidParams{Context: "GetAnalyzedResourceInput"}
if s.AnalyzerArn == nil {
invalidParams.Add(request.NewErrParamRequired("AnalyzerArn"))
}
if s.ResourceArn == nil {
invalidParams.Add(request.NewErrParamRequired("ResourceArn"))
}
if invalidParams.Len() > 0 {
return invalidParams
}
return nil
}
// SetAnalyzerArn sets the AnalyzerArn field's value.
func (s *GetAnalyzedResourceInput) SetAnalyzerArn(v string) *GetAnalyzedResourceInput {
s.AnalyzerArn = &v
return s
}
// SetResourceArn sets the ResourceArn field's value.
func (s *GetAnalyzedResourceInput) SetResourceArn(v string) *GetAnalyzedResourceInput {
s.ResourceArn = &v
return s
}
// The response to the request.
type GetAnalyzedResourceOutput struct {
_ struct{} `type:"structure"`
// An AnalyzedResource object that contains information that Access Analyzer
// found when it analyzed the resource.
Resource *AnalyzedResource `locationName:"resource" type:"structure"`
}
// String returns the string representation
func (s GetAnalyzedResourceOutput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s GetAnalyzedResourceOutput) GoString() string {
return s.String()
}
// SetResource sets the Resource field's value.
func (s *GetAnalyzedResourceOutput) SetResource(v *AnalyzedResource) *GetAnalyzedResourceOutput {
s.Resource = v
return s
}
// Retrieves an analyzer.
type GetAnalyzerInput struct {
_ struct{} `type:"structure"`
// The name of the analyzer retrieved.
//
// AnalyzerName is a required field
AnalyzerName *string `location:"uri" locationName:"analyzerName" min:"1" type:"string" required:"true"`
}
// String returns the string representation
func (s GetAnalyzerInput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s GetAnalyzerInput) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
func (s *GetAnalyzerInput) Validate() error {
invalidParams := request.ErrInvalidParams{Context: "GetAnalyzerInput"}
if s.AnalyzerName == nil {
invalidParams.Add(request.NewErrParamRequired("AnalyzerName"))
}
if s.AnalyzerName != nil && len(*s.AnalyzerName) < 1 {
invalidParams.Add(request.NewErrParamMinLen("AnalyzerName", 1))
}
if invalidParams.Len() > 0 {
return invalidParams
}
return nil
}
// SetAnalyzerName sets the AnalyzerName field's value.
func (s *GetAnalyzerInput) SetAnalyzerName(v string) *GetAnalyzerInput {
s.AnalyzerName = &v
return s
}
// The response to the request.
type GetAnalyzerOutput struct {
_ struct{} `type:"structure"`
// An AnalyzerSummary object that contains information about the analyzer.
//
// Analyzer is a required field
Analyzer *AnalyzerSummary `locationName:"analyzer" type:"structure" required:"true"`
}
// String returns the string representation
func (s GetAnalyzerOutput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s GetAnalyzerOutput) GoString() string {
return s.String()
}
// SetAnalyzer sets the Analyzer field's value.
func (s *GetAnalyzerOutput) SetAnalyzer(v *AnalyzerSummary) *GetAnalyzerOutput {
s.Analyzer = v
return s
}
// Retrieves an archive rule.
type GetArchiveRuleInput struct {
_ struct{} `type:"structure"`
// The name of the analyzer to retrieve rules from.
//
// AnalyzerName is a required field
AnalyzerName *string `location:"uri" locationName:"analyzerName" min:"1" type:"string" required:"true"`
// The name of the rule to retrieve.
//
// RuleName is a required field
RuleName *string `location:"uri" locationName:"ruleName" min:"1" type:"string" required:"true"`
}
// String returns the string representation
func (s GetArchiveRuleInput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s GetArchiveRuleInput) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
func (s *GetArchiveRuleInput) Validate() error {
invalidParams := request.ErrInvalidParams{Context: "GetArchiveRuleInput"}
if s.AnalyzerName == nil {
invalidParams.Add(request.NewErrParamRequired("AnalyzerName"))
}
if s.AnalyzerName != nil && len(*s.AnalyzerName) < 1 {
invalidParams.Add(request.NewErrParamMinLen("AnalyzerName", 1))
}
if s.RuleName == nil {
invalidParams.Add(request.NewErrParamRequired("RuleName"))
}
if s.RuleName != nil && len(*s.RuleName) < 1 {
invalidParams.Add(request.NewErrParamMinLen("RuleName", 1))
}
if invalidParams.Len() > 0 {
return invalidParams
}
return nil
}
// SetAnalyzerName sets the AnalyzerName field's value.
func (s *GetArchiveRuleInput) SetAnalyzerName(v string) *GetArchiveRuleInput {
s.AnalyzerName = &v
return s
}
// SetRuleName sets the RuleName field's value.
func (s *GetArchiveRuleInput) SetRuleName(v string) *GetArchiveRuleInput {
s.RuleName = &v
return s
}
// The response to the request.
type GetArchiveRuleOutput struct {
_ struct{} `type:"structure"`
// Contains information about an archive rule.
//
// ArchiveRule is a required field
ArchiveRule *ArchiveRuleSummary `locationName:"archiveRule" type:"structure" required:"true"`
}
// String returns the string representation
func (s GetArchiveRuleOutput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s GetArchiveRuleOutput) GoString() string {
return s.String()
}
// SetArchiveRule sets the ArchiveRule field's value.
func (s *GetArchiveRuleOutput) SetArchiveRule(v *ArchiveRuleSummary) *GetArchiveRuleOutput {
s.ArchiveRule = v
return s
}
// Retrieves a finding.
type GetFindingInput struct {
_ struct{} `type:"structure"`
// The ARN of the analyzer (https://docs.aws.amazon.com/IAM/latest/UserGuide/access-analyzer-getting-started.html#permission-resources)
// that generated the finding.
//
// AnalyzerArn is a required field
AnalyzerArn *string `location:"querystring" locationName:"analyzerArn" type:"string" required:"true"`
// The ID of the finding to retrieve.
//
// Id is a required field
Id *string `location:"uri" locationName:"id" type:"string" required:"true"`
}
// String returns the string representation
func (s GetFindingInput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s GetFindingInput) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
func (s *GetFindingInput) Validate() error {
invalidParams := request.ErrInvalidParams{Context: "GetFindingInput"}
if s.AnalyzerArn == nil {
invalidParams.Add(request.NewErrParamRequired("AnalyzerArn"))
}
if s.Id == nil {
invalidParams.Add(request.NewErrParamRequired("Id"))
}
if s.Id != nil && len(*s.Id) < 1 {
invalidParams.Add(request.NewErrParamMinLen("Id", 1))
}
if invalidParams.Len() > 0 {
return invalidParams
}
return nil
}
// SetAnalyzerArn sets the AnalyzerArn field's value.
func (s *GetFindingInput) SetAnalyzerArn(v string) *GetFindingInput {
s.AnalyzerArn = &v
return s
}
// SetId sets the Id field's value.
func (s *GetFindingInput) SetId(v string) *GetFindingInput {
s.Id = &v
return s
}
// The response to the request.
type GetFindingOutput struct {
_ struct{} `type:"structure"`
// A finding object that contains finding details.
Finding *Finding `locationName:"finding" type:"structure"`
}
// String returns the string representation
func (s GetFindingOutput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s GetFindingOutput) GoString() string {
return s.String()
}
// SetFinding sets the Finding field's value.
func (s *GetFindingOutput) SetFinding(v *Finding) *GetFindingOutput {
s.Finding = v
return s
}
type GetGeneratedPolicyInput struct {
_ struct{} `type:"structure"`
// The level of detail that you want to generate. You can specify whether to
// generate policies with placeholders for resource ARNs for actions that support
// resource level granularity in policies.
//
// For example, in the resource section of a policy, you can receive a placeholder
// such as "Resource":"arn:aws:s3:::${BucketName}" instead of "*".
IncludeResourcePlaceholders *bool `location:"querystring" locationName:"includeResourcePlaceholders" type:"boolean"`
// The level of detail that you want to generate. You can specify whether to
// generate service-level policies.
//
// Access Analyzer uses iam:servicelastaccessed to identify services that have
// been used recently to create this service-level template.
IncludeServiceLevelTemplate *bool `location:"querystring" locationName:"includeServiceLevelTemplate" type:"boolean"`
// The JobId that is returned by the StartPolicyGeneration operation. The JobId
// can be used with GetGeneratedPolicy to retrieve the generated policies or
// used with CancelPolicyGeneration to cancel the policy generation request.
//
// JobId is a required field
JobId *string `location:"uri" locationName:"jobId" type:"string" required:"true"`
}
// String returns the string representation
func (s GetGeneratedPolicyInput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s GetGeneratedPolicyInput) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
func (s *GetGeneratedPolicyInput) Validate() error {
invalidParams := request.ErrInvalidParams{Context: "GetGeneratedPolicyInput"}
if s.JobId == nil {
invalidParams.Add(request.NewErrParamRequired("JobId"))
}
if s.JobId != nil && len(*s.JobId) < 1 {
invalidParams.Add(request.NewErrParamMinLen("JobId", 1))
}
if invalidParams.Len() > 0 {
return invalidParams
}
return nil
}
// SetIncludeResourcePlaceholders sets the IncludeResourcePlaceholders field's value.
func (s *GetGeneratedPolicyInput) SetIncludeResourcePlaceholders(v bool) *GetGeneratedPolicyInput {
s.IncludeResourcePlaceholders = &v
return s
}
// SetIncludeServiceLevelTemplate sets the IncludeServiceLevelTemplate field's value.
func (s *GetGeneratedPolicyInput) SetIncludeServiceLevelTemplate(v bool) *GetGeneratedPolicyInput {
s.IncludeServiceLevelTemplate = &v
return s
}
// SetJobId sets the JobId field's value.
func (s *GetGeneratedPolicyInput) SetJobId(v string) *GetGeneratedPolicyInput {
s.JobId = &v
return s
}
type GetGeneratedPolicyOutput struct {
_ struct{} `type:"structure"`
// A GeneratedPolicyResult object that contains the generated policies and associated
// details.
//
// GeneratedPolicyResult is a required field
GeneratedPolicyResult *GeneratedPolicyResult `locationName:"generatedPolicyResult" type:"structure" required:"true"`
// A GeneratedPolicyDetails object that contains details about the generated
// policy.
//
// JobDetails is a required field
JobDetails *JobDetails `locationName:"jobDetails" type:"structure" required:"true"`
}
// String returns the string representation
func (s GetGeneratedPolicyOutput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s GetGeneratedPolicyOutput) GoString() string {
return s.String()
}
// SetGeneratedPolicyResult sets the GeneratedPolicyResult field's value.
func (s *GetGeneratedPolicyOutput) SetGeneratedPolicyResult(v *GeneratedPolicyResult) *GetGeneratedPolicyOutput {
s.GeneratedPolicyResult = v
return s
}
// SetJobDetails sets the JobDetails field's value.
func (s *GetGeneratedPolicyOutput) SetJobDetails(v *JobDetails) *GetGeneratedPolicyOutput {
s.JobDetails = v
return s
}
// The proposed access control configuration for an IAM role. You can propose
// a configuration for a new IAM role or an existing IAM role that you own by
// specifying the trust policy. If the configuration is for a new IAM role,
// you must specify the trust policy. If the configuration is for an existing
// IAM role that you own and you do not propose the trust policy, the access
// preview uses the existing trust policy for the role. The proposed trust policy
// cannot be an empty string. For more information about role trust policy limits,
// see IAM and STS quotas (https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_iam-quotas.html).
type IamRoleConfiguration struct {
_ struct{} `type:"structure"`
// The proposed trust policy for the IAM role.
TrustPolicy *string `locationName:"trustPolicy" type:"string"`
}
// String returns the string representation
func (s IamRoleConfiguration) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s IamRoleConfiguration) GoString() string {
return s.String()
}
// SetTrustPolicy sets the TrustPolicy field's value.
func (s *IamRoleConfiguration) SetTrustPolicy(v string) *IamRoleConfiguration {
s.TrustPolicy = &v
return s
}
// An criterion statement in an archive rule. Each archive rule may have multiple
// criteria.
type InlineArchiveRule struct {
_ struct{} `type:"structure"`
// The condition and values for a criterion.
//
// Filter is a required field
Filter map[string]*Criterion `locationName:"filter" type:"map" required:"true"`
// The name of the rule.
//
// RuleName is a required field
RuleName *string `locationName:"ruleName" min:"1" type:"string" required:"true"`
}
// String returns the string representation
func (s InlineArchiveRule) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s InlineArchiveRule) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
func (s *InlineArchiveRule) Validate() error {
invalidParams := request.ErrInvalidParams{Context: "InlineArchiveRule"}
if s.Filter == nil {
invalidParams.Add(request.NewErrParamRequired("Filter"))
}
if s.RuleName == nil {
invalidParams.Add(request.NewErrParamRequired("RuleName"))
}
if s.RuleName != nil && len(*s.RuleName) < 1 {
invalidParams.Add(request.NewErrParamMinLen("RuleName", 1))
}
if s.Filter != nil {
for i, v := range s.Filter {
if v == nil {
continue
}
if err := v.Validate(); err != nil {
invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Filter", i), err.(request.ErrInvalidParams))
}
}
}
if invalidParams.Len() > 0 {
return invalidParams
}
return nil
}
// SetFilter sets the Filter field's value.
func (s *InlineArchiveRule) SetFilter(v map[string]*Criterion) *InlineArchiveRule {
s.Filter = v
return s
}
// SetRuleName sets the RuleName field's value.
func (s *InlineArchiveRule) SetRuleName(v string) *InlineArchiveRule {
s.RuleName = &v
return s
}
// Internal server error.
type InternalServerException struct {
_ struct{} `type:"structure"`
RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
// The seconds to wait to retry.
RetryAfterSeconds *int64 `location:"header" locationName:"Retry-After" type:"integer"`
}
// String returns the string representation
func (s InternalServerException) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s InternalServerException) GoString() string {
return s.String()
}
func newErrorInternalServerException(v protocol.ResponseMetadata) error {
return &InternalServerException{
RespMetadata: v,
}
}
// Code returns the exception type name.
func (s *InternalServerException) Code() string {
return "InternalServerException"
}
// Message returns the exception's message.
func (s *InternalServerException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
return ""
}
// OrigErr always returns nil, satisfies awserr.Error interface.
func (s *InternalServerException) OrigErr() error {
return nil
}
func (s *InternalServerException) Error() string {
return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String())
}
// Status code returns the HTTP status code for the request's response error.
func (s *InternalServerException) StatusCode() int {
return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
func (s *InternalServerException) RequestID() string {
return s.RespMetadata.RequestID
}
// This configuration sets the Amazon S3 access point network origin to Internet.
type InternetConfiguration struct {
_ struct{} `type:"structure"`
}
// String returns the string representation
func (s InternetConfiguration) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s InternetConfiguration) GoString() string {
return s.String()
}
// Contains details about the policy generation request.
type JobDetails struct {
_ struct{} `type:"structure"`
// A timestamp of when the job was completed.
CompletedOn *time.Time `locationName:"completedOn" type:"timestamp" timestampFormat:"iso8601"`
// Contains the details about the policy generation error.
JobError *JobError `locationName:"jobError" type:"structure"`
// The JobId that is returned by the StartPolicyGeneration operation. The JobId
// can be used with GetGeneratedPolicy to retrieve the generated policies or
// used with CancelPolicyGeneration to cancel the policy generation request.
//
// JobId is a required field
JobId *string `locationName:"jobId" type:"string" required:"true"`
// A timestamp of when the job was started.
//
// StartedOn is a required field
StartedOn *time.Time `locationName:"startedOn" type:"timestamp" timestampFormat:"iso8601" required:"true"`
// The status of the job request.
//
// Status is a required field
Status *string `locationName:"status" type:"string" required:"true" enum:"JobStatus"`
}
// String returns the string representation
func (s JobDetails) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s JobDetails) GoString() string {
return s.String()
}
// SetCompletedOn sets the CompletedOn field's value.
func (s *JobDetails) SetCompletedOn(v time.Time) *JobDetails {
s.CompletedOn = &v
return s
}
// SetJobError sets the JobError field's value.
func (s *JobDetails) SetJobError(v *JobError) *JobDetails {
s.JobError = v
return s
}
// SetJobId sets the JobId field's value.
func (s *JobDetails) SetJobId(v string) *JobDetails {
s.JobId = &v
return s
}
// SetStartedOn sets the StartedOn field's value.
func (s *JobDetails) SetStartedOn(v time.Time) *JobDetails {
s.StartedOn = &v
return s
}
// SetStatus sets the Status field's value.
func (s *JobDetails) SetStatus(v string) *JobDetails {
s.Status = &v
return s
}
// Contains the details about the policy generation error.
type JobError struct {
_ struct{} `type:"structure"`
// The job error code.
//
// Code is a required field
Code *string `locationName:"code" type:"string" required:"true" enum:"JobErrorCode"`
// Specific information about the error. For example, which service quota was
// exceeded or which resource was not found.
//
// Message is a required field
Message *string `locationName:"message" type:"string" required:"true"`
}
// String returns the string representation
func (s JobError) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s JobError) GoString() string {
return s.String()
}
// SetCode sets the Code field's value.
func (s *JobError) SetCode(v string) *JobError {
s.Code = &v
return s
}
// SetMessage sets the Message field's value.
func (s *JobError) SetMessage(v string) *JobError {
s.Message = &v
return s
}
// A proposed grant configuration for a KMS key. For more information, see CreateGrant
// (https://docs.aws.amazon.com/kms/latest/APIReference/API_CreateGrant.html).
type KmsGrantConfiguration struct {
_ struct{} `type:"structure"`
// Use this structure to propose allowing cryptographic operations (https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#cryptographic-operations)
// in the grant only when the operation request includes the specified encryption
// context (https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#encrypt_context).
Constraints *KmsGrantConstraints `locationName:"constraints" type:"structure"`
// The principal that is given permission to perform the operations that the
// grant permits.
//
// GranteePrincipal is a required field
GranteePrincipal *string `locationName:"granteePrincipal" type:"string" required:"true"`
// The AWS account under which the grant was issued. The account is used to
// propose KMS grants issued by accounts other than the owner of the key.
//
// IssuingAccount is a required field
IssuingAccount *string `locationName:"issuingAccount" type:"string" required:"true"`
// A list of operations that the grant permits.
//
// Operations is a required field
Operations []*string `locationName:"operations" type:"list" required:"true"`
// The principal that is given permission to retire the grant by using RetireGrant
// (https://docs.aws.amazon.com/kms/latest/APIReference/API_RetireGrant.html)
// operation.
RetiringPrincipal *string `locationName:"retiringPrincipal" type:"string"`
}
// String returns the string representation
func (s KmsGrantConfiguration) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s KmsGrantConfiguration) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
func (s *KmsGrantConfiguration) Validate() error {
invalidParams := request.ErrInvalidParams{Context: "KmsGrantConfiguration"}
if s.GranteePrincipal == nil {
invalidParams.Add(request.NewErrParamRequired("GranteePrincipal"))
}
if s.IssuingAccount == nil {
invalidParams.Add(request.NewErrParamRequired("IssuingAccount"))
}
if s.Operations == nil {
invalidParams.Add(request.NewErrParamRequired("Operations"))
}
if invalidParams.Len() > 0 {
return invalidParams
}
return nil
}
// SetConstraints sets the Constraints field's value.
func (s *KmsGrantConfiguration) SetConstraints(v *KmsGrantConstraints) *KmsGrantConfiguration {
s.Constraints = v
return s
}
// SetGranteePrincipal sets the GranteePrincipal field's value.
func (s *KmsGrantConfiguration) SetGranteePrincipal(v string) *KmsGrantConfiguration {
s.GranteePrincipal = &v
return s
}
// SetIssuingAccount sets the IssuingAccount field's value.
func (s *KmsGrantConfiguration) SetIssuingAccount(v string) *KmsGrantConfiguration {
s.IssuingAccount = &v
return s
}
// SetOperations sets the Operations field's value.
func (s *KmsGrantConfiguration) SetOperations(v []*string) *KmsGrantConfiguration {
s.Operations = v
return s
}
// SetRetiringPrincipal sets the RetiringPrincipal field's value.
func (s *KmsGrantConfiguration) SetRetiringPrincipal(v string) *KmsGrantConfiguration {
s.RetiringPrincipal = &v
return s
}
// Use this structure to propose allowing cryptographic operations (https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#cryptographic-operations)
// in the grant only when the operation request includes the specified encryption
// context (https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#encrypt_context).
// You can specify only one type of encryption context. An empty map is treated
// as not specified. For more information, see GrantConstraints (https://docs.aws.amazon.com/kms/latest/APIReference/API_GrantConstraints.html).
type KmsGrantConstraints struct {
_ struct{} `type:"structure"`
// A list of key-value pairs that must match the encryption context in the cryptographic
// operation (https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#cryptographic-operations)
// request. The grant allows the operation only when the encryption context
// in the request is the same as the encryption context specified in this constraint.
EncryptionContextEquals map[string]*string `locationName:"encryptionContextEquals" type:"map"`
// A list of key-value pairs that must be included in the encryption context
// of the cryptographic operation (https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#cryptographic-operations)
// request. The grant allows the cryptographic operation only when the encryption
// context in the request includes the key-value pairs specified in this constraint,
// although it can include additional key-value pairs.
EncryptionContextSubset map[string]*string `locationName:"encryptionContextSubset" type:"map"`
}
// String returns the string representation
func (s KmsGrantConstraints) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s KmsGrantConstraints) GoString() string {
return s.String()
}
// SetEncryptionContextEquals sets the EncryptionContextEquals field's value.
func (s *KmsGrantConstraints) SetEncryptionContextEquals(v map[string]*string) *KmsGrantConstraints {
s.EncryptionContextEquals = v
return s
}
// SetEncryptionContextSubset sets the EncryptionContextSubset field's value.
func (s *KmsGrantConstraints) SetEncryptionContextSubset(v map[string]*string) *KmsGrantConstraints {
s.EncryptionContextSubset = v
return s
}
// Proposed access control configuration for a KMS key. You can propose a configuration
// for a new KMS key or an existing KMS key that you own by specifying the key
// policy and KMS grant configuration. If the configuration is for an existing
// key and you do not specify the key policy, the access preview uses the existing
// policy for the key. If the access preview is for a new resource and you do
// not specify the key policy, then the access preview uses the default key
// policy. The proposed key policy cannot be an empty string. For more information,
// see Default key policy (https://docs.aws.amazon.com/kms/latest/developerguide/key-policies.html#key-policy-default).
// For more information about key policy limits, see Resource quotas (https://docs.aws.amazon.com/kms/latest/developerguide/resource-limits.html).
type KmsKeyConfiguration struct {
_ struct{} `type:"structure"`
// A list of proposed grant configurations for the KMS key. If the proposed
// grant configuration is for an existing key, the access preview uses the proposed
// list of grant configurations in place of the existing grants. Otherwise,
// the access preview uses the existing grants for the key.
Grants []*KmsGrantConfiguration `locationName:"grants" type:"list"`
// Resource policy configuration for the KMS key. The only valid value for the
// name of the key policy is default. For more information, see Default key
// policy (https://docs.aws.amazon.com/kms/latest/developerguide/key-policies.html#key-policy-default).
KeyPolicies map[string]*string `locationName:"keyPolicies" type:"map"`
}
// String returns the string representation
func (s KmsKeyConfiguration) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s KmsKeyConfiguration) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
func (s *KmsKeyConfiguration) Validate() error {
invalidParams := request.ErrInvalidParams{Context: "KmsKeyConfiguration"}
if s.Grants != nil {
for i, v := range s.Grants {
if v == nil {
continue
}
if err := v.Validate(); err != nil {
invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Grants", i), err.(request.ErrInvalidParams))
}
}
}
if invalidParams.Len() > 0 {
return invalidParams
}
return nil
}
// SetGrants sets the Grants field's value.
func (s *KmsKeyConfiguration) SetGrants(v []*KmsGrantConfiguration) *KmsKeyConfiguration {
s.Grants = v
return s
}
// SetKeyPolicies sets the KeyPolicies field's value.
func (s *KmsKeyConfiguration) SetKeyPolicies(v map[string]*string) *KmsKeyConfiguration {
s.KeyPolicies = v
return s
}
type ListAccessPreviewFindingsInput struct {
_ struct{} `type:"structure"`
// The unique ID for the access preview.
//
// AccessPreviewId is a required field
AccessPreviewId *string `location:"uri" locationName:"accessPreviewId" type:"string" required:"true"`
// The ARN of the analyzer (https://docs.aws.amazon.com/IAM/latest/UserGuide/access-analyzer-getting-started.html#permission-resources)
// used to generate the access.
//
// AnalyzerArn is a required field
AnalyzerArn *string `locationName:"analyzerArn" type:"string" required:"true"`
// Criteria to filter the returned findings.
Filter map[string]*Criterion `locationName:"filter" type:"map"`
// The maximum number of results to return in the response.
MaxResults *int64 `locationName:"maxResults" type:"integer"`
// A token used for pagination of results returned.
NextToken *string `locationName:"nextToken" type:"string"`
}
// String returns the string representation
func (s ListAccessPreviewFindingsInput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s ListAccessPreviewFindingsInput) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
func (s *ListAccessPreviewFindingsInput) Validate() error {
invalidParams := request.ErrInvalidParams{Context: "ListAccessPreviewFindingsInput"}
if s.AccessPreviewId == nil {
invalidParams.Add(request.NewErrParamRequired("AccessPreviewId"))
}
if s.AccessPreviewId != nil && len(*s.AccessPreviewId) < 1 {
invalidParams.Add(request.NewErrParamMinLen("AccessPreviewId", 1))
}
if s.AnalyzerArn == nil {
invalidParams.Add(request.NewErrParamRequired("AnalyzerArn"))
}
if s.Filter != nil {
for i, v := range s.Filter {
if v == nil {
continue
}
if err := v.Validate(); err != nil {
invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Filter", i), err.(request.ErrInvalidParams))
}
}
}
if invalidParams.Len() > 0 {
return invalidParams
}
return nil
}
// SetAccessPreviewId sets the AccessPreviewId field's value.
func (s *ListAccessPreviewFindingsInput) SetAccessPreviewId(v string) *ListAccessPreviewFindingsInput {
s.AccessPreviewId = &v
return s
}
// SetAnalyzerArn sets the AnalyzerArn field's value.
func (s *ListAccessPreviewFindingsInput) SetAnalyzerArn(v string) *ListAccessPreviewFindingsInput {
s.AnalyzerArn = &v
return s
}
// SetFilter sets the Filter field's value.
func (s *ListAccessPreviewFindingsInput) SetFilter(v map[string]*Criterion) *ListAccessPreviewFindingsInput {
s.Filter = v
return s
}
// SetMaxResults sets the MaxResults field's value.
func (s *ListAccessPreviewFindingsInput) SetMaxResults(v int64) *ListAccessPreviewFindingsInput {
s.MaxResults = &v
return s
}
// SetNextToken sets the NextToken field's value.
func (s *ListAccessPreviewFindingsInput) SetNextToken(v string) *ListAccessPreviewFindingsInput {
s.NextToken = &v
return s
}
type ListAccessPreviewFindingsOutput struct {
_ struct{} `type:"structure"`
// A list of access preview findings that match the specified filter criteria.
//
// Findings is a required field
Findings []*AccessPreviewFinding `locationName:"findings" type:"list" required:"true"`
// A token used for pagination of results returned.
NextToken *string `locationName:"nextToken" type:"string"`
}
// String returns the string representation
func (s ListAccessPreviewFindingsOutput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s ListAccessPreviewFindingsOutput) GoString() string {
return s.String()
}
// SetFindings sets the Findings field's value.
func (s *ListAccessPreviewFindingsOutput) SetFindings(v []*AccessPreviewFinding) *ListAccessPreviewFindingsOutput {
s.Findings = v
return s
}
// SetNextToken sets the NextToken field's value.
func (s *ListAccessPreviewFindingsOutput) SetNextToken(v string) *ListAccessPreviewFindingsOutput {
s.NextToken = &v
return s
}
type ListAccessPreviewsInput struct {
_ struct{} `type:"structure"`
// The ARN of the analyzer (https://docs.aws.amazon.com/IAM/latest/UserGuide/access-analyzer-getting-started.html#permission-resources)
// used to generate the access preview.
//
// AnalyzerArn is a required field
AnalyzerArn *string `location:"querystring" locationName:"analyzerArn" type:"string" required:"true"`
// The maximum number of results to return in the response.
MaxResults *int64 `location:"querystring" locationName:"maxResults" type:"integer"`
// A token used for pagination of results returned.
NextToken *string `location:"querystring" locationName:"nextToken" type:"string"`
}
// String returns the string representation
func (s ListAccessPreviewsInput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s ListAccessPreviewsInput) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
func (s *ListAccessPreviewsInput) Validate() error {
invalidParams := request.ErrInvalidParams{Context: "ListAccessPreviewsInput"}
if s.AnalyzerArn == nil {
invalidParams.Add(request.NewErrParamRequired("AnalyzerArn"))
}
if invalidParams.Len() > 0 {
return invalidParams
}
return nil
}
// SetAnalyzerArn sets the AnalyzerArn field's value.
func (s *ListAccessPreviewsInput) SetAnalyzerArn(v string) *ListAccessPreviewsInput {
s.AnalyzerArn = &v
return s
}
// SetMaxResults sets the MaxResults field's value.
func (s *ListAccessPreviewsInput) SetMaxResults(v int64) *ListAccessPreviewsInput {
s.MaxResults = &v
return s
}
// SetNextToken sets the NextToken field's value.
func (s *ListAccessPreviewsInput) SetNextToken(v string) *ListAccessPreviewsInput {
s.NextToken = &v
return s
}
type ListAccessPreviewsOutput struct {
_ struct{} `type:"structure"`
// A list of access previews retrieved for the analyzer.
//
// AccessPreviews is a required field
AccessPreviews []*AccessPreviewSummary `locationName:"accessPreviews" type:"list" required:"true"`
// A token used for pagination of results returned.
NextToken *string `locationName:"nextToken" type:"string"`
}
// String returns the string representation
func (s ListAccessPreviewsOutput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s ListAccessPreviewsOutput) GoString() string {
return s.String()
}
// SetAccessPreviews sets the AccessPreviews field's value.
func (s *ListAccessPreviewsOutput) SetAccessPreviews(v []*AccessPreviewSummary) *ListAccessPreviewsOutput {
s.AccessPreviews = v
return s
}
// SetNextToken sets the NextToken field's value.
func (s *ListAccessPreviewsOutput) SetNextToken(v string) *ListAccessPreviewsOutput {
s.NextToken = &v
return s
}
// Retrieves a list of resources that have been analyzed.
type ListAnalyzedResourcesInput struct {
_ struct{} `type:"structure"`
// The ARN of the analyzer (https://docs.aws.amazon.com/IAM/latest/UserGuide/access-analyzer-getting-started.html#permission-resources)
// to retrieve a list of analyzed resources from.
//
// AnalyzerArn is a required field
AnalyzerArn *string `locationName:"analyzerArn" type:"string" required:"true"`
// The maximum number of results to return in the response.
MaxResults *int64 `locationName:"maxResults" type:"integer"`
// A token used for pagination of results returned.
NextToken *string `locationName:"nextToken" type:"string"`
// The type of resource.
ResourceType *string `locationName:"resourceType" type:"string" enum:"ResourceType"`
}
// String returns the string representation
func (s ListAnalyzedResourcesInput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s ListAnalyzedResourcesInput) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
func (s *ListAnalyzedResourcesInput) Validate() error {
invalidParams := request.ErrInvalidParams{Context: "ListAnalyzedResourcesInput"}
if s.AnalyzerArn == nil {
invalidParams.Add(request.NewErrParamRequired("AnalyzerArn"))
}
if invalidParams.Len() > 0 {
return invalidParams
}
return nil
}
// SetAnalyzerArn sets the AnalyzerArn field's value.
func (s *ListAnalyzedResourcesInput) SetAnalyzerArn(v string) *ListAnalyzedResourcesInput {
s.AnalyzerArn = &v
return s
}
// SetMaxResults sets the MaxResults field's value.
func (s *ListAnalyzedResourcesInput) SetMaxResults(v int64) *ListAnalyzedResourcesInput {
s.MaxResults = &v
return s
}
// SetNextToken sets the NextToken field's value.
func (s *ListAnalyzedResourcesInput) SetNextToken(v string) *ListAnalyzedResourcesInput {
s.NextToken = &v
return s
}
// SetResourceType sets the ResourceType field's value.
func (s *ListAnalyzedResourcesInput) SetResourceType(v string) *ListAnalyzedResourcesInput {
s.ResourceType = &v
return s
}
// The response to the request.
type ListAnalyzedResourcesOutput struct {
_ struct{} `type:"structure"`
// A list of resources that were analyzed.
//
// AnalyzedResources is a required field
AnalyzedResources []*AnalyzedResourceSummary `locationName:"analyzedResources" type:"list" required:"true"`
// A token used for pagination of results returned.
NextToken *string `locationName:"nextToken" type:"string"`
}
// String returns the string representation
func (s ListAnalyzedResourcesOutput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s ListAnalyzedResourcesOutput) GoString() string {
return s.String()
}
// SetAnalyzedResources sets the AnalyzedResources field's value.
func (s *ListAnalyzedResourcesOutput) SetAnalyzedResources(v []*AnalyzedResourceSummary) *ListAnalyzedResourcesOutput {
s.AnalyzedResources = v
return s
}
// SetNextToken sets the NextToken field's value.
func (s *ListAnalyzedResourcesOutput) SetNextToken(v string) *ListAnalyzedResourcesOutput {
s.NextToken = &v
return s
}
// Retrieves a list of analyzers.
type ListAnalyzersInput struct {
_ struct{} `type:"structure"`
// The maximum number of results to return in the response.
MaxResults *int64 `location:"querystring" locationName:"maxResults" type:"integer"`
// A token used for pagination of results returned.
NextToken *string `location:"querystring" locationName:"nextToken" type:"string"`
// The type of analyzer.
Type *string `location:"querystring" locationName:"type" type:"string" enum:"Type"`
}
// String returns the string representation
func (s ListAnalyzersInput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s ListAnalyzersInput) GoString() string {
return s.String()
}
// SetMaxResults sets the MaxResults field's value.
func (s *ListAnalyzersInput) SetMaxResults(v int64) *ListAnalyzersInput {
s.MaxResults = &v
return s
}
// SetNextToken sets the NextToken field's value.
func (s *ListAnalyzersInput) SetNextToken(v string) *ListAnalyzersInput {
s.NextToken = &v
return s
}
// SetType sets the Type field's value.
func (s *ListAnalyzersInput) SetType(v string) *ListAnalyzersInput {
s.Type = &v
return s
}
// The response to the request.
type ListAnalyzersOutput struct {
_ struct{} `type:"structure"`
// The analyzers retrieved.
//
// Analyzers is a required field
Analyzers []*AnalyzerSummary `locationName:"analyzers" type:"list" required:"true"`
// A token used for pagination of results returned.
NextToken *string `locationName:"nextToken" type:"string"`
}
// String returns the string representation
func (s ListAnalyzersOutput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s ListAnalyzersOutput) GoString() string {
return s.String()
}
// SetAnalyzers sets the Analyzers field's value.
func (s *ListAnalyzersOutput) SetAnalyzers(v []*AnalyzerSummary) *ListAnalyzersOutput {
s.Analyzers = v
return s
}
// SetNextToken sets the NextToken field's value.
func (s *ListAnalyzersOutput) SetNextToken(v string) *ListAnalyzersOutput {
s.NextToken = &v
return s
}
// Retrieves a list of archive rules created for the specified analyzer.
type ListArchiveRulesInput struct {
_ struct{} `type:"structure"`
// The name of the analyzer to retrieve rules from.
//
// AnalyzerName is a required field
AnalyzerName *string `location:"uri" locationName:"analyzerName" min:"1" type:"string" required:"true"`
// The maximum number of results to return in the request.
MaxResults *int64 `location:"querystring" locationName:"maxResults" type:"integer"`
// A token used for pagination of results returned.
NextToken *string `location:"querystring" locationName:"nextToken" type:"string"`
}
// String returns the string representation
func (s ListArchiveRulesInput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s ListArchiveRulesInput) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
func (s *ListArchiveRulesInput) Validate() error {
invalidParams := request.ErrInvalidParams{Context: "ListArchiveRulesInput"}
if s.AnalyzerName == nil {
invalidParams.Add(request.NewErrParamRequired("AnalyzerName"))
}
if s.AnalyzerName != nil && len(*s.AnalyzerName) < 1 {
invalidParams.Add(request.NewErrParamMinLen("AnalyzerName", 1))
}
if invalidParams.Len() > 0 {
return invalidParams
}
return nil
}
// SetAnalyzerName sets the AnalyzerName field's value.
func (s *ListArchiveRulesInput) SetAnalyzerName(v string) *ListArchiveRulesInput {
s.AnalyzerName = &v
return s
}
// SetMaxResults sets the MaxResults field's value.
func (s *ListArchiveRulesInput) SetMaxResults(v int64) *ListArchiveRulesInput {
s.MaxResults = &v
return s
}
// SetNextToken sets the NextToken field's value.
func (s *ListArchiveRulesInput) SetNextToken(v string) *ListArchiveRulesInput {
s.NextToken = &v
return s
}
// The response to the request.
type ListArchiveRulesOutput struct {
_ struct{} `type:"structure"`
// A list of archive rules created for the specified analyzer.
//
// ArchiveRules is a required field
ArchiveRules []*ArchiveRuleSummary `locationName:"archiveRules" type:"list" required:"true"`
// A token used for pagination of results returned.
NextToken *string `locationName:"nextToken" type:"string"`
}
// String returns the string representation
func (s ListArchiveRulesOutput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s ListArchiveRulesOutput) GoString() string {
return s.String()
}
// SetArchiveRules sets the ArchiveRules field's value.
func (s *ListArchiveRulesOutput) SetArchiveRules(v []*ArchiveRuleSummary) *ListArchiveRulesOutput {
s.ArchiveRules = v
return s
}
// SetNextToken sets the NextToken field's value.
func (s *ListArchiveRulesOutput) SetNextToken(v string) *ListArchiveRulesOutput {
s.NextToken = &v
return s
}
// Retrieves a list of findings generated by the specified analyzer.
type ListFindingsInput struct {
_ struct{} `type:"structure"`
// The ARN of the analyzer (https://docs.aws.amazon.com/IAM/latest/UserGuide/access-analyzer-getting-started.html#permission-resources)
// to retrieve findings from.
//
// AnalyzerArn is a required field
AnalyzerArn *string `locationName:"analyzerArn" type:"string" required:"true"`
// A filter to match for the findings to return.
Filter map[string]*Criterion `locationName:"filter" type:"map"`
// The maximum number of results to return in the response.
MaxResults *int64 `locationName:"maxResults" type:"integer"`
// A token used for pagination of results returned.
NextToken *string `locationName:"nextToken" type:"string"`
// The sort order for the findings returned.
Sort *SortCriteria `locationName:"sort" type:"structure"`
}
// String returns the string representation
func (s ListFindingsInput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s ListFindingsInput) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
func (s *ListFindingsInput) Validate() error {
invalidParams := request.ErrInvalidParams{Context: "ListFindingsInput"}
if s.AnalyzerArn == nil {
invalidParams.Add(request.NewErrParamRequired("AnalyzerArn"))
}
if s.Filter != nil {
for i, v := range s.Filter {
if v == nil {
continue
}
if err := v.Validate(); err != nil {
invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Filter", i), err.(request.ErrInvalidParams))
}
}
}
if invalidParams.Len() > 0 {
return invalidParams
}
return nil
}
// SetAnalyzerArn sets the AnalyzerArn field's value.
func (s *ListFindingsInput) SetAnalyzerArn(v string) *ListFindingsInput {
s.AnalyzerArn = &v
return s
}
// SetFilter sets the Filter field's value.
func (s *ListFindingsInput) SetFilter(v map[string]*Criterion) *ListFindingsInput {
s.Filter = v
return s
}
// SetMaxResults sets the MaxResults field's value.
func (s *ListFindingsInput) SetMaxResults(v int64) *ListFindingsInput {
s.MaxResults = &v
return s
}
// SetNextToken sets the NextToken field's value.
func (s *ListFindingsInput) SetNextToken(v string) *ListFindingsInput {
s.NextToken = &v
return s
}
// SetSort sets the Sort field's value.
func (s *ListFindingsInput) SetSort(v *SortCriteria) *ListFindingsInput {
s.Sort = v
return s
}
// The response to the request.
type ListFindingsOutput struct {
_ struct{} `type:"structure"`
// A list of findings retrieved from the analyzer that match the filter criteria
// specified, if any.
//
// Findings is a required field
Findings []*FindingSummary `locationName:"findings" type:"list" required:"true"`
// A token used for pagination of results returned.
NextToken *string `locationName:"nextToken" type:"string"`
}
// String returns the string representation
func (s ListFindingsOutput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s ListFindingsOutput) GoString() string {
return s.String()
}
// SetFindings sets the Findings field's value.
func (s *ListFindingsOutput) SetFindings(v []*FindingSummary) *ListFindingsOutput {
s.Findings = v
return s
}
// SetNextToken sets the NextToken field's value.
func (s *ListFindingsOutput) SetNextToken(v string) *ListFindingsOutput {
s.NextToken = &v
return s
}
type ListPolicyGenerationsInput struct {
_ struct{} `type:"structure"`
// The maximum number of results to return in the response.
MaxResults *int64 `location:"querystring" locationName:"maxResults" min:"1" type:"integer"`
// A token used for pagination of results returned.
NextToken *string `location:"querystring" locationName:"nextToken" type:"string"`
// The ARN of the IAM entity (user or role) for which you are generating a policy.
// Use this with ListGeneratedPolicies to filter the results to only include
// results for a specific principal.
PrincipalArn *string `location:"querystring" locationName:"principalArn" type:"string"`
}
// String returns the string representation
func (s ListPolicyGenerationsInput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s ListPolicyGenerationsInput) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
func (s *ListPolicyGenerationsInput) Validate() error {
invalidParams := request.ErrInvalidParams{Context: "ListPolicyGenerationsInput"}
if s.MaxResults != nil && *s.MaxResults < 1 {
invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1))
}
if invalidParams.Len() > 0 {
return invalidParams
}
return nil
}
// SetMaxResults sets the MaxResults field's value.
func (s *ListPolicyGenerationsInput) SetMaxResults(v int64) *ListPolicyGenerationsInput {
s.MaxResults = &v
return s
}
// SetNextToken sets the NextToken field's value.
func (s *ListPolicyGenerationsInput) SetNextToken(v string) *ListPolicyGenerationsInput {
s.NextToken = &v
return s
}
// SetPrincipalArn sets the PrincipalArn field's value.
func (s *ListPolicyGenerationsInput) SetPrincipalArn(v string) *ListPolicyGenerationsInput {
s.PrincipalArn = &v
return s
}
type ListPolicyGenerationsOutput struct {
_ struct{} `type:"structure"`
// A token used for pagination of results returned.
NextToken *string `locationName:"nextToken" type:"string"`
// A PolicyGeneration object that contains details about the generated policy.
//
// PolicyGenerations is a required field
PolicyGenerations []*PolicyGeneration `locationName:"policyGenerations" type:"list" required:"true"`
}
// String returns the string representation
func (s ListPolicyGenerationsOutput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s ListPolicyGenerationsOutput) GoString() string {
return s.String()
}
// SetNextToken sets the NextToken field's value.
func (s *ListPolicyGenerationsOutput) SetNextToken(v string) *ListPolicyGenerationsOutput {
s.NextToken = &v
return s
}
// SetPolicyGenerations sets the PolicyGenerations field's value.
func (s *ListPolicyGenerationsOutput) SetPolicyGenerations(v []*PolicyGeneration) *ListPolicyGenerationsOutput {
s.PolicyGenerations = v
return s
}
// Retrieves a list of tags applied to the specified resource.
type ListTagsForResourceInput struct {
_ struct{} `type:"structure"`
// The ARN of the resource to retrieve tags from.
//
// ResourceArn is a required field
ResourceArn *string `location:"uri" locationName:"resourceArn" type:"string" required:"true"`
}
// String returns the string representation
func (s ListTagsForResourceInput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s ListTagsForResourceInput) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
func (s *ListTagsForResourceInput) Validate() error {
invalidParams := request.ErrInvalidParams{Context: "ListTagsForResourceInput"}
if s.ResourceArn == nil {
invalidParams.Add(request.NewErrParamRequired("ResourceArn"))
}
if s.ResourceArn != nil && len(*s.ResourceArn) < 1 {
invalidParams.Add(request.NewErrParamMinLen("ResourceArn", 1))
}
if invalidParams.Len() > 0 {
return invalidParams
}
return nil
}
// SetResourceArn sets the ResourceArn field's value.
func (s *ListTagsForResourceInput) SetResourceArn(v string) *ListTagsForResourceInput {
s.ResourceArn = &v
return s
}
// The response to the request.
type ListTagsForResourceOutput struct {
_ struct{} `type:"structure"`
// The tags that are applied to the specified resource.
Tags map[string]*string `locationName:"tags" type:"map"`
}
// String returns the string representation
func (s ListTagsForResourceOutput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s ListTagsForResourceOutput) GoString() string {
return s.String()
}
// SetTags sets the Tags field's value.
func (s *ListTagsForResourceOutput) SetTags(v map[string]*string) *ListTagsForResourceOutput {
s.Tags = v
return s
}
// A location in a policy that is represented as a path through the JSON representation
// and a corresponding span.
type Location struct {
_ struct{} `type:"structure"`
// A path in a policy, represented as a sequence of path elements.
//
// Path is a required field
Path []*PathElement `locationName:"path" type:"list" required:"true"`
// A span in a policy.
//
// Span is a required field
Span *Span `locationName:"span" type:"structure" required:"true"`
}
// String returns the string representation
func (s Location) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s Location) GoString() string {
return s.String()
}
// SetPath sets the Path field's value.
func (s *Location) SetPath(v []*PathElement) *Location {
s.Path = v
return s
}
// SetSpan sets the Span field's value.
func (s *Location) SetSpan(v *Span) *Location {
s.Span = v
return s
}
// The proposed InternetConfiguration or VpcConfiguration to apply to the Amazon
// S3 Access point. You can make the access point accessible from the internet,
// or you can specify that all requests made through that access point must
// originate from a specific virtual private cloud (VPC). You can specify only
// one type of network configuration. For more information, see Creating access
// points (https://docs.aws.amazon.com/AmazonS3/latest/dev/creating-access-points.html).
type NetworkOriginConfiguration struct {
_ struct{} `type:"structure"`
// The configuration for the Amazon S3 access point with an Internet origin.
InternetConfiguration *InternetConfiguration `locationName:"internetConfiguration" type:"structure"`
// The proposed virtual private cloud (VPC) configuration for the Amazon S3
// access point. For more information, see VpcConfiguration (https://docs.aws.amazon.com/AmazonS3/latest/API/API_control_VpcConfiguration.html).
VpcConfiguration *VpcConfiguration `locationName:"vpcConfiguration" type:"structure"`
}
// String returns the string representation
func (s NetworkOriginConfiguration) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s NetworkOriginConfiguration) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
func (s *NetworkOriginConfiguration) Validate() error {
invalidParams := request.ErrInvalidParams{Context: "NetworkOriginConfiguration"}
if s.VpcConfiguration != nil {
if err := s.VpcConfiguration.Validate(); err != nil {
invalidParams.AddNested("VpcConfiguration", err.(request.ErrInvalidParams))
}
}
if invalidParams.Len() > 0 {
return invalidParams
}
return nil
}
// SetInternetConfiguration sets the InternetConfiguration field's value.
func (s *NetworkOriginConfiguration) SetInternetConfiguration(v *InternetConfiguration) *NetworkOriginConfiguration {
s.InternetConfiguration = v
return s
}
// SetVpcConfiguration sets the VpcConfiguration field's value.
func (s *NetworkOriginConfiguration) SetVpcConfiguration(v *VpcConfiguration) *NetworkOriginConfiguration {
s.VpcConfiguration = v
return s
}
// A single element in a path through the JSON representation of a policy.
type PathElement struct {
_ struct{} `type:"structure"`
// Refers to an index in a JSON array.
Index *int64 `locationName:"index" type:"integer"`
// Refers to a key in a JSON object.
Key *string `locationName:"key" type:"string"`
// Refers to a substring of a literal string in a JSON object.
Substring *Substring `locationName:"substring" type:"structure"`
// Refers to the value associated with a given key in a JSON object.
Value *string `locationName:"value" type:"string"`
}
// String returns the string representation
func (s PathElement) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s PathElement) GoString() string {
return s.String()
}
// SetIndex sets the Index field's value.
func (s *PathElement) SetIndex(v int64) *PathElement {
s.Index = &v
return s
}
// SetKey sets the Key field's value.
func (s *PathElement) SetKey(v string) *PathElement {
s.Key = &v
return s
}
// SetSubstring sets the Substring field's value.
func (s *PathElement) SetSubstring(v *Substring) *PathElement {
s.Substring = v
return s
}
// SetValue sets the Value field's value.
func (s *PathElement) SetValue(v string) *PathElement {
s.Value = &v
return s
}
// Contains details about the policy generation status and properties.
type PolicyGeneration struct {
_ struct{} `type:"structure"`
// A timestamp of when the policy generation was completed.
CompletedOn *time.Time `locationName:"completedOn" type:"timestamp" timestampFormat:"iso8601"`
// The JobId that is returned by the StartPolicyGeneration operation. The JobId
// can be used with GetGeneratedPolicy to retrieve the generated policies or
// used with CancelPolicyGeneration to cancel the policy generation request.
//
// JobId is a required field
JobId *string `locationName:"jobId" type:"string" required:"true"`
// The ARN of the IAM entity (user or role) for which you are generating a policy.
//
// PrincipalArn is a required field
PrincipalArn *string `locationName:"principalArn" type:"string" required:"true"`
// A timestamp of when the policy generation started.
//
// StartedOn is a required field
StartedOn *time.Time `locationName:"startedOn" type:"timestamp" timestampFormat:"iso8601" required:"true"`
// The status of the policy generation request.
//
// Status is a required field
Status *string `locationName:"status" type:"string" required:"true" enum:"JobStatus"`
}
// String returns the string representation
func (s PolicyGeneration) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s PolicyGeneration) GoString() string {
return s.String()
}
// SetCompletedOn sets the CompletedOn field's value.
func (s *PolicyGeneration) SetCompletedOn(v time.Time) *PolicyGeneration {
s.CompletedOn = &v
return s
}
// SetJobId sets the JobId field's value.
func (s *PolicyGeneration) SetJobId(v string) *PolicyGeneration {
s.JobId = &v
return s
}
// SetPrincipalArn sets the PrincipalArn field's value.
func (s *PolicyGeneration) SetPrincipalArn(v string) *PolicyGeneration {
s.PrincipalArn = &v
return s
}
// SetStartedOn sets the StartedOn field's value.
func (s *PolicyGeneration) SetStartedOn(v time.Time) *PolicyGeneration {
s.StartedOn = &v
return s
}
// SetStatus sets the Status field's value.
func (s *PolicyGeneration) SetStatus(v string) *PolicyGeneration {
s.Status = &v
return s
}
// Contains the ARN details about the IAM entity for which the policy is generated.
type PolicyGenerationDetails struct {
_ struct{} `type:"structure"`
// The ARN of the IAM entity (user or role) for which you are generating a policy.
//
// PrincipalArn is a required field
PrincipalArn *string `locationName:"principalArn" type:"string" required:"true"`
}
// String returns the string representation
func (s PolicyGenerationDetails) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s PolicyGenerationDetails) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
func (s *PolicyGenerationDetails) Validate() error {
invalidParams := request.ErrInvalidParams{Context: "PolicyGenerationDetails"}
if s.PrincipalArn == nil {
invalidParams.Add(request.NewErrParamRequired("PrincipalArn"))
}
if invalidParams.Len() > 0 {
return invalidParams
}
return nil
}
// SetPrincipalArn sets the PrincipalArn field's value.
func (s *PolicyGenerationDetails) SetPrincipalArn(v string) *PolicyGenerationDetails {
s.PrincipalArn = &v
return s
}
// A position in a policy.
type Position struct {
_ struct{} `type:"structure"`
// The column of the position, starting from 0.
//
// Column is a required field
Column *int64 `locationName:"column" type:"integer" required:"true"`
// The line of the position, starting from 1.
//
// Line is a required field
Line *int64 `locationName:"line" type:"integer" required:"true"`
// The offset within the policy that corresponds to the position, starting from
// 0.
//
// Offset is a required field
Offset *int64 `locationName:"offset" type:"integer" required:"true"`
}
// String returns the string representation
func (s Position) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s Position) GoString() string {
return s.String()
}
// SetColumn sets the Column field's value.
func (s *Position) SetColumn(v int64) *Position {
s.Column = &v
return s
}
// SetLine sets the Line field's value.
func (s *Position) SetLine(v int64) *Position {
s.Line = &v
return s
}
// SetOffset sets the Offset field's value.
func (s *Position) SetOffset(v int64) *Position {
s.Offset = &v
return s
}
// The specified resource could not be found.
type ResourceNotFoundException struct {
_ struct{} `type:"structure"`
RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
// The ID of the resource.
//
// ResourceId is a required field
ResourceId *string `locationName:"resourceId" type:"string" required:"true"`
// The type of the resource.
//
// ResourceType is a required field
ResourceType *string `locationName:"resourceType" type:"string" required:"true"`
}
// String returns the string representation
func (s ResourceNotFoundException) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s ResourceNotFoundException) GoString() string {
return s.String()
}
func newErrorResourceNotFoundException(v protocol.ResponseMetadata) error {
return &ResourceNotFoundException{
RespMetadata: v,
}
}
// Code returns the exception type name.
func (s *ResourceNotFoundException) Code() string {
return "ResourceNotFoundException"
}
// Message returns the exception's message.
func (s *ResourceNotFoundException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
return ""
}
// OrigErr always returns nil, satisfies awserr.Error interface.
func (s *ResourceNotFoundException) OrigErr() error {
return nil
}
func (s *ResourceNotFoundException) Error() string {
return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String())
}
// Status code returns the HTTP status code for the request's response error.
func (s *ResourceNotFoundException) StatusCode() int {
return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
func (s *ResourceNotFoundException) RequestID() string {
return s.RespMetadata.RequestID
}
// The configuration for an Amazon S3 access point for the bucket. You can propose
// up to 10 access points per bucket. If the proposed Amazon S3 access point
// configuration is for an existing bucket, the access preview uses the proposed
// access point configuration in place of the existing access points. To propose
// an access point without a policy, you can provide an empty string as the
// access point policy. For more information, see Creating access points (https://docs.aws.amazon.com/https:/docs.aws.amazon.com/AmazonS3/latest/dev/creating-access-points.html).
// For more information about access point policy limits, see Access points
// restrictions and limitations (https://docs.aws.amazon.com/AmazonS3/latest/dev/access-points-restrictions-limitations.html).
type S3AccessPointConfiguration struct {
_ struct{} `type:"structure"`
// The access point policy.
AccessPointPolicy *string `locationName:"accessPointPolicy" type:"string"`
// The proposed Internet and VpcConfiguration to apply to this Amazon S3 access
// point. If the access preview is for a new resource and neither is specified,
// the access preview uses Internet for the network origin. If the access preview
// is for an existing resource and neither is specified, the access preview
// uses the exiting network origin.
NetworkOrigin *NetworkOriginConfiguration `locationName:"networkOrigin" type:"structure"`
// The proposed S3PublicAccessBlock configuration to apply to this Amazon S3
// Access Point.
PublicAccessBlock *S3PublicAccessBlockConfiguration `locationName:"publicAccessBlock" type:"structure"`
}
// String returns the string representation
func (s S3AccessPointConfiguration) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s S3AccessPointConfiguration) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
func (s *S3AccessPointConfiguration) Validate() error {
invalidParams := request.ErrInvalidParams{Context: "S3AccessPointConfiguration"}
if s.NetworkOrigin != nil {
if err := s.NetworkOrigin.Validate(); err != nil {
invalidParams.AddNested("NetworkOrigin", err.(request.ErrInvalidParams))
}
}
if s.PublicAccessBlock != nil {
if err := s.PublicAccessBlock.Validate(); err != nil {
invalidParams.AddNested("PublicAccessBlock", err.(request.ErrInvalidParams))
}
}
if invalidParams.Len() > 0 {
return invalidParams
}
return nil
}
// SetAccessPointPolicy sets the AccessPointPolicy field's value.
func (s *S3AccessPointConfiguration) SetAccessPointPolicy(v string) *S3AccessPointConfiguration {
s.AccessPointPolicy = &v
return s
}
// SetNetworkOrigin sets the NetworkOrigin field's value.
func (s *S3AccessPointConfiguration) SetNetworkOrigin(v *NetworkOriginConfiguration) *S3AccessPointConfiguration {
s.NetworkOrigin = v
return s
}
// SetPublicAccessBlock sets the PublicAccessBlock field's value.
func (s *S3AccessPointConfiguration) SetPublicAccessBlock(v *S3PublicAccessBlockConfiguration) *S3AccessPointConfiguration {
s.PublicAccessBlock = v
return s
}
// A proposed access control list grant configuration for an Amazon S3 bucket.
// For more information, see How to Specify an ACL (https://docs.aws.amazon.com/AmazonS3/latest/dev/acl-overview.html#setting-acls).
type S3BucketAclGrantConfiguration struct {
_ struct{} `type:"structure"`
// The grantee to whom you’re assigning access rights.
//
// Grantee is a required field
Grantee *AclGrantee `locationName:"grantee" type:"structure" required:"true"`
// The permissions being granted.
//
// Permission is a required field
Permission *string `locationName:"permission" type:"string" required:"true" enum:"AclPermission"`
}
// String returns the string representation
func (s S3BucketAclGrantConfiguration) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s S3BucketAclGrantConfiguration) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
func (s *S3BucketAclGrantConfiguration) Validate() error {
invalidParams := request.ErrInvalidParams{Context: "S3BucketAclGrantConfiguration"}
if s.Grantee == nil {
invalidParams.Add(request.NewErrParamRequired("Grantee"))
}
if s.Permission == nil {
invalidParams.Add(request.NewErrParamRequired("Permission"))
}
if invalidParams.Len() > 0 {
return invalidParams
}
return nil
}
// SetGrantee sets the Grantee field's value.
func (s *S3BucketAclGrantConfiguration) SetGrantee(v *AclGrantee) *S3BucketAclGrantConfiguration {
s.Grantee = v
return s
}
// SetPermission sets the Permission field's value.
func (s *S3BucketAclGrantConfiguration) SetPermission(v string) *S3BucketAclGrantConfiguration {
s.Permission = &v
return s
}
// Proposed access control configuration for an Amazon S3 bucket. You can propose
// a configuration for a new Amazon S3 bucket or an existing Amazon S3 bucket
// that you own by specifying the Amazon S3 bucket policy, bucket ACLs, bucket
// BPA settings, and Amazon S3 access points attached to the bucket. If the
// configuration is for an existing Amazon S3 bucket and you do not specify
// the Amazon S3 bucket policy, the access preview uses the existing policy
// attached to the bucket. If the access preview is for a new resource and you
// do not specify the Amazon S3 bucket policy, the access preview assumes a
// bucket without a policy. To propose deletion of an existing bucket policy,
// you can specify an empty string. For more information about bucket policy
// limits, see Bucket Policy Examples (https://docs.aws.amazon.com/AmazonS3/latest/dev/example-bucket-policies.html).
type S3BucketConfiguration struct {
_ struct{} `type:"structure"`
// The configuration of Amazon S3 access points for the bucket.
AccessPoints map[string]*S3AccessPointConfiguration `locationName:"accessPoints" type:"map"`
// The proposed list of ACL grants for the Amazon S3 bucket. You can propose
// up to 100 ACL grants per bucket. If the proposed grant configuration is for
// an existing bucket, the access preview uses the proposed list of grant configurations
// in place of the existing grants. Otherwise, the access preview uses the existing
// grants for the bucket.
BucketAclGrants []*S3BucketAclGrantConfiguration `locationName:"bucketAclGrants" type:"list"`
// The proposed bucket policy for the Amazon S3 bucket.
BucketPolicy *string `locationName:"bucketPolicy" type:"string"`
// The proposed block public access configuration for the Amazon S3 bucket.
BucketPublicAccessBlock *S3PublicAccessBlockConfiguration `locationName:"bucketPublicAccessBlock" type:"structure"`
}
// String returns the string representation
func (s S3BucketConfiguration) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s S3BucketConfiguration) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
func (s *S3BucketConfiguration) Validate() error {
invalidParams := request.ErrInvalidParams{Context: "S3BucketConfiguration"}
if s.AccessPoints != nil {
for i, v := range s.AccessPoints {
if v == nil {
continue
}
if err := v.Validate(); err != nil {
invalidParams.AddNested(fmt.Sprintf("%s[%v]", "AccessPoints", i), err.(request.ErrInvalidParams))
}
}
}
if s.BucketAclGrants != nil {
for i, v := range s.BucketAclGrants {
if v == nil {
continue
}
if err := v.Validate(); err != nil {
invalidParams.AddNested(fmt.Sprintf("%s[%v]", "BucketAclGrants", i), err.(request.ErrInvalidParams))
}
}
}
if s.BucketPublicAccessBlock != nil {
if err := s.BucketPublicAccessBlock.Validate(); err != nil {
invalidParams.AddNested("BucketPublicAccessBlock", err.(request.ErrInvalidParams))
}
}
if invalidParams.Len() > 0 {
return invalidParams
}
return nil
}
// SetAccessPoints sets the AccessPoints field's value.
func (s *S3BucketConfiguration) SetAccessPoints(v map[string]*S3AccessPointConfiguration) *S3BucketConfiguration {
s.AccessPoints = v
return s
}
// SetBucketAclGrants sets the BucketAclGrants field's value.
func (s *S3BucketConfiguration) SetBucketAclGrants(v []*S3BucketAclGrantConfiguration) *S3BucketConfiguration {
s.BucketAclGrants = v
return s
}
// SetBucketPolicy sets the BucketPolicy field's value.
func (s *S3BucketConfiguration) SetBucketPolicy(v string) *S3BucketConfiguration {
s.BucketPolicy = &v
return s
}
// SetBucketPublicAccessBlock sets the BucketPublicAccessBlock field's value.
func (s *S3BucketConfiguration) SetBucketPublicAccessBlock(v *S3PublicAccessBlockConfiguration) *S3BucketConfiguration {
s.BucketPublicAccessBlock = v
return s
}
// The PublicAccessBlock configuration to apply to this Amazon S3 bucket. If
// the proposed configuration is for an existing Amazon S3 bucket and the configuration
// is not specified, the access preview uses the existing setting. If the proposed
// configuration is for a new bucket and the configuration is not specified,
// the access preview uses false. If the proposed configuration is for a new
// access point and the access point BPA configuration is not specified, the
// access preview uses true. For more information, see PublicAccessBlockConfiguration
// (https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-s3-bucket-publicaccessblockconfiguration.html).
type S3PublicAccessBlockConfiguration struct {
_ struct{} `type:"structure"`
// Specifies whether Amazon S3 should ignore public ACLs for this bucket and
// objects in this bucket.
//
// IgnorePublicAcls is a required field
IgnorePublicAcls *bool `locationName:"ignorePublicAcls" type:"boolean" required:"true"`
// Specifies whether Amazon S3 should restrict public bucket policies for this
// bucket.
//
// RestrictPublicBuckets is a required field
RestrictPublicBuckets *bool `locationName:"restrictPublicBuckets" type:"boolean" required:"true"`
}
// String returns the string representation
func (s S3PublicAccessBlockConfiguration) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s S3PublicAccessBlockConfiguration) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
func (s *S3PublicAccessBlockConfiguration) Validate() error {
invalidParams := request.ErrInvalidParams{Context: "S3PublicAccessBlockConfiguration"}
if s.IgnorePublicAcls == nil {
invalidParams.Add(request.NewErrParamRequired("IgnorePublicAcls"))
}
if s.RestrictPublicBuckets == nil {
invalidParams.Add(request.NewErrParamRequired("RestrictPublicBuckets"))
}
if invalidParams.Len() > 0 {
return invalidParams
}
return nil
}
// SetIgnorePublicAcls sets the IgnorePublicAcls field's value.
func (s *S3PublicAccessBlockConfiguration) SetIgnorePublicAcls(v bool) *S3PublicAccessBlockConfiguration {
s.IgnorePublicAcls = &v
return s
}
// SetRestrictPublicBuckets sets the RestrictPublicBuckets field's value.
func (s *S3PublicAccessBlockConfiguration) SetRestrictPublicBuckets(v bool) *S3PublicAccessBlockConfiguration {
s.RestrictPublicBuckets = &v
return s
}
// The configuration for a Secrets Manager secret. For more information, see
// CreateSecret (https://docs.aws.amazon.com/secretsmanager/latest/apireference/API_CreateSecret.html).
//
// You can propose a configuration for a new secret or an existing secret that
// you own by specifying the secret policy and optional KMS encryption key.
// If the configuration is for an existing secret and you do not specify the
// secret policy, the access preview uses the existing policy for the secret.
// If the access preview is for a new resource and you do not specify the policy,
// the access preview assumes a secret without a policy. To propose deletion
// of an existing policy, you can specify an empty string. If the proposed configuration
// is for a new secret and you do not specify the KMS key ID, the access preview
// uses the default CMK of the AWS account. If you specify an empty string for
// the KMS key ID, the access preview uses the default CMK of the AWS account.
// For more information about secret policy limits, see Quotas for AWS Secrets
// Manager. (https://docs.aws.amazon.com/secretsmanager/latest/userguide/reference_limits.html).
type SecretsManagerSecretConfiguration struct {
_ struct{} `type:"structure"`
// The proposed ARN, key ID, or alias of the AWS KMS customer master key (CMK).
KmsKeyId *string `locationName:"kmsKeyId" type:"string"`
// The proposed resource policy defining who can access or manage the secret.
SecretPolicy *string `locationName:"secretPolicy" type:"string"`
}
// String returns the string representation
func (s SecretsManagerSecretConfiguration) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s SecretsManagerSecretConfiguration) GoString() string {
return s.String()
}
// SetKmsKeyId sets the KmsKeyId field's value.
func (s *SecretsManagerSecretConfiguration) SetKmsKeyId(v string) *SecretsManagerSecretConfiguration {
s.KmsKeyId = &v
return s
}
// SetSecretPolicy sets the SecretPolicy field's value.
func (s *SecretsManagerSecretConfiguration) SetSecretPolicy(v string) *SecretsManagerSecretConfiguration {
s.SecretPolicy = &v
return s
}
// Service quote met error.
type ServiceQuotaExceededException struct {
_ struct{} `type:"structure"`
RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
// The resource ID.
//
// ResourceId is a required field
ResourceId *string `locationName:"resourceId" type:"string" required:"true"`
// The resource type.
//
// ResourceType is a required field
ResourceType *string `locationName:"resourceType" type:"string" required:"true"`
}
// String returns the string representation
func (s ServiceQuotaExceededException) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s ServiceQuotaExceededException) GoString() string {
return s.String()
}
func newErrorServiceQuotaExceededException(v protocol.ResponseMetadata) error {
return &ServiceQuotaExceededException{
RespMetadata: v,
}
}
// Code returns the exception type name.
func (s *ServiceQuotaExceededException) Code() string {
return "ServiceQuotaExceededException"
}
// Message returns the exception's message.
func (s *ServiceQuotaExceededException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
return ""
}
// OrigErr always returns nil, satisfies awserr.Error interface.
func (s *ServiceQuotaExceededException) OrigErr() error {
return nil
}
func (s *ServiceQuotaExceededException) Error() string {
return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String())
}
// Status code returns the HTTP status code for the request's response error.
func (s *ServiceQuotaExceededException) StatusCode() int {
return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
func (s *ServiceQuotaExceededException) RequestID() string {
return s.RespMetadata.RequestID
}
// The criteria used to sort.
type SortCriteria struct {
_ struct{} `type:"structure"`
// The name of the attribute to sort on.
AttributeName *string `locationName:"attributeName" type:"string"`
// The sort order, ascending or descending.
OrderBy *string `locationName:"orderBy" type:"string" enum:"OrderBy"`
}
// String returns the string representation
func (s SortCriteria) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s SortCriteria) GoString() string {
return s.String()
}
// SetAttributeName sets the AttributeName field's value.
func (s *SortCriteria) SetAttributeName(v string) *SortCriteria {
s.AttributeName = &v
return s
}
// SetOrderBy sets the OrderBy field's value.
func (s *SortCriteria) SetOrderBy(v string) *SortCriteria {
s.OrderBy = &v
return s
}
// A span in a policy. The span consists of a start position (inclusive) and
// end position (exclusive).
type Span struct {
_ struct{} `type:"structure"`
// The end position of the span (exclusive).
//
// End is a required field
End *Position `locationName:"end" type:"structure" required:"true"`
// The start position of the span (inclusive).
//
// Start is a required field
Start *Position `locationName:"start" type:"structure" required:"true"`
}
// String returns the string representation
func (s Span) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s Span) GoString() string {
return s.String()
}
// SetEnd sets the End field's value.
func (s *Span) SetEnd(v *Position) *Span {
s.End = v
return s
}
// SetStart sets the Start field's value.
func (s *Span) SetStart(v *Position) *Span {
s.Start = v
return s
}
// The proposed access control configuration for an SQS queue. You can propose
// a configuration for a new SQS queue or an existing SQS queue that you own
// by specifying the SQS policy. If the configuration is for an existing SQS
// queue and you do not specify the SQS policy, the access preview uses the
// existing SQS policy for the queue. If the access preview is for a new resource
// and you do not specify the policy, the access preview assumes an SQS queue
// without a policy. To propose deletion of an existing SQS queue policy, you
// can specify an empty string for the SQS policy. For more information about
// SQS policy limits, see Quotas related to policies (https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/quotas-policies.html).
type SqsQueueConfiguration struct {
_ struct{} `type:"structure"`
// The proposed resource policy for the SQS queue.
QueuePolicy *string `locationName:"queuePolicy" type:"string"`
}
// String returns the string representation
func (s SqsQueueConfiguration) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s SqsQueueConfiguration) GoString() string {
return s.String()
}
// SetQueuePolicy sets the QueuePolicy field's value.
func (s *SqsQueueConfiguration) SetQueuePolicy(v string) *SqsQueueConfiguration {
s.QueuePolicy = &v
return s
}
type StartPolicyGenerationInput struct {
_ struct{} `type:"structure"`
// A unique, case-sensitive identifier that you provide to ensure the idempotency
// of the request. Idempotency ensures that an API request completes only once.
// With an idempotent request, if the original request completes successfully,
// the subsequent retries with the same client token return the result from
// the original successful request and they have no additional effect.
//
// If you do not specify a client token, one is automatically generated by the
// AWS SDK.
ClientToken *string `locationName:"clientToken" type:"string" idempotencyToken:"true"`
// A CloudTrailDetails object that contains details about a Trail that you want
// to analyze to generate policies.
CloudTrailDetails *CloudTrailDetails `locationName:"cloudTrailDetails" type:"structure"`
// Contains the ARN of the IAM entity (user or role) for which you are generating
// a policy.
//
// PolicyGenerationDetails is a required field
PolicyGenerationDetails *PolicyGenerationDetails `locationName:"policyGenerationDetails" type:"structure" required:"true"`
}
// String returns the string representation
func (s StartPolicyGenerationInput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s StartPolicyGenerationInput) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
func (s *StartPolicyGenerationInput) Validate() error {
invalidParams := request.ErrInvalidParams{Context: "StartPolicyGenerationInput"}
if s.PolicyGenerationDetails == nil {
invalidParams.Add(request.NewErrParamRequired("PolicyGenerationDetails"))
}
if s.CloudTrailDetails != nil {
if err := s.CloudTrailDetails.Validate(); err != nil {
invalidParams.AddNested("CloudTrailDetails", err.(request.ErrInvalidParams))
}
}
if s.PolicyGenerationDetails != nil {
if err := s.PolicyGenerationDetails.Validate(); err != nil {
invalidParams.AddNested("PolicyGenerationDetails", err.(request.ErrInvalidParams))
}
}
if invalidParams.Len() > 0 {
return invalidParams
}
return nil
}
// SetClientToken sets the ClientToken field's value.
func (s *StartPolicyGenerationInput) SetClientToken(v string) *StartPolicyGenerationInput {
s.ClientToken = &v
return s
}
// SetCloudTrailDetails sets the CloudTrailDetails field's value.
func (s *StartPolicyGenerationInput) SetCloudTrailDetails(v *CloudTrailDetails) *StartPolicyGenerationInput {
s.CloudTrailDetails = v
return s
}
// SetPolicyGenerationDetails sets the PolicyGenerationDetails field's value.
func (s *StartPolicyGenerationInput) SetPolicyGenerationDetails(v *PolicyGenerationDetails) *StartPolicyGenerationInput {
s.PolicyGenerationDetails = v
return s
}
type StartPolicyGenerationOutput struct {
_ struct{} `type:"structure"`
// The JobId that is returned by the StartPolicyGeneration operation. The JobId
// can be used with GetGeneratedPolicy to retrieve the generated policies or
// used with CancelPolicyGeneration to cancel the policy generation request.
//
// JobId is a required field
JobId *string `locationName:"jobId" type:"string" required:"true"`
}
// String returns the string representation
func (s StartPolicyGenerationOutput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s StartPolicyGenerationOutput) GoString() string {
return s.String()
}
// SetJobId sets the JobId field's value.
func (s *StartPolicyGenerationOutput) SetJobId(v string) *StartPolicyGenerationOutput {
s.JobId = &v
return s
}
// Starts a scan of the policies applied to the specified resource.
type StartResourceScanInput struct {
_ struct{} `type:"structure"`
// The ARN of the analyzer (https://docs.aws.amazon.com/IAM/latest/UserGuide/access-analyzer-getting-started.html#permission-resources)
// to use to scan the policies applied to the specified resource.
//
// AnalyzerArn is a required field
AnalyzerArn *string `locationName:"analyzerArn" type:"string" required:"true"`
// The ARN of the resource to scan.
//
// ResourceArn is a required field
ResourceArn *string `locationName:"resourceArn" type:"string" required:"true"`
}
// String returns the string representation
func (s StartResourceScanInput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s StartResourceScanInput) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
func (s *StartResourceScanInput) Validate() error {
invalidParams := request.ErrInvalidParams{Context: "StartResourceScanInput"}
if s.AnalyzerArn == nil {
invalidParams.Add(request.NewErrParamRequired("AnalyzerArn"))
}
if s.ResourceArn == nil {
invalidParams.Add(request.NewErrParamRequired("ResourceArn"))
}
if invalidParams.Len() > 0 {
return invalidParams
}
return nil
}
// SetAnalyzerArn sets the AnalyzerArn field's value.
func (s *StartResourceScanInput) SetAnalyzerArn(v string) *StartResourceScanInput {
s.AnalyzerArn = &v
return s
}
// SetResourceArn sets the ResourceArn field's value.
func (s *StartResourceScanInput) SetResourceArn(v string) *StartResourceScanInput {
s.ResourceArn = &v
return s
}
type StartResourceScanOutput struct {
_ struct{} `type:"structure"`
}
// String returns the string representation
func (s StartResourceScanOutput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s StartResourceScanOutput) GoString() string {
return s.String()
}
// Provides more details about the current status of the analyzer. For example,
// if the creation for the analyzer fails, a Failed status is returned. For
// an analyzer with organization as the type, this failure can be due to an
// issue with creating the service-linked roles required in the member accounts
// of the AWS organization.
type StatusReason struct {
_ struct{} `type:"structure"`
// The reason code for the current status of the analyzer.
//
// Code is a required field
Code *string `locationName:"code" type:"string" required:"true" enum:"ReasonCode"`
}
// String returns the string representation
func (s StatusReason) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s StatusReason) GoString() string {
return s.String()
}
// SetCode sets the Code field's value.
func (s *StatusReason) SetCode(v string) *StatusReason {
s.Code = &v
return s
}
// A reference to a substring of a literal string in a JSON document.
type Substring struct {
_ struct{} `type:"structure"`
// The length of the substring.
//
// Length is a required field
Length *int64 `locationName:"length" type:"integer" required:"true"`
// The start index of the substring, starting from 0.
//
// Start is a required field
Start *int64 `locationName:"start" type:"integer" required:"true"`
}
// String returns the string representation
func (s Substring) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s Substring) GoString() string {
return s.String()
}
// SetLength sets the Length field's value.
func (s *Substring) SetLength(v int64) *Substring {
s.Length = &v
return s
}
// SetStart sets the Start field's value.
func (s *Substring) SetStart(v int64) *Substring {
s.Start = &v
return s
}
// Adds a tag to the specified resource.
type TagResourceInput struct {
_ struct{} `type:"structure"`
// The ARN of the resource to add the tag to.
//
// ResourceArn is a required field
ResourceArn *string `location:"uri" locationName:"resourceArn" type:"string" required:"true"`
// The tags to add to the resource.
//
// Tags is a required field
Tags map[string]*string `locationName:"tags" type:"map" required:"true"`
}
// String returns the string representation
func (s TagResourceInput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s TagResourceInput) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
func (s *TagResourceInput) Validate() error {
invalidParams := request.ErrInvalidParams{Context: "TagResourceInput"}
if s.ResourceArn == nil {
invalidParams.Add(request.NewErrParamRequired("ResourceArn"))
}
if s.ResourceArn != nil && len(*s.ResourceArn) < 1 {
invalidParams.Add(request.NewErrParamMinLen("ResourceArn", 1))
}
if s.Tags == nil {
invalidParams.Add(request.NewErrParamRequired("Tags"))
}
if invalidParams.Len() > 0 {
return invalidParams
}
return nil
}
// SetResourceArn sets the ResourceArn field's value.
func (s *TagResourceInput) SetResourceArn(v string) *TagResourceInput {
s.ResourceArn = &v
return s
}
// SetTags sets the Tags field's value.
func (s *TagResourceInput) SetTags(v map[string]*string) *TagResourceInput {
s.Tags = v
return s
}
// The response to the request.
type TagResourceOutput struct {
_ struct{} `type:"structure"`
}
// String returns the string representation
func (s TagResourceOutput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s TagResourceOutput) GoString() string {
return s.String()
}
// Throttling limit exceeded error.
type ThrottlingException struct {
_ struct{} `type:"structure"`
RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
// The seconds to wait to retry.
RetryAfterSeconds *int64 `location:"header" locationName:"Retry-After" type:"integer"`
}
// String returns the string representation
func (s ThrottlingException) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s ThrottlingException) GoString() string {
return s.String()
}
func newErrorThrottlingException(v protocol.ResponseMetadata) error {
return &ThrottlingException{
RespMetadata: v,
}
}
// Code returns the exception type name.
func (s *ThrottlingException) Code() string {
return "ThrottlingException"
}
// Message returns the exception's message.
func (s *ThrottlingException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
return ""
}
// OrigErr always returns nil, satisfies awserr.Error interface.
func (s *ThrottlingException) OrigErr() error {
return nil
}
func (s *ThrottlingException) Error() string {
return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String())
}
// Status code returns the HTTP status code for the request's response error.
func (s *ThrottlingException) StatusCode() int {
return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
func (s *ThrottlingException) RequestID() string {
return s.RespMetadata.RequestID
}
// Contains details about the CloudTrail trail being analyzed to generate a
// policy.
type Trail struct {
_ struct{} `type:"structure"`
// Possible values are true or false. If set to true, Access Analyzer retrieves
// CloudTrail data from all regions to analyze and generate a policy.
AllRegions *bool `locationName:"allRegions" type:"boolean"`
// Specifies the ARN of the trail. The format of a trail ARN is arn:aws:cloudtrail:us-east-2:123456789012:trail/MyTrail.
//
// CloudTrailArn is a required field
CloudTrailArn *string `locationName:"cloudTrailArn" type:"string" required:"true"`
// A list of regions to get CloudTrail data from and analyze to generate a policy.
Regions []*string `locationName:"regions" type:"list"`
}
// String returns the string representation
func (s Trail) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s Trail) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
func (s *Trail) Validate() error {
invalidParams := request.ErrInvalidParams{Context: "Trail"}
if s.CloudTrailArn == nil {
invalidParams.Add(request.NewErrParamRequired("CloudTrailArn"))
}
if invalidParams.Len() > 0 {
return invalidParams
}
return nil
}
// SetAllRegions sets the AllRegions field's value.
func (s *Trail) SetAllRegions(v bool) *Trail {
s.AllRegions = &v
return s
}
// SetCloudTrailArn sets the CloudTrailArn field's value.
func (s *Trail) SetCloudTrailArn(v string) *Trail {
s.CloudTrailArn = &v
return s
}
// SetRegions sets the Regions field's value.
func (s *Trail) SetRegions(v []*string) *Trail {
s.Regions = v
return s
}
// Contains details about the CloudTrail trail being analyzed to generate a
// policy.
type TrailProperties struct {
_ struct{} `type:"structure"`
// Possible values are true or false. If set to true, Access Analyzer retrieves
// CloudTrail data from all regions to analyze and generate a policy.
AllRegions *bool `locationName:"allRegions" type:"boolean"`
// Specifies the ARN of the trail. The format of a trail ARN is arn:aws:cloudtrail:us-east-2:123456789012:trail/MyTrail.
//
// CloudTrailArn is a required field
CloudTrailArn *string `locationName:"cloudTrailArn" type:"string" required:"true"`
// A list of regions to get CloudTrail data from and analyze to generate a policy.
Regions []*string `locationName:"regions" type:"list"`
}
// String returns the string representation
func (s TrailProperties) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s TrailProperties) GoString() string {
return s.String()
}
// SetAllRegions sets the AllRegions field's value.
func (s *TrailProperties) SetAllRegions(v bool) *TrailProperties {
s.AllRegions = &v
return s
}
// SetCloudTrailArn sets the CloudTrailArn field's value.
func (s *TrailProperties) SetCloudTrailArn(v string) *TrailProperties {
s.CloudTrailArn = &v
return s
}
// SetRegions sets the Regions field's value.
func (s *TrailProperties) SetRegions(v []*string) *TrailProperties {
s.Regions = v
return s
}
// Removes a tag from the specified resource.
type UntagResourceInput struct {
_ struct{} `type:"structure"`
// The ARN of the resource to remove the tag from.
//
// ResourceArn is a required field
ResourceArn *string `location:"uri" locationName:"resourceArn" type:"string" required:"true"`
// The key for the tag to add.
//
// TagKeys is a required field
TagKeys []*string `location:"querystring" locationName:"tagKeys" type:"list" required:"true"`
}
// String returns the string representation
func (s UntagResourceInput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s UntagResourceInput) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
func (s *UntagResourceInput) Validate() error {
invalidParams := request.ErrInvalidParams{Context: "UntagResourceInput"}
if s.ResourceArn == nil {
invalidParams.Add(request.NewErrParamRequired("ResourceArn"))
}
if s.ResourceArn != nil && len(*s.ResourceArn) < 1 {
invalidParams.Add(request.NewErrParamMinLen("ResourceArn", 1))
}
if s.TagKeys == nil {
invalidParams.Add(request.NewErrParamRequired("TagKeys"))
}
if invalidParams.Len() > 0 {
return invalidParams
}
return nil
}
// SetResourceArn sets the ResourceArn field's value.
func (s *UntagResourceInput) SetResourceArn(v string) *UntagResourceInput {
s.ResourceArn = &v
return s
}
// SetTagKeys sets the TagKeys field's value.
func (s *UntagResourceInput) SetTagKeys(v []*string) *UntagResourceInput {
s.TagKeys = v
return s
}
// The response to the request.
type UntagResourceOutput struct {
_ struct{} `type:"structure"`
}
// String returns the string representation
func (s UntagResourceOutput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s UntagResourceOutput) GoString() string {
return s.String()
}
// Updates the specified archive rule.
type UpdateArchiveRuleInput struct {
_ struct{} `type:"structure"`
// The name of the analyzer to update the archive rules for.
//
// AnalyzerName is a required field
AnalyzerName *string `location:"uri" locationName:"analyzerName" min:"1" type:"string" required:"true"`
// A client token.
ClientToken *string `locationName:"clientToken" type:"string" idempotencyToken:"true"`
// A filter to match for the rules to update. Only rules that match the filter
// are updated.
//
// Filter is a required field
Filter map[string]*Criterion `locationName:"filter" type:"map" required:"true"`
// The name of the rule to update.
//
// RuleName is a required field
RuleName *string `location:"uri" locationName:"ruleName" min:"1" type:"string" required:"true"`
}
// String returns the string representation
func (s UpdateArchiveRuleInput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s UpdateArchiveRuleInput) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
func (s *UpdateArchiveRuleInput) Validate() error {
invalidParams := request.ErrInvalidParams{Context: "UpdateArchiveRuleInput"}
if s.AnalyzerName == nil {
invalidParams.Add(request.NewErrParamRequired("AnalyzerName"))
}
if s.AnalyzerName != nil && len(*s.AnalyzerName) < 1 {
invalidParams.Add(request.NewErrParamMinLen("AnalyzerName", 1))
}
if s.Filter == nil {
invalidParams.Add(request.NewErrParamRequired("Filter"))
}
if s.RuleName == nil {
invalidParams.Add(request.NewErrParamRequired("RuleName"))
}
if s.RuleName != nil && len(*s.RuleName) < 1 {
invalidParams.Add(request.NewErrParamMinLen("RuleName", 1))
}
if s.Filter != nil {
for i, v := range s.Filter {
if v == nil {
continue
}
if err := v.Validate(); err != nil {
invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Filter", i), err.(request.ErrInvalidParams))
}
}
}
if invalidParams.Len() > 0 {
return invalidParams
}
return nil
}
// SetAnalyzerName sets the AnalyzerName field's value.
func (s *UpdateArchiveRuleInput) SetAnalyzerName(v string) *UpdateArchiveRuleInput {
s.AnalyzerName = &v
return s
}
// SetClientToken sets the ClientToken field's value.
func (s *UpdateArchiveRuleInput) SetClientToken(v string) *UpdateArchiveRuleInput {
s.ClientToken = &v
return s
}
// SetFilter sets the Filter field's value.
func (s *UpdateArchiveRuleInput) SetFilter(v map[string]*Criterion) *UpdateArchiveRuleInput {
s.Filter = v
return s
}
// SetRuleName sets the RuleName field's value.
func (s *UpdateArchiveRuleInput) SetRuleName(v string) *UpdateArchiveRuleInput {
s.RuleName = &v
return s
}
type UpdateArchiveRuleOutput struct {
_ struct{} `type:"structure"`
}
// String returns the string representation
func (s UpdateArchiveRuleOutput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s UpdateArchiveRuleOutput) GoString() string {
return s.String()
}
// Updates findings with the new values provided in the request.
type UpdateFindingsInput struct {
_ struct{} `type:"structure"`
// The ARN of the analyzer (https://docs.aws.amazon.com/IAM/latest/UserGuide/access-analyzer-getting-started.html#permission-resources)
// that generated the findings to update.
//
// AnalyzerArn is a required field
AnalyzerArn *string `locationName:"analyzerArn" type:"string" required:"true"`
// A client token.
ClientToken *string `locationName:"clientToken" type:"string" idempotencyToken:"true"`
// The IDs of the findings to update.
Ids []*string `locationName:"ids" type:"list"`
// The ARN of the resource identified in the finding.
ResourceArn *string `locationName:"resourceArn" type:"string"`
// The state represents the action to take to update the finding Status. Use
// ARCHIVE to change an Active finding to an Archived finding. Use ACTIVE to
// change an Archived finding to an Active finding.
//
// Status is a required field
Status *string `locationName:"status" type:"string" required:"true" enum:"FindingStatusUpdate"`
}
// String returns the string representation
func (s UpdateFindingsInput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s UpdateFindingsInput) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
func (s *UpdateFindingsInput) Validate() error {
invalidParams := request.ErrInvalidParams{Context: "UpdateFindingsInput"}
if s.AnalyzerArn == nil {
invalidParams.Add(request.NewErrParamRequired("AnalyzerArn"))
}
if s.Status == nil {
invalidParams.Add(request.NewErrParamRequired("Status"))
}
if invalidParams.Len() > 0 {
return invalidParams
}
return nil
}
// SetAnalyzerArn sets the AnalyzerArn field's value.
func (s *UpdateFindingsInput) SetAnalyzerArn(v string) *UpdateFindingsInput {
s.AnalyzerArn = &v
return s
}
// SetClientToken sets the ClientToken field's value.
func (s *UpdateFindingsInput) SetClientToken(v string) *UpdateFindingsInput {
s.ClientToken = &v
return s
}
// SetIds sets the Ids field's value.
func (s *UpdateFindingsInput) SetIds(v []*string) *UpdateFindingsInput {
s.Ids = v
return s
}
// SetResourceArn sets the ResourceArn field's value.
func (s *UpdateFindingsInput) SetResourceArn(v string) *UpdateFindingsInput {
s.ResourceArn = &v
return s
}
// SetStatus sets the Status field's value.
func (s *UpdateFindingsInput) SetStatus(v string) *UpdateFindingsInput {
s.Status = &v
return s
}
type UpdateFindingsOutput struct {
_ struct{} `type:"structure"`
}
// String returns the string representation
func (s UpdateFindingsOutput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s UpdateFindingsOutput) GoString() string {
return s.String()
}
// A finding in a policy. Each finding is an actionable recommendation that
// can be used to improve the policy.
type ValidatePolicyFinding struct {
_ struct{} `type:"structure"`
// A localized message that explains the finding and provides guidance on how
// to address it.
//
// FindingDetails is a required field
FindingDetails *string `locationName:"findingDetails" type:"string" required:"true"`
// The impact of the finding.
//
// Security warnings report when the policy allows access that we consider overly
// permissive.
//
// Errors report when a part of the policy is not functional.
//
// Warnings report non-security issues when a policy does not conform to policy
// writing best practices.
//
// Suggestions recommend stylistic improvements in the policy that do not impact
// access.
//
// FindingType is a required field
FindingType *string `locationName:"findingType" type:"string" required:"true" enum:"ValidatePolicyFindingType"`
// The issue code provides an identifier of the issue associated with this finding.
//
// IssueCode is a required field
IssueCode *string `locationName:"issueCode" type:"string" required:"true"`
// A link to additional documentation about the type of finding.
//
// LearnMoreLink is a required field
LearnMoreLink *string `locationName:"learnMoreLink" type:"string" required:"true"`
// The list of locations in the policy document that are related to the finding.
// The issue code provides a summary of an issue identified by the finding.
//
// Locations is a required field
Locations []*Location `locationName:"locations" type:"list" required:"true"`
}
// String returns the string representation
func (s ValidatePolicyFinding) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s ValidatePolicyFinding) GoString() string {
return s.String()
}
// SetFindingDetails sets the FindingDetails field's value.
func (s *ValidatePolicyFinding) SetFindingDetails(v string) *ValidatePolicyFinding {
s.FindingDetails = &v
return s
}
// SetFindingType sets the FindingType field's value.
func (s *ValidatePolicyFinding) SetFindingType(v string) *ValidatePolicyFinding {
s.FindingType = &v
return s
}
// SetIssueCode sets the IssueCode field's value.
func (s *ValidatePolicyFinding) SetIssueCode(v string) *ValidatePolicyFinding {
s.IssueCode = &v
return s
}
// SetLearnMoreLink sets the LearnMoreLink field's value.
func (s *ValidatePolicyFinding) SetLearnMoreLink(v string) *ValidatePolicyFinding {
s.LearnMoreLink = &v
return s
}
// SetLocations sets the Locations field's value.
func (s *ValidatePolicyFinding) SetLocations(v []*Location) *ValidatePolicyFinding {
s.Locations = v
return s
}
type ValidatePolicyInput struct {
_ struct{} `type:"structure"`
// The locale to use for localizing the findings.
Locale *string `locationName:"locale" type:"string" enum:"Locale"`
// The maximum number of results to return in the response.
MaxResults *int64 `location:"querystring" locationName:"maxResults" type:"integer"`
// A token used for pagination of results returned.
NextToken *string `location:"querystring" locationName:"nextToken" type:"string"`
// The JSON policy document to use as the content for the policy.
//
// PolicyDocument is a required field
PolicyDocument *string `locationName:"policyDocument" type:"string" required:"true"`
// The type of policy to validate. Identity policies grant permissions to IAM
// principals. Identity policies include managed and inline policies for IAM
// roles, users, and groups. They also include service-control policies (SCPs)
// that are attached to an AWS organization, organizational unit (OU), or an
// account.
//
// Resource policies grant permissions on AWS resources. Resource policies include
// trust policies for IAM roles and bucket policies for S3 buckets. You can
// provide a generic input such as identity policy or resource policy or a specific
// input such as managed policy or S3 bucket policy.
//
// PolicyType is a required field
PolicyType *string `locationName:"policyType" type:"string" required:"true" enum:"PolicyType"`
}
// String returns the string representation
func (s ValidatePolicyInput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s ValidatePolicyInput) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
func (s *ValidatePolicyInput) Validate() error {
invalidParams := request.ErrInvalidParams{Context: "ValidatePolicyInput"}
if s.PolicyDocument == nil {
invalidParams.Add(request.NewErrParamRequired("PolicyDocument"))
}
if s.PolicyType == nil {
invalidParams.Add(request.NewErrParamRequired("PolicyType"))
}
if invalidParams.Len() > 0 {
return invalidParams
}
return nil
}
// SetLocale sets the Locale field's value.
func (s *ValidatePolicyInput) SetLocale(v string) *ValidatePolicyInput {
s.Locale = &v
return s
}
// SetMaxResults sets the MaxResults field's value.
func (s *ValidatePolicyInput) SetMaxResults(v int64) *ValidatePolicyInput {
s.MaxResults = &v
return s
}
// SetNextToken sets the NextToken field's value.
func (s *ValidatePolicyInput) SetNextToken(v string) *ValidatePolicyInput {
s.NextToken = &v
return s
}
// SetPolicyDocument sets the PolicyDocument field's value.
func (s *ValidatePolicyInput) SetPolicyDocument(v string) *ValidatePolicyInput {
s.PolicyDocument = &v
return s
}
// SetPolicyType sets the PolicyType field's value.
func (s *ValidatePolicyInput) SetPolicyType(v string) *ValidatePolicyInput {
s.PolicyType = &v
return s
}
type ValidatePolicyOutput struct {
_ struct{} `type:"structure"`
// The list of findings in a policy returned by Access Analyzer based on its
// suite of policy checks.
//
// Findings is a required field
Findings []*ValidatePolicyFinding `locationName:"findings" type:"list" required:"true"`
// A token used for pagination of results returned.
NextToken *string `locationName:"nextToken" type:"string"`
}
// String returns the string representation
func (s ValidatePolicyOutput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s ValidatePolicyOutput) GoString() string {
return s.String()
}
// SetFindings sets the Findings field's value.
func (s *ValidatePolicyOutput) SetFindings(v []*ValidatePolicyFinding) *ValidatePolicyOutput {
s.Findings = v
return s
}
// SetNextToken sets the NextToken field's value.
func (s *ValidatePolicyOutput) SetNextToken(v string) *ValidatePolicyOutput {
s.NextToken = &v
return s
}
// Validation exception error.
type ValidationException struct {
_ struct{} `type:"structure"`
RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
// A list of fields that didn't validate.
FieldList []*ValidationExceptionField `locationName:"fieldList" type:"list"`
Message_ *string `locationName:"message" type:"string"`
// The reason for the exception.
//
// Reason is a required field
Reason *string `locationName:"reason" type:"string" required:"true" enum:"ValidationExceptionReason"`
}
// String returns the string representation
func (s ValidationException) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s ValidationException) GoString() string {
return s.String()
}
func newErrorValidationException(v protocol.ResponseMetadata) error {
return &ValidationException{
RespMetadata: v,
}
}
// Code returns the exception type name.
func (s *ValidationException) Code() string {
return "ValidationException"
}
// Message returns the exception's message.
func (s *ValidationException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
return ""
}
// OrigErr always returns nil, satisfies awserr.Error interface.
func (s *ValidationException) OrigErr() error {
return nil
}
func (s *ValidationException) Error() string {
return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String())
}
// Status code returns the HTTP status code for the request's response error.
func (s *ValidationException) StatusCode() int {
return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
func (s *ValidationException) RequestID() string {
return s.RespMetadata.RequestID
}
// Contains information about a validation exception.
type ValidationExceptionField struct {
_ struct{} `type:"structure"`
// A message about the validation exception.
//
// Message is a required field
Message *string `locationName:"message" type:"string" required:"true"`
// The name of the validation exception.
//
// Name is a required field
Name *string `locationName:"name" type:"string" required:"true"`
}
// String returns the string representation
func (s ValidationExceptionField) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s ValidationExceptionField) GoString() string {
return s.String()
}
// SetMessage sets the Message field's value.
func (s *ValidationExceptionField) SetMessage(v string) *ValidationExceptionField {
s.Message = &v
return s
}
// SetName sets the Name field's value.
func (s *ValidationExceptionField) SetName(v string) *ValidationExceptionField {
s.Name = &v
return s
}
// The proposed virtual private cloud (VPC) configuration for the Amazon S3
// access point. For more information, see VpcConfiguration (https://docs.aws.amazon.com/AmazonS3/latest/API/API_control_VpcConfiguration.html).
type VpcConfiguration struct {
_ struct{} `type:"structure"`
// If this field is specified, this access point will only allow connections
// from the specified VPC ID.
//
// VpcId is a required field
VpcId *string `locationName:"vpcId" type:"string" required:"true"`
}
// String returns the string representation
func (s VpcConfiguration) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s VpcConfiguration) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
func (s *VpcConfiguration) Validate() error {
invalidParams := request.ErrInvalidParams{Context: "VpcConfiguration"}
if s.VpcId == nil {
invalidParams.Add(request.NewErrParamRequired("VpcId"))
}
if invalidParams.Len() > 0 {
return invalidParams
}
return nil
}
// SetVpcId sets the VpcId field's value.
func (s *VpcConfiguration) SetVpcId(v string) *VpcConfiguration {
s.VpcId = &v
return s
}
const (
// AccessPreviewStatusCompleted is a AccessPreviewStatus enum value
AccessPreviewStatusCompleted = "COMPLETED"
// AccessPreviewStatusCreating is a AccessPreviewStatus enum value
AccessPreviewStatusCreating = "CREATING"
// AccessPreviewStatusFailed is a AccessPreviewStatus enum value
AccessPreviewStatusFailed = "FAILED"
)
// AccessPreviewStatus_Values returns all elements of the AccessPreviewStatus enum
func AccessPreviewStatus_Values() []string {
return []string{
AccessPreviewStatusCompleted,
AccessPreviewStatusCreating,
AccessPreviewStatusFailed,
}
}
const (
// AccessPreviewStatusReasonCodeInternalError is a AccessPreviewStatusReasonCode enum value
AccessPreviewStatusReasonCodeInternalError = "INTERNAL_ERROR"
// AccessPreviewStatusReasonCodeInvalidConfiguration is a AccessPreviewStatusReasonCode enum value
AccessPreviewStatusReasonCodeInvalidConfiguration = "INVALID_CONFIGURATION"
)
// AccessPreviewStatusReasonCode_Values returns all elements of the AccessPreviewStatusReasonCode enum
func AccessPreviewStatusReasonCode_Values() []string {
return []string{
AccessPreviewStatusReasonCodeInternalError,
AccessPreviewStatusReasonCodeInvalidConfiguration,
}
}
const (
// AclPermissionRead is a AclPermission enum value
AclPermissionRead = "READ"
// AclPermissionWrite is a AclPermission enum value
AclPermissionWrite = "WRITE"
// AclPermissionReadAcp is a AclPermission enum value
AclPermissionReadAcp = "READ_ACP"
// AclPermissionWriteAcp is a AclPermission enum value
AclPermissionWriteAcp = "WRITE_ACP"
// AclPermissionFullControl is a AclPermission enum value
AclPermissionFullControl = "FULL_CONTROL"
)
// AclPermission_Values returns all elements of the AclPermission enum
func AclPermission_Values() []string {
return []string{
AclPermissionRead,
AclPermissionWrite,
AclPermissionReadAcp,
AclPermissionWriteAcp,
AclPermissionFullControl,
}
}
const (
// AnalyzerStatusActive is a AnalyzerStatus enum value
AnalyzerStatusActive = "ACTIVE"
// AnalyzerStatusCreating is a AnalyzerStatus enum value
AnalyzerStatusCreating = "CREATING"
// AnalyzerStatusDisabled is a AnalyzerStatus enum value
AnalyzerStatusDisabled = "DISABLED"
// AnalyzerStatusFailed is a AnalyzerStatus enum value
AnalyzerStatusFailed = "FAILED"
)
// AnalyzerStatus_Values returns all elements of the AnalyzerStatus enum
func AnalyzerStatus_Values() []string {
return []string{
AnalyzerStatusActive,
AnalyzerStatusCreating,
AnalyzerStatusDisabled,
AnalyzerStatusFailed,
}
}
const (
// FindingChangeTypeChanged is a FindingChangeType enum value
FindingChangeTypeChanged = "CHANGED"
// FindingChangeTypeNew is a FindingChangeType enum value
FindingChangeTypeNew = "NEW"
// FindingChangeTypeUnchanged is a FindingChangeType enum value
FindingChangeTypeUnchanged = "UNCHANGED"
)
// FindingChangeType_Values returns all elements of the FindingChangeType enum
func FindingChangeType_Values() []string {
return []string{
FindingChangeTypeChanged,
FindingChangeTypeNew,
FindingChangeTypeUnchanged,
}
}
const (
// FindingSourceTypePolicy is a FindingSourceType enum value
FindingSourceTypePolicy = "POLICY"
// FindingSourceTypeBucketAcl is a FindingSourceType enum value
FindingSourceTypeBucketAcl = "BUCKET_ACL"
// FindingSourceTypeS3AccessPoint is a FindingSourceType enum value
FindingSourceTypeS3AccessPoint = "S3_ACCESS_POINT"
)
// FindingSourceType_Values returns all elements of the FindingSourceType enum
func FindingSourceType_Values() []string {
return []string{
FindingSourceTypePolicy,
FindingSourceTypeBucketAcl,
FindingSourceTypeS3AccessPoint,
}
}
const (
// FindingStatusActive is a FindingStatus enum value
FindingStatusActive = "ACTIVE"
// FindingStatusArchived is a FindingStatus enum value
FindingStatusArchived = "ARCHIVED"
// FindingStatusResolved is a FindingStatus enum value
FindingStatusResolved = "RESOLVED"
)
// FindingStatus_Values returns all elements of the FindingStatus enum
func FindingStatus_Values() []string {
return []string{
FindingStatusActive,
FindingStatusArchived,
FindingStatusResolved,
}
}
const (
// FindingStatusUpdateActive is a FindingStatusUpdate enum value
FindingStatusUpdateActive = "ACTIVE"
// FindingStatusUpdateArchived is a FindingStatusUpdate enum value
FindingStatusUpdateArchived = "ARCHIVED"
)
// FindingStatusUpdate_Values returns all elements of the FindingStatusUpdate enum
func FindingStatusUpdate_Values() []string {
return []string{
FindingStatusUpdateActive,
FindingStatusUpdateArchived,
}
}
const (
// JobErrorCodeAuthorizationError is a JobErrorCode enum value
JobErrorCodeAuthorizationError = "AUTHORIZATION_ERROR"
// JobErrorCodeResourceNotFoundError is a JobErrorCode enum value
JobErrorCodeResourceNotFoundError = "RESOURCE_NOT_FOUND_ERROR"
// JobErrorCodeServiceQuotaExceededError is a JobErrorCode enum value
JobErrorCodeServiceQuotaExceededError = "SERVICE_QUOTA_EXCEEDED_ERROR"
// JobErrorCodeServiceError is a JobErrorCode enum value
JobErrorCodeServiceError = "SERVICE_ERROR"
)
// JobErrorCode_Values returns all elements of the JobErrorCode enum
func JobErrorCode_Values() []string {
return []string{
JobErrorCodeAuthorizationError,
JobErrorCodeResourceNotFoundError,
JobErrorCodeServiceQuotaExceededError,
JobErrorCodeServiceError,
}
}
const (
// JobStatusInProgress is a JobStatus enum value
JobStatusInProgress = "IN_PROGRESS"
// JobStatusSucceeded is a JobStatus enum value
JobStatusSucceeded = "SUCCEEDED"
// JobStatusFailed is a JobStatus enum value
JobStatusFailed = "FAILED"
// JobStatusCanceled is a JobStatus enum value
JobStatusCanceled = "CANCELED"
)
// JobStatus_Values returns all elements of the JobStatus enum
func JobStatus_Values() []string {
return []string{
JobStatusInProgress,
JobStatusSucceeded,
JobStatusFailed,
JobStatusCanceled,
}
}
const (
// KmsGrantOperationCreateGrant is a KmsGrantOperation enum value
KmsGrantOperationCreateGrant = "CreateGrant"
// KmsGrantOperationDecrypt is a KmsGrantOperation enum value
KmsGrantOperationDecrypt = "Decrypt"
// KmsGrantOperationDescribeKey is a KmsGrantOperation enum value
KmsGrantOperationDescribeKey = "DescribeKey"
// KmsGrantOperationEncrypt is a KmsGrantOperation enum value
KmsGrantOperationEncrypt = "Encrypt"
// KmsGrantOperationGenerateDataKey is a KmsGrantOperation enum value
KmsGrantOperationGenerateDataKey = "GenerateDataKey"
// KmsGrantOperationGenerateDataKeyPair is a KmsGrantOperation enum value
KmsGrantOperationGenerateDataKeyPair = "GenerateDataKeyPair"
// KmsGrantOperationGenerateDataKeyPairWithoutPlaintext is a KmsGrantOperation enum value
KmsGrantOperationGenerateDataKeyPairWithoutPlaintext = "GenerateDataKeyPairWithoutPlaintext"
// KmsGrantOperationGenerateDataKeyWithoutPlaintext is a KmsGrantOperation enum value
KmsGrantOperationGenerateDataKeyWithoutPlaintext = "GenerateDataKeyWithoutPlaintext"
// KmsGrantOperationGetPublicKey is a KmsGrantOperation enum value
KmsGrantOperationGetPublicKey = "GetPublicKey"
// KmsGrantOperationReEncryptFrom is a KmsGrantOperation enum value
KmsGrantOperationReEncryptFrom = "ReEncryptFrom"
// KmsGrantOperationReEncryptTo is a KmsGrantOperation enum value
KmsGrantOperationReEncryptTo = "ReEncryptTo"
// KmsGrantOperationRetireGrant is a KmsGrantOperation enum value
KmsGrantOperationRetireGrant = "RetireGrant"
// KmsGrantOperationSign is a KmsGrantOperation enum value
KmsGrantOperationSign = "Sign"
// KmsGrantOperationVerify is a KmsGrantOperation enum value
KmsGrantOperationVerify = "Verify"
)
// KmsGrantOperation_Values returns all elements of the KmsGrantOperation enum
func KmsGrantOperation_Values() []string {
return []string{
KmsGrantOperationCreateGrant,
KmsGrantOperationDecrypt,
KmsGrantOperationDescribeKey,
KmsGrantOperationEncrypt,
KmsGrantOperationGenerateDataKey,
KmsGrantOperationGenerateDataKeyPair,
KmsGrantOperationGenerateDataKeyPairWithoutPlaintext,
KmsGrantOperationGenerateDataKeyWithoutPlaintext,
KmsGrantOperationGetPublicKey,
KmsGrantOperationReEncryptFrom,
KmsGrantOperationReEncryptTo,
KmsGrantOperationRetireGrant,
KmsGrantOperationSign,
KmsGrantOperationVerify,
}
}
const (
// LocaleDe is a Locale enum value
LocaleDe = "DE"
// LocaleEn is a Locale enum value
LocaleEn = "EN"
// LocaleEs is a Locale enum value
LocaleEs = "ES"
// LocaleFr is a Locale enum value
LocaleFr = "FR"
// LocaleIt is a Locale enum value
LocaleIt = "IT"
// LocaleJa is a Locale enum value
LocaleJa = "JA"
// LocaleKo is a Locale enum value
LocaleKo = "KO"
// LocalePtBr is a Locale enum value
LocalePtBr = "PT_BR"
// LocaleZhCn is a Locale enum value
LocaleZhCn = "ZH_CN"
// LocaleZhTw is a Locale enum value
LocaleZhTw = "ZH_TW"
)
// Locale_Values returns all elements of the Locale enum
func Locale_Values() []string {
return []string{
LocaleDe,
LocaleEn,
LocaleEs,
LocaleFr,
LocaleIt,
LocaleJa,
LocaleKo,
LocalePtBr,
LocaleZhCn,
LocaleZhTw,
}
}
const (
// OrderByAsc is a OrderBy enum value
OrderByAsc = "ASC"
// OrderByDesc is a OrderBy enum value
OrderByDesc = "DESC"
)
// OrderBy_Values returns all elements of the OrderBy enum
func OrderBy_Values() []string {
return []string{
OrderByAsc,
OrderByDesc,
}
}
const (
// PolicyTypeIdentityPolicy is a PolicyType enum value
PolicyTypeIdentityPolicy = "IDENTITY_POLICY"
// PolicyTypeResourcePolicy is a PolicyType enum value
PolicyTypeResourcePolicy = "RESOURCE_POLICY"
// PolicyTypeServiceControlPolicy is a PolicyType enum value
PolicyTypeServiceControlPolicy = "SERVICE_CONTROL_POLICY"
)
// PolicyType_Values returns all elements of the PolicyType enum
func PolicyType_Values() []string {
return []string{
PolicyTypeIdentityPolicy,
PolicyTypeResourcePolicy,
PolicyTypeServiceControlPolicy,
}
}
const (
// ReasonCodeAwsServiceAccessDisabled is a ReasonCode enum value
ReasonCodeAwsServiceAccessDisabled = "AWS_SERVICE_ACCESS_DISABLED"
// ReasonCodeDelegatedAdministratorDeregistered is a ReasonCode enum value
ReasonCodeDelegatedAdministratorDeregistered = "DELEGATED_ADMINISTRATOR_DEREGISTERED"
// ReasonCodeOrganizationDeleted is a ReasonCode enum value
ReasonCodeOrganizationDeleted = "ORGANIZATION_DELETED"
// ReasonCodeServiceLinkedRoleCreationFailed is a ReasonCode enum value
ReasonCodeServiceLinkedRoleCreationFailed = "SERVICE_LINKED_ROLE_CREATION_FAILED"
)
// ReasonCode_Values returns all elements of the ReasonCode enum
func ReasonCode_Values() []string {
return []string{
ReasonCodeAwsServiceAccessDisabled,
ReasonCodeDelegatedAdministratorDeregistered,
ReasonCodeOrganizationDeleted,
ReasonCodeServiceLinkedRoleCreationFailed,
}
}
const (
// ResourceTypeAwsS3Bucket is a ResourceType enum value
ResourceTypeAwsS3Bucket = "AWS::S3::Bucket"
// ResourceTypeAwsIamRole is a ResourceType enum value
ResourceTypeAwsIamRole = "AWS::IAM::Role"
// ResourceTypeAwsSqsQueue is a ResourceType enum value
ResourceTypeAwsSqsQueue = "AWS::SQS::Queue"
// ResourceTypeAwsLambdaFunction is a ResourceType enum value
ResourceTypeAwsLambdaFunction = "AWS::Lambda::Function"
// ResourceTypeAwsLambdaLayerVersion is a ResourceType enum value
ResourceTypeAwsLambdaLayerVersion = "AWS::Lambda::LayerVersion"
// ResourceTypeAwsKmsKey is a ResourceType enum value
ResourceTypeAwsKmsKey = "AWS::KMS::Key"
// ResourceTypeAwsSecretsManagerSecret is a ResourceType enum value
ResourceTypeAwsSecretsManagerSecret = "AWS::SecretsManager::Secret"
)
// ResourceType_Values returns all elements of the ResourceType enum
func ResourceType_Values() []string {
return []string{
ResourceTypeAwsS3Bucket,
ResourceTypeAwsIamRole,
ResourceTypeAwsSqsQueue,
ResourceTypeAwsLambdaFunction,
ResourceTypeAwsLambdaLayerVersion,
ResourceTypeAwsKmsKey,
ResourceTypeAwsSecretsManagerSecret,
}
}
const (
// TypeAccount is a Type enum value
TypeAccount = "ACCOUNT"
// TypeOrganization is a Type enum value
TypeOrganization = "ORGANIZATION"
)
// Type_Values returns all elements of the Type enum
func Type_Values() []string {
return []string{
TypeAccount,
TypeOrganization,
}
}
const (
// ValidatePolicyFindingTypeError is a ValidatePolicyFindingType enum value
ValidatePolicyFindingTypeError = "ERROR"
// ValidatePolicyFindingTypeSecurityWarning is a ValidatePolicyFindingType enum value
ValidatePolicyFindingTypeSecurityWarning = "SECURITY_WARNING"
// ValidatePolicyFindingTypeSuggestion is a ValidatePolicyFindingType enum value
ValidatePolicyFindingTypeSuggestion = "SUGGESTION"
// ValidatePolicyFindingTypeWarning is a ValidatePolicyFindingType enum value
ValidatePolicyFindingTypeWarning = "WARNING"
)
// ValidatePolicyFindingType_Values returns all elements of the ValidatePolicyFindingType enum
func ValidatePolicyFindingType_Values() []string {
return []string{
ValidatePolicyFindingTypeError,
ValidatePolicyFindingTypeSecurityWarning,
ValidatePolicyFindingTypeSuggestion,
ValidatePolicyFindingTypeWarning,
}
}
const (
// ValidationExceptionReasonUnknownOperation is a ValidationExceptionReason enum value
ValidationExceptionReasonUnknownOperation = "unknownOperation"
// ValidationExceptionReasonCannotParse is a ValidationExceptionReason enum value
ValidationExceptionReasonCannotParse = "cannotParse"
// ValidationExceptionReasonFieldValidationFailed is a ValidationExceptionReason enum value
ValidationExceptionReasonFieldValidationFailed = "fieldValidationFailed"
// ValidationExceptionReasonOther is a ValidationExceptionReason enum value
ValidationExceptionReasonOther = "other"
)
// ValidationExceptionReason_Values returns all elements of the ValidationExceptionReason enum
func ValidationExceptionReason_Values() []string {
return []string{
ValidationExceptionReasonUnknownOperation,
ValidationExceptionReasonCannotParse,
ValidationExceptionReasonFieldValidationFailed,
ValidationExceptionReasonOther,
}
}
| 9,566 |
session-manager-plugin | aws | Go | // Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
// Package accessanalyzer provides the client and types for making API
// requests to Access Analyzer.
//
// AWS IAM Access Analyzer helps identify potential resource-access risks by
// enabling you to identify any policies that grant access to an external principal.
// It does this by using logic-based reasoning to analyze resource-based policies
// in your AWS environment. An external principal can be another AWS account,
// a root user, an IAM user or role, a federated user, an AWS service, or an
// anonymous user. You can also use Access Analyzer to preview and validate
// public and cross-account access to your resources before deploying permissions
// changes. This guide describes the AWS IAM Access Analyzer operations that
// you can call programmatically. For general information about Access Analyzer,
// see AWS IAM Access Analyzer (https://docs.aws.amazon.com/IAM/latest/UserGuide/what-is-access-analyzer.html)
// in the IAM User Guide.
//
// To start using Access Analyzer, you first need to create an analyzer.
//
// See https://docs.aws.amazon.com/goto/WebAPI/accessanalyzer-2019-11-01 for more information on this service.
//
// See accessanalyzer package documentation for more information.
// https://docs.aws.amazon.com/sdk-for-go/api/service/accessanalyzer/
//
// Using the Client
//
// To contact Access Analyzer 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 Access Analyzer client AccessAnalyzer for more
// information on creating client for this service.
// https://docs.aws.amazon.com/sdk-for-go/api/service/accessanalyzer/#New
package accessanalyzer
| 41 |
session-manager-plugin | aws | Go | // Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
package accessanalyzer
import (
"github.com/aws/aws-sdk-go/private/protocol"
)
const (
// ErrCodeAccessDeniedException for service response error code
// "AccessDeniedException".
//
// You do not have sufficient access to perform this action.
ErrCodeAccessDeniedException = "AccessDeniedException"
// ErrCodeConflictException for service response error code
// "ConflictException".
//
// A conflict exception error.
ErrCodeConflictException = "ConflictException"
// ErrCodeInternalServerException for service response error code
// "InternalServerException".
//
// Internal server error.
ErrCodeInternalServerException = "InternalServerException"
// ErrCodeResourceNotFoundException for service response error code
// "ResourceNotFoundException".
//
// The specified resource could not be found.
ErrCodeResourceNotFoundException = "ResourceNotFoundException"
// ErrCodeServiceQuotaExceededException for service response error code
// "ServiceQuotaExceededException".
//
// Service quote met error.
ErrCodeServiceQuotaExceededException = "ServiceQuotaExceededException"
// ErrCodeThrottlingException for service response error code
// "ThrottlingException".
//
// Throttling limit exceeded error.
ErrCodeThrottlingException = "ThrottlingException"
// ErrCodeValidationException for service response error code
// "ValidationException".
//
// Validation exception error.
ErrCodeValidationException = "ValidationException"
)
var exceptionFromCode = map[string]func(protocol.ResponseMetadata) error{
"AccessDeniedException": newErrorAccessDeniedException,
"ConflictException": newErrorConflictException,
"InternalServerException": newErrorInternalServerException,
"ResourceNotFoundException": newErrorResourceNotFoundException,
"ServiceQuotaExceededException": newErrorServiceQuotaExceededException,
"ThrottlingException": newErrorThrottlingException,
"ValidationException": newErrorValidationException,
}
| 63 |
session-manager-plugin | aws | Go | // Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
package accessanalyzer
import (
"github.com/aws/aws-sdk-go/aws"
"github.com/aws/aws-sdk-go/aws/client"
"github.com/aws/aws-sdk-go/aws/client/metadata"
"github.com/aws/aws-sdk-go/aws/request"
"github.com/aws/aws-sdk-go/aws/signer/v4"
"github.com/aws/aws-sdk-go/private/protocol"
"github.com/aws/aws-sdk-go/private/protocol/restjson"
)
// AccessAnalyzer provides the API operation methods for making requests to
// Access Analyzer. See this package's package overview docs
// for details on the service.
//
// AccessAnalyzer methods are safe to use concurrently. It is not safe to
// modify mutate any of the struct's properties though.
type AccessAnalyzer struct {
*client.Client
}
// Used for custom client initialization logic
var initClient func(*client.Client)
// Used for custom request initialization logic
var initRequest func(*request.Request)
// Service information constants
const (
ServiceName = "AccessAnalyzer" // Name of service.
EndpointsID = "access-analyzer" // ID to lookup a service endpoint with.
ServiceID = "AccessAnalyzer" // ServiceID is a unique identifier of a specific service.
)
// New creates a new instance of the AccessAnalyzer 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 AccessAnalyzer client from just a session.
// svc := accessanalyzer.New(mySession)
//
// // Create a AccessAnalyzer client with additional configuration
// svc := accessanalyzer.New(mySession, aws.NewConfig().WithRegion("us-west-2"))
func New(p client.ConfigProvider, cfgs ...*aws.Config) *AccessAnalyzer {
c := p.ClientConfig(EndpointsID, cfgs...)
if c.SigningNameDerived || len(c.SigningName) == 0 {
c.SigningName = "access-analyzer"
}
return newClient(*c.Config, c.Handlers, c.PartitionID, c.Endpoint, c.SigningRegion, c.SigningName)
}
// newClient creates, initializes and returns a new service client instance.
func newClient(cfg aws.Config, handlers request.Handlers, partitionID, endpoint, signingRegion, signingName string) *AccessAnalyzer {
svc := &AccessAnalyzer{
Client: client.New(
cfg,
metadata.ClientInfo{
ServiceName: ServiceName,
ServiceID: ServiceID,
SigningName: signingName,
SigningRegion: signingRegion,
PartitionID: partitionID,
Endpoint: endpoint,
APIVersion: "2019-11-01",
},
handlers,
),
}
// Handlers
svc.Handlers.Sign.PushBackNamed(v4.SignRequestHandler)
svc.Handlers.Build.PushBackNamed(restjson.BuildHandler)
svc.Handlers.Unmarshal.PushBackNamed(restjson.UnmarshalHandler)
svc.Handlers.UnmarshalMeta.PushBackNamed(restjson.UnmarshalMetaHandler)
svc.Handlers.UnmarshalError.PushBackNamed(
protocol.NewUnmarshalErrorHandler(restjson.NewUnmarshalTypedError(exceptionFromCode)).NamedHandler(),
)
// Run custom client initialization if present
if initClient != nil {
initClient(svc.Client)
}
return svc
}
// newRequest creates a new request for a AccessAnalyzer operation and runs any
// custom request initialization.
func (c *AccessAnalyzer) newRequest(op *request.Operation, params, data interface{}) *request.Request {
req := c.NewRequest(op, params, data)
// Run custom request initialization if present
if initRequest != nil {
initRequest(req)
}
return req
}
| 105 |
session-manager-plugin | aws | Go | // Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
// Package accessanalyzeriface provides an interface to enable mocking the Access Analyzer service client
// for testing your code.
//
// It is important to note that this interface will have breaking changes
// when the service model is updated and adds new API operations, paginators,
// and waiters.
package accessanalyzeriface
import (
"github.com/aws/aws-sdk-go/aws"
"github.com/aws/aws-sdk-go/aws/request"
"github.com/aws/aws-sdk-go/service/accessanalyzer"
)
// AccessAnalyzerAPI provides an interface to enable mocking the
// accessanalyzer.AccessAnalyzer service client's API operation,
// paginators, and waiters. This make unit testing your code that calls out
// to the SDK's service client's calls easier.
//
// The best way to use this interface is so the SDK's service client's calls
// can be stubbed out for unit testing your code with the SDK without needing
// to inject custom request handlers into the SDK's request pipeline.
//
// // myFunc uses an SDK service client to make a request to
// // Access Analyzer.
// func myFunc(svc accessanalyzeriface.AccessAnalyzerAPI) bool {
// // Make svc.ApplyArchiveRule request
// }
//
// func main() {
// sess := session.New()
// svc := accessanalyzer.New(sess)
//
// myFunc(svc)
// }
//
// In your _test.go file:
//
// // Define a mock struct to be used in your unit tests of myFunc.
// type mockAccessAnalyzerClient struct {
// accessanalyzeriface.AccessAnalyzerAPI
// }
// func (m *mockAccessAnalyzerClient) ApplyArchiveRule(input *accessanalyzer.ApplyArchiveRuleInput) (*accessanalyzer.ApplyArchiveRuleOutput, error) {
// // mock response/functionality
// }
//
// func TestMyFunc(t *testing.T) {
// // Setup Test
// mockSvc := &mockAccessAnalyzerClient{}
//
// myfunc(mockSvc)
//
// // Verify myFunc's functionality
// }
//
// It is important to note that this interface will have breaking changes
// when the service model is updated and adds new API operations, paginators,
// and waiters. Its suggested to use the pattern above for testing, or using
// tooling to generate mocks to satisfy the interfaces.
type AccessAnalyzerAPI interface {
ApplyArchiveRule(*accessanalyzer.ApplyArchiveRuleInput) (*accessanalyzer.ApplyArchiveRuleOutput, error)
ApplyArchiveRuleWithContext(aws.Context, *accessanalyzer.ApplyArchiveRuleInput, ...request.Option) (*accessanalyzer.ApplyArchiveRuleOutput, error)
ApplyArchiveRuleRequest(*accessanalyzer.ApplyArchiveRuleInput) (*request.Request, *accessanalyzer.ApplyArchiveRuleOutput)
CancelPolicyGeneration(*accessanalyzer.CancelPolicyGenerationInput) (*accessanalyzer.CancelPolicyGenerationOutput, error)
CancelPolicyGenerationWithContext(aws.Context, *accessanalyzer.CancelPolicyGenerationInput, ...request.Option) (*accessanalyzer.CancelPolicyGenerationOutput, error)
CancelPolicyGenerationRequest(*accessanalyzer.CancelPolicyGenerationInput) (*request.Request, *accessanalyzer.CancelPolicyGenerationOutput)
CreateAccessPreview(*accessanalyzer.CreateAccessPreviewInput) (*accessanalyzer.CreateAccessPreviewOutput, error)
CreateAccessPreviewWithContext(aws.Context, *accessanalyzer.CreateAccessPreviewInput, ...request.Option) (*accessanalyzer.CreateAccessPreviewOutput, error)
CreateAccessPreviewRequest(*accessanalyzer.CreateAccessPreviewInput) (*request.Request, *accessanalyzer.CreateAccessPreviewOutput)
CreateAnalyzer(*accessanalyzer.CreateAnalyzerInput) (*accessanalyzer.CreateAnalyzerOutput, error)
CreateAnalyzerWithContext(aws.Context, *accessanalyzer.CreateAnalyzerInput, ...request.Option) (*accessanalyzer.CreateAnalyzerOutput, error)
CreateAnalyzerRequest(*accessanalyzer.CreateAnalyzerInput) (*request.Request, *accessanalyzer.CreateAnalyzerOutput)
CreateArchiveRule(*accessanalyzer.CreateArchiveRuleInput) (*accessanalyzer.CreateArchiveRuleOutput, error)
CreateArchiveRuleWithContext(aws.Context, *accessanalyzer.CreateArchiveRuleInput, ...request.Option) (*accessanalyzer.CreateArchiveRuleOutput, error)
CreateArchiveRuleRequest(*accessanalyzer.CreateArchiveRuleInput) (*request.Request, *accessanalyzer.CreateArchiveRuleOutput)
DeleteAnalyzer(*accessanalyzer.DeleteAnalyzerInput) (*accessanalyzer.DeleteAnalyzerOutput, error)
DeleteAnalyzerWithContext(aws.Context, *accessanalyzer.DeleteAnalyzerInput, ...request.Option) (*accessanalyzer.DeleteAnalyzerOutput, error)
DeleteAnalyzerRequest(*accessanalyzer.DeleteAnalyzerInput) (*request.Request, *accessanalyzer.DeleteAnalyzerOutput)
DeleteArchiveRule(*accessanalyzer.DeleteArchiveRuleInput) (*accessanalyzer.DeleteArchiveRuleOutput, error)
DeleteArchiveRuleWithContext(aws.Context, *accessanalyzer.DeleteArchiveRuleInput, ...request.Option) (*accessanalyzer.DeleteArchiveRuleOutput, error)
DeleteArchiveRuleRequest(*accessanalyzer.DeleteArchiveRuleInput) (*request.Request, *accessanalyzer.DeleteArchiveRuleOutput)
GetAccessPreview(*accessanalyzer.GetAccessPreviewInput) (*accessanalyzer.GetAccessPreviewOutput, error)
GetAccessPreviewWithContext(aws.Context, *accessanalyzer.GetAccessPreviewInput, ...request.Option) (*accessanalyzer.GetAccessPreviewOutput, error)
GetAccessPreviewRequest(*accessanalyzer.GetAccessPreviewInput) (*request.Request, *accessanalyzer.GetAccessPreviewOutput)
GetAnalyzedResource(*accessanalyzer.GetAnalyzedResourceInput) (*accessanalyzer.GetAnalyzedResourceOutput, error)
GetAnalyzedResourceWithContext(aws.Context, *accessanalyzer.GetAnalyzedResourceInput, ...request.Option) (*accessanalyzer.GetAnalyzedResourceOutput, error)
GetAnalyzedResourceRequest(*accessanalyzer.GetAnalyzedResourceInput) (*request.Request, *accessanalyzer.GetAnalyzedResourceOutput)
GetAnalyzer(*accessanalyzer.GetAnalyzerInput) (*accessanalyzer.GetAnalyzerOutput, error)
GetAnalyzerWithContext(aws.Context, *accessanalyzer.GetAnalyzerInput, ...request.Option) (*accessanalyzer.GetAnalyzerOutput, error)
GetAnalyzerRequest(*accessanalyzer.GetAnalyzerInput) (*request.Request, *accessanalyzer.GetAnalyzerOutput)
GetArchiveRule(*accessanalyzer.GetArchiveRuleInput) (*accessanalyzer.GetArchiveRuleOutput, error)
GetArchiveRuleWithContext(aws.Context, *accessanalyzer.GetArchiveRuleInput, ...request.Option) (*accessanalyzer.GetArchiveRuleOutput, error)
GetArchiveRuleRequest(*accessanalyzer.GetArchiveRuleInput) (*request.Request, *accessanalyzer.GetArchiveRuleOutput)
GetFinding(*accessanalyzer.GetFindingInput) (*accessanalyzer.GetFindingOutput, error)
GetFindingWithContext(aws.Context, *accessanalyzer.GetFindingInput, ...request.Option) (*accessanalyzer.GetFindingOutput, error)
GetFindingRequest(*accessanalyzer.GetFindingInput) (*request.Request, *accessanalyzer.GetFindingOutput)
GetGeneratedPolicy(*accessanalyzer.GetGeneratedPolicyInput) (*accessanalyzer.GetGeneratedPolicyOutput, error)
GetGeneratedPolicyWithContext(aws.Context, *accessanalyzer.GetGeneratedPolicyInput, ...request.Option) (*accessanalyzer.GetGeneratedPolicyOutput, error)
GetGeneratedPolicyRequest(*accessanalyzer.GetGeneratedPolicyInput) (*request.Request, *accessanalyzer.GetGeneratedPolicyOutput)
ListAccessPreviewFindings(*accessanalyzer.ListAccessPreviewFindingsInput) (*accessanalyzer.ListAccessPreviewFindingsOutput, error)
ListAccessPreviewFindingsWithContext(aws.Context, *accessanalyzer.ListAccessPreviewFindingsInput, ...request.Option) (*accessanalyzer.ListAccessPreviewFindingsOutput, error)
ListAccessPreviewFindingsRequest(*accessanalyzer.ListAccessPreviewFindingsInput) (*request.Request, *accessanalyzer.ListAccessPreviewFindingsOutput)
ListAccessPreviewFindingsPages(*accessanalyzer.ListAccessPreviewFindingsInput, func(*accessanalyzer.ListAccessPreviewFindingsOutput, bool) bool) error
ListAccessPreviewFindingsPagesWithContext(aws.Context, *accessanalyzer.ListAccessPreviewFindingsInput, func(*accessanalyzer.ListAccessPreviewFindingsOutput, bool) bool, ...request.Option) error
ListAccessPreviews(*accessanalyzer.ListAccessPreviewsInput) (*accessanalyzer.ListAccessPreviewsOutput, error)
ListAccessPreviewsWithContext(aws.Context, *accessanalyzer.ListAccessPreviewsInput, ...request.Option) (*accessanalyzer.ListAccessPreviewsOutput, error)
ListAccessPreviewsRequest(*accessanalyzer.ListAccessPreviewsInput) (*request.Request, *accessanalyzer.ListAccessPreviewsOutput)
ListAccessPreviewsPages(*accessanalyzer.ListAccessPreviewsInput, func(*accessanalyzer.ListAccessPreviewsOutput, bool) bool) error
ListAccessPreviewsPagesWithContext(aws.Context, *accessanalyzer.ListAccessPreviewsInput, func(*accessanalyzer.ListAccessPreviewsOutput, bool) bool, ...request.Option) error
ListAnalyzedResources(*accessanalyzer.ListAnalyzedResourcesInput) (*accessanalyzer.ListAnalyzedResourcesOutput, error)
ListAnalyzedResourcesWithContext(aws.Context, *accessanalyzer.ListAnalyzedResourcesInput, ...request.Option) (*accessanalyzer.ListAnalyzedResourcesOutput, error)
ListAnalyzedResourcesRequest(*accessanalyzer.ListAnalyzedResourcesInput) (*request.Request, *accessanalyzer.ListAnalyzedResourcesOutput)
ListAnalyzedResourcesPages(*accessanalyzer.ListAnalyzedResourcesInput, func(*accessanalyzer.ListAnalyzedResourcesOutput, bool) bool) error
ListAnalyzedResourcesPagesWithContext(aws.Context, *accessanalyzer.ListAnalyzedResourcesInput, func(*accessanalyzer.ListAnalyzedResourcesOutput, bool) bool, ...request.Option) error
ListAnalyzers(*accessanalyzer.ListAnalyzersInput) (*accessanalyzer.ListAnalyzersOutput, error)
ListAnalyzersWithContext(aws.Context, *accessanalyzer.ListAnalyzersInput, ...request.Option) (*accessanalyzer.ListAnalyzersOutput, error)
ListAnalyzersRequest(*accessanalyzer.ListAnalyzersInput) (*request.Request, *accessanalyzer.ListAnalyzersOutput)
ListAnalyzersPages(*accessanalyzer.ListAnalyzersInput, func(*accessanalyzer.ListAnalyzersOutput, bool) bool) error
ListAnalyzersPagesWithContext(aws.Context, *accessanalyzer.ListAnalyzersInput, func(*accessanalyzer.ListAnalyzersOutput, bool) bool, ...request.Option) error
ListArchiveRules(*accessanalyzer.ListArchiveRulesInput) (*accessanalyzer.ListArchiveRulesOutput, error)
ListArchiveRulesWithContext(aws.Context, *accessanalyzer.ListArchiveRulesInput, ...request.Option) (*accessanalyzer.ListArchiveRulesOutput, error)
ListArchiveRulesRequest(*accessanalyzer.ListArchiveRulesInput) (*request.Request, *accessanalyzer.ListArchiveRulesOutput)
ListArchiveRulesPages(*accessanalyzer.ListArchiveRulesInput, func(*accessanalyzer.ListArchiveRulesOutput, bool) bool) error
ListArchiveRulesPagesWithContext(aws.Context, *accessanalyzer.ListArchiveRulesInput, func(*accessanalyzer.ListArchiveRulesOutput, bool) bool, ...request.Option) error
ListFindings(*accessanalyzer.ListFindingsInput) (*accessanalyzer.ListFindingsOutput, error)
ListFindingsWithContext(aws.Context, *accessanalyzer.ListFindingsInput, ...request.Option) (*accessanalyzer.ListFindingsOutput, error)
ListFindingsRequest(*accessanalyzer.ListFindingsInput) (*request.Request, *accessanalyzer.ListFindingsOutput)
ListFindingsPages(*accessanalyzer.ListFindingsInput, func(*accessanalyzer.ListFindingsOutput, bool) bool) error
ListFindingsPagesWithContext(aws.Context, *accessanalyzer.ListFindingsInput, func(*accessanalyzer.ListFindingsOutput, bool) bool, ...request.Option) error
ListPolicyGenerations(*accessanalyzer.ListPolicyGenerationsInput) (*accessanalyzer.ListPolicyGenerationsOutput, error)
ListPolicyGenerationsWithContext(aws.Context, *accessanalyzer.ListPolicyGenerationsInput, ...request.Option) (*accessanalyzer.ListPolicyGenerationsOutput, error)
ListPolicyGenerationsRequest(*accessanalyzer.ListPolicyGenerationsInput) (*request.Request, *accessanalyzer.ListPolicyGenerationsOutput)
ListPolicyGenerationsPages(*accessanalyzer.ListPolicyGenerationsInput, func(*accessanalyzer.ListPolicyGenerationsOutput, bool) bool) error
ListPolicyGenerationsPagesWithContext(aws.Context, *accessanalyzer.ListPolicyGenerationsInput, func(*accessanalyzer.ListPolicyGenerationsOutput, bool) bool, ...request.Option) error
ListTagsForResource(*accessanalyzer.ListTagsForResourceInput) (*accessanalyzer.ListTagsForResourceOutput, error)
ListTagsForResourceWithContext(aws.Context, *accessanalyzer.ListTagsForResourceInput, ...request.Option) (*accessanalyzer.ListTagsForResourceOutput, error)
ListTagsForResourceRequest(*accessanalyzer.ListTagsForResourceInput) (*request.Request, *accessanalyzer.ListTagsForResourceOutput)
StartPolicyGeneration(*accessanalyzer.StartPolicyGenerationInput) (*accessanalyzer.StartPolicyGenerationOutput, error)
StartPolicyGenerationWithContext(aws.Context, *accessanalyzer.StartPolicyGenerationInput, ...request.Option) (*accessanalyzer.StartPolicyGenerationOutput, error)
StartPolicyGenerationRequest(*accessanalyzer.StartPolicyGenerationInput) (*request.Request, *accessanalyzer.StartPolicyGenerationOutput)
StartResourceScan(*accessanalyzer.StartResourceScanInput) (*accessanalyzer.StartResourceScanOutput, error)
StartResourceScanWithContext(aws.Context, *accessanalyzer.StartResourceScanInput, ...request.Option) (*accessanalyzer.StartResourceScanOutput, error)
StartResourceScanRequest(*accessanalyzer.StartResourceScanInput) (*request.Request, *accessanalyzer.StartResourceScanOutput)
TagResource(*accessanalyzer.TagResourceInput) (*accessanalyzer.TagResourceOutput, error)
TagResourceWithContext(aws.Context, *accessanalyzer.TagResourceInput, ...request.Option) (*accessanalyzer.TagResourceOutput, error)
TagResourceRequest(*accessanalyzer.TagResourceInput) (*request.Request, *accessanalyzer.TagResourceOutput)
UntagResource(*accessanalyzer.UntagResourceInput) (*accessanalyzer.UntagResourceOutput, error)
UntagResourceWithContext(aws.Context, *accessanalyzer.UntagResourceInput, ...request.Option) (*accessanalyzer.UntagResourceOutput, error)
UntagResourceRequest(*accessanalyzer.UntagResourceInput) (*request.Request, *accessanalyzer.UntagResourceOutput)
UpdateArchiveRule(*accessanalyzer.UpdateArchiveRuleInput) (*accessanalyzer.UpdateArchiveRuleOutput, error)
UpdateArchiveRuleWithContext(aws.Context, *accessanalyzer.UpdateArchiveRuleInput, ...request.Option) (*accessanalyzer.UpdateArchiveRuleOutput, error)
UpdateArchiveRuleRequest(*accessanalyzer.UpdateArchiveRuleInput) (*request.Request, *accessanalyzer.UpdateArchiveRuleOutput)
UpdateFindings(*accessanalyzer.UpdateFindingsInput) (*accessanalyzer.UpdateFindingsOutput, error)
UpdateFindingsWithContext(aws.Context, *accessanalyzer.UpdateFindingsInput, ...request.Option) (*accessanalyzer.UpdateFindingsOutput, error)
UpdateFindingsRequest(*accessanalyzer.UpdateFindingsInput) (*request.Request, *accessanalyzer.UpdateFindingsOutput)
ValidatePolicy(*accessanalyzer.ValidatePolicyInput) (*accessanalyzer.ValidatePolicyOutput, error)
ValidatePolicyWithContext(aws.Context, *accessanalyzer.ValidatePolicyInput, ...request.Option) (*accessanalyzer.ValidatePolicyOutput, error)
ValidatePolicyRequest(*accessanalyzer.ValidatePolicyInput) (*request.Request, *accessanalyzer.ValidatePolicyOutput)
ValidatePolicyPages(*accessanalyzer.ValidatePolicyInput, func(*accessanalyzer.ValidatePolicyOutput, bool) bool) error
ValidatePolicyPagesWithContext(aws.Context, *accessanalyzer.ValidatePolicyInput, func(*accessanalyzer.ValidatePolicyOutput, bool) bool, ...request.Option) error
}
var _ AccessAnalyzerAPI = (*accessanalyzer.AccessAnalyzer)(nil)
| 201 |
session-manager-plugin | aws | Go | // Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
package acm
import (
"fmt"
"time"
"github.com/aws/aws-sdk-go/aws"
"github.com/aws/aws-sdk-go/aws/awsutil"
"github.com/aws/aws-sdk-go/aws/request"
"github.com/aws/aws-sdk-go/private/protocol"
"github.com/aws/aws-sdk-go/private/protocol/jsonrpc"
)
const opAddTagsToCertificate = "AddTagsToCertificate"
// AddTagsToCertificateRequest generates a "aws/request.Request" representing the
// client's request for the AddTagsToCertificate 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 AddTagsToCertificate for more information on using the AddTagsToCertificate
// 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 AddTagsToCertificateRequest method.
// req, resp := client.AddTagsToCertificateRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/acm-2015-12-08/AddTagsToCertificate
func (c *ACM) AddTagsToCertificateRequest(input *AddTagsToCertificateInput) (req *request.Request, output *AddTagsToCertificateOutput) {
op := &request.Operation{
Name: opAddTagsToCertificate,
HTTPMethod: "POST",
HTTPPath: "/",
}
if input == nil {
input = &AddTagsToCertificateInput{}
}
output = &AddTagsToCertificateOutput{}
req = c.newRequest(op, input, output)
req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
return
}
// AddTagsToCertificate API operation for AWS Certificate Manager.
//
// Adds one or more tags to an ACM certificate. Tags are labels that you can
// use to identify and organize your Amazon Web Services resources. Each tag
// consists of a key and an optional value. You specify the certificate on input
// by its Amazon Resource Name (ARN). You specify the tag by using a key-value
// pair.
//
// You can apply a tag to just one certificate if you want to identify a specific
// characteristic of that certificate, or you can apply the same tag to multiple
// certificates if you want to filter for a common relationship among those
// certificates. Similarly, you can apply the same tag to multiple resources
// if you want to specify a relationship among those resources. For example,
// you can add the same tag to an ACM certificate and an Elastic Load Balancing
// load balancer to indicate that they are both used by the same website. For
// more information, see Tagging ACM certificates (https://docs.aws.amazon.com/acm/latest/userguide/tags.html).
//
// To remove one or more tags, use the RemoveTagsFromCertificate action. To
// view all of the tags that have been applied to the certificate, use the ListTagsForCertificate
// action.
//
// 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 Certificate Manager's
// API operation AddTagsToCertificate for usage and error information.
//
// Returned Error Types:
// * ResourceNotFoundException
// The specified certificate cannot be found in the caller's account or the
// caller's account cannot be found.
//
// * InvalidArnException
// The requested Amazon Resource Name (ARN) does not refer to an existing resource.
//
// * InvalidTagException
// One or both of the values that make up the key-value pair is not valid. For
// example, you cannot specify a tag value that begins with aws:.
//
// * TooManyTagsException
// The request contains too many tags. Try the request again with fewer tags.
//
// * TagPolicyException
// A specified tag did not comply with an existing tag policy and was rejected.
//
// * InvalidParameterException
// An input parameter was invalid.
//
// * ThrottlingException
// The request was denied because it exceeded a quota.
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/acm-2015-12-08/AddTagsToCertificate
func (c *ACM) AddTagsToCertificate(input *AddTagsToCertificateInput) (*AddTagsToCertificateOutput, error) {
req, out := c.AddTagsToCertificateRequest(input)
return out, req.Send()
}
// AddTagsToCertificateWithContext is the same as AddTagsToCertificate with the addition of
// the ability to pass a context and additional request options.
//
// See AddTagsToCertificate for details on how to use this API operation.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
func (c *ACM) AddTagsToCertificateWithContext(ctx aws.Context, input *AddTagsToCertificateInput, opts ...request.Option) (*AddTagsToCertificateOutput, error) {
req, out := c.AddTagsToCertificateRequest(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
const opDeleteCertificate = "DeleteCertificate"
// DeleteCertificateRequest generates a "aws/request.Request" representing the
// client's request for the DeleteCertificate 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 DeleteCertificate for more information on using the DeleteCertificate
// 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 DeleteCertificateRequest method.
// req, resp := client.DeleteCertificateRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/acm-2015-12-08/DeleteCertificate
func (c *ACM) DeleteCertificateRequest(input *DeleteCertificateInput) (req *request.Request, output *DeleteCertificateOutput) {
op := &request.Operation{
Name: opDeleteCertificate,
HTTPMethod: "POST",
HTTPPath: "/",
}
if input == nil {
input = &DeleteCertificateInput{}
}
output = &DeleteCertificateOutput{}
req = c.newRequest(op, input, output)
req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
return
}
// DeleteCertificate API operation for AWS Certificate Manager.
//
// Deletes a certificate and its associated private key. If this action succeeds,
// the certificate no longer appears in the list that can be displayed by calling
// the ListCertificates action or be retrieved by calling the GetCertificate
// action. The certificate will not be available for use by Amazon Web Services
// services integrated with ACM.
//
// You cannot delete an ACM certificate that is being used by another Amazon
// Web Services service. To delete a certificate that is in use, the certificate
// association must first be removed.
//
// 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 Certificate Manager's
// API operation DeleteCertificate for usage and error information.
//
// Returned Error Types:
// * ResourceNotFoundException
// The specified certificate cannot be found in the caller's account or the
// caller's account cannot be found.
//
// * ResourceInUseException
// The certificate is in use by another Amazon Web Services service in the caller's
// account. Remove the association and try again.
//
// * InvalidArnException
// The requested Amazon Resource Name (ARN) does not refer to an existing resource.
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/acm-2015-12-08/DeleteCertificate
func (c *ACM) DeleteCertificate(input *DeleteCertificateInput) (*DeleteCertificateOutput, error) {
req, out := c.DeleteCertificateRequest(input)
return out, req.Send()
}
// DeleteCertificateWithContext is the same as DeleteCertificate with the addition of
// the ability to pass a context and additional request options.
//
// See DeleteCertificate for details on how to use this API operation.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
func (c *ACM) DeleteCertificateWithContext(ctx aws.Context, input *DeleteCertificateInput, opts ...request.Option) (*DeleteCertificateOutput, error) {
req, out := c.DeleteCertificateRequest(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
const opDescribeCertificate = "DescribeCertificate"
// DescribeCertificateRequest generates a "aws/request.Request" representing the
// client's request for the DescribeCertificate 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 DescribeCertificate for more information on using the DescribeCertificate
// 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 DescribeCertificateRequest method.
// req, resp := client.DescribeCertificateRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/acm-2015-12-08/DescribeCertificate
func (c *ACM) DescribeCertificateRequest(input *DescribeCertificateInput) (req *request.Request, output *DescribeCertificateOutput) {
op := &request.Operation{
Name: opDescribeCertificate,
HTTPMethod: "POST",
HTTPPath: "/",
}
if input == nil {
input = &DescribeCertificateInput{}
}
output = &DescribeCertificateOutput{}
req = c.newRequest(op, input, output)
return
}
// DescribeCertificate API operation for AWS Certificate Manager.
//
// Returns detailed metadata about the specified ACM certificate.
//
// 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 Certificate Manager's
// API operation DescribeCertificate for usage and error information.
//
// Returned Error Types:
// * ResourceNotFoundException
// The specified certificate cannot be found in the caller's account or the
// caller's account cannot be found.
//
// * InvalidArnException
// The requested Amazon Resource Name (ARN) does not refer to an existing resource.
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/acm-2015-12-08/DescribeCertificate
func (c *ACM) DescribeCertificate(input *DescribeCertificateInput) (*DescribeCertificateOutput, error) {
req, out := c.DescribeCertificateRequest(input)
return out, req.Send()
}
// DescribeCertificateWithContext is the same as DescribeCertificate with the addition of
// the ability to pass a context and additional request options.
//
// See DescribeCertificate for details on how to use this API operation.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
func (c *ACM) DescribeCertificateWithContext(ctx aws.Context, input *DescribeCertificateInput, opts ...request.Option) (*DescribeCertificateOutput, error) {
req, out := c.DescribeCertificateRequest(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
const opExportCertificate = "ExportCertificate"
// ExportCertificateRequest generates a "aws/request.Request" representing the
// client's request for the ExportCertificate 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 ExportCertificate for more information on using the ExportCertificate
// 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 ExportCertificateRequest method.
// req, resp := client.ExportCertificateRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/acm-2015-12-08/ExportCertificate
func (c *ACM) ExportCertificateRequest(input *ExportCertificateInput) (req *request.Request, output *ExportCertificateOutput) {
op := &request.Operation{
Name: opExportCertificate,
HTTPMethod: "POST",
HTTPPath: "/",
}
if input == nil {
input = &ExportCertificateInput{}
}
output = &ExportCertificateOutput{}
req = c.newRequest(op, input, output)
return
}
// ExportCertificate API operation for AWS Certificate Manager.
//
// Exports a private certificate issued by a private certificate authority (CA)
// for use anywhere. The exported file contains the certificate, the certificate
// chain, and the encrypted private 2048-bit RSA key associated with the public
// key that is embedded in the certificate. For security, you must assign a
// passphrase for the private key when exporting it.
//
// For information about exporting and formatting a certificate using the ACM
// console or CLI, see Export a Private Certificate (https://docs.aws.amazon.com/acm/latest/userguide/gs-acm-export-private.html).
//
// 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 Certificate Manager's
// API operation ExportCertificate for usage and error information.
//
// Returned Error Types:
// * ResourceNotFoundException
// The specified certificate cannot be found in the caller's account or the
// caller's account cannot be found.
//
// * RequestInProgressException
// The certificate request is in process and the certificate in your account
// has not yet been issued.
//
// * InvalidArnException
// The requested Amazon Resource Name (ARN) does not refer to an existing resource.
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/acm-2015-12-08/ExportCertificate
func (c *ACM) ExportCertificate(input *ExportCertificateInput) (*ExportCertificateOutput, error) {
req, out := c.ExportCertificateRequest(input)
return out, req.Send()
}
// ExportCertificateWithContext is the same as ExportCertificate with the addition of
// the ability to pass a context and additional request options.
//
// See ExportCertificate for details on how to use this API operation.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
func (c *ACM) ExportCertificateWithContext(ctx aws.Context, input *ExportCertificateInput, opts ...request.Option) (*ExportCertificateOutput, error) {
req, out := c.ExportCertificateRequest(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
const opGetAccountConfiguration = "GetAccountConfiguration"
// GetAccountConfigurationRequest generates a "aws/request.Request" representing the
// client's request for the GetAccountConfiguration 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 GetAccountConfiguration for more information on using the GetAccountConfiguration
// 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 GetAccountConfigurationRequest method.
// req, resp := client.GetAccountConfigurationRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/acm-2015-12-08/GetAccountConfiguration
func (c *ACM) GetAccountConfigurationRequest(input *GetAccountConfigurationInput) (req *request.Request, output *GetAccountConfigurationOutput) {
op := &request.Operation{
Name: opGetAccountConfiguration,
HTTPMethod: "POST",
HTTPPath: "/",
}
if input == nil {
input = &GetAccountConfigurationInput{}
}
output = &GetAccountConfigurationOutput{}
req = c.newRequest(op, input, output)
return
}
// GetAccountConfiguration API operation for AWS Certificate Manager.
//
// Returns the account configuration options associated with an Amazon Web Services
// account.
//
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
// with awserr.Error's Code and Message methods to get detailed information about
// the error.
//
// See the AWS API reference guide for AWS Certificate Manager's
// API operation GetAccountConfiguration for usage and error information.
//
// Returned Error Types:
// * AccessDeniedException
// You do not have access required to perform this action.
//
// * ThrottlingException
// The request was denied because it exceeded a quota.
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/acm-2015-12-08/GetAccountConfiguration
func (c *ACM) GetAccountConfiguration(input *GetAccountConfigurationInput) (*GetAccountConfigurationOutput, error) {
req, out := c.GetAccountConfigurationRequest(input)
return out, req.Send()
}
// GetAccountConfigurationWithContext is the same as GetAccountConfiguration with the addition of
// the ability to pass a context and additional request options.
//
// See GetAccountConfiguration for details on how to use this API operation.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
func (c *ACM) GetAccountConfigurationWithContext(ctx aws.Context, input *GetAccountConfigurationInput, opts ...request.Option) (*GetAccountConfigurationOutput, error) {
req, out := c.GetAccountConfigurationRequest(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
const opGetCertificate = "GetCertificate"
// GetCertificateRequest generates a "aws/request.Request" representing the
// client's request for the GetCertificate 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 GetCertificate for more information on using the GetCertificate
// 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 GetCertificateRequest method.
// req, resp := client.GetCertificateRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/acm-2015-12-08/GetCertificate
func (c *ACM) GetCertificateRequest(input *GetCertificateInput) (req *request.Request, output *GetCertificateOutput) {
op := &request.Operation{
Name: opGetCertificate,
HTTPMethod: "POST",
HTTPPath: "/",
}
if input == nil {
input = &GetCertificateInput{}
}
output = &GetCertificateOutput{}
req = c.newRequest(op, input, output)
return
}
// GetCertificate API operation for AWS Certificate Manager.
//
// Retrieves an Amazon-issued certificate and its certificate chain. The chain
// consists of the certificate of the issuing CA and the intermediate certificates
// of any other subordinate CAs. All of the certificates are base64 encoded.
// You can use OpenSSL (https://wiki.openssl.org/index.php/Command_Line_Utilities)
// to decode the certificates and inspect individual fields.
//
// 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 Certificate Manager's
// API operation GetCertificate for usage and error information.
//
// Returned Error Types:
// * ResourceNotFoundException
// The specified certificate cannot be found in the caller's account or the
// caller's account cannot be found.
//
// * RequestInProgressException
// The certificate request is in process and the certificate in your account
// has not yet been issued.
//
// * InvalidArnException
// The requested Amazon Resource Name (ARN) does not refer to an existing resource.
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/acm-2015-12-08/GetCertificate
func (c *ACM) GetCertificate(input *GetCertificateInput) (*GetCertificateOutput, error) {
req, out := c.GetCertificateRequest(input)
return out, req.Send()
}
// GetCertificateWithContext is the same as GetCertificate with the addition of
// the ability to pass a context and additional request options.
//
// See GetCertificate for details on how to use this API operation.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
func (c *ACM) GetCertificateWithContext(ctx aws.Context, input *GetCertificateInput, opts ...request.Option) (*GetCertificateOutput, error) {
req, out := c.GetCertificateRequest(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
const opImportCertificate = "ImportCertificate"
// ImportCertificateRequest generates a "aws/request.Request" representing the
// client's request for the ImportCertificate 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 ImportCertificate for more information on using the ImportCertificate
// 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 ImportCertificateRequest method.
// req, resp := client.ImportCertificateRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/acm-2015-12-08/ImportCertificate
func (c *ACM) ImportCertificateRequest(input *ImportCertificateInput) (req *request.Request, output *ImportCertificateOutput) {
op := &request.Operation{
Name: opImportCertificate,
HTTPMethod: "POST",
HTTPPath: "/",
}
if input == nil {
input = &ImportCertificateInput{}
}
output = &ImportCertificateOutput{}
req = c.newRequest(op, input, output)
return
}
// ImportCertificate API operation for AWS Certificate Manager.
//
// Imports a certificate into Amazon Web Services Certificate Manager (ACM)
// to use with services that are integrated with ACM. Note that integrated services
// (https://docs.aws.amazon.com/acm/latest/userguide/acm-services.html) allow
// only certificate types and keys they support to be associated with their
// resources. Further, their support differs depending on whether the certificate
// is imported into IAM or into ACM. For more information, see the documentation
// for each service. For more information about importing certificates into
// ACM, see Importing Certificates (https://docs.aws.amazon.com/acm/latest/userguide/import-certificate.html)
// in the Amazon Web Services Certificate Manager User Guide.
//
// ACM does not provide managed renewal (https://docs.aws.amazon.com/acm/latest/userguide/acm-renewal.html)
// for certificates that you import.
//
// Note the following guidelines when importing third party certificates:
//
// * You must enter the private key that matches the certificate you are
// importing.
//
// * The private key must be unencrypted. You cannot import a private key
// that is protected by a password or a passphrase.
//
// * The private key must be no larger than 5 KB (5,120 bytes).
//
// * If the certificate you are importing is not self-signed, you must enter
// its certificate chain.
//
// * If a certificate chain is included, the issuer must be the subject of
// one of the certificates in the chain.
//
// * The certificate, private key, and certificate chain must be PEM-encoded.
//
// * The current time must be between the Not Before and Not After certificate
// fields.
//
// * The Issuer field must not be empty.
//
// * The OCSP authority URL, if present, must not exceed 1000 characters.
//
// * To import a new certificate, omit the CertificateArn argument. Include
// this argument only when you want to replace a previously imported certificate.
//
// * When you import a certificate by using the CLI, you must specify the
// certificate, the certificate chain, and the private key by their file
// names preceded by fileb://. For example, you can specify a certificate
// saved in the C:\temp folder as fileb://C:\temp\certificate_to_import.pem.
// If you are making an HTTP or HTTPS Query request, include these arguments
// as BLOBs.
//
// * When you import a certificate by using an SDK, you must specify the
// certificate, the certificate chain, and the private key files in the manner
// required by the programming language you're using.
//
// * The cryptographic algorithm of an imported certificate must match the
// algorithm of the signing CA. For example, if the signing CA key type is
// RSA, then the certificate key type must also be RSA.
//
// This operation returns the Amazon Resource Name (ARN) (https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html)
// of the imported certificate.
//
// 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 Certificate Manager's
// API operation ImportCertificate for usage and error information.
//
// Returned Error Types:
// * ResourceNotFoundException
// The specified certificate cannot be found in the caller's account or the
// caller's account cannot be found.
//
// * LimitExceededException
// An ACM quota has been exceeded.
//
// * InvalidTagException
// One or both of the values that make up the key-value pair is not valid. For
// example, you cannot specify a tag value that begins with aws:.
//
// * TooManyTagsException
// The request contains too many tags. Try the request again with fewer tags.
//
// * TagPolicyException
// A specified tag did not comply with an existing tag policy and was rejected.
//
// * InvalidParameterException
// An input parameter was invalid.
//
// * InvalidArnException
// The requested Amazon Resource Name (ARN) does not refer to an existing resource.
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/acm-2015-12-08/ImportCertificate
func (c *ACM) ImportCertificate(input *ImportCertificateInput) (*ImportCertificateOutput, error) {
req, out := c.ImportCertificateRequest(input)
return out, req.Send()
}
// ImportCertificateWithContext is the same as ImportCertificate with the addition of
// the ability to pass a context and additional request options.
//
// See ImportCertificate for details on how to use this API operation.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
func (c *ACM) ImportCertificateWithContext(ctx aws.Context, input *ImportCertificateInput, opts ...request.Option) (*ImportCertificateOutput, error) {
req, out := c.ImportCertificateRequest(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
const opListCertificates = "ListCertificates"
// ListCertificatesRequest generates a "aws/request.Request" representing the
// client's request for the ListCertificates 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 ListCertificates for more information on using the ListCertificates
// 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 ListCertificatesRequest method.
// req, resp := client.ListCertificatesRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/acm-2015-12-08/ListCertificates
func (c *ACM) ListCertificatesRequest(input *ListCertificatesInput) (req *request.Request, output *ListCertificatesOutput) {
op := &request.Operation{
Name: opListCertificates,
HTTPMethod: "POST",
HTTPPath: "/",
Paginator: &request.Paginator{
InputTokens: []string{"NextToken"},
OutputTokens: []string{"NextToken"},
LimitToken: "MaxItems",
TruncationToken: "",
},
}
if input == nil {
input = &ListCertificatesInput{}
}
output = &ListCertificatesOutput{}
req = c.newRequest(op, input, output)
return
}
// ListCertificates API operation for AWS Certificate Manager.
//
// Retrieves a list of certificate ARNs and domain names. You can request that
// only certificates that match a specific status be listed. You can also filter
// by specific attributes of the certificate. Default filtering returns only
// RSA_2048 certificates. For more information, see Filters.
//
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
// with awserr.Error's Code and Message methods to get detailed information about
// the error.
//
// See the AWS API reference guide for AWS Certificate Manager's
// API operation ListCertificates for usage and error information.
//
// Returned Error Types:
// * InvalidArgsException
// One or more of of request parameters specified is not valid.
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/acm-2015-12-08/ListCertificates
func (c *ACM) ListCertificates(input *ListCertificatesInput) (*ListCertificatesOutput, error) {
req, out := c.ListCertificatesRequest(input)
return out, req.Send()
}
// ListCertificatesWithContext is the same as ListCertificates with the addition of
// the ability to pass a context and additional request options.
//
// See ListCertificates for details on how to use this API operation.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
func (c *ACM) ListCertificatesWithContext(ctx aws.Context, input *ListCertificatesInput, opts ...request.Option) (*ListCertificatesOutput, error) {
req, out := c.ListCertificatesRequest(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
// ListCertificatesPages iterates over the pages of a ListCertificates operation,
// calling the "fn" function with the response data for each page. To stop
// iterating, return false from the fn function.
//
// See ListCertificates 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 ListCertificates operation.
// pageNum := 0
// err := client.ListCertificatesPages(params,
// func(page *acm.ListCertificatesOutput, lastPage bool) bool {
// pageNum++
// fmt.Println(page)
// return pageNum <= 3
// })
//
func (c *ACM) ListCertificatesPages(input *ListCertificatesInput, fn func(*ListCertificatesOutput, bool) bool) error {
return c.ListCertificatesPagesWithContext(aws.BackgroundContext(), input, fn)
}
// ListCertificatesPagesWithContext same as ListCertificatesPages except
// it takes a Context and allows setting request options on the pages.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
func (c *ACM) ListCertificatesPagesWithContext(ctx aws.Context, input *ListCertificatesInput, fn func(*ListCertificatesOutput, bool) bool, opts ...request.Option) error {
p := request.Pagination{
NewRequest: func() (*request.Request, error) {
var inCpy *ListCertificatesInput
if input != nil {
tmp := *input
inCpy = &tmp
}
req, _ := c.ListCertificatesRequest(inCpy)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return req, nil
},
}
for p.Next() {
if !fn(p.Page().(*ListCertificatesOutput), !p.HasNextPage()) {
break
}
}
return p.Err()
}
const opListTagsForCertificate = "ListTagsForCertificate"
// ListTagsForCertificateRequest generates a "aws/request.Request" representing the
// client's request for the ListTagsForCertificate 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 ListTagsForCertificate for more information on using the ListTagsForCertificate
// 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 ListTagsForCertificateRequest method.
// req, resp := client.ListTagsForCertificateRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/acm-2015-12-08/ListTagsForCertificate
func (c *ACM) ListTagsForCertificateRequest(input *ListTagsForCertificateInput) (req *request.Request, output *ListTagsForCertificateOutput) {
op := &request.Operation{
Name: opListTagsForCertificate,
HTTPMethod: "POST",
HTTPPath: "/",
}
if input == nil {
input = &ListTagsForCertificateInput{}
}
output = &ListTagsForCertificateOutput{}
req = c.newRequest(op, input, output)
return
}
// ListTagsForCertificate API operation for AWS Certificate Manager.
//
// Lists the tags that have been applied to the ACM certificate. Use the certificate's
// Amazon Resource Name (ARN) to specify the certificate. To add a tag to an
// ACM certificate, use the AddTagsToCertificate action. To delete a tag, use
// the RemoveTagsFromCertificate action.
//
// 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 Certificate Manager's
// API operation ListTagsForCertificate for usage and error information.
//
// Returned Error Types:
// * ResourceNotFoundException
// The specified certificate cannot be found in the caller's account or the
// caller's account cannot be found.
//
// * InvalidArnException
// The requested Amazon Resource Name (ARN) does not refer to an existing resource.
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/acm-2015-12-08/ListTagsForCertificate
func (c *ACM) ListTagsForCertificate(input *ListTagsForCertificateInput) (*ListTagsForCertificateOutput, error) {
req, out := c.ListTagsForCertificateRequest(input)
return out, req.Send()
}
// ListTagsForCertificateWithContext is the same as ListTagsForCertificate with the addition of
// the ability to pass a context and additional request options.
//
// See ListTagsForCertificate for details on how to use this API operation.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
func (c *ACM) ListTagsForCertificateWithContext(ctx aws.Context, input *ListTagsForCertificateInput, opts ...request.Option) (*ListTagsForCertificateOutput, error) {
req, out := c.ListTagsForCertificateRequest(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
const opPutAccountConfiguration = "PutAccountConfiguration"
// PutAccountConfigurationRequest generates a "aws/request.Request" representing the
// client's request for the PutAccountConfiguration 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 PutAccountConfiguration for more information on using the PutAccountConfiguration
// 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 PutAccountConfigurationRequest method.
// req, resp := client.PutAccountConfigurationRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/acm-2015-12-08/PutAccountConfiguration
func (c *ACM) PutAccountConfigurationRequest(input *PutAccountConfigurationInput) (req *request.Request, output *PutAccountConfigurationOutput) {
op := &request.Operation{
Name: opPutAccountConfiguration,
HTTPMethod: "POST",
HTTPPath: "/",
}
if input == nil {
input = &PutAccountConfigurationInput{}
}
output = &PutAccountConfigurationOutput{}
req = c.newRequest(op, input, output)
req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
return
}
// PutAccountConfiguration API operation for AWS Certificate Manager.
//
// Adds or modifies account-level configurations in ACM.
//
// The supported configuration option is DaysBeforeExpiry. This option specifies
// the number of days prior to certificate expiration when ACM starts generating
// EventBridge events. ACM sends one event per day per certificate until the
// certificate expires. By default, accounts receive events starting 45 days
// before certificate expiration.
//
// 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 Certificate Manager's
// API operation PutAccountConfiguration for usage and error information.
//
// Returned Error Types:
// * ValidationException
// The supplied input failed to satisfy constraints of an Amazon Web Services
// service.
//
// * ThrottlingException
// The request was denied because it exceeded a quota.
//
// * AccessDeniedException
// You do not have access required to perform this action.
//
// * ConflictException
// You are trying to update a resource or configuration that is already being
// created or updated. Wait for the previous operation to finish and try again.
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/acm-2015-12-08/PutAccountConfiguration
func (c *ACM) PutAccountConfiguration(input *PutAccountConfigurationInput) (*PutAccountConfigurationOutput, error) {
req, out := c.PutAccountConfigurationRequest(input)
return out, req.Send()
}
// PutAccountConfigurationWithContext is the same as PutAccountConfiguration with the addition of
// the ability to pass a context and additional request options.
//
// See PutAccountConfiguration for details on how to use this API operation.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
func (c *ACM) PutAccountConfigurationWithContext(ctx aws.Context, input *PutAccountConfigurationInput, opts ...request.Option) (*PutAccountConfigurationOutput, error) {
req, out := c.PutAccountConfigurationRequest(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
const opRemoveTagsFromCertificate = "RemoveTagsFromCertificate"
// RemoveTagsFromCertificateRequest generates a "aws/request.Request" representing the
// client's request for the RemoveTagsFromCertificate 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 RemoveTagsFromCertificate for more information on using the RemoveTagsFromCertificate
// 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 RemoveTagsFromCertificateRequest method.
// req, resp := client.RemoveTagsFromCertificateRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/acm-2015-12-08/RemoveTagsFromCertificate
func (c *ACM) RemoveTagsFromCertificateRequest(input *RemoveTagsFromCertificateInput) (req *request.Request, output *RemoveTagsFromCertificateOutput) {
op := &request.Operation{
Name: opRemoveTagsFromCertificate,
HTTPMethod: "POST",
HTTPPath: "/",
}
if input == nil {
input = &RemoveTagsFromCertificateInput{}
}
output = &RemoveTagsFromCertificateOutput{}
req = c.newRequest(op, input, output)
req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
return
}
// RemoveTagsFromCertificate API operation for AWS Certificate Manager.
//
// Remove one or more tags from an ACM certificate. A tag consists of a key-value
// pair. If you do not specify the value portion of the tag when calling this
// function, the tag will be removed regardless of value. If you specify a value,
// the tag is removed only if it is associated with the specified value.
//
// To add tags to a certificate, use the AddTagsToCertificate action. To view
// all of the tags that have been applied to a specific ACM certificate, use
// the ListTagsForCertificate action.
//
// 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 Certificate Manager's
// API operation RemoveTagsFromCertificate for usage and error information.
//
// Returned Error Types:
// * ResourceNotFoundException
// The specified certificate cannot be found in the caller's account or the
// caller's account cannot be found.
//
// * InvalidArnException
// The requested Amazon Resource Name (ARN) does not refer to an existing resource.
//
// * InvalidTagException
// One or both of the values that make up the key-value pair is not valid. For
// example, you cannot specify a tag value that begins with aws:.
//
// * TagPolicyException
// A specified tag did not comply with an existing tag policy and was rejected.
//
// * InvalidParameterException
// An input parameter was invalid.
//
// * ThrottlingException
// The request was denied because it exceeded a quota.
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/acm-2015-12-08/RemoveTagsFromCertificate
func (c *ACM) RemoveTagsFromCertificate(input *RemoveTagsFromCertificateInput) (*RemoveTagsFromCertificateOutput, error) {
req, out := c.RemoveTagsFromCertificateRequest(input)
return out, req.Send()
}
// RemoveTagsFromCertificateWithContext is the same as RemoveTagsFromCertificate with the addition of
// the ability to pass a context and additional request options.
//
// See RemoveTagsFromCertificate for details on how to use this API operation.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
func (c *ACM) RemoveTagsFromCertificateWithContext(ctx aws.Context, input *RemoveTagsFromCertificateInput, opts ...request.Option) (*RemoveTagsFromCertificateOutput, error) {
req, out := c.RemoveTagsFromCertificateRequest(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
const opRenewCertificate = "RenewCertificate"
// RenewCertificateRequest generates a "aws/request.Request" representing the
// client's request for the RenewCertificate 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 RenewCertificate for more information on using the RenewCertificate
// 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 RenewCertificateRequest method.
// req, resp := client.RenewCertificateRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/acm-2015-12-08/RenewCertificate
func (c *ACM) RenewCertificateRequest(input *RenewCertificateInput) (req *request.Request, output *RenewCertificateOutput) {
op := &request.Operation{
Name: opRenewCertificate,
HTTPMethod: "POST",
HTTPPath: "/",
}
if input == nil {
input = &RenewCertificateInput{}
}
output = &RenewCertificateOutput{}
req = c.newRequest(op, input, output)
req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
return
}
// RenewCertificate API operation for AWS Certificate Manager.
//
// Renews an eligible ACM certificate. At this time, only exported private certificates
// can be renewed with this operation. In order to renew your ACM PCA certificates
// with ACM, you must first grant the ACM service principal permission to do
// so (https://docs.aws.amazon.com/acm-pca/latest/userguide/PcaPermissions.html).
// For more information, see Testing Managed Renewal (https://docs.aws.amazon.com/acm/latest/userguide/manual-renewal.html)
// in the ACM User Guide.
//
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
// with awserr.Error's Code and Message methods to get detailed information about
// the error.
//
// See the AWS API reference guide for AWS Certificate Manager's
// API operation RenewCertificate for usage and error information.
//
// Returned Error Types:
// * ResourceNotFoundException
// The specified certificate cannot be found in the caller's account or the
// caller's account cannot be found.
//
// * InvalidArnException
// The requested Amazon Resource Name (ARN) does not refer to an existing resource.
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/acm-2015-12-08/RenewCertificate
func (c *ACM) RenewCertificate(input *RenewCertificateInput) (*RenewCertificateOutput, error) {
req, out := c.RenewCertificateRequest(input)
return out, req.Send()
}
// RenewCertificateWithContext is the same as RenewCertificate with the addition of
// the ability to pass a context and additional request options.
//
// See RenewCertificate for details on how to use this API operation.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
func (c *ACM) RenewCertificateWithContext(ctx aws.Context, input *RenewCertificateInput, opts ...request.Option) (*RenewCertificateOutput, error) {
req, out := c.RenewCertificateRequest(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
const opRequestCertificate = "RequestCertificate"
// RequestCertificateRequest generates a "aws/request.Request" representing the
// client's request for the RequestCertificate 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 RequestCertificate for more information on using the RequestCertificate
// 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 RequestCertificateRequest method.
// req, resp := client.RequestCertificateRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/acm-2015-12-08/RequestCertificate
func (c *ACM) RequestCertificateRequest(input *RequestCertificateInput) (req *request.Request, output *RequestCertificateOutput) {
op := &request.Operation{
Name: opRequestCertificate,
HTTPMethod: "POST",
HTTPPath: "/",
}
if input == nil {
input = &RequestCertificateInput{}
}
output = &RequestCertificateOutput{}
req = c.newRequest(op, input, output)
return
}
// RequestCertificate API operation for AWS Certificate Manager.
//
// Requests an ACM certificate for use with other Amazon Web Services services.
// To request an ACM certificate, you must specify a fully qualified domain
// name (FQDN) in the DomainName parameter. You can also specify additional
// FQDNs in the SubjectAlternativeNames parameter.
//
// If you are requesting a private certificate, domain validation is not required.
// If you are requesting a public certificate, each domain name that you specify
// must be validated to verify that you own or control the domain. You can use
// DNS validation (https://docs.aws.amazon.com/acm/latest/userguide/gs-acm-validate-dns.html)
// or email validation (https://docs.aws.amazon.com/acm/latest/userguide/gs-acm-validate-email.html).
// We recommend that you use DNS validation. ACM issues public certificates
// after receiving approval from the domain owner.
//
// ACM behavior differs from the https://tools.ietf.org/html/rfc6125#appendix-B.2
// (https://tools.ietf.org/html/rfc6125#appendix-B.2)RFC 6125 specification
// of the certificate validation process. first checks for a subject alternative
// name, and, if it finds one, ignores the common name (CN)
//
// 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 Certificate Manager's
// API operation RequestCertificate for usage and error information.
//
// Returned Error Types:
// * LimitExceededException
// An ACM quota has been exceeded.
//
// * InvalidDomainValidationOptionsException
// One or more values in the DomainValidationOption structure is incorrect.
//
// * InvalidArnException
// The requested Amazon Resource Name (ARN) does not refer to an existing resource.
//
// * InvalidTagException
// One or both of the values that make up the key-value pair is not valid. For
// example, you cannot specify a tag value that begins with aws:.
//
// * TooManyTagsException
// The request contains too many tags. Try the request again with fewer tags.
//
// * TagPolicyException
// A specified tag did not comply with an existing tag policy and was rejected.
//
// * InvalidParameterException
// An input parameter was invalid.
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/acm-2015-12-08/RequestCertificate
func (c *ACM) RequestCertificate(input *RequestCertificateInput) (*RequestCertificateOutput, error) {
req, out := c.RequestCertificateRequest(input)
return out, req.Send()
}
// RequestCertificateWithContext is the same as RequestCertificate with the addition of
// the ability to pass a context and additional request options.
//
// See RequestCertificate for details on how to use this API operation.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
func (c *ACM) RequestCertificateWithContext(ctx aws.Context, input *RequestCertificateInput, opts ...request.Option) (*RequestCertificateOutput, error) {
req, out := c.RequestCertificateRequest(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
const opResendValidationEmail = "ResendValidationEmail"
// ResendValidationEmailRequest generates a "aws/request.Request" representing the
// client's request for the ResendValidationEmail 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 ResendValidationEmail for more information on using the ResendValidationEmail
// 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 ResendValidationEmailRequest method.
// req, resp := client.ResendValidationEmailRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/acm-2015-12-08/ResendValidationEmail
func (c *ACM) ResendValidationEmailRequest(input *ResendValidationEmailInput) (req *request.Request, output *ResendValidationEmailOutput) {
op := &request.Operation{
Name: opResendValidationEmail,
HTTPMethod: "POST",
HTTPPath: "/",
}
if input == nil {
input = &ResendValidationEmailInput{}
}
output = &ResendValidationEmailOutput{}
req = c.newRequest(op, input, output)
req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
return
}
// ResendValidationEmail API operation for AWS Certificate Manager.
//
// Resends the email that requests domain ownership validation. The domain owner
// or an authorized representative must approve the ACM certificate before it
// can be issued. The certificate can be approved by clicking a link in the
// mail to navigate to the Amazon certificate approval website and then clicking
// I Approve. However, the validation email can be blocked by spam filters.
// Therefore, if you do not receive the original mail, you can request that
// the mail be resent within 72 hours of requesting the ACM certificate. If
// more than 72 hours have elapsed since your original request or since your
// last attempt to resend validation mail, you must request a new certificate.
// For more information about setting up your contact email addresses, see Configure
// Email for your Domain (https://docs.aws.amazon.com/acm/latest/userguide/setup-email.html).
//
// 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 Certificate Manager's
// API operation ResendValidationEmail for usage and error information.
//
// Returned Error Types:
// * ResourceNotFoundException
// The specified certificate cannot be found in the caller's account or the
// caller's account cannot be found.
//
// * InvalidStateException
// Processing has reached an invalid state.
//
// * InvalidArnException
// The requested Amazon Resource Name (ARN) does not refer to an existing resource.
//
// * InvalidDomainValidationOptionsException
// One or more values in the DomainValidationOption structure is incorrect.
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/acm-2015-12-08/ResendValidationEmail
func (c *ACM) ResendValidationEmail(input *ResendValidationEmailInput) (*ResendValidationEmailOutput, error) {
req, out := c.ResendValidationEmailRequest(input)
return out, req.Send()
}
// ResendValidationEmailWithContext is the same as ResendValidationEmail with the addition of
// the ability to pass a context and additional request options.
//
// See ResendValidationEmail for details on how to use this API operation.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
func (c *ACM) ResendValidationEmailWithContext(ctx aws.Context, input *ResendValidationEmailInput, opts ...request.Option) (*ResendValidationEmailOutput, error) {
req, out := c.ResendValidationEmailRequest(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
const opUpdateCertificateOptions = "UpdateCertificateOptions"
// UpdateCertificateOptionsRequest generates a "aws/request.Request" representing the
// client's request for the UpdateCertificateOptions 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 UpdateCertificateOptions for more information on using the UpdateCertificateOptions
// 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 UpdateCertificateOptionsRequest method.
// req, resp := client.UpdateCertificateOptionsRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/acm-2015-12-08/UpdateCertificateOptions
func (c *ACM) UpdateCertificateOptionsRequest(input *UpdateCertificateOptionsInput) (req *request.Request, output *UpdateCertificateOptionsOutput) {
op := &request.Operation{
Name: opUpdateCertificateOptions,
HTTPMethod: "POST",
HTTPPath: "/",
}
if input == nil {
input = &UpdateCertificateOptionsInput{}
}
output = &UpdateCertificateOptionsOutput{}
req = c.newRequest(op, input, output)
req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
return
}
// UpdateCertificateOptions API operation for AWS Certificate Manager.
//
// Updates a certificate. Currently, you can use this function to specify whether
// to opt in to or out of recording your certificate in a certificate transparency
// log. For more information, see Opting Out of Certificate Transparency Logging
// (https://docs.aws.amazon.com/acm/latest/userguide/acm-bestpractices.html#best-practices-transparency).
//
// 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 Certificate Manager's
// API operation UpdateCertificateOptions for usage and error information.
//
// Returned Error Types:
// * ResourceNotFoundException
// The specified certificate cannot be found in the caller's account or the
// caller's account cannot be found.
//
// * LimitExceededException
// An ACM quota has been exceeded.
//
// * InvalidStateException
// Processing has reached an invalid state.
//
// * InvalidArnException
// The requested Amazon Resource Name (ARN) does not refer to an existing resource.
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/acm-2015-12-08/UpdateCertificateOptions
func (c *ACM) UpdateCertificateOptions(input *UpdateCertificateOptionsInput) (*UpdateCertificateOptionsOutput, error) {
req, out := c.UpdateCertificateOptionsRequest(input)
return out, req.Send()
}
// UpdateCertificateOptionsWithContext is the same as UpdateCertificateOptions with the addition of
// the ability to pass a context and additional request options.
//
// See UpdateCertificateOptions for details on how to use this API operation.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
func (c *ACM) UpdateCertificateOptionsWithContext(ctx aws.Context, input *UpdateCertificateOptionsInput, opts ...request.Option) (*UpdateCertificateOptionsOutput, error) {
req, out := c.UpdateCertificateOptionsRequest(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
// You do not have access required to perform this action.
type AccessDeniedException struct {
_ struct{} `type:"structure"`
RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"Message" type:"string"`
}
// String returns the string representation
func (s AccessDeniedException) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s AccessDeniedException) GoString() string {
return s.String()
}
func newErrorAccessDeniedException(v protocol.ResponseMetadata) error {
return &AccessDeniedException{
RespMetadata: v,
}
}
// Code returns the exception type name.
func (s *AccessDeniedException) Code() string {
return "AccessDeniedException"
}
// Message returns the exception's message.
func (s *AccessDeniedException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
return ""
}
// OrigErr always returns nil, satisfies awserr.Error interface.
func (s *AccessDeniedException) OrigErr() error {
return nil
}
func (s *AccessDeniedException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
func (s *AccessDeniedException) StatusCode() int {
return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
func (s *AccessDeniedException) RequestID() string {
return s.RespMetadata.RequestID
}
type AddTagsToCertificateInput struct {
_ struct{} `type:"structure"`
// String that contains the ARN of the ACM certificate to which the tag is to
// be applied. This must be of the form:
//
// arn:aws:acm:region:123456789012:certificate/12345678-1234-1234-1234-123456789012
//
// For more information about ARNs, see Amazon Resource Names (ARNs) (https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html).
//
// CertificateArn is a required field
CertificateArn *string `min:"20" type:"string" required:"true"`
// The key-value pair that defines the tag. The tag value is optional.
//
// Tags is a required field
Tags []*Tag `min:"1" type:"list" required:"true"`
}
// String returns the string representation
func (s AddTagsToCertificateInput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s AddTagsToCertificateInput) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
func (s *AddTagsToCertificateInput) Validate() error {
invalidParams := request.ErrInvalidParams{Context: "AddTagsToCertificateInput"}
if s.CertificateArn == nil {
invalidParams.Add(request.NewErrParamRequired("CertificateArn"))
}
if s.CertificateArn != nil && len(*s.CertificateArn) < 20 {
invalidParams.Add(request.NewErrParamMinLen("CertificateArn", 20))
}
if s.Tags == nil {
invalidParams.Add(request.NewErrParamRequired("Tags"))
}
if s.Tags != nil && len(s.Tags) < 1 {
invalidParams.Add(request.NewErrParamMinLen("Tags", 1))
}
if s.Tags != nil {
for i, v := range s.Tags {
if v == nil {
continue
}
if err := v.Validate(); err != nil {
invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Tags", i), err.(request.ErrInvalidParams))
}
}
}
if invalidParams.Len() > 0 {
return invalidParams
}
return nil
}
// SetCertificateArn sets the CertificateArn field's value.
func (s *AddTagsToCertificateInput) SetCertificateArn(v string) *AddTagsToCertificateInput {
s.CertificateArn = &v
return s
}
// SetTags sets the Tags field's value.
func (s *AddTagsToCertificateInput) SetTags(v []*Tag) *AddTagsToCertificateInput {
s.Tags = v
return s
}
type AddTagsToCertificateOutput struct {
_ struct{} `type:"structure"`
}
// String returns the string representation
func (s AddTagsToCertificateOutput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s AddTagsToCertificateOutput) GoString() string {
return s.String()
}
// Contains metadata about an ACM certificate. This structure is returned in
// the response to a DescribeCertificate request.
type CertificateDetail struct {
_ struct{} `type:"structure"`
// The Amazon Resource Name (ARN) of the certificate. For more information about
// ARNs, see Amazon Resource Names (ARNs) (https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html)
// in the Amazon Web Services General Reference.
CertificateArn *string `min:"20" type:"string"`
// The Amazon Resource Name (ARN) of the ACM PCA private certificate authority
// (CA) that issued the certificate. This has the following format:
//
// arn:aws:acm-pca:region:account:certificate-authority/12345678-1234-1234-1234-123456789012
CertificateAuthorityArn *string `min:"20" type:"string"`
// The time at which the certificate was requested.
CreatedAt *time.Time `type:"timestamp"`
// The fully qualified domain name for the certificate, such as www.example.com
// or example.com.
DomainName *string `min:"1" type:"string"`
// Contains information about the initial validation of each domain name that
// occurs as a result of the RequestCertificate request. This field exists only
// when the certificate type is AMAZON_ISSUED.
DomainValidationOptions []*DomainValidation `min:"1" type:"list"`
// Contains a list of Extended Key Usage X.509 v3 extension objects. Each object
// specifies a purpose for which the certificate public key can be used and
// consists of a name and an object identifier (OID).
ExtendedKeyUsages []*ExtendedKeyUsage `type:"list"`
// The reason the certificate request failed. This value exists only when the
// certificate status is FAILED. For more information, see Certificate Request
// Failed (https://docs.aws.amazon.com/acm/latest/userguide/troubleshooting.html#troubleshooting-failed)
// in the Amazon Web Services Certificate Manager User Guide.
FailureReason *string `type:"string" enum:"FailureReason"`
// The date and time at which the certificate was imported. This value exists
// only when the certificate type is IMPORTED.
ImportedAt *time.Time `type:"timestamp"`
// A list of ARNs for the Amazon Web Services resources that are using the certificate.
// A certificate can be used by multiple Amazon Web Services resources.
InUseBy []*string `type:"list"`
// The time at which the certificate was issued. This value exists only when
// the certificate type is AMAZON_ISSUED.
IssuedAt *time.Time `type:"timestamp"`
// The name of the certificate authority that issued and signed the certificate.
Issuer *string `type:"string"`
// The algorithm that was used to generate the public-private key pair.
KeyAlgorithm *string `type:"string" enum:"KeyAlgorithm"`
// A list of Key Usage X.509 v3 extension objects. Each object is a string value
// that identifies the purpose of the public key contained in the certificate.
// Possible extension values include DIGITAL_SIGNATURE, KEY_ENCHIPHERMENT, NON_REPUDIATION,
// and more.
KeyUsages []*KeyUsage `type:"list"`
// The time after which the certificate is not valid.
NotAfter *time.Time `type:"timestamp"`
// The time before which the certificate is not valid.
NotBefore *time.Time `type:"timestamp"`
// Value that specifies whether to add the certificate to a transparency log.
// Certificate transparency makes it possible to detect SSL certificates that
// have been mistakenly or maliciously issued. A browser might respond to certificate
// that has not been logged by showing an error message. The logs are cryptographically
// secure.
Options *CertificateOptions `type:"structure"`
// Specifies whether the certificate is eligible for renewal. At this time,
// only exported private certificates can be renewed with the RenewCertificate
// command.
RenewalEligibility *string `type:"string" enum:"RenewalEligibility"`
// Contains information about the status of ACM's managed renewal (https://docs.aws.amazon.com/acm/latest/userguide/acm-renewal.html)
// for the certificate. This field exists only when the certificate type is
// AMAZON_ISSUED.
RenewalSummary *RenewalSummary `type:"structure"`
// The reason the certificate was revoked. This value exists only when the certificate
// status is REVOKED.
RevocationReason *string `type:"string" enum:"RevocationReason"`
// The time at which the certificate was revoked. This value exists only when
// the certificate status is REVOKED.
RevokedAt *time.Time `type:"timestamp"`
// The serial number of the certificate.
Serial *string `type:"string"`
// The algorithm that was used to sign the certificate.
SignatureAlgorithm *string `type:"string"`
// The status of the certificate.
Status *string `type:"string" enum:"CertificateStatus"`
// The name of the entity that is associated with the public key contained in
// the certificate.
Subject *string `type:"string"`
// One or more domain names (subject alternative names) included in the certificate.
// This list contains the domain names that are bound to the public key that
// is contained in the certificate. The subject alternative names include the
// canonical domain name (CN) of the certificate and additional domain names
// that can be used to connect to the website.
SubjectAlternativeNames []*string `min:"1" type:"list"`
// The source of the certificate. For certificates provided by ACM, this value
// is AMAZON_ISSUED. For certificates that you imported with ImportCertificate,
// this value is IMPORTED. ACM does not provide managed renewal (https://docs.aws.amazon.com/acm/latest/userguide/acm-renewal.html)
// for imported certificates. For more information about the differences between
// certificates that you import and those that ACM provides, see Importing Certificates
// (https://docs.aws.amazon.com/acm/latest/userguide/import-certificate.html)
// in the Amazon Web Services Certificate Manager User Guide.
Type *string `type:"string" enum:"CertificateType"`
}
// String returns the string representation
func (s CertificateDetail) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s CertificateDetail) GoString() string {
return s.String()
}
// SetCertificateArn sets the CertificateArn field's value.
func (s *CertificateDetail) SetCertificateArn(v string) *CertificateDetail {
s.CertificateArn = &v
return s
}
// SetCertificateAuthorityArn sets the CertificateAuthorityArn field's value.
func (s *CertificateDetail) SetCertificateAuthorityArn(v string) *CertificateDetail {
s.CertificateAuthorityArn = &v
return s
}
// SetCreatedAt sets the CreatedAt field's value.
func (s *CertificateDetail) SetCreatedAt(v time.Time) *CertificateDetail {
s.CreatedAt = &v
return s
}
// SetDomainName sets the DomainName field's value.
func (s *CertificateDetail) SetDomainName(v string) *CertificateDetail {
s.DomainName = &v
return s
}
// SetDomainValidationOptions sets the DomainValidationOptions field's value.
func (s *CertificateDetail) SetDomainValidationOptions(v []*DomainValidation) *CertificateDetail {
s.DomainValidationOptions = v
return s
}
// SetExtendedKeyUsages sets the ExtendedKeyUsages field's value.
func (s *CertificateDetail) SetExtendedKeyUsages(v []*ExtendedKeyUsage) *CertificateDetail {
s.ExtendedKeyUsages = v
return s
}
// SetFailureReason sets the FailureReason field's value.
func (s *CertificateDetail) SetFailureReason(v string) *CertificateDetail {
s.FailureReason = &v
return s
}
// SetImportedAt sets the ImportedAt field's value.
func (s *CertificateDetail) SetImportedAt(v time.Time) *CertificateDetail {
s.ImportedAt = &v
return s
}
// SetInUseBy sets the InUseBy field's value.
func (s *CertificateDetail) SetInUseBy(v []*string) *CertificateDetail {
s.InUseBy = v
return s
}
// SetIssuedAt sets the IssuedAt field's value.
func (s *CertificateDetail) SetIssuedAt(v time.Time) *CertificateDetail {
s.IssuedAt = &v
return s
}
// SetIssuer sets the Issuer field's value.
func (s *CertificateDetail) SetIssuer(v string) *CertificateDetail {
s.Issuer = &v
return s
}
// SetKeyAlgorithm sets the KeyAlgorithm field's value.
func (s *CertificateDetail) SetKeyAlgorithm(v string) *CertificateDetail {
s.KeyAlgorithm = &v
return s
}
// SetKeyUsages sets the KeyUsages field's value.
func (s *CertificateDetail) SetKeyUsages(v []*KeyUsage) *CertificateDetail {
s.KeyUsages = v
return s
}
// SetNotAfter sets the NotAfter field's value.
func (s *CertificateDetail) SetNotAfter(v time.Time) *CertificateDetail {
s.NotAfter = &v
return s
}
// SetNotBefore sets the NotBefore field's value.
func (s *CertificateDetail) SetNotBefore(v time.Time) *CertificateDetail {
s.NotBefore = &v
return s
}
// SetOptions sets the Options field's value.
func (s *CertificateDetail) SetOptions(v *CertificateOptions) *CertificateDetail {
s.Options = v
return s
}
// SetRenewalEligibility sets the RenewalEligibility field's value.
func (s *CertificateDetail) SetRenewalEligibility(v string) *CertificateDetail {
s.RenewalEligibility = &v
return s
}
// SetRenewalSummary sets the RenewalSummary field's value.
func (s *CertificateDetail) SetRenewalSummary(v *RenewalSummary) *CertificateDetail {
s.RenewalSummary = v
return s
}
// SetRevocationReason sets the RevocationReason field's value.
func (s *CertificateDetail) SetRevocationReason(v string) *CertificateDetail {
s.RevocationReason = &v
return s
}
// SetRevokedAt sets the RevokedAt field's value.
func (s *CertificateDetail) SetRevokedAt(v time.Time) *CertificateDetail {
s.RevokedAt = &v
return s
}
// SetSerial sets the Serial field's value.
func (s *CertificateDetail) SetSerial(v string) *CertificateDetail {
s.Serial = &v
return s
}
// SetSignatureAlgorithm sets the SignatureAlgorithm field's value.
func (s *CertificateDetail) SetSignatureAlgorithm(v string) *CertificateDetail {
s.SignatureAlgorithm = &v
return s
}
// SetStatus sets the Status field's value.
func (s *CertificateDetail) SetStatus(v string) *CertificateDetail {
s.Status = &v
return s
}
// SetSubject sets the Subject field's value.
func (s *CertificateDetail) SetSubject(v string) *CertificateDetail {
s.Subject = &v
return s
}
// SetSubjectAlternativeNames sets the SubjectAlternativeNames field's value.
func (s *CertificateDetail) SetSubjectAlternativeNames(v []*string) *CertificateDetail {
s.SubjectAlternativeNames = v
return s
}
// SetType sets the Type field's value.
func (s *CertificateDetail) SetType(v string) *CertificateDetail {
s.Type = &v
return s
}
// Structure that contains options for your certificate. Currently, you can
// use this only to specify whether to opt in to or out of certificate transparency
// logging. Some browsers require that public certificates issued for your domain
// be recorded in a log. Certificates that are not logged typically generate
// a browser error. Transparency makes it possible for you to detect SSL/TLS
// certificates that have been mistakenly or maliciously issued for your domain.
// For general information, see Certificate Transparency Logging (https://docs.aws.amazon.com/acm/latest/userguide/acm-concepts.html#concept-transparency).
type CertificateOptions struct {
_ struct{} `type:"structure"`
// You can opt out of certificate transparency logging by specifying the DISABLED
// option. Opt in by specifying ENABLED.
CertificateTransparencyLoggingPreference *string `type:"string" enum:"CertificateTransparencyLoggingPreference"`
}
// String returns the string representation
func (s CertificateOptions) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s CertificateOptions) GoString() string {
return s.String()
}
// SetCertificateTransparencyLoggingPreference sets the CertificateTransparencyLoggingPreference field's value.
func (s *CertificateOptions) SetCertificateTransparencyLoggingPreference(v string) *CertificateOptions {
s.CertificateTransparencyLoggingPreference = &v
return s
}
// This structure is returned in the response object of ListCertificates action.
type CertificateSummary struct {
_ struct{} `type:"structure"`
// Amazon Resource Name (ARN) of the certificate. This is of the form:
//
// arn:aws:acm:region:123456789012:certificate/12345678-1234-1234-1234-123456789012
//
// For more information about ARNs, see Amazon Resource Names (ARNs) (https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html).
CertificateArn *string `min:"20" type:"string"`
// Fully qualified domain name (FQDN), such as www.example.com or example.com,
// for the certificate.
DomainName *string `min:"1" type:"string"`
}
// String returns the string representation
func (s CertificateSummary) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s CertificateSummary) GoString() string {
return s.String()
}
// SetCertificateArn sets the CertificateArn field's value.
func (s *CertificateSummary) SetCertificateArn(v string) *CertificateSummary {
s.CertificateArn = &v
return s
}
// SetDomainName sets the DomainName field's value.
func (s *CertificateSummary) SetDomainName(v string) *CertificateSummary {
s.DomainName = &v
return s
}
// You are trying to update a resource or configuration that is already being
// created or updated. Wait for the previous operation to finish and try again.
type ConflictException struct {
_ struct{} `type:"structure"`
RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
// String returns the string representation
func (s ConflictException) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s ConflictException) GoString() string {
return s.String()
}
func newErrorConflictException(v protocol.ResponseMetadata) error {
return &ConflictException{
RespMetadata: v,
}
}
// Code returns the exception type name.
func (s *ConflictException) Code() string {
return "ConflictException"
}
// Message returns the exception's message.
func (s *ConflictException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
return ""
}
// OrigErr always returns nil, satisfies awserr.Error interface.
func (s *ConflictException) OrigErr() error {
return nil
}
func (s *ConflictException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
func (s *ConflictException) StatusCode() int {
return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
func (s *ConflictException) RequestID() string {
return s.RespMetadata.RequestID
}
type DeleteCertificateInput struct {
_ struct{} `type:"structure"`
// String that contains the ARN of the ACM certificate to be deleted. This must
// be of the form:
//
// arn:aws:acm:region:123456789012:certificate/12345678-1234-1234-1234-123456789012
//
// For more information about ARNs, see Amazon Resource Names (ARNs) (https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html).
//
// CertificateArn is a required field
CertificateArn *string `min:"20" type:"string" required:"true"`
}
// String returns the string representation
func (s DeleteCertificateInput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s DeleteCertificateInput) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
func (s *DeleteCertificateInput) Validate() error {
invalidParams := request.ErrInvalidParams{Context: "DeleteCertificateInput"}
if s.CertificateArn == nil {
invalidParams.Add(request.NewErrParamRequired("CertificateArn"))
}
if s.CertificateArn != nil && len(*s.CertificateArn) < 20 {
invalidParams.Add(request.NewErrParamMinLen("CertificateArn", 20))
}
if invalidParams.Len() > 0 {
return invalidParams
}
return nil
}
// SetCertificateArn sets the CertificateArn field's value.
func (s *DeleteCertificateInput) SetCertificateArn(v string) *DeleteCertificateInput {
s.CertificateArn = &v
return s
}
type DeleteCertificateOutput struct {
_ struct{} `type:"structure"`
}
// String returns the string representation
func (s DeleteCertificateOutput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s DeleteCertificateOutput) GoString() string {
return s.String()
}
type DescribeCertificateInput struct {
_ struct{} `type:"structure"`
// The Amazon Resource Name (ARN) of the ACM certificate. The ARN must have
// the following form:
//
// arn:aws:acm:region:123456789012:certificate/12345678-1234-1234-1234-123456789012
//
// For more information about ARNs, see Amazon Resource Names (ARNs) (https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html).
//
// CertificateArn is a required field
CertificateArn *string `min:"20" type:"string" required:"true"`
}
// String returns the string representation
func (s DescribeCertificateInput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s DescribeCertificateInput) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
func (s *DescribeCertificateInput) Validate() error {
invalidParams := request.ErrInvalidParams{Context: "DescribeCertificateInput"}
if s.CertificateArn == nil {
invalidParams.Add(request.NewErrParamRequired("CertificateArn"))
}
if s.CertificateArn != nil && len(*s.CertificateArn) < 20 {
invalidParams.Add(request.NewErrParamMinLen("CertificateArn", 20))
}
if invalidParams.Len() > 0 {
return invalidParams
}
return nil
}
// SetCertificateArn sets the CertificateArn field's value.
func (s *DescribeCertificateInput) SetCertificateArn(v string) *DescribeCertificateInput {
s.CertificateArn = &v
return s
}
type DescribeCertificateOutput struct {
_ struct{} `type:"structure"`
// Metadata about an ACM certificate.
Certificate *CertificateDetail `type:"structure"`
}
// String returns the string representation
func (s DescribeCertificateOutput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s DescribeCertificateOutput) GoString() string {
return s.String()
}
// SetCertificate sets the Certificate field's value.
func (s *DescribeCertificateOutput) SetCertificate(v *CertificateDetail) *DescribeCertificateOutput {
s.Certificate = v
return s
}
// Contains information about the validation of each domain name in the certificate.
type DomainValidation struct {
_ struct{} `type:"structure"`
// A fully qualified domain name (FQDN) in the certificate. For example, www.example.com
// or example.com.
//
// DomainName is a required field
DomainName *string `min:"1" type:"string" required:"true"`
// Contains the CNAME record that you add to your DNS database for domain validation.
// For more information, see Use DNS to Validate Domain Ownership (https://docs.aws.amazon.com/acm/latest/userguide/gs-acm-validate-dns.html).
//
// Note: The CNAME information that you need does not include the name of your
// domain. If you include your domain name in the DNS database CNAME record,
// validation fails. For example, if the name is "_a79865eb4cd1a6ab990a45779b4e0b96.yourdomain.com",
// only "_a79865eb4cd1a6ab990a45779b4e0b96" must be used.
ResourceRecord *ResourceRecord `type:"structure"`
// The domain name that ACM used to send domain validation emails.
ValidationDomain *string `min:"1" type:"string"`
// A list of email addresses that ACM used to send domain validation emails.
ValidationEmails []*string `type:"list"`
// Specifies the domain validation method.
ValidationMethod *string `type:"string" enum:"ValidationMethod"`
// The validation status of the domain name. This can be one of the following
// values:
//
// * PENDING_VALIDATION
//
// * SUCCESS
//
// * FAILED
ValidationStatus *string `type:"string" enum:"DomainStatus"`
}
// String returns the string representation
func (s DomainValidation) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s DomainValidation) GoString() string {
return s.String()
}
// SetDomainName sets the DomainName field's value.
func (s *DomainValidation) SetDomainName(v string) *DomainValidation {
s.DomainName = &v
return s
}
// SetResourceRecord sets the ResourceRecord field's value.
func (s *DomainValidation) SetResourceRecord(v *ResourceRecord) *DomainValidation {
s.ResourceRecord = v
return s
}
// SetValidationDomain sets the ValidationDomain field's value.
func (s *DomainValidation) SetValidationDomain(v string) *DomainValidation {
s.ValidationDomain = &v
return s
}
// SetValidationEmails sets the ValidationEmails field's value.
func (s *DomainValidation) SetValidationEmails(v []*string) *DomainValidation {
s.ValidationEmails = v
return s
}
// SetValidationMethod sets the ValidationMethod field's value.
func (s *DomainValidation) SetValidationMethod(v string) *DomainValidation {
s.ValidationMethod = &v
return s
}
// SetValidationStatus sets the ValidationStatus field's value.
func (s *DomainValidation) SetValidationStatus(v string) *DomainValidation {
s.ValidationStatus = &v
return s
}
// Contains information about the domain names that you want ACM to use to send
// you emails that enable you to validate domain ownership.
type DomainValidationOption struct {
_ struct{} `type:"structure"`
// A fully qualified domain name (FQDN) in the certificate request.
//
// DomainName is a required field
DomainName *string `min:"1" type:"string" required:"true"`
// The domain name that you want ACM to use to send you validation emails. This
// domain name is the suffix of the email addresses that you want ACM to use.
// This must be the same as the DomainName value or a superdomain of the DomainName
// value. For example, if you request a certificate for testing.example.com,
// you can specify example.com for this value. In that case, ACM sends domain
// validation emails to the following five addresses:
//
// * [email protected]
//
// * [email protected]
//
// * [email protected]
//
// * [email protected]
//
// * [email protected]
//
// ValidationDomain is a required field
ValidationDomain *string `min:"1" type:"string" required:"true"`
}
// String returns the string representation
func (s DomainValidationOption) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s DomainValidationOption) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
func (s *DomainValidationOption) Validate() error {
invalidParams := request.ErrInvalidParams{Context: "DomainValidationOption"}
if s.DomainName == nil {
invalidParams.Add(request.NewErrParamRequired("DomainName"))
}
if s.DomainName != nil && len(*s.DomainName) < 1 {
invalidParams.Add(request.NewErrParamMinLen("DomainName", 1))
}
if s.ValidationDomain == nil {
invalidParams.Add(request.NewErrParamRequired("ValidationDomain"))
}
if s.ValidationDomain != nil && len(*s.ValidationDomain) < 1 {
invalidParams.Add(request.NewErrParamMinLen("ValidationDomain", 1))
}
if invalidParams.Len() > 0 {
return invalidParams
}
return nil
}
// SetDomainName sets the DomainName field's value.
func (s *DomainValidationOption) SetDomainName(v string) *DomainValidationOption {
s.DomainName = &v
return s
}
// SetValidationDomain sets the ValidationDomain field's value.
func (s *DomainValidationOption) SetValidationDomain(v string) *DomainValidationOption {
s.ValidationDomain = &v
return s
}
// Object containing expiration events options associated with an Amazon Web
// Services account.
type ExpiryEventsConfiguration struct {
_ struct{} `type:"structure"`
// Specifies the number of days prior to certificate expiration when ACM starts
// generating EventBridge events. ACM sends one event per day per certificate
// until the certificate expires. By default, accounts receive events starting
// 45 days before certificate expiration.
DaysBeforeExpiry *int64 `min:"1" type:"integer"`
}
// String returns the string representation
func (s ExpiryEventsConfiguration) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s ExpiryEventsConfiguration) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
func (s *ExpiryEventsConfiguration) Validate() error {
invalidParams := request.ErrInvalidParams{Context: "ExpiryEventsConfiguration"}
if s.DaysBeforeExpiry != nil && *s.DaysBeforeExpiry < 1 {
invalidParams.Add(request.NewErrParamMinValue("DaysBeforeExpiry", 1))
}
if invalidParams.Len() > 0 {
return invalidParams
}
return nil
}
// SetDaysBeforeExpiry sets the DaysBeforeExpiry field's value.
func (s *ExpiryEventsConfiguration) SetDaysBeforeExpiry(v int64) *ExpiryEventsConfiguration {
s.DaysBeforeExpiry = &v
return s
}
type ExportCertificateInput struct {
_ struct{} `type:"structure"`
// An Amazon Resource Name (ARN) of the issued certificate. This must be of
// the form:
//
// arn:aws:acm:region:account:certificate/12345678-1234-1234-1234-123456789012
//
// CertificateArn is a required field
CertificateArn *string `min:"20" type:"string" required:"true"`
// Passphrase to associate with the encrypted exported private key. If you want
// to later decrypt the private key, you must have the passphrase. You can use
// the following OpenSSL command to decrypt a private key:
//
// openssl rsa -in encrypted_key.pem -out decrypted_key.pem
//
// Passphrase is automatically base64 encoded/decoded by the SDK.
//
// Passphrase is a required field
Passphrase []byte `min:"4" type:"blob" required:"true" sensitive:"true"`
}
// String returns the string representation
func (s ExportCertificateInput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s ExportCertificateInput) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
func (s *ExportCertificateInput) Validate() error {
invalidParams := request.ErrInvalidParams{Context: "ExportCertificateInput"}
if s.CertificateArn == nil {
invalidParams.Add(request.NewErrParamRequired("CertificateArn"))
}
if s.CertificateArn != nil && len(*s.CertificateArn) < 20 {
invalidParams.Add(request.NewErrParamMinLen("CertificateArn", 20))
}
if s.Passphrase == nil {
invalidParams.Add(request.NewErrParamRequired("Passphrase"))
}
if s.Passphrase != nil && len(s.Passphrase) < 4 {
invalidParams.Add(request.NewErrParamMinLen("Passphrase", 4))
}
if invalidParams.Len() > 0 {
return invalidParams
}
return nil
}
// SetCertificateArn sets the CertificateArn field's value.
func (s *ExportCertificateInput) SetCertificateArn(v string) *ExportCertificateInput {
s.CertificateArn = &v
return s
}
// SetPassphrase sets the Passphrase field's value.
func (s *ExportCertificateInput) SetPassphrase(v []byte) *ExportCertificateInput {
s.Passphrase = v
return s
}
type ExportCertificateOutput struct {
_ struct{} `type:"structure"`
// The base64 PEM-encoded certificate.
Certificate *string `min:"1" type:"string"`
// The base64 PEM-encoded certificate chain. This does not include the certificate
// that you are exporting.
CertificateChain *string `min:"1" type:"string"`
// The encrypted private key associated with the public key in the certificate.
// The key is output in PKCS #8 format and is base64 PEM-encoded.
PrivateKey *string `min:"1" type:"string" sensitive:"true"`
}
// String returns the string representation
func (s ExportCertificateOutput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s ExportCertificateOutput) GoString() string {
return s.String()
}
// SetCertificate sets the Certificate field's value.
func (s *ExportCertificateOutput) SetCertificate(v string) *ExportCertificateOutput {
s.Certificate = &v
return s
}
// SetCertificateChain sets the CertificateChain field's value.
func (s *ExportCertificateOutput) SetCertificateChain(v string) *ExportCertificateOutput {
s.CertificateChain = &v
return s
}
// SetPrivateKey sets the PrivateKey field's value.
func (s *ExportCertificateOutput) SetPrivateKey(v string) *ExportCertificateOutput {
s.PrivateKey = &v
return s
}
// The Extended Key Usage X.509 v3 extension defines one or more purposes for
// which the public key can be used. This is in addition to or in place of the
// basic purposes specified by the Key Usage extension.
type ExtendedKeyUsage struct {
_ struct{} `type:"structure"`
// The name of an Extended Key Usage value.
Name *string `type:"string" enum:"ExtendedKeyUsageName"`
// An object identifier (OID) for the extension value. OIDs are strings of numbers
// separated by periods. The following OIDs are defined in RFC 3280 and RFC
// 5280.
//
// * 1.3.6.1.5.5.7.3.1 (TLS_WEB_SERVER_AUTHENTICATION)
//
// * 1.3.6.1.5.5.7.3.2 (TLS_WEB_CLIENT_AUTHENTICATION)
//
// * 1.3.6.1.5.5.7.3.3 (CODE_SIGNING)
//
// * 1.3.6.1.5.5.7.3.4 (EMAIL_PROTECTION)
//
// * 1.3.6.1.5.5.7.3.8 (TIME_STAMPING)
//
// * 1.3.6.1.5.5.7.3.9 (OCSP_SIGNING)
//
// * 1.3.6.1.5.5.7.3.5 (IPSEC_END_SYSTEM)
//
// * 1.3.6.1.5.5.7.3.6 (IPSEC_TUNNEL)
//
// * 1.3.6.1.5.5.7.3.7 (IPSEC_USER)
OID *string `type:"string"`
}
// String returns the string representation
func (s ExtendedKeyUsage) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s ExtendedKeyUsage) GoString() string {
return s.String()
}
// SetName sets the Name field's value.
func (s *ExtendedKeyUsage) SetName(v string) *ExtendedKeyUsage {
s.Name = &v
return s
}
// SetOID sets the OID field's value.
func (s *ExtendedKeyUsage) SetOID(v string) *ExtendedKeyUsage {
s.OID = &v
return s
}
// This structure can be used in the ListCertificates action to filter the output
// of the certificate list.
type Filters struct {
_ struct{} `type:"structure"`
// Specify one or more ExtendedKeyUsage extension values.
ExtendedKeyUsage []*string `locationName:"extendedKeyUsage" type:"list"`
// Specify one or more algorithms that can be used to generate key pairs.
//
// Default filtering returns only RSA_1024 and RSA_2048 certificates that have
// at least one domain. To return other certificate types, provide the desired
// type signatures in a comma-separated list. For example, "keyTypes": ["RSA_2048,RSA_4096"]
// returns both RSA_2048 and RSA_4096 certificates.
KeyTypes []*string `locationName:"keyTypes" type:"list"`
// Specify one or more KeyUsage extension values.
KeyUsage []*string `locationName:"keyUsage" type:"list"`
}
// String returns the string representation
func (s Filters) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s Filters) GoString() string {
return s.String()
}
// SetExtendedKeyUsage sets the ExtendedKeyUsage field's value.
func (s *Filters) SetExtendedKeyUsage(v []*string) *Filters {
s.ExtendedKeyUsage = v
return s
}
// SetKeyTypes sets the KeyTypes field's value.
func (s *Filters) SetKeyTypes(v []*string) *Filters {
s.KeyTypes = v
return s
}
// SetKeyUsage sets the KeyUsage field's value.
func (s *Filters) SetKeyUsage(v []*string) *Filters {
s.KeyUsage = v
return s
}
type GetAccountConfigurationInput struct {
_ struct{} `type:"structure"`
}
// String returns the string representation
func (s GetAccountConfigurationInput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s GetAccountConfigurationInput) GoString() string {
return s.String()
}
type GetAccountConfigurationOutput struct {
_ struct{} `type:"structure"`
// Expiration events configuration options associated with the Amazon Web Services
// account.
ExpiryEvents *ExpiryEventsConfiguration `type:"structure"`
}
// String returns the string representation
func (s GetAccountConfigurationOutput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s GetAccountConfigurationOutput) GoString() string {
return s.String()
}
// SetExpiryEvents sets the ExpiryEvents field's value.
func (s *GetAccountConfigurationOutput) SetExpiryEvents(v *ExpiryEventsConfiguration) *GetAccountConfigurationOutput {
s.ExpiryEvents = v
return s
}
type GetCertificateInput struct {
_ struct{} `type:"structure"`
// String that contains a certificate ARN in the following format:
//
// arn:aws:acm:region:123456789012:certificate/12345678-1234-1234-1234-123456789012
//
// For more information about ARNs, see Amazon Resource Names (ARNs) (https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html).
//
// CertificateArn is a required field
CertificateArn *string `min:"20" type:"string" required:"true"`
}
// String returns the string representation
func (s GetCertificateInput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s GetCertificateInput) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
func (s *GetCertificateInput) Validate() error {
invalidParams := request.ErrInvalidParams{Context: "GetCertificateInput"}
if s.CertificateArn == nil {
invalidParams.Add(request.NewErrParamRequired("CertificateArn"))
}
if s.CertificateArn != nil && len(*s.CertificateArn) < 20 {
invalidParams.Add(request.NewErrParamMinLen("CertificateArn", 20))
}
if invalidParams.Len() > 0 {
return invalidParams
}
return nil
}
// SetCertificateArn sets the CertificateArn field's value.
func (s *GetCertificateInput) SetCertificateArn(v string) *GetCertificateInput {
s.CertificateArn = &v
return s
}
type GetCertificateOutput struct {
_ struct{} `type:"structure"`
// The ACM-issued certificate corresponding to the ARN specified as input.
Certificate *string `min:"1" type:"string"`
// Certificates forming the requested certificate's chain of trust. The chain
// consists of the certificate of the issuing CA and the intermediate certificates
// of any other subordinate CAs.
CertificateChain *string `min:"1" type:"string"`
}
// String returns the string representation
func (s GetCertificateOutput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s GetCertificateOutput) GoString() string {
return s.String()
}
// SetCertificate sets the Certificate field's value.
func (s *GetCertificateOutput) SetCertificate(v string) *GetCertificateOutput {
s.Certificate = &v
return s
}
// SetCertificateChain sets the CertificateChain field's value.
func (s *GetCertificateOutput) SetCertificateChain(v string) *GetCertificateOutput {
s.CertificateChain = &v
return s
}
type ImportCertificateInput struct {
_ struct{} `type:"structure"`
// The certificate to import.
//
// Certificate is automatically base64 encoded/decoded by the SDK.
//
// Certificate is a required field
Certificate []byte `min:"1" type:"blob" required:"true"`
// The Amazon Resource Name (ARN) (https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html)
// of an imported certificate to replace. To import a new certificate, omit
// this field.
CertificateArn *string `min:"20" type:"string"`
// The PEM encoded certificate chain.
//
// CertificateChain is automatically base64 encoded/decoded by the SDK.
CertificateChain []byte `min:"1" type:"blob"`
// The private key that matches the public key in the certificate.
//
// PrivateKey is automatically base64 encoded/decoded by the SDK.
//
// PrivateKey is a required field
PrivateKey []byte `min:"1" type:"blob" required:"true" sensitive:"true"`
// One or more resource tags to associate with the imported certificate.
//
// Note: You cannot apply tags when reimporting a certificate.
Tags []*Tag `min:"1" type:"list"`
}
// String returns the string representation
func (s ImportCertificateInput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s ImportCertificateInput) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
func (s *ImportCertificateInput) Validate() error {
invalidParams := request.ErrInvalidParams{Context: "ImportCertificateInput"}
if s.Certificate == nil {
invalidParams.Add(request.NewErrParamRequired("Certificate"))
}
if s.Certificate != nil && len(s.Certificate) < 1 {
invalidParams.Add(request.NewErrParamMinLen("Certificate", 1))
}
if s.CertificateArn != nil && len(*s.CertificateArn) < 20 {
invalidParams.Add(request.NewErrParamMinLen("CertificateArn", 20))
}
if s.CertificateChain != nil && len(s.CertificateChain) < 1 {
invalidParams.Add(request.NewErrParamMinLen("CertificateChain", 1))
}
if s.PrivateKey == nil {
invalidParams.Add(request.NewErrParamRequired("PrivateKey"))
}
if s.PrivateKey != nil && len(s.PrivateKey) < 1 {
invalidParams.Add(request.NewErrParamMinLen("PrivateKey", 1))
}
if s.Tags != nil && len(s.Tags) < 1 {
invalidParams.Add(request.NewErrParamMinLen("Tags", 1))
}
if s.Tags != nil {
for i, v := range s.Tags {
if v == nil {
continue
}
if err := v.Validate(); err != nil {
invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Tags", i), err.(request.ErrInvalidParams))
}
}
}
if invalidParams.Len() > 0 {
return invalidParams
}
return nil
}
// SetCertificate sets the Certificate field's value.
func (s *ImportCertificateInput) SetCertificate(v []byte) *ImportCertificateInput {
s.Certificate = v
return s
}
// SetCertificateArn sets the CertificateArn field's value.
func (s *ImportCertificateInput) SetCertificateArn(v string) *ImportCertificateInput {
s.CertificateArn = &v
return s
}
// SetCertificateChain sets the CertificateChain field's value.
func (s *ImportCertificateInput) SetCertificateChain(v []byte) *ImportCertificateInput {
s.CertificateChain = v
return s
}
// SetPrivateKey sets the PrivateKey field's value.
func (s *ImportCertificateInput) SetPrivateKey(v []byte) *ImportCertificateInput {
s.PrivateKey = v
return s
}
// SetTags sets the Tags field's value.
func (s *ImportCertificateInput) SetTags(v []*Tag) *ImportCertificateInput {
s.Tags = v
return s
}
type ImportCertificateOutput struct {
_ struct{} `type:"structure"`
// The Amazon Resource Name (ARN) (https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html)
// of the imported certificate.
CertificateArn *string `min:"20" type:"string"`
}
// String returns the string representation
func (s ImportCertificateOutput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s ImportCertificateOutput) GoString() string {
return s.String()
}
// SetCertificateArn sets the CertificateArn field's value.
func (s *ImportCertificateOutput) SetCertificateArn(v string) *ImportCertificateOutput {
s.CertificateArn = &v
return s
}
// One or more of of request parameters specified is not valid.
type InvalidArgsException struct {
_ struct{} `type:"structure"`
RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
// String returns the string representation
func (s InvalidArgsException) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s InvalidArgsException) GoString() string {
return s.String()
}
func newErrorInvalidArgsException(v protocol.ResponseMetadata) error {
return &InvalidArgsException{
RespMetadata: v,
}
}
// Code returns the exception type name.
func (s *InvalidArgsException) Code() string {
return "InvalidArgsException"
}
// Message returns the exception's message.
func (s *InvalidArgsException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
return ""
}
// OrigErr always returns nil, satisfies awserr.Error interface.
func (s *InvalidArgsException) OrigErr() error {
return nil
}
func (s *InvalidArgsException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
func (s *InvalidArgsException) StatusCode() int {
return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
func (s *InvalidArgsException) RequestID() string {
return s.RespMetadata.RequestID
}
// The requested Amazon Resource Name (ARN) does not refer to an existing resource.
type InvalidArnException struct {
_ struct{} `type:"structure"`
RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
// String returns the string representation
func (s InvalidArnException) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s InvalidArnException) GoString() string {
return s.String()
}
func newErrorInvalidArnException(v protocol.ResponseMetadata) error {
return &InvalidArnException{
RespMetadata: v,
}
}
// Code returns the exception type name.
func (s *InvalidArnException) Code() string {
return "InvalidArnException"
}
// Message returns the exception's message.
func (s *InvalidArnException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
return ""
}
// OrigErr always returns nil, satisfies awserr.Error interface.
func (s *InvalidArnException) OrigErr() error {
return nil
}
func (s *InvalidArnException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
func (s *InvalidArnException) StatusCode() int {
return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
func (s *InvalidArnException) RequestID() string {
return s.RespMetadata.RequestID
}
// One or more values in the DomainValidationOption structure is incorrect.
type InvalidDomainValidationOptionsException struct {
_ struct{} `type:"structure"`
RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
// String returns the string representation
func (s InvalidDomainValidationOptionsException) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s InvalidDomainValidationOptionsException) GoString() string {
return s.String()
}
func newErrorInvalidDomainValidationOptionsException(v protocol.ResponseMetadata) error {
return &InvalidDomainValidationOptionsException{
RespMetadata: v,
}
}
// Code returns the exception type name.
func (s *InvalidDomainValidationOptionsException) Code() string {
return "InvalidDomainValidationOptionsException"
}
// Message returns the exception's message.
func (s *InvalidDomainValidationOptionsException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
return ""
}
// OrigErr always returns nil, satisfies awserr.Error interface.
func (s *InvalidDomainValidationOptionsException) OrigErr() error {
return nil
}
func (s *InvalidDomainValidationOptionsException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
func (s *InvalidDomainValidationOptionsException) StatusCode() int {
return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
func (s *InvalidDomainValidationOptionsException) RequestID() string {
return s.RespMetadata.RequestID
}
// An input parameter was invalid.
type InvalidParameterException struct {
_ struct{} `type:"structure"`
RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
// String returns the string representation
func (s InvalidParameterException) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s InvalidParameterException) GoString() string {
return s.String()
}
func newErrorInvalidParameterException(v protocol.ResponseMetadata) error {
return &InvalidParameterException{
RespMetadata: v,
}
}
// Code returns the exception type name.
func (s *InvalidParameterException) Code() string {
return "InvalidParameterException"
}
// Message returns the exception's message.
func (s *InvalidParameterException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
return ""
}
// OrigErr always returns nil, satisfies awserr.Error interface.
func (s *InvalidParameterException) OrigErr() error {
return nil
}
func (s *InvalidParameterException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
func (s *InvalidParameterException) StatusCode() int {
return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
func (s *InvalidParameterException) RequestID() string {
return s.RespMetadata.RequestID
}
// Processing has reached an invalid state.
type InvalidStateException struct {
_ struct{} `type:"structure"`
RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
// String returns the string representation
func (s InvalidStateException) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s InvalidStateException) GoString() string {
return s.String()
}
func newErrorInvalidStateException(v protocol.ResponseMetadata) error {
return &InvalidStateException{
RespMetadata: v,
}
}
// Code returns the exception type name.
func (s *InvalidStateException) Code() string {
return "InvalidStateException"
}
// Message returns the exception's message.
func (s *InvalidStateException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
return ""
}
// OrigErr always returns nil, satisfies awserr.Error interface.
func (s *InvalidStateException) OrigErr() error {
return nil
}
func (s *InvalidStateException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
func (s *InvalidStateException) StatusCode() int {
return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
func (s *InvalidStateException) RequestID() string {
return s.RespMetadata.RequestID
}
// One or both of the values that make up the key-value pair is not valid. For
// example, you cannot specify a tag value that begins with aws:.
type InvalidTagException struct {
_ struct{} `type:"structure"`
RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
// String returns the string representation
func (s InvalidTagException) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s InvalidTagException) GoString() string {
return s.String()
}
func newErrorInvalidTagException(v protocol.ResponseMetadata) error {
return &InvalidTagException{
RespMetadata: v,
}
}
// Code returns the exception type name.
func (s *InvalidTagException) Code() string {
return "InvalidTagException"
}
// Message returns the exception's message.
func (s *InvalidTagException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
return ""
}
// OrigErr always returns nil, satisfies awserr.Error interface.
func (s *InvalidTagException) OrigErr() error {
return nil
}
func (s *InvalidTagException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
func (s *InvalidTagException) StatusCode() int {
return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
func (s *InvalidTagException) RequestID() string {
return s.RespMetadata.RequestID
}
// The Key Usage X.509 v3 extension defines the purpose of the public key contained
// in the certificate.
type KeyUsage struct {
_ struct{} `type:"structure"`
// A string value that contains a Key Usage extension name.
Name *string `type:"string" enum:"KeyUsageName"`
}
// String returns the string representation
func (s KeyUsage) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s KeyUsage) GoString() string {
return s.String()
}
// SetName sets the Name field's value.
func (s *KeyUsage) SetName(v string) *KeyUsage {
s.Name = &v
return s
}
// An ACM quota has been exceeded.
type LimitExceededException struct {
_ struct{} `type:"structure"`
RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
// String returns the string representation
func (s LimitExceededException) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s LimitExceededException) GoString() string {
return s.String()
}
func newErrorLimitExceededException(v protocol.ResponseMetadata) error {
return &LimitExceededException{
RespMetadata: v,
}
}
// Code returns the exception type name.
func (s *LimitExceededException) Code() string {
return "LimitExceededException"
}
// Message returns the exception's message.
func (s *LimitExceededException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
return ""
}
// OrigErr always returns nil, satisfies awserr.Error interface.
func (s *LimitExceededException) OrigErr() error {
return nil
}
func (s *LimitExceededException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
func (s *LimitExceededException) StatusCode() int {
return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
func (s *LimitExceededException) RequestID() string {
return s.RespMetadata.RequestID
}
type ListCertificatesInput struct {
_ struct{} `type:"structure"`
// Filter the certificate list by status value.
CertificateStatuses []*string `type:"list"`
// Filter the certificate list. For more information, see the Filters structure.
Includes *Filters `type:"structure"`
// Use this parameter when paginating results to specify the maximum number
// of items to return in the response. If additional items exist beyond the
// number you specify, the NextToken element is sent in the response. Use this
// NextToken value in a subsequent request to retrieve additional items.
MaxItems *int64 `min:"1" type:"integer"`
// Use this parameter only when paginating results and only in a subsequent
// request after you receive a response with truncated results. Set it to the
// value of NextToken from the response you just received.
NextToken *string `min:"1" type:"string"`
}
// String returns the string representation
func (s ListCertificatesInput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s ListCertificatesInput) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
func (s *ListCertificatesInput) Validate() error {
invalidParams := request.ErrInvalidParams{Context: "ListCertificatesInput"}
if s.MaxItems != nil && *s.MaxItems < 1 {
invalidParams.Add(request.NewErrParamMinValue("MaxItems", 1))
}
if s.NextToken != nil && len(*s.NextToken) < 1 {
invalidParams.Add(request.NewErrParamMinLen("NextToken", 1))
}
if invalidParams.Len() > 0 {
return invalidParams
}
return nil
}
// SetCertificateStatuses sets the CertificateStatuses field's value.
func (s *ListCertificatesInput) SetCertificateStatuses(v []*string) *ListCertificatesInput {
s.CertificateStatuses = v
return s
}
// SetIncludes sets the Includes field's value.
func (s *ListCertificatesInput) SetIncludes(v *Filters) *ListCertificatesInput {
s.Includes = v
return s
}
// SetMaxItems sets the MaxItems field's value.
func (s *ListCertificatesInput) SetMaxItems(v int64) *ListCertificatesInput {
s.MaxItems = &v
return s
}
// SetNextToken sets the NextToken field's value.
func (s *ListCertificatesInput) SetNextToken(v string) *ListCertificatesInput {
s.NextToken = &v
return s
}
type ListCertificatesOutput struct {
_ struct{} `type:"structure"`
// A list of ACM certificates.
CertificateSummaryList []*CertificateSummary `type:"list"`
// When the list is truncated, this value is present and contains the value
// to use for the NextToken parameter in a subsequent pagination request.
NextToken *string `min:"1" type:"string"`
}
// String returns the string representation
func (s ListCertificatesOutput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s ListCertificatesOutput) GoString() string {
return s.String()
}
// SetCertificateSummaryList sets the CertificateSummaryList field's value.
func (s *ListCertificatesOutput) SetCertificateSummaryList(v []*CertificateSummary) *ListCertificatesOutput {
s.CertificateSummaryList = v
return s
}
// SetNextToken sets the NextToken field's value.
func (s *ListCertificatesOutput) SetNextToken(v string) *ListCertificatesOutput {
s.NextToken = &v
return s
}
type ListTagsForCertificateInput struct {
_ struct{} `type:"structure"`
// String that contains the ARN of the ACM certificate for which you want to
// list the tags. This must have the following form:
//
// arn:aws:acm:region:123456789012:certificate/12345678-1234-1234-1234-123456789012
//
// For more information about ARNs, see Amazon Resource Names (ARNs) (https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html).
//
// CertificateArn is a required field
CertificateArn *string `min:"20" type:"string" required:"true"`
}
// String returns the string representation
func (s ListTagsForCertificateInput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s ListTagsForCertificateInput) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
func (s *ListTagsForCertificateInput) Validate() error {
invalidParams := request.ErrInvalidParams{Context: "ListTagsForCertificateInput"}
if s.CertificateArn == nil {
invalidParams.Add(request.NewErrParamRequired("CertificateArn"))
}
if s.CertificateArn != nil && len(*s.CertificateArn) < 20 {
invalidParams.Add(request.NewErrParamMinLen("CertificateArn", 20))
}
if invalidParams.Len() > 0 {
return invalidParams
}
return nil
}
// SetCertificateArn sets the CertificateArn field's value.
func (s *ListTagsForCertificateInput) SetCertificateArn(v string) *ListTagsForCertificateInput {
s.CertificateArn = &v
return s
}
type ListTagsForCertificateOutput struct {
_ struct{} `type:"structure"`
// The key-value pairs that define the applied tags.
Tags []*Tag `min:"1" type:"list"`
}
// String returns the string representation
func (s ListTagsForCertificateOutput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s ListTagsForCertificateOutput) GoString() string {
return s.String()
}
// SetTags sets the Tags field's value.
func (s *ListTagsForCertificateOutput) SetTags(v []*Tag) *ListTagsForCertificateOutput {
s.Tags = v
return s
}
type PutAccountConfigurationInput struct {
_ struct{} `type:"structure"`
// Specifies expiration events associated with an account.
ExpiryEvents *ExpiryEventsConfiguration `type:"structure"`
// Customer-chosen string used to distinguish between calls to PutAccountConfiguration.
// Idempotency tokens time out after one hour. If you call PutAccountConfiguration
// multiple times with the same unexpired idempotency token, ACM treats it as
// the same request and returns the original result. If you change the idempotency
// token for each call, ACM treats each call as a new request.
//
// IdempotencyToken is a required field
IdempotencyToken *string `min:"1" type:"string" required:"true"`
}
// String returns the string representation
func (s PutAccountConfigurationInput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s PutAccountConfigurationInput) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
func (s *PutAccountConfigurationInput) Validate() error {
invalidParams := request.ErrInvalidParams{Context: "PutAccountConfigurationInput"}
if s.IdempotencyToken == nil {
invalidParams.Add(request.NewErrParamRequired("IdempotencyToken"))
}
if s.IdempotencyToken != nil && len(*s.IdempotencyToken) < 1 {
invalidParams.Add(request.NewErrParamMinLen("IdempotencyToken", 1))
}
if s.ExpiryEvents != nil {
if err := s.ExpiryEvents.Validate(); err != nil {
invalidParams.AddNested("ExpiryEvents", err.(request.ErrInvalidParams))
}
}
if invalidParams.Len() > 0 {
return invalidParams
}
return nil
}
// SetExpiryEvents sets the ExpiryEvents field's value.
func (s *PutAccountConfigurationInput) SetExpiryEvents(v *ExpiryEventsConfiguration) *PutAccountConfigurationInput {
s.ExpiryEvents = v
return s
}
// SetIdempotencyToken sets the IdempotencyToken field's value.
func (s *PutAccountConfigurationInput) SetIdempotencyToken(v string) *PutAccountConfigurationInput {
s.IdempotencyToken = &v
return s
}
type PutAccountConfigurationOutput struct {
_ struct{} `type:"structure"`
}
// String returns the string representation
func (s PutAccountConfigurationOutput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s PutAccountConfigurationOutput) GoString() string {
return s.String()
}
type RemoveTagsFromCertificateInput struct {
_ struct{} `type:"structure"`
// String that contains the ARN of the ACM Certificate with one or more tags
// that you want to remove. This must be of the form:
//
// arn:aws:acm:region:123456789012:certificate/12345678-1234-1234-1234-123456789012
//
// For more information about ARNs, see Amazon Resource Names (ARNs) (https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html).
//
// CertificateArn is a required field
CertificateArn *string `min:"20" type:"string" required:"true"`
// The key-value pair that defines the tag to remove.
//
// Tags is a required field
Tags []*Tag `min:"1" type:"list" required:"true"`
}
// String returns the string representation
func (s RemoveTagsFromCertificateInput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s RemoveTagsFromCertificateInput) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
func (s *RemoveTagsFromCertificateInput) Validate() error {
invalidParams := request.ErrInvalidParams{Context: "RemoveTagsFromCertificateInput"}
if s.CertificateArn == nil {
invalidParams.Add(request.NewErrParamRequired("CertificateArn"))
}
if s.CertificateArn != nil && len(*s.CertificateArn) < 20 {
invalidParams.Add(request.NewErrParamMinLen("CertificateArn", 20))
}
if s.Tags == nil {
invalidParams.Add(request.NewErrParamRequired("Tags"))
}
if s.Tags != nil && len(s.Tags) < 1 {
invalidParams.Add(request.NewErrParamMinLen("Tags", 1))
}
if s.Tags != nil {
for i, v := range s.Tags {
if v == nil {
continue
}
if err := v.Validate(); err != nil {
invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Tags", i), err.(request.ErrInvalidParams))
}
}
}
if invalidParams.Len() > 0 {
return invalidParams
}
return nil
}
// SetCertificateArn sets the CertificateArn field's value.
func (s *RemoveTagsFromCertificateInput) SetCertificateArn(v string) *RemoveTagsFromCertificateInput {
s.CertificateArn = &v
return s
}
// SetTags sets the Tags field's value.
func (s *RemoveTagsFromCertificateInput) SetTags(v []*Tag) *RemoveTagsFromCertificateInput {
s.Tags = v
return s
}
type RemoveTagsFromCertificateOutput struct {
_ struct{} `type:"structure"`
}
// String returns the string representation
func (s RemoveTagsFromCertificateOutput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s RemoveTagsFromCertificateOutput) GoString() string {
return s.String()
}
type RenewCertificateInput struct {
_ struct{} `type:"structure"`
// String that contains the ARN of the ACM certificate to be renewed. This must
// be of the form:
//
// arn:aws:acm:region:123456789012:certificate/12345678-1234-1234-1234-123456789012
//
// For more information about ARNs, see Amazon Resource Names (ARNs) (https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html).
//
// CertificateArn is a required field
CertificateArn *string `min:"20" type:"string" required:"true"`
}
// String returns the string representation
func (s RenewCertificateInput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s RenewCertificateInput) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
func (s *RenewCertificateInput) Validate() error {
invalidParams := request.ErrInvalidParams{Context: "RenewCertificateInput"}
if s.CertificateArn == nil {
invalidParams.Add(request.NewErrParamRequired("CertificateArn"))
}
if s.CertificateArn != nil && len(*s.CertificateArn) < 20 {
invalidParams.Add(request.NewErrParamMinLen("CertificateArn", 20))
}
if invalidParams.Len() > 0 {
return invalidParams
}
return nil
}
// SetCertificateArn sets the CertificateArn field's value.
func (s *RenewCertificateInput) SetCertificateArn(v string) *RenewCertificateInput {
s.CertificateArn = &v
return s
}
type RenewCertificateOutput struct {
_ struct{} `type:"structure"`
}
// String returns the string representation
func (s RenewCertificateOutput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s RenewCertificateOutput) GoString() string {
return s.String()
}
// Contains information about the status of ACM's managed renewal (https://docs.aws.amazon.com/acm/latest/userguide/acm-renewal.html)
// for the certificate. This structure exists only when the certificate type
// is AMAZON_ISSUED.
type RenewalSummary struct {
_ struct{} `type:"structure"`
// Contains information about the validation of each domain name in the certificate,
// as it pertains to ACM's managed renewal (https://docs.aws.amazon.com/acm/latest/userguide/acm-renewal.html).
// This is different from the initial validation that occurs as a result of
// the RequestCertificate request. This field exists only when the certificate
// type is AMAZON_ISSUED.
//
// DomainValidationOptions is a required field
DomainValidationOptions []*DomainValidation `min:"1" type:"list" required:"true"`
// The status of ACM's managed renewal (https://docs.aws.amazon.com/acm/latest/userguide/acm-renewal.html)
// of the certificate.
//
// RenewalStatus is a required field
RenewalStatus *string `type:"string" required:"true" enum:"RenewalStatus"`
// The reason that a renewal request was unsuccessful.
RenewalStatusReason *string `type:"string" enum:"FailureReason"`
// The time at which the renewal summary was last updated.
//
// UpdatedAt is a required field
UpdatedAt *time.Time `type:"timestamp" required:"true"`
}
// String returns the string representation
func (s RenewalSummary) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s RenewalSummary) GoString() string {
return s.String()
}
// SetDomainValidationOptions sets the DomainValidationOptions field's value.
func (s *RenewalSummary) SetDomainValidationOptions(v []*DomainValidation) *RenewalSummary {
s.DomainValidationOptions = v
return s
}
// SetRenewalStatus sets the RenewalStatus field's value.
func (s *RenewalSummary) SetRenewalStatus(v string) *RenewalSummary {
s.RenewalStatus = &v
return s
}
// SetRenewalStatusReason sets the RenewalStatusReason field's value.
func (s *RenewalSummary) SetRenewalStatusReason(v string) *RenewalSummary {
s.RenewalStatusReason = &v
return s
}
// SetUpdatedAt sets the UpdatedAt field's value.
func (s *RenewalSummary) SetUpdatedAt(v time.Time) *RenewalSummary {
s.UpdatedAt = &v
return s
}
type RequestCertificateInput struct {
_ struct{} `type:"structure"`
// The Amazon Resource Name (ARN) of the private certificate authority (CA)
// that will be used to issue the certificate. If you do not provide an ARN
// and you are trying to request a private certificate, ACM will attempt to
// issue a public certificate. For more information about private CAs, see the
// Amazon Web Services Certificate Manager Private Certificate Authority (PCA)
// (https://docs.aws.amazon.com/acm-pca/latest/userguide/PcaWelcome.html) user
// guide. The ARN must have the following form:
//
// arn:aws:acm-pca:region:account:certificate-authority/12345678-1234-1234-1234-123456789012
CertificateAuthorityArn *string `min:"20" type:"string"`
// Fully qualified domain name (FQDN), such as www.example.com, that you want
// to secure with an ACM certificate. Use an asterisk (*) to create a wildcard
// certificate that protects several sites in the same domain. For example,
// *.example.com protects www.example.com, site.example.com, and images.example.com.
//
// The first domain name you enter cannot exceed 64 octets, including periods.
// Each subsequent Subject Alternative Name (SAN), however, can be up to 253
// octets in length.
//
// DomainName is a required field
DomainName *string `min:"1" type:"string" required:"true"`
// The domain name that you want ACM to use to send you emails so that you can
// validate domain ownership.
DomainValidationOptions []*DomainValidationOption `min:"1" type:"list"`
// Customer chosen string that can be used to distinguish between calls to RequestCertificate.
// Idempotency tokens time out after one hour. Therefore, if you call RequestCertificate
// multiple times with the same idempotency token within one hour, ACM recognizes
// that you are requesting only one certificate and will issue only one. If
// you change the idempotency token for each call, ACM recognizes that you are
// requesting multiple certificates.
IdempotencyToken *string `min:"1" type:"string"`
// Currently, you can use this parameter to specify whether to add the certificate
// to a certificate transparency log. Certificate transparency makes it possible
// to detect SSL/TLS certificates that have been mistakenly or maliciously issued.
// Certificates that have not been logged typically produce an error message
// in a browser. For more information, see Opting Out of Certificate Transparency
// Logging (https://docs.aws.amazon.com/acm/latest/userguide/acm-bestpractices.html#best-practices-transparency).
Options *CertificateOptions `type:"structure"`
// Additional FQDNs to be included in the Subject Alternative Name extension
// of the ACM certificate. For example, add the name www.example.net to a certificate
// for which the DomainName field is www.example.com if users can reach your
// site by using either name. The maximum number of domain names that you can
// add to an ACM certificate is 100. However, the initial quota is 10 domain
// names. If you need more than 10 names, you must request a quota increase.
// For more information, see Quotas (https://docs.aws.amazon.com/acm/latest/userguide/acm-limits.html).
//
// The maximum length of a SAN DNS name is 253 octets. The name is made up of
// multiple labels separated by periods. No label can be longer than 63 octets.
// Consider the following examples:
//
// * (63 octets).(63 octets).(63 octets).(61 octets) is legal because the
// total length is 253 octets (63+1+63+1+63+1+61) and no label exceeds 63
// octets.
//
// * (64 octets).(63 octets).(63 octets).(61 octets) is not legal because
// the total length exceeds 253 octets (64+1+63+1+63+1+61) and the first
// label exceeds 63 octets.
//
// * (63 octets).(63 octets).(63 octets).(62 octets) is not legal because
// the total length of the DNS name (63+1+63+1+63+1+62) exceeds 253 octets.
SubjectAlternativeNames []*string `min:"1" type:"list"`
// One or more resource tags to associate with the certificate.
Tags []*Tag `min:"1" type:"list"`
// The method you want to use if you are requesting a public certificate to
// validate that you own or control domain. You can validate with DNS (https://docs.aws.amazon.com/acm/latest/userguide/gs-acm-validate-dns.html)
// or validate with email (https://docs.aws.amazon.com/acm/latest/userguide/gs-acm-validate-email.html).
// We recommend that you use DNS validation.
ValidationMethod *string `type:"string" enum:"ValidationMethod"`
}
// String returns the string representation
func (s RequestCertificateInput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s RequestCertificateInput) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
func (s *RequestCertificateInput) Validate() error {
invalidParams := request.ErrInvalidParams{Context: "RequestCertificateInput"}
if s.CertificateAuthorityArn != nil && len(*s.CertificateAuthorityArn) < 20 {
invalidParams.Add(request.NewErrParamMinLen("CertificateAuthorityArn", 20))
}
if s.DomainName == nil {
invalidParams.Add(request.NewErrParamRequired("DomainName"))
}
if s.DomainName != nil && len(*s.DomainName) < 1 {
invalidParams.Add(request.NewErrParamMinLen("DomainName", 1))
}
if s.DomainValidationOptions != nil && len(s.DomainValidationOptions) < 1 {
invalidParams.Add(request.NewErrParamMinLen("DomainValidationOptions", 1))
}
if s.IdempotencyToken != nil && len(*s.IdempotencyToken) < 1 {
invalidParams.Add(request.NewErrParamMinLen("IdempotencyToken", 1))
}
if s.SubjectAlternativeNames != nil && len(s.SubjectAlternativeNames) < 1 {
invalidParams.Add(request.NewErrParamMinLen("SubjectAlternativeNames", 1))
}
if s.Tags != nil && len(s.Tags) < 1 {
invalidParams.Add(request.NewErrParamMinLen("Tags", 1))
}
if s.DomainValidationOptions != nil {
for i, v := range s.DomainValidationOptions {
if v == nil {
continue
}
if err := v.Validate(); err != nil {
invalidParams.AddNested(fmt.Sprintf("%s[%v]", "DomainValidationOptions", i), err.(request.ErrInvalidParams))
}
}
}
if s.Tags != nil {
for i, v := range s.Tags {
if v == nil {
continue
}
if err := v.Validate(); err != nil {
invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Tags", i), err.(request.ErrInvalidParams))
}
}
}
if invalidParams.Len() > 0 {
return invalidParams
}
return nil
}
// SetCertificateAuthorityArn sets the CertificateAuthorityArn field's value.
func (s *RequestCertificateInput) SetCertificateAuthorityArn(v string) *RequestCertificateInput {
s.CertificateAuthorityArn = &v
return s
}
// SetDomainName sets the DomainName field's value.
func (s *RequestCertificateInput) SetDomainName(v string) *RequestCertificateInput {
s.DomainName = &v
return s
}
// SetDomainValidationOptions sets the DomainValidationOptions field's value.
func (s *RequestCertificateInput) SetDomainValidationOptions(v []*DomainValidationOption) *RequestCertificateInput {
s.DomainValidationOptions = v
return s
}
// SetIdempotencyToken sets the IdempotencyToken field's value.
func (s *RequestCertificateInput) SetIdempotencyToken(v string) *RequestCertificateInput {
s.IdempotencyToken = &v
return s
}
// SetOptions sets the Options field's value.
func (s *RequestCertificateInput) SetOptions(v *CertificateOptions) *RequestCertificateInput {
s.Options = v
return s
}
// SetSubjectAlternativeNames sets the SubjectAlternativeNames field's value.
func (s *RequestCertificateInput) SetSubjectAlternativeNames(v []*string) *RequestCertificateInput {
s.SubjectAlternativeNames = v
return s
}
// SetTags sets the Tags field's value.
func (s *RequestCertificateInput) SetTags(v []*Tag) *RequestCertificateInput {
s.Tags = v
return s
}
// SetValidationMethod sets the ValidationMethod field's value.
func (s *RequestCertificateInput) SetValidationMethod(v string) *RequestCertificateInput {
s.ValidationMethod = &v
return s
}
type RequestCertificateOutput struct {
_ struct{} `type:"structure"`
// String that contains the ARN of the issued certificate. This must be of the
// form:
//
// arn:aws:acm:us-east-1:123456789012:certificate/12345678-1234-1234-1234-123456789012
CertificateArn *string `min:"20" type:"string"`
}
// String returns the string representation
func (s RequestCertificateOutput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s RequestCertificateOutput) GoString() string {
return s.String()
}
// SetCertificateArn sets the CertificateArn field's value.
func (s *RequestCertificateOutput) SetCertificateArn(v string) *RequestCertificateOutput {
s.CertificateArn = &v
return s
}
// The certificate request is in process and the certificate in your account
// has not yet been issued.
type RequestInProgressException struct {
_ struct{} `type:"structure"`
RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
// String returns the string representation
func (s RequestInProgressException) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s RequestInProgressException) GoString() string {
return s.String()
}
func newErrorRequestInProgressException(v protocol.ResponseMetadata) error {
return &RequestInProgressException{
RespMetadata: v,
}
}
// Code returns the exception type name.
func (s *RequestInProgressException) Code() string {
return "RequestInProgressException"
}
// Message returns the exception's message.
func (s *RequestInProgressException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
return ""
}
// OrigErr always returns nil, satisfies awserr.Error interface.
func (s *RequestInProgressException) OrigErr() error {
return nil
}
func (s *RequestInProgressException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
func (s *RequestInProgressException) StatusCode() int {
return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
func (s *RequestInProgressException) RequestID() string {
return s.RespMetadata.RequestID
}
type ResendValidationEmailInput struct {
_ struct{} `type:"structure"`
// String that contains the ARN of the requested certificate. The certificate
// ARN is generated and returned by the RequestCertificate action as soon as
// the request is made. By default, using this parameter causes email to be
// sent to all top-level domains you specified in the certificate request. The
// ARN must be of the form:
//
// arn:aws:acm:us-east-1:123456789012:certificate/12345678-1234-1234-1234-123456789012
//
// CertificateArn is a required field
CertificateArn *string `min:"20" type:"string" required:"true"`
// The fully qualified domain name (FQDN) of the certificate that needs to be
// validated.
//
// Domain is a required field
Domain *string `min:"1" type:"string" required:"true"`
// The base validation domain that will act as the suffix of the email addresses
// that are used to send the emails. This must be the same as the Domain value
// or a superdomain of the Domain value. For example, if you requested a certificate
// for site.subdomain.example.com and specify a ValidationDomain of subdomain.example.com,
// ACM sends email to the domain registrant, technical contact, and administrative
// contact in WHOIS and the following five addresses:
//
// * [email protected]
//
// * [email protected]
//
// * [email protected]
//
// * [email protected]
//
// * [email protected]
//
// ValidationDomain is a required field
ValidationDomain *string `min:"1" type:"string" required:"true"`
}
// String returns the string representation
func (s ResendValidationEmailInput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s ResendValidationEmailInput) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
func (s *ResendValidationEmailInput) Validate() error {
invalidParams := request.ErrInvalidParams{Context: "ResendValidationEmailInput"}
if s.CertificateArn == nil {
invalidParams.Add(request.NewErrParamRequired("CertificateArn"))
}
if s.CertificateArn != nil && len(*s.CertificateArn) < 20 {
invalidParams.Add(request.NewErrParamMinLen("CertificateArn", 20))
}
if s.Domain == nil {
invalidParams.Add(request.NewErrParamRequired("Domain"))
}
if s.Domain != nil && len(*s.Domain) < 1 {
invalidParams.Add(request.NewErrParamMinLen("Domain", 1))
}
if s.ValidationDomain == nil {
invalidParams.Add(request.NewErrParamRequired("ValidationDomain"))
}
if s.ValidationDomain != nil && len(*s.ValidationDomain) < 1 {
invalidParams.Add(request.NewErrParamMinLen("ValidationDomain", 1))
}
if invalidParams.Len() > 0 {
return invalidParams
}
return nil
}
// SetCertificateArn sets the CertificateArn field's value.
func (s *ResendValidationEmailInput) SetCertificateArn(v string) *ResendValidationEmailInput {
s.CertificateArn = &v
return s
}
// SetDomain sets the Domain field's value.
func (s *ResendValidationEmailInput) SetDomain(v string) *ResendValidationEmailInput {
s.Domain = &v
return s
}
// SetValidationDomain sets the ValidationDomain field's value.
func (s *ResendValidationEmailInput) SetValidationDomain(v string) *ResendValidationEmailInput {
s.ValidationDomain = &v
return s
}
type ResendValidationEmailOutput struct {
_ struct{} `type:"structure"`
}
// String returns the string representation
func (s ResendValidationEmailOutput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s ResendValidationEmailOutput) GoString() string {
return s.String()
}
// The certificate is in use by another Amazon Web Services service in the caller's
// account. Remove the association and try again.
type ResourceInUseException struct {
_ struct{} `type:"structure"`
RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
// String returns the string representation
func (s ResourceInUseException) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s ResourceInUseException) GoString() string {
return s.String()
}
func newErrorResourceInUseException(v protocol.ResponseMetadata) error {
return &ResourceInUseException{
RespMetadata: v,
}
}
// Code returns the exception type name.
func (s *ResourceInUseException) Code() string {
return "ResourceInUseException"
}
// Message returns the exception's message.
func (s *ResourceInUseException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
return ""
}
// OrigErr always returns nil, satisfies awserr.Error interface.
func (s *ResourceInUseException) OrigErr() error {
return nil
}
func (s *ResourceInUseException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
func (s *ResourceInUseException) StatusCode() int {
return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
func (s *ResourceInUseException) RequestID() string {
return s.RespMetadata.RequestID
}
// The specified certificate cannot be found in the caller's account or the
// caller's account cannot be found.
type ResourceNotFoundException struct {
_ struct{} `type:"structure"`
RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
// String returns the string representation
func (s ResourceNotFoundException) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s ResourceNotFoundException) GoString() string {
return s.String()
}
func newErrorResourceNotFoundException(v protocol.ResponseMetadata) error {
return &ResourceNotFoundException{
RespMetadata: v,
}
}
// Code returns the exception type name.
func (s *ResourceNotFoundException) Code() string {
return "ResourceNotFoundException"
}
// Message returns the exception's message.
func (s *ResourceNotFoundException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
return ""
}
// OrigErr always returns nil, satisfies awserr.Error interface.
func (s *ResourceNotFoundException) OrigErr() error {
return nil
}
func (s *ResourceNotFoundException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
func (s *ResourceNotFoundException) StatusCode() int {
return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
func (s *ResourceNotFoundException) RequestID() string {
return s.RespMetadata.RequestID
}
// Contains a DNS record value that you can use to validate ownership or control
// of a domain. This is used by the DescribeCertificate action.
type ResourceRecord struct {
_ struct{} `type:"structure"`
// The name of the DNS record to create in your domain. This is supplied by
// ACM.
//
// Name is a required field
Name *string `type:"string" required:"true"`
// The type of DNS record. Currently this can be CNAME.
//
// Type is a required field
Type *string `type:"string" required:"true" enum:"RecordType"`
// The value of the CNAME record to add to your DNS database. This is supplied
// by ACM.
//
// Value is a required field
Value *string `type:"string" required:"true"`
}
// String returns the string representation
func (s ResourceRecord) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s ResourceRecord) GoString() string {
return s.String()
}
// SetName sets the Name field's value.
func (s *ResourceRecord) SetName(v string) *ResourceRecord {
s.Name = &v
return s
}
// SetType sets the Type field's value.
func (s *ResourceRecord) SetType(v string) *ResourceRecord {
s.Type = &v
return s
}
// SetValue sets the Value field's value.
func (s *ResourceRecord) SetValue(v string) *ResourceRecord {
s.Value = &v
return s
}
// A key-value pair that identifies or specifies metadata about an ACM resource.
type Tag struct {
_ struct{} `type:"structure"`
// The key of the tag.
//
// Key is a required field
Key *string `min:"1" type:"string" required:"true"`
// The value of the tag.
Value *string `type:"string"`
}
// String returns the string representation
func (s Tag) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s Tag) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
func (s *Tag) Validate() error {
invalidParams := request.ErrInvalidParams{Context: "Tag"}
if s.Key == nil {
invalidParams.Add(request.NewErrParamRequired("Key"))
}
if s.Key != nil && len(*s.Key) < 1 {
invalidParams.Add(request.NewErrParamMinLen("Key", 1))
}
if invalidParams.Len() > 0 {
return invalidParams
}
return nil
}
// SetKey sets the Key field's value.
func (s *Tag) SetKey(v string) *Tag {
s.Key = &v
return s
}
// SetValue sets the Value field's value.
func (s *Tag) SetValue(v string) *Tag {
s.Value = &v
return s
}
// A specified tag did not comply with an existing tag policy and was rejected.
type TagPolicyException struct {
_ struct{} `type:"structure"`
RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
// String returns the string representation
func (s TagPolicyException) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s TagPolicyException) GoString() string {
return s.String()
}
func newErrorTagPolicyException(v protocol.ResponseMetadata) error {
return &TagPolicyException{
RespMetadata: v,
}
}
// Code returns the exception type name.
func (s *TagPolicyException) Code() string {
return "TagPolicyException"
}
// Message returns the exception's message.
func (s *TagPolicyException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
return ""
}
// OrigErr always returns nil, satisfies awserr.Error interface.
func (s *TagPolicyException) OrigErr() error {
return nil
}
func (s *TagPolicyException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
func (s *TagPolicyException) StatusCode() int {
return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
func (s *TagPolicyException) RequestID() string {
return s.RespMetadata.RequestID
}
// The request was denied because it exceeded a quota.
type ThrottlingException struct {
_ struct{} `type:"structure"`
RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
// String returns the string representation
func (s ThrottlingException) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s ThrottlingException) GoString() string {
return s.String()
}
func newErrorThrottlingException(v protocol.ResponseMetadata) error {
return &ThrottlingException{
RespMetadata: v,
}
}
// Code returns the exception type name.
func (s *ThrottlingException) Code() string {
return "ThrottlingException"
}
// Message returns the exception's message.
func (s *ThrottlingException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
return ""
}
// OrigErr always returns nil, satisfies awserr.Error interface.
func (s *ThrottlingException) OrigErr() error {
return nil
}
func (s *ThrottlingException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
func (s *ThrottlingException) StatusCode() int {
return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
func (s *ThrottlingException) RequestID() string {
return s.RespMetadata.RequestID
}
// The request contains too many tags. Try the request again with fewer tags.
type TooManyTagsException struct {
_ struct{} `type:"structure"`
RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
// String returns the string representation
func (s TooManyTagsException) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s TooManyTagsException) GoString() string {
return s.String()
}
func newErrorTooManyTagsException(v protocol.ResponseMetadata) error {
return &TooManyTagsException{
RespMetadata: v,
}
}
// Code returns the exception type name.
func (s *TooManyTagsException) Code() string {
return "TooManyTagsException"
}
// Message returns the exception's message.
func (s *TooManyTagsException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
return ""
}
// OrigErr always returns nil, satisfies awserr.Error interface.
func (s *TooManyTagsException) OrigErr() error {
return nil
}
func (s *TooManyTagsException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
func (s *TooManyTagsException) StatusCode() int {
return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
func (s *TooManyTagsException) RequestID() string {
return s.RespMetadata.RequestID
}
type UpdateCertificateOptionsInput struct {
_ struct{} `type:"structure"`
// ARN of the requested certificate to update. This must be of the form:
//
// arn:aws:acm:us-east-1:account:certificate/12345678-1234-1234-1234-123456789012
//
// CertificateArn is a required field
CertificateArn *string `min:"20" type:"string" required:"true"`
// Use to update the options for your certificate. Currently, you can specify
// whether to add your certificate to a transparency log. Certificate transparency
// makes it possible to detect SSL/TLS certificates that have been mistakenly
// or maliciously issued. Certificates that have not been logged typically produce
// an error message in a browser.
//
// Options is a required field
Options *CertificateOptions `type:"structure" required:"true"`
}
// String returns the string representation
func (s UpdateCertificateOptionsInput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s UpdateCertificateOptionsInput) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
func (s *UpdateCertificateOptionsInput) Validate() error {
invalidParams := request.ErrInvalidParams{Context: "UpdateCertificateOptionsInput"}
if s.CertificateArn == nil {
invalidParams.Add(request.NewErrParamRequired("CertificateArn"))
}
if s.CertificateArn != nil && len(*s.CertificateArn) < 20 {
invalidParams.Add(request.NewErrParamMinLen("CertificateArn", 20))
}
if s.Options == nil {
invalidParams.Add(request.NewErrParamRequired("Options"))
}
if invalidParams.Len() > 0 {
return invalidParams
}
return nil
}
// SetCertificateArn sets the CertificateArn field's value.
func (s *UpdateCertificateOptionsInput) SetCertificateArn(v string) *UpdateCertificateOptionsInput {
s.CertificateArn = &v
return s
}
// SetOptions sets the Options field's value.
func (s *UpdateCertificateOptionsInput) SetOptions(v *CertificateOptions) *UpdateCertificateOptionsInput {
s.Options = v
return s
}
type UpdateCertificateOptionsOutput struct {
_ struct{} `type:"structure"`
}
// String returns the string representation
func (s UpdateCertificateOptionsOutput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s UpdateCertificateOptionsOutput) GoString() string {
return s.String()
}
// The supplied input failed to satisfy constraints of an Amazon Web Services
// service.
type ValidationException struct {
_ struct{} `type:"structure"`
RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
// String returns the string representation
func (s ValidationException) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s ValidationException) GoString() string {
return s.String()
}
func newErrorValidationException(v protocol.ResponseMetadata) error {
return &ValidationException{
RespMetadata: v,
}
}
// Code returns the exception type name.
func (s *ValidationException) Code() string {
return "ValidationException"
}
// Message returns the exception's message.
func (s *ValidationException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
return ""
}
// OrigErr always returns nil, satisfies awserr.Error interface.
func (s *ValidationException) OrigErr() error {
return nil
}
func (s *ValidationException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
func (s *ValidationException) StatusCode() int {
return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
func (s *ValidationException) RequestID() string {
return s.RespMetadata.RequestID
}
const (
// CertificateStatusPendingValidation is a CertificateStatus enum value
CertificateStatusPendingValidation = "PENDING_VALIDATION"
// CertificateStatusIssued is a CertificateStatus enum value
CertificateStatusIssued = "ISSUED"
// CertificateStatusInactive is a CertificateStatus enum value
CertificateStatusInactive = "INACTIVE"
// CertificateStatusExpired is a CertificateStatus enum value
CertificateStatusExpired = "EXPIRED"
// CertificateStatusValidationTimedOut is a CertificateStatus enum value
CertificateStatusValidationTimedOut = "VALIDATION_TIMED_OUT"
// CertificateStatusRevoked is a CertificateStatus enum value
CertificateStatusRevoked = "REVOKED"
// CertificateStatusFailed is a CertificateStatus enum value
CertificateStatusFailed = "FAILED"
)
// CertificateStatus_Values returns all elements of the CertificateStatus enum
func CertificateStatus_Values() []string {
return []string{
CertificateStatusPendingValidation,
CertificateStatusIssued,
CertificateStatusInactive,
CertificateStatusExpired,
CertificateStatusValidationTimedOut,
CertificateStatusRevoked,
CertificateStatusFailed,
}
}
const (
// CertificateTransparencyLoggingPreferenceEnabled is a CertificateTransparencyLoggingPreference enum value
CertificateTransparencyLoggingPreferenceEnabled = "ENABLED"
// CertificateTransparencyLoggingPreferenceDisabled is a CertificateTransparencyLoggingPreference enum value
CertificateTransparencyLoggingPreferenceDisabled = "DISABLED"
)
// CertificateTransparencyLoggingPreference_Values returns all elements of the CertificateTransparencyLoggingPreference enum
func CertificateTransparencyLoggingPreference_Values() []string {
return []string{
CertificateTransparencyLoggingPreferenceEnabled,
CertificateTransparencyLoggingPreferenceDisabled,
}
}
const (
// CertificateTypeImported is a CertificateType enum value
CertificateTypeImported = "IMPORTED"
// CertificateTypeAmazonIssued is a CertificateType enum value
CertificateTypeAmazonIssued = "AMAZON_ISSUED"
// CertificateTypePrivate is a CertificateType enum value
CertificateTypePrivate = "PRIVATE"
)
// CertificateType_Values returns all elements of the CertificateType enum
func CertificateType_Values() []string {
return []string{
CertificateTypeImported,
CertificateTypeAmazonIssued,
CertificateTypePrivate,
}
}
const (
// DomainStatusPendingValidation is a DomainStatus enum value
DomainStatusPendingValidation = "PENDING_VALIDATION"
// DomainStatusSuccess is a DomainStatus enum value
DomainStatusSuccess = "SUCCESS"
// DomainStatusFailed is a DomainStatus enum value
DomainStatusFailed = "FAILED"
)
// DomainStatus_Values returns all elements of the DomainStatus enum
func DomainStatus_Values() []string {
return []string{
DomainStatusPendingValidation,
DomainStatusSuccess,
DomainStatusFailed,
}
}
const (
// ExtendedKeyUsageNameTlsWebServerAuthentication is a ExtendedKeyUsageName enum value
ExtendedKeyUsageNameTlsWebServerAuthentication = "TLS_WEB_SERVER_AUTHENTICATION"
// ExtendedKeyUsageNameTlsWebClientAuthentication is a ExtendedKeyUsageName enum value
ExtendedKeyUsageNameTlsWebClientAuthentication = "TLS_WEB_CLIENT_AUTHENTICATION"
// ExtendedKeyUsageNameCodeSigning is a ExtendedKeyUsageName enum value
ExtendedKeyUsageNameCodeSigning = "CODE_SIGNING"
// ExtendedKeyUsageNameEmailProtection is a ExtendedKeyUsageName enum value
ExtendedKeyUsageNameEmailProtection = "EMAIL_PROTECTION"
// ExtendedKeyUsageNameTimeStamping is a ExtendedKeyUsageName enum value
ExtendedKeyUsageNameTimeStamping = "TIME_STAMPING"
// ExtendedKeyUsageNameOcspSigning is a ExtendedKeyUsageName enum value
ExtendedKeyUsageNameOcspSigning = "OCSP_SIGNING"
// ExtendedKeyUsageNameIpsecEndSystem is a ExtendedKeyUsageName enum value
ExtendedKeyUsageNameIpsecEndSystem = "IPSEC_END_SYSTEM"
// ExtendedKeyUsageNameIpsecTunnel is a ExtendedKeyUsageName enum value
ExtendedKeyUsageNameIpsecTunnel = "IPSEC_TUNNEL"
// ExtendedKeyUsageNameIpsecUser is a ExtendedKeyUsageName enum value
ExtendedKeyUsageNameIpsecUser = "IPSEC_USER"
// ExtendedKeyUsageNameAny is a ExtendedKeyUsageName enum value
ExtendedKeyUsageNameAny = "ANY"
// ExtendedKeyUsageNameNone is a ExtendedKeyUsageName enum value
ExtendedKeyUsageNameNone = "NONE"
// ExtendedKeyUsageNameCustom is a ExtendedKeyUsageName enum value
ExtendedKeyUsageNameCustom = "CUSTOM"
)
// ExtendedKeyUsageName_Values returns all elements of the ExtendedKeyUsageName enum
func ExtendedKeyUsageName_Values() []string {
return []string{
ExtendedKeyUsageNameTlsWebServerAuthentication,
ExtendedKeyUsageNameTlsWebClientAuthentication,
ExtendedKeyUsageNameCodeSigning,
ExtendedKeyUsageNameEmailProtection,
ExtendedKeyUsageNameTimeStamping,
ExtendedKeyUsageNameOcspSigning,
ExtendedKeyUsageNameIpsecEndSystem,
ExtendedKeyUsageNameIpsecTunnel,
ExtendedKeyUsageNameIpsecUser,
ExtendedKeyUsageNameAny,
ExtendedKeyUsageNameNone,
ExtendedKeyUsageNameCustom,
}
}
const (
// FailureReasonNoAvailableContacts is a FailureReason enum value
FailureReasonNoAvailableContacts = "NO_AVAILABLE_CONTACTS"
// FailureReasonAdditionalVerificationRequired is a FailureReason enum value
FailureReasonAdditionalVerificationRequired = "ADDITIONAL_VERIFICATION_REQUIRED"
// FailureReasonDomainNotAllowed is a FailureReason enum value
FailureReasonDomainNotAllowed = "DOMAIN_NOT_ALLOWED"
// FailureReasonInvalidPublicDomain is a FailureReason enum value
FailureReasonInvalidPublicDomain = "INVALID_PUBLIC_DOMAIN"
// FailureReasonDomainValidationDenied is a FailureReason enum value
FailureReasonDomainValidationDenied = "DOMAIN_VALIDATION_DENIED"
// FailureReasonCaaError is a FailureReason enum value
FailureReasonCaaError = "CAA_ERROR"
// FailureReasonPcaLimitExceeded is a FailureReason enum value
FailureReasonPcaLimitExceeded = "PCA_LIMIT_EXCEEDED"
// FailureReasonPcaInvalidArn is a FailureReason enum value
FailureReasonPcaInvalidArn = "PCA_INVALID_ARN"
// FailureReasonPcaInvalidState is a FailureReason enum value
FailureReasonPcaInvalidState = "PCA_INVALID_STATE"
// FailureReasonPcaRequestFailed is a FailureReason enum value
FailureReasonPcaRequestFailed = "PCA_REQUEST_FAILED"
// FailureReasonPcaNameConstraintsValidation is a FailureReason enum value
FailureReasonPcaNameConstraintsValidation = "PCA_NAME_CONSTRAINTS_VALIDATION"
// FailureReasonPcaResourceNotFound is a FailureReason enum value
FailureReasonPcaResourceNotFound = "PCA_RESOURCE_NOT_FOUND"
// FailureReasonPcaInvalidArgs is a FailureReason enum value
FailureReasonPcaInvalidArgs = "PCA_INVALID_ARGS"
// FailureReasonPcaInvalidDuration is a FailureReason enum value
FailureReasonPcaInvalidDuration = "PCA_INVALID_DURATION"
// FailureReasonPcaAccessDenied is a FailureReason enum value
FailureReasonPcaAccessDenied = "PCA_ACCESS_DENIED"
// FailureReasonSlrNotFound is a FailureReason enum value
FailureReasonSlrNotFound = "SLR_NOT_FOUND"
// FailureReasonOther is a FailureReason enum value
FailureReasonOther = "OTHER"
)
// FailureReason_Values returns all elements of the FailureReason enum
func FailureReason_Values() []string {
return []string{
FailureReasonNoAvailableContacts,
FailureReasonAdditionalVerificationRequired,
FailureReasonDomainNotAllowed,
FailureReasonInvalidPublicDomain,
FailureReasonDomainValidationDenied,
FailureReasonCaaError,
FailureReasonPcaLimitExceeded,
FailureReasonPcaInvalidArn,
FailureReasonPcaInvalidState,
FailureReasonPcaRequestFailed,
FailureReasonPcaNameConstraintsValidation,
FailureReasonPcaResourceNotFound,
FailureReasonPcaInvalidArgs,
FailureReasonPcaInvalidDuration,
FailureReasonPcaAccessDenied,
FailureReasonSlrNotFound,
FailureReasonOther,
}
}
const (
// KeyAlgorithmRsa1024 is a KeyAlgorithm enum value
KeyAlgorithmRsa1024 = "RSA_1024"
// KeyAlgorithmRsa2048 is a KeyAlgorithm enum value
KeyAlgorithmRsa2048 = "RSA_2048"
// KeyAlgorithmRsa3072 is a KeyAlgorithm enum value
KeyAlgorithmRsa3072 = "RSA_3072"
// KeyAlgorithmRsa4096 is a KeyAlgorithm enum value
KeyAlgorithmRsa4096 = "RSA_4096"
// KeyAlgorithmEcPrime256v1 is a KeyAlgorithm enum value
KeyAlgorithmEcPrime256v1 = "EC_prime256v1"
// KeyAlgorithmEcSecp384r1 is a KeyAlgorithm enum value
KeyAlgorithmEcSecp384r1 = "EC_secp384r1"
// KeyAlgorithmEcSecp521r1 is a KeyAlgorithm enum value
KeyAlgorithmEcSecp521r1 = "EC_secp521r1"
)
// KeyAlgorithm_Values returns all elements of the KeyAlgorithm enum
func KeyAlgorithm_Values() []string {
return []string{
KeyAlgorithmRsa1024,
KeyAlgorithmRsa2048,
KeyAlgorithmRsa3072,
KeyAlgorithmRsa4096,
KeyAlgorithmEcPrime256v1,
KeyAlgorithmEcSecp384r1,
KeyAlgorithmEcSecp521r1,
}
}
const (
// KeyUsageNameDigitalSignature is a KeyUsageName enum value
KeyUsageNameDigitalSignature = "DIGITAL_SIGNATURE"
// KeyUsageNameNonRepudiation is a KeyUsageName enum value
KeyUsageNameNonRepudiation = "NON_REPUDIATION"
// KeyUsageNameKeyEncipherment is a KeyUsageName enum value
KeyUsageNameKeyEncipherment = "KEY_ENCIPHERMENT"
// KeyUsageNameDataEncipherment is a KeyUsageName enum value
KeyUsageNameDataEncipherment = "DATA_ENCIPHERMENT"
// KeyUsageNameKeyAgreement is a KeyUsageName enum value
KeyUsageNameKeyAgreement = "KEY_AGREEMENT"
// KeyUsageNameCertificateSigning is a KeyUsageName enum value
KeyUsageNameCertificateSigning = "CERTIFICATE_SIGNING"
// KeyUsageNameCrlSigning is a KeyUsageName enum value
KeyUsageNameCrlSigning = "CRL_SIGNING"
// KeyUsageNameEncipherOnly is a KeyUsageName enum value
KeyUsageNameEncipherOnly = "ENCIPHER_ONLY"
// KeyUsageNameDecipherOnly is a KeyUsageName enum value
KeyUsageNameDecipherOnly = "DECIPHER_ONLY"
// KeyUsageNameAny is a KeyUsageName enum value
KeyUsageNameAny = "ANY"
// KeyUsageNameCustom is a KeyUsageName enum value
KeyUsageNameCustom = "CUSTOM"
)
// KeyUsageName_Values returns all elements of the KeyUsageName enum
func KeyUsageName_Values() []string {
return []string{
KeyUsageNameDigitalSignature,
KeyUsageNameNonRepudiation,
KeyUsageNameKeyEncipherment,
KeyUsageNameDataEncipherment,
KeyUsageNameKeyAgreement,
KeyUsageNameCertificateSigning,
KeyUsageNameCrlSigning,
KeyUsageNameEncipherOnly,
KeyUsageNameDecipherOnly,
KeyUsageNameAny,
KeyUsageNameCustom,
}
}
const (
// RecordTypeCname is a RecordType enum value
RecordTypeCname = "CNAME"
)
// RecordType_Values returns all elements of the RecordType enum
func RecordType_Values() []string {
return []string{
RecordTypeCname,
}
}
const (
// RenewalEligibilityEligible is a RenewalEligibility enum value
RenewalEligibilityEligible = "ELIGIBLE"
// RenewalEligibilityIneligible is a RenewalEligibility enum value
RenewalEligibilityIneligible = "INELIGIBLE"
)
// RenewalEligibility_Values returns all elements of the RenewalEligibility enum
func RenewalEligibility_Values() []string {
return []string{
RenewalEligibilityEligible,
RenewalEligibilityIneligible,
}
}
const (
// RenewalStatusPendingAutoRenewal is a RenewalStatus enum value
RenewalStatusPendingAutoRenewal = "PENDING_AUTO_RENEWAL"
// RenewalStatusPendingValidation is a RenewalStatus enum value
RenewalStatusPendingValidation = "PENDING_VALIDATION"
// RenewalStatusSuccess is a RenewalStatus enum value
RenewalStatusSuccess = "SUCCESS"
// RenewalStatusFailed is a RenewalStatus enum value
RenewalStatusFailed = "FAILED"
)
// RenewalStatus_Values returns all elements of the RenewalStatus enum
func RenewalStatus_Values() []string {
return []string{
RenewalStatusPendingAutoRenewal,
RenewalStatusPendingValidation,
RenewalStatusSuccess,
RenewalStatusFailed,
}
}
const (
// RevocationReasonUnspecified is a RevocationReason enum value
RevocationReasonUnspecified = "UNSPECIFIED"
// RevocationReasonKeyCompromise is a RevocationReason enum value
RevocationReasonKeyCompromise = "KEY_COMPROMISE"
// RevocationReasonCaCompromise is a RevocationReason enum value
RevocationReasonCaCompromise = "CA_COMPROMISE"
// RevocationReasonAffiliationChanged is a RevocationReason enum value
RevocationReasonAffiliationChanged = "AFFILIATION_CHANGED"
// RevocationReasonSuperceded is a RevocationReason enum value
RevocationReasonSuperceded = "SUPERCEDED"
// RevocationReasonCessationOfOperation is a RevocationReason enum value
RevocationReasonCessationOfOperation = "CESSATION_OF_OPERATION"
// RevocationReasonCertificateHold is a RevocationReason enum value
RevocationReasonCertificateHold = "CERTIFICATE_HOLD"
// RevocationReasonRemoveFromCrl is a RevocationReason enum value
RevocationReasonRemoveFromCrl = "REMOVE_FROM_CRL"
// RevocationReasonPrivilegeWithdrawn is a RevocationReason enum value
RevocationReasonPrivilegeWithdrawn = "PRIVILEGE_WITHDRAWN"
// RevocationReasonAACompromise is a RevocationReason enum value
RevocationReasonAACompromise = "A_A_COMPROMISE"
)
// RevocationReason_Values returns all elements of the RevocationReason enum
func RevocationReason_Values() []string {
return []string{
RevocationReasonUnspecified,
RevocationReasonKeyCompromise,
RevocationReasonCaCompromise,
RevocationReasonAffiliationChanged,
RevocationReasonSuperceded,
RevocationReasonCessationOfOperation,
RevocationReasonCertificateHold,
RevocationReasonRemoveFromCrl,
RevocationReasonPrivilegeWithdrawn,
RevocationReasonAACompromise,
}
}
const (
// ValidationMethodEmail is a ValidationMethod enum value
ValidationMethodEmail = "EMAIL"
// ValidationMethodDns is a ValidationMethod enum value
ValidationMethodDns = "DNS"
)
// ValidationMethod_Values returns all elements of the ValidationMethod enum
func ValidationMethod_Values() []string {
return []string{
ValidationMethodEmail,
ValidationMethodDns,
}
}
| 5,117 |
session-manager-plugin | aws | Go | // Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
// Package acm provides the client and types for making API
// requests to AWS Certificate Manager.
//
// You can use Amazon Web Services Certificate Manager (ACM) to manage SSL/TLS
// certificates for your Amazon Web Services-based websites and applications.
// For more information about using ACM, see the Amazon Web Services Certificate
// Manager User Guide (https://docs.aws.amazon.com/acm/latest/userguide/).
//
// See https://docs.aws.amazon.com/goto/WebAPI/acm-2015-12-08 for more information on this service.
//
// See acm package documentation for more information.
// https://docs.aws.amazon.com/sdk-for-go/api/service/acm/
//
// Using the Client
//
// To contact AWS Certificate Manager 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 Certificate Manager client ACM for more
// information on creating client for this service.
// https://docs.aws.amazon.com/sdk-for-go/api/service/acm/#New
package acm
| 32 |
session-manager-plugin | aws | Go | // Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
package acm
import (
"github.com/aws/aws-sdk-go/private/protocol"
)
const (
// ErrCodeAccessDeniedException for service response error code
// "AccessDeniedException".
//
// You do not have access required to perform this action.
ErrCodeAccessDeniedException = "AccessDeniedException"
// ErrCodeConflictException for service response error code
// "ConflictException".
//
// You are trying to update a resource or configuration that is already being
// created or updated. Wait for the previous operation to finish and try again.
ErrCodeConflictException = "ConflictException"
// ErrCodeInvalidArgsException for service response error code
// "InvalidArgsException".
//
// One or more of of request parameters specified is not valid.
ErrCodeInvalidArgsException = "InvalidArgsException"
// ErrCodeInvalidArnException for service response error code
// "InvalidArnException".
//
// The requested Amazon Resource Name (ARN) does not refer to an existing resource.
ErrCodeInvalidArnException = "InvalidArnException"
// ErrCodeInvalidDomainValidationOptionsException for service response error code
// "InvalidDomainValidationOptionsException".
//
// One or more values in the DomainValidationOption structure is incorrect.
ErrCodeInvalidDomainValidationOptionsException = "InvalidDomainValidationOptionsException"
// ErrCodeInvalidParameterException for service response error code
// "InvalidParameterException".
//
// An input parameter was invalid.
ErrCodeInvalidParameterException = "InvalidParameterException"
// ErrCodeInvalidStateException for service response error code
// "InvalidStateException".
//
// Processing has reached an invalid state.
ErrCodeInvalidStateException = "InvalidStateException"
// ErrCodeInvalidTagException for service response error code
// "InvalidTagException".
//
// One or both of the values that make up the key-value pair is not valid. For
// example, you cannot specify a tag value that begins with aws:.
ErrCodeInvalidTagException = "InvalidTagException"
// ErrCodeLimitExceededException for service response error code
// "LimitExceededException".
//
// An ACM quota has been exceeded.
ErrCodeLimitExceededException = "LimitExceededException"
// ErrCodeRequestInProgressException for service response error code
// "RequestInProgressException".
//
// The certificate request is in process and the certificate in your account
// has not yet been issued.
ErrCodeRequestInProgressException = "RequestInProgressException"
// ErrCodeResourceInUseException for service response error code
// "ResourceInUseException".
//
// The certificate is in use by another Amazon Web Services service in the caller's
// account. Remove the association and try again.
ErrCodeResourceInUseException = "ResourceInUseException"
// ErrCodeResourceNotFoundException for service response error code
// "ResourceNotFoundException".
//
// The specified certificate cannot be found in the caller's account or the
// caller's account cannot be found.
ErrCodeResourceNotFoundException = "ResourceNotFoundException"
// ErrCodeTagPolicyException for service response error code
// "TagPolicyException".
//
// A specified tag did not comply with an existing tag policy and was rejected.
ErrCodeTagPolicyException = "TagPolicyException"
// ErrCodeThrottlingException for service response error code
// "ThrottlingException".
//
// The request was denied because it exceeded a quota.
ErrCodeThrottlingException = "ThrottlingException"
// ErrCodeTooManyTagsException for service response error code
// "TooManyTagsException".
//
// The request contains too many tags. Try the request again with fewer tags.
ErrCodeTooManyTagsException = "TooManyTagsException"
// ErrCodeValidationException for service response error code
// "ValidationException".
//
// The supplied input failed to satisfy constraints of an Amazon Web Services
// service.
ErrCodeValidationException = "ValidationException"
)
var exceptionFromCode = map[string]func(protocol.ResponseMetadata) error{
"AccessDeniedException": newErrorAccessDeniedException,
"ConflictException": newErrorConflictException,
"InvalidArgsException": newErrorInvalidArgsException,
"InvalidArnException": newErrorInvalidArnException,
"InvalidDomainValidationOptionsException": newErrorInvalidDomainValidationOptionsException,
"InvalidParameterException": newErrorInvalidParameterException,
"InvalidStateException": newErrorInvalidStateException,
"InvalidTagException": newErrorInvalidTagException,
"LimitExceededException": newErrorLimitExceededException,
"RequestInProgressException": newErrorRequestInProgressException,
"ResourceInUseException": newErrorResourceInUseException,
"ResourceNotFoundException": newErrorResourceNotFoundException,
"TagPolicyException": newErrorTagPolicyException,
"ThrottlingException": newErrorThrottlingException,
"TooManyTagsException": newErrorTooManyTagsException,
"ValidationException": newErrorValidationException,
}
| 132 |
session-manager-plugin | aws | Go | // Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
// +build go1.15,integration
package acm_test
import (
"context"
"testing"
"time"
"github.com/aws/aws-sdk-go/aws"
"github.com/aws/aws-sdk-go/aws/awserr"
"github.com/aws/aws-sdk-go/aws/request"
"github.com/aws/aws-sdk-go/awstesting/integration"
"github.com/aws/aws-sdk-go/service/acm"
)
var _ aws.Config
var _ awserr.Error
var _ request.Request
func TestInteg_00_ListCertificates(t *testing.T) {
ctx, cancelFn := context.WithTimeout(context.Background(), 5*time.Second)
defer cancelFn()
sess := integration.SessionWithDefaultRegion("us-west-2")
svc := acm.New(sess)
params := &acm.ListCertificatesInput{}
_, err := svc.ListCertificatesWithContext(ctx, params, func(r *request.Request) {
r.Handlers.Validate.RemoveByName("core.ValidateParametersHandler")
})
if err != nil {
t.Errorf("expect no error, got %v", err)
}
}
func TestInteg_01_GetCertificate(t *testing.T) {
ctx, cancelFn := context.WithTimeout(context.Background(), 5*time.Second)
defer cancelFn()
sess := integration.SessionWithDefaultRegion("us-west-2")
svc := acm.New(sess)
params := &acm.GetCertificateInput{
CertificateArn: aws.String("arn:aws:acm:region:123456789012:certificate/12345678-1234-1234-1234-123456789012"),
}
_, err := svc.GetCertificateWithContext(ctx, params, func(r *request.Request) {
r.Handlers.Validate.RemoveByName("core.ValidateParametersHandler")
})
if err == nil {
t.Fatalf("expect request to fail")
}
aerr, ok := err.(awserr.RequestFailure)
if !ok {
t.Fatalf("expect awserr, was %T", err)
}
if len(aerr.Code()) == 0 {
t.Errorf("expect non-empty error code")
}
if len(aerr.Message()) == 0 {
t.Errorf("expect non-empty error message")
}
if v := aerr.Code(); v == request.ErrCodeSerialization {
t.Errorf("expect API error code got serialization failure")
}
}
| 66 |
session-manager-plugin | aws | Go | // Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
package acm
import (
"github.com/aws/aws-sdk-go/aws"
"github.com/aws/aws-sdk-go/aws/client"
"github.com/aws/aws-sdk-go/aws/client/metadata"
"github.com/aws/aws-sdk-go/aws/request"
"github.com/aws/aws-sdk-go/aws/signer/v4"
"github.com/aws/aws-sdk-go/private/protocol"
"github.com/aws/aws-sdk-go/private/protocol/jsonrpc"
)
// ACM provides the API operation methods for making requests to
// AWS Certificate Manager. See this package's package overview docs
// for details on the service.
//
// ACM methods are safe to use concurrently. It is not safe to
// modify mutate any of the struct's properties though.
type ACM struct {
*client.Client
}
// Used for custom client initialization logic
var initClient func(*client.Client)
// Used for custom request initialization logic
var initRequest func(*request.Request)
// Service information constants
const (
ServiceName = "acm" // Name of service.
EndpointsID = ServiceName // ID to lookup a service endpoint with.
ServiceID = "ACM" // ServiceID is a unique identifier of a specific service.
)
// New creates a new instance of the ACM 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 ACM client from just a session.
// svc := acm.New(mySession)
//
// // Create a ACM client with additional configuration
// svc := acm.New(mySession, aws.NewConfig().WithRegion("us-west-2"))
func New(p client.ConfigProvider, cfgs ...*aws.Config) *ACM {
c := p.ClientConfig(EndpointsID, cfgs...)
return newClient(*c.Config, c.Handlers, c.PartitionID, c.Endpoint, c.SigningRegion, c.SigningName)
}
// newClient creates, initializes and returns a new service client instance.
func newClient(cfg aws.Config, handlers request.Handlers, partitionID, endpoint, signingRegion, signingName string) *ACM {
svc := &ACM{
Client: client.New(
cfg,
metadata.ClientInfo{
ServiceName: ServiceName,
ServiceID: ServiceID,
SigningName: signingName,
SigningRegion: signingRegion,
PartitionID: partitionID,
Endpoint: endpoint,
APIVersion: "2015-12-08",
JSONVersion: "1.1",
TargetPrefix: "CertificateManager",
},
handlers,
),
}
// Handlers
svc.Handlers.Sign.PushBackNamed(v4.SignRequestHandler)
svc.Handlers.Build.PushBackNamed(jsonrpc.BuildHandler)
svc.Handlers.Unmarshal.PushBackNamed(jsonrpc.UnmarshalHandler)
svc.Handlers.UnmarshalMeta.PushBackNamed(jsonrpc.UnmarshalMetaHandler)
svc.Handlers.UnmarshalError.PushBackNamed(
protocol.NewUnmarshalErrorHandler(jsonrpc.NewUnmarshalTypedError(exceptionFromCode)).NamedHandler(),
)
// Run custom client initialization if present
if initClient != nil {
initClient(svc.Client)
}
return svc
}
// newRequest creates a new request for a ACM operation and runs any
// custom request initialization.
func (c *ACM) newRequest(op *request.Operation, params, data interface{}) *request.Request {
req := c.NewRequest(op, params, data)
// Run custom request initialization if present
if initRequest != nil {
initRequest(req)
}
return req
}
| 104 |
session-manager-plugin | aws | Go | // Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
package acm
import (
"time"
"github.com/aws/aws-sdk-go/aws"
"github.com/aws/aws-sdk-go/aws/request"
)
// WaitUntilCertificateValidated uses the ACM API operation
// DescribeCertificate to wait for a condition to be met before returning.
// If the condition is not met within the max attempt window, an error will
// be returned.
func (c *ACM) WaitUntilCertificateValidated(input *DescribeCertificateInput) error {
return c.WaitUntilCertificateValidatedWithContext(aws.BackgroundContext(), input)
}
// WaitUntilCertificateValidatedWithContext is an extended version of WaitUntilCertificateValidated.
// With the support for passing in a context and options to configure the
// Waiter and the underlying request options.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
func (c *ACM) WaitUntilCertificateValidatedWithContext(ctx aws.Context, input *DescribeCertificateInput, opts ...request.WaiterOption) error {
w := request.Waiter{
Name: "WaitUntilCertificateValidated",
MaxAttempts: 40,
Delay: request.ConstantWaiterDelay(60 * time.Second),
Acceptors: []request.WaiterAcceptor{
{
State: request.SuccessWaiterState,
Matcher: request.PathAllWaiterMatch, Argument: "Certificate.DomainValidationOptions[].ValidationStatus",
Expected: "SUCCESS",
},
{
State: request.RetryWaiterState,
Matcher: request.PathAnyWaiterMatch, Argument: "Certificate.DomainValidationOptions[].ValidationStatus",
Expected: "PENDING_VALIDATION",
},
{
State: request.FailureWaiterState,
Matcher: request.PathWaiterMatch, Argument: "Certificate.Status",
Expected: "FAILED",
},
{
State: request.FailureWaiterState,
Matcher: request.ErrorWaiterMatch,
Expected: "ResourceNotFoundException",
},
},
Logger: c.Config.Logger,
NewRequest: func(opts []request.Option) (*request.Request, error) {
var inCpy *DescribeCertificateInput
if input != nil {
tmp := *input
inCpy = &tmp
}
req, _ := c.DescribeCertificateRequest(inCpy)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return req, nil
},
}
w.ApplyOptions(opts...)
return w.WaitWithContext(ctx)
}
| 72 |
session-manager-plugin | aws | Go | // Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
// Package acmiface provides an interface to enable mocking the AWS Certificate Manager service client
// for testing your code.
//
// It is important to note that this interface will have breaking changes
// when the service model is updated and adds new API operations, paginators,
// and waiters.
package acmiface
import (
"github.com/aws/aws-sdk-go/aws"
"github.com/aws/aws-sdk-go/aws/request"
"github.com/aws/aws-sdk-go/service/acm"
)
// ACMAPI provides an interface to enable mocking the
// acm.ACM service client's API operation,
// paginators, and waiters. This make unit testing your code that calls out
// to the SDK's service client's calls easier.
//
// The best way to use this interface is so the SDK's service client's calls
// can be stubbed out for unit testing your code with the SDK without needing
// to inject custom request handlers into the SDK's request pipeline.
//
// // myFunc uses an SDK service client to make a request to
// // AWS Certificate Manager.
// func myFunc(svc acmiface.ACMAPI) bool {
// // Make svc.AddTagsToCertificate request
// }
//
// func main() {
// sess := session.New()
// svc := acm.New(sess)
//
// myFunc(svc)
// }
//
// In your _test.go file:
//
// // Define a mock struct to be used in your unit tests of myFunc.
// type mockACMClient struct {
// acmiface.ACMAPI
// }
// func (m *mockACMClient) AddTagsToCertificate(input *acm.AddTagsToCertificateInput) (*acm.AddTagsToCertificateOutput, error) {
// // mock response/functionality
// }
//
// func TestMyFunc(t *testing.T) {
// // Setup Test
// mockSvc := &mockACMClient{}
//
// myfunc(mockSvc)
//
// // Verify myFunc's functionality
// }
//
// It is important to note that this interface will have breaking changes
// when the service model is updated and adds new API operations, paginators,
// and waiters. Its suggested to use the pattern above for testing, or using
// tooling to generate mocks to satisfy the interfaces.
type ACMAPI interface {
AddTagsToCertificate(*acm.AddTagsToCertificateInput) (*acm.AddTagsToCertificateOutput, error)
AddTagsToCertificateWithContext(aws.Context, *acm.AddTagsToCertificateInput, ...request.Option) (*acm.AddTagsToCertificateOutput, error)
AddTagsToCertificateRequest(*acm.AddTagsToCertificateInput) (*request.Request, *acm.AddTagsToCertificateOutput)
DeleteCertificate(*acm.DeleteCertificateInput) (*acm.DeleteCertificateOutput, error)
DeleteCertificateWithContext(aws.Context, *acm.DeleteCertificateInput, ...request.Option) (*acm.DeleteCertificateOutput, error)
DeleteCertificateRequest(*acm.DeleteCertificateInput) (*request.Request, *acm.DeleteCertificateOutput)
DescribeCertificate(*acm.DescribeCertificateInput) (*acm.DescribeCertificateOutput, error)
DescribeCertificateWithContext(aws.Context, *acm.DescribeCertificateInput, ...request.Option) (*acm.DescribeCertificateOutput, error)
DescribeCertificateRequest(*acm.DescribeCertificateInput) (*request.Request, *acm.DescribeCertificateOutput)
ExportCertificate(*acm.ExportCertificateInput) (*acm.ExportCertificateOutput, error)
ExportCertificateWithContext(aws.Context, *acm.ExportCertificateInput, ...request.Option) (*acm.ExportCertificateOutput, error)
ExportCertificateRequest(*acm.ExportCertificateInput) (*request.Request, *acm.ExportCertificateOutput)
GetAccountConfiguration(*acm.GetAccountConfigurationInput) (*acm.GetAccountConfigurationOutput, error)
GetAccountConfigurationWithContext(aws.Context, *acm.GetAccountConfigurationInput, ...request.Option) (*acm.GetAccountConfigurationOutput, error)
GetAccountConfigurationRequest(*acm.GetAccountConfigurationInput) (*request.Request, *acm.GetAccountConfigurationOutput)
GetCertificate(*acm.GetCertificateInput) (*acm.GetCertificateOutput, error)
GetCertificateWithContext(aws.Context, *acm.GetCertificateInput, ...request.Option) (*acm.GetCertificateOutput, error)
GetCertificateRequest(*acm.GetCertificateInput) (*request.Request, *acm.GetCertificateOutput)
ImportCertificate(*acm.ImportCertificateInput) (*acm.ImportCertificateOutput, error)
ImportCertificateWithContext(aws.Context, *acm.ImportCertificateInput, ...request.Option) (*acm.ImportCertificateOutput, error)
ImportCertificateRequest(*acm.ImportCertificateInput) (*request.Request, *acm.ImportCertificateOutput)
ListCertificates(*acm.ListCertificatesInput) (*acm.ListCertificatesOutput, error)
ListCertificatesWithContext(aws.Context, *acm.ListCertificatesInput, ...request.Option) (*acm.ListCertificatesOutput, error)
ListCertificatesRequest(*acm.ListCertificatesInput) (*request.Request, *acm.ListCertificatesOutput)
ListCertificatesPages(*acm.ListCertificatesInput, func(*acm.ListCertificatesOutput, bool) bool) error
ListCertificatesPagesWithContext(aws.Context, *acm.ListCertificatesInput, func(*acm.ListCertificatesOutput, bool) bool, ...request.Option) error
ListTagsForCertificate(*acm.ListTagsForCertificateInput) (*acm.ListTagsForCertificateOutput, error)
ListTagsForCertificateWithContext(aws.Context, *acm.ListTagsForCertificateInput, ...request.Option) (*acm.ListTagsForCertificateOutput, error)
ListTagsForCertificateRequest(*acm.ListTagsForCertificateInput) (*request.Request, *acm.ListTagsForCertificateOutput)
PutAccountConfiguration(*acm.PutAccountConfigurationInput) (*acm.PutAccountConfigurationOutput, error)
PutAccountConfigurationWithContext(aws.Context, *acm.PutAccountConfigurationInput, ...request.Option) (*acm.PutAccountConfigurationOutput, error)
PutAccountConfigurationRequest(*acm.PutAccountConfigurationInput) (*request.Request, *acm.PutAccountConfigurationOutput)
RemoveTagsFromCertificate(*acm.RemoveTagsFromCertificateInput) (*acm.RemoveTagsFromCertificateOutput, error)
RemoveTagsFromCertificateWithContext(aws.Context, *acm.RemoveTagsFromCertificateInput, ...request.Option) (*acm.RemoveTagsFromCertificateOutput, error)
RemoveTagsFromCertificateRequest(*acm.RemoveTagsFromCertificateInput) (*request.Request, *acm.RemoveTagsFromCertificateOutput)
RenewCertificate(*acm.RenewCertificateInput) (*acm.RenewCertificateOutput, error)
RenewCertificateWithContext(aws.Context, *acm.RenewCertificateInput, ...request.Option) (*acm.RenewCertificateOutput, error)
RenewCertificateRequest(*acm.RenewCertificateInput) (*request.Request, *acm.RenewCertificateOutput)
RequestCertificate(*acm.RequestCertificateInput) (*acm.RequestCertificateOutput, error)
RequestCertificateWithContext(aws.Context, *acm.RequestCertificateInput, ...request.Option) (*acm.RequestCertificateOutput, error)
RequestCertificateRequest(*acm.RequestCertificateInput) (*request.Request, *acm.RequestCertificateOutput)
ResendValidationEmail(*acm.ResendValidationEmailInput) (*acm.ResendValidationEmailOutput, error)
ResendValidationEmailWithContext(aws.Context, *acm.ResendValidationEmailInput, ...request.Option) (*acm.ResendValidationEmailOutput, error)
ResendValidationEmailRequest(*acm.ResendValidationEmailInput) (*request.Request, *acm.ResendValidationEmailOutput)
UpdateCertificateOptions(*acm.UpdateCertificateOptionsInput) (*acm.UpdateCertificateOptionsOutput, error)
UpdateCertificateOptionsWithContext(aws.Context, *acm.UpdateCertificateOptionsInput, ...request.Option) (*acm.UpdateCertificateOptionsOutput, error)
UpdateCertificateOptionsRequest(*acm.UpdateCertificateOptionsInput) (*request.Request, *acm.UpdateCertificateOptionsOutput)
WaitUntilCertificateValidated(*acm.DescribeCertificateInput) error
WaitUntilCertificateValidatedWithContext(aws.Context, *acm.DescribeCertificateInput, ...request.WaiterOption) error
}
var _ ACMAPI = (*acm.ACM)(nil)
| 131 |
session-manager-plugin | aws | Go | // Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
// Package acmpca provides the client and types for making API
// requests to AWS Certificate Manager Private Certificate Authority.
//
// This is the ACM Private CA API Reference. It provides descriptions, syntax,
// and usage examples for each of the actions and data types involved in creating
// and managing private certificate authorities (CA) for your organization.
//
// The documentation for each action shows the Query API request parameters
// and the XML response. Alternatively, you can use one of the AWS SDKs to access
// an API that's tailored to the programming language or platform that you're
// using. For more information, see AWS SDKs (https://aws.amazon.com/tools/#SDKs).
//
// Each ACM Private CA API action has a quota that determines the number of
// times the action can be called per second. For more information, see API
// Rate Quotas in ACM Private CA (https://docs.aws.amazon.com/acm-pca/latest/userguide/PcaLimits.html#PcaLimits-api)
// in the ACM Private CA user guide.
//
// See https://docs.aws.amazon.com/goto/WebAPI/acm-pca-2017-08-22 for more information on this service.
//
// See acmpca package documentation for more information.
// https://docs.aws.amazon.com/sdk-for-go/api/service/acmpca/
//
// Using the Client
//
// To contact AWS Certificate Manager Private Certificate Authority 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 Certificate Manager Private Certificate Authority client ACMPCA for more
// information on creating client for this service.
// https://docs.aws.amazon.com/sdk-for-go/api/service/acmpca/#New
package acmpca
| 41 |
session-manager-plugin | aws | Go | // Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
package acmpca
import (
"github.com/aws/aws-sdk-go/private/protocol"
)
const (
// ErrCodeCertificateMismatchException for service response error code
// "CertificateMismatchException".
//
// The certificate authority certificate you are importing does not comply with
// conditions specified in the certificate that signed it.
ErrCodeCertificateMismatchException = "CertificateMismatchException"
// ErrCodeConcurrentModificationException for service response error code
// "ConcurrentModificationException".
//
// A previous update to your private CA is still ongoing.
ErrCodeConcurrentModificationException = "ConcurrentModificationException"
// ErrCodeInvalidArgsException for service response error code
// "InvalidArgsException".
//
// One or more of the specified arguments was not valid.
ErrCodeInvalidArgsException = "InvalidArgsException"
// ErrCodeInvalidArnException for service response error code
// "InvalidArnException".
//
// The requested Amazon Resource Name (ARN) does not refer to an existing resource.
ErrCodeInvalidArnException = "InvalidArnException"
// ErrCodeInvalidNextTokenException for service response error code
// "InvalidNextTokenException".
//
// The token specified in the NextToken argument is not valid. Use the token
// returned from your previous call to ListCertificateAuthorities (https://docs.aws.amazon.com/acm-pca/latest/APIReference/API_ListCertificateAuthorities.html).
ErrCodeInvalidNextTokenException = "InvalidNextTokenException"
// ErrCodeInvalidPolicyException for service response error code
// "InvalidPolicyException".
//
// The resource policy is invalid or is missing a required statement. For general
// information about IAM policy and statement structure, see Overview of JSON
// Policies (https://docs.aws.amazon.com/IAM/latest/UserGuide/access_policies.html#access_policies-json).
ErrCodeInvalidPolicyException = "InvalidPolicyException"
// ErrCodeInvalidRequestException for service response error code
// "InvalidRequestException".
//
// The request action cannot be performed or is prohibited.
ErrCodeInvalidRequestException = "InvalidRequestException"
// ErrCodeInvalidStateException for service response error code
// "InvalidStateException".
//
// The state of the private CA does not allow this action to occur.
ErrCodeInvalidStateException = "InvalidStateException"
// ErrCodeInvalidTagException for service response error code
// "InvalidTagException".
//
// The tag associated with the CA is not valid. The invalid argument is contained
// in the message field.
ErrCodeInvalidTagException = "InvalidTagException"
// ErrCodeLimitExceededException for service response error code
// "LimitExceededException".
//
// An ACM Private CA quota has been exceeded. See the exception message returned
// to determine the quota that was exceeded.
ErrCodeLimitExceededException = "LimitExceededException"
// ErrCodeLockoutPreventedException for service response error code
// "LockoutPreventedException".
//
// The current action was prevented because it would lock the caller out from
// performing subsequent actions. Verify that the specified parameters would
// not result in the caller being denied access to the resource.
ErrCodeLockoutPreventedException = "LockoutPreventedException"
// ErrCodeMalformedCSRException for service response error code
// "MalformedCSRException".
//
// The certificate signing request is invalid.
ErrCodeMalformedCSRException = "MalformedCSRException"
// ErrCodeMalformedCertificateException for service response error code
// "MalformedCertificateException".
//
// One or more fields in the certificate are invalid.
ErrCodeMalformedCertificateException = "MalformedCertificateException"
// ErrCodePermissionAlreadyExistsException for service response error code
// "PermissionAlreadyExistsException".
//
// The designated permission has already been given to the user.
ErrCodePermissionAlreadyExistsException = "PermissionAlreadyExistsException"
// ErrCodeRequestAlreadyProcessedException for service response error code
// "RequestAlreadyProcessedException".
//
// Your request has already been completed.
ErrCodeRequestAlreadyProcessedException = "RequestAlreadyProcessedException"
// ErrCodeRequestFailedException for service response error code
// "RequestFailedException".
//
// The request has failed for an unspecified reason.
ErrCodeRequestFailedException = "RequestFailedException"
// ErrCodeRequestInProgressException for service response error code
// "RequestInProgressException".
//
// Your request is already in progress.
ErrCodeRequestInProgressException = "RequestInProgressException"
// ErrCodeResourceNotFoundException for service response error code
// "ResourceNotFoundException".
//
// A resource such as a private CA, S3 bucket, certificate, audit report, or
// policy cannot be found.
ErrCodeResourceNotFoundException = "ResourceNotFoundException"
// ErrCodeTooManyTagsException for service response error code
// "TooManyTagsException".
//
// You can associate up to 50 tags with a private CA. Exception information
// is contained in the exception message field.
ErrCodeTooManyTagsException = "TooManyTagsException"
)
var exceptionFromCode = map[string]func(protocol.ResponseMetadata) error{
"CertificateMismatchException": newErrorCertificateMismatchException,
"ConcurrentModificationException": newErrorConcurrentModificationException,
"InvalidArgsException": newErrorInvalidArgsException,
"InvalidArnException": newErrorInvalidArnException,
"InvalidNextTokenException": newErrorInvalidNextTokenException,
"InvalidPolicyException": newErrorInvalidPolicyException,
"InvalidRequestException": newErrorInvalidRequestException,
"InvalidStateException": newErrorInvalidStateException,
"InvalidTagException": newErrorInvalidTagException,
"LimitExceededException": newErrorLimitExceededException,
"LockoutPreventedException": newErrorLockoutPreventedException,
"MalformedCSRException": newErrorMalformedCSRException,
"MalformedCertificateException": newErrorMalformedCertificateException,
"PermissionAlreadyExistsException": newErrorPermissionAlreadyExistsException,
"RequestAlreadyProcessedException": newErrorRequestAlreadyProcessedException,
"RequestFailedException": newErrorRequestFailedException,
"RequestInProgressException": newErrorRequestInProgressException,
"ResourceNotFoundException": newErrorResourceNotFoundException,
"TooManyTagsException": newErrorTooManyTagsException,
}
| 157 |
session-manager-plugin | aws | Go | // Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
package acmpca
import (
"github.com/aws/aws-sdk-go/aws"
"github.com/aws/aws-sdk-go/aws/client"
"github.com/aws/aws-sdk-go/aws/client/metadata"
"github.com/aws/aws-sdk-go/aws/request"
"github.com/aws/aws-sdk-go/aws/signer/v4"
"github.com/aws/aws-sdk-go/private/protocol"
"github.com/aws/aws-sdk-go/private/protocol/jsonrpc"
)
// ACMPCA provides the API operation methods for making requests to
// AWS Certificate Manager Private Certificate Authority. See this package's package overview docs
// for details on the service.
//
// ACMPCA methods are safe to use concurrently. It is not safe to
// modify mutate any of the struct's properties though.
type ACMPCA struct {
*client.Client
}
// Used for custom client initialization logic
var initClient func(*client.Client)
// Used for custom request initialization logic
var initRequest func(*request.Request)
// Service information constants
const (
ServiceName = "acm-pca" // Name of service.
EndpointsID = ServiceName // ID to lookup a service endpoint with.
ServiceID = "ACM PCA" // ServiceID is a unique identifier of a specific service.
)
// New creates a new instance of the ACMPCA 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 ACMPCA client from just a session.
// svc := acmpca.New(mySession)
//
// // Create a ACMPCA client with additional configuration
// svc := acmpca.New(mySession, aws.NewConfig().WithRegion("us-west-2"))
func New(p client.ConfigProvider, cfgs ...*aws.Config) *ACMPCA {
c := p.ClientConfig(EndpointsID, cfgs...)
return newClient(*c.Config, c.Handlers, c.PartitionID, c.Endpoint, c.SigningRegion, c.SigningName)
}
// newClient creates, initializes and returns a new service client instance.
func newClient(cfg aws.Config, handlers request.Handlers, partitionID, endpoint, signingRegion, signingName string) *ACMPCA {
svc := &ACMPCA{
Client: client.New(
cfg,
metadata.ClientInfo{
ServiceName: ServiceName,
ServiceID: ServiceID,
SigningName: signingName,
SigningRegion: signingRegion,
PartitionID: partitionID,
Endpoint: endpoint,
APIVersion: "2017-08-22",
JSONVersion: "1.1",
TargetPrefix: "ACMPrivateCA",
},
handlers,
),
}
// Handlers
svc.Handlers.Sign.PushBackNamed(v4.SignRequestHandler)
svc.Handlers.Build.PushBackNamed(jsonrpc.BuildHandler)
svc.Handlers.Unmarshal.PushBackNamed(jsonrpc.UnmarshalHandler)
svc.Handlers.UnmarshalMeta.PushBackNamed(jsonrpc.UnmarshalMetaHandler)
svc.Handlers.UnmarshalError.PushBackNamed(
protocol.NewUnmarshalErrorHandler(jsonrpc.NewUnmarshalTypedError(exceptionFromCode)).NamedHandler(),
)
// Run custom client initialization if present
if initClient != nil {
initClient(svc.Client)
}
return svc
}
// newRequest creates a new request for a ACMPCA operation and runs any
// custom request initialization.
func (c *ACMPCA) newRequest(op *request.Operation, params, data interface{}) *request.Request {
req := c.NewRequest(op, params, data)
// Run custom request initialization if present
if initRequest != nil {
initRequest(req)
}
return req
}
| 104 |
session-manager-plugin | aws | Go | // Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
package acmpca
import (
"time"
"github.com/aws/aws-sdk-go/aws"
"github.com/aws/aws-sdk-go/aws/request"
)
// WaitUntilAuditReportCreated uses the ACM-PCA API operation
// DescribeCertificateAuthorityAuditReport to wait for a condition to be met before returning.
// If the condition is not met within the max attempt window, an error will
// be returned.
func (c *ACMPCA) WaitUntilAuditReportCreated(input *DescribeCertificateAuthorityAuditReportInput) error {
return c.WaitUntilAuditReportCreatedWithContext(aws.BackgroundContext(), input)
}
// WaitUntilAuditReportCreatedWithContext is an extended version of WaitUntilAuditReportCreated.
// With the support for passing in a context and options to configure the
// Waiter and the underlying request options.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
func (c *ACMPCA) WaitUntilAuditReportCreatedWithContext(ctx aws.Context, input *DescribeCertificateAuthorityAuditReportInput, opts ...request.WaiterOption) error {
w := request.Waiter{
Name: "WaitUntilAuditReportCreated",
MaxAttempts: 60,
Delay: request.ConstantWaiterDelay(3 * time.Second),
Acceptors: []request.WaiterAcceptor{
{
State: request.SuccessWaiterState,
Matcher: request.PathWaiterMatch, Argument: "AuditReportStatus",
Expected: "SUCCESS",
},
{
State: request.FailureWaiterState,
Matcher: request.PathWaiterMatch, Argument: "AuditReportStatus",
Expected: "FAILED",
},
},
Logger: c.Config.Logger,
NewRequest: func(opts []request.Option) (*request.Request, error) {
var inCpy *DescribeCertificateAuthorityAuditReportInput
if input != nil {
tmp := *input
inCpy = &tmp
}
req, _ := c.DescribeCertificateAuthorityAuditReportRequest(inCpy)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return req, nil
},
}
w.ApplyOptions(opts...)
return w.WaitWithContext(ctx)
}
// WaitUntilCertificateAuthorityCSRCreated uses the ACM-PCA API operation
// GetCertificateAuthorityCsr to wait for a condition to be met before returning.
// If the condition is not met within the max attempt window, an error will
// be returned.
func (c *ACMPCA) WaitUntilCertificateAuthorityCSRCreated(input *GetCertificateAuthorityCsrInput) error {
return c.WaitUntilCertificateAuthorityCSRCreatedWithContext(aws.BackgroundContext(), input)
}
// WaitUntilCertificateAuthorityCSRCreatedWithContext is an extended version of WaitUntilCertificateAuthorityCSRCreated.
// With the support for passing in a context and options to configure the
// Waiter and the underlying request options.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
func (c *ACMPCA) WaitUntilCertificateAuthorityCSRCreatedWithContext(ctx aws.Context, input *GetCertificateAuthorityCsrInput, opts ...request.WaiterOption) error {
w := request.Waiter{
Name: "WaitUntilCertificateAuthorityCSRCreated",
MaxAttempts: 60,
Delay: request.ConstantWaiterDelay(3 * time.Second),
Acceptors: []request.WaiterAcceptor{
{
State: request.SuccessWaiterState,
Matcher: request.StatusWaiterMatch,
Expected: 200,
},
{
State: request.RetryWaiterState,
Matcher: request.ErrorWaiterMatch,
Expected: "RequestInProgressException",
},
},
Logger: c.Config.Logger,
NewRequest: func(opts []request.Option) (*request.Request, error) {
var inCpy *GetCertificateAuthorityCsrInput
if input != nil {
tmp := *input
inCpy = &tmp
}
req, _ := c.GetCertificateAuthorityCsrRequest(inCpy)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return req, nil
},
}
w.ApplyOptions(opts...)
return w.WaitWithContext(ctx)
}
// WaitUntilCertificateIssued uses the ACM-PCA API operation
// GetCertificate to wait for a condition to be met before returning.
// If the condition is not met within the max attempt window, an error will
// be returned.
func (c *ACMPCA) WaitUntilCertificateIssued(input *GetCertificateInput) error {
return c.WaitUntilCertificateIssuedWithContext(aws.BackgroundContext(), input)
}
// WaitUntilCertificateIssuedWithContext is an extended version of WaitUntilCertificateIssued.
// With the support for passing in a context and options to configure the
// Waiter and the underlying request options.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
func (c *ACMPCA) WaitUntilCertificateIssuedWithContext(ctx aws.Context, input *GetCertificateInput, opts ...request.WaiterOption) error {
w := request.Waiter{
Name: "WaitUntilCertificateIssued",
MaxAttempts: 60,
Delay: request.ConstantWaiterDelay(3 * time.Second),
Acceptors: []request.WaiterAcceptor{
{
State: request.SuccessWaiterState,
Matcher: request.StatusWaiterMatch,
Expected: 200,
},
{
State: request.RetryWaiterState,
Matcher: request.ErrorWaiterMatch,
Expected: "RequestInProgressException",
},
},
Logger: c.Config.Logger,
NewRequest: func(opts []request.Option) (*request.Request, error) {
var inCpy *GetCertificateInput
if input != nil {
tmp := *input
inCpy = &tmp
}
req, _ := c.GetCertificateRequest(inCpy)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return req, nil
},
}
w.ApplyOptions(opts...)
return w.WaitWithContext(ctx)
}
| 164 |
session-manager-plugin | aws | Go | // Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
// Package acmpcaiface provides an interface to enable mocking the AWS Certificate Manager Private Certificate Authority service client
// for testing your code.
//
// It is important to note that this interface will have breaking changes
// when the service model is updated and adds new API operations, paginators,
// and waiters.
package acmpcaiface
import (
"github.com/aws/aws-sdk-go/aws"
"github.com/aws/aws-sdk-go/aws/request"
"github.com/aws/aws-sdk-go/service/acmpca"
)
// ACMPCAAPI provides an interface to enable mocking the
// acmpca.ACMPCA service client's API operation,
// paginators, and waiters. This make unit testing your code that calls out
// to the SDK's service client's calls easier.
//
// The best way to use this interface is so the SDK's service client's calls
// can be stubbed out for unit testing your code with the SDK without needing
// to inject custom request handlers into the SDK's request pipeline.
//
// // myFunc uses an SDK service client to make a request to
// // AWS Certificate Manager Private Certificate Authority.
// func myFunc(svc acmpcaiface.ACMPCAAPI) bool {
// // Make svc.CreateCertificateAuthority request
// }
//
// func main() {
// sess := session.New()
// svc := acmpca.New(sess)
//
// myFunc(svc)
// }
//
// In your _test.go file:
//
// // Define a mock struct to be used in your unit tests of myFunc.
// type mockACMPCAClient struct {
// acmpcaiface.ACMPCAAPI
// }
// func (m *mockACMPCAClient) CreateCertificateAuthority(input *acmpca.CreateCertificateAuthorityInput) (*acmpca.CreateCertificateAuthorityOutput, error) {
// // mock response/functionality
// }
//
// func TestMyFunc(t *testing.T) {
// // Setup Test
// mockSvc := &mockACMPCAClient{}
//
// myfunc(mockSvc)
//
// // Verify myFunc's functionality
// }
//
// It is important to note that this interface will have breaking changes
// when the service model is updated and adds new API operations, paginators,
// and waiters. Its suggested to use the pattern above for testing, or using
// tooling to generate mocks to satisfy the interfaces.
type ACMPCAAPI interface {
CreateCertificateAuthority(*acmpca.CreateCertificateAuthorityInput) (*acmpca.CreateCertificateAuthorityOutput, error)
CreateCertificateAuthorityWithContext(aws.Context, *acmpca.CreateCertificateAuthorityInput, ...request.Option) (*acmpca.CreateCertificateAuthorityOutput, error)
CreateCertificateAuthorityRequest(*acmpca.CreateCertificateAuthorityInput) (*request.Request, *acmpca.CreateCertificateAuthorityOutput)
CreateCertificateAuthorityAuditReport(*acmpca.CreateCertificateAuthorityAuditReportInput) (*acmpca.CreateCertificateAuthorityAuditReportOutput, error)
CreateCertificateAuthorityAuditReportWithContext(aws.Context, *acmpca.CreateCertificateAuthorityAuditReportInput, ...request.Option) (*acmpca.CreateCertificateAuthorityAuditReportOutput, error)
CreateCertificateAuthorityAuditReportRequest(*acmpca.CreateCertificateAuthorityAuditReportInput) (*request.Request, *acmpca.CreateCertificateAuthorityAuditReportOutput)
CreatePermission(*acmpca.CreatePermissionInput) (*acmpca.CreatePermissionOutput, error)
CreatePermissionWithContext(aws.Context, *acmpca.CreatePermissionInput, ...request.Option) (*acmpca.CreatePermissionOutput, error)
CreatePermissionRequest(*acmpca.CreatePermissionInput) (*request.Request, *acmpca.CreatePermissionOutput)
DeleteCertificateAuthority(*acmpca.DeleteCertificateAuthorityInput) (*acmpca.DeleteCertificateAuthorityOutput, error)
DeleteCertificateAuthorityWithContext(aws.Context, *acmpca.DeleteCertificateAuthorityInput, ...request.Option) (*acmpca.DeleteCertificateAuthorityOutput, error)
DeleteCertificateAuthorityRequest(*acmpca.DeleteCertificateAuthorityInput) (*request.Request, *acmpca.DeleteCertificateAuthorityOutput)
DeletePermission(*acmpca.DeletePermissionInput) (*acmpca.DeletePermissionOutput, error)
DeletePermissionWithContext(aws.Context, *acmpca.DeletePermissionInput, ...request.Option) (*acmpca.DeletePermissionOutput, error)
DeletePermissionRequest(*acmpca.DeletePermissionInput) (*request.Request, *acmpca.DeletePermissionOutput)
DeletePolicy(*acmpca.DeletePolicyInput) (*acmpca.DeletePolicyOutput, error)
DeletePolicyWithContext(aws.Context, *acmpca.DeletePolicyInput, ...request.Option) (*acmpca.DeletePolicyOutput, error)
DeletePolicyRequest(*acmpca.DeletePolicyInput) (*request.Request, *acmpca.DeletePolicyOutput)
DescribeCertificateAuthority(*acmpca.DescribeCertificateAuthorityInput) (*acmpca.DescribeCertificateAuthorityOutput, error)
DescribeCertificateAuthorityWithContext(aws.Context, *acmpca.DescribeCertificateAuthorityInput, ...request.Option) (*acmpca.DescribeCertificateAuthorityOutput, error)
DescribeCertificateAuthorityRequest(*acmpca.DescribeCertificateAuthorityInput) (*request.Request, *acmpca.DescribeCertificateAuthorityOutput)
DescribeCertificateAuthorityAuditReport(*acmpca.DescribeCertificateAuthorityAuditReportInput) (*acmpca.DescribeCertificateAuthorityAuditReportOutput, error)
DescribeCertificateAuthorityAuditReportWithContext(aws.Context, *acmpca.DescribeCertificateAuthorityAuditReportInput, ...request.Option) (*acmpca.DescribeCertificateAuthorityAuditReportOutput, error)
DescribeCertificateAuthorityAuditReportRequest(*acmpca.DescribeCertificateAuthorityAuditReportInput) (*request.Request, *acmpca.DescribeCertificateAuthorityAuditReportOutput)
GetCertificate(*acmpca.GetCertificateInput) (*acmpca.GetCertificateOutput, error)
GetCertificateWithContext(aws.Context, *acmpca.GetCertificateInput, ...request.Option) (*acmpca.GetCertificateOutput, error)
GetCertificateRequest(*acmpca.GetCertificateInput) (*request.Request, *acmpca.GetCertificateOutput)
GetCertificateAuthorityCertificate(*acmpca.GetCertificateAuthorityCertificateInput) (*acmpca.GetCertificateAuthorityCertificateOutput, error)
GetCertificateAuthorityCertificateWithContext(aws.Context, *acmpca.GetCertificateAuthorityCertificateInput, ...request.Option) (*acmpca.GetCertificateAuthorityCertificateOutput, error)
GetCertificateAuthorityCertificateRequest(*acmpca.GetCertificateAuthorityCertificateInput) (*request.Request, *acmpca.GetCertificateAuthorityCertificateOutput)
GetCertificateAuthorityCsr(*acmpca.GetCertificateAuthorityCsrInput) (*acmpca.GetCertificateAuthorityCsrOutput, error)
GetCertificateAuthorityCsrWithContext(aws.Context, *acmpca.GetCertificateAuthorityCsrInput, ...request.Option) (*acmpca.GetCertificateAuthorityCsrOutput, error)
GetCertificateAuthorityCsrRequest(*acmpca.GetCertificateAuthorityCsrInput) (*request.Request, *acmpca.GetCertificateAuthorityCsrOutput)
GetPolicy(*acmpca.GetPolicyInput) (*acmpca.GetPolicyOutput, error)
GetPolicyWithContext(aws.Context, *acmpca.GetPolicyInput, ...request.Option) (*acmpca.GetPolicyOutput, error)
GetPolicyRequest(*acmpca.GetPolicyInput) (*request.Request, *acmpca.GetPolicyOutput)
ImportCertificateAuthorityCertificate(*acmpca.ImportCertificateAuthorityCertificateInput) (*acmpca.ImportCertificateAuthorityCertificateOutput, error)
ImportCertificateAuthorityCertificateWithContext(aws.Context, *acmpca.ImportCertificateAuthorityCertificateInput, ...request.Option) (*acmpca.ImportCertificateAuthorityCertificateOutput, error)
ImportCertificateAuthorityCertificateRequest(*acmpca.ImportCertificateAuthorityCertificateInput) (*request.Request, *acmpca.ImportCertificateAuthorityCertificateOutput)
IssueCertificate(*acmpca.IssueCertificateInput) (*acmpca.IssueCertificateOutput, error)
IssueCertificateWithContext(aws.Context, *acmpca.IssueCertificateInput, ...request.Option) (*acmpca.IssueCertificateOutput, error)
IssueCertificateRequest(*acmpca.IssueCertificateInput) (*request.Request, *acmpca.IssueCertificateOutput)
ListCertificateAuthorities(*acmpca.ListCertificateAuthoritiesInput) (*acmpca.ListCertificateAuthoritiesOutput, error)
ListCertificateAuthoritiesWithContext(aws.Context, *acmpca.ListCertificateAuthoritiesInput, ...request.Option) (*acmpca.ListCertificateAuthoritiesOutput, error)
ListCertificateAuthoritiesRequest(*acmpca.ListCertificateAuthoritiesInput) (*request.Request, *acmpca.ListCertificateAuthoritiesOutput)
ListCertificateAuthoritiesPages(*acmpca.ListCertificateAuthoritiesInput, func(*acmpca.ListCertificateAuthoritiesOutput, bool) bool) error
ListCertificateAuthoritiesPagesWithContext(aws.Context, *acmpca.ListCertificateAuthoritiesInput, func(*acmpca.ListCertificateAuthoritiesOutput, bool) bool, ...request.Option) error
ListPermissions(*acmpca.ListPermissionsInput) (*acmpca.ListPermissionsOutput, error)
ListPermissionsWithContext(aws.Context, *acmpca.ListPermissionsInput, ...request.Option) (*acmpca.ListPermissionsOutput, error)
ListPermissionsRequest(*acmpca.ListPermissionsInput) (*request.Request, *acmpca.ListPermissionsOutput)
ListPermissionsPages(*acmpca.ListPermissionsInput, func(*acmpca.ListPermissionsOutput, bool) bool) error
ListPermissionsPagesWithContext(aws.Context, *acmpca.ListPermissionsInput, func(*acmpca.ListPermissionsOutput, bool) bool, ...request.Option) error
ListTags(*acmpca.ListTagsInput) (*acmpca.ListTagsOutput, error)
ListTagsWithContext(aws.Context, *acmpca.ListTagsInput, ...request.Option) (*acmpca.ListTagsOutput, error)
ListTagsRequest(*acmpca.ListTagsInput) (*request.Request, *acmpca.ListTagsOutput)
ListTagsPages(*acmpca.ListTagsInput, func(*acmpca.ListTagsOutput, bool) bool) error
ListTagsPagesWithContext(aws.Context, *acmpca.ListTagsInput, func(*acmpca.ListTagsOutput, bool) bool, ...request.Option) error
PutPolicy(*acmpca.PutPolicyInput) (*acmpca.PutPolicyOutput, error)
PutPolicyWithContext(aws.Context, *acmpca.PutPolicyInput, ...request.Option) (*acmpca.PutPolicyOutput, error)
PutPolicyRequest(*acmpca.PutPolicyInput) (*request.Request, *acmpca.PutPolicyOutput)
RestoreCertificateAuthority(*acmpca.RestoreCertificateAuthorityInput) (*acmpca.RestoreCertificateAuthorityOutput, error)
RestoreCertificateAuthorityWithContext(aws.Context, *acmpca.RestoreCertificateAuthorityInput, ...request.Option) (*acmpca.RestoreCertificateAuthorityOutput, error)
RestoreCertificateAuthorityRequest(*acmpca.RestoreCertificateAuthorityInput) (*request.Request, *acmpca.RestoreCertificateAuthorityOutput)
RevokeCertificate(*acmpca.RevokeCertificateInput) (*acmpca.RevokeCertificateOutput, error)
RevokeCertificateWithContext(aws.Context, *acmpca.RevokeCertificateInput, ...request.Option) (*acmpca.RevokeCertificateOutput, error)
RevokeCertificateRequest(*acmpca.RevokeCertificateInput) (*request.Request, *acmpca.RevokeCertificateOutput)
TagCertificateAuthority(*acmpca.TagCertificateAuthorityInput) (*acmpca.TagCertificateAuthorityOutput, error)
TagCertificateAuthorityWithContext(aws.Context, *acmpca.TagCertificateAuthorityInput, ...request.Option) (*acmpca.TagCertificateAuthorityOutput, error)
TagCertificateAuthorityRequest(*acmpca.TagCertificateAuthorityInput) (*request.Request, *acmpca.TagCertificateAuthorityOutput)
UntagCertificateAuthority(*acmpca.UntagCertificateAuthorityInput) (*acmpca.UntagCertificateAuthorityOutput, error)
UntagCertificateAuthorityWithContext(aws.Context, *acmpca.UntagCertificateAuthorityInput, ...request.Option) (*acmpca.UntagCertificateAuthorityOutput, error)
UntagCertificateAuthorityRequest(*acmpca.UntagCertificateAuthorityInput) (*request.Request, *acmpca.UntagCertificateAuthorityOutput)
UpdateCertificateAuthority(*acmpca.UpdateCertificateAuthorityInput) (*acmpca.UpdateCertificateAuthorityOutput, error)
UpdateCertificateAuthorityWithContext(aws.Context, *acmpca.UpdateCertificateAuthorityInput, ...request.Option) (*acmpca.UpdateCertificateAuthorityOutput, error)
UpdateCertificateAuthorityRequest(*acmpca.UpdateCertificateAuthorityInput) (*request.Request, *acmpca.UpdateCertificateAuthorityOutput)
WaitUntilAuditReportCreated(*acmpca.DescribeCertificateAuthorityAuditReportInput) error
WaitUntilAuditReportCreatedWithContext(aws.Context, *acmpca.DescribeCertificateAuthorityAuditReportInput, ...request.WaiterOption) error
WaitUntilCertificateAuthorityCSRCreated(*acmpca.GetCertificateAuthorityCsrInput) error
WaitUntilCertificateAuthorityCSRCreatedWithContext(aws.Context, *acmpca.GetCertificateAuthorityCsrInput, ...request.WaiterOption) error
WaitUntilCertificateIssued(*acmpca.GetCertificateInput) error
WaitUntilCertificateIssuedWithContext(aws.Context, *acmpca.GetCertificateInput, ...request.WaiterOption) error
}
var _ ACMPCAAPI = (*acmpca.ACMPCA)(nil)
| 175 |
session-manager-plugin | aws | Go | // Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
// Package alexaforbusiness provides the client and types for making API
// requests to Alexa For Business.
//
// Alexa for Business helps you use Alexa in your organization. Alexa for Business
// provides you with the tools to manage Alexa devices, enroll your users, and
// assign skills, at scale. You can build your own context-aware voice skills
// using the Alexa Skills Kit and the Alexa for Business API operations. You
// can also make these available as private skills for your organization. Alexa
// for Business makes it efficient to voice-enable your products and services,
// thus providing context-aware voice experiences for your customers. Device
// makers building with the Alexa Voice Service (AVS) can create fully integrated
// solutions, register their products with Alexa for Business, and manage them
// as shared devices in their organization.
//
// See https://docs.aws.amazon.com/goto/WebAPI/alexaforbusiness-2017-11-09 for more information on this service.
//
// See alexaforbusiness package documentation for more information.
// https://docs.aws.amazon.com/sdk-for-go/api/service/alexaforbusiness/
//
// Using the Client
//
// To contact Alexa For Business 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 Alexa For Business client AlexaForBusiness for more
// information on creating client for this service.
// https://docs.aws.amazon.com/sdk-for-go/api/service/alexaforbusiness/#New
package alexaforbusiness
| 38 |
session-manager-plugin | aws | Go | // Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
package alexaforbusiness
import (
"github.com/aws/aws-sdk-go/private/protocol"
)
const (
// ErrCodeAlreadyExistsException for service response error code
// "AlreadyExistsException".
//
// The resource being created already exists.
ErrCodeAlreadyExistsException = "AlreadyExistsException"
// ErrCodeConcurrentModificationException for service response error code
// "ConcurrentModificationException".
//
// There is a concurrent modification of resources.
ErrCodeConcurrentModificationException = "ConcurrentModificationException"
// ErrCodeDeviceNotRegisteredException for service response error code
// "DeviceNotRegisteredException".
//
// The request failed because this device is no longer registered and therefore
// no longer managed by this account.
ErrCodeDeviceNotRegisteredException = "DeviceNotRegisteredException"
// ErrCodeInvalidCertificateAuthorityException for service response error code
// "InvalidCertificateAuthorityException".
//
// The Certificate Authority can't issue or revoke a certificate.
ErrCodeInvalidCertificateAuthorityException = "InvalidCertificateAuthorityException"
// ErrCodeInvalidDeviceException for service response error code
// "InvalidDeviceException".
//
// The device is in an invalid state.
ErrCodeInvalidDeviceException = "InvalidDeviceException"
// ErrCodeInvalidSecretsManagerResourceException for service response error code
// "InvalidSecretsManagerResourceException".
//
// A password in SecretsManager is in an invalid state.
ErrCodeInvalidSecretsManagerResourceException = "InvalidSecretsManagerResourceException"
// ErrCodeInvalidServiceLinkedRoleStateException for service response error code
// "InvalidServiceLinkedRoleStateException".
//
// The service linked role is locked for deletion.
ErrCodeInvalidServiceLinkedRoleStateException = "InvalidServiceLinkedRoleStateException"
// ErrCodeInvalidUserStatusException for service response error code
// "InvalidUserStatusException".
//
// The attempt to update a user is invalid due to the user's current status.
ErrCodeInvalidUserStatusException = "InvalidUserStatusException"
// ErrCodeLimitExceededException for service response error code
// "LimitExceededException".
//
// You are performing an action that would put you beyond your account's limits.
ErrCodeLimitExceededException = "LimitExceededException"
// ErrCodeNameInUseException for service response error code
// "NameInUseException".
//
// The name sent in the request is already in use.
ErrCodeNameInUseException = "NameInUseException"
// ErrCodeNotFoundException for service response error code
// "NotFoundException".
//
// The resource is not found.
ErrCodeNotFoundException = "NotFoundException"
// ErrCodeResourceAssociatedException for service response error code
// "ResourceAssociatedException".
//
// Another resource is associated with the resource in the request.
ErrCodeResourceAssociatedException = "ResourceAssociatedException"
// ErrCodeResourceInUseException for service response error code
// "ResourceInUseException".
//
// The resource in the request is already in use.
ErrCodeResourceInUseException = "ResourceInUseException"
// ErrCodeSkillNotLinkedException for service response error code
// "SkillNotLinkedException".
//
// The skill must be linked to a third-party account.
ErrCodeSkillNotLinkedException = "SkillNotLinkedException"
// ErrCodeUnauthorizedException for service response error code
// "UnauthorizedException".
//
// The caller has no permissions to operate on the resource involved in the
// API call.
ErrCodeUnauthorizedException = "UnauthorizedException"
)
var exceptionFromCode = map[string]func(protocol.ResponseMetadata) error{
"AlreadyExistsException": newErrorAlreadyExistsException,
"ConcurrentModificationException": newErrorConcurrentModificationException,
"DeviceNotRegisteredException": newErrorDeviceNotRegisteredException,
"InvalidCertificateAuthorityException": newErrorInvalidCertificateAuthorityException,
"InvalidDeviceException": newErrorInvalidDeviceException,
"InvalidSecretsManagerResourceException": newErrorInvalidSecretsManagerResourceException,
"InvalidServiceLinkedRoleStateException": newErrorInvalidServiceLinkedRoleStateException,
"InvalidUserStatusException": newErrorInvalidUserStatusException,
"LimitExceededException": newErrorLimitExceededException,
"NameInUseException": newErrorNameInUseException,
"NotFoundException": newErrorNotFoundException,
"ResourceAssociatedException": newErrorResourceAssociatedException,
"ResourceInUseException": newErrorResourceInUseException,
"SkillNotLinkedException": newErrorSkillNotLinkedException,
"UnauthorizedException": newErrorUnauthorizedException,
}
| 121 |
session-manager-plugin | aws | Go | // Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
package alexaforbusiness
import (
"github.com/aws/aws-sdk-go/aws"
"github.com/aws/aws-sdk-go/aws/client"
"github.com/aws/aws-sdk-go/aws/client/metadata"
"github.com/aws/aws-sdk-go/aws/request"
"github.com/aws/aws-sdk-go/aws/signer/v4"
"github.com/aws/aws-sdk-go/private/protocol"
"github.com/aws/aws-sdk-go/private/protocol/jsonrpc"
)
// AlexaForBusiness provides the API operation methods for making requests to
// Alexa For Business. See this package's package overview docs
// for details on the service.
//
// AlexaForBusiness methods are safe to use concurrently. It is not safe to
// modify mutate any of the struct's properties though.
type AlexaForBusiness struct {
*client.Client
}
// Used for custom client initialization logic
var initClient func(*client.Client)
// Used for custom request initialization logic
var initRequest func(*request.Request)
// Service information constants
const (
ServiceName = "a4b" // Name of service.
EndpointsID = ServiceName // ID to lookup a service endpoint with.
ServiceID = "Alexa For Business" // ServiceID is a unique identifier of a specific service.
)
// New creates a new instance of the AlexaForBusiness 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 AlexaForBusiness client from just a session.
// svc := alexaforbusiness.New(mySession)
//
// // Create a AlexaForBusiness client with additional configuration
// svc := alexaforbusiness.New(mySession, aws.NewConfig().WithRegion("us-west-2"))
func New(p client.ConfigProvider, cfgs ...*aws.Config) *AlexaForBusiness {
c := p.ClientConfig(EndpointsID, cfgs...)
return newClient(*c.Config, c.Handlers, c.PartitionID, c.Endpoint, c.SigningRegion, c.SigningName)
}
// newClient creates, initializes and returns a new service client instance.
func newClient(cfg aws.Config, handlers request.Handlers, partitionID, endpoint, signingRegion, signingName string) *AlexaForBusiness {
svc := &AlexaForBusiness{
Client: client.New(
cfg,
metadata.ClientInfo{
ServiceName: ServiceName,
ServiceID: ServiceID,
SigningName: signingName,
SigningRegion: signingRegion,
PartitionID: partitionID,
Endpoint: endpoint,
APIVersion: "2017-11-09",
JSONVersion: "1.1",
TargetPrefix: "AlexaForBusiness",
},
handlers,
),
}
// Handlers
svc.Handlers.Sign.PushBackNamed(v4.SignRequestHandler)
svc.Handlers.Build.PushBackNamed(jsonrpc.BuildHandler)
svc.Handlers.Unmarshal.PushBackNamed(jsonrpc.UnmarshalHandler)
svc.Handlers.UnmarshalMeta.PushBackNamed(jsonrpc.UnmarshalMetaHandler)
svc.Handlers.UnmarshalError.PushBackNamed(
protocol.NewUnmarshalErrorHandler(jsonrpc.NewUnmarshalTypedError(exceptionFromCode)).NamedHandler(),
)
// Run custom client initialization if present
if initClient != nil {
initClient(svc.Client)
}
return svc
}
// newRequest creates a new request for a AlexaForBusiness operation and runs any
// custom request initialization.
func (c *AlexaForBusiness) newRequest(op *request.Operation, params, data interface{}) *request.Request {
req := c.NewRequest(op, params, data)
// Run custom request initialization if present
if initRequest != nil {
initRequest(req)
}
return req
}
| 104 |
session-manager-plugin | aws | Go | // Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
// Package alexaforbusinessiface provides an interface to enable mocking the Alexa For Business service client
// for testing your code.
//
// It is important to note that this interface will have breaking changes
// when the service model is updated and adds new API operations, paginators,
// and waiters.
package alexaforbusinessiface
import (
"github.com/aws/aws-sdk-go/aws"
"github.com/aws/aws-sdk-go/aws/request"
"github.com/aws/aws-sdk-go/service/alexaforbusiness"
)
// AlexaForBusinessAPI provides an interface to enable mocking the
// alexaforbusiness.AlexaForBusiness service client's API operation,
// paginators, and waiters. This make unit testing your code that calls out
// to the SDK's service client's calls easier.
//
// The best way to use this interface is so the SDK's service client's calls
// can be stubbed out for unit testing your code with the SDK without needing
// to inject custom request handlers into the SDK's request pipeline.
//
// // myFunc uses an SDK service client to make a request to
// // Alexa For Business.
// func myFunc(svc alexaforbusinessiface.AlexaForBusinessAPI) bool {
// // Make svc.ApproveSkill request
// }
//
// func main() {
// sess := session.New()
// svc := alexaforbusiness.New(sess)
//
// myFunc(svc)
// }
//
// In your _test.go file:
//
// // Define a mock struct to be used in your unit tests of myFunc.
// type mockAlexaForBusinessClient struct {
// alexaforbusinessiface.AlexaForBusinessAPI
// }
// func (m *mockAlexaForBusinessClient) ApproveSkill(input *alexaforbusiness.ApproveSkillInput) (*alexaforbusiness.ApproveSkillOutput, error) {
// // mock response/functionality
// }
//
// func TestMyFunc(t *testing.T) {
// // Setup Test
// mockSvc := &mockAlexaForBusinessClient{}
//
// myfunc(mockSvc)
//
// // Verify myFunc's functionality
// }
//
// It is important to note that this interface will have breaking changes
// when the service model is updated and adds new API operations, paginators,
// and waiters. Its suggested to use the pattern above for testing, or using
// tooling to generate mocks to satisfy the interfaces.
type AlexaForBusinessAPI interface {
ApproveSkill(*alexaforbusiness.ApproveSkillInput) (*alexaforbusiness.ApproveSkillOutput, error)
ApproveSkillWithContext(aws.Context, *alexaforbusiness.ApproveSkillInput, ...request.Option) (*alexaforbusiness.ApproveSkillOutput, error)
ApproveSkillRequest(*alexaforbusiness.ApproveSkillInput) (*request.Request, *alexaforbusiness.ApproveSkillOutput)
AssociateContactWithAddressBook(*alexaforbusiness.AssociateContactWithAddressBookInput) (*alexaforbusiness.AssociateContactWithAddressBookOutput, error)
AssociateContactWithAddressBookWithContext(aws.Context, *alexaforbusiness.AssociateContactWithAddressBookInput, ...request.Option) (*alexaforbusiness.AssociateContactWithAddressBookOutput, error)
AssociateContactWithAddressBookRequest(*alexaforbusiness.AssociateContactWithAddressBookInput) (*request.Request, *alexaforbusiness.AssociateContactWithAddressBookOutput)
AssociateDeviceWithNetworkProfile(*alexaforbusiness.AssociateDeviceWithNetworkProfileInput) (*alexaforbusiness.AssociateDeviceWithNetworkProfileOutput, error)
AssociateDeviceWithNetworkProfileWithContext(aws.Context, *alexaforbusiness.AssociateDeviceWithNetworkProfileInput, ...request.Option) (*alexaforbusiness.AssociateDeviceWithNetworkProfileOutput, error)
AssociateDeviceWithNetworkProfileRequest(*alexaforbusiness.AssociateDeviceWithNetworkProfileInput) (*request.Request, *alexaforbusiness.AssociateDeviceWithNetworkProfileOutput)
AssociateDeviceWithRoom(*alexaforbusiness.AssociateDeviceWithRoomInput) (*alexaforbusiness.AssociateDeviceWithRoomOutput, error)
AssociateDeviceWithRoomWithContext(aws.Context, *alexaforbusiness.AssociateDeviceWithRoomInput, ...request.Option) (*alexaforbusiness.AssociateDeviceWithRoomOutput, error)
AssociateDeviceWithRoomRequest(*alexaforbusiness.AssociateDeviceWithRoomInput) (*request.Request, *alexaforbusiness.AssociateDeviceWithRoomOutput)
AssociateSkillGroupWithRoom(*alexaforbusiness.AssociateSkillGroupWithRoomInput) (*alexaforbusiness.AssociateSkillGroupWithRoomOutput, error)
AssociateSkillGroupWithRoomWithContext(aws.Context, *alexaforbusiness.AssociateSkillGroupWithRoomInput, ...request.Option) (*alexaforbusiness.AssociateSkillGroupWithRoomOutput, error)
AssociateSkillGroupWithRoomRequest(*alexaforbusiness.AssociateSkillGroupWithRoomInput) (*request.Request, *alexaforbusiness.AssociateSkillGroupWithRoomOutput)
AssociateSkillWithSkillGroup(*alexaforbusiness.AssociateSkillWithSkillGroupInput) (*alexaforbusiness.AssociateSkillWithSkillGroupOutput, error)
AssociateSkillWithSkillGroupWithContext(aws.Context, *alexaforbusiness.AssociateSkillWithSkillGroupInput, ...request.Option) (*alexaforbusiness.AssociateSkillWithSkillGroupOutput, error)
AssociateSkillWithSkillGroupRequest(*alexaforbusiness.AssociateSkillWithSkillGroupInput) (*request.Request, *alexaforbusiness.AssociateSkillWithSkillGroupOutput)
AssociateSkillWithUsers(*alexaforbusiness.AssociateSkillWithUsersInput) (*alexaforbusiness.AssociateSkillWithUsersOutput, error)
AssociateSkillWithUsersWithContext(aws.Context, *alexaforbusiness.AssociateSkillWithUsersInput, ...request.Option) (*alexaforbusiness.AssociateSkillWithUsersOutput, error)
AssociateSkillWithUsersRequest(*alexaforbusiness.AssociateSkillWithUsersInput) (*request.Request, *alexaforbusiness.AssociateSkillWithUsersOutput)
CreateAddressBook(*alexaforbusiness.CreateAddressBookInput) (*alexaforbusiness.CreateAddressBookOutput, error)
CreateAddressBookWithContext(aws.Context, *alexaforbusiness.CreateAddressBookInput, ...request.Option) (*alexaforbusiness.CreateAddressBookOutput, error)
CreateAddressBookRequest(*alexaforbusiness.CreateAddressBookInput) (*request.Request, *alexaforbusiness.CreateAddressBookOutput)
CreateBusinessReportSchedule(*alexaforbusiness.CreateBusinessReportScheduleInput) (*alexaforbusiness.CreateBusinessReportScheduleOutput, error)
CreateBusinessReportScheduleWithContext(aws.Context, *alexaforbusiness.CreateBusinessReportScheduleInput, ...request.Option) (*alexaforbusiness.CreateBusinessReportScheduleOutput, error)
CreateBusinessReportScheduleRequest(*alexaforbusiness.CreateBusinessReportScheduleInput) (*request.Request, *alexaforbusiness.CreateBusinessReportScheduleOutput)
CreateConferenceProvider(*alexaforbusiness.CreateConferenceProviderInput) (*alexaforbusiness.CreateConferenceProviderOutput, error)
CreateConferenceProviderWithContext(aws.Context, *alexaforbusiness.CreateConferenceProviderInput, ...request.Option) (*alexaforbusiness.CreateConferenceProviderOutput, error)
CreateConferenceProviderRequest(*alexaforbusiness.CreateConferenceProviderInput) (*request.Request, *alexaforbusiness.CreateConferenceProviderOutput)
CreateContact(*alexaforbusiness.CreateContactInput) (*alexaforbusiness.CreateContactOutput, error)
CreateContactWithContext(aws.Context, *alexaforbusiness.CreateContactInput, ...request.Option) (*alexaforbusiness.CreateContactOutput, error)
CreateContactRequest(*alexaforbusiness.CreateContactInput) (*request.Request, *alexaforbusiness.CreateContactOutput)
CreateGatewayGroup(*alexaforbusiness.CreateGatewayGroupInput) (*alexaforbusiness.CreateGatewayGroupOutput, error)
CreateGatewayGroupWithContext(aws.Context, *alexaforbusiness.CreateGatewayGroupInput, ...request.Option) (*alexaforbusiness.CreateGatewayGroupOutput, error)
CreateGatewayGroupRequest(*alexaforbusiness.CreateGatewayGroupInput) (*request.Request, *alexaforbusiness.CreateGatewayGroupOutput)
CreateNetworkProfile(*alexaforbusiness.CreateNetworkProfileInput) (*alexaforbusiness.CreateNetworkProfileOutput, error)
CreateNetworkProfileWithContext(aws.Context, *alexaforbusiness.CreateNetworkProfileInput, ...request.Option) (*alexaforbusiness.CreateNetworkProfileOutput, error)
CreateNetworkProfileRequest(*alexaforbusiness.CreateNetworkProfileInput) (*request.Request, *alexaforbusiness.CreateNetworkProfileOutput)
CreateProfile(*alexaforbusiness.CreateProfileInput) (*alexaforbusiness.CreateProfileOutput, error)
CreateProfileWithContext(aws.Context, *alexaforbusiness.CreateProfileInput, ...request.Option) (*alexaforbusiness.CreateProfileOutput, error)
CreateProfileRequest(*alexaforbusiness.CreateProfileInput) (*request.Request, *alexaforbusiness.CreateProfileOutput)
CreateRoom(*alexaforbusiness.CreateRoomInput) (*alexaforbusiness.CreateRoomOutput, error)
CreateRoomWithContext(aws.Context, *alexaforbusiness.CreateRoomInput, ...request.Option) (*alexaforbusiness.CreateRoomOutput, error)
CreateRoomRequest(*alexaforbusiness.CreateRoomInput) (*request.Request, *alexaforbusiness.CreateRoomOutput)
CreateSkillGroup(*alexaforbusiness.CreateSkillGroupInput) (*alexaforbusiness.CreateSkillGroupOutput, error)
CreateSkillGroupWithContext(aws.Context, *alexaforbusiness.CreateSkillGroupInput, ...request.Option) (*alexaforbusiness.CreateSkillGroupOutput, error)
CreateSkillGroupRequest(*alexaforbusiness.CreateSkillGroupInput) (*request.Request, *alexaforbusiness.CreateSkillGroupOutput)
CreateUser(*alexaforbusiness.CreateUserInput) (*alexaforbusiness.CreateUserOutput, error)
CreateUserWithContext(aws.Context, *alexaforbusiness.CreateUserInput, ...request.Option) (*alexaforbusiness.CreateUserOutput, error)
CreateUserRequest(*alexaforbusiness.CreateUserInput) (*request.Request, *alexaforbusiness.CreateUserOutput)
DeleteAddressBook(*alexaforbusiness.DeleteAddressBookInput) (*alexaforbusiness.DeleteAddressBookOutput, error)
DeleteAddressBookWithContext(aws.Context, *alexaforbusiness.DeleteAddressBookInput, ...request.Option) (*alexaforbusiness.DeleteAddressBookOutput, error)
DeleteAddressBookRequest(*alexaforbusiness.DeleteAddressBookInput) (*request.Request, *alexaforbusiness.DeleteAddressBookOutput)
DeleteBusinessReportSchedule(*alexaforbusiness.DeleteBusinessReportScheduleInput) (*alexaforbusiness.DeleteBusinessReportScheduleOutput, error)
DeleteBusinessReportScheduleWithContext(aws.Context, *alexaforbusiness.DeleteBusinessReportScheduleInput, ...request.Option) (*alexaforbusiness.DeleteBusinessReportScheduleOutput, error)
DeleteBusinessReportScheduleRequest(*alexaforbusiness.DeleteBusinessReportScheduleInput) (*request.Request, *alexaforbusiness.DeleteBusinessReportScheduleOutput)
DeleteConferenceProvider(*alexaforbusiness.DeleteConferenceProviderInput) (*alexaforbusiness.DeleteConferenceProviderOutput, error)
DeleteConferenceProviderWithContext(aws.Context, *alexaforbusiness.DeleteConferenceProviderInput, ...request.Option) (*alexaforbusiness.DeleteConferenceProviderOutput, error)
DeleteConferenceProviderRequest(*alexaforbusiness.DeleteConferenceProviderInput) (*request.Request, *alexaforbusiness.DeleteConferenceProviderOutput)
DeleteContact(*alexaforbusiness.DeleteContactInput) (*alexaforbusiness.DeleteContactOutput, error)
DeleteContactWithContext(aws.Context, *alexaforbusiness.DeleteContactInput, ...request.Option) (*alexaforbusiness.DeleteContactOutput, error)
DeleteContactRequest(*alexaforbusiness.DeleteContactInput) (*request.Request, *alexaforbusiness.DeleteContactOutput)
DeleteDevice(*alexaforbusiness.DeleteDeviceInput) (*alexaforbusiness.DeleteDeviceOutput, error)
DeleteDeviceWithContext(aws.Context, *alexaforbusiness.DeleteDeviceInput, ...request.Option) (*alexaforbusiness.DeleteDeviceOutput, error)
DeleteDeviceRequest(*alexaforbusiness.DeleteDeviceInput) (*request.Request, *alexaforbusiness.DeleteDeviceOutput)
DeleteDeviceUsageData(*alexaforbusiness.DeleteDeviceUsageDataInput) (*alexaforbusiness.DeleteDeviceUsageDataOutput, error)
DeleteDeviceUsageDataWithContext(aws.Context, *alexaforbusiness.DeleteDeviceUsageDataInput, ...request.Option) (*alexaforbusiness.DeleteDeviceUsageDataOutput, error)
DeleteDeviceUsageDataRequest(*alexaforbusiness.DeleteDeviceUsageDataInput) (*request.Request, *alexaforbusiness.DeleteDeviceUsageDataOutput)
DeleteGatewayGroup(*alexaforbusiness.DeleteGatewayGroupInput) (*alexaforbusiness.DeleteGatewayGroupOutput, error)
DeleteGatewayGroupWithContext(aws.Context, *alexaforbusiness.DeleteGatewayGroupInput, ...request.Option) (*alexaforbusiness.DeleteGatewayGroupOutput, error)
DeleteGatewayGroupRequest(*alexaforbusiness.DeleteGatewayGroupInput) (*request.Request, *alexaforbusiness.DeleteGatewayGroupOutput)
DeleteNetworkProfile(*alexaforbusiness.DeleteNetworkProfileInput) (*alexaforbusiness.DeleteNetworkProfileOutput, error)
DeleteNetworkProfileWithContext(aws.Context, *alexaforbusiness.DeleteNetworkProfileInput, ...request.Option) (*alexaforbusiness.DeleteNetworkProfileOutput, error)
DeleteNetworkProfileRequest(*alexaforbusiness.DeleteNetworkProfileInput) (*request.Request, *alexaforbusiness.DeleteNetworkProfileOutput)
DeleteProfile(*alexaforbusiness.DeleteProfileInput) (*alexaforbusiness.DeleteProfileOutput, error)
DeleteProfileWithContext(aws.Context, *alexaforbusiness.DeleteProfileInput, ...request.Option) (*alexaforbusiness.DeleteProfileOutput, error)
DeleteProfileRequest(*alexaforbusiness.DeleteProfileInput) (*request.Request, *alexaforbusiness.DeleteProfileOutput)
DeleteRoom(*alexaforbusiness.DeleteRoomInput) (*alexaforbusiness.DeleteRoomOutput, error)
DeleteRoomWithContext(aws.Context, *alexaforbusiness.DeleteRoomInput, ...request.Option) (*alexaforbusiness.DeleteRoomOutput, error)
DeleteRoomRequest(*alexaforbusiness.DeleteRoomInput) (*request.Request, *alexaforbusiness.DeleteRoomOutput)
DeleteRoomSkillParameter(*alexaforbusiness.DeleteRoomSkillParameterInput) (*alexaforbusiness.DeleteRoomSkillParameterOutput, error)
DeleteRoomSkillParameterWithContext(aws.Context, *alexaforbusiness.DeleteRoomSkillParameterInput, ...request.Option) (*alexaforbusiness.DeleteRoomSkillParameterOutput, error)
DeleteRoomSkillParameterRequest(*alexaforbusiness.DeleteRoomSkillParameterInput) (*request.Request, *alexaforbusiness.DeleteRoomSkillParameterOutput)
DeleteSkillAuthorization(*alexaforbusiness.DeleteSkillAuthorizationInput) (*alexaforbusiness.DeleteSkillAuthorizationOutput, error)
DeleteSkillAuthorizationWithContext(aws.Context, *alexaforbusiness.DeleteSkillAuthorizationInput, ...request.Option) (*alexaforbusiness.DeleteSkillAuthorizationOutput, error)
DeleteSkillAuthorizationRequest(*alexaforbusiness.DeleteSkillAuthorizationInput) (*request.Request, *alexaforbusiness.DeleteSkillAuthorizationOutput)
DeleteSkillGroup(*alexaforbusiness.DeleteSkillGroupInput) (*alexaforbusiness.DeleteSkillGroupOutput, error)
DeleteSkillGroupWithContext(aws.Context, *alexaforbusiness.DeleteSkillGroupInput, ...request.Option) (*alexaforbusiness.DeleteSkillGroupOutput, error)
DeleteSkillGroupRequest(*alexaforbusiness.DeleteSkillGroupInput) (*request.Request, *alexaforbusiness.DeleteSkillGroupOutput)
DeleteUser(*alexaforbusiness.DeleteUserInput) (*alexaforbusiness.DeleteUserOutput, error)
DeleteUserWithContext(aws.Context, *alexaforbusiness.DeleteUserInput, ...request.Option) (*alexaforbusiness.DeleteUserOutput, error)
DeleteUserRequest(*alexaforbusiness.DeleteUserInput) (*request.Request, *alexaforbusiness.DeleteUserOutput)
DisassociateContactFromAddressBook(*alexaforbusiness.DisassociateContactFromAddressBookInput) (*alexaforbusiness.DisassociateContactFromAddressBookOutput, error)
DisassociateContactFromAddressBookWithContext(aws.Context, *alexaforbusiness.DisassociateContactFromAddressBookInput, ...request.Option) (*alexaforbusiness.DisassociateContactFromAddressBookOutput, error)
DisassociateContactFromAddressBookRequest(*alexaforbusiness.DisassociateContactFromAddressBookInput) (*request.Request, *alexaforbusiness.DisassociateContactFromAddressBookOutput)
DisassociateDeviceFromRoom(*alexaforbusiness.DisassociateDeviceFromRoomInput) (*alexaforbusiness.DisassociateDeviceFromRoomOutput, error)
DisassociateDeviceFromRoomWithContext(aws.Context, *alexaforbusiness.DisassociateDeviceFromRoomInput, ...request.Option) (*alexaforbusiness.DisassociateDeviceFromRoomOutput, error)
DisassociateDeviceFromRoomRequest(*alexaforbusiness.DisassociateDeviceFromRoomInput) (*request.Request, *alexaforbusiness.DisassociateDeviceFromRoomOutput)
DisassociateSkillFromSkillGroup(*alexaforbusiness.DisassociateSkillFromSkillGroupInput) (*alexaforbusiness.DisassociateSkillFromSkillGroupOutput, error)
DisassociateSkillFromSkillGroupWithContext(aws.Context, *alexaforbusiness.DisassociateSkillFromSkillGroupInput, ...request.Option) (*alexaforbusiness.DisassociateSkillFromSkillGroupOutput, error)
DisassociateSkillFromSkillGroupRequest(*alexaforbusiness.DisassociateSkillFromSkillGroupInput) (*request.Request, *alexaforbusiness.DisassociateSkillFromSkillGroupOutput)
DisassociateSkillFromUsers(*alexaforbusiness.DisassociateSkillFromUsersInput) (*alexaforbusiness.DisassociateSkillFromUsersOutput, error)
DisassociateSkillFromUsersWithContext(aws.Context, *alexaforbusiness.DisassociateSkillFromUsersInput, ...request.Option) (*alexaforbusiness.DisassociateSkillFromUsersOutput, error)
DisassociateSkillFromUsersRequest(*alexaforbusiness.DisassociateSkillFromUsersInput) (*request.Request, *alexaforbusiness.DisassociateSkillFromUsersOutput)
DisassociateSkillGroupFromRoom(*alexaforbusiness.DisassociateSkillGroupFromRoomInput) (*alexaforbusiness.DisassociateSkillGroupFromRoomOutput, error)
DisassociateSkillGroupFromRoomWithContext(aws.Context, *alexaforbusiness.DisassociateSkillGroupFromRoomInput, ...request.Option) (*alexaforbusiness.DisassociateSkillGroupFromRoomOutput, error)
DisassociateSkillGroupFromRoomRequest(*alexaforbusiness.DisassociateSkillGroupFromRoomInput) (*request.Request, *alexaforbusiness.DisassociateSkillGroupFromRoomOutput)
ForgetSmartHomeAppliances(*alexaforbusiness.ForgetSmartHomeAppliancesInput) (*alexaforbusiness.ForgetSmartHomeAppliancesOutput, error)
ForgetSmartHomeAppliancesWithContext(aws.Context, *alexaforbusiness.ForgetSmartHomeAppliancesInput, ...request.Option) (*alexaforbusiness.ForgetSmartHomeAppliancesOutput, error)
ForgetSmartHomeAppliancesRequest(*alexaforbusiness.ForgetSmartHomeAppliancesInput) (*request.Request, *alexaforbusiness.ForgetSmartHomeAppliancesOutput)
GetAddressBook(*alexaforbusiness.GetAddressBookInput) (*alexaforbusiness.GetAddressBookOutput, error)
GetAddressBookWithContext(aws.Context, *alexaforbusiness.GetAddressBookInput, ...request.Option) (*alexaforbusiness.GetAddressBookOutput, error)
GetAddressBookRequest(*alexaforbusiness.GetAddressBookInput) (*request.Request, *alexaforbusiness.GetAddressBookOutput)
GetConferencePreference(*alexaforbusiness.GetConferencePreferenceInput) (*alexaforbusiness.GetConferencePreferenceOutput, error)
GetConferencePreferenceWithContext(aws.Context, *alexaforbusiness.GetConferencePreferenceInput, ...request.Option) (*alexaforbusiness.GetConferencePreferenceOutput, error)
GetConferencePreferenceRequest(*alexaforbusiness.GetConferencePreferenceInput) (*request.Request, *alexaforbusiness.GetConferencePreferenceOutput)
GetConferenceProvider(*alexaforbusiness.GetConferenceProviderInput) (*alexaforbusiness.GetConferenceProviderOutput, error)
GetConferenceProviderWithContext(aws.Context, *alexaforbusiness.GetConferenceProviderInput, ...request.Option) (*alexaforbusiness.GetConferenceProviderOutput, error)
GetConferenceProviderRequest(*alexaforbusiness.GetConferenceProviderInput) (*request.Request, *alexaforbusiness.GetConferenceProviderOutput)
GetContact(*alexaforbusiness.GetContactInput) (*alexaforbusiness.GetContactOutput, error)
GetContactWithContext(aws.Context, *alexaforbusiness.GetContactInput, ...request.Option) (*alexaforbusiness.GetContactOutput, error)
GetContactRequest(*alexaforbusiness.GetContactInput) (*request.Request, *alexaforbusiness.GetContactOutput)
GetDevice(*alexaforbusiness.GetDeviceInput) (*alexaforbusiness.GetDeviceOutput, error)
GetDeviceWithContext(aws.Context, *alexaforbusiness.GetDeviceInput, ...request.Option) (*alexaforbusiness.GetDeviceOutput, error)
GetDeviceRequest(*alexaforbusiness.GetDeviceInput) (*request.Request, *alexaforbusiness.GetDeviceOutput)
GetGateway(*alexaforbusiness.GetGatewayInput) (*alexaforbusiness.GetGatewayOutput, error)
GetGatewayWithContext(aws.Context, *alexaforbusiness.GetGatewayInput, ...request.Option) (*alexaforbusiness.GetGatewayOutput, error)
GetGatewayRequest(*alexaforbusiness.GetGatewayInput) (*request.Request, *alexaforbusiness.GetGatewayOutput)
GetGatewayGroup(*alexaforbusiness.GetGatewayGroupInput) (*alexaforbusiness.GetGatewayGroupOutput, error)
GetGatewayGroupWithContext(aws.Context, *alexaforbusiness.GetGatewayGroupInput, ...request.Option) (*alexaforbusiness.GetGatewayGroupOutput, error)
GetGatewayGroupRequest(*alexaforbusiness.GetGatewayGroupInput) (*request.Request, *alexaforbusiness.GetGatewayGroupOutput)
GetInvitationConfiguration(*alexaforbusiness.GetInvitationConfigurationInput) (*alexaforbusiness.GetInvitationConfigurationOutput, error)
GetInvitationConfigurationWithContext(aws.Context, *alexaforbusiness.GetInvitationConfigurationInput, ...request.Option) (*alexaforbusiness.GetInvitationConfigurationOutput, error)
GetInvitationConfigurationRequest(*alexaforbusiness.GetInvitationConfigurationInput) (*request.Request, *alexaforbusiness.GetInvitationConfigurationOutput)
GetNetworkProfile(*alexaforbusiness.GetNetworkProfileInput) (*alexaforbusiness.GetNetworkProfileOutput, error)
GetNetworkProfileWithContext(aws.Context, *alexaforbusiness.GetNetworkProfileInput, ...request.Option) (*alexaforbusiness.GetNetworkProfileOutput, error)
GetNetworkProfileRequest(*alexaforbusiness.GetNetworkProfileInput) (*request.Request, *alexaforbusiness.GetNetworkProfileOutput)
GetProfile(*alexaforbusiness.GetProfileInput) (*alexaforbusiness.GetProfileOutput, error)
GetProfileWithContext(aws.Context, *alexaforbusiness.GetProfileInput, ...request.Option) (*alexaforbusiness.GetProfileOutput, error)
GetProfileRequest(*alexaforbusiness.GetProfileInput) (*request.Request, *alexaforbusiness.GetProfileOutput)
GetRoom(*alexaforbusiness.GetRoomInput) (*alexaforbusiness.GetRoomOutput, error)
GetRoomWithContext(aws.Context, *alexaforbusiness.GetRoomInput, ...request.Option) (*alexaforbusiness.GetRoomOutput, error)
GetRoomRequest(*alexaforbusiness.GetRoomInput) (*request.Request, *alexaforbusiness.GetRoomOutput)
GetRoomSkillParameter(*alexaforbusiness.GetRoomSkillParameterInput) (*alexaforbusiness.GetRoomSkillParameterOutput, error)
GetRoomSkillParameterWithContext(aws.Context, *alexaforbusiness.GetRoomSkillParameterInput, ...request.Option) (*alexaforbusiness.GetRoomSkillParameterOutput, error)
GetRoomSkillParameterRequest(*alexaforbusiness.GetRoomSkillParameterInput) (*request.Request, *alexaforbusiness.GetRoomSkillParameterOutput)
GetSkillGroup(*alexaforbusiness.GetSkillGroupInput) (*alexaforbusiness.GetSkillGroupOutput, error)
GetSkillGroupWithContext(aws.Context, *alexaforbusiness.GetSkillGroupInput, ...request.Option) (*alexaforbusiness.GetSkillGroupOutput, error)
GetSkillGroupRequest(*alexaforbusiness.GetSkillGroupInput) (*request.Request, *alexaforbusiness.GetSkillGroupOutput)
ListBusinessReportSchedules(*alexaforbusiness.ListBusinessReportSchedulesInput) (*alexaforbusiness.ListBusinessReportSchedulesOutput, error)
ListBusinessReportSchedulesWithContext(aws.Context, *alexaforbusiness.ListBusinessReportSchedulesInput, ...request.Option) (*alexaforbusiness.ListBusinessReportSchedulesOutput, error)
ListBusinessReportSchedulesRequest(*alexaforbusiness.ListBusinessReportSchedulesInput) (*request.Request, *alexaforbusiness.ListBusinessReportSchedulesOutput)
ListBusinessReportSchedulesPages(*alexaforbusiness.ListBusinessReportSchedulesInput, func(*alexaforbusiness.ListBusinessReportSchedulesOutput, bool) bool) error
ListBusinessReportSchedulesPagesWithContext(aws.Context, *alexaforbusiness.ListBusinessReportSchedulesInput, func(*alexaforbusiness.ListBusinessReportSchedulesOutput, bool) bool, ...request.Option) error
ListConferenceProviders(*alexaforbusiness.ListConferenceProvidersInput) (*alexaforbusiness.ListConferenceProvidersOutput, error)
ListConferenceProvidersWithContext(aws.Context, *alexaforbusiness.ListConferenceProvidersInput, ...request.Option) (*alexaforbusiness.ListConferenceProvidersOutput, error)
ListConferenceProvidersRequest(*alexaforbusiness.ListConferenceProvidersInput) (*request.Request, *alexaforbusiness.ListConferenceProvidersOutput)
ListConferenceProvidersPages(*alexaforbusiness.ListConferenceProvidersInput, func(*alexaforbusiness.ListConferenceProvidersOutput, bool) bool) error
ListConferenceProvidersPagesWithContext(aws.Context, *alexaforbusiness.ListConferenceProvidersInput, func(*alexaforbusiness.ListConferenceProvidersOutput, bool) bool, ...request.Option) error
ListDeviceEvents(*alexaforbusiness.ListDeviceEventsInput) (*alexaforbusiness.ListDeviceEventsOutput, error)
ListDeviceEventsWithContext(aws.Context, *alexaforbusiness.ListDeviceEventsInput, ...request.Option) (*alexaforbusiness.ListDeviceEventsOutput, error)
ListDeviceEventsRequest(*alexaforbusiness.ListDeviceEventsInput) (*request.Request, *alexaforbusiness.ListDeviceEventsOutput)
ListDeviceEventsPages(*alexaforbusiness.ListDeviceEventsInput, func(*alexaforbusiness.ListDeviceEventsOutput, bool) bool) error
ListDeviceEventsPagesWithContext(aws.Context, *alexaforbusiness.ListDeviceEventsInput, func(*alexaforbusiness.ListDeviceEventsOutput, bool) bool, ...request.Option) error
ListGatewayGroups(*alexaforbusiness.ListGatewayGroupsInput) (*alexaforbusiness.ListGatewayGroupsOutput, error)
ListGatewayGroupsWithContext(aws.Context, *alexaforbusiness.ListGatewayGroupsInput, ...request.Option) (*alexaforbusiness.ListGatewayGroupsOutput, error)
ListGatewayGroupsRequest(*alexaforbusiness.ListGatewayGroupsInput) (*request.Request, *alexaforbusiness.ListGatewayGroupsOutput)
ListGatewayGroupsPages(*alexaforbusiness.ListGatewayGroupsInput, func(*alexaforbusiness.ListGatewayGroupsOutput, bool) bool) error
ListGatewayGroupsPagesWithContext(aws.Context, *alexaforbusiness.ListGatewayGroupsInput, func(*alexaforbusiness.ListGatewayGroupsOutput, bool) bool, ...request.Option) error
ListGateways(*alexaforbusiness.ListGatewaysInput) (*alexaforbusiness.ListGatewaysOutput, error)
ListGatewaysWithContext(aws.Context, *alexaforbusiness.ListGatewaysInput, ...request.Option) (*alexaforbusiness.ListGatewaysOutput, error)
ListGatewaysRequest(*alexaforbusiness.ListGatewaysInput) (*request.Request, *alexaforbusiness.ListGatewaysOutput)
ListGatewaysPages(*alexaforbusiness.ListGatewaysInput, func(*alexaforbusiness.ListGatewaysOutput, bool) bool) error
ListGatewaysPagesWithContext(aws.Context, *alexaforbusiness.ListGatewaysInput, func(*alexaforbusiness.ListGatewaysOutput, bool) bool, ...request.Option) error
ListSkills(*alexaforbusiness.ListSkillsInput) (*alexaforbusiness.ListSkillsOutput, error)
ListSkillsWithContext(aws.Context, *alexaforbusiness.ListSkillsInput, ...request.Option) (*alexaforbusiness.ListSkillsOutput, error)
ListSkillsRequest(*alexaforbusiness.ListSkillsInput) (*request.Request, *alexaforbusiness.ListSkillsOutput)
ListSkillsPages(*alexaforbusiness.ListSkillsInput, func(*alexaforbusiness.ListSkillsOutput, bool) bool) error
ListSkillsPagesWithContext(aws.Context, *alexaforbusiness.ListSkillsInput, func(*alexaforbusiness.ListSkillsOutput, bool) bool, ...request.Option) error
ListSkillsStoreCategories(*alexaforbusiness.ListSkillsStoreCategoriesInput) (*alexaforbusiness.ListSkillsStoreCategoriesOutput, error)
ListSkillsStoreCategoriesWithContext(aws.Context, *alexaforbusiness.ListSkillsStoreCategoriesInput, ...request.Option) (*alexaforbusiness.ListSkillsStoreCategoriesOutput, error)
ListSkillsStoreCategoriesRequest(*alexaforbusiness.ListSkillsStoreCategoriesInput) (*request.Request, *alexaforbusiness.ListSkillsStoreCategoriesOutput)
ListSkillsStoreCategoriesPages(*alexaforbusiness.ListSkillsStoreCategoriesInput, func(*alexaforbusiness.ListSkillsStoreCategoriesOutput, bool) bool) error
ListSkillsStoreCategoriesPagesWithContext(aws.Context, *alexaforbusiness.ListSkillsStoreCategoriesInput, func(*alexaforbusiness.ListSkillsStoreCategoriesOutput, bool) bool, ...request.Option) error
ListSkillsStoreSkillsByCategory(*alexaforbusiness.ListSkillsStoreSkillsByCategoryInput) (*alexaforbusiness.ListSkillsStoreSkillsByCategoryOutput, error)
ListSkillsStoreSkillsByCategoryWithContext(aws.Context, *alexaforbusiness.ListSkillsStoreSkillsByCategoryInput, ...request.Option) (*alexaforbusiness.ListSkillsStoreSkillsByCategoryOutput, error)
ListSkillsStoreSkillsByCategoryRequest(*alexaforbusiness.ListSkillsStoreSkillsByCategoryInput) (*request.Request, *alexaforbusiness.ListSkillsStoreSkillsByCategoryOutput)
ListSkillsStoreSkillsByCategoryPages(*alexaforbusiness.ListSkillsStoreSkillsByCategoryInput, func(*alexaforbusiness.ListSkillsStoreSkillsByCategoryOutput, bool) bool) error
ListSkillsStoreSkillsByCategoryPagesWithContext(aws.Context, *alexaforbusiness.ListSkillsStoreSkillsByCategoryInput, func(*alexaforbusiness.ListSkillsStoreSkillsByCategoryOutput, bool) bool, ...request.Option) error
ListSmartHomeAppliances(*alexaforbusiness.ListSmartHomeAppliancesInput) (*alexaforbusiness.ListSmartHomeAppliancesOutput, error)
ListSmartHomeAppliancesWithContext(aws.Context, *alexaforbusiness.ListSmartHomeAppliancesInput, ...request.Option) (*alexaforbusiness.ListSmartHomeAppliancesOutput, error)
ListSmartHomeAppliancesRequest(*alexaforbusiness.ListSmartHomeAppliancesInput) (*request.Request, *alexaforbusiness.ListSmartHomeAppliancesOutput)
ListSmartHomeAppliancesPages(*alexaforbusiness.ListSmartHomeAppliancesInput, func(*alexaforbusiness.ListSmartHomeAppliancesOutput, bool) bool) error
ListSmartHomeAppliancesPagesWithContext(aws.Context, *alexaforbusiness.ListSmartHomeAppliancesInput, func(*alexaforbusiness.ListSmartHomeAppliancesOutput, bool) bool, ...request.Option) error
ListTags(*alexaforbusiness.ListTagsInput) (*alexaforbusiness.ListTagsOutput, error)
ListTagsWithContext(aws.Context, *alexaforbusiness.ListTagsInput, ...request.Option) (*alexaforbusiness.ListTagsOutput, error)
ListTagsRequest(*alexaforbusiness.ListTagsInput) (*request.Request, *alexaforbusiness.ListTagsOutput)
ListTagsPages(*alexaforbusiness.ListTagsInput, func(*alexaforbusiness.ListTagsOutput, bool) bool) error
ListTagsPagesWithContext(aws.Context, *alexaforbusiness.ListTagsInput, func(*alexaforbusiness.ListTagsOutput, bool) bool, ...request.Option) error
PutConferencePreference(*alexaforbusiness.PutConferencePreferenceInput) (*alexaforbusiness.PutConferencePreferenceOutput, error)
PutConferencePreferenceWithContext(aws.Context, *alexaforbusiness.PutConferencePreferenceInput, ...request.Option) (*alexaforbusiness.PutConferencePreferenceOutput, error)
PutConferencePreferenceRequest(*alexaforbusiness.PutConferencePreferenceInput) (*request.Request, *alexaforbusiness.PutConferencePreferenceOutput)
PutInvitationConfiguration(*alexaforbusiness.PutInvitationConfigurationInput) (*alexaforbusiness.PutInvitationConfigurationOutput, error)
PutInvitationConfigurationWithContext(aws.Context, *alexaforbusiness.PutInvitationConfigurationInput, ...request.Option) (*alexaforbusiness.PutInvitationConfigurationOutput, error)
PutInvitationConfigurationRequest(*alexaforbusiness.PutInvitationConfigurationInput) (*request.Request, *alexaforbusiness.PutInvitationConfigurationOutput)
PutRoomSkillParameter(*alexaforbusiness.PutRoomSkillParameterInput) (*alexaforbusiness.PutRoomSkillParameterOutput, error)
PutRoomSkillParameterWithContext(aws.Context, *alexaforbusiness.PutRoomSkillParameterInput, ...request.Option) (*alexaforbusiness.PutRoomSkillParameterOutput, error)
PutRoomSkillParameterRequest(*alexaforbusiness.PutRoomSkillParameterInput) (*request.Request, *alexaforbusiness.PutRoomSkillParameterOutput)
PutSkillAuthorization(*alexaforbusiness.PutSkillAuthorizationInput) (*alexaforbusiness.PutSkillAuthorizationOutput, error)
PutSkillAuthorizationWithContext(aws.Context, *alexaforbusiness.PutSkillAuthorizationInput, ...request.Option) (*alexaforbusiness.PutSkillAuthorizationOutput, error)
PutSkillAuthorizationRequest(*alexaforbusiness.PutSkillAuthorizationInput) (*request.Request, *alexaforbusiness.PutSkillAuthorizationOutput)
RegisterAVSDevice(*alexaforbusiness.RegisterAVSDeviceInput) (*alexaforbusiness.RegisterAVSDeviceOutput, error)
RegisterAVSDeviceWithContext(aws.Context, *alexaforbusiness.RegisterAVSDeviceInput, ...request.Option) (*alexaforbusiness.RegisterAVSDeviceOutput, error)
RegisterAVSDeviceRequest(*alexaforbusiness.RegisterAVSDeviceInput) (*request.Request, *alexaforbusiness.RegisterAVSDeviceOutput)
RejectSkill(*alexaforbusiness.RejectSkillInput) (*alexaforbusiness.RejectSkillOutput, error)
RejectSkillWithContext(aws.Context, *alexaforbusiness.RejectSkillInput, ...request.Option) (*alexaforbusiness.RejectSkillOutput, error)
RejectSkillRequest(*alexaforbusiness.RejectSkillInput) (*request.Request, *alexaforbusiness.RejectSkillOutput)
ResolveRoom(*alexaforbusiness.ResolveRoomInput) (*alexaforbusiness.ResolveRoomOutput, error)
ResolveRoomWithContext(aws.Context, *alexaforbusiness.ResolveRoomInput, ...request.Option) (*alexaforbusiness.ResolveRoomOutput, error)
ResolveRoomRequest(*alexaforbusiness.ResolveRoomInput) (*request.Request, *alexaforbusiness.ResolveRoomOutput)
RevokeInvitation(*alexaforbusiness.RevokeInvitationInput) (*alexaforbusiness.RevokeInvitationOutput, error)
RevokeInvitationWithContext(aws.Context, *alexaforbusiness.RevokeInvitationInput, ...request.Option) (*alexaforbusiness.RevokeInvitationOutput, error)
RevokeInvitationRequest(*alexaforbusiness.RevokeInvitationInput) (*request.Request, *alexaforbusiness.RevokeInvitationOutput)
SearchAddressBooks(*alexaforbusiness.SearchAddressBooksInput) (*alexaforbusiness.SearchAddressBooksOutput, error)
SearchAddressBooksWithContext(aws.Context, *alexaforbusiness.SearchAddressBooksInput, ...request.Option) (*alexaforbusiness.SearchAddressBooksOutput, error)
SearchAddressBooksRequest(*alexaforbusiness.SearchAddressBooksInput) (*request.Request, *alexaforbusiness.SearchAddressBooksOutput)
SearchAddressBooksPages(*alexaforbusiness.SearchAddressBooksInput, func(*alexaforbusiness.SearchAddressBooksOutput, bool) bool) error
SearchAddressBooksPagesWithContext(aws.Context, *alexaforbusiness.SearchAddressBooksInput, func(*alexaforbusiness.SearchAddressBooksOutput, bool) bool, ...request.Option) error
SearchContacts(*alexaforbusiness.SearchContactsInput) (*alexaforbusiness.SearchContactsOutput, error)
SearchContactsWithContext(aws.Context, *alexaforbusiness.SearchContactsInput, ...request.Option) (*alexaforbusiness.SearchContactsOutput, error)
SearchContactsRequest(*alexaforbusiness.SearchContactsInput) (*request.Request, *alexaforbusiness.SearchContactsOutput)
SearchContactsPages(*alexaforbusiness.SearchContactsInput, func(*alexaforbusiness.SearchContactsOutput, bool) bool) error
SearchContactsPagesWithContext(aws.Context, *alexaforbusiness.SearchContactsInput, func(*alexaforbusiness.SearchContactsOutput, bool) bool, ...request.Option) error
SearchDevices(*alexaforbusiness.SearchDevicesInput) (*alexaforbusiness.SearchDevicesOutput, error)
SearchDevicesWithContext(aws.Context, *alexaforbusiness.SearchDevicesInput, ...request.Option) (*alexaforbusiness.SearchDevicesOutput, error)
SearchDevicesRequest(*alexaforbusiness.SearchDevicesInput) (*request.Request, *alexaforbusiness.SearchDevicesOutput)
SearchDevicesPages(*alexaforbusiness.SearchDevicesInput, func(*alexaforbusiness.SearchDevicesOutput, bool) bool) error
SearchDevicesPagesWithContext(aws.Context, *alexaforbusiness.SearchDevicesInput, func(*alexaforbusiness.SearchDevicesOutput, bool) bool, ...request.Option) error
SearchNetworkProfiles(*alexaforbusiness.SearchNetworkProfilesInput) (*alexaforbusiness.SearchNetworkProfilesOutput, error)
SearchNetworkProfilesWithContext(aws.Context, *alexaforbusiness.SearchNetworkProfilesInput, ...request.Option) (*alexaforbusiness.SearchNetworkProfilesOutput, error)
SearchNetworkProfilesRequest(*alexaforbusiness.SearchNetworkProfilesInput) (*request.Request, *alexaforbusiness.SearchNetworkProfilesOutput)
SearchNetworkProfilesPages(*alexaforbusiness.SearchNetworkProfilesInput, func(*alexaforbusiness.SearchNetworkProfilesOutput, bool) bool) error
SearchNetworkProfilesPagesWithContext(aws.Context, *alexaforbusiness.SearchNetworkProfilesInput, func(*alexaforbusiness.SearchNetworkProfilesOutput, bool) bool, ...request.Option) error
SearchProfiles(*alexaforbusiness.SearchProfilesInput) (*alexaforbusiness.SearchProfilesOutput, error)
SearchProfilesWithContext(aws.Context, *alexaforbusiness.SearchProfilesInput, ...request.Option) (*alexaforbusiness.SearchProfilesOutput, error)
SearchProfilesRequest(*alexaforbusiness.SearchProfilesInput) (*request.Request, *alexaforbusiness.SearchProfilesOutput)
SearchProfilesPages(*alexaforbusiness.SearchProfilesInput, func(*alexaforbusiness.SearchProfilesOutput, bool) bool) error
SearchProfilesPagesWithContext(aws.Context, *alexaforbusiness.SearchProfilesInput, func(*alexaforbusiness.SearchProfilesOutput, bool) bool, ...request.Option) error
SearchRooms(*alexaforbusiness.SearchRoomsInput) (*alexaforbusiness.SearchRoomsOutput, error)
SearchRoomsWithContext(aws.Context, *alexaforbusiness.SearchRoomsInput, ...request.Option) (*alexaforbusiness.SearchRoomsOutput, error)
SearchRoomsRequest(*alexaforbusiness.SearchRoomsInput) (*request.Request, *alexaforbusiness.SearchRoomsOutput)
SearchRoomsPages(*alexaforbusiness.SearchRoomsInput, func(*alexaforbusiness.SearchRoomsOutput, bool) bool) error
SearchRoomsPagesWithContext(aws.Context, *alexaforbusiness.SearchRoomsInput, func(*alexaforbusiness.SearchRoomsOutput, bool) bool, ...request.Option) error
SearchSkillGroups(*alexaforbusiness.SearchSkillGroupsInput) (*alexaforbusiness.SearchSkillGroupsOutput, error)
SearchSkillGroupsWithContext(aws.Context, *alexaforbusiness.SearchSkillGroupsInput, ...request.Option) (*alexaforbusiness.SearchSkillGroupsOutput, error)
SearchSkillGroupsRequest(*alexaforbusiness.SearchSkillGroupsInput) (*request.Request, *alexaforbusiness.SearchSkillGroupsOutput)
SearchSkillGroupsPages(*alexaforbusiness.SearchSkillGroupsInput, func(*alexaforbusiness.SearchSkillGroupsOutput, bool) bool) error
SearchSkillGroupsPagesWithContext(aws.Context, *alexaforbusiness.SearchSkillGroupsInput, func(*alexaforbusiness.SearchSkillGroupsOutput, bool) bool, ...request.Option) error
SearchUsers(*alexaforbusiness.SearchUsersInput) (*alexaforbusiness.SearchUsersOutput, error)
SearchUsersWithContext(aws.Context, *alexaforbusiness.SearchUsersInput, ...request.Option) (*alexaforbusiness.SearchUsersOutput, error)
SearchUsersRequest(*alexaforbusiness.SearchUsersInput) (*request.Request, *alexaforbusiness.SearchUsersOutput)
SearchUsersPages(*alexaforbusiness.SearchUsersInput, func(*alexaforbusiness.SearchUsersOutput, bool) bool) error
SearchUsersPagesWithContext(aws.Context, *alexaforbusiness.SearchUsersInput, func(*alexaforbusiness.SearchUsersOutput, bool) bool, ...request.Option) error
SendAnnouncement(*alexaforbusiness.SendAnnouncementInput) (*alexaforbusiness.SendAnnouncementOutput, error)
SendAnnouncementWithContext(aws.Context, *alexaforbusiness.SendAnnouncementInput, ...request.Option) (*alexaforbusiness.SendAnnouncementOutput, error)
SendAnnouncementRequest(*alexaforbusiness.SendAnnouncementInput) (*request.Request, *alexaforbusiness.SendAnnouncementOutput)
SendInvitation(*alexaforbusiness.SendInvitationInput) (*alexaforbusiness.SendInvitationOutput, error)
SendInvitationWithContext(aws.Context, *alexaforbusiness.SendInvitationInput, ...request.Option) (*alexaforbusiness.SendInvitationOutput, error)
SendInvitationRequest(*alexaforbusiness.SendInvitationInput) (*request.Request, *alexaforbusiness.SendInvitationOutput)
StartDeviceSync(*alexaforbusiness.StartDeviceSyncInput) (*alexaforbusiness.StartDeviceSyncOutput, error)
StartDeviceSyncWithContext(aws.Context, *alexaforbusiness.StartDeviceSyncInput, ...request.Option) (*alexaforbusiness.StartDeviceSyncOutput, error)
StartDeviceSyncRequest(*alexaforbusiness.StartDeviceSyncInput) (*request.Request, *alexaforbusiness.StartDeviceSyncOutput)
StartSmartHomeApplianceDiscovery(*alexaforbusiness.StartSmartHomeApplianceDiscoveryInput) (*alexaforbusiness.StartSmartHomeApplianceDiscoveryOutput, error)
StartSmartHomeApplianceDiscoveryWithContext(aws.Context, *alexaforbusiness.StartSmartHomeApplianceDiscoveryInput, ...request.Option) (*alexaforbusiness.StartSmartHomeApplianceDiscoveryOutput, error)
StartSmartHomeApplianceDiscoveryRequest(*alexaforbusiness.StartSmartHomeApplianceDiscoveryInput) (*request.Request, *alexaforbusiness.StartSmartHomeApplianceDiscoveryOutput)
TagResource(*alexaforbusiness.TagResourceInput) (*alexaforbusiness.TagResourceOutput, error)
TagResourceWithContext(aws.Context, *alexaforbusiness.TagResourceInput, ...request.Option) (*alexaforbusiness.TagResourceOutput, error)
TagResourceRequest(*alexaforbusiness.TagResourceInput) (*request.Request, *alexaforbusiness.TagResourceOutput)
UntagResource(*alexaforbusiness.UntagResourceInput) (*alexaforbusiness.UntagResourceOutput, error)
UntagResourceWithContext(aws.Context, *alexaforbusiness.UntagResourceInput, ...request.Option) (*alexaforbusiness.UntagResourceOutput, error)
UntagResourceRequest(*alexaforbusiness.UntagResourceInput) (*request.Request, *alexaforbusiness.UntagResourceOutput)
UpdateAddressBook(*alexaforbusiness.UpdateAddressBookInput) (*alexaforbusiness.UpdateAddressBookOutput, error)
UpdateAddressBookWithContext(aws.Context, *alexaforbusiness.UpdateAddressBookInput, ...request.Option) (*alexaforbusiness.UpdateAddressBookOutput, error)
UpdateAddressBookRequest(*alexaforbusiness.UpdateAddressBookInput) (*request.Request, *alexaforbusiness.UpdateAddressBookOutput)
UpdateBusinessReportSchedule(*alexaforbusiness.UpdateBusinessReportScheduleInput) (*alexaforbusiness.UpdateBusinessReportScheduleOutput, error)
UpdateBusinessReportScheduleWithContext(aws.Context, *alexaforbusiness.UpdateBusinessReportScheduleInput, ...request.Option) (*alexaforbusiness.UpdateBusinessReportScheduleOutput, error)
UpdateBusinessReportScheduleRequest(*alexaforbusiness.UpdateBusinessReportScheduleInput) (*request.Request, *alexaforbusiness.UpdateBusinessReportScheduleOutput)
UpdateConferenceProvider(*alexaforbusiness.UpdateConferenceProviderInput) (*alexaforbusiness.UpdateConferenceProviderOutput, error)
UpdateConferenceProviderWithContext(aws.Context, *alexaforbusiness.UpdateConferenceProviderInput, ...request.Option) (*alexaforbusiness.UpdateConferenceProviderOutput, error)
UpdateConferenceProviderRequest(*alexaforbusiness.UpdateConferenceProviderInput) (*request.Request, *alexaforbusiness.UpdateConferenceProviderOutput)
UpdateContact(*alexaforbusiness.UpdateContactInput) (*alexaforbusiness.UpdateContactOutput, error)
UpdateContactWithContext(aws.Context, *alexaforbusiness.UpdateContactInput, ...request.Option) (*alexaforbusiness.UpdateContactOutput, error)
UpdateContactRequest(*alexaforbusiness.UpdateContactInput) (*request.Request, *alexaforbusiness.UpdateContactOutput)
UpdateDevice(*alexaforbusiness.UpdateDeviceInput) (*alexaforbusiness.UpdateDeviceOutput, error)
UpdateDeviceWithContext(aws.Context, *alexaforbusiness.UpdateDeviceInput, ...request.Option) (*alexaforbusiness.UpdateDeviceOutput, error)
UpdateDeviceRequest(*alexaforbusiness.UpdateDeviceInput) (*request.Request, *alexaforbusiness.UpdateDeviceOutput)
UpdateGateway(*alexaforbusiness.UpdateGatewayInput) (*alexaforbusiness.UpdateGatewayOutput, error)
UpdateGatewayWithContext(aws.Context, *alexaforbusiness.UpdateGatewayInput, ...request.Option) (*alexaforbusiness.UpdateGatewayOutput, error)
UpdateGatewayRequest(*alexaforbusiness.UpdateGatewayInput) (*request.Request, *alexaforbusiness.UpdateGatewayOutput)
UpdateGatewayGroup(*alexaforbusiness.UpdateGatewayGroupInput) (*alexaforbusiness.UpdateGatewayGroupOutput, error)
UpdateGatewayGroupWithContext(aws.Context, *alexaforbusiness.UpdateGatewayGroupInput, ...request.Option) (*alexaforbusiness.UpdateGatewayGroupOutput, error)
UpdateGatewayGroupRequest(*alexaforbusiness.UpdateGatewayGroupInput) (*request.Request, *alexaforbusiness.UpdateGatewayGroupOutput)
UpdateNetworkProfile(*alexaforbusiness.UpdateNetworkProfileInput) (*alexaforbusiness.UpdateNetworkProfileOutput, error)
UpdateNetworkProfileWithContext(aws.Context, *alexaforbusiness.UpdateNetworkProfileInput, ...request.Option) (*alexaforbusiness.UpdateNetworkProfileOutput, error)
UpdateNetworkProfileRequest(*alexaforbusiness.UpdateNetworkProfileInput) (*request.Request, *alexaforbusiness.UpdateNetworkProfileOutput)
UpdateProfile(*alexaforbusiness.UpdateProfileInput) (*alexaforbusiness.UpdateProfileOutput, error)
UpdateProfileWithContext(aws.Context, *alexaforbusiness.UpdateProfileInput, ...request.Option) (*alexaforbusiness.UpdateProfileOutput, error)
UpdateProfileRequest(*alexaforbusiness.UpdateProfileInput) (*request.Request, *alexaforbusiness.UpdateProfileOutput)
UpdateRoom(*alexaforbusiness.UpdateRoomInput) (*alexaforbusiness.UpdateRoomOutput, error)
UpdateRoomWithContext(aws.Context, *alexaforbusiness.UpdateRoomInput, ...request.Option) (*alexaforbusiness.UpdateRoomOutput, error)
UpdateRoomRequest(*alexaforbusiness.UpdateRoomInput) (*request.Request, *alexaforbusiness.UpdateRoomOutput)
UpdateSkillGroup(*alexaforbusiness.UpdateSkillGroupInput) (*alexaforbusiness.UpdateSkillGroupOutput, error)
UpdateSkillGroupWithContext(aws.Context, *alexaforbusiness.UpdateSkillGroupInput, ...request.Option) (*alexaforbusiness.UpdateSkillGroupOutput, error)
UpdateSkillGroupRequest(*alexaforbusiness.UpdateSkillGroupInput) (*request.Request, *alexaforbusiness.UpdateSkillGroupOutput)
}
var _ AlexaForBusinessAPI = (*alexaforbusiness.AlexaForBusiness)(nil)
| 491 |
session-manager-plugin | aws | Go | // Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
package amplify
import (
"fmt"
"time"
"github.com/aws/aws-sdk-go/aws"
"github.com/aws/aws-sdk-go/aws/awsutil"
"github.com/aws/aws-sdk-go/aws/request"
"github.com/aws/aws-sdk-go/private/protocol"
"github.com/aws/aws-sdk-go/private/protocol/restjson"
)
const opCreateApp = "CreateApp"
// CreateAppRequest generates a "aws/request.Request" representing the
// client's request for the CreateApp 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 CreateApp for more information on using the CreateApp
// 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 CreateAppRequest method.
// req, resp := client.CreateAppRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/amplify-2017-07-25/CreateApp
func (c *Amplify) CreateAppRequest(input *CreateAppInput) (req *request.Request, output *CreateAppOutput) {
op := &request.Operation{
Name: opCreateApp,
HTTPMethod: "POST",
HTTPPath: "/apps",
}
if input == nil {
input = &CreateAppInput{}
}
output = &CreateAppOutput{}
req = c.newRequest(op, input, output)
return
}
// CreateApp API operation for AWS Amplify.
//
// Creates a new Amplify app.
//
// 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 Amplify's
// API operation CreateApp for usage and error information.
//
// Returned Error Types:
// * BadRequestException
// A request contains unexpected data.
//
// * UnauthorizedException
// An operation failed due to a lack of access.
//
// * InternalFailureException
// The service failed to perform an operation due to an internal issue.
//
// * LimitExceededException
// A resource could not be created because service quotas were exceeded.
//
// * DependentServiceFailureException
// An operation failed because a dependent service threw an exception.
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/amplify-2017-07-25/CreateApp
func (c *Amplify) CreateApp(input *CreateAppInput) (*CreateAppOutput, error) {
req, out := c.CreateAppRequest(input)
return out, req.Send()
}
// CreateAppWithContext is the same as CreateApp with the addition of
// the ability to pass a context and additional request options.
//
// See CreateApp for details on how to use this API operation.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
func (c *Amplify) CreateAppWithContext(ctx aws.Context, input *CreateAppInput, opts ...request.Option) (*CreateAppOutput, error) {
req, out := c.CreateAppRequest(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
const opCreateBackendEnvironment = "CreateBackendEnvironment"
// CreateBackendEnvironmentRequest generates a "aws/request.Request" representing the
// client's request for the CreateBackendEnvironment 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 CreateBackendEnvironment for more information on using the CreateBackendEnvironment
// 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 CreateBackendEnvironmentRequest method.
// req, resp := client.CreateBackendEnvironmentRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/amplify-2017-07-25/CreateBackendEnvironment
func (c *Amplify) CreateBackendEnvironmentRequest(input *CreateBackendEnvironmentInput) (req *request.Request, output *CreateBackendEnvironmentOutput) {
op := &request.Operation{
Name: opCreateBackendEnvironment,
HTTPMethod: "POST",
HTTPPath: "/apps/{appId}/backendenvironments",
}
if input == nil {
input = &CreateBackendEnvironmentInput{}
}
output = &CreateBackendEnvironmentOutput{}
req = c.newRequest(op, input, output)
return
}
// CreateBackendEnvironment API operation for AWS Amplify.
//
// Creates a new backend environment for an Amplify app.
//
// 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 Amplify's
// API operation CreateBackendEnvironment for usage and error information.
//
// Returned Error Types:
// * BadRequestException
// A request contains unexpected data.
//
// * UnauthorizedException
// An operation failed due to a lack of access.
//
// * NotFoundException
// An entity was not found during an operation.
//
// * InternalFailureException
// The service failed to perform an operation due to an internal issue.
//
// * LimitExceededException
// A resource could not be created because service quotas were exceeded.
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/amplify-2017-07-25/CreateBackendEnvironment
func (c *Amplify) CreateBackendEnvironment(input *CreateBackendEnvironmentInput) (*CreateBackendEnvironmentOutput, error) {
req, out := c.CreateBackendEnvironmentRequest(input)
return out, req.Send()
}
// CreateBackendEnvironmentWithContext is the same as CreateBackendEnvironment with the addition of
// the ability to pass a context and additional request options.
//
// See CreateBackendEnvironment for details on how to use this API operation.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
func (c *Amplify) CreateBackendEnvironmentWithContext(ctx aws.Context, input *CreateBackendEnvironmentInput, opts ...request.Option) (*CreateBackendEnvironmentOutput, error) {
req, out := c.CreateBackendEnvironmentRequest(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
const opCreateBranch = "CreateBranch"
// CreateBranchRequest generates a "aws/request.Request" representing the
// client's request for the CreateBranch 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 CreateBranch for more information on using the CreateBranch
// 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 CreateBranchRequest method.
// req, resp := client.CreateBranchRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/amplify-2017-07-25/CreateBranch
func (c *Amplify) CreateBranchRequest(input *CreateBranchInput) (req *request.Request, output *CreateBranchOutput) {
op := &request.Operation{
Name: opCreateBranch,
HTTPMethod: "POST",
HTTPPath: "/apps/{appId}/branches",
}
if input == nil {
input = &CreateBranchInput{}
}
output = &CreateBranchOutput{}
req = c.newRequest(op, input, output)
return
}
// CreateBranch API operation for AWS Amplify.
//
// Creates a new branch for an Amplify app.
//
// 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 Amplify's
// API operation CreateBranch for usage and error information.
//
// Returned Error Types:
// * BadRequestException
// A request contains unexpected data.
//
// * UnauthorizedException
// An operation failed due to a lack of access.
//
// * NotFoundException
// An entity was not found during an operation.
//
// * InternalFailureException
// The service failed to perform an operation due to an internal issue.
//
// * LimitExceededException
// A resource could not be created because service quotas were exceeded.
//
// * DependentServiceFailureException
// An operation failed because a dependent service threw an exception.
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/amplify-2017-07-25/CreateBranch
func (c *Amplify) CreateBranch(input *CreateBranchInput) (*CreateBranchOutput, error) {
req, out := c.CreateBranchRequest(input)
return out, req.Send()
}
// CreateBranchWithContext is the same as CreateBranch with the addition of
// the ability to pass a context and additional request options.
//
// See CreateBranch for details on how to use this API operation.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
func (c *Amplify) CreateBranchWithContext(ctx aws.Context, input *CreateBranchInput, opts ...request.Option) (*CreateBranchOutput, error) {
req, out := c.CreateBranchRequest(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
const opCreateDeployment = "CreateDeployment"
// CreateDeploymentRequest generates a "aws/request.Request" representing the
// client's request for the CreateDeployment 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 CreateDeployment for more information on using the CreateDeployment
// 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 CreateDeploymentRequest method.
// req, resp := client.CreateDeploymentRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/amplify-2017-07-25/CreateDeployment
func (c *Amplify) CreateDeploymentRequest(input *CreateDeploymentInput) (req *request.Request, output *CreateDeploymentOutput) {
op := &request.Operation{
Name: opCreateDeployment,
HTTPMethod: "POST",
HTTPPath: "/apps/{appId}/branches/{branchName}/deployments",
}
if input == nil {
input = &CreateDeploymentInput{}
}
output = &CreateDeploymentOutput{}
req = c.newRequest(op, input, output)
return
}
// CreateDeployment API operation for AWS Amplify.
//
// Creates a deployment for a manually deployed Amplify app. Manually deployed
// apps are not connected to a repository.
//
// 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 Amplify's
// API operation CreateDeployment for usage and error information.
//
// Returned Error Types:
// * BadRequestException
// A request contains unexpected data.
//
// * UnauthorizedException
// An operation failed due to a lack of access.
//
// * InternalFailureException
// The service failed to perform an operation due to an internal issue.
//
// * LimitExceededException
// A resource could not be created because service quotas were exceeded.
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/amplify-2017-07-25/CreateDeployment
func (c *Amplify) CreateDeployment(input *CreateDeploymentInput) (*CreateDeploymentOutput, error) {
req, out := c.CreateDeploymentRequest(input)
return out, req.Send()
}
// CreateDeploymentWithContext is the same as CreateDeployment with the addition of
// the ability to pass a context and additional request options.
//
// See CreateDeployment for details on how to use this API operation.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
func (c *Amplify) CreateDeploymentWithContext(ctx aws.Context, input *CreateDeploymentInput, opts ...request.Option) (*CreateDeploymentOutput, error) {
req, out := c.CreateDeploymentRequest(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
const opCreateDomainAssociation = "CreateDomainAssociation"
// CreateDomainAssociationRequest generates a "aws/request.Request" representing the
// client's request for the CreateDomainAssociation 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 CreateDomainAssociation for more information on using the CreateDomainAssociation
// 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 CreateDomainAssociationRequest method.
// req, resp := client.CreateDomainAssociationRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/amplify-2017-07-25/CreateDomainAssociation
func (c *Amplify) CreateDomainAssociationRequest(input *CreateDomainAssociationInput) (req *request.Request, output *CreateDomainAssociationOutput) {
op := &request.Operation{
Name: opCreateDomainAssociation,
HTTPMethod: "POST",
HTTPPath: "/apps/{appId}/domains",
}
if input == nil {
input = &CreateDomainAssociationInput{}
}
output = &CreateDomainAssociationOutput{}
req = c.newRequest(op, input, output)
return
}
// CreateDomainAssociation API operation for AWS Amplify.
//
// Creates a new domain association for an Amplify app. This action associates
// a custom domain with the Amplify app
//
// 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 Amplify's
// API operation CreateDomainAssociation for usage and error information.
//
// Returned Error Types:
// * BadRequestException
// A request contains unexpected data.
//
// * UnauthorizedException
// An operation failed due to a lack of access.
//
// * NotFoundException
// An entity was not found during an operation.
//
// * InternalFailureException
// The service failed to perform an operation due to an internal issue.
//
// * LimitExceededException
// A resource could not be created because service quotas were exceeded.
//
// * DependentServiceFailureException
// An operation failed because a dependent service threw an exception.
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/amplify-2017-07-25/CreateDomainAssociation
func (c *Amplify) CreateDomainAssociation(input *CreateDomainAssociationInput) (*CreateDomainAssociationOutput, error) {
req, out := c.CreateDomainAssociationRequest(input)
return out, req.Send()
}
// CreateDomainAssociationWithContext is the same as CreateDomainAssociation with the addition of
// the ability to pass a context and additional request options.
//
// See CreateDomainAssociation for details on how to use this API operation.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
func (c *Amplify) CreateDomainAssociationWithContext(ctx aws.Context, input *CreateDomainAssociationInput, opts ...request.Option) (*CreateDomainAssociationOutput, error) {
req, out := c.CreateDomainAssociationRequest(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
const opCreateWebhook = "CreateWebhook"
// CreateWebhookRequest generates a "aws/request.Request" representing the
// client's request for the CreateWebhook 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 CreateWebhook for more information on using the CreateWebhook
// 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 CreateWebhookRequest method.
// req, resp := client.CreateWebhookRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/amplify-2017-07-25/CreateWebhook
func (c *Amplify) CreateWebhookRequest(input *CreateWebhookInput) (req *request.Request, output *CreateWebhookOutput) {
op := &request.Operation{
Name: opCreateWebhook,
HTTPMethod: "POST",
HTTPPath: "/apps/{appId}/webhooks",
}
if input == nil {
input = &CreateWebhookInput{}
}
output = &CreateWebhookOutput{}
req = c.newRequest(op, input, output)
return
}
// CreateWebhook API operation for AWS Amplify.
//
// Creates a new webhook on an Amplify app.
//
// 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 Amplify's
// API operation CreateWebhook for usage and error information.
//
// Returned Error Types:
// * BadRequestException
// A request contains unexpected data.
//
// * UnauthorizedException
// An operation failed due to a lack of access.
//
// * NotFoundException
// An entity was not found during an operation.
//
// * InternalFailureException
// The service failed to perform an operation due to an internal issue.
//
// * LimitExceededException
// A resource could not be created because service quotas were exceeded.
//
// * DependentServiceFailureException
// An operation failed because a dependent service threw an exception.
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/amplify-2017-07-25/CreateWebhook
func (c *Amplify) CreateWebhook(input *CreateWebhookInput) (*CreateWebhookOutput, error) {
req, out := c.CreateWebhookRequest(input)
return out, req.Send()
}
// CreateWebhookWithContext is the same as CreateWebhook with the addition of
// the ability to pass a context and additional request options.
//
// See CreateWebhook for details on how to use this API operation.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
func (c *Amplify) CreateWebhookWithContext(ctx aws.Context, input *CreateWebhookInput, opts ...request.Option) (*CreateWebhookOutput, error) {
req, out := c.CreateWebhookRequest(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
const opDeleteApp = "DeleteApp"
// DeleteAppRequest generates a "aws/request.Request" representing the
// client's request for the DeleteApp 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 DeleteApp for more information on using the DeleteApp
// 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 DeleteAppRequest method.
// req, resp := client.DeleteAppRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/amplify-2017-07-25/DeleteApp
func (c *Amplify) DeleteAppRequest(input *DeleteAppInput) (req *request.Request, output *DeleteAppOutput) {
op := &request.Operation{
Name: opDeleteApp,
HTTPMethod: "DELETE",
HTTPPath: "/apps/{appId}",
}
if input == nil {
input = &DeleteAppInput{}
}
output = &DeleteAppOutput{}
req = c.newRequest(op, input, output)
return
}
// DeleteApp API operation for AWS Amplify.
//
// Deletes an existing Amplify app specified by an app 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 Amplify's
// API operation DeleteApp for usage and error information.
//
// Returned Error Types:
// * BadRequestException
// A request contains unexpected data.
//
// * NotFoundException
// An entity was not found during an operation.
//
// * UnauthorizedException
// An operation failed due to a lack of access.
//
// * InternalFailureException
// The service failed to perform an operation due to an internal issue.
//
// * DependentServiceFailureException
// An operation failed because a dependent service threw an exception.
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/amplify-2017-07-25/DeleteApp
func (c *Amplify) DeleteApp(input *DeleteAppInput) (*DeleteAppOutput, error) {
req, out := c.DeleteAppRequest(input)
return out, req.Send()
}
// DeleteAppWithContext is the same as DeleteApp with the addition of
// the ability to pass a context and additional request options.
//
// See DeleteApp for details on how to use this API operation.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
func (c *Amplify) DeleteAppWithContext(ctx aws.Context, input *DeleteAppInput, opts ...request.Option) (*DeleteAppOutput, error) {
req, out := c.DeleteAppRequest(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
const opDeleteBackendEnvironment = "DeleteBackendEnvironment"
// DeleteBackendEnvironmentRequest generates a "aws/request.Request" representing the
// client's request for the DeleteBackendEnvironment 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 DeleteBackendEnvironment for more information on using the DeleteBackendEnvironment
// 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 DeleteBackendEnvironmentRequest method.
// req, resp := client.DeleteBackendEnvironmentRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/amplify-2017-07-25/DeleteBackendEnvironment
func (c *Amplify) DeleteBackendEnvironmentRequest(input *DeleteBackendEnvironmentInput) (req *request.Request, output *DeleteBackendEnvironmentOutput) {
op := &request.Operation{
Name: opDeleteBackendEnvironment,
HTTPMethod: "DELETE",
HTTPPath: "/apps/{appId}/backendenvironments/{environmentName}",
}
if input == nil {
input = &DeleteBackendEnvironmentInput{}
}
output = &DeleteBackendEnvironmentOutput{}
req = c.newRequest(op, input, output)
return
}
// DeleteBackendEnvironment API operation for AWS Amplify.
//
// Deletes a backend environment for an Amplify app.
//
// 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 Amplify's
// API operation DeleteBackendEnvironment for usage and error information.
//
// Returned Error Types:
// * BadRequestException
// A request contains unexpected data.
//
// * UnauthorizedException
// An operation failed due to a lack of access.
//
// * NotFoundException
// An entity was not found during an operation.
//
// * InternalFailureException
// The service failed to perform an operation due to an internal issue.
//
// * DependentServiceFailureException
// An operation failed because a dependent service threw an exception.
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/amplify-2017-07-25/DeleteBackendEnvironment
func (c *Amplify) DeleteBackendEnvironment(input *DeleteBackendEnvironmentInput) (*DeleteBackendEnvironmentOutput, error) {
req, out := c.DeleteBackendEnvironmentRequest(input)
return out, req.Send()
}
// DeleteBackendEnvironmentWithContext is the same as DeleteBackendEnvironment with the addition of
// the ability to pass a context and additional request options.
//
// See DeleteBackendEnvironment for details on how to use this API operation.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
func (c *Amplify) DeleteBackendEnvironmentWithContext(ctx aws.Context, input *DeleteBackendEnvironmentInput, opts ...request.Option) (*DeleteBackendEnvironmentOutput, error) {
req, out := c.DeleteBackendEnvironmentRequest(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
const opDeleteBranch = "DeleteBranch"
// DeleteBranchRequest generates a "aws/request.Request" representing the
// client's request for the DeleteBranch 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 DeleteBranch for more information on using the DeleteBranch
// 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 DeleteBranchRequest method.
// req, resp := client.DeleteBranchRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/amplify-2017-07-25/DeleteBranch
func (c *Amplify) DeleteBranchRequest(input *DeleteBranchInput) (req *request.Request, output *DeleteBranchOutput) {
op := &request.Operation{
Name: opDeleteBranch,
HTTPMethod: "DELETE",
HTTPPath: "/apps/{appId}/branches/{branchName}",
}
if input == nil {
input = &DeleteBranchInput{}
}
output = &DeleteBranchOutput{}
req = c.newRequest(op, input, output)
return
}
// DeleteBranch API operation for AWS Amplify.
//
// Deletes a branch for an Amplify app.
//
// 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 Amplify's
// API operation DeleteBranch for usage and error information.
//
// Returned Error Types:
// * BadRequestException
// A request contains unexpected data.
//
// * UnauthorizedException
// An operation failed due to a lack of access.
//
// * NotFoundException
// An entity was not found during an operation.
//
// * InternalFailureException
// The service failed to perform an operation due to an internal issue.
//
// * DependentServiceFailureException
// An operation failed because a dependent service threw an exception.
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/amplify-2017-07-25/DeleteBranch
func (c *Amplify) DeleteBranch(input *DeleteBranchInput) (*DeleteBranchOutput, error) {
req, out := c.DeleteBranchRequest(input)
return out, req.Send()
}
// DeleteBranchWithContext is the same as DeleteBranch with the addition of
// the ability to pass a context and additional request options.
//
// See DeleteBranch for details on how to use this API operation.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
func (c *Amplify) DeleteBranchWithContext(ctx aws.Context, input *DeleteBranchInput, opts ...request.Option) (*DeleteBranchOutput, error) {
req, out := c.DeleteBranchRequest(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
const opDeleteDomainAssociation = "DeleteDomainAssociation"
// DeleteDomainAssociationRequest generates a "aws/request.Request" representing the
// client's request for the DeleteDomainAssociation 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 DeleteDomainAssociation for more information on using the DeleteDomainAssociation
// 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 DeleteDomainAssociationRequest method.
// req, resp := client.DeleteDomainAssociationRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/amplify-2017-07-25/DeleteDomainAssociation
func (c *Amplify) DeleteDomainAssociationRequest(input *DeleteDomainAssociationInput) (req *request.Request, output *DeleteDomainAssociationOutput) {
op := &request.Operation{
Name: opDeleteDomainAssociation,
HTTPMethod: "DELETE",
HTTPPath: "/apps/{appId}/domains/{domainName}",
}
if input == nil {
input = &DeleteDomainAssociationInput{}
}
output = &DeleteDomainAssociationOutput{}
req = c.newRequest(op, input, output)
return
}
// DeleteDomainAssociation API operation for AWS Amplify.
//
// Deletes a domain association for an Amplify app.
//
// 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 Amplify's
// API operation DeleteDomainAssociation for usage and error information.
//
// Returned Error Types:
// * BadRequestException
// A request contains unexpected data.
//
// * UnauthorizedException
// An operation failed due to a lack of access.
//
// * NotFoundException
// An entity was not found during an operation.
//
// * InternalFailureException
// The service failed to perform an operation due to an internal issue.
//
// * DependentServiceFailureException
// An operation failed because a dependent service threw an exception.
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/amplify-2017-07-25/DeleteDomainAssociation
func (c *Amplify) DeleteDomainAssociation(input *DeleteDomainAssociationInput) (*DeleteDomainAssociationOutput, error) {
req, out := c.DeleteDomainAssociationRequest(input)
return out, req.Send()
}
// DeleteDomainAssociationWithContext is the same as DeleteDomainAssociation with the addition of
// the ability to pass a context and additional request options.
//
// See DeleteDomainAssociation for details on how to use this API operation.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
func (c *Amplify) DeleteDomainAssociationWithContext(ctx aws.Context, input *DeleteDomainAssociationInput, opts ...request.Option) (*DeleteDomainAssociationOutput, error) {
req, out := c.DeleteDomainAssociationRequest(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
const opDeleteJob = "DeleteJob"
// DeleteJobRequest generates a "aws/request.Request" representing the
// client's request for the DeleteJob 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 DeleteJob for more information on using the DeleteJob
// 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 DeleteJobRequest method.
// req, resp := client.DeleteJobRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/amplify-2017-07-25/DeleteJob
func (c *Amplify) DeleteJobRequest(input *DeleteJobInput) (req *request.Request, output *DeleteJobOutput) {
op := &request.Operation{
Name: opDeleteJob,
HTTPMethod: "DELETE",
HTTPPath: "/apps/{appId}/branches/{branchName}/jobs/{jobId}",
}
if input == nil {
input = &DeleteJobInput{}
}
output = &DeleteJobOutput{}
req = c.newRequest(op, input, output)
return
}
// DeleteJob API operation for AWS Amplify.
//
// Deletes a job for a branch of an Amplify app.
//
// 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 Amplify's
// API operation DeleteJob for usage and error information.
//
// Returned Error Types:
// * BadRequestException
// A request contains unexpected data.
//
// * UnauthorizedException
// An operation failed due to a lack of access.
//
// * InternalFailureException
// The service failed to perform an operation due to an internal issue.
//
// * NotFoundException
// An entity was not found during an operation.
//
// * LimitExceededException
// A resource could not be created because service quotas were exceeded.
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/amplify-2017-07-25/DeleteJob
func (c *Amplify) DeleteJob(input *DeleteJobInput) (*DeleteJobOutput, error) {
req, out := c.DeleteJobRequest(input)
return out, req.Send()
}
// DeleteJobWithContext is the same as DeleteJob with the addition of
// the ability to pass a context and additional request options.
//
// See DeleteJob for details on how to use this API operation.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
func (c *Amplify) DeleteJobWithContext(ctx aws.Context, input *DeleteJobInput, opts ...request.Option) (*DeleteJobOutput, error) {
req, out := c.DeleteJobRequest(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
const opDeleteWebhook = "DeleteWebhook"
// DeleteWebhookRequest generates a "aws/request.Request" representing the
// client's request for the DeleteWebhook 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 DeleteWebhook for more information on using the DeleteWebhook
// 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 DeleteWebhookRequest method.
// req, resp := client.DeleteWebhookRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/amplify-2017-07-25/DeleteWebhook
func (c *Amplify) DeleteWebhookRequest(input *DeleteWebhookInput) (req *request.Request, output *DeleteWebhookOutput) {
op := &request.Operation{
Name: opDeleteWebhook,
HTTPMethod: "DELETE",
HTTPPath: "/webhooks/{webhookId}",
}
if input == nil {
input = &DeleteWebhookInput{}
}
output = &DeleteWebhookOutput{}
req = c.newRequest(op, input, output)
return
}
// DeleteWebhook API operation for AWS Amplify.
//
// Deletes a webhook.
//
// 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 Amplify's
// API operation DeleteWebhook for usage and error information.
//
// Returned Error Types:
// * BadRequestException
// A request contains unexpected data.
//
// * UnauthorizedException
// An operation failed due to a lack of access.
//
// * InternalFailureException
// The service failed to perform an operation due to an internal issue.
//
// * NotFoundException
// An entity was not found during an operation.
//
// * LimitExceededException
// A resource could not be created because service quotas were exceeded.
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/amplify-2017-07-25/DeleteWebhook
func (c *Amplify) DeleteWebhook(input *DeleteWebhookInput) (*DeleteWebhookOutput, error) {
req, out := c.DeleteWebhookRequest(input)
return out, req.Send()
}
// DeleteWebhookWithContext is the same as DeleteWebhook with the addition of
// the ability to pass a context and additional request options.
//
// See DeleteWebhook for details on how to use this API operation.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
func (c *Amplify) DeleteWebhookWithContext(ctx aws.Context, input *DeleteWebhookInput, opts ...request.Option) (*DeleteWebhookOutput, error) {
req, out := c.DeleteWebhookRequest(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
const opGenerateAccessLogs = "GenerateAccessLogs"
// GenerateAccessLogsRequest generates a "aws/request.Request" representing the
// client's request for the GenerateAccessLogs 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 GenerateAccessLogs for more information on using the GenerateAccessLogs
// 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 GenerateAccessLogsRequest method.
// req, resp := client.GenerateAccessLogsRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/amplify-2017-07-25/GenerateAccessLogs
func (c *Amplify) GenerateAccessLogsRequest(input *GenerateAccessLogsInput) (req *request.Request, output *GenerateAccessLogsOutput) {
op := &request.Operation{
Name: opGenerateAccessLogs,
HTTPMethod: "POST",
HTTPPath: "/apps/{appId}/accesslogs",
}
if input == nil {
input = &GenerateAccessLogsInput{}
}
output = &GenerateAccessLogsOutput{}
req = c.newRequest(op, input, output)
return
}
// GenerateAccessLogs API operation for AWS Amplify.
//
// Returns the website access logs for a specific time range using a presigned
// URL.
//
// 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 Amplify's
// API operation GenerateAccessLogs for usage and error information.
//
// Returned Error Types:
// * NotFoundException
// An entity was not found during an operation.
//
// * BadRequestException
// A request contains unexpected data.
//
// * UnauthorizedException
// An operation failed due to a lack of access.
//
// * InternalFailureException
// The service failed to perform an operation due to an internal issue.
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/amplify-2017-07-25/GenerateAccessLogs
func (c *Amplify) GenerateAccessLogs(input *GenerateAccessLogsInput) (*GenerateAccessLogsOutput, error) {
req, out := c.GenerateAccessLogsRequest(input)
return out, req.Send()
}
// GenerateAccessLogsWithContext is the same as GenerateAccessLogs with the addition of
// the ability to pass a context and additional request options.
//
// See GenerateAccessLogs for details on how to use this API operation.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
func (c *Amplify) GenerateAccessLogsWithContext(ctx aws.Context, input *GenerateAccessLogsInput, opts ...request.Option) (*GenerateAccessLogsOutput, error) {
req, out := c.GenerateAccessLogsRequest(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
const opGetApp = "GetApp"
// GetAppRequest generates a "aws/request.Request" representing the
// client's request for the GetApp 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 GetApp for more information on using the GetApp
// 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 GetAppRequest method.
// req, resp := client.GetAppRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/amplify-2017-07-25/GetApp
func (c *Amplify) GetAppRequest(input *GetAppInput) (req *request.Request, output *GetAppOutput) {
op := &request.Operation{
Name: opGetApp,
HTTPMethod: "GET",
HTTPPath: "/apps/{appId}",
}
if input == nil {
input = &GetAppInput{}
}
output = &GetAppOutput{}
req = c.newRequest(op, input, output)
return
}
// GetApp API operation for AWS Amplify.
//
// Returns an existing Amplify app by appID.
//
// 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 Amplify's
// API operation GetApp for usage and error information.
//
// Returned Error Types:
// * BadRequestException
// A request contains unexpected data.
//
// * NotFoundException
// An entity was not found during an operation.
//
// * UnauthorizedException
// An operation failed due to a lack of access.
//
// * InternalFailureException
// The service failed to perform an operation due to an internal issue.
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/amplify-2017-07-25/GetApp
func (c *Amplify) GetApp(input *GetAppInput) (*GetAppOutput, error) {
req, out := c.GetAppRequest(input)
return out, req.Send()
}
// GetAppWithContext is the same as GetApp with the addition of
// the ability to pass a context and additional request options.
//
// See GetApp for details on how to use this API operation.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
func (c *Amplify) GetAppWithContext(ctx aws.Context, input *GetAppInput, opts ...request.Option) (*GetAppOutput, error) {
req, out := c.GetAppRequest(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
const opGetArtifactUrl = "GetArtifactUrl"
// GetArtifactUrlRequest generates a "aws/request.Request" representing the
// client's request for the GetArtifactUrl 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 GetArtifactUrl for more information on using the GetArtifactUrl
// 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 GetArtifactUrlRequest method.
// req, resp := client.GetArtifactUrlRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/amplify-2017-07-25/GetArtifactUrl
func (c *Amplify) GetArtifactUrlRequest(input *GetArtifactUrlInput) (req *request.Request, output *GetArtifactUrlOutput) {
op := &request.Operation{
Name: opGetArtifactUrl,
HTTPMethod: "GET",
HTTPPath: "/artifacts/{artifactId}",
}
if input == nil {
input = &GetArtifactUrlInput{}
}
output = &GetArtifactUrlOutput{}
req = c.newRequest(op, input, output)
return
}
// GetArtifactUrl API operation for AWS Amplify.
//
// Returns the artifact info that corresponds to an artifact 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 Amplify's
// API operation GetArtifactUrl for usage and error information.
//
// Returned Error Types:
// * BadRequestException
// A request contains unexpected data.
//
// * UnauthorizedException
// An operation failed due to a lack of access.
//
// * InternalFailureException
// The service failed to perform an operation due to an internal issue.
//
// * NotFoundException
// An entity was not found during an operation.
//
// * LimitExceededException
// A resource could not be created because service quotas were exceeded.
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/amplify-2017-07-25/GetArtifactUrl
func (c *Amplify) GetArtifactUrl(input *GetArtifactUrlInput) (*GetArtifactUrlOutput, error) {
req, out := c.GetArtifactUrlRequest(input)
return out, req.Send()
}
// GetArtifactUrlWithContext is the same as GetArtifactUrl with the addition of
// the ability to pass a context and additional request options.
//
// See GetArtifactUrl for details on how to use this API operation.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
func (c *Amplify) GetArtifactUrlWithContext(ctx aws.Context, input *GetArtifactUrlInput, opts ...request.Option) (*GetArtifactUrlOutput, error) {
req, out := c.GetArtifactUrlRequest(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
const opGetBackendEnvironment = "GetBackendEnvironment"
// GetBackendEnvironmentRequest generates a "aws/request.Request" representing the
// client's request for the GetBackendEnvironment 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 GetBackendEnvironment for more information on using the GetBackendEnvironment
// 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 GetBackendEnvironmentRequest method.
// req, resp := client.GetBackendEnvironmentRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/amplify-2017-07-25/GetBackendEnvironment
func (c *Amplify) GetBackendEnvironmentRequest(input *GetBackendEnvironmentInput) (req *request.Request, output *GetBackendEnvironmentOutput) {
op := &request.Operation{
Name: opGetBackendEnvironment,
HTTPMethod: "GET",
HTTPPath: "/apps/{appId}/backendenvironments/{environmentName}",
}
if input == nil {
input = &GetBackendEnvironmentInput{}
}
output = &GetBackendEnvironmentOutput{}
req = c.newRequest(op, input, output)
return
}
// GetBackendEnvironment API operation for AWS Amplify.
//
// Returns a backend environment for an Amplify app.
//
// 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 Amplify's
// API operation GetBackendEnvironment for usage and error information.
//
// Returned Error Types:
// * BadRequestException
// A request contains unexpected data.
//
// * UnauthorizedException
// An operation failed due to a lack of access.
//
// * NotFoundException
// An entity was not found during an operation.
//
// * InternalFailureException
// The service failed to perform an operation due to an internal issue.
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/amplify-2017-07-25/GetBackendEnvironment
func (c *Amplify) GetBackendEnvironment(input *GetBackendEnvironmentInput) (*GetBackendEnvironmentOutput, error) {
req, out := c.GetBackendEnvironmentRequest(input)
return out, req.Send()
}
// GetBackendEnvironmentWithContext is the same as GetBackendEnvironment with the addition of
// the ability to pass a context and additional request options.
//
// See GetBackendEnvironment for details on how to use this API operation.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
func (c *Amplify) GetBackendEnvironmentWithContext(ctx aws.Context, input *GetBackendEnvironmentInput, opts ...request.Option) (*GetBackendEnvironmentOutput, error) {
req, out := c.GetBackendEnvironmentRequest(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
const opGetBranch = "GetBranch"
// GetBranchRequest generates a "aws/request.Request" representing the
// client's request for the GetBranch 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 GetBranch for more information on using the GetBranch
// 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 GetBranchRequest method.
// req, resp := client.GetBranchRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/amplify-2017-07-25/GetBranch
func (c *Amplify) GetBranchRequest(input *GetBranchInput) (req *request.Request, output *GetBranchOutput) {
op := &request.Operation{
Name: opGetBranch,
HTTPMethod: "GET",
HTTPPath: "/apps/{appId}/branches/{branchName}",
}
if input == nil {
input = &GetBranchInput{}
}
output = &GetBranchOutput{}
req = c.newRequest(op, input, output)
return
}
// GetBranch API operation for AWS Amplify.
//
// Returns a branch for an Amplify app.
//
// 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 Amplify's
// API operation GetBranch for usage and error information.
//
// Returned Error Types:
// * BadRequestException
// A request contains unexpected data.
//
// * UnauthorizedException
// An operation failed due to a lack of access.
//
// * NotFoundException
// An entity was not found during an operation.
//
// * InternalFailureException
// The service failed to perform an operation due to an internal issue.
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/amplify-2017-07-25/GetBranch
func (c *Amplify) GetBranch(input *GetBranchInput) (*GetBranchOutput, error) {
req, out := c.GetBranchRequest(input)
return out, req.Send()
}
// GetBranchWithContext is the same as GetBranch with the addition of
// the ability to pass a context and additional request options.
//
// See GetBranch for details on how to use this API operation.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
func (c *Amplify) GetBranchWithContext(ctx aws.Context, input *GetBranchInput, opts ...request.Option) (*GetBranchOutput, error) {
req, out := c.GetBranchRequest(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
const opGetDomainAssociation = "GetDomainAssociation"
// GetDomainAssociationRequest generates a "aws/request.Request" representing the
// client's request for the GetDomainAssociation 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 GetDomainAssociation for more information on using the GetDomainAssociation
// 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 GetDomainAssociationRequest method.
// req, resp := client.GetDomainAssociationRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/amplify-2017-07-25/GetDomainAssociation
func (c *Amplify) GetDomainAssociationRequest(input *GetDomainAssociationInput) (req *request.Request, output *GetDomainAssociationOutput) {
op := &request.Operation{
Name: opGetDomainAssociation,
HTTPMethod: "GET",
HTTPPath: "/apps/{appId}/domains/{domainName}",
}
if input == nil {
input = &GetDomainAssociationInput{}
}
output = &GetDomainAssociationOutput{}
req = c.newRequest(op, input, output)
return
}
// GetDomainAssociation API operation for AWS Amplify.
//
// Returns the domain information for an Amplify app.
//
// 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 Amplify's
// API operation GetDomainAssociation for usage and error information.
//
// Returned Error Types:
// * BadRequestException
// A request contains unexpected data.
//
// * UnauthorizedException
// An operation failed due to a lack of access.
//
// * NotFoundException
// An entity was not found during an operation.
//
// * InternalFailureException
// The service failed to perform an operation due to an internal issue.
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/amplify-2017-07-25/GetDomainAssociation
func (c *Amplify) GetDomainAssociation(input *GetDomainAssociationInput) (*GetDomainAssociationOutput, error) {
req, out := c.GetDomainAssociationRequest(input)
return out, req.Send()
}
// GetDomainAssociationWithContext is the same as GetDomainAssociation with the addition of
// the ability to pass a context and additional request options.
//
// See GetDomainAssociation for details on how to use this API operation.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
func (c *Amplify) GetDomainAssociationWithContext(ctx aws.Context, input *GetDomainAssociationInput, opts ...request.Option) (*GetDomainAssociationOutput, error) {
req, out := c.GetDomainAssociationRequest(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
const opGetJob = "GetJob"
// GetJobRequest generates a "aws/request.Request" representing the
// client's request for the GetJob 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 GetJob for more information on using the GetJob
// 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 GetJobRequest method.
// req, resp := client.GetJobRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/amplify-2017-07-25/GetJob
func (c *Amplify) GetJobRequest(input *GetJobInput) (req *request.Request, output *GetJobOutput) {
op := &request.Operation{
Name: opGetJob,
HTTPMethod: "GET",
HTTPPath: "/apps/{appId}/branches/{branchName}/jobs/{jobId}",
}
if input == nil {
input = &GetJobInput{}
}
output = &GetJobOutput{}
req = c.newRequest(op, input, output)
return
}
// GetJob API operation for AWS Amplify.
//
// Returns a job for a branch of an Amplify app.
//
// 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 Amplify's
// API operation GetJob for usage and error information.
//
// Returned Error Types:
// * BadRequestException
// A request contains unexpected data.
//
// * UnauthorizedException
// An operation failed due to a lack of access.
//
// * InternalFailureException
// The service failed to perform an operation due to an internal issue.
//
// * NotFoundException
// An entity was not found during an operation.
//
// * LimitExceededException
// A resource could not be created because service quotas were exceeded.
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/amplify-2017-07-25/GetJob
func (c *Amplify) GetJob(input *GetJobInput) (*GetJobOutput, error) {
req, out := c.GetJobRequest(input)
return out, req.Send()
}
// GetJobWithContext is the same as GetJob with the addition of
// the ability to pass a context and additional request options.
//
// See GetJob for details on how to use this API operation.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
func (c *Amplify) GetJobWithContext(ctx aws.Context, input *GetJobInput, opts ...request.Option) (*GetJobOutput, error) {
req, out := c.GetJobRequest(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
const opGetWebhook = "GetWebhook"
// GetWebhookRequest generates a "aws/request.Request" representing the
// client's request for the GetWebhook 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 GetWebhook for more information on using the GetWebhook
// 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 GetWebhookRequest method.
// req, resp := client.GetWebhookRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/amplify-2017-07-25/GetWebhook
func (c *Amplify) GetWebhookRequest(input *GetWebhookInput) (req *request.Request, output *GetWebhookOutput) {
op := &request.Operation{
Name: opGetWebhook,
HTTPMethod: "GET",
HTTPPath: "/webhooks/{webhookId}",
}
if input == nil {
input = &GetWebhookInput{}
}
output = &GetWebhookOutput{}
req = c.newRequest(op, input, output)
return
}
// GetWebhook API operation for AWS Amplify.
//
// Returns the webhook information that corresponds to a specified webhook 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 Amplify's
// API operation GetWebhook for usage and error information.
//
// Returned Error Types:
// * BadRequestException
// A request contains unexpected data.
//
// * UnauthorizedException
// An operation failed due to a lack of access.
//
// * InternalFailureException
// The service failed to perform an operation due to an internal issue.
//
// * NotFoundException
// An entity was not found during an operation.
//
// * LimitExceededException
// A resource could not be created because service quotas were exceeded.
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/amplify-2017-07-25/GetWebhook
func (c *Amplify) GetWebhook(input *GetWebhookInput) (*GetWebhookOutput, error) {
req, out := c.GetWebhookRequest(input)
return out, req.Send()
}
// GetWebhookWithContext is the same as GetWebhook with the addition of
// the ability to pass a context and additional request options.
//
// See GetWebhook for details on how to use this API operation.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
func (c *Amplify) GetWebhookWithContext(ctx aws.Context, input *GetWebhookInput, opts ...request.Option) (*GetWebhookOutput, error) {
req, out := c.GetWebhookRequest(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
const opListApps = "ListApps"
// ListAppsRequest generates a "aws/request.Request" representing the
// client's request for the ListApps 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 ListApps for more information on using the ListApps
// 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 ListAppsRequest method.
// req, resp := client.ListAppsRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/amplify-2017-07-25/ListApps
func (c *Amplify) ListAppsRequest(input *ListAppsInput) (req *request.Request, output *ListAppsOutput) {
op := &request.Operation{
Name: opListApps,
HTTPMethod: "GET",
HTTPPath: "/apps",
}
if input == nil {
input = &ListAppsInput{}
}
output = &ListAppsOutput{}
req = c.newRequest(op, input, output)
return
}
// ListApps API operation for AWS Amplify.
//
// Returns a list of the existing Amplify apps.
//
// 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 Amplify's
// API operation ListApps for usage and error information.
//
// Returned Error Types:
// * BadRequestException
// A request contains unexpected data.
//
// * UnauthorizedException
// An operation failed due to a lack of access.
//
// * InternalFailureException
// The service failed to perform an operation due to an internal issue.
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/amplify-2017-07-25/ListApps
func (c *Amplify) ListApps(input *ListAppsInput) (*ListAppsOutput, error) {
req, out := c.ListAppsRequest(input)
return out, req.Send()
}
// ListAppsWithContext is the same as ListApps with the addition of
// the ability to pass a context and additional request options.
//
// See ListApps for details on how to use this API operation.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
func (c *Amplify) ListAppsWithContext(ctx aws.Context, input *ListAppsInput, opts ...request.Option) (*ListAppsOutput, error) {
req, out := c.ListAppsRequest(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
const opListArtifacts = "ListArtifacts"
// ListArtifactsRequest generates a "aws/request.Request" representing the
// client's request for the ListArtifacts 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 ListArtifacts for more information on using the ListArtifacts
// 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 ListArtifactsRequest method.
// req, resp := client.ListArtifactsRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/amplify-2017-07-25/ListArtifacts
func (c *Amplify) ListArtifactsRequest(input *ListArtifactsInput) (req *request.Request, output *ListArtifactsOutput) {
op := &request.Operation{
Name: opListArtifacts,
HTTPMethod: "GET",
HTTPPath: "/apps/{appId}/branches/{branchName}/jobs/{jobId}/artifacts",
}
if input == nil {
input = &ListArtifactsInput{}
}
output = &ListArtifactsOutput{}
req = c.newRequest(op, input, output)
return
}
// ListArtifacts API operation for AWS Amplify.
//
// Returns a list of artifacts for a specified app, branch, and job.
//
// 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 Amplify's
// API operation ListArtifacts for usage and error information.
//
// Returned Error Types:
// * BadRequestException
// A request contains unexpected data.
//
// * UnauthorizedException
// An operation failed due to a lack of access.
//
// * InternalFailureException
// The service failed to perform an operation due to an internal issue.
//
// * LimitExceededException
// A resource could not be created because service quotas were exceeded.
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/amplify-2017-07-25/ListArtifacts
func (c *Amplify) ListArtifacts(input *ListArtifactsInput) (*ListArtifactsOutput, error) {
req, out := c.ListArtifactsRequest(input)
return out, req.Send()
}
// ListArtifactsWithContext is the same as ListArtifacts with the addition of
// the ability to pass a context and additional request options.
//
// See ListArtifacts for details on how to use this API operation.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
func (c *Amplify) ListArtifactsWithContext(ctx aws.Context, input *ListArtifactsInput, opts ...request.Option) (*ListArtifactsOutput, error) {
req, out := c.ListArtifactsRequest(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
const opListBackendEnvironments = "ListBackendEnvironments"
// ListBackendEnvironmentsRequest generates a "aws/request.Request" representing the
// client's request for the ListBackendEnvironments 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 ListBackendEnvironments for more information on using the ListBackendEnvironments
// 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 ListBackendEnvironmentsRequest method.
// req, resp := client.ListBackendEnvironmentsRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/amplify-2017-07-25/ListBackendEnvironments
func (c *Amplify) ListBackendEnvironmentsRequest(input *ListBackendEnvironmentsInput) (req *request.Request, output *ListBackendEnvironmentsOutput) {
op := &request.Operation{
Name: opListBackendEnvironments,
HTTPMethod: "GET",
HTTPPath: "/apps/{appId}/backendenvironments",
}
if input == nil {
input = &ListBackendEnvironmentsInput{}
}
output = &ListBackendEnvironmentsOutput{}
req = c.newRequest(op, input, output)
return
}
// ListBackendEnvironments API operation for AWS Amplify.
//
// Lists the backend environments for an Amplify app.
//
// 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 Amplify's
// API operation ListBackendEnvironments for usage and error information.
//
// Returned Error Types:
// * BadRequestException
// A request contains unexpected data.
//
// * UnauthorizedException
// An operation failed due to a lack of access.
//
// * InternalFailureException
// The service failed to perform an operation due to an internal issue.
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/amplify-2017-07-25/ListBackendEnvironments
func (c *Amplify) ListBackendEnvironments(input *ListBackendEnvironmentsInput) (*ListBackendEnvironmentsOutput, error) {
req, out := c.ListBackendEnvironmentsRequest(input)
return out, req.Send()
}
// ListBackendEnvironmentsWithContext is the same as ListBackendEnvironments with the addition of
// the ability to pass a context and additional request options.
//
// See ListBackendEnvironments for details on how to use this API operation.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
func (c *Amplify) ListBackendEnvironmentsWithContext(ctx aws.Context, input *ListBackendEnvironmentsInput, opts ...request.Option) (*ListBackendEnvironmentsOutput, error) {
req, out := c.ListBackendEnvironmentsRequest(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
const opListBranches = "ListBranches"
// ListBranchesRequest generates a "aws/request.Request" representing the
// client's request for the ListBranches 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 ListBranches for more information on using the ListBranches
// 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 ListBranchesRequest method.
// req, resp := client.ListBranchesRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/amplify-2017-07-25/ListBranches
func (c *Amplify) ListBranchesRequest(input *ListBranchesInput) (req *request.Request, output *ListBranchesOutput) {
op := &request.Operation{
Name: opListBranches,
HTTPMethod: "GET",
HTTPPath: "/apps/{appId}/branches",
}
if input == nil {
input = &ListBranchesInput{}
}
output = &ListBranchesOutput{}
req = c.newRequest(op, input, output)
return
}
// ListBranches API operation for AWS Amplify.
//
// Lists the branches of an Amplify app.
//
// 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 Amplify's
// API operation ListBranches for usage and error information.
//
// Returned Error Types:
// * BadRequestException
// A request contains unexpected data.
//
// * UnauthorizedException
// An operation failed due to a lack of access.
//
// * InternalFailureException
// The service failed to perform an operation due to an internal issue.
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/amplify-2017-07-25/ListBranches
func (c *Amplify) ListBranches(input *ListBranchesInput) (*ListBranchesOutput, error) {
req, out := c.ListBranchesRequest(input)
return out, req.Send()
}
// ListBranchesWithContext is the same as ListBranches with the addition of
// the ability to pass a context and additional request options.
//
// See ListBranches for details on how to use this API operation.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
func (c *Amplify) ListBranchesWithContext(ctx aws.Context, input *ListBranchesInput, opts ...request.Option) (*ListBranchesOutput, error) {
req, out := c.ListBranchesRequest(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
const opListDomainAssociations = "ListDomainAssociations"
// ListDomainAssociationsRequest generates a "aws/request.Request" representing the
// client's request for the ListDomainAssociations 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 ListDomainAssociations for more information on using the ListDomainAssociations
// 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 ListDomainAssociationsRequest method.
// req, resp := client.ListDomainAssociationsRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/amplify-2017-07-25/ListDomainAssociations
func (c *Amplify) ListDomainAssociationsRequest(input *ListDomainAssociationsInput) (req *request.Request, output *ListDomainAssociationsOutput) {
op := &request.Operation{
Name: opListDomainAssociations,
HTTPMethod: "GET",
HTTPPath: "/apps/{appId}/domains",
}
if input == nil {
input = &ListDomainAssociationsInput{}
}
output = &ListDomainAssociationsOutput{}
req = c.newRequest(op, input, output)
return
}
// ListDomainAssociations API operation for AWS Amplify.
//
// Returns the domain associations for an Amplify app.
//
// 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 Amplify's
// API operation ListDomainAssociations for usage and error information.
//
// Returned Error Types:
// * BadRequestException
// A request contains unexpected data.
//
// * UnauthorizedException
// An operation failed due to a lack of access.
//
// * InternalFailureException
// The service failed to perform an operation due to an internal issue.
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/amplify-2017-07-25/ListDomainAssociations
func (c *Amplify) ListDomainAssociations(input *ListDomainAssociationsInput) (*ListDomainAssociationsOutput, error) {
req, out := c.ListDomainAssociationsRequest(input)
return out, req.Send()
}
// ListDomainAssociationsWithContext is the same as ListDomainAssociations with the addition of
// the ability to pass a context and additional request options.
//
// See ListDomainAssociations for details on how to use this API operation.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
func (c *Amplify) ListDomainAssociationsWithContext(ctx aws.Context, input *ListDomainAssociationsInput, opts ...request.Option) (*ListDomainAssociationsOutput, error) {
req, out := c.ListDomainAssociationsRequest(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
const opListJobs = "ListJobs"
// ListJobsRequest generates a "aws/request.Request" representing the
// client's request for the ListJobs 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 ListJobs for more information on using the ListJobs
// 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 ListJobsRequest method.
// req, resp := client.ListJobsRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/amplify-2017-07-25/ListJobs
func (c *Amplify) ListJobsRequest(input *ListJobsInput) (req *request.Request, output *ListJobsOutput) {
op := &request.Operation{
Name: opListJobs,
HTTPMethod: "GET",
HTTPPath: "/apps/{appId}/branches/{branchName}/jobs",
}
if input == nil {
input = &ListJobsInput{}
}
output = &ListJobsOutput{}
req = c.newRequest(op, input, output)
return
}
// ListJobs API operation for AWS Amplify.
//
// Lists the jobs for a branch of an Amplify app.
//
// 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 Amplify's
// API operation ListJobs for usage and error information.
//
// Returned Error Types:
// * BadRequestException
// A request contains unexpected data.
//
// * UnauthorizedException
// An operation failed due to a lack of access.
//
// * InternalFailureException
// The service failed to perform an operation due to an internal issue.
//
// * LimitExceededException
// A resource could not be created because service quotas were exceeded.
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/amplify-2017-07-25/ListJobs
func (c *Amplify) ListJobs(input *ListJobsInput) (*ListJobsOutput, error) {
req, out := c.ListJobsRequest(input)
return out, req.Send()
}
// ListJobsWithContext is the same as ListJobs with the addition of
// the ability to pass a context and additional request options.
//
// See ListJobs for details on how to use this API operation.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
func (c *Amplify) ListJobsWithContext(ctx aws.Context, input *ListJobsInput, opts ...request.Option) (*ListJobsOutput, error) {
req, out := c.ListJobsRequest(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
const opListTagsForResource = "ListTagsForResource"
// ListTagsForResourceRequest generates a "aws/request.Request" representing the
// client's request for the ListTagsForResource operation. The "output" return
// value will be populated with the request's response once the request completes
// successfully.
//
// Use "Send" method on the returned Request to send the API call to the service.
// the "output" return value is not valid until after Send returns without error.
//
// See ListTagsForResource for more information on using the ListTagsForResource
// API call, and error handling.
//
// This method is useful when you want to inject custom logic or configuration
// into the SDK's request lifecycle. Such as custom headers, or retry logic.
//
//
// // Example sending a request using the ListTagsForResourceRequest method.
// req, resp := client.ListTagsForResourceRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/amplify-2017-07-25/ListTagsForResource
func (c *Amplify) ListTagsForResourceRequest(input *ListTagsForResourceInput) (req *request.Request, output *ListTagsForResourceOutput) {
op := &request.Operation{
Name: opListTagsForResource,
HTTPMethod: "GET",
HTTPPath: "/tags/{resourceArn}",
}
if input == nil {
input = &ListTagsForResourceInput{}
}
output = &ListTagsForResourceOutput{}
req = c.newRequest(op, input, output)
return
}
// ListTagsForResource API operation for AWS Amplify.
//
// Returns a list of tags for a specified Amazon Resource Name (ARN).
//
// 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 Amplify's
// API operation ListTagsForResource for usage and error information.
//
// Returned Error Types:
// * InternalFailureException
// The service failed to perform an operation due to an internal issue.
//
// * BadRequestException
// A request contains unexpected data.
//
// * ResourceNotFoundException
// An operation failed due to a non-existent resource.
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/amplify-2017-07-25/ListTagsForResource
func (c *Amplify) ListTagsForResource(input *ListTagsForResourceInput) (*ListTagsForResourceOutput, error) {
req, out := c.ListTagsForResourceRequest(input)
return out, req.Send()
}
// ListTagsForResourceWithContext is the same as ListTagsForResource with the addition of
// the ability to pass a context and additional request options.
//
// See ListTagsForResource for details on how to use this API operation.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
func (c *Amplify) ListTagsForResourceWithContext(ctx aws.Context, input *ListTagsForResourceInput, opts ...request.Option) (*ListTagsForResourceOutput, error) {
req, out := c.ListTagsForResourceRequest(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
const opListWebhooks = "ListWebhooks"
// ListWebhooksRequest generates a "aws/request.Request" representing the
// client's request for the ListWebhooks 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 ListWebhooks for more information on using the ListWebhooks
// 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 ListWebhooksRequest method.
// req, resp := client.ListWebhooksRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/amplify-2017-07-25/ListWebhooks
func (c *Amplify) ListWebhooksRequest(input *ListWebhooksInput) (req *request.Request, output *ListWebhooksOutput) {
op := &request.Operation{
Name: opListWebhooks,
HTTPMethod: "GET",
HTTPPath: "/apps/{appId}/webhooks",
}
if input == nil {
input = &ListWebhooksInput{}
}
output = &ListWebhooksOutput{}
req = c.newRequest(op, input, output)
return
}
// ListWebhooks API operation for AWS Amplify.
//
// Returns a list of webhooks for an Amplify app.
//
// 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 Amplify's
// API operation ListWebhooks for usage and error information.
//
// Returned Error Types:
// * BadRequestException
// A request contains unexpected data.
//
// * UnauthorizedException
// An operation failed due to a lack of access.
//
// * InternalFailureException
// The service failed to perform an operation due to an internal issue.
//
// * LimitExceededException
// A resource could not be created because service quotas were exceeded.
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/amplify-2017-07-25/ListWebhooks
func (c *Amplify) ListWebhooks(input *ListWebhooksInput) (*ListWebhooksOutput, error) {
req, out := c.ListWebhooksRequest(input)
return out, req.Send()
}
// ListWebhooksWithContext is the same as ListWebhooks with the addition of
// the ability to pass a context and additional request options.
//
// See ListWebhooks for details on how to use this API operation.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
func (c *Amplify) ListWebhooksWithContext(ctx aws.Context, input *ListWebhooksInput, opts ...request.Option) (*ListWebhooksOutput, error) {
req, out := c.ListWebhooksRequest(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
const opStartDeployment = "StartDeployment"
// StartDeploymentRequest generates a "aws/request.Request" representing the
// client's request for the StartDeployment 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 StartDeployment for more information on using the StartDeployment
// 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 StartDeploymentRequest method.
// req, resp := client.StartDeploymentRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/amplify-2017-07-25/StartDeployment
func (c *Amplify) StartDeploymentRequest(input *StartDeploymentInput) (req *request.Request, output *StartDeploymentOutput) {
op := &request.Operation{
Name: opStartDeployment,
HTTPMethod: "POST",
HTTPPath: "/apps/{appId}/branches/{branchName}/deployments/start",
}
if input == nil {
input = &StartDeploymentInput{}
}
output = &StartDeploymentOutput{}
req = c.newRequest(op, input, output)
return
}
// StartDeployment API operation for AWS Amplify.
//
// Starts a deployment for a manually deployed app. Manually deployed apps are
// not connected to a repository.
//
// 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 Amplify's
// API operation StartDeployment for usage and error information.
//
// Returned Error Types:
// * BadRequestException
// A request contains unexpected data.
//
// * UnauthorizedException
// An operation failed due to a lack of access.
//
// * InternalFailureException
// The service failed to perform an operation due to an internal issue.
//
// * NotFoundException
// An entity was not found during an operation.
//
// * LimitExceededException
// A resource could not be created because service quotas were exceeded.
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/amplify-2017-07-25/StartDeployment
func (c *Amplify) StartDeployment(input *StartDeploymentInput) (*StartDeploymentOutput, error) {
req, out := c.StartDeploymentRequest(input)
return out, req.Send()
}
// StartDeploymentWithContext is the same as StartDeployment with the addition of
// the ability to pass a context and additional request options.
//
// See StartDeployment for details on how to use this API operation.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
func (c *Amplify) StartDeploymentWithContext(ctx aws.Context, input *StartDeploymentInput, opts ...request.Option) (*StartDeploymentOutput, error) {
req, out := c.StartDeploymentRequest(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
const opStartJob = "StartJob"
// StartJobRequest generates a "aws/request.Request" representing the
// client's request for the StartJob 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 StartJob for more information on using the StartJob
// 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 StartJobRequest method.
// req, resp := client.StartJobRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/amplify-2017-07-25/StartJob
func (c *Amplify) StartJobRequest(input *StartJobInput) (req *request.Request, output *StartJobOutput) {
op := &request.Operation{
Name: opStartJob,
HTTPMethod: "POST",
HTTPPath: "/apps/{appId}/branches/{branchName}/jobs",
}
if input == nil {
input = &StartJobInput{}
}
output = &StartJobOutput{}
req = c.newRequest(op, input, output)
return
}
// StartJob API operation for AWS Amplify.
//
// Starts a new job for a branch of an Amplify app.
//
// 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 Amplify's
// API operation StartJob for usage and error information.
//
// Returned Error Types:
// * BadRequestException
// A request contains unexpected data.
//
// * UnauthorizedException
// An operation failed due to a lack of access.
//
// * InternalFailureException
// The service failed to perform an operation due to an internal issue.
//
// * NotFoundException
// An entity was not found during an operation.
//
// * LimitExceededException
// A resource could not be created because service quotas were exceeded.
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/amplify-2017-07-25/StartJob
func (c *Amplify) StartJob(input *StartJobInput) (*StartJobOutput, error) {
req, out := c.StartJobRequest(input)
return out, req.Send()
}
// StartJobWithContext is the same as StartJob with the addition of
// the ability to pass a context and additional request options.
//
// See StartJob for details on how to use this API operation.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
func (c *Amplify) StartJobWithContext(ctx aws.Context, input *StartJobInput, opts ...request.Option) (*StartJobOutput, error) {
req, out := c.StartJobRequest(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
const opStopJob = "StopJob"
// StopJobRequest generates a "aws/request.Request" representing the
// client's request for the StopJob 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 StopJob for more information on using the StopJob
// 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 StopJobRequest method.
// req, resp := client.StopJobRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/amplify-2017-07-25/StopJob
func (c *Amplify) StopJobRequest(input *StopJobInput) (req *request.Request, output *StopJobOutput) {
op := &request.Operation{
Name: opStopJob,
HTTPMethod: "DELETE",
HTTPPath: "/apps/{appId}/branches/{branchName}/jobs/{jobId}/stop",
}
if input == nil {
input = &StopJobInput{}
}
output = &StopJobOutput{}
req = c.newRequest(op, input, output)
return
}
// StopJob API operation for AWS Amplify.
//
// Stops a job that is in progress for a branch of an Amplify app.
//
// 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 Amplify's
// API operation StopJob for usage and error information.
//
// Returned Error Types:
// * BadRequestException
// A request contains unexpected data.
//
// * UnauthorizedException
// An operation failed due to a lack of access.
//
// * InternalFailureException
// The service failed to perform an operation due to an internal issue.
//
// * NotFoundException
// An entity was not found during an operation.
//
// * LimitExceededException
// A resource could not be created because service quotas were exceeded.
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/amplify-2017-07-25/StopJob
func (c *Amplify) StopJob(input *StopJobInput) (*StopJobOutput, error) {
req, out := c.StopJobRequest(input)
return out, req.Send()
}
// StopJobWithContext is the same as StopJob with the addition of
// the ability to pass a context and additional request options.
//
// See StopJob for details on how to use this API operation.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
func (c *Amplify) StopJobWithContext(ctx aws.Context, input *StopJobInput, opts ...request.Option) (*StopJobOutput, error) {
req, out := c.StopJobRequest(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
const opTagResource = "TagResource"
// TagResourceRequest generates a "aws/request.Request" representing the
// client's request for the TagResource operation. The "output" return
// value will be populated with the request's response once the request completes
// successfully.
//
// Use "Send" method on the returned Request to send the API call to the service.
// the "output" return value is not valid until after Send returns without error.
//
// See TagResource for more information on using the TagResource
// API call, and error handling.
//
// This method is useful when you want to inject custom logic or configuration
// into the SDK's request lifecycle. Such as custom headers, or retry logic.
//
//
// // Example sending a request using the TagResourceRequest method.
// req, resp := client.TagResourceRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/amplify-2017-07-25/TagResource
func (c *Amplify) TagResourceRequest(input *TagResourceInput) (req *request.Request, output *TagResourceOutput) {
op := &request.Operation{
Name: opTagResource,
HTTPMethod: "POST",
HTTPPath: "/tags/{resourceArn}",
}
if input == nil {
input = &TagResourceInput{}
}
output = &TagResourceOutput{}
req = c.newRequest(op, input, output)
req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
return
}
// TagResource API operation for AWS Amplify.
//
// Tags the resource with a tag key and value.
//
// 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 Amplify's
// API operation TagResource for usage and error information.
//
// Returned Error Types:
// * InternalFailureException
// The service failed to perform an operation due to an internal issue.
//
// * BadRequestException
// A request contains unexpected data.
//
// * ResourceNotFoundException
// An operation failed due to a non-existent resource.
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/amplify-2017-07-25/TagResource
func (c *Amplify) TagResource(input *TagResourceInput) (*TagResourceOutput, error) {
req, out := c.TagResourceRequest(input)
return out, req.Send()
}
// TagResourceWithContext is the same as TagResource with the addition of
// the ability to pass a context and additional request options.
//
// See TagResource for details on how to use this API operation.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
func (c *Amplify) TagResourceWithContext(ctx aws.Context, input *TagResourceInput, opts ...request.Option) (*TagResourceOutput, error) {
req, out := c.TagResourceRequest(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
const opUntagResource = "UntagResource"
// UntagResourceRequest generates a "aws/request.Request" representing the
// client's request for the UntagResource operation. The "output" return
// value will be populated with the request's response once the request completes
// successfully.
//
// Use "Send" method on the returned Request to send the API call to the service.
// the "output" return value is not valid until after Send returns without error.
//
// See UntagResource for more information on using the UntagResource
// API call, and error handling.
//
// This method is useful when you want to inject custom logic or configuration
// into the SDK's request lifecycle. Such as custom headers, or retry logic.
//
//
// // Example sending a request using the UntagResourceRequest method.
// req, resp := client.UntagResourceRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/amplify-2017-07-25/UntagResource
func (c *Amplify) UntagResourceRequest(input *UntagResourceInput) (req *request.Request, output *UntagResourceOutput) {
op := &request.Operation{
Name: opUntagResource,
HTTPMethod: "DELETE",
HTTPPath: "/tags/{resourceArn}",
}
if input == nil {
input = &UntagResourceInput{}
}
output = &UntagResourceOutput{}
req = c.newRequest(op, input, output)
req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
return
}
// UntagResource API operation for AWS Amplify.
//
// Untags a resource with a specified Amazon Resource Name (ARN).
//
// 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 Amplify's
// API operation UntagResource for usage and error information.
//
// Returned Error Types:
// * InternalFailureException
// The service failed to perform an operation due to an internal issue.
//
// * BadRequestException
// A request contains unexpected data.
//
// * ResourceNotFoundException
// An operation failed due to a non-existent resource.
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/amplify-2017-07-25/UntagResource
func (c *Amplify) UntagResource(input *UntagResourceInput) (*UntagResourceOutput, error) {
req, out := c.UntagResourceRequest(input)
return out, req.Send()
}
// UntagResourceWithContext is the same as UntagResource with the addition of
// the ability to pass a context and additional request options.
//
// See UntagResource for details on how to use this API operation.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
func (c *Amplify) UntagResourceWithContext(ctx aws.Context, input *UntagResourceInput, opts ...request.Option) (*UntagResourceOutput, error) {
req, out := c.UntagResourceRequest(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
const opUpdateApp = "UpdateApp"
// UpdateAppRequest generates a "aws/request.Request" representing the
// client's request for the UpdateApp 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 UpdateApp for more information on using the UpdateApp
// 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 UpdateAppRequest method.
// req, resp := client.UpdateAppRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/amplify-2017-07-25/UpdateApp
func (c *Amplify) UpdateAppRequest(input *UpdateAppInput) (req *request.Request, output *UpdateAppOutput) {
op := &request.Operation{
Name: opUpdateApp,
HTTPMethod: "POST",
HTTPPath: "/apps/{appId}",
}
if input == nil {
input = &UpdateAppInput{}
}
output = &UpdateAppOutput{}
req = c.newRequest(op, input, output)
return
}
// UpdateApp API operation for AWS Amplify.
//
// Updates an existing Amplify app.
//
// 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 Amplify's
// API operation UpdateApp for usage and error information.
//
// Returned Error Types:
// * BadRequestException
// A request contains unexpected data.
//
// * NotFoundException
// An entity was not found during an operation.
//
// * UnauthorizedException
// An operation failed due to a lack of access.
//
// * InternalFailureException
// The service failed to perform an operation due to an internal issue.
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/amplify-2017-07-25/UpdateApp
func (c *Amplify) UpdateApp(input *UpdateAppInput) (*UpdateAppOutput, error) {
req, out := c.UpdateAppRequest(input)
return out, req.Send()
}
// UpdateAppWithContext is the same as UpdateApp with the addition of
// the ability to pass a context and additional request options.
//
// See UpdateApp for details on how to use this API operation.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
func (c *Amplify) UpdateAppWithContext(ctx aws.Context, input *UpdateAppInput, opts ...request.Option) (*UpdateAppOutput, error) {
req, out := c.UpdateAppRequest(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
const opUpdateBranch = "UpdateBranch"
// UpdateBranchRequest generates a "aws/request.Request" representing the
// client's request for the UpdateBranch 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 UpdateBranch for more information on using the UpdateBranch
// 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 UpdateBranchRequest method.
// req, resp := client.UpdateBranchRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/amplify-2017-07-25/UpdateBranch
func (c *Amplify) UpdateBranchRequest(input *UpdateBranchInput) (req *request.Request, output *UpdateBranchOutput) {
op := &request.Operation{
Name: opUpdateBranch,
HTTPMethod: "POST",
HTTPPath: "/apps/{appId}/branches/{branchName}",
}
if input == nil {
input = &UpdateBranchInput{}
}
output = &UpdateBranchOutput{}
req = c.newRequest(op, input, output)
return
}
// UpdateBranch API operation for AWS Amplify.
//
// Updates a branch for an Amplify app.
//
// 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 Amplify's
// API operation UpdateBranch for usage and error information.
//
// Returned Error Types:
// * BadRequestException
// A request contains unexpected data.
//
// * UnauthorizedException
// An operation failed due to a lack of access.
//
// * NotFoundException
// An entity was not found during an operation.
//
// * InternalFailureException
// The service failed to perform an operation due to an internal issue.
//
// * DependentServiceFailureException
// An operation failed because a dependent service threw an exception.
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/amplify-2017-07-25/UpdateBranch
func (c *Amplify) UpdateBranch(input *UpdateBranchInput) (*UpdateBranchOutput, error) {
req, out := c.UpdateBranchRequest(input)
return out, req.Send()
}
// UpdateBranchWithContext is the same as UpdateBranch with the addition of
// the ability to pass a context and additional request options.
//
// See UpdateBranch for details on how to use this API operation.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
func (c *Amplify) UpdateBranchWithContext(ctx aws.Context, input *UpdateBranchInput, opts ...request.Option) (*UpdateBranchOutput, error) {
req, out := c.UpdateBranchRequest(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
const opUpdateDomainAssociation = "UpdateDomainAssociation"
// UpdateDomainAssociationRequest generates a "aws/request.Request" representing the
// client's request for the UpdateDomainAssociation 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 UpdateDomainAssociation for more information on using the UpdateDomainAssociation
// 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 UpdateDomainAssociationRequest method.
// req, resp := client.UpdateDomainAssociationRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/amplify-2017-07-25/UpdateDomainAssociation
func (c *Amplify) UpdateDomainAssociationRequest(input *UpdateDomainAssociationInput) (req *request.Request, output *UpdateDomainAssociationOutput) {
op := &request.Operation{
Name: opUpdateDomainAssociation,
HTTPMethod: "POST",
HTTPPath: "/apps/{appId}/domains/{domainName}",
}
if input == nil {
input = &UpdateDomainAssociationInput{}
}
output = &UpdateDomainAssociationOutput{}
req = c.newRequest(op, input, output)
return
}
// UpdateDomainAssociation API operation for AWS Amplify.
//
// Creates a new domain association for an Amplify app.
//
// 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 Amplify's
// API operation UpdateDomainAssociation for usage and error information.
//
// Returned Error Types:
// * BadRequestException
// A request contains unexpected data.
//
// * UnauthorizedException
// An operation failed due to a lack of access.
//
// * NotFoundException
// An entity was not found during an operation.
//
// * InternalFailureException
// The service failed to perform an operation due to an internal issue.
//
// * DependentServiceFailureException
// An operation failed because a dependent service threw an exception.
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/amplify-2017-07-25/UpdateDomainAssociation
func (c *Amplify) UpdateDomainAssociation(input *UpdateDomainAssociationInput) (*UpdateDomainAssociationOutput, error) {
req, out := c.UpdateDomainAssociationRequest(input)
return out, req.Send()
}
// UpdateDomainAssociationWithContext is the same as UpdateDomainAssociation with the addition of
// the ability to pass a context and additional request options.
//
// See UpdateDomainAssociation for details on how to use this API operation.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
func (c *Amplify) UpdateDomainAssociationWithContext(ctx aws.Context, input *UpdateDomainAssociationInput, opts ...request.Option) (*UpdateDomainAssociationOutput, error) {
req, out := c.UpdateDomainAssociationRequest(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
const opUpdateWebhook = "UpdateWebhook"
// UpdateWebhookRequest generates a "aws/request.Request" representing the
// client's request for the UpdateWebhook 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 UpdateWebhook for more information on using the UpdateWebhook
// 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 UpdateWebhookRequest method.
// req, resp := client.UpdateWebhookRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/amplify-2017-07-25/UpdateWebhook
func (c *Amplify) UpdateWebhookRequest(input *UpdateWebhookInput) (req *request.Request, output *UpdateWebhookOutput) {
op := &request.Operation{
Name: opUpdateWebhook,
HTTPMethod: "POST",
HTTPPath: "/webhooks/{webhookId}",
}
if input == nil {
input = &UpdateWebhookInput{}
}
output = &UpdateWebhookOutput{}
req = c.newRequest(op, input, output)
return
}
// UpdateWebhook API operation for AWS Amplify.
//
// Updates a webhook.
//
// 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 Amplify's
// API operation UpdateWebhook for usage and error information.
//
// Returned Error Types:
// * BadRequestException
// A request contains unexpected data.
//
// * UnauthorizedException
// An operation failed due to a lack of access.
//
// * NotFoundException
// An entity was not found during an operation.
//
// * InternalFailureException
// The service failed to perform an operation due to an internal issue.
//
// * DependentServiceFailureException
// An operation failed because a dependent service threw an exception.
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/amplify-2017-07-25/UpdateWebhook
func (c *Amplify) UpdateWebhook(input *UpdateWebhookInput) (*UpdateWebhookOutput, error) {
req, out := c.UpdateWebhookRequest(input)
return out, req.Send()
}
// UpdateWebhookWithContext is the same as UpdateWebhook with the addition of
// the ability to pass a context and additional request options.
//
// See UpdateWebhook for details on how to use this API operation.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
func (c *Amplify) UpdateWebhookWithContext(ctx aws.Context, input *UpdateWebhookInput, opts ...request.Option) (*UpdateWebhookOutput, error) {
req, out := c.UpdateWebhookRequest(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
// Represents the different branches of a repository for building, deploying,
// and hosting an Amplify app.
type App struct {
_ struct{} `type:"structure"`
// The Amazon Resource Name (ARN) of the Amplify app.
//
// AppArn is a required field
AppArn *string `locationName:"appArn" type:"string" required:"true"`
// The unique ID of the Amplify app.
//
// AppId is a required field
AppId *string `locationName:"appId" min:"1" type:"string" required:"true"`
// Describes the automated branch creation configuration for the Amplify app.
AutoBranchCreationConfig *AutoBranchCreationConfig `locationName:"autoBranchCreationConfig" type:"structure"`
// Describes the automated branch creation glob patterns for the Amplify app.
AutoBranchCreationPatterns []*string `locationName:"autoBranchCreationPatterns" type:"list"`
// The basic authorization credentials for branches for the Amplify app.
BasicAuthCredentials *string `locationName:"basicAuthCredentials" type:"string" sensitive:"true"`
// Describes the content of the build specification (build spec) for the Amplify
// app.
BuildSpec *string `locationName:"buildSpec" min:"1" type:"string"`
// Creates a date and time for the Amplify app.
//
// CreateTime is a required field
CreateTime *time.Time `locationName:"createTime" type:"timestamp" required:"true"`
// Describes the custom HTTP headers for the Amplify app.
CustomHeaders *string `locationName:"customHeaders" min:"1" type:"string"`
// Describes the custom redirect and rewrite rules for the Amplify app.
CustomRules []*CustomRule `locationName:"customRules" type:"list"`
// The default domain for the Amplify app.
//
// DefaultDomain is a required field
DefaultDomain *string `locationName:"defaultDomain" min:"1" type:"string" required:"true"`
// The description for the Amplify app.
//
// Description is a required field
Description *string `locationName:"description" type:"string" required:"true"`
// Enables automated branch creation for the Amplify app.
EnableAutoBranchCreation *bool `locationName:"enableAutoBranchCreation" type:"boolean"`
// Enables basic authorization for the Amplify app's branches.
//
// EnableBasicAuth is a required field
EnableBasicAuth *bool `locationName:"enableBasicAuth" type:"boolean" required:"true"`
// Enables the auto-building of branches for the Amplify app.
//
// EnableBranchAutoBuild is a required field
EnableBranchAutoBuild *bool `locationName:"enableBranchAutoBuild" type:"boolean" required:"true"`
// Automatically disconnect a branch in the Amplify Console when you delete
// a branch from your Git repository.
EnableBranchAutoDeletion *bool `locationName:"enableBranchAutoDeletion" type:"boolean"`
// The environment variables for the Amplify app.
//
// EnvironmentVariables is a required field
EnvironmentVariables map[string]*string `locationName:"environmentVariables" type:"map" required:"true"`
// The AWS Identity and Access Management (IAM) service role for the Amazon
// Resource Name (ARN) of the Amplify app.
IamServiceRoleArn *string `locationName:"iamServiceRoleArn" min:"1" type:"string"`
// The name for the Amplify app.
//
// Name is a required field
Name *string `locationName:"name" min:"1" type:"string" required:"true"`
// The platform for the Amplify app.
//
// Platform is a required field
Platform *string `locationName:"platform" type:"string" required:"true" enum:"Platform"`
// Describes the information about a production branch of the Amplify app.
ProductionBranch *ProductionBranch `locationName:"productionBranch" type:"structure"`
// The repository for the Amplify app.
//
// Repository is a required field
Repository *string `locationName:"repository" type:"string" required:"true"`
// The tag for the Amplify app.
Tags map[string]*string `locationName:"tags" min:"1" type:"map"`
// Updates the date and time for the Amplify app.
//
// UpdateTime is a required field
UpdateTime *time.Time `locationName:"updateTime" type:"timestamp" required:"true"`
}
// String returns the string representation
func (s App) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s App) GoString() string {
return s.String()
}
// SetAppArn sets the AppArn field's value.
func (s *App) SetAppArn(v string) *App {
s.AppArn = &v
return s
}
// SetAppId sets the AppId field's value.
func (s *App) SetAppId(v string) *App {
s.AppId = &v
return s
}
// SetAutoBranchCreationConfig sets the AutoBranchCreationConfig field's value.
func (s *App) SetAutoBranchCreationConfig(v *AutoBranchCreationConfig) *App {
s.AutoBranchCreationConfig = v
return s
}
// SetAutoBranchCreationPatterns sets the AutoBranchCreationPatterns field's value.
func (s *App) SetAutoBranchCreationPatterns(v []*string) *App {
s.AutoBranchCreationPatterns = v
return s
}
// SetBasicAuthCredentials sets the BasicAuthCredentials field's value.
func (s *App) SetBasicAuthCredentials(v string) *App {
s.BasicAuthCredentials = &v
return s
}
// SetBuildSpec sets the BuildSpec field's value.
func (s *App) SetBuildSpec(v string) *App {
s.BuildSpec = &v
return s
}
// SetCreateTime sets the CreateTime field's value.
func (s *App) SetCreateTime(v time.Time) *App {
s.CreateTime = &v
return s
}
// SetCustomHeaders sets the CustomHeaders field's value.
func (s *App) SetCustomHeaders(v string) *App {
s.CustomHeaders = &v
return s
}
// SetCustomRules sets the CustomRules field's value.
func (s *App) SetCustomRules(v []*CustomRule) *App {
s.CustomRules = v
return s
}
// SetDefaultDomain sets the DefaultDomain field's value.
func (s *App) SetDefaultDomain(v string) *App {
s.DefaultDomain = &v
return s
}
// SetDescription sets the Description field's value.
func (s *App) SetDescription(v string) *App {
s.Description = &v
return s
}
// SetEnableAutoBranchCreation sets the EnableAutoBranchCreation field's value.
func (s *App) SetEnableAutoBranchCreation(v bool) *App {
s.EnableAutoBranchCreation = &v
return s
}
// SetEnableBasicAuth sets the EnableBasicAuth field's value.
func (s *App) SetEnableBasicAuth(v bool) *App {
s.EnableBasicAuth = &v
return s
}
// SetEnableBranchAutoBuild sets the EnableBranchAutoBuild field's value.
func (s *App) SetEnableBranchAutoBuild(v bool) *App {
s.EnableBranchAutoBuild = &v
return s
}
// SetEnableBranchAutoDeletion sets the EnableBranchAutoDeletion field's value.
func (s *App) SetEnableBranchAutoDeletion(v bool) *App {
s.EnableBranchAutoDeletion = &v
return s
}
// SetEnvironmentVariables sets the EnvironmentVariables field's value.
func (s *App) SetEnvironmentVariables(v map[string]*string) *App {
s.EnvironmentVariables = v
return s
}
// SetIamServiceRoleArn sets the IamServiceRoleArn field's value.
func (s *App) SetIamServiceRoleArn(v string) *App {
s.IamServiceRoleArn = &v
return s
}
// SetName sets the Name field's value.
func (s *App) SetName(v string) *App {
s.Name = &v
return s
}
// SetPlatform sets the Platform field's value.
func (s *App) SetPlatform(v string) *App {
s.Platform = &v
return s
}
// SetProductionBranch sets the ProductionBranch field's value.
func (s *App) SetProductionBranch(v *ProductionBranch) *App {
s.ProductionBranch = v
return s
}
// SetRepository sets the Repository field's value.
func (s *App) SetRepository(v string) *App {
s.Repository = &v
return s
}
// SetTags sets the Tags field's value.
func (s *App) SetTags(v map[string]*string) *App {
s.Tags = v
return s
}
// SetUpdateTime sets the UpdateTime field's value.
func (s *App) SetUpdateTime(v time.Time) *App {
s.UpdateTime = &v
return s
}
// Describes an artifact.
type Artifact struct {
_ struct{} `type:"structure"`
// The file name for the artifact.
//
// ArtifactFileName is a required field
ArtifactFileName *string `locationName:"artifactFileName" type:"string" required:"true"`
// The unique ID for the artifact.
//
// ArtifactId is a required field
ArtifactId *string `locationName:"artifactId" type:"string" required:"true"`
}
// String returns the string representation
func (s Artifact) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s Artifact) GoString() string {
return s.String()
}
// SetArtifactFileName sets the ArtifactFileName field's value.
func (s *Artifact) SetArtifactFileName(v string) *Artifact {
s.ArtifactFileName = &v
return s
}
// SetArtifactId sets the ArtifactId field's value.
func (s *Artifact) SetArtifactId(v string) *Artifact {
s.ArtifactId = &v
return s
}
// Describes the automated branch creation configuration.
type AutoBranchCreationConfig struct {
_ struct{} `type:"structure"`
// The basic authorization credentials for the autocreated branch.
BasicAuthCredentials *string `locationName:"basicAuthCredentials" type:"string" sensitive:"true"`
// The build specification (build spec) for the autocreated branch.
BuildSpec *string `locationName:"buildSpec" min:"1" type:"string"`
// Enables auto building for the autocreated branch.
EnableAutoBuild *bool `locationName:"enableAutoBuild" type:"boolean"`
// Enables basic authorization for the autocreated branch.
EnableBasicAuth *bool `locationName:"enableBasicAuth" type:"boolean"`
// Enables performance mode for the branch.
//
// Performance mode optimizes for faster hosting performance by keeping content
// cached at the edge for a longer interval. When performance mode is enabled,
// hosting configuration or code changes can take up to 10 minutes to roll out.
EnablePerformanceMode *bool `locationName:"enablePerformanceMode" type:"boolean"`
// Enables pull request previews for the autocreated branch.
EnablePullRequestPreview *bool `locationName:"enablePullRequestPreview" type:"boolean"`
// The environment variables for the autocreated branch.
EnvironmentVariables map[string]*string `locationName:"environmentVariables" type:"map"`
// The framework for the autocreated branch.
Framework *string `locationName:"framework" type:"string"`
// The Amplify environment name for the pull request.
PullRequestEnvironmentName *string `locationName:"pullRequestEnvironmentName" type:"string"`
// Describes the current stage for the autocreated branch.
Stage *string `locationName:"stage" type:"string" enum:"Stage"`
}
// String returns the string representation
func (s AutoBranchCreationConfig) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s AutoBranchCreationConfig) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
func (s *AutoBranchCreationConfig) Validate() error {
invalidParams := request.ErrInvalidParams{Context: "AutoBranchCreationConfig"}
if s.BuildSpec != nil && len(*s.BuildSpec) < 1 {
invalidParams.Add(request.NewErrParamMinLen("BuildSpec", 1))
}
if invalidParams.Len() > 0 {
return invalidParams
}
return nil
}
// SetBasicAuthCredentials sets the BasicAuthCredentials field's value.
func (s *AutoBranchCreationConfig) SetBasicAuthCredentials(v string) *AutoBranchCreationConfig {
s.BasicAuthCredentials = &v
return s
}
// SetBuildSpec sets the BuildSpec field's value.
func (s *AutoBranchCreationConfig) SetBuildSpec(v string) *AutoBranchCreationConfig {
s.BuildSpec = &v
return s
}
// SetEnableAutoBuild sets the EnableAutoBuild field's value.
func (s *AutoBranchCreationConfig) SetEnableAutoBuild(v bool) *AutoBranchCreationConfig {
s.EnableAutoBuild = &v
return s
}
// SetEnableBasicAuth sets the EnableBasicAuth field's value.
func (s *AutoBranchCreationConfig) SetEnableBasicAuth(v bool) *AutoBranchCreationConfig {
s.EnableBasicAuth = &v
return s
}
// SetEnablePerformanceMode sets the EnablePerformanceMode field's value.
func (s *AutoBranchCreationConfig) SetEnablePerformanceMode(v bool) *AutoBranchCreationConfig {
s.EnablePerformanceMode = &v
return s
}
// SetEnablePullRequestPreview sets the EnablePullRequestPreview field's value.
func (s *AutoBranchCreationConfig) SetEnablePullRequestPreview(v bool) *AutoBranchCreationConfig {
s.EnablePullRequestPreview = &v
return s
}
// SetEnvironmentVariables sets the EnvironmentVariables field's value.
func (s *AutoBranchCreationConfig) SetEnvironmentVariables(v map[string]*string) *AutoBranchCreationConfig {
s.EnvironmentVariables = v
return s
}
// SetFramework sets the Framework field's value.
func (s *AutoBranchCreationConfig) SetFramework(v string) *AutoBranchCreationConfig {
s.Framework = &v
return s
}
// SetPullRequestEnvironmentName sets the PullRequestEnvironmentName field's value.
func (s *AutoBranchCreationConfig) SetPullRequestEnvironmentName(v string) *AutoBranchCreationConfig {
s.PullRequestEnvironmentName = &v
return s
}
// SetStage sets the Stage field's value.
func (s *AutoBranchCreationConfig) SetStage(v string) *AutoBranchCreationConfig {
s.Stage = &v
return s
}
// Describes the backend environment for an Amplify app.
type BackendEnvironment struct {
_ struct{} `type:"structure"`
// The Amazon Resource Name (ARN) for a backend environment that is part of
// an Amplify app.
//
// BackendEnvironmentArn is a required field
BackendEnvironmentArn *string `locationName:"backendEnvironmentArn" min:"1" type:"string" required:"true"`
// The creation date and time for a backend environment that is part of an Amplify
// app.
//
// CreateTime is a required field
CreateTime *time.Time `locationName:"createTime" type:"timestamp" required:"true"`
// The name of deployment artifacts.
DeploymentArtifacts *string `locationName:"deploymentArtifacts" min:"1" type:"string"`
// The name for a backend environment that is part of an Amplify app.
//
// EnvironmentName is a required field
EnvironmentName *string `locationName:"environmentName" min:"1" type:"string" required:"true"`
// The AWS CloudFormation stack name of a backend environment.
StackName *string `locationName:"stackName" min:"1" type:"string"`
// The last updated date and time for a backend environment that is part of
// an Amplify app.
//
// UpdateTime is a required field
UpdateTime *time.Time `locationName:"updateTime" type:"timestamp" required:"true"`
}
// String returns the string representation
func (s BackendEnvironment) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s BackendEnvironment) GoString() string {
return s.String()
}
// SetBackendEnvironmentArn sets the BackendEnvironmentArn field's value.
func (s *BackendEnvironment) SetBackendEnvironmentArn(v string) *BackendEnvironment {
s.BackendEnvironmentArn = &v
return s
}
// SetCreateTime sets the CreateTime field's value.
func (s *BackendEnvironment) SetCreateTime(v time.Time) *BackendEnvironment {
s.CreateTime = &v
return s
}
// SetDeploymentArtifacts sets the DeploymentArtifacts field's value.
func (s *BackendEnvironment) SetDeploymentArtifacts(v string) *BackendEnvironment {
s.DeploymentArtifacts = &v
return s
}
// SetEnvironmentName sets the EnvironmentName field's value.
func (s *BackendEnvironment) SetEnvironmentName(v string) *BackendEnvironment {
s.EnvironmentName = &v
return s
}
// SetStackName sets the StackName field's value.
func (s *BackendEnvironment) SetStackName(v string) *BackendEnvironment {
s.StackName = &v
return s
}
// SetUpdateTime sets the UpdateTime field's value.
func (s *BackendEnvironment) SetUpdateTime(v time.Time) *BackendEnvironment {
s.UpdateTime = &v
return s
}
// A request contains unexpected data.
type BadRequestException struct {
_ struct{} `type:"structure"`
RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
// String returns the string representation
func (s BadRequestException) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s BadRequestException) GoString() string {
return s.String()
}
func newErrorBadRequestException(v protocol.ResponseMetadata) error {
return &BadRequestException{
RespMetadata: v,
}
}
// Code returns the exception type name.
func (s *BadRequestException) Code() string {
return "BadRequestException"
}
// Message returns the exception's message.
func (s *BadRequestException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
return ""
}
// OrigErr always returns nil, satisfies awserr.Error interface.
func (s *BadRequestException) OrigErr() error {
return nil
}
func (s *BadRequestException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
func (s *BadRequestException) StatusCode() int {
return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
func (s *BadRequestException) RequestID() string {
return s.RespMetadata.RequestID
}
// The branch for an Amplify app, which maps to a third-party repository branch.
type Branch struct {
_ struct{} `type:"structure"`
// The ID of the active job for a branch of an Amplify app.
//
// ActiveJobId is a required field
ActiveJobId *string `locationName:"activeJobId" type:"string" required:"true"`
// A list of custom resources that are linked to this branch.
AssociatedResources []*string `locationName:"associatedResources" type:"list"`
// The Amazon Resource Name (ARN) for a backend environment that is part of
// an Amplify app.
BackendEnvironmentArn *string `locationName:"backendEnvironmentArn" min:"1" type:"string"`
// The basic authorization credentials for a branch of an Amplify app.
BasicAuthCredentials *string `locationName:"basicAuthCredentials" type:"string" sensitive:"true"`
// The Amazon Resource Name (ARN) for a branch that is part of an Amplify app.
//
// BranchArn is a required field
BranchArn *string `locationName:"branchArn" type:"string" required:"true"`
// The name for the branch that is part of an Amplify app.
//
// BranchName is a required field
BranchName *string `locationName:"branchName" min:"1" type:"string" required:"true"`
// The build specification (build spec) content for the branch of an Amplify
// app.
BuildSpec *string `locationName:"buildSpec" min:"1" type:"string"`
// The creation date and time for a branch that is part of an Amplify app.
//
// CreateTime is a required field
CreateTime *time.Time `locationName:"createTime" type:"timestamp" required:"true"`
// The custom domains for a branch of an Amplify app.
//
// CustomDomains is a required field
CustomDomains []*string `locationName:"customDomains" type:"list" required:"true"`
// The description for the branch that is part of an Amplify app.
//
// Description is a required field
Description *string `locationName:"description" type:"string" required:"true"`
// The destination branch if the branch is a pull request branch.
DestinationBranch *string `locationName:"destinationBranch" min:"1" type:"string"`
// The display name for the branch. This is used as the default domain prefix.
//
// DisplayName is a required field
DisplayName *string `locationName:"displayName" type:"string" required:"true"`
// Enables auto-building on push for a branch of an Amplify app.
//
// EnableAutoBuild is a required field
EnableAutoBuild *bool `locationName:"enableAutoBuild" type:"boolean" required:"true"`
// Enables basic authorization for a branch of an Amplify app.
//
// EnableBasicAuth is a required field
EnableBasicAuth *bool `locationName:"enableBasicAuth" type:"boolean" required:"true"`
// Enables notifications for a branch that is part of an Amplify app.
//
// EnableNotification is a required field
EnableNotification *bool `locationName:"enableNotification" type:"boolean" required:"true"`
// Enables performance mode for the branch.
//
// Performance mode optimizes for faster hosting performance by keeping content
// cached at the edge for a longer interval. When performance mode is enabled,
// hosting configuration or code changes can take up to 10 minutes to roll out.
EnablePerformanceMode *bool `locationName:"enablePerformanceMode" type:"boolean"`
// Enables pull request previews for the branch.
//
// EnablePullRequestPreview is a required field
EnablePullRequestPreview *bool `locationName:"enablePullRequestPreview" type:"boolean" required:"true"`
// The environment variables specific to a branch of an Amplify app.
//
// EnvironmentVariables is a required field
EnvironmentVariables map[string]*string `locationName:"environmentVariables" type:"map" required:"true"`
// The framework for a branch of an Amplify app.
//
// Framework is a required field
Framework *string `locationName:"framework" type:"string" required:"true"`
// The Amplify environment name for the pull request.
PullRequestEnvironmentName *string `locationName:"pullRequestEnvironmentName" type:"string"`
// The source branch if the branch is a pull request branch.
SourceBranch *string `locationName:"sourceBranch" min:"1" type:"string"`
// The current stage for the branch that is part of an Amplify app.
//
// Stage is a required field
Stage *string `locationName:"stage" type:"string" required:"true" enum:"Stage"`
// The tag for the branch of an Amplify app.
Tags map[string]*string `locationName:"tags" min:"1" type:"map"`
// The thumbnail URL for the branch of an Amplify app.
ThumbnailUrl *string `locationName:"thumbnailUrl" min:"1" type:"string"`
// The total number of jobs that are part of an Amplify app.
//
// TotalNumberOfJobs is a required field
TotalNumberOfJobs *string `locationName:"totalNumberOfJobs" type:"string" required:"true"`
// The content Time to Live (TTL) for the website in seconds.
//
// Ttl is a required field
Ttl *string `locationName:"ttl" type:"string" required:"true"`
// The last updated date and time for a branch that is part of an Amplify app.
//
// UpdateTime is a required field
UpdateTime *time.Time `locationName:"updateTime" type:"timestamp" required:"true"`
}
// String returns the string representation
func (s Branch) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s Branch) GoString() string {
return s.String()
}
// SetActiveJobId sets the ActiveJobId field's value.
func (s *Branch) SetActiveJobId(v string) *Branch {
s.ActiveJobId = &v
return s
}
// SetAssociatedResources sets the AssociatedResources field's value.
func (s *Branch) SetAssociatedResources(v []*string) *Branch {
s.AssociatedResources = v
return s
}
// SetBackendEnvironmentArn sets the BackendEnvironmentArn field's value.
func (s *Branch) SetBackendEnvironmentArn(v string) *Branch {
s.BackendEnvironmentArn = &v
return s
}
// SetBasicAuthCredentials sets the BasicAuthCredentials field's value.
func (s *Branch) SetBasicAuthCredentials(v string) *Branch {
s.BasicAuthCredentials = &v
return s
}
// SetBranchArn sets the BranchArn field's value.
func (s *Branch) SetBranchArn(v string) *Branch {
s.BranchArn = &v
return s
}
// SetBranchName sets the BranchName field's value.
func (s *Branch) SetBranchName(v string) *Branch {
s.BranchName = &v
return s
}
// SetBuildSpec sets the BuildSpec field's value.
func (s *Branch) SetBuildSpec(v string) *Branch {
s.BuildSpec = &v
return s
}
// SetCreateTime sets the CreateTime field's value.
func (s *Branch) SetCreateTime(v time.Time) *Branch {
s.CreateTime = &v
return s
}
// SetCustomDomains sets the CustomDomains field's value.
func (s *Branch) SetCustomDomains(v []*string) *Branch {
s.CustomDomains = v
return s
}
// SetDescription sets the Description field's value.
func (s *Branch) SetDescription(v string) *Branch {
s.Description = &v
return s
}
// SetDestinationBranch sets the DestinationBranch field's value.
func (s *Branch) SetDestinationBranch(v string) *Branch {
s.DestinationBranch = &v
return s
}
// SetDisplayName sets the DisplayName field's value.
func (s *Branch) SetDisplayName(v string) *Branch {
s.DisplayName = &v
return s
}
// SetEnableAutoBuild sets the EnableAutoBuild field's value.
func (s *Branch) SetEnableAutoBuild(v bool) *Branch {
s.EnableAutoBuild = &v
return s
}
// SetEnableBasicAuth sets the EnableBasicAuth field's value.
func (s *Branch) SetEnableBasicAuth(v bool) *Branch {
s.EnableBasicAuth = &v
return s
}
// SetEnableNotification sets the EnableNotification field's value.
func (s *Branch) SetEnableNotification(v bool) *Branch {
s.EnableNotification = &v
return s
}
// SetEnablePerformanceMode sets the EnablePerformanceMode field's value.
func (s *Branch) SetEnablePerformanceMode(v bool) *Branch {
s.EnablePerformanceMode = &v
return s
}
// SetEnablePullRequestPreview sets the EnablePullRequestPreview field's value.
func (s *Branch) SetEnablePullRequestPreview(v bool) *Branch {
s.EnablePullRequestPreview = &v
return s
}
// SetEnvironmentVariables sets the EnvironmentVariables field's value.
func (s *Branch) SetEnvironmentVariables(v map[string]*string) *Branch {
s.EnvironmentVariables = v
return s
}
// SetFramework sets the Framework field's value.
func (s *Branch) SetFramework(v string) *Branch {
s.Framework = &v
return s
}
// SetPullRequestEnvironmentName sets the PullRequestEnvironmentName field's value.
func (s *Branch) SetPullRequestEnvironmentName(v string) *Branch {
s.PullRequestEnvironmentName = &v
return s
}
// SetSourceBranch sets the SourceBranch field's value.
func (s *Branch) SetSourceBranch(v string) *Branch {
s.SourceBranch = &v
return s
}
// SetStage sets the Stage field's value.
func (s *Branch) SetStage(v string) *Branch {
s.Stage = &v
return s
}
// SetTags sets the Tags field's value.
func (s *Branch) SetTags(v map[string]*string) *Branch {
s.Tags = v
return s
}
// SetThumbnailUrl sets the ThumbnailUrl field's value.
func (s *Branch) SetThumbnailUrl(v string) *Branch {
s.ThumbnailUrl = &v
return s
}
// SetTotalNumberOfJobs sets the TotalNumberOfJobs field's value.
func (s *Branch) SetTotalNumberOfJobs(v string) *Branch {
s.TotalNumberOfJobs = &v
return s
}
// SetTtl sets the Ttl field's value.
func (s *Branch) SetTtl(v string) *Branch {
s.Ttl = &v
return s
}
// SetUpdateTime sets the UpdateTime field's value.
func (s *Branch) SetUpdateTime(v time.Time) *Branch {
s.UpdateTime = &v
return s
}
// The request structure used to create apps in Amplify.
type CreateAppInput struct {
_ struct{} `type:"structure"`
// The personal access token for a third-party source control system for an
// Amplify app. The personal access token is used to create a webhook and a
// read-only deploy key. The token is not stored.
AccessToken *string `locationName:"accessToken" min:"1" type:"string" sensitive:"true"`
// The automated branch creation configuration for an Amplify app.
AutoBranchCreationConfig *AutoBranchCreationConfig `locationName:"autoBranchCreationConfig" type:"structure"`
// The automated branch creation glob patterns for an Amplify app.
AutoBranchCreationPatterns []*string `locationName:"autoBranchCreationPatterns" type:"list"`
// The credentials for basic authorization for an Amplify app.
BasicAuthCredentials *string `locationName:"basicAuthCredentials" type:"string" sensitive:"true"`
// The build specification (build spec) for an Amplify app.
BuildSpec *string `locationName:"buildSpec" min:"1" type:"string"`
// The custom HTTP headers for an Amplify app.
CustomHeaders *string `locationName:"customHeaders" min:"1" type:"string"`
// The custom rewrite and redirect rules for an Amplify app.
CustomRules []*CustomRule `locationName:"customRules" type:"list"`
// The description for an Amplify app.
Description *string `locationName:"description" type:"string"`
// Enables automated branch creation for an Amplify app.
EnableAutoBranchCreation *bool `locationName:"enableAutoBranchCreation" type:"boolean"`
// Enables basic authorization for an Amplify app. This will apply to all branches
// that are part of this app.
EnableBasicAuth *bool `locationName:"enableBasicAuth" type:"boolean"`
// Enables the auto building of branches for an Amplify app.
EnableBranchAutoBuild *bool `locationName:"enableBranchAutoBuild" type:"boolean"`
// Automatically disconnects a branch in the Amplify Console when you delete
// a branch from your Git repository.
EnableBranchAutoDeletion *bool `locationName:"enableBranchAutoDeletion" type:"boolean"`
// The environment variables map for an Amplify app.
EnvironmentVariables map[string]*string `locationName:"environmentVariables" type:"map"`
// The AWS Identity and Access Management (IAM) service role for an Amplify
// app.
IamServiceRoleArn *string `locationName:"iamServiceRoleArn" min:"1" type:"string"`
// The name for an Amplify app.
//
// Name is a required field
Name *string `locationName:"name" min:"1" type:"string" required:"true"`
// The OAuth token for a third-party source control system for an Amplify app.
// The OAuth token is used to create a webhook and a read-only deploy key. The
// OAuth token is not stored.
OauthToken *string `locationName:"oauthToken" type:"string" sensitive:"true"`
// The platform or framework for an Amplify app.
Platform *string `locationName:"platform" type:"string" enum:"Platform"`
// The repository for an Amplify app.
Repository *string `locationName:"repository" type:"string"`
// The tag for an Amplify app.
Tags map[string]*string `locationName:"tags" min:"1" type:"map"`
}
// String returns the string representation
func (s CreateAppInput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s CreateAppInput) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
func (s *CreateAppInput) Validate() error {
invalidParams := request.ErrInvalidParams{Context: "CreateAppInput"}
if s.AccessToken != nil && len(*s.AccessToken) < 1 {
invalidParams.Add(request.NewErrParamMinLen("AccessToken", 1))
}
if s.BuildSpec != nil && len(*s.BuildSpec) < 1 {
invalidParams.Add(request.NewErrParamMinLen("BuildSpec", 1))
}
if s.CustomHeaders != nil && len(*s.CustomHeaders) < 1 {
invalidParams.Add(request.NewErrParamMinLen("CustomHeaders", 1))
}
if s.IamServiceRoleArn != nil && len(*s.IamServiceRoleArn) < 1 {
invalidParams.Add(request.NewErrParamMinLen("IamServiceRoleArn", 1))
}
if s.Name == nil {
invalidParams.Add(request.NewErrParamRequired("Name"))
}
if s.Name != nil && len(*s.Name) < 1 {
invalidParams.Add(request.NewErrParamMinLen("Name", 1))
}
if s.Tags != nil && len(s.Tags) < 1 {
invalidParams.Add(request.NewErrParamMinLen("Tags", 1))
}
if s.AutoBranchCreationConfig != nil {
if err := s.AutoBranchCreationConfig.Validate(); err != nil {
invalidParams.AddNested("AutoBranchCreationConfig", err.(request.ErrInvalidParams))
}
}
if s.CustomRules != nil {
for i, v := range s.CustomRules {
if v == nil {
continue
}
if err := v.Validate(); err != nil {
invalidParams.AddNested(fmt.Sprintf("%s[%v]", "CustomRules", i), err.(request.ErrInvalidParams))
}
}
}
if invalidParams.Len() > 0 {
return invalidParams
}
return nil
}
// SetAccessToken sets the AccessToken field's value.
func (s *CreateAppInput) SetAccessToken(v string) *CreateAppInput {
s.AccessToken = &v
return s
}
// SetAutoBranchCreationConfig sets the AutoBranchCreationConfig field's value.
func (s *CreateAppInput) SetAutoBranchCreationConfig(v *AutoBranchCreationConfig) *CreateAppInput {
s.AutoBranchCreationConfig = v
return s
}
// SetAutoBranchCreationPatterns sets the AutoBranchCreationPatterns field's value.
func (s *CreateAppInput) SetAutoBranchCreationPatterns(v []*string) *CreateAppInput {
s.AutoBranchCreationPatterns = v
return s
}
// SetBasicAuthCredentials sets the BasicAuthCredentials field's value.
func (s *CreateAppInput) SetBasicAuthCredentials(v string) *CreateAppInput {
s.BasicAuthCredentials = &v
return s
}
// SetBuildSpec sets the BuildSpec field's value.
func (s *CreateAppInput) SetBuildSpec(v string) *CreateAppInput {
s.BuildSpec = &v
return s
}
// SetCustomHeaders sets the CustomHeaders field's value.
func (s *CreateAppInput) SetCustomHeaders(v string) *CreateAppInput {
s.CustomHeaders = &v
return s
}
// SetCustomRules sets the CustomRules field's value.
func (s *CreateAppInput) SetCustomRules(v []*CustomRule) *CreateAppInput {
s.CustomRules = v
return s
}
// SetDescription sets the Description field's value.
func (s *CreateAppInput) SetDescription(v string) *CreateAppInput {
s.Description = &v
return s
}
// SetEnableAutoBranchCreation sets the EnableAutoBranchCreation field's value.
func (s *CreateAppInput) SetEnableAutoBranchCreation(v bool) *CreateAppInput {
s.EnableAutoBranchCreation = &v
return s
}
// SetEnableBasicAuth sets the EnableBasicAuth field's value.
func (s *CreateAppInput) SetEnableBasicAuth(v bool) *CreateAppInput {
s.EnableBasicAuth = &v
return s
}
// SetEnableBranchAutoBuild sets the EnableBranchAutoBuild field's value.
func (s *CreateAppInput) SetEnableBranchAutoBuild(v bool) *CreateAppInput {
s.EnableBranchAutoBuild = &v
return s
}
// SetEnableBranchAutoDeletion sets the EnableBranchAutoDeletion field's value.
func (s *CreateAppInput) SetEnableBranchAutoDeletion(v bool) *CreateAppInput {
s.EnableBranchAutoDeletion = &v
return s
}
// SetEnvironmentVariables sets the EnvironmentVariables field's value.
func (s *CreateAppInput) SetEnvironmentVariables(v map[string]*string) *CreateAppInput {
s.EnvironmentVariables = v
return s
}
// SetIamServiceRoleArn sets the IamServiceRoleArn field's value.
func (s *CreateAppInput) SetIamServiceRoleArn(v string) *CreateAppInput {
s.IamServiceRoleArn = &v
return s
}
// SetName sets the Name field's value.
func (s *CreateAppInput) SetName(v string) *CreateAppInput {
s.Name = &v
return s
}
// SetOauthToken sets the OauthToken field's value.
func (s *CreateAppInput) SetOauthToken(v string) *CreateAppInput {
s.OauthToken = &v
return s
}
// SetPlatform sets the Platform field's value.
func (s *CreateAppInput) SetPlatform(v string) *CreateAppInput {
s.Platform = &v
return s
}
// SetRepository sets the Repository field's value.
func (s *CreateAppInput) SetRepository(v string) *CreateAppInput {
s.Repository = &v
return s
}
// SetTags sets the Tags field's value.
func (s *CreateAppInput) SetTags(v map[string]*string) *CreateAppInput {
s.Tags = v
return s
}
type CreateAppOutput struct {
_ struct{} `type:"structure"`
// Represents the different branches of a repository for building, deploying,
// and hosting an Amplify app.
//
// App is a required field
App *App `locationName:"app" type:"structure" required:"true"`
}
// String returns the string representation
func (s CreateAppOutput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s CreateAppOutput) GoString() string {
return s.String()
}
// SetApp sets the App field's value.
func (s *CreateAppOutput) SetApp(v *App) *CreateAppOutput {
s.App = v
return s
}
// The request structure for the backend environment create request.
type CreateBackendEnvironmentInput struct {
_ struct{} `type:"structure"`
// The unique ID for an Amplify app.
//
// AppId is a required field
AppId *string `location:"uri" locationName:"appId" min:"1" type:"string" required:"true"`
// The name of deployment artifacts.
DeploymentArtifacts *string `locationName:"deploymentArtifacts" min:"1" type:"string"`
// The name for the backend environment.
//
// EnvironmentName is a required field
EnvironmentName *string `locationName:"environmentName" min:"1" type:"string" required:"true"`
// The AWS CloudFormation stack name of a backend environment.
StackName *string `locationName:"stackName" min:"1" type:"string"`
}
// String returns the string representation
func (s CreateBackendEnvironmentInput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s CreateBackendEnvironmentInput) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
func (s *CreateBackendEnvironmentInput) Validate() error {
invalidParams := request.ErrInvalidParams{Context: "CreateBackendEnvironmentInput"}
if s.AppId == nil {
invalidParams.Add(request.NewErrParamRequired("AppId"))
}
if s.AppId != nil && len(*s.AppId) < 1 {
invalidParams.Add(request.NewErrParamMinLen("AppId", 1))
}
if s.DeploymentArtifacts != nil && len(*s.DeploymentArtifacts) < 1 {
invalidParams.Add(request.NewErrParamMinLen("DeploymentArtifacts", 1))
}
if s.EnvironmentName == nil {
invalidParams.Add(request.NewErrParamRequired("EnvironmentName"))
}
if s.EnvironmentName != nil && len(*s.EnvironmentName) < 1 {
invalidParams.Add(request.NewErrParamMinLen("EnvironmentName", 1))
}
if s.StackName != nil && len(*s.StackName) < 1 {
invalidParams.Add(request.NewErrParamMinLen("StackName", 1))
}
if invalidParams.Len() > 0 {
return invalidParams
}
return nil
}
// SetAppId sets the AppId field's value.
func (s *CreateBackendEnvironmentInput) SetAppId(v string) *CreateBackendEnvironmentInput {
s.AppId = &v
return s
}
// SetDeploymentArtifacts sets the DeploymentArtifacts field's value.
func (s *CreateBackendEnvironmentInput) SetDeploymentArtifacts(v string) *CreateBackendEnvironmentInput {
s.DeploymentArtifacts = &v
return s
}
// SetEnvironmentName sets the EnvironmentName field's value.
func (s *CreateBackendEnvironmentInput) SetEnvironmentName(v string) *CreateBackendEnvironmentInput {
s.EnvironmentName = &v
return s
}
// SetStackName sets the StackName field's value.
func (s *CreateBackendEnvironmentInput) SetStackName(v string) *CreateBackendEnvironmentInput {
s.StackName = &v
return s
}
// The result structure for the create backend environment request.
type CreateBackendEnvironmentOutput struct {
_ struct{} `type:"structure"`
// Describes the backend environment for an Amplify app.
//
// BackendEnvironment is a required field
BackendEnvironment *BackendEnvironment `locationName:"backendEnvironment" type:"structure" required:"true"`
}
// String returns the string representation
func (s CreateBackendEnvironmentOutput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s CreateBackendEnvironmentOutput) GoString() string {
return s.String()
}
// SetBackendEnvironment sets the BackendEnvironment field's value.
func (s *CreateBackendEnvironmentOutput) SetBackendEnvironment(v *BackendEnvironment) *CreateBackendEnvironmentOutput {
s.BackendEnvironment = v
return s
}
// The request structure for the create branch request.
type CreateBranchInput struct {
_ struct{} `type:"structure"`
// The unique ID for an Amplify app.
//
// AppId is a required field
AppId *string `location:"uri" locationName:"appId" min:"1" type:"string" required:"true"`
// The Amazon Resource Name (ARN) for a backend environment that is part of
// an Amplify app.
BackendEnvironmentArn *string `locationName:"backendEnvironmentArn" min:"1" type:"string"`
// The basic authorization credentials for the branch.
BasicAuthCredentials *string `locationName:"basicAuthCredentials" type:"string" sensitive:"true"`
// The name for the branch.
//
// BranchName is a required field
BranchName *string `locationName:"branchName" min:"1" type:"string" required:"true"`
// The build specification (build spec) for the branch.
BuildSpec *string `locationName:"buildSpec" min:"1" type:"string"`
// The description for the branch.
Description *string `locationName:"description" type:"string"`
// The display name for a branch. This is used as the default domain prefix.
DisplayName *string `locationName:"displayName" type:"string"`
// Enables auto building for the branch.
EnableAutoBuild *bool `locationName:"enableAutoBuild" type:"boolean"`
// Enables basic authorization for the branch.
EnableBasicAuth *bool `locationName:"enableBasicAuth" type:"boolean"`
// Enables notifications for the branch.
EnableNotification *bool `locationName:"enableNotification" type:"boolean"`
// Enables performance mode for the branch.
//
// Performance mode optimizes for faster hosting performance by keeping content
// cached at the edge for a longer interval. When performance mode is enabled,
// hosting configuration or code changes can take up to 10 minutes to roll out.
EnablePerformanceMode *bool `locationName:"enablePerformanceMode" type:"boolean"`
// Enables pull request previews for this branch.
EnablePullRequestPreview *bool `locationName:"enablePullRequestPreview" type:"boolean"`
// The environment variables for the branch.
EnvironmentVariables map[string]*string `locationName:"environmentVariables" type:"map"`
// The framework for the branch.
Framework *string `locationName:"framework" type:"string"`
// The Amplify environment name for the pull request.
PullRequestEnvironmentName *string `locationName:"pullRequestEnvironmentName" type:"string"`
// Describes the current stage for the branch.
Stage *string `locationName:"stage" type:"string" enum:"Stage"`
// The tag for the branch.
Tags map[string]*string `locationName:"tags" min:"1" type:"map"`
// The content Time To Live (TTL) for the website in seconds.
Ttl *string `locationName:"ttl" type:"string"`
}
// String returns the string representation
func (s CreateBranchInput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s CreateBranchInput) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
func (s *CreateBranchInput) Validate() error {
invalidParams := request.ErrInvalidParams{Context: "CreateBranchInput"}
if s.AppId == nil {
invalidParams.Add(request.NewErrParamRequired("AppId"))
}
if s.AppId != nil && len(*s.AppId) < 1 {
invalidParams.Add(request.NewErrParamMinLen("AppId", 1))
}
if s.BackendEnvironmentArn != nil && len(*s.BackendEnvironmentArn) < 1 {
invalidParams.Add(request.NewErrParamMinLen("BackendEnvironmentArn", 1))
}
if s.BranchName == nil {
invalidParams.Add(request.NewErrParamRequired("BranchName"))
}
if s.BranchName != nil && len(*s.BranchName) < 1 {
invalidParams.Add(request.NewErrParamMinLen("BranchName", 1))
}
if s.BuildSpec != nil && len(*s.BuildSpec) < 1 {
invalidParams.Add(request.NewErrParamMinLen("BuildSpec", 1))
}
if s.Tags != nil && len(s.Tags) < 1 {
invalidParams.Add(request.NewErrParamMinLen("Tags", 1))
}
if invalidParams.Len() > 0 {
return invalidParams
}
return nil
}
// SetAppId sets the AppId field's value.
func (s *CreateBranchInput) SetAppId(v string) *CreateBranchInput {
s.AppId = &v
return s
}
// SetBackendEnvironmentArn sets the BackendEnvironmentArn field's value.
func (s *CreateBranchInput) SetBackendEnvironmentArn(v string) *CreateBranchInput {
s.BackendEnvironmentArn = &v
return s
}
// SetBasicAuthCredentials sets the BasicAuthCredentials field's value.
func (s *CreateBranchInput) SetBasicAuthCredentials(v string) *CreateBranchInput {
s.BasicAuthCredentials = &v
return s
}
// SetBranchName sets the BranchName field's value.
func (s *CreateBranchInput) SetBranchName(v string) *CreateBranchInput {
s.BranchName = &v
return s
}
// SetBuildSpec sets the BuildSpec field's value.
func (s *CreateBranchInput) SetBuildSpec(v string) *CreateBranchInput {
s.BuildSpec = &v
return s
}
// SetDescription sets the Description field's value.
func (s *CreateBranchInput) SetDescription(v string) *CreateBranchInput {
s.Description = &v
return s
}
// SetDisplayName sets the DisplayName field's value.
func (s *CreateBranchInput) SetDisplayName(v string) *CreateBranchInput {
s.DisplayName = &v
return s
}
// SetEnableAutoBuild sets the EnableAutoBuild field's value.
func (s *CreateBranchInput) SetEnableAutoBuild(v bool) *CreateBranchInput {
s.EnableAutoBuild = &v
return s
}
// SetEnableBasicAuth sets the EnableBasicAuth field's value.
func (s *CreateBranchInput) SetEnableBasicAuth(v bool) *CreateBranchInput {
s.EnableBasicAuth = &v
return s
}
// SetEnableNotification sets the EnableNotification field's value.
func (s *CreateBranchInput) SetEnableNotification(v bool) *CreateBranchInput {
s.EnableNotification = &v
return s
}
// SetEnablePerformanceMode sets the EnablePerformanceMode field's value.
func (s *CreateBranchInput) SetEnablePerformanceMode(v bool) *CreateBranchInput {
s.EnablePerformanceMode = &v
return s
}
// SetEnablePullRequestPreview sets the EnablePullRequestPreview field's value.
func (s *CreateBranchInput) SetEnablePullRequestPreview(v bool) *CreateBranchInput {
s.EnablePullRequestPreview = &v
return s
}
// SetEnvironmentVariables sets the EnvironmentVariables field's value.
func (s *CreateBranchInput) SetEnvironmentVariables(v map[string]*string) *CreateBranchInput {
s.EnvironmentVariables = v
return s
}
// SetFramework sets the Framework field's value.
func (s *CreateBranchInput) SetFramework(v string) *CreateBranchInput {
s.Framework = &v
return s
}
// SetPullRequestEnvironmentName sets the PullRequestEnvironmentName field's value.
func (s *CreateBranchInput) SetPullRequestEnvironmentName(v string) *CreateBranchInput {
s.PullRequestEnvironmentName = &v
return s
}
// SetStage sets the Stage field's value.
func (s *CreateBranchInput) SetStage(v string) *CreateBranchInput {
s.Stage = &v
return s
}
// SetTags sets the Tags field's value.
func (s *CreateBranchInput) SetTags(v map[string]*string) *CreateBranchInput {
s.Tags = v
return s
}
// SetTtl sets the Ttl field's value.
func (s *CreateBranchInput) SetTtl(v string) *CreateBranchInput {
s.Ttl = &v
return s
}
// The result structure for create branch request.
type CreateBranchOutput struct {
_ struct{} `type:"structure"`
// Describes the branch for an Amplify app, which maps to a third-party repository
// branch.
//
// Branch is a required field
Branch *Branch `locationName:"branch" type:"structure" required:"true"`
}
// String returns the string representation
func (s CreateBranchOutput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s CreateBranchOutput) GoString() string {
return s.String()
}
// SetBranch sets the Branch field's value.
func (s *CreateBranchOutput) SetBranch(v *Branch) *CreateBranchOutput {
s.Branch = v
return s
}
// The request structure for the create a new deployment request.
type CreateDeploymentInput struct {
_ struct{} `type:"structure"`
// The unique ID for an Amplify app.
//
// AppId is a required field
AppId *string `location:"uri" locationName:"appId" min:"1" type:"string" required:"true"`
// The name for the branch, for the job.
//
// BranchName is a required field
BranchName *string `location:"uri" locationName:"branchName" min:"1" type:"string" required:"true"`
// An optional file map that contains the file name as the key and the file
// content md5 hash as the value. If this argument is provided, the service
// will generate a unique upload URL per file. Otherwise, the service will only
// generate a single upload URL for the zipped files.
FileMap map[string]*string `locationName:"fileMap" type:"map"`
}
// String returns the string representation
func (s CreateDeploymentInput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s CreateDeploymentInput) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
func (s *CreateDeploymentInput) Validate() error {
invalidParams := request.ErrInvalidParams{Context: "CreateDeploymentInput"}
if s.AppId == nil {
invalidParams.Add(request.NewErrParamRequired("AppId"))
}
if s.AppId != nil && len(*s.AppId) < 1 {
invalidParams.Add(request.NewErrParamMinLen("AppId", 1))
}
if s.BranchName == nil {
invalidParams.Add(request.NewErrParamRequired("BranchName"))
}
if s.BranchName != nil && len(*s.BranchName) < 1 {
invalidParams.Add(request.NewErrParamMinLen("BranchName", 1))
}
if invalidParams.Len() > 0 {
return invalidParams
}
return nil
}
// SetAppId sets the AppId field's value.
func (s *CreateDeploymentInput) SetAppId(v string) *CreateDeploymentInput {
s.AppId = &v
return s
}
// SetBranchName sets the BranchName field's value.
func (s *CreateDeploymentInput) SetBranchName(v string) *CreateDeploymentInput {
s.BranchName = &v
return s
}
// SetFileMap sets the FileMap field's value.
func (s *CreateDeploymentInput) SetFileMap(v map[string]*string) *CreateDeploymentInput {
s.FileMap = v
return s
}
// The result structure for the create a new deployment request.
type CreateDeploymentOutput struct {
_ struct{} `type:"structure"`
// When the fileMap argument is provided in the request, fileUploadUrls will
// contain a map of file names to upload URLs.
//
// FileUploadUrls is a required field
FileUploadUrls map[string]*string `locationName:"fileUploadUrls" type:"map" required:"true"`
// The job ID for this deployment. will supply to start deployment api.
JobId *string `locationName:"jobId" type:"string"`
// When the fileMap argument is not provided in the request, this zipUploadUrl
// is returned.
//
// ZipUploadUrl is a required field
ZipUploadUrl *string `locationName:"zipUploadUrl" type:"string" required:"true"`
}
// String returns the string representation
func (s CreateDeploymentOutput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s CreateDeploymentOutput) GoString() string {
return s.String()
}
// SetFileUploadUrls sets the FileUploadUrls field's value.
func (s *CreateDeploymentOutput) SetFileUploadUrls(v map[string]*string) *CreateDeploymentOutput {
s.FileUploadUrls = v
return s
}
// SetJobId sets the JobId field's value.
func (s *CreateDeploymentOutput) SetJobId(v string) *CreateDeploymentOutput {
s.JobId = &v
return s
}
// SetZipUploadUrl sets the ZipUploadUrl field's value.
func (s *CreateDeploymentOutput) SetZipUploadUrl(v string) *CreateDeploymentOutput {
s.ZipUploadUrl = &v
return s
}
// The request structure for the create domain association request.
type CreateDomainAssociationInput struct {
_ struct{} `type:"structure"`
// The unique ID for an Amplify app.
//
// AppId is a required field
AppId *string `location:"uri" locationName:"appId" min:"1" type:"string" required:"true"`
// Sets the branch patterns for automatic subdomain creation.
AutoSubDomainCreationPatterns []*string `locationName:"autoSubDomainCreationPatterns" type:"list"`
// The required AWS Identity and Access Management (IAM) service role for the
// Amazon Resource Name (ARN) for automatically creating subdomains.
AutoSubDomainIAMRole *string `locationName:"autoSubDomainIAMRole" type:"string"`
// The domain name for the domain association.
//
// DomainName is a required field
DomainName *string `locationName:"domainName" type:"string" required:"true"`
// Enables the automated creation of subdomains for branches.
EnableAutoSubDomain *bool `locationName:"enableAutoSubDomain" type:"boolean"`
// The setting for the subdomain.
//
// SubDomainSettings is a required field
SubDomainSettings []*SubDomainSetting `locationName:"subDomainSettings" type:"list" required:"true"`
}
// String returns the string representation
func (s CreateDomainAssociationInput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s CreateDomainAssociationInput) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
func (s *CreateDomainAssociationInput) Validate() error {
invalidParams := request.ErrInvalidParams{Context: "CreateDomainAssociationInput"}
if s.AppId == nil {
invalidParams.Add(request.NewErrParamRequired("AppId"))
}
if s.AppId != nil && len(*s.AppId) < 1 {
invalidParams.Add(request.NewErrParamMinLen("AppId", 1))
}
if s.DomainName == nil {
invalidParams.Add(request.NewErrParamRequired("DomainName"))
}
if s.SubDomainSettings == nil {
invalidParams.Add(request.NewErrParamRequired("SubDomainSettings"))
}
if s.SubDomainSettings != nil {
for i, v := range s.SubDomainSettings {
if v == nil {
continue
}
if err := v.Validate(); err != nil {
invalidParams.AddNested(fmt.Sprintf("%s[%v]", "SubDomainSettings", i), err.(request.ErrInvalidParams))
}
}
}
if invalidParams.Len() > 0 {
return invalidParams
}
return nil
}
// SetAppId sets the AppId field's value.
func (s *CreateDomainAssociationInput) SetAppId(v string) *CreateDomainAssociationInput {
s.AppId = &v
return s
}
// SetAutoSubDomainCreationPatterns sets the AutoSubDomainCreationPatterns field's value.
func (s *CreateDomainAssociationInput) SetAutoSubDomainCreationPatterns(v []*string) *CreateDomainAssociationInput {
s.AutoSubDomainCreationPatterns = v
return s
}
// SetAutoSubDomainIAMRole sets the AutoSubDomainIAMRole field's value.
func (s *CreateDomainAssociationInput) SetAutoSubDomainIAMRole(v string) *CreateDomainAssociationInput {
s.AutoSubDomainIAMRole = &v
return s
}
// SetDomainName sets the DomainName field's value.
func (s *CreateDomainAssociationInput) SetDomainName(v string) *CreateDomainAssociationInput {
s.DomainName = &v
return s
}
// SetEnableAutoSubDomain sets the EnableAutoSubDomain field's value.
func (s *CreateDomainAssociationInput) SetEnableAutoSubDomain(v bool) *CreateDomainAssociationInput {
s.EnableAutoSubDomain = &v
return s
}
// SetSubDomainSettings sets the SubDomainSettings field's value.
func (s *CreateDomainAssociationInput) SetSubDomainSettings(v []*SubDomainSetting) *CreateDomainAssociationInput {
s.SubDomainSettings = v
return s
}
// The result structure for the create domain association request.
type CreateDomainAssociationOutput struct {
_ struct{} `type:"structure"`
// Describes the structure of a domain association, which associates a custom
// domain with an Amplify app.
//
// DomainAssociation is a required field
DomainAssociation *DomainAssociation `locationName:"domainAssociation" type:"structure" required:"true"`
}
// String returns the string representation
func (s CreateDomainAssociationOutput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s CreateDomainAssociationOutput) GoString() string {
return s.String()
}
// SetDomainAssociation sets the DomainAssociation field's value.
func (s *CreateDomainAssociationOutput) SetDomainAssociation(v *DomainAssociation) *CreateDomainAssociationOutput {
s.DomainAssociation = v
return s
}
// The request structure for the create webhook request.
type CreateWebhookInput struct {
_ struct{} `type:"structure"`
// The unique ID for an Amplify app.
//
// AppId is a required field
AppId *string `location:"uri" locationName:"appId" min:"1" type:"string" required:"true"`
// The name for a branch that is part of an Amplify app.
//
// BranchName is a required field
BranchName *string `locationName:"branchName" min:"1" type:"string" required:"true"`
// The description for a webhook.
Description *string `locationName:"description" type:"string"`
}
// String returns the string representation
func (s CreateWebhookInput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s CreateWebhookInput) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
func (s *CreateWebhookInput) Validate() error {
invalidParams := request.ErrInvalidParams{Context: "CreateWebhookInput"}
if s.AppId == nil {
invalidParams.Add(request.NewErrParamRequired("AppId"))
}
if s.AppId != nil && len(*s.AppId) < 1 {
invalidParams.Add(request.NewErrParamMinLen("AppId", 1))
}
if s.BranchName == nil {
invalidParams.Add(request.NewErrParamRequired("BranchName"))
}
if s.BranchName != nil && len(*s.BranchName) < 1 {
invalidParams.Add(request.NewErrParamMinLen("BranchName", 1))
}
if invalidParams.Len() > 0 {
return invalidParams
}
return nil
}
// SetAppId sets the AppId field's value.
func (s *CreateWebhookInput) SetAppId(v string) *CreateWebhookInput {
s.AppId = &v
return s
}
// SetBranchName sets the BranchName field's value.
func (s *CreateWebhookInput) SetBranchName(v string) *CreateWebhookInput {
s.BranchName = &v
return s
}
// SetDescription sets the Description field's value.
func (s *CreateWebhookInput) SetDescription(v string) *CreateWebhookInput {
s.Description = &v
return s
}
// The result structure for the create webhook request.
type CreateWebhookOutput struct {
_ struct{} `type:"structure"`
// Describes a webhook that connects repository events to an Amplify app.
//
// Webhook is a required field
Webhook *Webhook `locationName:"webhook" type:"structure" required:"true"`
}
// String returns the string representation
func (s CreateWebhookOutput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s CreateWebhookOutput) GoString() string {
return s.String()
}
// SetWebhook sets the Webhook field's value.
func (s *CreateWebhookOutput) SetWebhook(v *Webhook) *CreateWebhookOutput {
s.Webhook = v
return s
}
// Describes a custom rewrite or redirect rule.
type CustomRule struct {
_ struct{} `type:"structure"`
// The condition for a URL rewrite or redirect rule, such as a country code.
Condition *string `locationName:"condition" min:"1" type:"string"`
// The source pattern for a URL rewrite or redirect rule.
//
// Source is a required field
Source *string `locationName:"source" min:"1" type:"string" required:"true"`
// The status code for a URL rewrite or redirect rule.
//
// 200
//
// Represents a 200 rewrite rule.
//
// 301
//
// Represents a 301 (moved pemanently) redirect rule. This and all future requests
// should be directed to the target URL.
//
// 302
//
// Represents a 302 temporary redirect rule.
//
// 404
//
// Represents a 404 redirect rule.
//
// 404-200
//
// Represents a 404 rewrite rule.
Status *string `locationName:"status" min:"3" type:"string"`
// The target pattern for a URL rewrite or redirect rule.
//
// Target is a required field
Target *string `locationName:"target" min:"1" type:"string" required:"true"`
}
// String returns the string representation
func (s CustomRule) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s CustomRule) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
func (s *CustomRule) Validate() error {
invalidParams := request.ErrInvalidParams{Context: "CustomRule"}
if s.Condition != nil && len(*s.Condition) < 1 {
invalidParams.Add(request.NewErrParamMinLen("Condition", 1))
}
if s.Source == nil {
invalidParams.Add(request.NewErrParamRequired("Source"))
}
if s.Source != nil && len(*s.Source) < 1 {
invalidParams.Add(request.NewErrParamMinLen("Source", 1))
}
if s.Status != nil && len(*s.Status) < 3 {
invalidParams.Add(request.NewErrParamMinLen("Status", 3))
}
if s.Target == nil {
invalidParams.Add(request.NewErrParamRequired("Target"))
}
if s.Target != nil && len(*s.Target) < 1 {
invalidParams.Add(request.NewErrParamMinLen("Target", 1))
}
if invalidParams.Len() > 0 {
return invalidParams
}
return nil
}
// SetCondition sets the Condition field's value.
func (s *CustomRule) SetCondition(v string) *CustomRule {
s.Condition = &v
return s
}
// SetSource sets the Source field's value.
func (s *CustomRule) SetSource(v string) *CustomRule {
s.Source = &v
return s
}
// SetStatus sets the Status field's value.
func (s *CustomRule) SetStatus(v string) *CustomRule {
s.Status = &v
return s
}
// SetTarget sets the Target field's value.
func (s *CustomRule) SetTarget(v string) *CustomRule {
s.Target = &v
return s
}
// Describes the request structure for the delete app request.
type DeleteAppInput struct {
_ struct{} `type:"structure"`
// The unique ID for an Amplify app.
//
// AppId is a required field
AppId *string `location:"uri" locationName:"appId" min:"1" type:"string" required:"true"`
}
// String returns the string representation
func (s DeleteAppInput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s DeleteAppInput) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
func (s *DeleteAppInput) Validate() error {
invalidParams := request.ErrInvalidParams{Context: "DeleteAppInput"}
if s.AppId == nil {
invalidParams.Add(request.NewErrParamRequired("AppId"))
}
if s.AppId != nil && len(*s.AppId) < 1 {
invalidParams.Add(request.NewErrParamMinLen("AppId", 1))
}
if invalidParams.Len() > 0 {
return invalidParams
}
return nil
}
// SetAppId sets the AppId field's value.
func (s *DeleteAppInput) SetAppId(v string) *DeleteAppInput {
s.AppId = &v
return s
}
// The result structure for the delete app request.
type DeleteAppOutput struct {
_ struct{} `type:"structure"`
// Represents the different branches of a repository for building, deploying,
// and hosting an Amplify app.
//
// App is a required field
App *App `locationName:"app" type:"structure" required:"true"`
}
// String returns the string representation
func (s DeleteAppOutput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s DeleteAppOutput) GoString() string {
return s.String()
}
// SetApp sets the App field's value.
func (s *DeleteAppOutput) SetApp(v *App) *DeleteAppOutput {
s.App = v
return s
}
// The request structure for the delete backend environment request.
type DeleteBackendEnvironmentInput struct {
_ struct{} `type:"structure"`
// The unique ID of an Amplify app.
//
// AppId is a required field
AppId *string `location:"uri" locationName:"appId" min:"1" type:"string" required:"true"`
// The name of a backend environment of an Amplify app.
//
// EnvironmentName is a required field
EnvironmentName *string `location:"uri" locationName:"environmentName" min:"1" type:"string" required:"true"`
}
// String returns the string representation
func (s DeleteBackendEnvironmentInput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s DeleteBackendEnvironmentInput) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
func (s *DeleteBackendEnvironmentInput) Validate() error {
invalidParams := request.ErrInvalidParams{Context: "DeleteBackendEnvironmentInput"}
if s.AppId == nil {
invalidParams.Add(request.NewErrParamRequired("AppId"))
}
if s.AppId != nil && len(*s.AppId) < 1 {
invalidParams.Add(request.NewErrParamMinLen("AppId", 1))
}
if s.EnvironmentName == nil {
invalidParams.Add(request.NewErrParamRequired("EnvironmentName"))
}
if s.EnvironmentName != nil && len(*s.EnvironmentName) < 1 {
invalidParams.Add(request.NewErrParamMinLen("EnvironmentName", 1))
}
if invalidParams.Len() > 0 {
return invalidParams
}
return nil
}
// SetAppId sets the AppId field's value.
func (s *DeleteBackendEnvironmentInput) SetAppId(v string) *DeleteBackendEnvironmentInput {
s.AppId = &v
return s
}
// SetEnvironmentName sets the EnvironmentName field's value.
func (s *DeleteBackendEnvironmentInput) SetEnvironmentName(v string) *DeleteBackendEnvironmentInput {
s.EnvironmentName = &v
return s
}
// The result structure of the delete backend environment result.
type DeleteBackendEnvironmentOutput struct {
_ struct{} `type:"structure"`
// Describes the backend environment for an Amplify app.
//
// BackendEnvironment is a required field
BackendEnvironment *BackendEnvironment `locationName:"backendEnvironment" type:"structure" required:"true"`
}
// String returns the string representation
func (s DeleteBackendEnvironmentOutput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s DeleteBackendEnvironmentOutput) GoString() string {
return s.String()
}
// SetBackendEnvironment sets the BackendEnvironment field's value.
func (s *DeleteBackendEnvironmentOutput) SetBackendEnvironment(v *BackendEnvironment) *DeleteBackendEnvironmentOutput {
s.BackendEnvironment = v
return s
}
// The request structure for the delete branch request.
type DeleteBranchInput struct {
_ struct{} `type:"structure"`
// The unique ID for an Amplify app.
//
// AppId is a required field
AppId *string `location:"uri" locationName:"appId" min:"1" type:"string" required:"true"`
// The name for the branch.
//
// BranchName is a required field
BranchName *string `location:"uri" locationName:"branchName" min:"1" type:"string" required:"true"`
}
// String returns the string representation
func (s DeleteBranchInput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s DeleteBranchInput) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
func (s *DeleteBranchInput) Validate() error {
invalidParams := request.ErrInvalidParams{Context: "DeleteBranchInput"}
if s.AppId == nil {
invalidParams.Add(request.NewErrParamRequired("AppId"))
}
if s.AppId != nil && len(*s.AppId) < 1 {
invalidParams.Add(request.NewErrParamMinLen("AppId", 1))
}
if s.BranchName == nil {
invalidParams.Add(request.NewErrParamRequired("BranchName"))
}
if s.BranchName != nil && len(*s.BranchName) < 1 {
invalidParams.Add(request.NewErrParamMinLen("BranchName", 1))
}
if invalidParams.Len() > 0 {
return invalidParams
}
return nil
}
// SetAppId sets the AppId field's value.
func (s *DeleteBranchInput) SetAppId(v string) *DeleteBranchInput {
s.AppId = &v
return s
}
// SetBranchName sets the BranchName field's value.
func (s *DeleteBranchInput) SetBranchName(v string) *DeleteBranchInput {
s.BranchName = &v
return s
}
// The result structure for the delete branch request.
type DeleteBranchOutput struct {
_ struct{} `type:"structure"`
// The branch for an Amplify app, which maps to a third-party repository branch.
//
// Branch is a required field
Branch *Branch `locationName:"branch" type:"structure" required:"true"`
}
// String returns the string representation
func (s DeleteBranchOutput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s DeleteBranchOutput) GoString() string {
return s.String()
}
// SetBranch sets the Branch field's value.
func (s *DeleteBranchOutput) SetBranch(v *Branch) *DeleteBranchOutput {
s.Branch = v
return s
}
// The request structure for the delete domain association request.
type DeleteDomainAssociationInput struct {
_ struct{} `type:"structure"`
// The unique id for an Amplify app.
//
// AppId is a required field
AppId *string `location:"uri" locationName:"appId" min:"1" type:"string" required:"true"`
// The name of the domain.
//
// DomainName is a required field
DomainName *string `location:"uri" locationName:"domainName" type:"string" required:"true"`
}
// String returns the string representation
func (s DeleteDomainAssociationInput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s DeleteDomainAssociationInput) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
func (s *DeleteDomainAssociationInput) Validate() error {
invalidParams := request.ErrInvalidParams{Context: "DeleteDomainAssociationInput"}
if s.AppId == nil {
invalidParams.Add(request.NewErrParamRequired("AppId"))
}
if s.AppId != nil && len(*s.AppId) < 1 {
invalidParams.Add(request.NewErrParamMinLen("AppId", 1))
}
if s.DomainName == nil {
invalidParams.Add(request.NewErrParamRequired("DomainName"))
}
if s.DomainName != nil && len(*s.DomainName) < 1 {
invalidParams.Add(request.NewErrParamMinLen("DomainName", 1))
}
if invalidParams.Len() > 0 {
return invalidParams
}
return nil
}
// SetAppId sets the AppId field's value.
func (s *DeleteDomainAssociationInput) SetAppId(v string) *DeleteDomainAssociationInput {
s.AppId = &v
return s
}
// SetDomainName sets the DomainName field's value.
func (s *DeleteDomainAssociationInput) SetDomainName(v string) *DeleteDomainAssociationInput {
s.DomainName = &v
return s
}
type DeleteDomainAssociationOutput struct {
_ struct{} `type:"structure"`
// Describes a domain association that associates a custom domain with an Amplify
// app.
//
// DomainAssociation is a required field
DomainAssociation *DomainAssociation `locationName:"domainAssociation" type:"structure" required:"true"`
}
// String returns the string representation
func (s DeleteDomainAssociationOutput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s DeleteDomainAssociationOutput) GoString() string {
return s.String()
}
// SetDomainAssociation sets the DomainAssociation field's value.
func (s *DeleteDomainAssociationOutput) SetDomainAssociation(v *DomainAssociation) *DeleteDomainAssociationOutput {
s.DomainAssociation = v
return s
}
// The request structure for the delete job request.
type DeleteJobInput struct {
_ struct{} `type:"structure"`
// The unique ID for an Amplify app.
//
// AppId is a required field
AppId *string `location:"uri" locationName:"appId" min:"1" type:"string" required:"true"`
// The name for the branch, for the job.
//
// BranchName is a required field
BranchName *string `location:"uri" locationName:"branchName" min:"1" type:"string" required:"true"`
// The unique ID for the job.
//
// JobId is a required field
JobId *string `location:"uri" locationName:"jobId" type:"string" required:"true"`
}
// String returns the string representation
func (s DeleteJobInput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s DeleteJobInput) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
func (s *DeleteJobInput) Validate() error {
invalidParams := request.ErrInvalidParams{Context: "DeleteJobInput"}
if s.AppId == nil {
invalidParams.Add(request.NewErrParamRequired("AppId"))
}
if s.AppId != nil && len(*s.AppId) < 1 {
invalidParams.Add(request.NewErrParamMinLen("AppId", 1))
}
if s.BranchName == nil {
invalidParams.Add(request.NewErrParamRequired("BranchName"))
}
if s.BranchName != nil && len(*s.BranchName) < 1 {
invalidParams.Add(request.NewErrParamMinLen("BranchName", 1))
}
if s.JobId == nil {
invalidParams.Add(request.NewErrParamRequired("JobId"))
}
if s.JobId != nil && len(*s.JobId) < 1 {
invalidParams.Add(request.NewErrParamMinLen("JobId", 1))
}
if invalidParams.Len() > 0 {
return invalidParams
}
return nil
}
// SetAppId sets the AppId field's value.
func (s *DeleteJobInput) SetAppId(v string) *DeleteJobInput {
s.AppId = &v
return s
}
// SetBranchName sets the BranchName field's value.
func (s *DeleteJobInput) SetBranchName(v string) *DeleteJobInput {
s.BranchName = &v
return s
}
// SetJobId sets the JobId field's value.
func (s *DeleteJobInput) SetJobId(v string) *DeleteJobInput {
s.JobId = &v
return s
}
// The result structure for the delete job request.
type DeleteJobOutput struct {
_ struct{} `type:"structure"`
// Describes the summary for an execution job for an Amplify app.
//
// JobSummary is a required field
JobSummary *JobSummary `locationName:"jobSummary" type:"structure" required:"true"`
}
// String returns the string representation
func (s DeleteJobOutput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s DeleteJobOutput) GoString() string {
return s.String()
}
// SetJobSummary sets the JobSummary field's value.
func (s *DeleteJobOutput) SetJobSummary(v *JobSummary) *DeleteJobOutput {
s.JobSummary = v
return s
}
// The request structure for the delete webhook request.
type DeleteWebhookInput struct {
_ struct{} `type:"structure"`
// The unique ID for a webhook.
//
// WebhookId is a required field
WebhookId *string `location:"uri" locationName:"webhookId" type:"string" required:"true"`
}
// String returns the string representation
func (s DeleteWebhookInput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s DeleteWebhookInput) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
func (s *DeleteWebhookInput) Validate() error {
invalidParams := request.ErrInvalidParams{Context: "DeleteWebhookInput"}
if s.WebhookId == nil {
invalidParams.Add(request.NewErrParamRequired("WebhookId"))
}
if s.WebhookId != nil && len(*s.WebhookId) < 1 {
invalidParams.Add(request.NewErrParamMinLen("WebhookId", 1))
}
if invalidParams.Len() > 0 {
return invalidParams
}
return nil
}
// SetWebhookId sets the WebhookId field's value.
func (s *DeleteWebhookInput) SetWebhookId(v string) *DeleteWebhookInput {
s.WebhookId = &v
return s
}
// The result structure for the delete webhook request.
type DeleteWebhookOutput struct {
_ struct{} `type:"structure"`
// Describes a webhook that connects repository events to an Amplify app.
//
// Webhook is a required field
Webhook *Webhook `locationName:"webhook" type:"structure" required:"true"`
}
// String returns the string representation
func (s DeleteWebhookOutput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s DeleteWebhookOutput) GoString() string {
return s.String()
}
// SetWebhook sets the Webhook field's value.
func (s *DeleteWebhookOutput) SetWebhook(v *Webhook) *DeleteWebhookOutput {
s.Webhook = v
return s
}
// An operation failed because a dependent service threw an exception.
type DependentServiceFailureException struct {
_ struct{} `type:"structure"`
RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
// String returns the string representation
func (s DependentServiceFailureException) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s DependentServiceFailureException) GoString() string {
return s.String()
}
func newErrorDependentServiceFailureException(v protocol.ResponseMetadata) error {
return &DependentServiceFailureException{
RespMetadata: v,
}
}
// Code returns the exception type name.
func (s *DependentServiceFailureException) Code() string {
return "DependentServiceFailureException"
}
// Message returns the exception's message.
func (s *DependentServiceFailureException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
return ""
}
// OrigErr always returns nil, satisfies awserr.Error interface.
func (s *DependentServiceFailureException) OrigErr() error {
return nil
}
func (s *DependentServiceFailureException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
func (s *DependentServiceFailureException) StatusCode() int {
return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
func (s *DependentServiceFailureException) RequestID() string {
return s.RespMetadata.RequestID
}
// Describes a domain association that associates a custom domain with an Amplify
// app.
type DomainAssociation struct {
_ struct{} `type:"structure"`
// Sets branch patterns for automatic subdomain creation.
AutoSubDomainCreationPatterns []*string `locationName:"autoSubDomainCreationPatterns" type:"list"`
// The required AWS Identity and Access Management (IAM) service role for the
// Amazon Resource Name (ARN) for automatically creating subdomains.
AutoSubDomainIAMRole *string `locationName:"autoSubDomainIAMRole" type:"string"`
// The DNS record for certificate verification.
CertificateVerificationDNSRecord *string `locationName:"certificateVerificationDNSRecord" type:"string"`
// The Amazon Resource Name (ARN) for the domain association.
//
// DomainAssociationArn is a required field
DomainAssociationArn *string `locationName:"domainAssociationArn" type:"string" required:"true"`
// The name of the domain.
//
// DomainName is a required field
DomainName *string `locationName:"domainName" type:"string" required:"true"`
// The current status of the domain association.
//
// DomainStatus is a required field
DomainStatus *string `locationName:"domainStatus" type:"string" required:"true" enum:"DomainStatus"`
// Enables the automated creation of subdomains for branches.
//
// EnableAutoSubDomain is a required field
EnableAutoSubDomain *bool `locationName:"enableAutoSubDomain" type:"boolean" required:"true"`
// The reason for the current status of the domain association.
//
// StatusReason is a required field
StatusReason *string `locationName:"statusReason" type:"string" required:"true"`
// The subdomains for the domain association.
//
// SubDomains is a required field
SubDomains []*SubDomain `locationName:"subDomains" type:"list" required:"true"`
}
// String returns the string representation
func (s DomainAssociation) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s DomainAssociation) GoString() string {
return s.String()
}
// SetAutoSubDomainCreationPatterns sets the AutoSubDomainCreationPatterns field's value.
func (s *DomainAssociation) SetAutoSubDomainCreationPatterns(v []*string) *DomainAssociation {
s.AutoSubDomainCreationPatterns = v
return s
}
// SetAutoSubDomainIAMRole sets the AutoSubDomainIAMRole field's value.
func (s *DomainAssociation) SetAutoSubDomainIAMRole(v string) *DomainAssociation {
s.AutoSubDomainIAMRole = &v
return s
}
// SetCertificateVerificationDNSRecord sets the CertificateVerificationDNSRecord field's value.
func (s *DomainAssociation) SetCertificateVerificationDNSRecord(v string) *DomainAssociation {
s.CertificateVerificationDNSRecord = &v
return s
}
// SetDomainAssociationArn sets the DomainAssociationArn field's value.
func (s *DomainAssociation) SetDomainAssociationArn(v string) *DomainAssociation {
s.DomainAssociationArn = &v
return s
}
// SetDomainName sets the DomainName field's value.
func (s *DomainAssociation) SetDomainName(v string) *DomainAssociation {
s.DomainName = &v
return s
}
// SetDomainStatus sets the DomainStatus field's value.
func (s *DomainAssociation) SetDomainStatus(v string) *DomainAssociation {
s.DomainStatus = &v
return s
}
// SetEnableAutoSubDomain sets the EnableAutoSubDomain field's value.
func (s *DomainAssociation) SetEnableAutoSubDomain(v bool) *DomainAssociation {
s.EnableAutoSubDomain = &v
return s
}
// SetStatusReason sets the StatusReason field's value.
func (s *DomainAssociation) SetStatusReason(v string) *DomainAssociation {
s.StatusReason = &v
return s
}
// SetSubDomains sets the SubDomains field's value.
func (s *DomainAssociation) SetSubDomains(v []*SubDomain) *DomainAssociation {
s.SubDomains = v
return s
}
// The request structure for the generate access logs request.
type GenerateAccessLogsInput struct {
_ struct{} `type:"structure"`
// The unique ID for an Amplify app.
//
// AppId is a required field
AppId *string `location:"uri" locationName:"appId" min:"1" type:"string" required:"true"`
// The name of the domain.
//
// DomainName is a required field
DomainName *string `locationName:"domainName" type:"string" required:"true"`
// The time at which the logs should end. The time range specified is inclusive
// of the end time.
EndTime *time.Time `locationName:"endTime" type:"timestamp"`
// The time at which the logs should start. The time range specified is inclusive
// of the start time.
StartTime *time.Time `locationName:"startTime" type:"timestamp"`
}
// String returns the string representation
func (s GenerateAccessLogsInput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s GenerateAccessLogsInput) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
func (s *GenerateAccessLogsInput) Validate() error {
invalidParams := request.ErrInvalidParams{Context: "GenerateAccessLogsInput"}
if s.AppId == nil {
invalidParams.Add(request.NewErrParamRequired("AppId"))
}
if s.AppId != nil && len(*s.AppId) < 1 {
invalidParams.Add(request.NewErrParamMinLen("AppId", 1))
}
if s.DomainName == nil {
invalidParams.Add(request.NewErrParamRequired("DomainName"))
}
if invalidParams.Len() > 0 {
return invalidParams
}
return nil
}
// SetAppId sets the AppId field's value.
func (s *GenerateAccessLogsInput) SetAppId(v string) *GenerateAccessLogsInput {
s.AppId = &v
return s
}
// SetDomainName sets the DomainName field's value.
func (s *GenerateAccessLogsInput) SetDomainName(v string) *GenerateAccessLogsInput {
s.DomainName = &v
return s
}
// SetEndTime sets the EndTime field's value.
func (s *GenerateAccessLogsInput) SetEndTime(v time.Time) *GenerateAccessLogsInput {
s.EndTime = &v
return s
}
// SetStartTime sets the StartTime field's value.
func (s *GenerateAccessLogsInput) SetStartTime(v time.Time) *GenerateAccessLogsInput {
s.StartTime = &v
return s
}
// The result structure for the generate access logs request.
type GenerateAccessLogsOutput struct {
_ struct{} `type:"structure"`
// The pre-signed URL for the requested access logs.
LogUrl *string `locationName:"logUrl" type:"string"`
}
// String returns the string representation
func (s GenerateAccessLogsOutput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s GenerateAccessLogsOutput) GoString() string {
return s.String()
}
// SetLogUrl sets the LogUrl field's value.
func (s *GenerateAccessLogsOutput) SetLogUrl(v string) *GenerateAccessLogsOutput {
s.LogUrl = &v
return s
}
// The request structure for the get app request.
type GetAppInput struct {
_ struct{} `type:"structure"`
// The unique ID for an Amplify app.
//
// AppId is a required field
AppId *string `location:"uri" locationName:"appId" min:"1" type:"string" required:"true"`
}
// String returns the string representation
func (s GetAppInput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s GetAppInput) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
func (s *GetAppInput) Validate() error {
invalidParams := request.ErrInvalidParams{Context: "GetAppInput"}
if s.AppId == nil {
invalidParams.Add(request.NewErrParamRequired("AppId"))
}
if s.AppId != nil && len(*s.AppId) < 1 {
invalidParams.Add(request.NewErrParamMinLen("AppId", 1))
}
if invalidParams.Len() > 0 {
return invalidParams
}
return nil
}
// SetAppId sets the AppId field's value.
func (s *GetAppInput) SetAppId(v string) *GetAppInput {
s.AppId = &v
return s
}
type GetAppOutput struct {
_ struct{} `type:"structure"`
// Represents the different branches of a repository for building, deploying,
// and hosting an Amplify app.
//
// App is a required field
App *App `locationName:"app" type:"structure" required:"true"`
}
// String returns the string representation
func (s GetAppOutput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s GetAppOutput) GoString() string {
return s.String()
}
// SetApp sets the App field's value.
func (s *GetAppOutput) SetApp(v *App) *GetAppOutput {
s.App = v
return s
}
// Returns the request structure for the get artifact request.
type GetArtifactUrlInput struct {
_ struct{} `type:"structure"`
// The unique ID for an artifact.
//
// ArtifactId is a required field
ArtifactId *string `location:"uri" locationName:"artifactId" type:"string" required:"true"`
}
// String returns the string representation
func (s GetArtifactUrlInput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s GetArtifactUrlInput) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
func (s *GetArtifactUrlInput) Validate() error {
invalidParams := request.ErrInvalidParams{Context: "GetArtifactUrlInput"}
if s.ArtifactId == nil {
invalidParams.Add(request.NewErrParamRequired("ArtifactId"))
}
if s.ArtifactId != nil && len(*s.ArtifactId) < 1 {
invalidParams.Add(request.NewErrParamMinLen("ArtifactId", 1))
}
if invalidParams.Len() > 0 {
return invalidParams
}
return nil
}
// SetArtifactId sets the ArtifactId field's value.
func (s *GetArtifactUrlInput) SetArtifactId(v string) *GetArtifactUrlInput {
s.ArtifactId = &v
return s
}
// Returns the result structure for the get artifact request.
type GetArtifactUrlOutput struct {
_ struct{} `type:"structure"`
// The unique ID for an artifact.
//
// ArtifactId is a required field
ArtifactId *string `locationName:"artifactId" type:"string" required:"true"`
// The presigned URL for the artifact.
//
// ArtifactUrl is a required field
ArtifactUrl *string `locationName:"artifactUrl" type:"string" required:"true"`
}
// String returns the string representation
func (s GetArtifactUrlOutput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s GetArtifactUrlOutput) GoString() string {
return s.String()
}
// SetArtifactId sets the ArtifactId field's value.
func (s *GetArtifactUrlOutput) SetArtifactId(v string) *GetArtifactUrlOutput {
s.ArtifactId = &v
return s
}
// SetArtifactUrl sets the ArtifactUrl field's value.
func (s *GetArtifactUrlOutput) SetArtifactUrl(v string) *GetArtifactUrlOutput {
s.ArtifactUrl = &v
return s
}
// The request structure for the get backend environment request.
type GetBackendEnvironmentInput struct {
_ struct{} `type:"structure"`
// The unique id for an Amplify app.
//
// AppId is a required field
AppId *string `location:"uri" locationName:"appId" min:"1" type:"string" required:"true"`
// The name for the backend environment.
//
// EnvironmentName is a required field
EnvironmentName *string `location:"uri" locationName:"environmentName" min:"1" type:"string" required:"true"`
}
// String returns the string representation
func (s GetBackendEnvironmentInput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s GetBackendEnvironmentInput) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
func (s *GetBackendEnvironmentInput) Validate() error {
invalidParams := request.ErrInvalidParams{Context: "GetBackendEnvironmentInput"}
if s.AppId == nil {
invalidParams.Add(request.NewErrParamRequired("AppId"))
}
if s.AppId != nil && len(*s.AppId) < 1 {
invalidParams.Add(request.NewErrParamMinLen("AppId", 1))
}
if s.EnvironmentName == nil {
invalidParams.Add(request.NewErrParamRequired("EnvironmentName"))
}
if s.EnvironmentName != nil && len(*s.EnvironmentName) < 1 {
invalidParams.Add(request.NewErrParamMinLen("EnvironmentName", 1))
}
if invalidParams.Len() > 0 {
return invalidParams
}
return nil
}
// SetAppId sets the AppId field's value.
func (s *GetBackendEnvironmentInput) SetAppId(v string) *GetBackendEnvironmentInput {
s.AppId = &v
return s
}
// SetEnvironmentName sets the EnvironmentName field's value.
func (s *GetBackendEnvironmentInput) SetEnvironmentName(v string) *GetBackendEnvironmentInput {
s.EnvironmentName = &v
return s
}
// The result structure for the get backend environment result.
type GetBackendEnvironmentOutput struct {
_ struct{} `type:"structure"`
// Describes the backend environment for an Amplify app.
//
// BackendEnvironment is a required field
BackendEnvironment *BackendEnvironment `locationName:"backendEnvironment" type:"structure" required:"true"`
}
// String returns the string representation
func (s GetBackendEnvironmentOutput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s GetBackendEnvironmentOutput) GoString() string {
return s.String()
}
// SetBackendEnvironment sets the BackendEnvironment field's value.
func (s *GetBackendEnvironmentOutput) SetBackendEnvironment(v *BackendEnvironment) *GetBackendEnvironmentOutput {
s.BackendEnvironment = v
return s
}
// The request structure for the get branch request.
type GetBranchInput struct {
_ struct{} `type:"structure"`
// The unique ID for an Amplify app.
//
// AppId is a required field
AppId *string `location:"uri" locationName:"appId" min:"1" type:"string" required:"true"`
// The name for the branch.
//
// BranchName is a required field
BranchName *string `location:"uri" locationName:"branchName" min:"1" type:"string" required:"true"`
}
// String returns the string representation
func (s GetBranchInput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s GetBranchInput) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
func (s *GetBranchInput) Validate() error {
invalidParams := request.ErrInvalidParams{Context: "GetBranchInput"}
if s.AppId == nil {
invalidParams.Add(request.NewErrParamRequired("AppId"))
}
if s.AppId != nil && len(*s.AppId) < 1 {
invalidParams.Add(request.NewErrParamMinLen("AppId", 1))
}
if s.BranchName == nil {
invalidParams.Add(request.NewErrParamRequired("BranchName"))
}
if s.BranchName != nil && len(*s.BranchName) < 1 {
invalidParams.Add(request.NewErrParamMinLen("BranchName", 1))
}
if invalidParams.Len() > 0 {
return invalidParams
}
return nil
}
// SetAppId sets the AppId field's value.
func (s *GetBranchInput) SetAppId(v string) *GetBranchInput {
s.AppId = &v
return s
}
// SetBranchName sets the BranchName field's value.
func (s *GetBranchInput) SetBranchName(v string) *GetBranchInput {
s.BranchName = &v
return s
}
type GetBranchOutput struct {
_ struct{} `type:"structure"`
// The branch for an Amplify app, which maps to a third-party repository branch.
//
// Branch is a required field
Branch *Branch `locationName:"branch" type:"structure" required:"true"`
}
// String returns the string representation
func (s GetBranchOutput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s GetBranchOutput) GoString() string {
return s.String()
}
// SetBranch sets the Branch field's value.
func (s *GetBranchOutput) SetBranch(v *Branch) *GetBranchOutput {
s.Branch = v
return s
}
// The request structure for the get domain association request.
type GetDomainAssociationInput struct {
_ struct{} `type:"structure"`
// The unique id for an Amplify app.
//
// AppId is a required field
AppId *string `location:"uri" locationName:"appId" min:"1" type:"string" required:"true"`
// The name of the domain.
//
// DomainName is a required field
DomainName *string `location:"uri" locationName:"domainName" type:"string" required:"true"`
}
// String returns the string representation
func (s GetDomainAssociationInput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s GetDomainAssociationInput) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
func (s *GetDomainAssociationInput) Validate() error {
invalidParams := request.ErrInvalidParams{Context: "GetDomainAssociationInput"}
if s.AppId == nil {
invalidParams.Add(request.NewErrParamRequired("AppId"))
}
if s.AppId != nil && len(*s.AppId) < 1 {
invalidParams.Add(request.NewErrParamMinLen("AppId", 1))
}
if s.DomainName == nil {
invalidParams.Add(request.NewErrParamRequired("DomainName"))
}
if s.DomainName != nil && len(*s.DomainName) < 1 {
invalidParams.Add(request.NewErrParamMinLen("DomainName", 1))
}
if invalidParams.Len() > 0 {
return invalidParams
}
return nil
}
// SetAppId sets the AppId field's value.
func (s *GetDomainAssociationInput) SetAppId(v string) *GetDomainAssociationInput {
s.AppId = &v
return s
}
// SetDomainName sets the DomainName field's value.
func (s *GetDomainAssociationInput) SetDomainName(v string) *GetDomainAssociationInput {
s.DomainName = &v
return s
}
// The result structure for the get domain association request.
type GetDomainAssociationOutput struct {
_ struct{} `type:"structure"`
// Describes the structure of a domain association, which associates a custom
// domain with an Amplify app.
//
// DomainAssociation is a required field
DomainAssociation *DomainAssociation `locationName:"domainAssociation" type:"structure" required:"true"`
}
// String returns the string representation
func (s GetDomainAssociationOutput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s GetDomainAssociationOutput) GoString() string {
return s.String()
}
// SetDomainAssociation sets the DomainAssociation field's value.
func (s *GetDomainAssociationOutput) SetDomainAssociation(v *DomainAssociation) *GetDomainAssociationOutput {
s.DomainAssociation = v
return s
}
// The request structure for the get job request.
type GetJobInput struct {
_ struct{} `type:"structure"`
// The unique ID for an Amplify app.
//
// AppId is a required field
AppId *string `location:"uri" locationName:"appId" min:"1" type:"string" required:"true"`
// The branch name for the job.
//
// BranchName is a required field
BranchName *string `location:"uri" locationName:"branchName" min:"1" type:"string" required:"true"`
// The unique ID for the job.
//
// JobId is a required field
JobId *string `location:"uri" locationName:"jobId" type:"string" required:"true"`
}
// String returns the string representation
func (s GetJobInput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s GetJobInput) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
func (s *GetJobInput) Validate() error {
invalidParams := request.ErrInvalidParams{Context: "GetJobInput"}
if s.AppId == nil {
invalidParams.Add(request.NewErrParamRequired("AppId"))
}
if s.AppId != nil && len(*s.AppId) < 1 {
invalidParams.Add(request.NewErrParamMinLen("AppId", 1))
}
if s.BranchName == nil {
invalidParams.Add(request.NewErrParamRequired("BranchName"))
}
if s.BranchName != nil && len(*s.BranchName) < 1 {
invalidParams.Add(request.NewErrParamMinLen("BranchName", 1))
}
if s.JobId == nil {
invalidParams.Add(request.NewErrParamRequired("JobId"))
}
if s.JobId != nil && len(*s.JobId) < 1 {
invalidParams.Add(request.NewErrParamMinLen("JobId", 1))
}
if invalidParams.Len() > 0 {
return invalidParams
}
return nil
}
// SetAppId sets the AppId field's value.
func (s *GetJobInput) SetAppId(v string) *GetJobInput {
s.AppId = &v
return s
}
// SetBranchName sets the BranchName field's value.
func (s *GetJobInput) SetBranchName(v string) *GetJobInput {
s.BranchName = &v
return s
}
// SetJobId sets the JobId field's value.
func (s *GetJobInput) SetJobId(v string) *GetJobInput {
s.JobId = &v
return s
}
type GetJobOutput struct {
_ struct{} `type:"structure"`
// Describes an execution job for an Amplify app.
//
// Job is a required field
Job *Job `locationName:"job" type:"structure" required:"true"`
}
// String returns the string representation
func (s GetJobOutput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s GetJobOutput) GoString() string {
return s.String()
}
// SetJob sets the Job field's value.
func (s *GetJobOutput) SetJob(v *Job) *GetJobOutput {
s.Job = v
return s
}
// The request structure for the get webhook request.
type GetWebhookInput struct {
_ struct{} `type:"structure"`
// The unique ID for a webhook.
//
// WebhookId is a required field
WebhookId *string `location:"uri" locationName:"webhookId" type:"string" required:"true"`
}
// String returns the string representation
func (s GetWebhookInput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s GetWebhookInput) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
func (s *GetWebhookInput) Validate() error {
invalidParams := request.ErrInvalidParams{Context: "GetWebhookInput"}
if s.WebhookId == nil {
invalidParams.Add(request.NewErrParamRequired("WebhookId"))
}
if s.WebhookId != nil && len(*s.WebhookId) < 1 {
invalidParams.Add(request.NewErrParamMinLen("WebhookId", 1))
}
if invalidParams.Len() > 0 {
return invalidParams
}
return nil
}
// SetWebhookId sets the WebhookId field's value.
func (s *GetWebhookInput) SetWebhookId(v string) *GetWebhookInput {
s.WebhookId = &v
return s
}
// The result structure for the get webhook request.
type GetWebhookOutput struct {
_ struct{} `type:"structure"`
// Describes the structure of a webhook.
//
// Webhook is a required field
Webhook *Webhook `locationName:"webhook" type:"structure" required:"true"`
}
// String returns the string representation
func (s GetWebhookOutput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s GetWebhookOutput) GoString() string {
return s.String()
}
// SetWebhook sets the Webhook field's value.
func (s *GetWebhookOutput) SetWebhook(v *Webhook) *GetWebhookOutput {
s.Webhook = v
return s
}
// The service failed to perform an operation due to an internal issue.
type InternalFailureException struct {
_ struct{} `type:"structure"`
RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
// String returns the string representation
func (s InternalFailureException) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s InternalFailureException) GoString() string {
return s.String()
}
func newErrorInternalFailureException(v protocol.ResponseMetadata) error {
return &InternalFailureException{
RespMetadata: v,
}
}
// Code returns the exception type name.
func (s *InternalFailureException) Code() string {
return "InternalFailureException"
}
// Message returns the exception's message.
func (s *InternalFailureException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
return ""
}
// OrigErr always returns nil, satisfies awserr.Error interface.
func (s *InternalFailureException) OrigErr() error {
return nil
}
func (s *InternalFailureException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
func (s *InternalFailureException) StatusCode() int {
return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
func (s *InternalFailureException) RequestID() string {
return s.RespMetadata.RequestID
}
// Describes an execution job for an Amplify app.
type Job struct {
_ struct{} `type:"structure"`
// The execution steps for an execution job, for an Amplify app.
//
// Steps is a required field
Steps []*Step `locationName:"steps" type:"list" required:"true"`
// Describes the summary for an execution job for an Amplify app.
//
// Summary is a required field
Summary *JobSummary `locationName:"summary" type:"structure" required:"true"`
}
// String returns the string representation
func (s Job) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s Job) GoString() string {
return s.String()
}
// SetSteps sets the Steps field's value.
func (s *Job) SetSteps(v []*Step) *Job {
s.Steps = v
return s
}
// SetSummary sets the Summary field's value.
func (s *Job) SetSummary(v *JobSummary) *Job {
s.Summary = v
return s
}
// Describes the summary for an execution job for an Amplify app.
type JobSummary struct {
_ struct{} `type:"structure"`
// The commit ID from a third-party repository provider for the job.
//
// CommitId is a required field
CommitId *string `locationName:"commitId" type:"string" required:"true"`
// The commit message from a third-party repository provider for the job.
//
// CommitMessage is a required field
CommitMessage *string `locationName:"commitMessage" type:"string" required:"true"`
// The commit date and time for the job.
//
// CommitTime is a required field
CommitTime *time.Time `locationName:"commitTime" type:"timestamp" required:"true"`
// The end date and time for the job.
EndTime *time.Time `locationName:"endTime" type:"timestamp"`
// The Amazon Resource Name (ARN) for the job.
//
// JobArn is a required field
JobArn *string `locationName:"jobArn" type:"string" required:"true"`
// The unique ID for the job.
//
// JobId is a required field
JobId *string `locationName:"jobId" type:"string" required:"true"`
// The type for the job. If the value is RELEASE, the job was manually released
// from its source by using the StartJob API. If the value is RETRY, the job
// was manually retried using the StartJob API. If the value is WEB_HOOK, the
// job was automatically triggered by webhooks.
//
// JobType is a required field
JobType *string `locationName:"jobType" type:"string" required:"true" enum:"JobType"`
// The start date and time for the job.
//
// StartTime is a required field
StartTime *time.Time `locationName:"startTime" type:"timestamp" required:"true"`
// The current status for the job.
//
// Status is a required field
Status *string `locationName:"status" type:"string" required:"true" enum:"JobStatus"`
}
// String returns the string representation
func (s JobSummary) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s JobSummary) GoString() string {
return s.String()
}
// SetCommitId sets the CommitId field's value.
func (s *JobSummary) SetCommitId(v string) *JobSummary {
s.CommitId = &v
return s
}
// SetCommitMessage sets the CommitMessage field's value.
func (s *JobSummary) SetCommitMessage(v string) *JobSummary {
s.CommitMessage = &v
return s
}
// SetCommitTime sets the CommitTime field's value.
func (s *JobSummary) SetCommitTime(v time.Time) *JobSummary {
s.CommitTime = &v
return s
}
// SetEndTime sets the EndTime field's value.
func (s *JobSummary) SetEndTime(v time.Time) *JobSummary {
s.EndTime = &v
return s
}
// SetJobArn sets the JobArn field's value.
func (s *JobSummary) SetJobArn(v string) *JobSummary {
s.JobArn = &v
return s
}
// SetJobId sets the JobId field's value.
func (s *JobSummary) SetJobId(v string) *JobSummary {
s.JobId = &v
return s
}
// SetJobType sets the JobType field's value.
func (s *JobSummary) SetJobType(v string) *JobSummary {
s.JobType = &v
return s
}
// SetStartTime sets the StartTime field's value.
func (s *JobSummary) SetStartTime(v time.Time) *JobSummary {
s.StartTime = &v
return s
}
// SetStatus sets the Status field's value.
func (s *JobSummary) SetStatus(v string) *JobSummary {
s.Status = &v
return s
}
// A resource could not be created because service quotas were exceeded.
type LimitExceededException struct {
_ struct{} `type:"structure"`
RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
// String returns the string representation
func (s LimitExceededException) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s LimitExceededException) GoString() string {
return s.String()
}
func newErrorLimitExceededException(v protocol.ResponseMetadata) error {
return &LimitExceededException{
RespMetadata: v,
}
}
// Code returns the exception type name.
func (s *LimitExceededException) Code() string {
return "LimitExceededException"
}
// Message returns the exception's message.
func (s *LimitExceededException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
return ""
}
// OrigErr always returns nil, satisfies awserr.Error interface.
func (s *LimitExceededException) OrigErr() error {
return nil
}
func (s *LimitExceededException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
func (s *LimitExceededException) StatusCode() int {
return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
func (s *LimitExceededException) RequestID() string {
return s.RespMetadata.RequestID
}
// The request structure for the list apps request.
type ListAppsInput struct {
_ struct{} `type:"structure"`
// The maximum number of records to list in a single response.
MaxResults *int64 `location:"querystring" locationName:"maxResults" type:"integer"`
// A pagination token. If non-null, the pagination token is returned in a result.
// Pass its value in another request to retrieve more entries.
NextToken *string `location:"querystring" locationName:"nextToken" type:"string"`
}
// String returns the string representation
func (s ListAppsInput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s ListAppsInput) GoString() string {
return s.String()
}
// SetMaxResults sets the MaxResults field's value.
func (s *ListAppsInput) SetMaxResults(v int64) *ListAppsInput {
s.MaxResults = &v
return s
}
// SetNextToken sets the NextToken field's value.
func (s *ListAppsInput) SetNextToken(v string) *ListAppsInput {
s.NextToken = &v
return s
}
// The result structure for an Amplify app list request.
type ListAppsOutput struct {
_ struct{} `type:"structure"`
// A list of Amplify apps.
//
// Apps is a required field
Apps []*App `locationName:"apps" type:"list" required:"true"`
// A pagination token. Set to null to start listing apps from start. If non-null,
// the pagination token is returned in a result. Pass its value in here to list
// more projects.
NextToken *string `locationName:"nextToken" type:"string"`
}
// String returns the string representation
func (s ListAppsOutput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s ListAppsOutput) GoString() string {
return s.String()
}
// SetApps sets the Apps field's value.
func (s *ListAppsOutput) SetApps(v []*App) *ListAppsOutput {
s.Apps = v
return s
}
// SetNextToken sets the NextToken field's value.
func (s *ListAppsOutput) SetNextToken(v string) *ListAppsOutput {
s.NextToken = &v
return s
}
// Describes the request structure for the list artifacts request.
type ListArtifactsInput struct {
_ struct{} `type:"structure"`
// The unique ID for an Amplify app.
//
// AppId is a required field
AppId *string `location:"uri" locationName:"appId" min:"1" type:"string" required:"true"`
// The name of a branch that is part of an Amplify app.
//
// BranchName is a required field
BranchName *string `location:"uri" locationName:"branchName" min:"1" type:"string" required:"true"`
// The unique ID for a job.
//
// JobId is a required field
JobId *string `location:"uri" locationName:"jobId" type:"string" required:"true"`
// The maximum number of records to list in a single response.
MaxResults *int64 `location:"querystring" locationName:"maxResults" type:"integer"`
// A pagination token. Set to null to start listing artifacts from start. If
// a non-null pagination token is returned in a result, pass its value in here
// to list more artifacts.
NextToken *string `location:"querystring" locationName:"nextToken" type:"string"`
}
// String returns the string representation
func (s ListArtifactsInput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s ListArtifactsInput) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
func (s *ListArtifactsInput) Validate() error {
invalidParams := request.ErrInvalidParams{Context: "ListArtifactsInput"}
if s.AppId == nil {
invalidParams.Add(request.NewErrParamRequired("AppId"))
}
if s.AppId != nil && len(*s.AppId) < 1 {
invalidParams.Add(request.NewErrParamMinLen("AppId", 1))
}
if s.BranchName == nil {
invalidParams.Add(request.NewErrParamRequired("BranchName"))
}
if s.BranchName != nil && len(*s.BranchName) < 1 {
invalidParams.Add(request.NewErrParamMinLen("BranchName", 1))
}
if s.JobId == nil {
invalidParams.Add(request.NewErrParamRequired("JobId"))
}
if s.JobId != nil && len(*s.JobId) < 1 {
invalidParams.Add(request.NewErrParamMinLen("JobId", 1))
}
if invalidParams.Len() > 0 {
return invalidParams
}
return nil
}
// SetAppId sets the AppId field's value.
func (s *ListArtifactsInput) SetAppId(v string) *ListArtifactsInput {
s.AppId = &v
return s
}
// SetBranchName sets the BranchName field's value.
func (s *ListArtifactsInput) SetBranchName(v string) *ListArtifactsInput {
s.BranchName = &v
return s
}
// SetJobId sets the JobId field's value.
func (s *ListArtifactsInput) SetJobId(v string) *ListArtifactsInput {
s.JobId = &v
return s
}
// SetMaxResults sets the MaxResults field's value.
func (s *ListArtifactsInput) SetMaxResults(v int64) *ListArtifactsInput {
s.MaxResults = &v
return s
}
// SetNextToken sets the NextToken field's value.
func (s *ListArtifactsInput) SetNextToken(v string) *ListArtifactsInput {
s.NextToken = &v
return s
}
// The result structure for the list artifacts request.
type ListArtifactsOutput struct {
_ struct{} `type:"structure"`
// A list of artifacts.
//
// Artifacts is a required field
Artifacts []*Artifact `locationName:"artifacts" type:"list" required:"true"`
// A pagination token. If a non-null pagination token is returned in a result,
// pass its value in another request to retrieve more entries.
NextToken *string `locationName:"nextToken" type:"string"`
}
// String returns the string representation
func (s ListArtifactsOutput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s ListArtifactsOutput) GoString() string {
return s.String()
}
// SetArtifacts sets the Artifacts field's value.
func (s *ListArtifactsOutput) SetArtifacts(v []*Artifact) *ListArtifactsOutput {
s.Artifacts = v
return s
}
// SetNextToken sets the NextToken field's value.
func (s *ListArtifactsOutput) SetNextToken(v string) *ListArtifactsOutput {
s.NextToken = &v
return s
}
// The request structure for the list backend environments request.
type ListBackendEnvironmentsInput struct {
_ struct{} `type:"structure"`
// The unique ID for an Amplify app.
//
// AppId is a required field
AppId *string `location:"uri" locationName:"appId" min:"1" type:"string" required:"true"`
// The name of the backend environment
EnvironmentName *string `location:"querystring" locationName:"environmentName" min:"1" type:"string"`
// The maximum number of records to list in a single response.
MaxResults *int64 `location:"querystring" locationName:"maxResults" type:"integer"`
// A pagination token. Set to null to start listing backend environments from
// the start. If a non-null pagination token is returned in a result, pass its
// value in here to list more backend environments.
NextToken *string `location:"querystring" locationName:"nextToken" type:"string"`
}
// String returns the string representation
func (s ListBackendEnvironmentsInput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s ListBackendEnvironmentsInput) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
func (s *ListBackendEnvironmentsInput) Validate() error {
invalidParams := request.ErrInvalidParams{Context: "ListBackendEnvironmentsInput"}
if s.AppId == nil {
invalidParams.Add(request.NewErrParamRequired("AppId"))
}
if s.AppId != nil && len(*s.AppId) < 1 {
invalidParams.Add(request.NewErrParamMinLen("AppId", 1))
}
if s.EnvironmentName != nil && len(*s.EnvironmentName) < 1 {
invalidParams.Add(request.NewErrParamMinLen("EnvironmentName", 1))
}
if invalidParams.Len() > 0 {
return invalidParams
}
return nil
}
// SetAppId sets the AppId field's value.
func (s *ListBackendEnvironmentsInput) SetAppId(v string) *ListBackendEnvironmentsInput {
s.AppId = &v
return s
}
// SetEnvironmentName sets the EnvironmentName field's value.
func (s *ListBackendEnvironmentsInput) SetEnvironmentName(v string) *ListBackendEnvironmentsInput {
s.EnvironmentName = &v
return s
}
// SetMaxResults sets the MaxResults field's value.
func (s *ListBackendEnvironmentsInput) SetMaxResults(v int64) *ListBackendEnvironmentsInput {
s.MaxResults = &v
return s
}
// SetNextToken sets the NextToken field's value.
func (s *ListBackendEnvironmentsInput) SetNextToken(v string) *ListBackendEnvironmentsInput {
s.NextToken = &v
return s
}
// The result structure for the list backend environments result.
type ListBackendEnvironmentsOutput struct {
_ struct{} `type:"structure"`
// The list of backend environments for an Amplify app.
//
// BackendEnvironments is a required field
BackendEnvironments []*BackendEnvironment `locationName:"backendEnvironments" type:"list" required:"true"`
// A pagination token. If a non-null pagination token is returned in a result,
// pass its value in another request to retrieve more entries.
NextToken *string `locationName:"nextToken" type:"string"`
}
// String returns the string representation
func (s ListBackendEnvironmentsOutput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s ListBackendEnvironmentsOutput) GoString() string {
return s.String()
}
// SetBackendEnvironments sets the BackendEnvironments field's value.
func (s *ListBackendEnvironmentsOutput) SetBackendEnvironments(v []*BackendEnvironment) *ListBackendEnvironmentsOutput {
s.BackendEnvironments = v
return s
}
// SetNextToken sets the NextToken field's value.
func (s *ListBackendEnvironmentsOutput) SetNextToken(v string) *ListBackendEnvironmentsOutput {
s.NextToken = &v
return s
}
// The request structure for the list branches request.
type ListBranchesInput struct {
_ struct{} `type:"structure"`
// The unique ID for an Amplify app.
//
// AppId is a required field
AppId *string `location:"uri" locationName:"appId" min:"1" type:"string" required:"true"`
// The maximum number of records to list in a single response.
MaxResults *int64 `location:"querystring" locationName:"maxResults" type:"integer"`
// A pagination token. Set to null to start listing branches from the start.
// If a non-null pagination token is returned in a result, pass its value in
// here to list more branches.
NextToken *string `location:"querystring" locationName:"nextToken" type:"string"`
}
// String returns the string representation
func (s ListBranchesInput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s ListBranchesInput) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
func (s *ListBranchesInput) Validate() error {
invalidParams := request.ErrInvalidParams{Context: "ListBranchesInput"}
if s.AppId == nil {
invalidParams.Add(request.NewErrParamRequired("AppId"))
}
if s.AppId != nil && len(*s.AppId) < 1 {
invalidParams.Add(request.NewErrParamMinLen("AppId", 1))
}
if invalidParams.Len() > 0 {
return invalidParams
}
return nil
}
// SetAppId sets the AppId field's value.
func (s *ListBranchesInput) SetAppId(v string) *ListBranchesInput {
s.AppId = &v
return s
}
// SetMaxResults sets the MaxResults field's value.
func (s *ListBranchesInput) SetMaxResults(v int64) *ListBranchesInput {
s.MaxResults = &v
return s
}
// SetNextToken sets the NextToken field's value.
func (s *ListBranchesInput) SetNextToken(v string) *ListBranchesInput {
s.NextToken = &v
return s
}
// The result structure for the list branches request.
type ListBranchesOutput struct {
_ struct{} `type:"structure"`
// A list of branches for an Amplify app.
//
// Branches is a required field
Branches []*Branch `locationName:"branches" type:"list" required:"true"`
// A pagination token. If a non-null pagination token is returned in a result,
// pass its value in another request to retrieve more entries.
NextToken *string `locationName:"nextToken" type:"string"`
}
// String returns the string representation
func (s ListBranchesOutput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s ListBranchesOutput) GoString() string {
return s.String()
}
// SetBranches sets the Branches field's value.
func (s *ListBranchesOutput) SetBranches(v []*Branch) *ListBranchesOutput {
s.Branches = v
return s
}
// SetNextToken sets the NextToken field's value.
func (s *ListBranchesOutput) SetNextToken(v string) *ListBranchesOutput {
s.NextToken = &v
return s
}
// The request structure for the list domain associations request.
type ListDomainAssociationsInput struct {
_ struct{} `type:"structure"`
// The unique ID for an Amplify app.
//
// AppId is a required field
AppId *string `location:"uri" locationName:"appId" min:"1" type:"string" required:"true"`
// The maximum number of records to list in a single response.
MaxResults *int64 `location:"querystring" locationName:"maxResults" type:"integer"`
// A pagination token. Set to null to start listing apps from the start. If
// non-null, a pagination token is returned in a result. Pass its value in here
// to list more projects.
NextToken *string `location:"querystring" locationName:"nextToken" type:"string"`
}
// String returns the string representation
func (s ListDomainAssociationsInput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s ListDomainAssociationsInput) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
func (s *ListDomainAssociationsInput) Validate() error {
invalidParams := request.ErrInvalidParams{Context: "ListDomainAssociationsInput"}
if s.AppId == nil {
invalidParams.Add(request.NewErrParamRequired("AppId"))
}
if s.AppId != nil && len(*s.AppId) < 1 {
invalidParams.Add(request.NewErrParamMinLen("AppId", 1))
}
if invalidParams.Len() > 0 {
return invalidParams
}
return nil
}
// SetAppId sets the AppId field's value.
func (s *ListDomainAssociationsInput) SetAppId(v string) *ListDomainAssociationsInput {
s.AppId = &v
return s
}
// SetMaxResults sets the MaxResults field's value.
func (s *ListDomainAssociationsInput) SetMaxResults(v int64) *ListDomainAssociationsInput {
s.MaxResults = &v
return s
}
// SetNextToken sets the NextToken field's value.
func (s *ListDomainAssociationsInput) SetNextToken(v string) *ListDomainAssociationsInput {
s.NextToken = &v
return s
}
// The result structure for the list domain association request.
type ListDomainAssociationsOutput struct {
_ struct{} `type:"structure"`
// A list of domain associations.
//
// DomainAssociations is a required field
DomainAssociations []*DomainAssociation `locationName:"domainAssociations" type:"list" required:"true"`
// A pagination token. If non-null, a pagination token is returned in a result.
// Pass its value in another request to retrieve more entries.
NextToken *string `locationName:"nextToken" type:"string"`
}
// String returns the string representation
func (s ListDomainAssociationsOutput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s ListDomainAssociationsOutput) GoString() string {
return s.String()
}
// SetDomainAssociations sets the DomainAssociations field's value.
func (s *ListDomainAssociationsOutput) SetDomainAssociations(v []*DomainAssociation) *ListDomainAssociationsOutput {
s.DomainAssociations = v
return s
}
// SetNextToken sets the NextToken field's value.
func (s *ListDomainAssociationsOutput) SetNextToken(v string) *ListDomainAssociationsOutput {
s.NextToken = &v
return s
}
// The request structure for the list jobs request.
type ListJobsInput struct {
_ struct{} `type:"structure"`
// The unique ID for an Amplify app.
//
// AppId is a required field
AppId *string `location:"uri" locationName:"appId" min:"1" type:"string" required:"true"`
// The name for a branch.
//
// BranchName is a required field
BranchName *string `location:"uri" locationName:"branchName" min:"1" type:"string" required:"true"`
// The maximum number of records to list in a single response.
MaxResults *int64 `location:"querystring" locationName:"maxResults" type:"integer"`
// A pagination token. Set to null to start listing steps from the start. If
// a non-null pagination token is returned in a result, pass its value in here
// to list more steps.
NextToken *string `location:"querystring" locationName:"nextToken" type:"string"`
}
// String returns the string representation
func (s ListJobsInput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s ListJobsInput) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
func (s *ListJobsInput) Validate() error {
invalidParams := request.ErrInvalidParams{Context: "ListJobsInput"}
if s.AppId == nil {
invalidParams.Add(request.NewErrParamRequired("AppId"))
}
if s.AppId != nil && len(*s.AppId) < 1 {
invalidParams.Add(request.NewErrParamMinLen("AppId", 1))
}
if s.BranchName == nil {
invalidParams.Add(request.NewErrParamRequired("BranchName"))
}
if s.BranchName != nil && len(*s.BranchName) < 1 {
invalidParams.Add(request.NewErrParamMinLen("BranchName", 1))
}
if invalidParams.Len() > 0 {
return invalidParams
}
return nil
}
// SetAppId sets the AppId field's value.
func (s *ListJobsInput) SetAppId(v string) *ListJobsInput {
s.AppId = &v
return s
}
// SetBranchName sets the BranchName field's value.
func (s *ListJobsInput) SetBranchName(v string) *ListJobsInput {
s.BranchName = &v
return s
}
// SetMaxResults sets the MaxResults field's value.
func (s *ListJobsInput) SetMaxResults(v int64) *ListJobsInput {
s.MaxResults = &v
return s
}
// SetNextToken sets the NextToken field's value.
func (s *ListJobsInput) SetNextToken(v string) *ListJobsInput {
s.NextToken = &v
return s
}
// The maximum number of records to list in a single response.
type ListJobsOutput struct {
_ struct{} `type:"structure"`
// The result structure for the list job result request.
//
// JobSummaries is a required field
JobSummaries []*JobSummary `locationName:"jobSummaries" type:"list" required:"true"`
// A pagination token. If non-null the pagination token is returned in a result.
// Pass its value in another request to retrieve more entries.
NextToken *string `locationName:"nextToken" type:"string"`
}
// String returns the string representation
func (s ListJobsOutput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s ListJobsOutput) GoString() string {
return s.String()
}
// SetJobSummaries sets the JobSummaries field's value.
func (s *ListJobsOutput) SetJobSummaries(v []*JobSummary) *ListJobsOutput {
s.JobSummaries = v
return s
}
// SetNextToken sets the NextToken field's value.
func (s *ListJobsOutput) SetNextToken(v string) *ListJobsOutput {
s.NextToken = &v
return s
}
// The request structure to use to list tags for a resource.
type ListTagsForResourceInput struct {
_ struct{} `type:"structure"`
// The Amazon Resource Name (ARN) to use to list tags.
//
// ResourceArn is a required field
ResourceArn *string `location:"uri" locationName:"resourceArn" type:"string" required:"true"`
}
// String returns the string representation
func (s ListTagsForResourceInput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s ListTagsForResourceInput) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
func (s *ListTagsForResourceInput) Validate() error {
invalidParams := request.ErrInvalidParams{Context: "ListTagsForResourceInput"}
if s.ResourceArn == nil {
invalidParams.Add(request.NewErrParamRequired("ResourceArn"))
}
if s.ResourceArn != nil && len(*s.ResourceArn) < 1 {
invalidParams.Add(request.NewErrParamMinLen("ResourceArn", 1))
}
if invalidParams.Len() > 0 {
return invalidParams
}
return nil
}
// SetResourceArn sets the ResourceArn field's value.
func (s *ListTagsForResourceInput) SetResourceArn(v string) *ListTagsForResourceInput {
s.ResourceArn = &v
return s
}
// The response for the list tags for resource request.
type ListTagsForResourceOutput struct {
_ struct{} `type:"structure"`
// A list of tags for the specified The Amazon Resource Name (ARN).
Tags map[string]*string `locationName:"tags" min:"1" type:"map"`
}
// String returns the string representation
func (s ListTagsForResourceOutput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s ListTagsForResourceOutput) GoString() string {
return s.String()
}
// SetTags sets the Tags field's value.
func (s *ListTagsForResourceOutput) SetTags(v map[string]*string) *ListTagsForResourceOutput {
s.Tags = v
return s
}
// The request structure for the list webhooks request.
type ListWebhooksInput struct {
_ struct{} `type:"structure"`
// The unique ID for an Amplify app.
//
// AppId is a required field
AppId *string `location:"uri" locationName:"appId" min:"1" type:"string" required:"true"`
// The maximum number of records to list in a single response.
MaxResults *int64 `location:"querystring" locationName:"maxResults" type:"integer"`
// A pagination token. Set to null to start listing webhooks from the start.
// If non-null,the pagination token is returned in a result. Pass its value
// in here to list more webhooks.
NextToken *string `location:"querystring" locationName:"nextToken" type:"string"`
}
// String returns the string representation
func (s ListWebhooksInput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s ListWebhooksInput) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
func (s *ListWebhooksInput) Validate() error {
invalidParams := request.ErrInvalidParams{Context: "ListWebhooksInput"}
if s.AppId == nil {
invalidParams.Add(request.NewErrParamRequired("AppId"))
}
if s.AppId != nil && len(*s.AppId) < 1 {
invalidParams.Add(request.NewErrParamMinLen("AppId", 1))
}
if invalidParams.Len() > 0 {
return invalidParams
}
return nil
}
// SetAppId sets the AppId field's value.
func (s *ListWebhooksInput) SetAppId(v string) *ListWebhooksInput {
s.AppId = &v
return s
}
// SetMaxResults sets the MaxResults field's value.
func (s *ListWebhooksInput) SetMaxResults(v int64) *ListWebhooksInput {
s.MaxResults = &v
return s
}
// SetNextToken sets the NextToken field's value.
func (s *ListWebhooksInput) SetNextToken(v string) *ListWebhooksInput {
s.NextToken = &v
return s
}
// The result structure for the list webhooks request.
type ListWebhooksOutput struct {
_ struct{} `type:"structure"`
// A pagination token. If non-null, the pagination token is returned in a result.
// Pass its value in another request to retrieve more entries.
NextToken *string `locationName:"nextToken" type:"string"`
// A list of webhooks.
//
// Webhooks is a required field
Webhooks []*Webhook `locationName:"webhooks" type:"list" required:"true"`
}
// String returns the string representation
func (s ListWebhooksOutput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s ListWebhooksOutput) GoString() string {
return s.String()
}
// SetNextToken sets the NextToken field's value.
func (s *ListWebhooksOutput) SetNextToken(v string) *ListWebhooksOutput {
s.NextToken = &v
return s
}
// SetWebhooks sets the Webhooks field's value.
func (s *ListWebhooksOutput) SetWebhooks(v []*Webhook) *ListWebhooksOutput {
s.Webhooks = v
return s
}
// An entity was not found during an operation.
type NotFoundException struct {
_ struct{} `type:"structure"`
RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
// String returns the string representation
func (s NotFoundException) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s NotFoundException) GoString() string {
return s.String()
}
func newErrorNotFoundException(v protocol.ResponseMetadata) error {
return &NotFoundException{
RespMetadata: v,
}
}
// Code returns the exception type name.
func (s *NotFoundException) Code() string {
return "NotFoundException"
}
// Message returns the exception's message.
func (s *NotFoundException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
return ""
}
// OrigErr always returns nil, satisfies awserr.Error interface.
func (s *NotFoundException) OrigErr() error {
return nil
}
func (s *NotFoundException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
func (s *NotFoundException) StatusCode() int {
return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
func (s *NotFoundException) RequestID() string {
return s.RespMetadata.RequestID
}
// Describes the information about a production branch for an Amplify app.
type ProductionBranch struct {
_ struct{} `type:"structure"`
// The branch name for the production branch.
BranchName *string `locationName:"branchName" min:"1" type:"string"`
// The last deploy time of the production branch.
LastDeployTime *time.Time `locationName:"lastDeployTime" type:"timestamp"`
// The status of the production branch.
Status *string `locationName:"status" min:"3" type:"string"`
// The thumbnail URL for the production branch.
ThumbnailUrl *string `locationName:"thumbnailUrl" min:"1" type:"string"`
}
// String returns the string representation
func (s ProductionBranch) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s ProductionBranch) GoString() string {
return s.String()
}
// SetBranchName sets the BranchName field's value.
func (s *ProductionBranch) SetBranchName(v string) *ProductionBranch {
s.BranchName = &v
return s
}
// SetLastDeployTime sets the LastDeployTime field's value.
func (s *ProductionBranch) SetLastDeployTime(v time.Time) *ProductionBranch {
s.LastDeployTime = &v
return s
}
// SetStatus sets the Status field's value.
func (s *ProductionBranch) SetStatus(v string) *ProductionBranch {
s.Status = &v
return s
}
// SetThumbnailUrl sets the ThumbnailUrl field's value.
func (s *ProductionBranch) SetThumbnailUrl(v string) *ProductionBranch {
s.ThumbnailUrl = &v
return s
}
// An operation failed due to a non-existent resource.
type ResourceNotFoundException struct {
_ struct{} `type:"structure"`
RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Code_ *string `locationName:"code" type:"string"`
Message_ *string `locationName:"message" type:"string"`
}
// String returns the string representation
func (s ResourceNotFoundException) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s ResourceNotFoundException) GoString() string {
return s.String()
}
func newErrorResourceNotFoundException(v protocol.ResponseMetadata) error {
return &ResourceNotFoundException{
RespMetadata: v,
}
}
// Code returns the exception type name.
func (s *ResourceNotFoundException) Code() string {
return "ResourceNotFoundException"
}
// Message returns the exception's message.
func (s *ResourceNotFoundException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
return ""
}
// OrigErr always returns nil, satisfies awserr.Error interface.
func (s *ResourceNotFoundException) OrigErr() error {
return nil
}
func (s *ResourceNotFoundException) Error() string {
return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String())
}
// Status code returns the HTTP status code for the request's response error.
func (s *ResourceNotFoundException) StatusCode() int {
return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
func (s *ResourceNotFoundException) RequestID() string {
return s.RespMetadata.RequestID
}
// The request structure for the start a deployment request.
type StartDeploymentInput struct {
_ struct{} `type:"structure"`
// The unique ID for an Amplify app.
//
// AppId is a required field
AppId *string `location:"uri" locationName:"appId" min:"1" type:"string" required:"true"`
// The name for the branch, for the job.
//
// BranchName is a required field
BranchName *string `location:"uri" locationName:"branchName" min:"1" type:"string" required:"true"`
// The job ID for this deployment, generated by the create deployment request.
JobId *string `locationName:"jobId" type:"string"`
// The source URL for this deployment, used when calling start deployment without
// create deployment. The source URL can be any HTTP GET URL that is publicly
// accessible and downloads a single .zip file.
SourceUrl *string `locationName:"sourceUrl" type:"string"`
}
// String returns the string representation
func (s StartDeploymentInput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s StartDeploymentInput) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
func (s *StartDeploymentInput) Validate() error {
invalidParams := request.ErrInvalidParams{Context: "StartDeploymentInput"}
if s.AppId == nil {
invalidParams.Add(request.NewErrParamRequired("AppId"))
}
if s.AppId != nil && len(*s.AppId) < 1 {
invalidParams.Add(request.NewErrParamMinLen("AppId", 1))
}
if s.BranchName == nil {
invalidParams.Add(request.NewErrParamRequired("BranchName"))
}
if s.BranchName != nil && len(*s.BranchName) < 1 {
invalidParams.Add(request.NewErrParamMinLen("BranchName", 1))
}
if invalidParams.Len() > 0 {
return invalidParams
}
return nil
}
// SetAppId sets the AppId field's value.
func (s *StartDeploymentInput) SetAppId(v string) *StartDeploymentInput {
s.AppId = &v
return s
}
// SetBranchName sets the BranchName field's value.
func (s *StartDeploymentInput) SetBranchName(v string) *StartDeploymentInput {
s.BranchName = &v
return s
}
// SetJobId sets the JobId field's value.
func (s *StartDeploymentInput) SetJobId(v string) *StartDeploymentInput {
s.JobId = &v
return s
}
// SetSourceUrl sets the SourceUrl field's value.
func (s *StartDeploymentInput) SetSourceUrl(v string) *StartDeploymentInput {
s.SourceUrl = &v
return s
}
// The result structure for the start a deployment request.
type StartDeploymentOutput struct {
_ struct{} `type:"structure"`
// The summary for the job.
//
// JobSummary is a required field
JobSummary *JobSummary `locationName:"jobSummary" type:"structure" required:"true"`
}
// String returns the string representation
func (s StartDeploymentOutput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s StartDeploymentOutput) GoString() string {
return s.String()
}
// SetJobSummary sets the JobSummary field's value.
func (s *StartDeploymentOutput) SetJobSummary(v *JobSummary) *StartDeploymentOutput {
s.JobSummary = v
return s
}
// The request structure for the start job request.
type StartJobInput struct {
_ struct{} `type:"structure"`
// The unique ID for an Amplify app.
//
// AppId is a required field
AppId *string `location:"uri" locationName:"appId" min:"1" type:"string" required:"true"`
// The branch name for the job.
//
// BranchName is a required field
BranchName *string `location:"uri" locationName:"branchName" min:"1" type:"string" required:"true"`
// The commit ID from a third-party repository provider for the job.
CommitId *string `locationName:"commitId" type:"string"`
// The commit message from a third-party repository provider for the job.
CommitMessage *string `locationName:"commitMessage" type:"string"`
// The commit date and time for the job.
CommitTime *time.Time `locationName:"commitTime" type:"timestamp"`
// The unique ID for an existing job. This is required if the value of jobType
// is RETRY.
JobId *string `locationName:"jobId" type:"string"`
// A descriptive reason for starting this job.
JobReason *string `locationName:"jobReason" type:"string"`
// Describes the type for the job. The job type RELEASE starts a new job with
// the latest change from the specified branch. This value is available only
// for apps that are connected to a repository. The job type RETRY retries an
// existing job. If the job type value is RETRY, the jobId is also required.
//
// JobType is a required field
JobType *string `locationName:"jobType" type:"string" required:"true" enum:"JobType"`
}
// String returns the string representation
func (s StartJobInput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s StartJobInput) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
func (s *StartJobInput) Validate() error {
invalidParams := request.ErrInvalidParams{Context: "StartJobInput"}
if s.AppId == nil {
invalidParams.Add(request.NewErrParamRequired("AppId"))
}
if s.AppId != nil && len(*s.AppId) < 1 {
invalidParams.Add(request.NewErrParamMinLen("AppId", 1))
}
if s.BranchName == nil {
invalidParams.Add(request.NewErrParamRequired("BranchName"))
}
if s.BranchName != nil && len(*s.BranchName) < 1 {
invalidParams.Add(request.NewErrParamMinLen("BranchName", 1))
}
if s.JobType == nil {
invalidParams.Add(request.NewErrParamRequired("JobType"))
}
if invalidParams.Len() > 0 {
return invalidParams
}
return nil
}
// SetAppId sets the AppId field's value.
func (s *StartJobInput) SetAppId(v string) *StartJobInput {
s.AppId = &v
return s
}
// SetBranchName sets the BranchName field's value.
func (s *StartJobInput) SetBranchName(v string) *StartJobInput {
s.BranchName = &v
return s
}
// SetCommitId sets the CommitId field's value.
func (s *StartJobInput) SetCommitId(v string) *StartJobInput {
s.CommitId = &v
return s
}
// SetCommitMessage sets the CommitMessage field's value.
func (s *StartJobInput) SetCommitMessage(v string) *StartJobInput {
s.CommitMessage = &v
return s
}
// SetCommitTime sets the CommitTime field's value.
func (s *StartJobInput) SetCommitTime(v time.Time) *StartJobInput {
s.CommitTime = &v
return s
}
// SetJobId sets the JobId field's value.
func (s *StartJobInput) SetJobId(v string) *StartJobInput {
s.JobId = &v
return s
}
// SetJobReason sets the JobReason field's value.
func (s *StartJobInput) SetJobReason(v string) *StartJobInput {
s.JobReason = &v
return s
}
// SetJobType sets the JobType field's value.
func (s *StartJobInput) SetJobType(v string) *StartJobInput {
s.JobType = &v
return s
}
// The result structure for the run job request.
type StartJobOutput struct {
_ struct{} `type:"structure"`
// The summary for the job.
//
// JobSummary is a required field
JobSummary *JobSummary `locationName:"jobSummary" type:"structure" required:"true"`
}
// String returns the string representation
func (s StartJobOutput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s StartJobOutput) GoString() string {
return s.String()
}
// SetJobSummary sets the JobSummary field's value.
func (s *StartJobOutput) SetJobSummary(v *JobSummary) *StartJobOutput {
s.JobSummary = v
return s
}
// Describes an execution step, for an execution job, for an Amplify app.
type Step struct {
_ struct{} `type:"structure"`
// The URL to the artifact for the execution step.
ArtifactsUrl *string `locationName:"artifactsUrl" type:"string"`
// The context for the current step. Includes a build image if the step is build.
Context *string `locationName:"context" type:"string"`
// The end date and time of the execution step.
//
// EndTime is a required field
EndTime *time.Time `locationName:"endTime" type:"timestamp" required:"true"`
// The URL to the logs for the execution step.
LogUrl *string `locationName:"logUrl" type:"string"`
// The list of screenshot URLs for the execution step, if relevant.
Screenshots map[string]*string `locationName:"screenshots" type:"map"`
// The start date and time of the execution step.
//
// StartTime is a required field
StartTime *time.Time `locationName:"startTime" type:"timestamp" required:"true"`
// The status of the execution step.
//
// Status is a required field
Status *string `locationName:"status" type:"string" required:"true" enum:"JobStatus"`
// The reason for the current step status.
StatusReason *string `locationName:"statusReason" type:"string"`
// The name of the execution step.
//
// StepName is a required field
StepName *string `locationName:"stepName" type:"string" required:"true"`
// The URL to the test artifact for the execution step.
TestArtifactsUrl *string `locationName:"testArtifactsUrl" type:"string"`
// The URL to the test configuration for the execution step.
TestConfigUrl *string `locationName:"testConfigUrl" type:"string"`
}
// String returns the string representation
func (s Step) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s Step) GoString() string {
return s.String()
}
// SetArtifactsUrl sets the ArtifactsUrl field's value.
func (s *Step) SetArtifactsUrl(v string) *Step {
s.ArtifactsUrl = &v
return s
}
// SetContext sets the Context field's value.
func (s *Step) SetContext(v string) *Step {
s.Context = &v
return s
}
// SetEndTime sets the EndTime field's value.
func (s *Step) SetEndTime(v time.Time) *Step {
s.EndTime = &v
return s
}
// SetLogUrl sets the LogUrl field's value.
func (s *Step) SetLogUrl(v string) *Step {
s.LogUrl = &v
return s
}
// SetScreenshots sets the Screenshots field's value.
func (s *Step) SetScreenshots(v map[string]*string) *Step {
s.Screenshots = v
return s
}
// SetStartTime sets the StartTime field's value.
func (s *Step) SetStartTime(v time.Time) *Step {
s.StartTime = &v
return s
}
// SetStatus sets the Status field's value.
func (s *Step) SetStatus(v string) *Step {
s.Status = &v
return s
}
// SetStatusReason sets the StatusReason field's value.
func (s *Step) SetStatusReason(v string) *Step {
s.StatusReason = &v
return s
}
// SetStepName sets the StepName field's value.
func (s *Step) SetStepName(v string) *Step {
s.StepName = &v
return s
}
// SetTestArtifactsUrl sets the TestArtifactsUrl field's value.
func (s *Step) SetTestArtifactsUrl(v string) *Step {
s.TestArtifactsUrl = &v
return s
}
// SetTestConfigUrl sets the TestConfigUrl field's value.
func (s *Step) SetTestConfigUrl(v string) *Step {
s.TestConfigUrl = &v
return s
}
// The request structure for the stop job request.
type StopJobInput struct {
_ struct{} `type:"structure"`
// The unique ID for an Amplify app.
//
// AppId is a required field
AppId *string `location:"uri" locationName:"appId" min:"1" type:"string" required:"true"`
// The name for the branch, for the job.
//
// BranchName is a required field
BranchName *string `location:"uri" locationName:"branchName" min:"1" type:"string" required:"true"`
// The unique id for the job.
//
// JobId is a required field
JobId *string `location:"uri" locationName:"jobId" type:"string" required:"true"`
}
// String returns the string representation
func (s StopJobInput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s StopJobInput) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
func (s *StopJobInput) Validate() error {
invalidParams := request.ErrInvalidParams{Context: "StopJobInput"}
if s.AppId == nil {
invalidParams.Add(request.NewErrParamRequired("AppId"))
}
if s.AppId != nil && len(*s.AppId) < 1 {
invalidParams.Add(request.NewErrParamMinLen("AppId", 1))
}
if s.BranchName == nil {
invalidParams.Add(request.NewErrParamRequired("BranchName"))
}
if s.BranchName != nil && len(*s.BranchName) < 1 {
invalidParams.Add(request.NewErrParamMinLen("BranchName", 1))
}
if s.JobId == nil {
invalidParams.Add(request.NewErrParamRequired("JobId"))
}
if s.JobId != nil && len(*s.JobId) < 1 {
invalidParams.Add(request.NewErrParamMinLen("JobId", 1))
}
if invalidParams.Len() > 0 {
return invalidParams
}
return nil
}
// SetAppId sets the AppId field's value.
func (s *StopJobInput) SetAppId(v string) *StopJobInput {
s.AppId = &v
return s
}
// SetBranchName sets the BranchName field's value.
func (s *StopJobInput) SetBranchName(v string) *StopJobInput {
s.BranchName = &v
return s
}
// SetJobId sets the JobId field's value.
func (s *StopJobInput) SetJobId(v string) *StopJobInput {
s.JobId = &v
return s
}
// The result structure for the stop job request.
type StopJobOutput struct {
_ struct{} `type:"structure"`
// The summary for the job.
//
// JobSummary is a required field
JobSummary *JobSummary `locationName:"jobSummary" type:"structure" required:"true"`
}
// String returns the string representation
func (s StopJobOutput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s StopJobOutput) GoString() string {
return s.String()
}
// SetJobSummary sets the JobSummary field's value.
func (s *StopJobOutput) SetJobSummary(v *JobSummary) *StopJobOutput {
s.JobSummary = v
return s
}
// The subdomain for the domain association.
type SubDomain struct {
_ struct{} `type:"structure"`
// The DNS record for the subdomain.
//
// DnsRecord is a required field
DnsRecord *string `locationName:"dnsRecord" type:"string" required:"true"`
// Describes the settings for the subdomain.
//
// SubDomainSetting is a required field
SubDomainSetting *SubDomainSetting `locationName:"subDomainSetting" type:"structure" required:"true"`
// The verified status of the subdomain
//
// Verified is a required field
Verified *bool `locationName:"verified" type:"boolean" required:"true"`
}
// String returns the string representation
func (s SubDomain) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s SubDomain) GoString() string {
return s.String()
}
// SetDnsRecord sets the DnsRecord field's value.
func (s *SubDomain) SetDnsRecord(v string) *SubDomain {
s.DnsRecord = &v
return s
}
// SetSubDomainSetting sets the SubDomainSetting field's value.
func (s *SubDomain) SetSubDomainSetting(v *SubDomainSetting) *SubDomain {
s.SubDomainSetting = v
return s
}
// SetVerified sets the Verified field's value.
func (s *SubDomain) SetVerified(v bool) *SubDomain {
s.Verified = &v
return s
}
// Describes the settings for the subdomain.
type SubDomainSetting struct {
_ struct{} `type:"structure"`
// The branch name setting for the subdomain.
//
// BranchName is a required field
BranchName *string `locationName:"branchName" min:"1" type:"string" required:"true"`
// The prefix setting for the subdomain.
//
// Prefix is a required field
Prefix *string `locationName:"prefix" type:"string" required:"true"`
}
// String returns the string representation
func (s SubDomainSetting) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s SubDomainSetting) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
func (s *SubDomainSetting) Validate() error {
invalidParams := request.ErrInvalidParams{Context: "SubDomainSetting"}
if s.BranchName == nil {
invalidParams.Add(request.NewErrParamRequired("BranchName"))
}
if s.BranchName != nil && len(*s.BranchName) < 1 {
invalidParams.Add(request.NewErrParamMinLen("BranchName", 1))
}
if s.Prefix == nil {
invalidParams.Add(request.NewErrParamRequired("Prefix"))
}
if invalidParams.Len() > 0 {
return invalidParams
}
return nil
}
// SetBranchName sets the BranchName field's value.
func (s *SubDomainSetting) SetBranchName(v string) *SubDomainSetting {
s.BranchName = &v
return s
}
// SetPrefix sets the Prefix field's value.
func (s *SubDomainSetting) SetPrefix(v string) *SubDomainSetting {
s.Prefix = &v
return s
}
// The request structure to tag a resource with a tag key and value.
type TagResourceInput struct {
_ struct{} `type:"structure"`
// The Amazon Resource Name (ARN) to use to tag a resource.
//
// ResourceArn is a required field
ResourceArn *string `location:"uri" locationName:"resourceArn" type:"string" required:"true"`
// The tags used to tag the resource.
//
// Tags is a required field
Tags map[string]*string `locationName:"tags" min:"1" type:"map" required:"true"`
}
// String returns the string representation
func (s TagResourceInput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s TagResourceInput) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
func (s *TagResourceInput) Validate() error {
invalidParams := request.ErrInvalidParams{Context: "TagResourceInput"}
if s.ResourceArn == nil {
invalidParams.Add(request.NewErrParamRequired("ResourceArn"))
}
if s.ResourceArn != nil && len(*s.ResourceArn) < 1 {
invalidParams.Add(request.NewErrParamMinLen("ResourceArn", 1))
}
if s.Tags == nil {
invalidParams.Add(request.NewErrParamRequired("Tags"))
}
if s.Tags != nil && len(s.Tags) < 1 {
invalidParams.Add(request.NewErrParamMinLen("Tags", 1))
}
if invalidParams.Len() > 0 {
return invalidParams
}
return nil
}
// SetResourceArn sets the ResourceArn field's value.
func (s *TagResourceInput) SetResourceArn(v string) *TagResourceInput {
s.ResourceArn = &v
return s
}
// SetTags sets the Tags field's value.
func (s *TagResourceInput) SetTags(v map[string]*string) *TagResourceInput {
s.Tags = v
return s
}
// The response for the tag resource request.
type TagResourceOutput struct {
_ struct{} `type:"structure"`
}
// String returns the string representation
func (s TagResourceOutput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s TagResourceOutput) GoString() string {
return s.String()
}
// An operation failed due to a lack of access.
type UnauthorizedException struct {
_ struct{} `type:"structure"`
RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
// String returns the string representation
func (s UnauthorizedException) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s UnauthorizedException) GoString() string {
return s.String()
}
func newErrorUnauthorizedException(v protocol.ResponseMetadata) error {
return &UnauthorizedException{
RespMetadata: v,
}
}
// Code returns the exception type name.
func (s *UnauthorizedException) Code() string {
return "UnauthorizedException"
}
// Message returns the exception's message.
func (s *UnauthorizedException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
return ""
}
// OrigErr always returns nil, satisfies awserr.Error interface.
func (s *UnauthorizedException) OrigErr() error {
return nil
}
func (s *UnauthorizedException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
func (s *UnauthorizedException) StatusCode() int {
return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
func (s *UnauthorizedException) RequestID() string {
return s.RespMetadata.RequestID
}
// The request structure for the untag resource request.
type UntagResourceInput struct {
_ struct{} `type:"structure"`
// The Amazon Resource Name (ARN) to use to untag a resource.
//
// ResourceArn is a required field
ResourceArn *string `location:"uri" locationName:"resourceArn" type:"string" required:"true"`
// The tag keys to use to untag a resource.
//
// TagKeys is a required field
TagKeys []*string `location:"querystring" locationName:"tagKeys" min:"1" type:"list" required:"true"`
}
// String returns the string representation
func (s UntagResourceInput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s UntagResourceInput) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
func (s *UntagResourceInput) Validate() error {
invalidParams := request.ErrInvalidParams{Context: "UntagResourceInput"}
if s.ResourceArn == nil {
invalidParams.Add(request.NewErrParamRequired("ResourceArn"))
}
if s.ResourceArn != nil && len(*s.ResourceArn) < 1 {
invalidParams.Add(request.NewErrParamMinLen("ResourceArn", 1))
}
if s.TagKeys == nil {
invalidParams.Add(request.NewErrParamRequired("TagKeys"))
}
if s.TagKeys != nil && len(s.TagKeys) < 1 {
invalidParams.Add(request.NewErrParamMinLen("TagKeys", 1))
}
if invalidParams.Len() > 0 {
return invalidParams
}
return nil
}
// SetResourceArn sets the ResourceArn field's value.
func (s *UntagResourceInput) SetResourceArn(v string) *UntagResourceInput {
s.ResourceArn = &v
return s
}
// SetTagKeys sets the TagKeys field's value.
func (s *UntagResourceInput) SetTagKeys(v []*string) *UntagResourceInput {
s.TagKeys = v
return s
}
// The response for the untag resource request.
type UntagResourceOutput struct {
_ struct{} `type:"structure"`
}
// String returns the string representation
func (s UntagResourceOutput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s UntagResourceOutput) GoString() string {
return s.String()
}
// The request structure for the update app request.
type UpdateAppInput struct {
_ struct{} `type:"structure"`
// The personal access token for a third-party source control system for an
// Amplify app. The token is used to create webhook and a read-only deploy key.
// The token is not stored.
AccessToken *string `locationName:"accessToken" min:"1" type:"string" sensitive:"true"`
// The unique ID for an Amplify app.
//
// AppId is a required field
AppId *string `location:"uri" locationName:"appId" min:"1" type:"string" required:"true"`
// The automated branch creation configuration for an Amplify app.
AutoBranchCreationConfig *AutoBranchCreationConfig `locationName:"autoBranchCreationConfig" type:"structure"`
// Describes the automated branch creation glob patterns for an Amplify app.
AutoBranchCreationPatterns []*string `locationName:"autoBranchCreationPatterns" type:"list"`
// The basic authorization credentials for an Amplify app.
BasicAuthCredentials *string `locationName:"basicAuthCredentials" type:"string" sensitive:"true"`
// The build specification (build spec) for an Amplify app.
BuildSpec *string `locationName:"buildSpec" min:"1" type:"string"`
// The custom HTTP headers for an Amplify app.
CustomHeaders *string `locationName:"customHeaders" min:"1" type:"string"`
// The custom redirect and rewrite rules for an Amplify app.
CustomRules []*CustomRule `locationName:"customRules" type:"list"`
// The description for an Amplify app.
Description *string `locationName:"description" type:"string"`
// Enables automated branch creation for an Amplify app.
EnableAutoBranchCreation *bool `locationName:"enableAutoBranchCreation" type:"boolean"`
// Enables basic authorization for an Amplify app.
EnableBasicAuth *bool `locationName:"enableBasicAuth" type:"boolean"`
// Enables branch auto-building for an Amplify app.
EnableBranchAutoBuild *bool `locationName:"enableBranchAutoBuild" type:"boolean"`
// Automatically disconnects a branch in the Amplify Console when you delete
// a branch from your Git repository.
EnableBranchAutoDeletion *bool `locationName:"enableBranchAutoDeletion" type:"boolean"`
// The environment variables for an Amplify app.
EnvironmentVariables map[string]*string `locationName:"environmentVariables" type:"map"`
// The AWS Identity and Access Management (IAM) service role for an Amplify
// app.
IamServiceRoleArn *string `locationName:"iamServiceRoleArn" min:"1" type:"string"`
// The name for an Amplify app.
Name *string `locationName:"name" min:"1" type:"string"`
// The OAuth token for a third-party source control system for an Amplify app.
// The token is used to create a webhook and a read-only deploy key. The OAuth
// token is not stored.
OauthToken *string `locationName:"oauthToken" type:"string" sensitive:"true"`
// The platform for an Amplify app.
Platform *string `locationName:"platform" type:"string" enum:"Platform"`
// The name of the repository for an Amplify app
Repository *string `locationName:"repository" type:"string"`
}
// String returns the string representation
func (s UpdateAppInput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s UpdateAppInput) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
func (s *UpdateAppInput) Validate() error {
invalidParams := request.ErrInvalidParams{Context: "UpdateAppInput"}
if s.AccessToken != nil && len(*s.AccessToken) < 1 {
invalidParams.Add(request.NewErrParamMinLen("AccessToken", 1))
}
if s.AppId == nil {
invalidParams.Add(request.NewErrParamRequired("AppId"))
}
if s.AppId != nil && len(*s.AppId) < 1 {
invalidParams.Add(request.NewErrParamMinLen("AppId", 1))
}
if s.BuildSpec != nil && len(*s.BuildSpec) < 1 {
invalidParams.Add(request.NewErrParamMinLen("BuildSpec", 1))
}
if s.CustomHeaders != nil && len(*s.CustomHeaders) < 1 {
invalidParams.Add(request.NewErrParamMinLen("CustomHeaders", 1))
}
if s.IamServiceRoleArn != nil && len(*s.IamServiceRoleArn) < 1 {
invalidParams.Add(request.NewErrParamMinLen("IamServiceRoleArn", 1))
}
if s.Name != nil && len(*s.Name) < 1 {
invalidParams.Add(request.NewErrParamMinLen("Name", 1))
}
if s.AutoBranchCreationConfig != nil {
if err := s.AutoBranchCreationConfig.Validate(); err != nil {
invalidParams.AddNested("AutoBranchCreationConfig", err.(request.ErrInvalidParams))
}
}
if s.CustomRules != nil {
for i, v := range s.CustomRules {
if v == nil {
continue
}
if err := v.Validate(); err != nil {
invalidParams.AddNested(fmt.Sprintf("%s[%v]", "CustomRules", i), err.(request.ErrInvalidParams))
}
}
}
if invalidParams.Len() > 0 {
return invalidParams
}
return nil
}
// SetAccessToken sets the AccessToken field's value.
func (s *UpdateAppInput) SetAccessToken(v string) *UpdateAppInput {
s.AccessToken = &v
return s
}
// SetAppId sets the AppId field's value.
func (s *UpdateAppInput) SetAppId(v string) *UpdateAppInput {
s.AppId = &v
return s
}
// SetAutoBranchCreationConfig sets the AutoBranchCreationConfig field's value.
func (s *UpdateAppInput) SetAutoBranchCreationConfig(v *AutoBranchCreationConfig) *UpdateAppInput {
s.AutoBranchCreationConfig = v
return s
}
// SetAutoBranchCreationPatterns sets the AutoBranchCreationPatterns field's value.
func (s *UpdateAppInput) SetAutoBranchCreationPatterns(v []*string) *UpdateAppInput {
s.AutoBranchCreationPatterns = v
return s
}
// SetBasicAuthCredentials sets the BasicAuthCredentials field's value.
func (s *UpdateAppInput) SetBasicAuthCredentials(v string) *UpdateAppInput {
s.BasicAuthCredentials = &v
return s
}
// SetBuildSpec sets the BuildSpec field's value.
func (s *UpdateAppInput) SetBuildSpec(v string) *UpdateAppInput {
s.BuildSpec = &v
return s
}
// SetCustomHeaders sets the CustomHeaders field's value.
func (s *UpdateAppInput) SetCustomHeaders(v string) *UpdateAppInput {
s.CustomHeaders = &v
return s
}
// SetCustomRules sets the CustomRules field's value.
func (s *UpdateAppInput) SetCustomRules(v []*CustomRule) *UpdateAppInput {
s.CustomRules = v
return s
}
// SetDescription sets the Description field's value.
func (s *UpdateAppInput) SetDescription(v string) *UpdateAppInput {
s.Description = &v
return s
}
// SetEnableAutoBranchCreation sets the EnableAutoBranchCreation field's value.
func (s *UpdateAppInput) SetEnableAutoBranchCreation(v bool) *UpdateAppInput {
s.EnableAutoBranchCreation = &v
return s
}
// SetEnableBasicAuth sets the EnableBasicAuth field's value.
func (s *UpdateAppInput) SetEnableBasicAuth(v bool) *UpdateAppInput {
s.EnableBasicAuth = &v
return s
}
// SetEnableBranchAutoBuild sets the EnableBranchAutoBuild field's value.
func (s *UpdateAppInput) SetEnableBranchAutoBuild(v bool) *UpdateAppInput {
s.EnableBranchAutoBuild = &v
return s
}
// SetEnableBranchAutoDeletion sets the EnableBranchAutoDeletion field's value.
func (s *UpdateAppInput) SetEnableBranchAutoDeletion(v bool) *UpdateAppInput {
s.EnableBranchAutoDeletion = &v
return s
}
// SetEnvironmentVariables sets the EnvironmentVariables field's value.
func (s *UpdateAppInput) SetEnvironmentVariables(v map[string]*string) *UpdateAppInput {
s.EnvironmentVariables = v
return s
}
// SetIamServiceRoleArn sets the IamServiceRoleArn field's value.
func (s *UpdateAppInput) SetIamServiceRoleArn(v string) *UpdateAppInput {
s.IamServiceRoleArn = &v
return s
}
// SetName sets the Name field's value.
func (s *UpdateAppInput) SetName(v string) *UpdateAppInput {
s.Name = &v
return s
}
// SetOauthToken sets the OauthToken field's value.
func (s *UpdateAppInput) SetOauthToken(v string) *UpdateAppInput {
s.OauthToken = &v
return s
}
// SetPlatform sets the Platform field's value.
func (s *UpdateAppInput) SetPlatform(v string) *UpdateAppInput {
s.Platform = &v
return s
}
// SetRepository sets the Repository field's value.
func (s *UpdateAppInput) SetRepository(v string) *UpdateAppInput {
s.Repository = &v
return s
}
// The result structure for an Amplify app update request.
type UpdateAppOutput struct {
_ struct{} `type:"structure"`
// Represents the updated Amplify app.
//
// App is a required field
App *App `locationName:"app" type:"structure" required:"true"`
}
// String returns the string representation
func (s UpdateAppOutput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s UpdateAppOutput) GoString() string {
return s.String()
}
// SetApp sets the App field's value.
func (s *UpdateAppOutput) SetApp(v *App) *UpdateAppOutput {
s.App = v
return s
}
// The request structure for the update branch request.
type UpdateBranchInput struct {
_ struct{} `type:"structure"`
// The unique ID for an Amplify app.
//
// AppId is a required field
AppId *string `location:"uri" locationName:"appId" min:"1" type:"string" required:"true"`
// The Amazon Resource Name (ARN) for a backend environment that is part of
// an Amplify app.
BackendEnvironmentArn *string `locationName:"backendEnvironmentArn" min:"1" type:"string"`
// The basic authorization credentials for the branch.
BasicAuthCredentials *string `locationName:"basicAuthCredentials" type:"string" sensitive:"true"`
// The name for the branch.
//
// BranchName is a required field
BranchName *string `location:"uri" locationName:"branchName" min:"1" type:"string" required:"true"`
// The build specification (build spec) for the branch.
BuildSpec *string `locationName:"buildSpec" min:"1" type:"string"`
// The description for the branch.
Description *string `locationName:"description" type:"string"`
// The display name for a branch. This is used as the default domain prefix.
DisplayName *string `locationName:"displayName" type:"string"`
// Enables auto building for the branch.
EnableAutoBuild *bool `locationName:"enableAutoBuild" type:"boolean"`
// Enables basic authorization for the branch.
EnableBasicAuth *bool `locationName:"enableBasicAuth" type:"boolean"`
// Enables notifications for the branch.
EnableNotification *bool `locationName:"enableNotification" type:"boolean"`
// Enables performance mode for the branch.
//
// Performance mode optimizes for faster hosting performance by keeping content
// cached at the edge for a longer interval. When performance mode is enabled,
// hosting configuration or code changes can take up to 10 minutes to roll out.
EnablePerformanceMode *bool `locationName:"enablePerformanceMode" type:"boolean"`
// Enables pull request previews for this branch.
EnablePullRequestPreview *bool `locationName:"enablePullRequestPreview" type:"boolean"`
// The environment variables for the branch.
EnvironmentVariables map[string]*string `locationName:"environmentVariables" type:"map"`
// The framework for the branch.
Framework *string `locationName:"framework" type:"string"`
// The Amplify environment name for the pull request.
PullRequestEnvironmentName *string `locationName:"pullRequestEnvironmentName" type:"string"`
// Describes the current stage for the branch.
Stage *string `locationName:"stage" type:"string" enum:"Stage"`
// The content Time to Live (TTL) for the website in seconds.
Ttl *string `locationName:"ttl" type:"string"`
}
// String returns the string representation
func (s UpdateBranchInput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s UpdateBranchInput) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
func (s *UpdateBranchInput) Validate() error {
invalidParams := request.ErrInvalidParams{Context: "UpdateBranchInput"}
if s.AppId == nil {
invalidParams.Add(request.NewErrParamRequired("AppId"))
}
if s.AppId != nil && len(*s.AppId) < 1 {
invalidParams.Add(request.NewErrParamMinLen("AppId", 1))
}
if s.BackendEnvironmentArn != nil && len(*s.BackendEnvironmentArn) < 1 {
invalidParams.Add(request.NewErrParamMinLen("BackendEnvironmentArn", 1))
}
if s.BranchName == nil {
invalidParams.Add(request.NewErrParamRequired("BranchName"))
}
if s.BranchName != nil && len(*s.BranchName) < 1 {
invalidParams.Add(request.NewErrParamMinLen("BranchName", 1))
}
if s.BuildSpec != nil && len(*s.BuildSpec) < 1 {
invalidParams.Add(request.NewErrParamMinLen("BuildSpec", 1))
}
if invalidParams.Len() > 0 {
return invalidParams
}
return nil
}
// SetAppId sets the AppId field's value.
func (s *UpdateBranchInput) SetAppId(v string) *UpdateBranchInput {
s.AppId = &v
return s
}
// SetBackendEnvironmentArn sets the BackendEnvironmentArn field's value.
func (s *UpdateBranchInput) SetBackendEnvironmentArn(v string) *UpdateBranchInput {
s.BackendEnvironmentArn = &v
return s
}
// SetBasicAuthCredentials sets the BasicAuthCredentials field's value.
func (s *UpdateBranchInput) SetBasicAuthCredentials(v string) *UpdateBranchInput {
s.BasicAuthCredentials = &v
return s
}
// SetBranchName sets the BranchName field's value.
func (s *UpdateBranchInput) SetBranchName(v string) *UpdateBranchInput {
s.BranchName = &v
return s
}
// SetBuildSpec sets the BuildSpec field's value.
func (s *UpdateBranchInput) SetBuildSpec(v string) *UpdateBranchInput {
s.BuildSpec = &v
return s
}
// SetDescription sets the Description field's value.
func (s *UpdateBranchInput) SetDescription(v string) *UpdateBranchInput {
s.Description = &v
return s
}
// SetDisplayName sets the DisplayName field's value.
func (s *UpdateBranchInput) SetDisplayName(v string) *UpdateBranchInput {
s.DisplayName = &v
return s
}
// SetEnableAutoBuild sets the EnableAutoBuild field's value.
func (s *UpdateBranchInput) SetEnableAutoBuild(v bool) *UpdateBranchInput {
s.EnableAutoBuild = &v
return s
}
// SetEnableBasicAuth sets the EnableBasicAuth field's value.
func (s *UpdateBranchInput) SetEnableBasicAuth(v bool) *UpdateBranchInput {
s.EnableBasicAuth = &v
return s
}
// SetEnableNotification sets the EnableNotification field's value.
func (s *UpdateBranchInput) SetEnableNotification(v bool) *UpdateBranchInput {
s.EnableNotification = &v
return s
}
// SetEnablePerformanceMode sets the EnablePerformanceMode field's value.
func (s *UpdateBranchInput) SetEnablePerformanceMode(v bool) *UpdateBranchInput {
s.EnablePerformanceMode = &v
return s
}
// SetEnablePullRequestPreview sets the EnablePullRequestPreview field's value.
func (s *UpdateBranchInput) SetEnablePullRequestPreview(v bool) *UpdateBranchInput {
s.EnablePullRequestPreview = &v
return s
}
// SetEnvironmentVariables sets the EnvironmentVariables field's value.
func (s *UpdateBranchInput) SetEnvironmentVariables(v map[string]*string) *UpdateBranchInput {
s.EnvironmentVariables = v
return s
}
// SetFramework sets the Framework field's value.
func (s *UpdateBranchInput) SetFramework(v string) *UpdateBranchInput {
s.Framework = &v
return s
}
// SetPullRequestEnvironmentName sets the PullRequestEnvironmentName field's value.
func (s *UpdateBranchInput) SetPullRequestEnvironmentName(v string) *UpdateBranchInput {
s.PullRequestEnvironmentName = &v
return s
}
// SetStage sets the Stage field's value.
func (s *UpdateBranchInput) SetStage(v string) *UpdateBranchInput {
s.Stage = &v
return s
}
// SetTtl sets the Ttl field's value.
func (s *UpdateBranchInput) SetTtl(v string) *UpdateBranchInput {
s.Ttl = &v
return s
}
// The result structure for the update branch request.
type UpdateBranchOutput struct {
_ struct{} `type:"structure"`
// The branch for an Amplify app, which maps to a third-party repository branch.
//
// Branch is a required field
Branch *Branch `locationName:"branch" type:"structure" required:"true"`
}
// String returns the string representation
func (s UpdateBranchOutput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s UpdateBranchOutput) GoString() string {
return s.String()
}
// SetBranch sets the Branch field's value.
func (s *UpdateBranchOutput) SetBranch(v *Branch) *UpdateBranchOutput {
s.Branch = v
return s
}
// The request structure for the update domain association request.
type UpdateDomainAssociationInput struct {
_ struct{} `type:"structure"`
// The unique ID for an Amplify app.
//
// AppId is a required field
AppId *string `location:"uri" locationName:"appId" min:"1" type:"string" required:"true"`
// Sets the branch patterns for automatic subdomain creation.
AutoSubDomainCreationPatterns []*string `locationName:"autoSubDomainCreationPatterns" type:"list"`
// The required AWS Identity and Access Management (IAM) service role for the
// Amazon Resource Name (ARN) for automatically creating subdomains.
AutoSubDomainIAMRole *string `locationName:"autoSubDomainIAMRole" type:"string"`
// The name of the domain.
//
// DomainName is a required field
DomainName *string `location:"uri" locationName:"domainName" type:"string" required:"true"`
// Enables the automated creation of subdomains for branches.
EnableAutoSubDomain *bool `locationName:"enableAutoSubDomain" type:"boolean"`
// Describes the settings for the subdomain.
//
// SubDomainSettings is a required field
SubDomainSettings []*SubDomainSetting `locationName:"subDomainSettings" type:"list" required:"true"`
}
// String returns the string representation
func (s UpdateDomainAssociationInput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s UpdateDomainAssociationInput) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
func (s *UpdateDomainAssociationInput) Validate() error {
invalidParams := request.ErrInvalidParams{Context: "UpdateDomainAssociationInput"}
if s.AppId == nil {
invalidParams.Add(request.NewErrParamRequired("AppId"))
}
if s.AppId != nil && len(*s.AppId) < 1 {
invalidParams.Add(request.NewErrParamMinLen("AppId", 1))
}
if s.DomainName == nil {
invalidParams.Add(request.NewErrParamRequired("DomainName"))
}
if s.DomainName != nil && len(*s.DomainName) < 1 {
invalidParams.Add(request.NewErrParamMinLen("DomainName", 1))
}
if s.SubDomainSettings == nil {
invalidParams.Add(request.NewErrParamRequired("SubDomainSettings"))
}
if s.SubDomainSettings != nil {
for i, v := range s.SubDomainSettings {
if v == nil {
continue
}
if err := v.Validate(); err != nil {
invalidParams.AddNested(fmt.Sprintf("%s[%v]", "SubDomainSettings", i), err.(request.ErrInvalidParams))
}
}
}
if invalidParams.Len() > 0 {
return invalidParams
}
return nil
}
// SetAppId sets the AppId field's value.
func (s *UpdateDomainAssociationInput) SetAppId(v string) *UpdateDomainAssociationInput {
s.AppId = &v
return s
}
// SetAutoSubDomainCreationPatterns sets the AutoSubDomainCreationPatterns field's value.
func (s *UpdateDomainAssociationInput) SetAutoSubDomainCreationPatterns(v []*string) *UpdateDomainAssociationInput {
s.AutoSubDomainCreationPatterns = v
return s
}
// SetAutoSubDomainIAMRole sets the AutoSubDomainIAMRole field's value.
func (s *UpdateDomainAssociationInput) SetAutoSubDomainIAMRole(v string) *UpdateDomainAssociationInput {
s.AutoSubDomainIAMRole = &v
return s
}
// SetDomainName sets the DomainName field's value.
func (s *UpdateDomainAssociationInput) SetDomainName(v string) *UpdateDomainAssociationInput {
s.DomainName = &v
return s
}
// SetEnableAutoSubDomain sets the EnableAutoSubDomain field's value.
func (s *UpdateDomainAssociationInput) SetEnableAutoSubDomain(v bool) *UpdateDomainAssociationInput {
s.EnableAutoSubDomain = &v
return s
}
// SetSubDomainSettings sets the SubDomainSettings field's value.
func (s *UpdateDomainAssociationInput) SetSubDomainSettings(v []*SubDomainSetting) *UpdateDomainAssociationInput {
s.SubDomainSettings = v
return s
}
// The result structure for the update domain association request.
type UpdateDomainAssociationOutput struct {
_ struct{} `type:"structure"`
// Describes a domain association, which associates a custom domain with an
// Amplify app.
//
// DomainAssociation is a required field
DomainAssociation *DomainAssociation `locationName:"domainAssociation" type:"structure" required:"true"`
}
// String returns the string representation
func (s UpdateDomainAssociationOutput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s UpdateDomainAssociationOutput) GoString() string {
return s.String()
}
// SetDomainAssociation sets the DomainAssociation field's value.
func (s *UpdateDomainAssociationOutput) SetDomainAssociation(v *DomainAssociation) *UpdateDomainAssociationOutput {
s.DomainAssociation = v
return s
}
// The request structure for the update webhook request.
type UpdateWebhookInput struct {
_ struct{} `type:"structure"`
// The name for a branch that is part of an Amplify app.
BranchName *string `locationName:"branchName" min:"1" type:"string"`
// The description for a webhook.
Description *string `locationName:"description" type:"string"`
// The unique ID for a webhook.
//
// WebhookId is a required field
WebhookId *string `location:"uri" locationName:"webhookId" type:"string" required:"true"`
}
// String returns the string representation
func (s UpdateWebhookInput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s UpdateWebhookInput) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
func (s *UpdateWebhookInput) Validate() error {
invalidParams := request.ErrInvalidParams{Context: "UpdateWebhookInput"}
if s.BranchName != nil && len(*s.BranchName) < 1 {
invalidParams.Add(request.NewErrParamMinLen("BranchName", 1))
}
if s.WebhookId == nil {
invalidParams.Add(request.NewErrParamRequired("WebhookId"))
}
if s.WebhookId != nil && len(*s.WebhookId) < 1 {
invalidParams.Add(request.NewErrParamMinLen("WebhookId", 1))
}
if invalidParams.Len() > 0 {
return invalidParams
}
return nil
}
// SetBranchName sets the BranchName field's value.
func (s *UpdateWebhookInput) SetBranchName(v string) *UpdateWebhookInput {
s.BranchName = &v
return s
}
// SetDescription sets the Description field's value.
func (s *UpdateWebhookInput) SetDescription(v string) *UpdateWebhookInput {
s.Description = &v
return s
}
// SetWebhookId sets the WebhookId field's value.
func (s *UpdateWebhookInput) SetWebhookId(v string) *UpdateWebhookInput {
s.WebhookId = &v
return s
}
// The result structure for the update webhook request.
type UpdateWebhookOutput struct {
_ struct{} `type:"structure"`
// Describes a webhook that connects repository events to an Amplify app.
//
// Webhook is a required field
Webhook *Webhook `locationName:"webhook" type:"structure" required:"true"`
}
// String returns the string representation
func (s UpdateWebhookOutput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s UpdateWebhookOutput) GoString() string {
return s.String()
}
// SetWebhook sets the Webhook field's value.
func (s *UpdateWebhookOutput) SetWebhook(v *Webhook) *UpdateWebhookOutput {
s.Webhook = v
return s
}
// Describes a webhook that connects repository events to an Amplify app.
type Webhook struct {
_ struct{} `type:"structure"`
// The name for a branch that is part of an Amplify app.
//
// BranchName is a required field
BranchName *string `locationName:"branchName" min:"1" type:"string" required:"true"`
// The create date and time for a webhook.
//
// CreateTime is a required field
CreateTime *time.Time `locationName:"createTime" type:"timestamp" required:"true"`
// The description for a webhook.
//
// Description is a required field
Description *string `locationName:"description" type:"string" required:"true"`
// Updates the date and time for a webhook.
//
// UpdateTime is a required field
UpdateTime *time.Time `locationName:"updateTime" type:"timestamp" required:"true"`
// The Amazon Resource Name (ARN) for the webhook.
//
// WebhookArn is a required field
WebhookArn *string `locationName:"webhookArn" type:"string" required:"true"`
// The ID of the webhook.
//
// WebhookId is a required field
WebhookId *string `locationName:"webhookId" type:"string" required:"true"`
// The URL of the webhook.
//
// WebhookUrl is a required field
WebhookUrl *string `locationName:"webhookUrl" type:"string" required:"true"`
}
// String returns the string representation
func (s Webhook) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s Webhook) GoString() string {
return s.String()
}
// SetBranchName sets the BranchName field's value.
func (s *Webhook) SetBranchName(v string) *Webhook {
s.BranchName = &v
return s
}
// SetCreateTime sets the CreateTime field's value.
func (s *Webhook) SetCreateTime(v time.Time) *Webhook {
s.CreateTime = &v
return s
}
// SetDescription sets the Description field's value.
func (s *Webhook) SetDescription(v string) *Webhook {
s.Description = &v
return s
}
// SetUpdateTime sets the UpdateTime field's value.
func (s *Webhook) SetUpdateTime(v time.Time) *Webhook {
s.UpdateTime = &v
return s
}
// SetWebhookArn sets the WebhookArn field's value.
func (s *Webhook) SetWebhookArn(v string) *Webhook {
s.WebhookArn = &v
return s
}
// SetWebhookId sets the WebhookId field's value.
func (s *Webhook) SetWebhookId(v string) *Webhook {
s.WebhookId = &v
return s
}
// SetWebhookUrl sets the WebhookUrl field's value.
func (s *Webhook) SetWebhookUrl(v string) *Webhook {
s.WebhookUrl = &v
return s
}
const (
// DomainStatusPendingVerification is a DomainStatus enum value
DomainStatusPendingVerification = "PENDING_VERIFICATION"
// DomainStatusInProgress is a DomainStatus enum value
DomainStatusInProgress = "IN_PROGRESS"
// DomainStatusAvailable is a DomainStatus enum value
DomainStatusAvailable = "AVAILABLE"
// DomainStatusPendingDeployment is a DomainStatus enum value
DomainStatusPendingDeployment = "PENDING_DEPLOYMENT"
// DomainStatusFailed is a DomainStatus enum value
DomainStatusFailed = "FAILED"
// DomainStatusCreating is a DomainStatus enum value
DomainStatusCreating = "CREATING"
// DomainStatusRequestingCertificate is a DomainStatus enum value
DomainStatusRequestingCertificate = "REQUESTING_CERTIFICATE"
// DomainStatusUpdating is a DomainStatus enum value
DomainStatusUpdating = "UPDATING"
)
// DomainStatus_Values returns all elements of the DomainStatus enum
func DomainStatus_Values() []string {
return []string{
DomainStatusPendingVerification,
DomainStatusInProgress,
DomainStatusAvailable,
DomainStatusPendingDeployment,
DomainStatusFailed,
DomainStatusCreating,
DomainStatusRequestingCertificate,
DomainStatusUpdating,
}
}
const (
// JobStatusPending is a JobStatus enum value
JobStatusPending = "PENDING"
// JobStatusProvisioning is a JobStatus enum value
JobStatusProvisioning = "PROVISIONING"
// JobStatusRunning is a JobStatus enum value
JobStatusRunning = "RUNNING"
// JobStatusFailed is a JobStatus enum value
JobStatusFailed = "FAILED"
// JobStatusSucceed is a JobStatus enum value
JobStatusSucceed = "SUCCEED"
// JobStatusCancelling is a JobStatus enum value
JobStatusCancelling = "CANCELLING"
// JobStatusCancelled is a JobStatus enum value
JobStatusCancelled = "CANCELLED"
)
// JobStatus_Values returns all elements of the JobStatus enum
func JobStatus_Values() []string {
return []string{
JobStatusPending,
JobStatusProvisioning,
JobStatusRunning,
JobStatusFailed,
JobStatusSucceed,
JobStatusCancelling,
JobStatusCancelled,
}
}
const (
// JobTypeRelease is a JobType enum value
JobTypeRelease = "RELEASE"
// JobTypeRetry is a JobType enum value
JobTypeRetry = "RETRY"
// JobTypeManual is a JobType enum value
JobTypeManual = "MANUAL"
// JobTypeWebHook is a JobType enum value
JobTypeWebHook = "WEB_HOOK"
)
// JobType_Values returns all elements of the JobType enum
func JobType_Values() []string {
return []string{
JobTypeRelease,
JobTypeRetry,
JobTypeManual,
JobTypeWebHook,
}
}
const (
// PlatformWeb is a Platform enum value
PlatformWeb = "WEB"
)
// Platform_Values returns all elements of the Platform enum
func Platform_Values() []string {
return []string{
PlatformWeb,
}
}
const (
// StageProduction is a Stage enum value
StageProduction = "PRODUCTION"
// StageBeta is a Stage enum value
StageBeta = "BETA"
// StageDevelopment is a Stage enum value
StageDevelopment = "DEVELOPMENT"
// StageExperimental is a Stage enum value
StageExperimental = "EXPERIMENTAL"
// StagePullRequest is a Stage enum value
StagePullRequest = "PULL_REQUEST"
)
// Stage_Values returns all elements of the Stage enum
func Stage_Values() []string {
return []string{
StageProduction,
StageBeta,
StageDevelopment,
StageExperimental,
StagePullRequest,
}
}
| 9,529 |
session-manager-plugin | aws | Go | // Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
// Package amplify provides the client and types for making API
// requests to AWS Amplify.
//
// Amplify enables developers to develop and deploy cloud-powered mobile and
// web apps. The Amplify Console provides a continuous delivery and hosting
// service for web applications. For more information, see the Amplify Console
// User Guide (https://docs.aws.amazon.com/amplify/latest/userguide/welcome.html).
// The Amplify Framework is a comprehensive set of SDKs, libraries, tools, and
// documentation for client app development. For more information, see the Amplify
// Framework. (https://docs.amplify.aws/)
//
// See https://docs.aws.amazon.com/goto/WebAPI/amplify-2017-07-25 for more information on this service.
//
// See amplify package documentation for more information.
// https://docs.aws.amazon.com/sdk-for-go/api/service/amplify/
//
// Using the Client
//
// To contact AWS Amplify 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 Amplify client Amplify for more
// information on creating client for this service.
// https://docs.aws.amazon.com/sdk-for-go/api/service/amplify/#New
package amplify
| 35 |
session-manager-plugin | aws | Go | // Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
package amplify
import (
"github.com/aws/aws-sdk-go/private/protocol"
)
const (
// ErrCodeBadRequestException for service response error code
// "BadRequestException".
//
// A request contains unexpected data.
ErrCodeBadRequestException = "BadRequestException"
// ErrCodeDependentServiceFailureException for service response error code
// "DependentServiceFailureException".
//
// An operation failed because a dependent service threw an exception.
ErrCodeDependentServiceFailureException = "DependentServiceFailureException"
// ErrCodeInternalFailureException for service response error code
// "InternalFailureException".
//
// The service failed to perform an operation due to an internal issue.
ErrCodeInternalFailureException = "InternalFailureException"
// ErrCodeLimitExceededException for service response error code
// "LimitExceededException".
//
// A resource could not be created because service quotas were exceeded.
ErrCodeLimitExceededException = "LimitExceededException"
// ErrCodeNotFoundException for service response error code
// "NotFoundException".
//
// An entity was not found during an operation.
ErrCodeNotFoundException = "NotFoundException"
// ErrCodeResourceNotFoundException for service response error code
// "ResourceNotFoundException".
//
// An operation failed due to a non-existent resource.
ErrCodeResourceNotFoundException = "ResourceNotFoundException"
// ErrCodeUnauthorizedException for service response error code
// "UnauthorizedException".
//
// An operation failed due to a lack of access.
ErrCodeUnauthorizedException = "UnauthorizedException"
)
var exceptionFromCode = map[string]func(protocol.ResponseMetadata) error{
"BadRequestException": newErrorBadRequestException,
"DependentServiceFailureException": newErrorDependentServiceFailureException,
"InternalFailureException": newErrorInternalFailureException,
"LimitExceededException": newErrorLimitExceededException,
"NotFoundException": newErrorNotFoundException,
"ResourceNotFoundException": newErrorResourceNotFoundException,
"UnauthorizedException": newErrorUnauthorizedException,
}
| 63 |
session-manager-plugin | aws | Go | // Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
package amplify
import (
"github.com/aws/aws-sdk-go/aws"
"github.com/aws/aws-sdk-go/aws/client"
"github.com/aws/aws-sdk-go/aws/client/metadata"
"github.com/aws/aws-sdk-go/aws/request"
"github.com/aws/aws-sdk-go/aws/signer/v4"
"github.com/aws/aws-sdk-go/private/protocol"
"github.com/aws/aws-sdk-go/private/protocol/restjson"
)
// Amplify provides the API operation methods for making requests to
// AWS Amplify. See this package's package overview docs
// for details on the service.
//
// Amplify methods are safe to use concurrently. It is not safe to
// modify mutate any of the struct's properties though.
type Amplify struct {
*client.Client
}
// Used for custom client initialization logic
var initClient func(*client.Client)
// Used for custom request initialization logic
var initRequest func(*request.Request)
// Service information constants
const (
ServiceName = "Amplify" // Name of service.
EndpointsID = "amplify" // ID to lookup a service endpoint with.
ServiceID = "Amplify" // ServiceID is a unique identifier of a specific service.
)
// New creates a new instance of the Amplify 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 Amplify client from just a session.
// svc := amplify.New(mySession)
//
// // Create a Amplify client with additional configuration
// svc := amplify.New(mySession, aws.NewConfig().WithRegion("us-west-2"))
func New(p client.ConfigProvider, cfgs ...*aws.Config) *Amplify {
c := p.ClientConfig(EndpointsID, cfgs...)
if c.SigningNameDerived || len(c.SigningName) == 0 {
c.SigningName = "amplify"
}
return newClient(*c.Config, c.Handlers, c.PartitionID, c.Endpoint, c.SigningRegion, c.SigningName)
}
// newClient creates, initializes and returns a new service client instance.
func newClient(cfg aws.Config, handlers request.Handlers, partitionID, endpoint, signingRegion, signingName string) *Amplify {
svc := &Amplify{
Client: client.New(
cfg,
metadata.ClientInfo{
ServiceName: ServiceName,
ServiceID: ServiceID,
SigningName: signingName,
SigningRegion: signingRegion,
PartitionID: partitionID,
Endpoint: endpoint,
APIVersion: "2017-07-25",
},
handlers,
),
}
// Handlers
svc.Handlers.Sign.PushBackNamed(v4.SignRequestHandler)
svc.Handlers.Build.PushBackNamed(restjson.BuildHandler)
svc.Handlers.Unmarshal.PushBackNamed(restjson.UnmarshalHandler)
svc.Handlers.UnmarshalMeta.PushBackNamed(restjson.UnmarshalMetaHandler)
svc.Handlers.UnmarshalError.PushBackNamed(
protocol.NewUnmarshalErrorHandler(restjson.NewUnmarshalTypedError(exceptionFromCode)).NamedHandler(),
)
// Run custom client initialization if present
if initClient != nil {
initClient(svc.Client)
}
return svc
}
// newRequest creates a new request for a Amplify operation and runs any
// custom request initialization.
func (c *Amplify) newRequest(op *request.Operation, params, data interface{}) *request.Request {
req := c.NewRequest(op, params, data)
// Run custom request initialization if present
if initRequest != nil {
initRequest(req)
}
return req
}
| 105 |
session-manager-plugin | aws | Go | // Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
// Package amplifyiface provides an interface to enable mocking the AWS Amplify service client
// for testing your code.
//
// It is important to note that this interface will have breaking changes
// when the service model is updated and adds new API operations, paginators,
// and waiters.
package amplifyiface
import (
"github.com/aws/aws-sdk-go/aws"
"github.com/aws/aws-sdk-go/aws/request"
"github.com/aws/aws-sdk-go/service/amplify"
)
// AmplifyAPI provides an interface to enable mocking the
// amplify.Amplify service client's API operation,
// paginators, and waiters. This make unit testing your code that calls out
// to the SDK's service client's calls easier.
//
// The best way to use this interface is so the SDK's service client's calls
// can be stubbed out for unit testing your code with the SDK without needing
// to inject custom request handlers into the SDK's request pipeline.
//
// // myFunc uses an SDK service client to make a request to
// // AWS Amplify.
// func myFunc(svc amplifyiface.AmplifyAPI) bool {
// // Make svc.CreateApp request
// }
//
// func main() {
// sess := session.New()
// svc := amplify.New(sess)
//
// myFunc(svc)
// }
//
// In your _test.go file:
//
// // Define a mock struct to be used in your unit tests of myFunc.
// type mockAmplifyClient struct {
// amplifyiface.AmplifyAPI
// }
// func (m *mockAmplifyClient) CreateApp(input *amplify.CreateAppInput) (*amplify.CreateAppOutput, error) {
// // mock response/functionality
// }
//
// func TestMyFunc(t *testing.T) {
// // Setup Test
// mockSvc := &mockAmplifyClient{}
//
// myfunc(mockSvc)
//
// // Verify myFunc's functionality
// }
//
// It is important to note that this interface will have breaking changes
// when the service model is updated and adds new API operations, paginators,
// and waiters. Its suggested to use the pattern above for testing, or using
// tooling to generate mocks to satisfy the interfaces.
type AmplifyAPI interface {
CreateApp(*amplify.CreateAppInput) (*amplify.CreateAppOutput, error)
CreateAppWithContext(aws.Context, *amplify.CreateAppInput, ...request.Option) (*amplify.CreateAppOutput, error)
CreateAppRequest(*amplify.CreateAppInput) (*request.Request, *amplify.CreateAppOutput)
CreateBackendEnvironment(*amplify.CreateBackendEnvironmentInput) (*amplify.CreateBackendEnvironmentOutput, error)
CreateBackendEnvironmentWithContext(aws.Context, *amplify.CreateBackendEnvironmentInput, ...request.Option) (*amplify.CreateBackendEnvironmentOutput, error)
CreateBackendEnvironmentRequest(*amplify.CreateBackendEnvironmentInput) (*request.Request, *amplify.CreateBackendEnvironmentOutput)
CreateBranch(*amplify.CreateBranchInput) (*amplify.CreateBranchOutput, error)
CreateBranchWithContext(aws.Context, *amplify.CreateBranchInput, ...request.Option) (*amplify.CreateBranchOutput, error)
CreateBranchRequest(*amplify.CreateBranchInput) (*request.Request, *amplify.CreateBranchOutput)
CreateDeployment(*amplify.CreateDeploymentInput) (*amplify.CreateDeploymentOutput, error)
CreateDeploymentWithContext(aws.Context, *amplify.CreateDeploymentInput, ...request.Option) (*amplify.CreateDeploymentOutput, error)
CreateDeploymentRequest(*amplify.CreateDeploymentInput) (*request.Request, *amplify.CreateDeploymentOutput)
CreateDomainAssociation(*amplify.CreateDomainAssociationInput) (*amplify.CreateDomainAssociationOutput, error)
CreateDomainAssociationWithContext(aws.Context, *amplify.CreateDomainAssociationInput, ...request.Option) (*amplify.CreateDomainAssociationOutput, error)
CreateDomainAssociationRequest(*amplify.CreateDomainAssociationInput) (*request.Request, *amplify.CreateDomainAssociationOutput)
CreateWebhook(*amplify.CreateWebhookInput) (*amplify.CreateWebhookOutput, error)
CreateWebhookWithContext(aws.Context, *amplify.CreateWebhookInput, ...request.Option) (*amplify.CreateWebhookOutput, error)
CreateWebhookRequest(*amplify.CreateWebhookInput) (*request.Request, *amplify.CreateWebhookOutput)
DeleteApp(*amplify.DeleteAppInput) (*amplify.DeleteAppOutput, error)
DeleteAppWithContext(aws.Context, *amplify.DeleteAppInput, ...request.Option) (*amplify.DeleteAppOutput, error)
DeleteAppRequest(*amplify.DeleteAppInput) (*request.Request, *amplify.DeleteAppOutput)
DeleteBackendEnvironment(*amplify.DeleteBackendEnvironmentInput) (*amplify.DeleteBackendEnvironmentOutput, error)
DeleteBackendEnvironmentWithContext(aws.Context, *amplify.DeleteBackendEnvironmentInput, ...request.Option) (*amplify.DeleteBackendEnvironmentOutput, error)
DeleteBackendEnvironmentRequest(*amplify.DeleteBackendEnvironmentInput) (*request.Request, *amplify.DeleteBackendEnvironmentOutput)
DeleteBranch(*amplify.DeleteBranchInput) (*amplify.DeleteBranchOutput, error)
DeleteBranchWithContext(aws.Context, *amplify.DeleteBranchInput, ...request.Option) (*amplify.DeleteBranchOutput, error)
DeleteBranchRequest(*amplify.DeleteBranchInput) (*request.Request, *amplify.DeleteBranchOutput)
DeleteDomainAssociation(*amplify.DeleteDomainAssociationInput) (*amplify.DeleteDomainAssociationOutput, error)
DeleteDomainAssociationWithContext(aws.Context, *amplify.DeleteDomainAssociationInput, ...request.Option) (*amplify.DeleteDomainAssociationOutput, error)
DeleteDomainAssociationRequest(*amplify.DeleteDomainAssociationInput) (*request.Request, *amplify.DeleteDomainAssociationOutput)
DeleteJob(*amplify.DeleteJobInput) (*amplify.DeleteJobOutput, error)
DeleteJobWithContext(aws.Context, *amplify.DeleteJobInput, ...request.Option) (*amplify.DeleteJobOutput, error)
DeleteJobRequest(*amplify.DeleteJobInput) (*request.Request, *amplify.DeleteJobOutput)
DeleteWebhook(*amplify.DeleteWebhookInput) (*amplify.DeleteWebhookOutput, error)
DeleteWebhookWithContext(aws.Context, *amplify.DeleteWebhookInput, ...request.Option) (*amplify.DeleteWebhookOutput, error)
DeleteWebhookRequest(*amplify.DeleteWebhookInput) (*request.Request, *amplify.DeleteWebhookOutput)
GenerateAccessLogs(*amplify.GenerateAccessLogsInput) (*amplify.GenerateAccessLogsOutput, error)
GenerateAccessLogsWithContext(aws.Context, *amplify.GenerateAccessLogsInput, ...request.Option) (*amplify.GenerateAccessLogsOutput, error)
GenerateAccessLogsRequest(*amplify.GenerateAccessLogsInput) (*request.Request, *amplify.GenerateAccessLogsOutput)
GetApp(*amplify.GetAppInput) (*amplify.GetAppOutput, error)
GetAppWithContext(aws.Context, *amplify.GetAppInput, ...request.Option) (*amplify.GetAppOutput, error)
GetAppRequest(*amplify.GetAppInput) (*request.Request, *amplify.GetAppOutput)
GetArtifactUrl(*amplify.GetArtifactUrlInput) (*amplify.GetArtifactUrlOutput, error)
GetArtifactUrlWithContext(aws.Context, *amplify.GetArtifactUrlInput, ...request.Option) (*amplify.GetArtifactUrlOutput, error)
GetArtifactUrlRequest(*amplify.GetArtifactUrlInput) (*request.Request, *amplify.GetArtifactUrlOutput)
GetBackendEnvironment(*amplify.GetBackendEnvironmentInput) (*amplify.GetBackendEnvironmentOutput, error)
GetBackendEnvironmentWithContext(aws.Context, *amplify.GetBackendEnvironmentInput, ...request.Option) (*amplify.GetBackendEnvironmentOutput, error)
GetBackendEnvironmentRequest(*amplify.GetBackendEnvironmentInput) (*request.Request, *amplify.GetBackendEnvironmentOutput)
GetBranch(*amplify.GetBranchInput) (*amplify.GetBranchOutput, error)
GetBranchWithContext(aws.Context, *amplify.GetBranchInput, ...request.Option) (*amplify.GetBranchOutput, error)
GetBranchRequest(*amplify.GetBranchInput) (*request.Request, *amplify.GetBranchOutput)
GetDomainAssociation(*amplify.GetDomainAssociationInput) (*amplify.GetDomainAssociationOutput, error)
GetDomainAssociationWithContext(aws.Context, *amplify.GetDomainAssociationInput, ...request.Option) (*amplify.GetDomainAssociationOutput, error)
GetDomainAssociationRequest(*amplify.GetDomainAssociationInput) (*request.Request, *amplify.GetDomainAssociationOutput)
GetJob(*amplify.GetJobInput) (*amplify.GetJobOutput, error)
GetJobWithContext(aws.Context, *amplify.GetJobInput, ...request.Option) (*amplify.GetJobOutput, error)
GetJobRequest(*amplify.GetJobInput) (*request.Request, *amplify.GetJobOutput)
GetWebhook(*amplify.GetWebhookInput) (*amplify.GetWebhookOutput, error)
GetWebhookWithContext(aws.Context, *amplify.GetWebhookInput, ...request.Option) (*amplify.GetWebhookOutput, error)
GetWebhookRequest(*amplify.GetWebhookInput) (*request.Request, *amplify.GetWebhookOutput)
ListApps(*amplify.ListAppsInput) (*amplify.ListAppsOutput, error)
ListAppsWithContext(aws.Context, *amplify.ListAppsInput, ...request.Option) (*amplify.ListAppsOutput, error)
ListAppsRequest(*amplify.ListAppsInput) (*request.Request, *amplify.ListAppsOutput)
ListArtifacts(*amplify.ListArtifactsInput) (*amplify.ListArtifactsOutput, error)
ListArtifactsWithContext(aws.Context, *amplify.ListArtifactsInput, ...request.Option) (*amplify.ListArtifactsOutput, error)
ListArtifactsRequest(*amplify.ListArtifactsInput) (*request.Request, *amplify.ListArtifactsOutput)
ListBackendEnvironments(*amplify.ListBackendEnvironmentsInput) (*amplify.ListBackendEnvironmentsOutput, error)
ListBackendEnvironmentsWithContext(aws.Context, *amplify.ListBackendEnvironmentsInput, ...request.Option) (*amplify.ListBackendEnvironmentsOutput, error)
ListBackendEnvironmentsRequest(*amplify.ListBackendEnvironmentsInput) (*request.Request, *amplify.ListBackendEnvironmentsOutput)
ListBranches(*amplify.ListBranchesInput) (*amplify.ListBranchesOutput, error)
ListBranchesWithContext(aws.Context, *amplify.ListBranchesInput, ...request.Option) (*amplify.ListBranchesOutput, error)
ListBranchesRequest(*amplify.ListBranchesInput) (*request.Request, *amplify.ListBranchesOutput)
ListDomainAssociations(*amplify.ListDomainAssociationsInput) (*amplify.ListDomainAssociationsOutput, error)
ListDomainAssociationsWithContext(aws.Context, *amplify.ListDomainAssociationsInput, ...request.Option) (*amplify.ListDomainAssociationsOutput, error)
ListDomainAssociationsRequest(*amplify.ListDomainAssociationsInput) (*request.Request, *amplify.ListDomainAssociationsOutput)
ListJobs(*amplify.ListJobsInput) (*amplify.ListJobsOutput, error)
ListJobsWithContext(aws.Context, *amplify.ListJobsInput, ...request.Option) (*amplify.ListJobsOutput, error)
ListJobsRequest(*amplify.ListJobsInput) (*request.Request, *amplify.ListJobsOutput)
ListTagsForResource(*amplify.ListTagsForResourceInput) (*amplify.ListTagsForResourceOutput, error)
ListTagsForResourceWithContext(aws.Context, *amplify.ListTagsForResourceInput, ...request.Option) (*amplify.ListTagsForResourceOutput, error)
ListTagsForResourceRequest(*amplify.ListTagsForResourceInput) (*request.Request, *amplify.ListTagsForResourceOutput)
ListWebhooks(*amplify.ListWebhooksInput) (*amplify.ListWebhooksOutput, error)
ListWebhooksWithContext(aws.Context, *amplify.ListWebhooksInput, ...request.Option) (*amplify.ListWebhooksOutput, error)
ListWebhooksRequest(*amplify.ListWebhooksInput) (*request.Request, *amplify.ListWebhooksOutput)
StartDeployment(*amplify.StartDeploymentInput) (*amplify.StartDeploymentOutput, error)
StartDeploymentWithContext(aws.Context, *amplify.StartDeploymentInput, ...request.Option) (*amplify.StartDeploymentOutput, error)
StartDeploymentRequest(*amplify.StartDeploymentInput) (*request.Request, *amplify.StartDeploymentOutput)
StartJob(*amplify.StartJobInput) (*amplify.StartJobOutput, error)
StartJobWithContext(aws.Context, *amplify.StartJobInput, ...request.Option) (*amplify.StartJobOutput, error)
StartJobRequest(*amplify.StartJobInput) (*request.Request, *amplify.StartJobOutput)
StopJob(*amplify.StopJobInput) (*amplify.StopJobOutput, error)
StopJobWithContext(aws.Context, *amplify.StopJobInput, ...request.Option) (*amplify.StopJobOutput, error)
StopJobRequest(*amplify.StopJobInput) (*request.Request, *amplify.StopJobOutput)
TagResource(*amplify.TagResourceInput) (*amplify.TagResourceOutput, error)
TagResourceWithContext(aws.Context, *amplify.TagResourceInput, ...request.Option) (*amplify.TagResourceOutput, error)
TagResourceRequest(*amplify.TagResourceInput) (*request.Request, *amplify.TagResourceOutput)
UntagResource(*amplify.UntagResourceInput) (*amplify.UntagResourceOutput, error)
UntagResourceWithContext(aws.Context, *amplify.UntagResourceInput, ...request.Option) (*amplify.UntagResourceOutput, error)
UntagResourceRequest(*amplify.UntagResourceInput) (*request.Request, *amplify.UntagResourceOutput)
UpdateApp(*amplify.UpdateAppInput) (*amplify.UpdateAppOutput, error)
UpdateAppWithContext(aws.Context, *amplify.UpdateAppInput, ...request.Option) (*amplify.UpdateAppOutput, error)
UpdateAppRequest(*amplify.UpdateAppInput) (*request.Request, *amplify.UpdateAppOutput)
UpdateBranch(*amplify.UpdateBranchInput) (*amplify.UpdateBranchOutput, error)
UpdateBranchWithContext(aws.Context, *amplify.UpdateBranchInput, ...request.Option) (*amplify.UpdateBranchOutput, error)
UpdateBranchRequest(*amplify.UpdateBranchInput) (*request.Request, *amplify.UpdateBranchOutput)
UpdateDomainAssociation(*amplify.UpdateDomainAssociationInput) (*amplify.UpdateDomainAssociationOutput, error)
UpdateDomainAssociationWithContext(aws.Context, *amplify.UpdateDomainAssociationInput, ...request.Option) (*amplify.UpdateDomainAssociationOutput, error)
UpdateDomainAssociationRequest(*amplify.UpdateDomainAssociationInput) (*request.Request, *amplify.UpdateDomainAssociationOutput)
UpdateWebhook(*amplify.UpdateWebhookInput) (*amplify.UpdateWebhookOutput, error)
UpdateWebhookWithContext(aws.Context, *amplify.UpdateWebhookInput, ...request.Option) (*amplify.UpdateWebhookOutput, error)
UpdateWebhookRequest(*amplify.UpdateWebhookInput) (*request.Request, *amplify.UpdateWebhookOutput)
}
var _ AmplifyAPI = (*amplify.Amplify)(nil)
| 213 |
session-manager-plugin | aws | Go | // Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
package amplifybackend
import (
"fmt"
"github.com/aws/aws-sdk-go/aws"
"github.com/aws/aws-sdk-go/aws/awsutil"
"github.com/aws/aws-sdk-go/aws/request"
"github.com/aws/aws-sdk-go/private/protocol"
)
const opCloneBackend = "CloneBackend"
// CloneBackendRequest generates a "aws/request.Request" representing the
// client's request for the CloneBackend 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 CloneBackend for more information on using the CloneBackend
// 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 CloneBackendRequest method.
// req, resp := client.CloneBackendRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/amplifybackend-2020-08-11/CloneBackend
func (c *AmplifyBackend) CloneBackendRequest(input *CloneBackendInput) (req *request.Request, output *CloneBackendOutput) {
op := &request.Operation{
Name: opCloneBackend,
HTTPMethod: "POST",
HTTPPath: "/backend/{appId}/environments/{backendEnvironmentName}/clone",
}
if input == nil {
input = &CloneBackendInput{}
}
output = &CloneBackendOutput{}
req = c.newRequest(op, input, output)
return
}
// CloneBackend API operation for AmplifyBackend.
//
// This operation clones an existing backend.
//
// 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 AmplifyBackend's
// API operation CloneBackend for usage and error information.
//
// Returned Error Types:
// * NotFoundException
// An error returned when a specific resource type is not found.
//
// * GatewayTimeoutException
// An error returned if there's a temporary issue with the service.
//
// * TooManyRequestsException
// An error that is returned when a limit of a specific type has been exceeded.
//
// * BadRequestException
// An error returned if a request is not formed properly.
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/amplifybackend-2020-08-11/CloneBackend
func (c *AmplifyBackend) CloneBackend(input *CloneBackendInput) (*CloneBackendOutput, error) {
req, out := c.CloneBackendRequest(input)
return out, req.Send()
}
// CloneBackendWithContext is the same as CloneBackend with the addition of
// the ability to pass a context and additional request options.
//
// See CloneBackend for details on how to use this API operation.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
func (c *AmplifyBackend) CloneBackendWithContext(ctx aws.Context, input *CloneBackendInput, opts ...request.Option) (*CloneBackendOutput, error) {
req, out := c.CloneBackendRequest(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
const opCreateBackend = "CreateBackend"
// CreateBackendRequest generates a "aws/request.Request" representing the
// client's request for the CreateBackend 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 CreateBackend for more information on using the CreateBackend
// 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 CreateBackendRequest method.
// req, resp := client.CreateBackendRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/amplifybackend-2020-08-11/CreateBackend
func (c *AmplifyBackend) CreateBackendRequest(input *CreateBackendInput) (req *request.Request, output *CreateBackendOutput) {
op := &request.Operation{
Name: opCreateBackend,
HTTPMethod: "POST",
HTTPPath: "/backend",
}
if input == nil {
input = &CreateBackendInput{}
}
output = &CreateBackendOutput{}
req = c.newRequest(op, input, output)
return
}
// CreateBackend API operation for AmplifyBackend.
//
// This operation creates a backend for an Amplify app. Backends are automatically
// created at the time of app creation.
//
// 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 AmplifyBackend's
// API operation CreateBackend for usage and error information.
//
// Returned Error Types:
// * NotFoundException
// An error returned when a specific resource type is not found.
//
// * GatewayTimeoutException
// An error returned if there's a temporary issue with the service.
//
// * TooManyRequestsException
// An error that is returned when a limit of a specific type has been exceeded.
//
// * BadRequestException
// An error returned if a request is not formed properly.
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/amplifybackend-2020-08-11/CreateBackend
func (c *AmplifyBackend) CreateBackend(input *CreateBackendInput) (*CreateBackendOutput, error) {
req, out := c.CreateBackendRequest(input)
return out, req.Send()
}
// CreateBackendWithContext is the same as CreateBackend with the addition of
// the ability to pass a context and additional request options.
//
// See CreateBackend for details on how to use this API operation.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
func (c *AmplifyBackend) CreateBackendWithContext(ctx aws.Context, input *CreateBackendInput, opts ...request.Option) (*CreateBackendOutput, error) {
req, out := c.CreateBackendRequest(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
const opCreateBackendAPI = "CreateBackendAPI"
// CreateBackendAPIRequest generates a "aws/request.Request" representing the
// client's request for the CreateBackendAPI 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 CreateBackendAPI for more information on using the CreateBackendAPI
// 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 CreateBackendAPIRequest method.
// req, resp := client.CreateBackendAPIRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/amplifybackend-2020-08-11/CreateBackendAPI
func (c *AmplifyBackend) CreateBackendAPIRequest(input *CreateBackendAPIInput) (req *request.Request, output *CreateBackendAPIOutput) {
op := &request.Operation{
Name: opCreateBackendAPI,
HTTPMethod: "POST",
HTTPPath: "/backend/{appId}/api",
}
if input == nil {
input = &CreateBackendAPIInput{}
}
output = &CreateBackendAPIOutput{}
req = c.newRequest(op, input, output)
return
}
// CreateBackendAPI API operation for AmplifyBackend.
//
// Creates a new backend API 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 AmplifyBackend's
// API operation CreateBackendAPI for usage and error information.
//
// Returned Error Types:
// * NotFoundException
// An error returned when a specific resource type is not found.
//
// * GatewayTimeoutException
// An error returned if there's a temporary issue with the service.
//
// * TooManyRequestsException
// An error that is returned when a limit of a specific type has been exceeded.
//
// * BadRequestException
// An error returned if a request is not formed properly.
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/amplifybackend-2020-08-11/CreateBackendAPI
func (c *AmplifyBackend) CreateBackendAPI(input *CreateBackendAPIInput) (*CreateBackendAPIOutput, error) {
req, out := c.CreateBackendAPIRequest(input)
return out, req.Send()
}
// CreateBackendAPIWithContext is the same as CreateBackendAPI with the addition of
// the ability to pass a context and additional request options.
//
// See CreateBackendAPI for details on how to use this API operation.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
func (c *AmplifyBackend) CreateBackendAPIWithContext(ctx aws.Context, input *CreateBackendAPIInput, opts ...request.Option) (*CreateBackendAPIOutput, error) {
req, out := c.CreateBackendAPIRequest(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
const opCreateBackendAuth = "CreateBackendAuth"
// CreateBackendAuthRequest generates a "aws/request.Request" representing the
// client's request for the CreateBackendAuth 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 CreateBackendAuth for more information on using the CreateBackendAuth
// 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 CreateBackendAuthRequest method.
// req, resp := client.CreateBackendAuthRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/amplifybackend-2020-08-11/CreateBackendAuth
func (c *AmplifyBackend) CreateBackendAuthRequest(input *CreateBackendAuthInput) (req *request.Request, output *CreateBackendAuthOutput) {
op := &request.Operation{
Name: opCreateBackendAuth,
HTTPMethod: "POST",
HTTPPath: "/backend/{appId}/auth",
}
if input == nil {
input = &CreateBackendAuthInput{}
}
output = &CreateBackendAuthOutput{}
req = c.newRequest(op, input, output)
return
}
// CreateBackendAuth API operation for AmplifyBackend.
//
// Creates a new backend authentication 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 AmplifyBackend's
// API operation CreateBackendAuth for usage and error information.
//
// Returned Error Types:
// * NotFoundException
// An error returned when a specific resource type is not found.
//
// * GatewayTimeoutException
// An error returned if there's a temporary issue with the service.
//
// * TooManyRequestsException
// An error that is returned when a limit of a specific type has been exceeded.
//
// * BadRequestException
// An error returned if a request is not formed properly.
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/amplifybackend-2020-08-11/CreateBackendAuth
func (c *AmplifyBackend) CreateBackendAuth(input *CreateBackendAuthInput) (*CreateBackendAuthOutput, error) {
req, out := c.CreateBackendAuthRequest(input)
return out, req.Send()
}
// CreateBackendAuthWithContext is the same as CreateBackendAuth with the addition of
// the ability to pass a context and additional request options.
//
// See CreateBackendAuth for details on how to use this API operation.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
func (c *AmplifyBackend) CreateBackendAuthWithContext(ctx aws.Context, input *CreateBackendAuthInput, opts ...request.Option) (*CreateBackendAuthOutput, error) {
req, out := c.CreateBackendAuthRequest(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
const opCreateBackendConfig = "CreateBackendConfig"
// CreateBackendConfigRequest generates a "aws/request.Request" representing the
// client's request for the CreateBackendConfig 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 CreateBackendConfig for more information on using the CreateBackendConfig
// 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 CreateBackendConfigRequest method.
// req, resp := client.CreateBackendConfigRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/amplifybackend-2020-08-11/CreateBackendConfig
func (c *AmplifyBackend) CreateBackendConfigRequest(input *CreateBackendConfigInput) (req *request.Request, output *CreateBackendConfigOutput) {
op := &request.Operation{
Name: opCreateBackendConfig,
HTTPMethod: "POST",
HTTPPath: "/backend/{appId}/config",
}
if input == nil {
input = &CreateBackendConfigInput{}
}
output = &CreateBackendConfigOutput{}
req = c.newRequest(op, input, output)
return
}
// CreateBackendConfig API operation for AmplifyBackend.
//
// Creates a config object for a backend.
//
// 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 AmplifyBackend's
// API operation CreateBackendConfig for usage and error information.
//
// Returned Error Types:
// * NotFoundException
// An error returned when a specific resource type is not found.
//
// * GatewayTimeoutException
// An error returned if there's a temporary issue with the service.
//
// * TooManyRequestsException
// An error that is returned when a limit of a specific type has been exceeded.
//
// * BadRequestException
// An error returned if a request is not formed properly.
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/amplifybackend-2020-08-11/CreateBackendConfig
func (c *AmplifyBackend) CreateBackendConfig(input *CreateBackendConfigInput) (*CreateBackendConfigOutput, error) {
req, out := c.CreateBackendConfigRequest(input)
return out, req.Send()
}
// CreateBackendConfigWithContext is the same as CreateBackendConfig with the addition of
// the ability to pass a context and additional request options.
//
// See CreateBackendConfig for details on how to use this API operation.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
func (c *AmplifyBackend) CreateBackendConfigWithContext(ctx aws.Context, input *CreateBackendConfigInput, opts ...request.Option) (*CreateBackendConfigOutput, error) {
req, out := c.CreateBackendConfigRequest(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
const opCreateToken = "CreateToken"
// CreateTokenRequest generates a "aws/request.Request" representing the
// client's request for the CreateToken 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 CreateToken for more information on using the CreateToken
// 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 CreateTokenRequest method.
// req, resp := client.CreateTokenRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/amplifybackend-2020-08-11/CreateToken
func (c *AmplifyBackend) CreateTokenRequest(input *CreateTokenInput) (req *request.Request, output *CreateTokenOutput) {
op := &request.Operation{
Name: opCreateToken,
HTTPMethod: "POST",
HTTPPath: "/backend/{appId}/challenge",
}
if input == nil {
input = &CreateTokenInput{}
}
output = &CreateTokenOutput{}
req = c.newRequest(op, input, output)
return
}
// CreateToken API operation for AmplifyBackend.
//
// Generates a one-time challenge code to authenticate a user into your Amplify
// Admin UI.
//
// 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 AmplifyBackend's
// API operation CreateToken for usage and error information.
//
// Returned Error Types:
// * NotFoundException
// An error returned when a specific resource type is not found.
//
// * GatewayTimeoutException
// An error returned if there's a temporary issue with the service.
//
// * TooManyRequestsException
// An error that is returned when a limit of a specific type has been exceeded.
//
// * BadRequestException
// An error returned if a request is not formed properly.
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/amplifybackend-2020-08-11/CreateToken
func (c *AmplifyBackend) CreateToken(input *CreateTokenInput) (*CreateTokenOutput, error) {
req, out := c.CreateTokenRequest(input)
return out, req.Send()
}
// CreateTokenWithContext is the same as CreateToken with the addition of
// the ability to pass a context and additional request options.
//
// See CreateToken for details on how to use this API operation.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
func (c *AmplifyBackend) CreateTokenWithContext(ctx aws.Context, input *CreateTokenInput, opts ...request.Option) (*CreateTokenOutput, error) {
req, out := c.CreateTokenRequest(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
const opDeleteBackend = "DeleteBackend"
// DeleteBackendRequest generates a "aws/request.Request" representing the
// client's request for the DeleteBackend 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 DeleteBackend for more information on using the DeleteBackend
// 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 DeleteBackendRequest method.
// req, resp := client.DeleteBackendRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/amplifybackend-2020-08-11/DeleteBackend
func (c *AmplifyBackend) DeleteBackendRequest(input *DeleteBackendInput) (req *request.Request, output *DeleteBackendOutput) {
op := &request.Operation{
Name: opDeleteBackend,
HTTPMethod: "POST",
HTTPPath: "/backend/{appId}/environments/{backendEnvironmentName}/remove",
}
if input == nil {
input = &DeleteBackendInput{}
}
output = &DeleteBackendOutput{}
req = c.newRequest(op, input, output)
return
}
// DeleteBackend API operation for AmplifyBackend.
//
// Removes an existing environment from your Amplify project.
//
// 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 AmplifyBackend's
// API operation DeleteBackend for usage and error information.
//
// Returned Error Types:
// * NotFoundException
// An error returned when a specific resource type is not found.
//
// * GatewayTimeoutException
// An error returned if there's a temporary issue with the service.
//
// * TooManyRequestsException
// An error that is returned when a limit of a specific type has been exceeded.
//
// * BadRequestException
// An error returned if a request is not formed properly.
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/amplifybackend-2020-08-11/DeleteBackend
func (c *AmplifyBackend) DeleteBackend(input *DeleteBackendInput) (*DeleteBackendOutput, error) {
req, out := c.DeleteBackendRequest(input)
return out, req.Send()
}
// DeleteBackendWithContext is the same as DeleteBackend with the addition of
// the ability to pass a context and additional request options.
//
// See DeleteBackend for details on how to use this API operation.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
func (c *AmplifyBackend) DeleteBackendWithContext(ctx aws.Context, input *DeleteBackendInput, opts ...request.Option) (*DeleteBackendOutput, error) {
req, out := c.DeleteBackendRequest(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
const opDeleteBackendAPI = "DeleteBackendAPI"
// DeleteBackendAPIRequest generates a "aws/request.Request" representing the
// client's request for the DeleteBackendAPI 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 DeleteBackendAPI for more information on using the DeleteBackendAPI
// 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 DeleteBackendAPIRequest method.
// req, resp := client.DeleteBackendAPIRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/amplifybackend-2020-08-11/DeleteBackendAPI
func (c *AmplifyBackend) DeleteBackendAPIRequest(input *DeleteBackendAPIInput) (req *request.Request, output *DeleteBackendAPIOutput) {
op := &request.Operation{
Name: opDeleteBackendAPI,
HTTPMethod: "POST",
HTTPPath: "/backend/{appId}/api/{backendEnvironmentName}/remove",
}
if input == nil {
input = &DeleteBackendAPIInput{}
}
output = &DeleteBackendAPIOutput{}
req = c.newRequest(op, input, output)
return
}
// DeleteBackendAPI API operation for AmplifyBackend.
//
// Deletes an existing backend API 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 AmplifyBackend's
// API operation DeleteBackendAPI for usage and error information.
//
// Returned Error Types:
// * NotFoundException
// An error returned when a specific resource type is not found.
//
// * GatewayTimeoutException
// An error returned if there's a temporary issue with the service.
//
// * TooManyRequestsException
// An error that is returned when a limit of a specific type has been exceeded.
//
// * BadRequestException
// An error returned if a request is not formed properly.
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/amplifybackend-2020-08-11/DeleteBackendAPI
func (c *AmplifyBackend) DeleteBackendAPI(input *DeleteBackendAPIInput) (*DeleteBackendAPIOutput, error) {
req, out := c.DeleteBackendAPIRequest(input)
return out, req.Send()
}
// DeleteBackendAPIWithContext is the same as DeleteBackendAPI with the addition of
// the ability to pass a context and additional request options.
//
// See DeleteBackendAPI for details on how to use this API operation.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
func (c *AmplifyBackend) DeleteBackendAPIWithContext(ctx aws.Context, input *DeleteBackendAPIInput, opts ...request.Option) (*DeleteBackendAPIOutput, error) {
req, out := c.DeleteBackendAPIRequest(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
const opDeleteBackendAuth = "DeleteBackendAuth"
// DeleteBackendAuthRequest generates a "aws/request.Request" representing the
// client's request for the DeleteBackendAuth 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 DeleteBackendAuth for more information on using the DeleteBackendAuth
// 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 DeleteBackendAuthRequest method.
// req, resp := client.DeleteBackendAuthRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/amplifybackend-2020-08-11/DeleteBackendAuth
func (c *AmplifyBackend) DeleteBackendAuthRequest(input *DeleteBackendAuthInput) (req *request.Request, output *DeleteBackendAuthOutput) {
op := &request.Operation{
Name: opDeleteBackendAuth,
HTTPMethod: "POST",
HTTPPath: "/backend/{appId}/auth/{backendEnvironmentName}/remove",
}
if input == nil {
input = &DeleteBackendAuthInput{}
}
output = &DeleteBackendAuthOutput{}
req = c.newRequest(op, input, output)
return
}
// DeleteBackendAuth API operation for AmplifyBackend.
//
// Deletes an existing backend authentication 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 AmplifyBackend's
// API operation DeleteBackendAuth for usage and error information.
//
// Returned Error Types:
// * NotFoundException
// An error returned when a specific resource type is not found.
//
// * GatewayTimeoutException
// An error returned if there's a temporary issue with the service.
//
// * TooManyRequestsException
// An error that is returned when a limit of a specific type has been exceeded.
//
// * BadRequestException
// An error returned if a request is not formed properly.
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/amplifybackend-2020-08-11/DeleteBackendAuth
func (c *AmplifyBackend) DeleteBackendAuth(input *DeleteBackendAuthInput) (*DeleteBackendAuthOutput, error) {
req, out := c.DeleteBackendAuthRequest(input)
return out, req.Send()
}
// DeleteBackendAuthWithContext is the same as DeleteBackendAuth with the addition of
// the ability to pass a context and additional request options.
//
// See DeleteBackendAuth for details on how to use this API operation.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
func (c *AmplifyBackend) DeleteBackendAuthWithContext(ctx aws.Context, input *DeleteBackendAuthInput, opts ...request.Option) (*DeleteBackendAuthOutput, error) {
req, out := c.DeleteBackendAuthRequest(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
const opDeleteToken = "DeleteToken"
// DeleteTokenRequest generates a "aws/request.Request" representing the
// client's request for the DeleteToken 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 DeleteToken for more information on using the DeleteToken
// 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 DeleteTokenRequest method.
// req, resp := client.DeleteTokenRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/amplifybackend-2020-08-11/DeleteToken
func (c *AmplifyBackend) DeleteTokenRequest(input *DeleteTokenInput) (req *request.Request, output *DeleteTokenOutput) {
op := &request.Operation{
Name: opDeleteToken,
HTTPMethod: "POST",
HTTPPath: "/backend/{appId}/challenge/{sessionId}/remove",
}
if input == nil {
input = &DeleteTokenInput{}
}
output = &DeleteTokenOutput{}
req = c.newRequest(op, input, output)
return
}
// DeleteToken API operation for AmplifyBackend.
//
// Deletes the challenge token based on the given appId and sessionId.
//
// 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 AmplifyBackend's
// API operation DeleteToken for usage and error information.
//
// Returned Error Types:
// * NotFoundException
// An error returned when a specific resource type is not found.
//
// * GatewayTimeoutException
// An error returned if there's a temporary issue with the service.
//
// * TooManyRequestsException
// An error that is returned when a limit of a specific type has been exceeded.
//
// * BadRequestException
// An error returned if a request is not formed properly.
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/amplifybackend-2020-08-11/DeleteToken
func (c *AmplifyBackend) DeleteToken(input *DeleteTokenInput) (*DeleteTokenOutput, error) {
req, out := c.DeleteTokenRequest(input)
return out, req.Send()
}
// DeleteTokenWithContext is the same as DeleteToken with the addition of
// the ability to pass a context and additional request options.
//
// See DeleteToken for details on how to use this API operation.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
func (c *AmplifyBackend) DeleteTokenWithContext(ctx aws.Context, input *DeleteTokenInput, opts ...request.Option) (*DeleteTokenOutput, error) {
req, out := c.DeleteTokenRequest(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
const opGenerateBackendAPIModels = "GenerateBackendAPIModels"
// GenerateBackendAPIModelsRequest generates a "aws/request.Request" representing the
// client's request for the GenerateBackendAPIModels 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 GenerateBackendAPIModels for more information on using the GenerateBackendAPIModels
// 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 GenerateBackendAPIModelsRequest method.
// req, resp := client.GenerateBackendAPIModelsRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/amplifybackend-2020-08-11/GenerateBackendAPIModels
func (c *AmplifyBackend) GenerateBackendAPIModelsRequest(input *GenerateBackendAPIModelsInput) (req *request.Request, output *GenerateBackendAPIModelsOutput) {
op := &request.Operation{
Name: opGenerateBackendAPIModels,
HTTPMethod: "POST",
HTTPPath: "/backend/{appId}/api/{backendEnvironmentName}/generateModels",
}
if input == nil {
input = &GenerateBackendAPIModelsInput{}
}
output = &GenerateBackendAPIModelsOutput{}
req = c.newRequest(op, input, output)
return
}
// GenerateBackendAPIModels API operation for AmplifyBackend.
//
// Generates a model schema for an existing backend API 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 AmplifyBackend's
// API operation GenerateBackendAPIModels for usage and error information.
//
// Returned Error Types:
// * NotFoundException
// An error returned when a specific resource type is not found.
//
// * GatewayTimeoutException
// An error returned if there's a temporary issue with the service.
//
// * TooManyRequestsException
// An error that is returned when a limit of a specific type has been exceeded.
//
// * BadRequestException
// An error returned if a request is not formed properly.
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/amplifybackend-2020-08-11/GenerateBackendAPIModels
func (c *AmplifyBackend) GenerateBackendAPIModels(input *GenerateBackendAPIModelsInput) (*GenerateBackendAPIModelsOutput, error) {
req, out := c.GenerateBackendAPIModelsRequest(input)
return out, req.Send()
}
// GenerateBackendAPIModelsWithContext is the same as GenerateBackendAPIModels with the addition of
// the ability to pass a context and additional request options.
//
// See GenerateBackendAPIModels for details on how to use this API operation.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
func (c *AmplifyBackend) GenerateBackendAPIModelsWithContext(ctx aws.Context, input *GenerateBackendAPIModelsInput, opts ...request.Option) (*GenerateBackendAPIModelsOutput, error) {
req, out := c.GenerateBackendAPIModelsRequest(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
const opGetBackend = "GetBackend"
// GetBackendRequest generates a "aws/request.Request" representing the
// client's request for the GetBackend 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 GetBackend for more information on using the GetBackend
// 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 GetBackendRequest method.
// req, resp := client.GetBackendRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/amplifybackend-2020-08-11/GetBackend
func (c *AmplifyBackend) GetBackendRequest(input *GetBackendInput) (req *request.Request, output *GetBackendOutput) {
op := &request.Operation{
Name: opGetBackend,
HTTPMethod: "POST",
HTTPPath: "/backend/{appId}/details",
}
if input == nil {
input = &GetBackendInput{}
}
output = &GetBackendOutput{}
req = c.newRequest(op, input, output)
return
}
// GetBackend API operation for AmplifyBackend.
//
// Provides project-level details for your Amplify UI project.
//
// 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 AmplifyBackend's
// API operation GetBackend for usage and error information.
//
// Returned Error Types:
// * NotFoundException
// An error returned when a specific resource type is not found.
//
// * GatewayTimeoutException
// An error returned if there's a temporary issue with the service.
//
// * TooManyRequestsException
// An error that is returned when a limit of a specific type has been exceeded.
//
// * BadRequestException
// An error returned if a request is not formed properly.
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/amplifybackend-2020-08-11/GetBackend
func (c *AmplifyBackend) GetBackend(input *GetBackendInput) (*GetBackendOutput, error) {
req, out := c.GetBackendRequest(input)
return out, req.Send()
}
// GetBackendWithContext is the same as GetBackend with the addition of
// the ability to pass a context and additional request options.
//
// See GetBackend for details on how to use this API operation.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
func (c *AmplifyBackend) GetBackendWithContext(ctx aws.Context, input *GetBackendInput, opts ...request.Option) (*GetBackendOutput, error) {
req, out := c.GetBackendRequest(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
const opGetBackendAPI = "GetBackendAPI"
// GetBackendAPIRequest generates a "aws/request.Request" representing the
// client's request for the GetBackendAPI 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 GetBackendAPI for more information on using the GetBackendAPI
// 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 GetBackendAPIRequest method.
// req, resp := client.GetBackendAPIRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/amplifybackend-2020-08-11/GetBackendAPI
func (c *AmplifyBackend) GetBackendAPIRequest(input *GetBackendAPIInput) (req *request.Request, output *GetBackendAPIOutput) {
op := &request.Operation{
Name: opGetBackendAPI,
HTTPMethod: "POST",
HTTPPath: "/backend/{appId}/api/{backendEnvironmentName}/details",
}
if input == nil {
input = &GetBackendAPIInput{}
}
output = &GetBackendAPIOutput{}
req = c.newRequest(op, input, output)
return
}
// GetBackendAPI API operation for AmplifyBackend.
//
// Gets the details for a backend API.
//
// 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 AmplifyBackend's
// API operation GetBackendAPI for usage and error information.
//
// Returned Error Types:
// * NotFoundException
// An error returned when a specific resource type is not found.
//
// * GatewayTimeoutException
// An error returned if there's a temporary issue with the service.
//
// * TooManyRequestsException
// An error that is returned when a limit of a specific type has been exceeded.
//
// * BadRequestException
// An error returned if a request is not formed properly.
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/amplifybackend-2020-08-11/GetBackendAPI
func (c *AmplifyBackend) GetBackendAPI(input *GetBackendAPIInput) (*GetBackendAPIOutput, error) {
req, out := c.GetBackendAPIRequest(input)
return out, req.Send()
}
// GetBackendAPIWithContext is the same as GetBackendAPI with the addition of
// the ability to pass a context and additional request options.
//
// See GetBackendAPI for details on how to use this API operation.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
func (c *AmplifyBackend) GetBackendAPIWithContext(ctx aws.Context, input *GetBackendAPIInput, opts ...request.Option) (*GetBackendAPIOutput, error) {
req, out := c.GetBackendAPIRequest(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
const opGetBackendAPIModels = "GetBackendAPIModels"
// GetBackendAPIModelsRequest generates a "aws/request.Request" representing the
// client's request for the GetBackendAPIModels 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 GetBackendAPIModels for more information on using the GetBackendAPIModels
// 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 GetBackendAPIModelsRequest method.
// req, resp := client.GetBackendAPIModelsRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/amplifybackend-2020-08-11/GetBackendAPIModels
func (c *AmplifyBackend) GetBackendAPIModelsRequest(input *GetBackendAPIModelsInput) (req *request.Request, output *GetBackendAPIModelsOutput) {
op := &request.Operation{
Name: opGetBackendAPIModels,
HTTPMethod: "POST",
HTTPPath: "/backend/{appId}/api/{backendEnvironmentName}/getModels",
}
if input == nil {
input = &GetBackendAPIModelsInput{}
}
output = &GetBackendAPIModelsOutput{}
req = c.newRequest(op, input, output)
return
}
// GetBackendAPIModels API operation for AmplifyBackend.
//
// Generates a model schema for existing backend API 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 AmplifyBackend's
// API operation GetBackendAPIModels for usage and error information.
//
// Returned Error Types:
// * NotFoundException
// An error returned when a specific resource type is not found.
//
// * GatewayTimeoutException
// An error returned if there's a temporary issue with the service.
//
// * TooManyRequestsException
// An error that is returned when a limit of a specific type has been exceeded.
//
// * BadRequestException
// An error returned if a request is not formed properly.
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/amplifybackend-2020-08-11/GetBackendAPIModels
func (c *AmplifyBackend) GetBackendAPIModels(input *GetBackendAPIModelsInput) (*GetBackendAPIModelsOutput, error) {
req, out := c.GetBackendAPIModelsRequest(input)
return out, req.Send()
}
// GetBackendAPIModelsWithContext is the same as GetBackendAPIModels with the addition of
// the ability to pass a context and additional request options.
//
// See GetBackendAPIModels for details on how to use this API operation.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
func (c *AmplifyBackend) GetBackendAPIModelsWithContext(ctx aws.Context, input *GetBackendAPIModelsInput, opts ...request.Option) (*GetBackendAPIModelsOutput, error) {
req, out := c.GetBackendAPIModelsRequest(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
const opGetBackendAuth = "GetBackendAuth"
// GetBackendAuthRequest generates a "aws/request.Request" representing the
// client's request for the GetBackendAuth 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 GetBackendAuth for more information on using the GetBackendAuth
// 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 GetBackendAuthRequest method.
// req, resp := client.GetBackendAuthRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/amplifybackend-2020-08-11/GetBackendAuth
func (c *AmplifyBackend) GetBackendAuthRequest(input *GetBackendAuthInput) (req *request.Request, output *GetBackendAuthOutput) {
op := &request.Operation{
Name: opGetBackendAuth,
HTTPMethod: "POST",
HTTPPath: "/backend/{appId}/auth/{backendEnvironmentName}/details",
}
if input == nil {
input = &GetBackendAuthInput{}
}
output = &GetBackendAuthOutput{}
req = c.newRequest(op, input, output)
return
}
// GetBackendAuth API operation for AmplifyBackend.
//
// Gets a backend auth details.
//
// 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 AmplifyBackend's
// API operation GetBackendAuth for usage and error information.
//
// Returned Error Types:
// * NotFoundException
// An error returned when a specific resource type is not found.
//
// * GatewayTimeoutException
// An error returned if there's a temporary issue with the service.
//
// * TooManyRequestsException
// An error that is returned when a limit of a specific type has been exceeded.
//
// * BadRequestException
// An error returned if a request is not formed properly.
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/amplifybackend-2020-08-11/GetBackendAuth
func (c *AmplifyBackend) GetBackendAuth(input *GetBackendAuthInput) (*GetBackendAuthOutput, error) {
req, out := c.GetBackendAuthRequest(input)
return out, req.Send()
}
// GetBackendAuthWithContext is the same as GetBackendAuth with the addition of
// the ability to pass a context and additional request options.
//
// See GetBackendAuth for details on how to use this API operation.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
func (c *AmplifyBackend) GetBackendAuthWithContext(ctx aws.Context, input *GetBackendAuthInput, opts ...request.Option) (*GetBackendAuthOutput, error) {
req, out := c.GetBackendAuthRequest(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
const opGetBackendJob = "GetBackendJob"
// GetBackendJobRequest generates a "aws/request.Request" representing the
// client's request for the GetBackendJob 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 GetBackendJob for more information on using the GetBackendJob
// 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 GetBackendJobRequest method.
// req, resp := client.GetBackendJobRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/amplifybackend-2020-08-11/GetBackendJob
func (c *AmplifyBackend) GetBackendJobRequest(input *GetBackendJobInput) (req *request.Request, output *GetBackendJobOutput) {
op := &request.Operation{
Name: opGetBackendJob,
HTTPMethod: "GET",
HTTPPath: "/backend/{appId}/job/{backendEnvironmentName}/{jobId}",
}
if input == nil {
input = &GetBackendJobInput{}
}
output = &GetBackendJobOutput{}
req = c.newRequest(op, input, output)
return
}
// GetBackendJob API operation for AmplifyBackend.
//
// Returns information about a specific job.
//
// 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 AmplifyBackend's
// API operation GetBackendJob for usage and error information.
//
// Returned Error Types:
// * NotFoundException
// An error returned when a specific resource type is not found.
//
// * GatewayTimeoutException
// An error returned if there's a temporary issue with the service.
//
// * TooManyRequestsException
// An error that is returned when a limit of a specific type has been exceeded.
//
// * BadRequestException
// An error returned if a request is not formed properly.
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/amplifybackend-2020-08-11/GetBackendJob
func (c *AmplifyBackend) GetBackendJob(input *GetBackendJobInput) (*GetBackendJobOutput, error) {
req, out := c.GetBackendJobRequest(input)
return out, req.Send()
}
// GetBackendJobWithContext is the same as GetBackendJob with the addition of
// the ability to pass a context and additional request options.
//
// See GetBackendJob for details on how to use this API operation.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
func (c *AmplifyBackend) GetBackendJobWithContext(ctx aws.Context, input *GetBackendJobInput, opts ...request.Option) (*GetBackendJobOutput, error) {
req, out := c.GetBackendJobRequest(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
const opGetToken = "GetToken"
// GetTokenRequest generates a "aws/request.Request" representing the
// client's request for the GetToken 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 GetToken for more information on using the GetToken
// 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 GetTokenRequest method.
// req, resp := client.GetTokenRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/amplifybackend-2020-08-11/GetToken
func (c *AmplifyBackend) GetTokenRequest(input *GetTokenInput) (req *request.Request, output *GetTokenOutput) {
op := &request.Operation{
Name: opGetToken,
HTTPMethod: "GET",
HTTPPath: "/backend/{appId}/challenge/{sessionId}",
}
if input == nil {
input = &GetTokenInput{}
}
output = &GetTokenOutput{}
req = c.newRequest(op, input, output)
return
}
// GetToken API operation for AmplifyBackend.
//
// Gets the challenge token based on the given appId and sessionId.
//
// 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 AmplifyBackend's
// API operation GetToken for usage and error information.
//
// Returned Error Types:
// * NotFoundException
// An error returned when a specific resource type is not found.
//
// * GatewayTimeoutException
// An error returned if there's a temporary issue with the service.
//
// * TooManyRequestsException
// An error that is returned when a limit of a specific type has been exceeded.
//
// * BadRequestException
// An error returned if a request is not formed properly.
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/amplifybackend-2020-08-11/GetToken
func (c *AmplifyBackend) GetToken(input *GetTokenInput) (*GetTokenOutput, error) {
req, out := c.GetTokenRequest(input)
return out, req.Send()
}
// GetTokenWithContext is the same as GetToken with the addition of
// the ability to pass a context and additional request options.
//
// See GetToken for details on how to use this API operation.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
func (c *AmplifyBackend) GetTokenWithContext(ctx aws.Context, input *GetTokenInput, opts ...request.Option) (*GetTokenOutput, error) {
req, out := c.GetTokenRequest(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
const opImportBackendAuth = "ImportBackendAuth"
// ImportBackendAuthRequest generates a "aws/request.Request" representing the
// client's request for the ImportBackendAuth 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 ImportBackendAuth for more information on using the ImportBackendAuth
// 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 ImportBackendAuthRequest method.
// req, resp := client.ImportBackendAuthRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/amplifybackend-2020-08-11/ImportBackendAuth
func (c *AmplifyBackend) ImportBackendAuthRequest(input *ImportBackendAuthInput) (req *request.Request, output *ImportBackendAuthOutput) {
op := &request.Operation{
Name: opImportBackendAuth,
HTTPMethod: "POST",
HTTPPath: "/backend/{appId}/auth/{backendEnvironmentName}/import",
}
if input == nil {
input = &ImportBackendAuthInput{}
}
output = &ImportBackendAuthOutput{}
req = c.newRequest(op, input, output)
return
}
// ImportBackendAuth API operation for AmplifyBackend.
//
// Imports an existing backend authentication 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 AmplifyBackend's
// API operation ImportBackendAuth for usage and error information.
//
// Returned Error Types:
// * NotFoundException
// An error returned when a specific resource type is not found.
//
// * GatewayTimeoutException
// An error returned if there's a temporary issue with the service.
//
// * TooManyRequestsException
// An error that is returned when a limit of a specific type has been exceeded.
//
// * BadRequestException
// An error returned if a request is not formed properly.
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/amplifybackend-2020-08-11/ImportBackendAuth
func (c *AmplifyBackend) ImportBackendAuth(input *ImportBackendAuthInput) (*ImportBackendAuthOutput, error) {
req, out := c.ImportBackendAuthRequest(input)
return out, req.Send()
}
// ImportBackendAuthWithContext is the same as ImportBackendAuth with the addition of
// the ability to pass a context and additional request options.
//
// See ImportBackendAuth for details on how to use this API operation.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
func (c *AmplifyBackend) ImportBackendAuthWithContext(ctx aws.Context, input *ImportBackendAuthInput, opts ...request.Option) (*ImportBackendAuthOutput, error) {
req, out := c.ImportBackendAuthRequest(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
const opListBackendJobs = "ListBackendJobs"
// ListBackendJobsRequest generates a "aws/request.Request" representing the
// client's request for the ListBackendJobs 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 ListBackendJobs for more information on using the ListBackendJobs
// 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 ListBackendJobsRequest method.
// req, resp := client.ListBackendJobsRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/amplifybackend-2020-08-11/ListBackendJobs
func (c *AmplifyBackend) ListBackendJobsRequest(input *ListBackendJobsInput) (req *request.Request, output *ListBackendJobsOutput) {
op := &request.Operation{
Name: opListBackendJobs,
HTTPMethod: "POST",
HTTPPath: "/backend/{appId}/job/{backendEnvironmentName}",
Paginator: &request.Paginator{
InputTokens: []string{"NextToken"},
OutputTokens: []string{"NextToken"},
LimitToken: "MaxResults",
TruncationToken: "",
},
}
if input == nil {
input = &ListBackendJobsInput{}
}
output = &ListBackendJobsOutput{}
req = c.newRequest(op, input, output)
return
}
// ListBackendJobs API operation for AmplifyBackend.
//
// Lists the jobs for the backend of an Amplify app.
//
// 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 AmplifyBackend's
// API operation ListBackendJobs for usage and error information.
//
// Returned Error Types:
// * NotFoundException
// An error returned when a specific resource type is not found.
//
// * GatewayTimeoutException
// An error returned if there's a temporary issue with the service.
//
// * TooManyRequestsException
// An error that is returned when a limit of a specific type has been exceeded.
//
// * BadRequestException
// An error returned if a request is not formed properly.
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/amplifybackend-2020-08-11/ListBackendJobs
func (c *AmplifyBackend) ListBackendJobs(input *ListBackendJobsInput) (*ListBackendJobsOutput, error) {
req, out := c.ListBackendJobsRequest(input)
return out, req.Send()
}
// ListBackendJobsWithContext is the same as ListBackendJobs with the addition of
// the ability to pass a context and additional request options.
//
// See ListBackendJobs for details on how to use this API operation.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
func (c *AmplifyBackend) ListBackendJobsWithContext(ctx aws.Context, input *ListBackendJobsInput, opts ...request.Option) (*ListBackendJobsOutput, error) {
req, out := c.ListBackendJobsRequest(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
// ListBackendJobsPages iterates over the pages of a ListBackendJobs operation,
// calling the "fn" function with the response data for each page. To stop
// iterating, return false from the fn function.
//
// See ListBackendJobs 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 ListBackendJobs operation.
// pageNum := 0
// err := client.ListBackendJobsPages(params,
// func(page *amplifybackend.ListBackendJobsOutput, lastPage bool) bool {
// pageNum++
// fmt.Println(page)
// return pageNum <= 3
// })
//
func (c *AmplifyBackend) ListBackendJobsPages(input *ListBackendJobsInput, fn func(*ListBackendJobsOutput, bool) bool) error {
return c.ListBackendJobsPagesWithContext(aws.BackgroundContext(), input, fn)
}
// ListBackendJobsPagesWithContext same as ListBackendJobsPages except
// it takes a Context and allows setting request options on the pages.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
func (c *AmplifyBackend) ListBackendJobsPagesWithContext(ctx aws.Context, input *ListBackendJobsInput, fn func(*ListBackendJobsOutput, bool) bool, opts ...request.Option) error {
p := request.Pagination{
NewRequest: func() (*request.Request, error) {
var inCpy *ListBackendJobsInput
if input != nil {
tmp := *input
inCpy = &tmp
}
req, _ := c.ListBackendJobsRequest(inCpy)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return req, nil
},
}
for p.Next() {
if !fn(p.Page().(*ListBackendJobsOutput), !p.HasNextPage()) {
break
}
}
return p.Err()
}
const opRemoveAllBackends = "RemoveAllBackends"
// RemoveAllBackendsRequest generates a "aws/request.Request" representing the
// client's request for the RemoveAllBackends 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 RemoveAllBackends for more information on using the RemoveAllBackends
// 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 RemoveAllBackendsRequest method.
// req, resp := client.RemoveAllBackendsRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/amplifybackend-2020-08-11/RemoveAllBackends
func (c *AmplifyBackend) RemoveAllBackendsRequest(input *RemoveAllBackendsInput) (req *request.Request, output *RemoveAllBackendsOutput) {
op := &request.Operation{
Name: opRemoveAllBackends,
HTTPMethod: "POST",
HTTPPath: "/backend/{appId}/remove",
}
if input == nil {
input = &RemoveAllBackendsInput{}
}
output = &RemoveAllBackendsOutput{}
req = c.newRequest(op, input, output)
return
}
// RemoveAllBackends API operation for AmplifyBackend.
//
// Removes all backend environments from your Amplify project.
//
// 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 AmplifyBackend's
// API operation RemoveAllBackends for usage and error information.
//
// Returned Error Types:
// * NotFoundException
// An error returned when a specific resource type is not found.
//
// * GatewayTimeoutException
// An error returned if there's a temporary issue with the service.
//
// * TooManyRequestsException
// An error that is returned when a limit of a specific type has been exceeded.
//
// * BadRequestException
// An error returned if a request is not formed properly.
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/amplifybackend-2020-08-11/RemoveAllBackends
func (c *AmplifyBackend) RemoveAllBackends(input *RemoveAllBackendsInput) (*RemoveAllBackendsOutput, error) {
req, out := c.RemoveAllBackendsRequest(input)
return out, req.Send()
}
// RemoveAllBackendsWithContext is the same as RemoveAllBackends with the addition of
// the ability to pass a context and additional request options.
//
// See RemoveAllBackends for details on how to use this API operation.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
func (c *AmplifyBackend) RemoveAllBackendsWithContext(ctx aws.Context, input *RemoveAllBackendsInput, opts ...request.Option) (*RemoveAllBackendsOutput, error) {
req, out := c.RemoveAllBackendsRequest(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
const opRemoveBackendConfig = "RemoveBackendConfig"
// RemoveBackendConfigRequest generates a "aws/request.Request" representing the
// client's request for the RemoveBackendConfig 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 RemoveBackendConfig for more information on using the RemoveBackendConfig
// 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 RemoveBackendConfigRequest method.
// req, resp := client.RemoveBackendConfigRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/amplifybackend-2020-08-11/RemoveBackendConfig
func (c *AmplifyBackend) RemoveBackendConfigRequest(input *RemoveBackendConfigInput) (req *request.Request, output *RemoveBackendConfigOutput) {
op := &request.Operation{
Name: opRemoveBackendConfig,
HTTPMethod: "POST",
HTTPPath: "/backend/{appId}/config/remove",
}
if input == nil {
input = &RemoveBackendConfigInput{}
}
output = &RemoveBackendConfigOutput{}
req = c.newRequest(op, input, output)
return
}
// RemoveBackendConfig API operation for AmplifyBackend.
//
// Removes the AWS resources required to access the Amplify Admin UI.
//
// 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 AmplifyBackend's
// API operation RemoveBackendConfig for usage and error information.
//
// Returned Error Types:
// * NotFoundException
// An error returned when a specific resource type is not found.
//
// * GatewayTimeoutException
// An error returned if there's a temporary issue with the service.
//
// * TooManyRequestsException
// An error that is returned when a limit of a specific type has been exceeded.
//
// * BadRequestException
// An error returned if a request is not formed properly.
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/amplifybackend-2020-08-11/RemoveBackendConfig
func (c *AmplifyBackend) RemoveBackendConfig(input *RemoveBackendConfigInput) (*RemoveBackendConfigOutput, error) {
req, out := c.RemoveBackendConfigRequest(input)
return out, req.Send()
}
// RemoveBackendConfigWithContext is the same as RemoveBackendConfig with the addition of
// the ability to pass a context and additional request options.
//
// See RemoveBackendConfig for details on how to use this API operation.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
func (c *AmplifyBackend) RemoveBackendConfigWithContext(ctx aws.Context, input *RemoveBackendConfigInput, opts ...request.Option) (*RemoveBackendConfigOutput, error) {
req, out := c.RemoveBackendConfigRequest(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
const opUpdateBackendAPI = "UpdateBackendAPI"
// UpdateBackendAPIRequest generates a "aws/request.Request" representing the
// client's request for the UpdateBackendAPI 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 UpdateBackendAPI for more information on using the UpdateBackendAPI
// 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 UpdateBackendAPIRequest method.
// req, resp := client.UpdateBackendAPIRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/amplifybackend-2020-08-11/UpdateBackendAPI
func (c *AmplifyBackend) UpdateBackendAPIRequest(input *UpdateBackendAPIInput) (req *request.Request, output *UpdateBackendAPIOutput) {
op := &request.Operation{
Name: opUpdateBackendAPI,
HTTPMethod: "POST",
HTTPPath: "/backend/{appId}/api/{backendEnvironmentName}",
}
if input == nil {
input = &UpdateBackendAPIInput{}
}
output = &UpdateBackendAPIOutput{}
req = c.newRequest(op, input, output)
return
}
// UpdateBackendAPI API operation for AmplifyBackend.
//
// Updates an existing backend API 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 AmplifyBackend's
// API operation UpdateBackendAPI for usage and error information.
//
// Returned Error Types:
// * NotFoundException
// An error returned when a specific resource type is not found.
//
// * GatewayTimeoutException
// An error returned if there's a temporary issue with the service.
//
// * TooManyRequestsException
// An error that is returned when a limit of a specific type has been exceeded.
//
// * BadRequestException
// An error returned if a request is not formed properly.
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/amplifybackend-2020-08-11/UpdateBackendAPI
func (c *AmplifyBackend) UpdateBackendAPI(input *UpdateBackendAPIInput) (*UpdateBackendAPIOutput, error) {
req, out := c.UpdateBackendAPIRequest(input)
return out, req.Send()
}
// UpdateBackendAPIWithContext is the same as UpdateBackendAPI with the addition of
// the ability to pass a context and additional request options.
//
// See UpdateBackendAPI for details on how to use this API operation.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
func (c *AmplifyBackend) UpdateBackendAPIWithContext(ctx aws.Context, input *UpdateBackendAPIInput, opts ...request.Option) (*UpdateBackendAPIOutput, error) {
req, out := c.UpdateBackendAPIRequest(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
const opUpdateBackendAuth = "UpdateBackendAuth"
// UpdateBackendAuthRequest generates a "aws/request.Request" representing the
// client's request for the UpdateBackendAuth 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 UpdateBackendAuth for more information on using the UpdateBackendAuth
// 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 UpdateBackendAuthRequest method.
// req, resp := client.UpdateBackendAuthRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/amplifybackend-2020-08-11/UpdateBackendAuth
func (c *AmplifyBackend) UpdateBackendAuthRequest(input *UpdateBackendAuthInput) (req *request.Request, output *UpdateBackendAuthOutput) {
op := &request.Operation{
Name: opUpdateBackendAuth,
HTTPMethod: "POST",
HTTPPath: "/backend/{appId}/auth/{backendEnvironmentName}",
}
if input == nil {
input = &UpdateBackendAuthInput{}
}
output = &UpdateBackendAuthOutput{}
req = c.newRequest(op, input, output)
return
}
// UpdateBackendAuth API operation for AmplifyBackend.
//
// Updates an existing backend authentication 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 AmplifyBackend's
// API operation UpdateBackendAuth for usage and error information.
//
// Returned Error Types:
// * NotFoundException
// An error returned when a specific resource type is not found.
//
// * GatewayTimeoutException
// An error returned if there's a temporary issue with the service.
//
// * TooManyRequestsException
// An error that is returned when a limit of a specific type has been exceeded.
//
// * BadRequestException
// An error returned if a request is not formed properly.
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/amplifybackend-2020-08-11/UpdateBackendAuth
func (c *AmplifyBackend) UpdateBackendAuth(input *UpdateBackendAuthInput) (*UpdateBackendAuthOutput, error) {
req, out := c.UpdateBackendAuthRequest(input)
return out, req.Send()
}
// UpdateBackendAuthWithContext is the same as UpdateBackendAuth with the addition of
// the ability to pass a context and additional request options.
//
// See UpdateBackendAuth for details on how to use this API operation.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
func (c *AmplifyBackend) UpdateBackendAuthWithContext(ctx aws.Context, input *UpdateBackendAuthInput, opts ...request.Option) (*UpdateBackendAuthOutput, error) {
req, out := c.UpdateBackendAuthRequest(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
const opUpdateBackendConfig = "UpdateBackendConfig"
// UpdateBackendConfigRequest generates a "aws/request.Request" representing the
// client's request for the UpdateBackendConfig 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 UpdateBackendConfig for more information on using the UpdateBackendConfig
// 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 UpdateBackendConfigRequest method.
// req, resp := client.UpdateBackendConfigRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/amplifybackend-2020-08-11/UpdateBackendConfig
func (c *AmplifyBackend) UpdateBackendConfigRequest(input *UpdateBackendConfigInput) (req *request.Request, output *UpdateBackendConfigOutput) {
op := &request.Operation{
Name: opUpdateBackendConfig,
HTTPMethod: "POST",
HTTPPath: "/backend/{appId}/config/update",
}
if input == nil {
input = &UpdateBackendConfigInput{}
}
output = &UpdateBackendConfigOutput{}
req = c.newRequest(op, input, output)
return
}
// UpdateBackendConfig API operation for AmplifyBackend.
//
// Updates the AWS resources required to access the Amplify Admin UI.
//
// 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 AmplifyBackend's
// API operation UpdateBackendConfig for usage and error information.
//
// Returned Error Types:
// * NotFoundException
// An error returned when a specific resource type is not found.
//
// * GatewayTimeoutException
// An error returned if there's a temporary issue with the service.
//
// * TooManyRequestsException
// An error that is returned when a limit of a specific type has been exceeded.
//
// * BadRequestException
// An error returned if a request is not formed properly.
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/amplifybackend-2020-08-11/UpdateBackendConfig
func (c *AmplifyBackend) UpdateBackendConfig(input *UpdateBackendConfigInput) (*UpdateBackendConfigOutput, error) {
req, out := c.UpdateBackendConfigRequest(input)
return out, req.Send()
}
// UpdateBackendConfigWithContext is the same as UpdateBackendConfig with the addition of
// the ability to pass a context and additional request options.
//
// See UpdateBackendConfig for details on how to use this API operation.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
func (c *AmplifyBackend) UpdateBackendConfigWithContext(ctx aws.Context, input *UpdateBackendConfigInput, opts ...request.Option) (*UpdateBackendConfigOutput, error) {
req, out := c.UpdateBackendConfigRequest(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
const opUpdateBackendJob = "UpdateBackendJob"
// UpdateBackendJobRequest generates a "aws/request.Request" representing the
// client's request for the UpdateBackendJob 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 UpdateBackendJob for more information on using the UpdateBackendJob
// 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 UpdateBackendJobRequest method.
// req, resp := client.UpdateBackendJobRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/amplifybackend-2020-08-11/UpdateBackendJob
func (c *AmplifyBackend) UpdateBackendJobRequest(input *UpdateBackendJobInput) (req *request.Request, output *UpdateBackendJobOutput) {
op := &request.Operation{
Name: opUpdateBackendJob,
HTTPMethod: "POST",
HTTPPath: "/backend/{appId}/job/{backendEnvironmentName}/{jobId}",
}
if input == nil {
input = &UpdateBackendJobInput{}
}
output = &UpdateBackendJobOutput{}
req = c.newRequest(op, input, output)
return
}
// UpdateBackendJob API operation for AmplifyBackend.
//
// Updates a specific job.
//
// 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 AmplifyBackend's
// API operation UpdateBackendJob for usage and error information.
//
// Returned Error Types:
// * NotFoundException
// An error returned when a specific resource type is not found.
//
// * GatewayTimeoutException
// An error returned if there's a temporary issue with the service.
//
// * TooManyRequestsException
// An error that is returned when a limit of a specific type has been exceeded.
//
// * BadRequestException
// An error returned if a request is not formed properly.
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/amplifybackend-2020-08-11/UpdateBackendJob
func (c *AmplifyBackend) UpdateBackendJob(input *UpdateBackendJobInput) (*UpdateBackendJobOutput, error) {
req, out := c.UpdateBackendJobRequest(input)
return out, req.Send()
}
// UpdateBackendJobWithContext is the same as UpdateBackendJob with the addition of
// the ability to pass a context and additional request options.
//
// See UpdateBackendJob for details on how to use this API operation.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
func (c *AmplifyBackend) UpdateBackendJobWithContext(ctx aws.Context, input *UpdateBackendJobInput, opts ...request.Option) (*UpdateBackendJobOutput, error) {
req, out := c.UpdateBackendJobRequest(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
// The authentication settings for accessing provisioned data models in your
// Amplify project.
type BackendAPIAppSyncAuthSettings struct {
_ struct{} `type:"structure"`
// The Amazon Cognito user pool ID, if Amazon Cognito was used as an authentication
// setting to access your data models.
CognitoUserPoolId *string `locationName:"cognitoUserPoolId" type:"string"`
// The API key description for API_KEY, if it was used as an authentication
// mechanism to access your data models.
Description *string `locationName:"description" type:"string"`
// The API key expiration time for API_KEY, if it was used as an authentication
// mechanism to access your data models.
ExpirationTime *float64 `locationName:"expirationTime" type:"double"`
// The expiry time for the OpenID authentication mechanism.
OpenIDAuthTTL *string `locationName:"openIDAuthTTL" type:"string"`
// The clientID for openID, if openID was used as an authentication setting
// to access your data models.
OpenIDClientId *string `locationName:"openIDClientId" type:"string"`
// The expiry time for the OpenID authentication mechanism.
OpenIDIatTTL *string `locationName:"openIDIatTTL" type:"string"`
// The openID issuer URL, if openID was used as an authentication setting to
// access your data models.
OpenIDIssueURL *string `locationName:"openIDIssueURL" type:"string"`
// The OpenID provider name, if OpenID was used as an authentication mechanism
// to access your data models.
OpenIDProviderName *string `locationName:"openIDProviderName" type:"string"`
}
// String returns the string representation
func (s BackendAPIAppSyncAuthSettings) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s BackendAPIAppSyncAuthSettings) GoString() string {
return s.String()
}
// SetCognitoUserPoolId sets the CognitoUserPoolId field's value.
func (s *BackendAPIAppSyncAuthSettings) SetCognitoUserPoolId(v string) *BackendAPIAppSyncAuthSettings {
s.CognitoUserPoolId = &v
return s
}
// SetDescription sets the Description field's value.
func (s *BackendAPIAppSyncAuthSettings) SetDescription(v string) *BackendAPIAppSyncAuthSettings {
s.Description = &v
return s
}
// SetExpirationTime sets the ExpirationTime field's value.
func (s *BackendAPIAppSyncAuthSettings) SetExpirationTime(v float64) *BackendAPIAppSyncAuthSettings {
s.ExpirationTime = &v
return s
}
// SetOpenIDAuthTTL sets the OpenIDAuthTTL field's value.
func (s *BackendAPIAppSyncAuthSettings) SetOpenIDAuthTTL(v string) *BackendAPIAppSyncAuthSettings {
s.OpenIDAuthTTL = &v
return s
}
// SetOpenIDClientId sets the OpenIDClientId field's value.
func (s *BackendAPIAppSyncAuthSettings) SetOpenIDClientId(v string) *BackendAPIAppSyncAuthSettings {
s.OpenIDClientId = &v
return s
}
// SetOpenIDIatTTL sets the OpenIDIatTTL field's value.
func (s *BackendAPIAppSyncAuthSettings) SetOpenIDIatTTL(v string) *BackendAPIAppSyncAuthSettings {
s.OpenIDIatTTL = &v
return s
}
// SetOpenIDIssueURL sets the OpenIDIssueURL field's value.
func (s *BackendAPIAppSyncAuthSettings) SetOpenIDIssueURL(v string) *BackendAPIAppSyncAuthSettings {
s.OpenIDIssueURL = &v
return s
}
// SetOpenIDProviderName sets the OpenIDProviderName field's value.
func (s *BackendAPIAppSyncAuthSettings) SetOpenIDProviderName(v string) *BackendAPIAppSyncAuthSettings {
s.OpenIDProviderName = &v
return s
}
// Describes the auth types for your configured data models.
type BackendAPIAuthType struct {
_ struct{} `type:"structure"`
// Describes the authentication mode.
Mode *string `locationName:"mode" type:"string" enum:"Mode"`
// Describes settings for the authentication mode.
Settings *BackendAPIAppSyncAuthSettings `locationName:"settings" type:"structure"`
}
// String returns the string representation
func (s BackendAPIAuthType) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s BackendAPIAuthType) GoString() string {
return s.String()
}
// SetMode sets the Mode field's value.
func (s *BackendAPIAuthType) SetMode(v string) *BackendAPIAuthType {
s.Mode = &v
return s
}
// SetSettings sets the Settings field's value.
func (s *BackendAPIAuthType) SetSettings(v *BackendAPIAppSyncAuthSettings) *BackendAPIAuthType {
s.Settings = v
return s
}
// Describes the conflict resolution configuration for your data model configured
// in your Amplify project.
type BackendAPIConflictResolution struct {
_ struct{} `type:"structure"`
// The strategy for conflict resolution.
ResolutionStrategy *string `locationName:"resolutionStrategy" type:"string" enum:"ResolutionStrategy"`
}
// String returns the string representation
func (s BackendAPIConflictResolution) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s BackendAPIConflictResolution) GoString() string {
return s.String()
}
// SetResolutionStrategy sets the ResolutionStrategy field's value.
func (s *BackendAPIConflictResolution) SetResolutionStrategy(v string) *BackendAPIConflictResolution {
s.ResolutionStrategy = &v
return s
}
// The resource config for the data model, configured as a part of the Amplify
// project.
type BackendAPIResourceConfig struct {
_ struct{} `type:"structure"`
// Additional authentication methods used to interact with your data models.
AdditionalAuthTypes []*BackendAPIAuthType `locationName:"additionalAuthTypes" type:"list"`
// The API name used to interact with the data model, configured as a part of
// your Amplify project.
ApiName *string `locationName:"apiName" type:"string"`
// The conflict resolution strategy for your data stored in the data models.
ConflictResolution *BackendAPIConflictResolution `locationName:"conflictResolution" type:"structure"`
// The default authentication type for interacting with the configured data
// models in your Amplify project.
DefaultAuthType *BackendAPIAuthType `locationName:"defaultAuthType" type:"structure"`
// The service used to provision and interact with the data model.
Service *string `locationName:"service" type:"string"`
// The definition of the data model in the annotated transform of the GraphQL
// schema.
TransformSchema *string `locationName:"transformSchema" type:"string"`
}
// String returns the string representation
func (s BackendAPIResourceConfig) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s BackendAPIResourceConfig) GoString() string {
return s.String()
}
// SetAdditionalAuthTypes sets the AdditionalAuthTypes field's value.
func (s *BackendAPIResourceConfig) SetAdditionalAuthTypes(v []*BackendAPIAuthType) *BackendAPIResourceConfig {
s.AdditionalAuthTypes = v
return s
}
// SetApiName sets the ApiName field's value.
func (s *BackendAPIResourceConfig) SetApiName(v string) *BackendAPIResourceConfig {
s.ApiName = &v
return s
}
// SetConflictResolution sets the ConflictResolution field's value.
func (s *BackendAPIResourceConfig) SetConflictResolution(v *BackendAPIConflictResolution) *BackendAPIResourceConfig {
s.ConflictResolution = v
return s
}
// SetDefaultAuthType sets the DefaultAuthType field's value.
func (s *BackendAPIResourceConfig) SetDefaultAuthType(v *BackendAPIAuthType) *BackendAPIResourceConfig {
s.DefaultAuthType = v
return s
}
// SetService sets the Service field's value.
func (s *BackendAPIResourceConfig) SetService(v string) *BackendAPIResourceConfig {
s.Service = &v
return s
}
// SetTransformSchema sets the TransformSchema field's value.
func (s *BackendAPIResourceConfig) SetTransformSchema(v string) *BackendAPIResourceConfig {
s.TransformSchema = &v
return s
}
// Describes Apple social federation configurations for allowing your app users
// to sign in using OAuth.
type BackendAuthAppleProviderConfig struct {
_ struct{} `type:"structure"`
// Describes the client_id (also called Services ID) that comes from Apple.
ClientId *string `locationName:"client_id" type:"string"`
// Describes the key_id that comes from Apple.
KeyId *string `locationName:"key_id" type:"string"`
// Describes the private_key that comes from Apple.
PrivateKey *string `locationName:"private_key" type:"string"`
// Describes the team_id that comes from Apple.
TeamId *string `locationName:"team_id" type:"string"`
}
// String returns the string representation
func (s BackendAuthAppleProviderConfig) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s BackendAuthAppleProviderConfig) GoString() string {
return s.String()
}
// SetClientId sets the ClientId field's value.
func (s *BackendAuthAppleProviderConfig) SetClientId(v string) *BackendAuthAppleProviderConfig {
s.ClientId = &v
return s
}
// SetKeyId sets the KeyId field's value.
func (s *BackendAuthAppleProviderConfig) SetKeyId(v string) *BackendAuthAppleProviderConfig {
s.KeyId = &v
return s
}
// SetPrivateKey sets the PrivateKey field's value.
func (s *BackendAuthAppleProviderConfig) SetPrivateKey(v string) *BackendAuthAppleProviderConfig {
s.PrivateKey = &v
return s
}
// SetTeamId sets the TeamId field's value.
func (s *BackendAuthAppleProviderConfig) SetTeamId(v string) *BackendAuthAppleProviderConfig {
s.TeamId = &v
return s
}
// Describes third-party social federation configurations for allowing your
// app users to sign in using OAuth.
type BackendAuthSocialProviderConfig struct {
_ struct{} `type:"structure"`
// Describes the client_id, which can be obtained from the third-party social
// federation provider.
ClientId *string `locationName:"client_id" type:"string"`
// Describes the client_secret, which can be obtained from third-party social
// federation providers.
ClientSecret *string `locationName:"client_secret" type:"string"`
}
// String returns the string representation
func (s BackendAuthSocialProviderConfig) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s BackendAuthSocialProviderConfig) GoString() string {
return s.String()
}
// SetClientId sets the ClientId field's value.
func (s *BackendAuthSocialProviderConfig) SetClientId(v string) *BackendAuthSocialProviderConfig {
s.ClientId = &v
return s
}
// SetClientSecret sets the ClientSecret field's value.
func (s *BackendAuthSocialProviderConfig) SetClientSecret(v string) *BackendAuthSocialProviderConfig {
s.ClientSecret = &v
return s
}
// The response object for this operation.
type BackendJobRespObj struct {
_ struct{} `type:"structure"`
// The app ID.
//
// AppId is a required field
AppId *string `locationName:"appId" type:"string" required:"true"`
// The name of the backend environment.
//
// BackendEnvironmentName is a required field
BackendEnvironmentName *string `locationName:"backendEnvironmentName" type:"string" required:"true"`
// The time when the job was created.
CreateTime *string `locationName:"createTime" type:"string"`
// If the request fails, this error is returned.
Error *string `locationName:"error" type:"string"`
// The ID for the job.
JobId *string `locationName:"jobId" type:"string"`
// The name of the operation.
Operation *string `locationName:"operation" type:"string"`
// The current status of the request.
Status *string `locationName:"status" type:"string"`
// The time when the job was last updated.
UpdateTime *string `locationName:"updateTime" type:"string"`
}
// String returns the string representation
func (s BackendJobRespObj) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s BackendJobRespObj) GoString() string {
return s.String()
}
// SetAppId sets the AppId field's value.
func (s *BackendJobRespObj) SetAppId(v string) *BackendJobRespObj {
s.AppId = &v
return s
}
// SetBackendEnvironmentName sets the BackendEnvironmentName field's value.
func (s *BackendJobRespObj) SetBackendEnvironmentName(v string) *BackendJobRespObj {
s.BackendEnvironmentName = &v
return s
}
// SetCreateTime sets the CreateTime field's value.
func (s *BackendJobRespObj) SetCreateTime(v string) *BackendJobRespObj {
s.CreateTime = &v
return s
}
// SetError sets the Error field's value.
func (s *BackendJobRespObj) SetError(v string) *BackendJobRespObj {
s.Error = &v
return s
}
// SetJobId sets the JobId field's value.
func (s *BackendJobRespObj) SetJobId(v string) *BackendJobRespObj {
s.JobId = &v
return s
}
// SetOperation sets the Operation field's value.
func (s *BackendJobRespObj) SetOperation(v string) *BackendJobRespObj {
s.Operation = &v
return s
}
// SetStatus sets the Status field's value.
func (s *BackendJobRespObj) SetStatus(v string) *BackendJobRespObj {
s.Status = &v
return s
}
// SetUpdateTime sets the UpdateTime field's value.
func (s *BackendJobRespObj) SetUpdateTime(v string) *BackendJobRespObj {
s.UpdateTime = &v
return s
}
// An error returned if a request is not formed properly.
type BadRequestException struct {
_ struct{} `type:"structure"`
RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
// An error message to inform that the request failed.
Message_ *string `locationName:"message" type:"string"`
}
// String returns the string representation
func (s BadRequestException) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s BadRequestException) GoString() string {
return s.String()
}
func newErrorBadRequestException(v protocol.ResponseMetadata) error {
return &BadRequestException{
RespMetadata: v,
}
}
// Code returns the exception type name.
func (s *BadRequestException) Code() string {
return "BadRequestException"
}
// Message returns the exception's message.
func (s *BadRequestException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
return ""
}
// OrigErr always returns nil, satisfies awserr.Error interface.
func (s *BadRequestException) OrigErr() error {
return nil
}
func (s *BadRequestException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
func (s *BadRequestException) StatusCode() int {
return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
func (s *BadRequestException) RequestID() string {
return s.RespMetadata.RequestID
}
type CloneBackendInput struct {
_ struct{} `type:"structure"`
// AppId is a required field
AppId *string `location:"uri" locationName:"appId" type:"string" required:"true"`
// BackendEnvironmentName is a required field
BackendEnvironmentName *string `location:"uri" locationName:"backendEnvironmentName" type:"string" required:"true"`
// TargetEnvironmentName is a required field
TargetEnvironmentName *string `locationName:"targetEnvironmentName" type:"string" required:"true"`
}
// String returns the string representation
func (s CloneBackendInput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s CloneBackendInput) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
func (s *CloneBackendInput) Validate() error {
invalidParams := request.ErrInvalidParams{Context: "CloneBackendInput"}
if s.AppId == nil {
invalidParams.Add(request.NewErrParamRequired("AppId"))
}
if s.AppId != nil && len(*s.AppId) < 1 {
invalidParams.Add(request.NewErrParamMinLen("AppId", 1))
}
if s.BackendEnvironmentName == nil {
invalidParams.Add(request.NewErrParamRequired("BackendEnvironmentName"))
}
if s.BackendEnvironmentName != nil && len(*s.BackendEnvironmentName) < 1 {
invalidParams.Add(request.NewErrParamMinLen("BackendEnvironmentName", 1))
}
if s.TargetEnvironmentName == nil {
invalidParams.Add(request.NewErrParamRequired("TargetEnvironmentName"))
}
if invalidParams.Len() > 0 {
return invalidParams
}
return nil
}
// SetAppId sets the AppId field's value.
func (s *CloneBackendInput) SetAppId(v string) *CloneBackendInput {
s.AppId = &v
return s
}
// SetBackendEnvironmentName sets the BackendEnvironmentName field's value.
func (s *CloneBackendInput) SetBackendEnvironmentName(v string) *CloneBackendInput {
s.BackendEnvironmentName = &v
return s
}
// SetTargetEnvironmentName sets the TargetEnvironmentName field's value.
func (s *CloneBackendInput) SetTargetEnvironmentName(v string) *CloneBackendInput {
s.TargetEnvironmentName = &v
return s
}
type CloneBackendOutput struct {
_ struct{} `type:"structure"`
AppId *string `locationName:"appId" type:"string"`
BackendEnvironmentName *string `locationName:"backendEnvironmentName" type:"string"`
Error *string `locationName:"error" type:"string"`
JobId *string `locationName:"jobId" type:"string"`
Operation *string `locationName:"operation" type:"string"`
Status *string `locationName:"status" type:"string"`
}
// String returns the string representation
func (s CloneBackendOutput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s CloneBackendOutput) GoString() string {
return s.String()
}
// SetAppId sets the AppId field's value.
func (s *CloneBackendOutput) SetAppId(v string) *CloneBackendOutput {
s.AppId = &v
return s
}
// SetBackendEnvironmentName sets the BackendEnvironmentName field's value.
func (s *CloneBackendOutput) SetBackendEnvironmentName(v string) *CloneBackendOutput {
s.BackendEnvironmentName = &v
return s
}
// SetError sets the Error field's value.
func (s *CloneBackendOutput) SetError(v string) *CloneBackendOutput {
s.Error = &v
return s
}
// SetJobId sets the JobId field's value.
func (s *CloneBackendOutput) SetJobId(v string) *CloneBackendOutput {
s.JobId = &v
return s
}
// SetOperation sets the Operation field's value.
func (s *CloneBackendOutput) SetOperation(v string) *CloneBackendOutput {
s.Operation = &v
return s
}
// SetStatus sets the Status field's value.
func (s *CloneBackendOutput) SetStatus(v string) *CloneBackendOutput {
s.Status = &v
return s
}
type CreateBackendAPIInput struct {
_ struct{} `type:"structure"`
// AppId is a required field
AppId *string `location:"uri" locationName:"appId" type:"string" required:"true"`
// BackendEnvironmentName is a required field
BackendEnvironmentName *string `locationName:"backendEnvironmentName" type:"string" required:"true"`
// The resource config for the data model, configured as a part of the Amplify
// project.
//
// ResourceConfig is a required field
ResourceConfig *BackendAPIResourceConfig `locationName:"resourceConfig" type:"structure" required:"true"`
// ResourceName is a required field
ResourceName *string `locationName:"resourceName" type:"string" required:"true"`
}
// String returns the string representation
func (s CreateBackendAPIInput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s CreateBackendAPIInput) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
func (s *CreateBackendAPIInput) Validate() error {
invalidParams := request.ErrInvalidParams{Context: "CreateBackendAPIInput"}
if s.AppId == nil {
invalidParams.Add(request.NewErrParamRequired("AppId"))
}
if s.AppId != nil && len(*s.AppId) < 1 {
invalidParams.Add(request.NewErrParamMinLen("AppId", 1))
}
if s.BackendEnvironmentName == nil {
invalidParams.Add(request.NewErrParamRequired("BackendEnvironmentName"))
}
if s.ResourceConfig == nil {
invalidParams.Add(request.NewErrParamRequired("ResourceConfig"))
}
if s.ResourceName == nil {
invalidParams.Add(request.NewErrParamRequired("ResourceName"))
}
if invalidParams.Len() > 0 {
return invalidParams
}
return nil
}
// SetAppId sets the AppId field's value.
func (s *CreateBackendAPIInput) SetAppId(v string) *CreateBackendAPIInput {
s.AppId = &v
return s
}
// SetBackendEnvironmentName sets the BackendEnvironmentName field's value.
func (s *CreateBackendAPIInput) SetBackendEnvironmentName(v string) *CreateBackendAPIInput {
s.BackendEnvironmentName = &v
return s
}
// SetResourceConfig sets the ResourceConfig field's value.
func (s *CreateBackendAPIInput) SetResourceConfig(v *BackendAPIResourceConfig) *CreateBackendAPIInput {
s.ResourceConfig = v
return s
}
// SetResourceName sets the ResourceName field's value.
func (s *CreateBackendAPIInput) SetResourceName(v string) *CreateBackendAPIInput {
s.ResourceName = &v
return s
}
type CreateBackendAPIOutput struct {
_ struct{} `type:"structure"`
AppId *string `locationName:"appId" type:"string"`
BackendEnvironmentName *string `locationName:"backendEnvironmentName" type:"string"`
Error *string `locationName:"error" type:"string"`
JobId *string `locationName:"jobId" type:"string"`
Operation *string `locationName:"operation" type:"string"`
Status *string `locationName:"status" type:"string"`
}
// String returns the string representation
func (s CreateBackendAPIOutput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s CreateBackendAPIOutput) GoString() string {
return s.String()
}
// SetAppId sets the AppId field's value.
func (s *CreateBackendAPIOutput) SetAppId(v string) *CreateBackendAPIOutput {
s.AppId = &v
return s
}
// SetBackendEnvironmentName sets the BackendEnvironmentName field's value.
func (s *CreateBackendAPIOutput) SetBackendEnvironmentName(v string) *CreateBackendAPIOutput {
s.BackendEnvironmentName = &v
return s
}
// SetError sets the Error field's value.
func (s *CreateBackendAPIOutput) SetError(v string) *CreateBackendAPIOutput {
s.Error = &v
return s
}
// SetJobId sets the JobId field's value.
func (s *CreateBackendAPIOutput) SetJobId(v string) *CreateBackendAPIOutput {
s.JobId = &v
return s
}
// SetOperation sets the Operation field's value.
func (s *CreateBackendAPIOutput) SetOperation(v string) *CreateBackendAPIOutput {
s.Operation = &v
return s
}
// SetStatus sets the Status field's value.
func (s *CreateBackendAPIOutput) SetStatus(v string) *CreateBackendAPIOutput {
s.Status = &v
return s
}
// Describes the forgot password policy for authenticating into the Amplify
// app.
type CreateBackendAuthForgotPasswordConfig struct {
_ struct{} `type:"structure"`
// Describes which mode to use (either SMS or email) to deliver messages to
// app users who want to recover their password.
//
// DeliveryMethod is a required field
DeliveryMethod *string `locationName:"deliveryMethod" type:"string" required:"true" enum:"DeliveryMethod"`
// The configuration for the email sent when an app user forgets their password.
EmailSettings *EmailSettings `locationName:"emailSettings" type:"structure"`
// The configuration for the SMS message sent when an app user forgets their
// password.
SmsSettings *SmsSettings `locationName:"smsSettings" type:"structure"`
}
// String returns the string representation
func (s CreateBackendAuthForgotPasswordConfig) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s CreateBackendAuthForgotPasswordConfig) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
func (s *CreateBackendAuthForgotPasswordConfig) Validate() error {
invalidParams := request.ErrInvalidParams{Context: "CreateBackendAuthForgotPasswordConfig"}
if s.DeliveryMethod == nil {
invalidParams.Add(request.NewErrParamRequired("DeliveryMethod"))
}
if invalidParams.Len() > 0 {
return invalidParams
}
return nil
}
// SetDeliveryMethod sets the DeliveryMethod field's value.
func (s *CreateBackendAuthForgotPasswordConfig) SetDeliveryMethod(v string) *CreateBackendAuthForgotPasswordConfig {
s.DeliveryMethod = &v
return s
}
// SetEmailSettings sets the EmailSettings field's value.
func (s *CreateBackendAuthForgotPasswordConfig) SetEmailSettings(v *EmailSettings) *CreateBackendAuthForgotPasswordConfig {
s.EmailSettings = v
return s
}
// SetSmsSettings sets the SmsSettings field's value.
func (s *CreateBackendAuthForgotPasswordConfig) SetSmsSettings(v *SmsSettings) *CreateBackendAuthForgotPasswordConfig {
s.SmsSettings = v
return s
}
// Describes authorization configurations for the auth resources, configured
// as a part of your Amplify project.
type CreateBackendAuthIdentityPoolConfig struct {
_ struct{} `type:"structure"`
// Name of the Amazon Cognito identity pool used for authorization.
//
// IdentityPoolName is a required field
IdentityPoolName *string `locationName:"identityPoolName" type:"string" required:"true"`
// Set to true or false based on whether you want to enable guest authorization
// to your Amplify app.
//
// UnauthenticatedLogin is a required field
UnauthenticatedLogin *bool `locationName:"unauthenticatedLogin" type:"boolean" required:"true"`
}
// String returns the string representation
func (s CreateBackendAuthIdentityPoolConfig) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s CreateBackendAuthIdentityPoolConfig) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
func (s *CreateBackendAuthIdentityPoolConfig) Validate() error {
invalidParams := request.ErrInvalidParams{Context: "CreateBackendAuthIdentityPoolConfig"}
if s.IdentityPoolName == nil {
invalidParams.Add(request.NewErrParamRequired("IdentityPoolName"))
}
if s.UnauthenticatedLogin == nil {
invalidParams.Add(request.NewErrParamRequired("UnauthenticatedLogin"))
}
if invalidParams.Len() > 0 {
return invalidParams
}
return nil
}
// SetIdentityPoolName sets the IdentityPoolName field's value.
func (s *CreateBackendAuthIdentityPoolConfig) SetIdentityPoolName(v string) *CreateBackendAuthIdentityPoolConfig {
s.IdentityPoolName = &v
return s
}
// SetUnauthenticatedLogin sets the UnauthenticatedLogin field's value.
func (s *CreateBackendAuthIdentityPoolConfig) SetUnauthenticatedLogin(v bool) *CreateBackendAuthIdentityPoolConfig {
s.UnauthenticatedLogin = &v
return s
}
type CreateBackendAuthInput struct {
_ struct{} `type:"structure"`
// AppId is a required field
AppId *string `location:"uri" locationName:"appId" type:"string" required:"true"`
// BackendEnvironmentName is a required field
BackendEnvironmentName *string `locationName:"backendEnvironmentName" type:"string" required:"true"`
// Defines the resource configuration when creating an auth resource in your
// Amplify project.
//
// ResourceConfig is a required field
ResourceConfig *CreateBackendAuthResourceConfig `locationName:"resourceConfig" type:"structure" required:"true"`
// ResourceName is a required field
ResourceName *string `locationName:"resourceName" type:"string" required:"true"`
}
// String returns the string representation
func (s CreateBackendAuthInput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s CreateBackendAuthInput) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
func (s *CreateBackendAuthInput) Validate() error {
invalidParams := request.ErrInvalidParams{Context: "CreateBackendAuthInput"}
if s.AppId == nil {
invalidParams.Add(request.NewErrParamRequired("AppId"))
}
if s.AppId != nil && len(*s.AppId) < 1 {
invalidParams.Add(request.NewErrParamMinLen("AppId", 1))
}
if s.BackendEnvironmentName == nil {
invalidParams.Add(request.NewErrParamRequired("BackendEnvironmentName"))
}
if s.ResourceConfig == nil {
invalidParams.Add(request.NewErrParamRequired("ResourceConfig"))
}
if s.ResourceName == nil {
invalidParams.Add(request.NewErrParamRequired("ResourceName"))
}
if s.ResourceConfig != nil {
if err := s.ResourceConfig.Validate(); err != nil {
invalidParams.AddNested("ResourceConfig", err.(request.ErrInvalidParams))
}
}
if invalidParams.Len() > 0 {
return invalidParams
}
return nil
}
// SetAppId sets the AppId field's value.
func (s *CreateBackendAuthInput) SetAppId(v string) *CreateBackendAuthInput {
s.AppId = &v
return s
}
// SetBackendEnvironmentName sets the BackendEnvironmentName field's value.
func (s *CreateBackendAuthInput) SetBackendEnvironmentName(v string) *CreateBackendAuthInput {
s.BackendEnvironmentName = &v
return s
}
// SetResourceConfig sets the ResourceConfig field's value.
func (s *CreateBackendAuthInput) SetResourceConfig(v *CreateBackendAuthResourceConfig) *CreateBackendAuthInput {
s.ResourceConfig = v
return s
}
// SetResourceName sets the ResourceName field's value.
func (s *CreateBackendAuthInput) SetResourceName(v string) *CreateBackendAuthInput {
s.ResourceName = &v
return s
}
// Describes whether to apply multi-factor authentication policies for your
// Amazon Cognito user pool configured as a part of your Amplify project.
type CreateBackendAuthMFAConfig struct {
_ struct{} `type:"structure"`
// Describes whether MFA should be [ON, OFF, or OPTIONAL] for authentication
// in your Amplify project.
//
// MFAMode is a required field
MFAMode *string `type:"string" required:"true" enum:"MFAMode"`
// Describes the configuration settings and methods for your Amplify app users
// to use MFA.
Settings *Settings `locationName:"settings" type:"structure"`
}
// String returns the string representation
func (s CreateBackendAuthMFAConfig) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s CreateBackendAuthMFAConfig) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
func (s *CreateBackendAuthMFAConfig) Validate() error {
invalidParams := request.ErrInvalidParams{Context: "CreateBackendAuthMFAConfig"}
if s.MFAMode == nil {
invalidParams.Add(request.NewErrParamRequired("MFAMode"))
}
if invalidParams.Len() > 0 {
return invalidParams
}
return nil
}
// SetMFAMode sets the MFAMode field's value.
func (s *CreateBackendAuthMFAConfig) SetMFAMode(v string) *CreateBackendAuthMFAConfig {
s.MFAMode = &v
return s
}
// SetSettings sets the Settings field's value.
func (s *CreateBackendAuthMFAConfig) SetSettings(v *Settings) *CreateBackendAuthMFAConfig {
s.Settings = v
return s
}
// Creates the OAuth configuration for your Amplify project.
type CreateBackendAuthOAuthConfig struct {
_ struct{} `type:"structure"`
// The domain prefix for your Amplify app.
DomainPrefix *string `locationName:"domainPrefix" type:"string"`
// The OAuth grant type that you use to allow app users to authenticate from
// your Amplify app.
//
// OAuthGrantType is a required field
OAuthGrantType *string `locationName:"oAuthGrantType" type:"string" required:"true" enum:"OAuthGrantType"`
// List of OAuth-related flows used to allow your app users to authenticate
// from your Amplify app.
//
// OAuthScopes is a required field
OAuthScopes []*string `locationName:"oAuthScopes" type:"list" required:"true"`
// The redirected URI for signing in to your Amplify app.
//
// RedirectSignInURIs is a required field
RedirectSignInURIs []*string `locationName:"redirectSignInURIs" type:"list" required:"true"`
// Redirect URLs that OAuth uses when a user signs out of an Amplify app.
//
// RedirectSignOutURIs is a required field
RedirectSignOutURIs []*string `locationName:"redirectSignOutURIs" type:"list" required:"true"`
// The settings for using social providers to access your Amplify app.
SocialProviderSettings *SocialProviderSettings `locationName:"socialProviderSettings" type:"structure"`
}
// String returns the string representation
func (s CreateBackendAuthOAuthConfig) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s CreateBackendAuthOAuthConfig) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
func (s *CreateBackendAuthOAuthConfig) Validate() error {
invalidParams := request.ErrInvalidParams{Context: "CreateBackendAuthOAuthConfig"}
if s.OAuthGrantType == nil {
invalidParams.Add(request.NewErrParamRequired("OAuthGrantType"))
}
if s.OAuthScopes == nil {
invalidParams.Add(request.NewErrParamRequired("OAuthScopes"))
}
if s.RedirectSignInURIs == nil {
invalidParams.Add(request.NewErrParamRequired("RedirectSignInURIs"))
}
if s.RedirectSignOutURIs == nil {
invalidParams.Add(request.NewErrParamRequired("RedirectSignOutURIs"))
}
if invalidParams.Len() > 0 {
return invalidParams
}
return nil
}
// SetDomainPrefix sets the DomainPrefix field's value.
func (s *CreateBackendAuthOAuthConfig) SetDomainPrefix(v string) *CreateBackendAuthOAuthConfig {
s.DomainPrefix = &v
return s
}
// SetOAuthGrantType sets the OAuthGrantType field's value.
func (s *CreateBackendAuthOAuthConfig) SetOAuthGrantType(v string) *CreateBackendAuthOAuthConfig {
s.OAuthGrantType = &v
return s
}
// SetOAuthScopes sets the OAuthScopes field's value.
func (s *CreateBackendAuthOAuthConfig) SetOAuthScopes(v []*string) *CreateBackendAuthOAuthConfig {
s.OAuthScopes = v
return s
}
// SetRedirectSignInURIs sets the RedirectSignInURIs field's value.
func (s *CreateBackendAuthOAuthConfig) SetRedirectSignInURIs(v []*string) *CreateBackendAuthOAuthConfig {
s.RedirectSignInURIs = v
return s
}
// SetRedirectSignOutURIs sets the RedirectSignOutURIs field's value.
func (s *CreateBackendAuthOAuthConfig) SetRedirectSignOutURIs(v []*string) *CreateBackendAuthOAuthConfig {
s.RedirectSignOutURIs = v
return s
}
// SetSocialProviderSettings sets the SocialProviderSettings field's value.
func (s *CreateBackendAuthOAuthConfig) SetSocialProviderSettings(v *SocialProviderSettings) *CreateBackendAuthOAuthConfig {
s.SocialProviderSettings = v
return s
}
type CreateBackendAuthOutput struct {
_ struct{} `type:"structure"`
AppId *string `locationName:"appId" type:"string"`
BackendEnvironmentName *string `locationName:"backendEnvironmentName" type:"string"`
Error *string `locationName:"error" type:"string"`
JobId *string `locationName:"jobId" type:"string"`
Operation *string `locationName:"operation" type:"string"`
Status *string `locationName:"status" type:"string"`
}
// String returns the string representation
func (s CreateBackendAuthOutput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s CreateBackendAuthOutput) GoString() string {
return s.String()
}
// SetAppId sets the AppId field's value.
func (s *CreateBackendAuthOutput) SetAppId(v string) *CreateBackendAuthOutput {
s.AppId = &v
return s
}
// SetBackendEnvironmentName sets the BackendEnvironmentName field's value.
func (s *CreateBackendAuthOutput) SetBackendEnvironmentName(v string) *CreateBackendAuthOutput {
s.BackendEnvironmentName = &v
return s
}
// SetError sets the Error field's value.
func (s *CreateBackendAuthOutput) SetError(v string) *CreateBackendAuthOutput {
s.Error = &v
return s
}
// SetJobId sets the JobId field's value.
func (s *CreateBackendAuthOutput) SetJobId(v string) *CreateBackendAuthOutput {
s.JobId = &v
return s
}
// SetOperation sets the Operation field's value.
func (s *CreateBackendAuthOutput) SetOperation(v string) *CreateBackendAuthOutput {
s.Operation = &v
return s
}
// SetStatus sets the Status field's value.
func (s *CreateBackendAuthOutput) SetStatus(v string) *CreateBackendAuthOutput {
s.Status = &v
return s
}
// The password policy configuration for the backend to your Amplify project.
type CreateBackendAuthPasswordPolicyConfig struct {
_ struct{} `type:"structure"`
// Additional constraints for the password used to access the backend of your
// Amplify project.
AdditionalConstraints []*string `locationName:"additionalConstraints" type:"list"`
// The minimum length of the password used to access the backend of your Amplify
// project.
//
// MinimumLength is a required field
MinimumLength *float64 `locationName:"minimumLength" type:"double" required:"true"`
}
// String returns the string representation
func (s CreateBackendAuthPasswordPolicyConfig) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s CreateBackendAuthPasswordPolicyConfig) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
func (s *CreateBackendAuthPasswordPolicyConfig) Validate() error {
invalidParams := request.ErrInvalidParams{Context: "CreateBackendAuthPasswordPolicyConfig"}
if s.MinimumLength == nil {
invalidParams.Add(request.NewErrParamRequired("MinimumLength"))
}
if invalidParams.Len() > 0 {
return invalidParams
}
return nil
}
// SetAdditionalConstraints sets the AdditionalConstraints field's value.
func (s *CreateBackendAuthPasswordPolicyConfig) SetAdditionalConstraints(v []*string) *CreateBackendAuthPasswordPolicyConfig {
s.AdditionalConstraints = v
return s
}
// SetMinimumLength sets the MinimumLength field's value.
func (s *CreateBackendAuthPasswordPolicyConfig) SetMinimumLength(v float64) *CreateBackendAuthPasswordPolicyConfig {
s.MinimumLength = &v
return s
}
// Defines the resource configuration when creating an auth resource in your
// Amplify project.
type CreateBackendAuthResourceConfig struct {
_ struct{} `type:"structure"`
// Defines whether you want to configure only authentication or both authentication
// and authorization settings.
//
// AuthResources is a required field
AuthResources *string `locationName:"authResources" type:"string" required:"true" enum:"AuthResources"`
// Describes the authorization configuration for the Amazon Cognito identity
// pool, provisioned as a part of your auth resource in the Amplify project.
IdentityPoolConfigs *CreateBackendAuthIdentityPoolConfig `locationName:"identityPoolConfigs" type:"structure"`
// Defines the service name to use when configuring an authentication resource
// in your Amplify project.
//
// Service is a required field
Service *string `locationName:"service" type:"string" required:"true" enum:"Service"`
// Describes authentication configuration for the Amazon Cognito user pool,
// provisioned as a part of your auth resource in the Amplify project.
//
// UserPoolConfigs is a required field
UserPoolConfigs *CreateBackendAuthUserPoolConfig `locationName:"userPoolConfigs" type:"structure" required:"true"`
}
// String returns the string representation
func (s CreateBackendAuthResourceConfig) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s CreateBackendAuthResourceConfig) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
func (s *CreateBackendAuthResourceConfig) Validate() error {
invalidParams := request.ErrInvalidParams{Context: "CreateBackendAuthResourceConfig"}
if s.AuthResources == nil {
invalidParams.Add(request.NewErrParamRequired("AuthResources"))
}
if s.Service == nil {
invalidParams.Add(request.NewErrParamRequired("Service"))
}
if s.UserPoolConfigs == nil {
invalidParams.Add(request.NewErrParamRequired("UserPoolConfigs"))
}
if s.IdentityPoolConfigs != nil {
if err := s.IdentityPoolConfigs.Validate(); err != nil {
invalidParams.AddNested("IdentityPoolConfigs", err.(request.ErrInvalidParams))
}
}
if s.UserPoolConfigs != nil {
if err := s.UserPoolConfigs.Validate(); err != nil {
invalidParams.AddNested("UserPoolConfigs", err.(request.ErrInvalidParams))
}
}
if invalidParams.Len() > 0 {
return invalidParams
}
return nil
}
// SetAuthResources sets the AuthResources field's value.
func (s *CreateBackendAuthResourceConfig) SetAuthResources(v string) *CreateBackendAuthResourceConfig {
s.AuthResources = &v
return s
}
// SetIdentityPoolConfigs sets the IdentityPoolConfigs field's value.
func (s *CreateBackendAuthResourceConfig) SetIdentityPoolConfigs(v *CreateBackendAuthIdentityPoolConfig) *CreateBackendAuthResourceConfig {
s.IdentityPoolConfigs = v
return s
}
// SetService sets the Service field's value.
func (s *CreateBackendAuthResourceConfig) SetService(v string) *CreateBackendAuthResourceConfig {
s.Service = &v
return s
}
// SetUserPoolConfigs sets the UserPoolConfigs field's value.
func (s *CreateBackendAuthResourceConfig) SetUserPoolConfigs(v *CreateBackendAuthUserPoolConfig) *CreateBackendAuthResourceConfig {
s.UserPoolConfigs = v
return s
}
// Describes the Amazon Cognito user pool configuration for the auth resource
// to be configured for your Amplify project.
type CreateBackendAuthUserPoolConfig struct {
_ struct{} `type:"structure"`
// Describes the forgotten password policy for your Amazon Cognito user pool,
// configured as a part of your Amplify project.
ForgotPassword *CreateBackendAuthForgotPasswordConfig `locationName:"forgotPassword" type:"structure"`
// Describes whether to apply multi-factor authentication policies for your
// Amazon Cognito user pool configured as a part of your Amplify project.
Mfa *CreateBackendAuthMFAConfig `locationName:"mfa" type:"structure"`
// Describes the OAuth policy and rules for your Amazon Cognito user pool, configured
// as a part of your Amplify project.
OAuth *CreateBackendAuthOAuthConfig `locationName:"oAuth" type:"structure"`
// Describes the password policy for your Amazon Cognito user pool, configured
// as a part of your Amplify project.
PasswordPolicy *CreateBackendAuthPasswordPolicyConfig `locationName:"passwordPolicy" type:"structure"`
// The required attributes to sign up new users in the user pool.
//
// RequiredSignUpAttributes is a required field
RequiredSignUpAttributes []*string `locationName:"requiredSignUpAttributes" type:"list" required:"true"`
// Describes the sign-in methods that your Amplify app users use to log in using
// the Amazon Cognito user pool, configured as a part of your Amplify project.
//
// SignInMethod is a required field
SignInMethod *string `locationName:"signInMethod" type:"string" required:"true" enum:"SignInMethod"`
// The Amazon Cognito user pool name.
//
// UserPoolName is a required field
UserPoolName *string `locationName:"userPoolName" type:"string" required:"true"`
}
// String returns the string representation
func (s CreateBackendAuthUserPoolConfig) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s CreateBackendAuthUserPoolConfig) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
func (s *CreateBackendAuthUserPoolConfig) Validate() error {
invalidParams := request.ErrInvalidParams{Context: "CreateBackendAuthUserPoolConfig"}
if s.RequiredSignUpAttributes == nil {
invalidParams.Add(request.NewErrParamRequired("RequiredSignUpAttributes"))
}
if s.SignInMethod == nil {
invalidParams.Add(request.NewErrParamRequired("SignInMethod"))
}
if s.UserPoolName == nil {
invalidParams.Add(request.NewErrParamRequired("UserPoolName"))
}
if s.ForgotPassword != nil {
if err := s.ForgotPassword.Validate(); err != nil {
invalidParams.AddNested("ForgotPassword", err.(request.ErrInvalidParams))
}
}
if s.Mfa != nil {
if err := s.Mfa.Validate(); err != nil {
invalidParams.AddNested("Mfa", err.(request.ErrInvalidParams))
}
}
if s.OAuth != nil {
if err := s.OAuth.Validate(); err != nil {
invalidParams.AddNested("OAuth", err.(request.ErrInvalidParams))
}
}
if s.PasswordPolicy != nil {
if err := s.PasswordPolicy.Validate(); err != nil {
invalidParams.AddNested("PasswordPolicy", err.(request.ErrInvalidParams))
}
}
if invalidParams.Len() > 0 {
return invalidParams
}
return nil
}
// SetForgotPassword sets the ForgotPassword field's value.
func (s *CreateBackendAuthUserPoolConfig) SetForgotPassword(v *CreateBackendAuthForgotPasswordConfig) *CreateBackendAuthUserPoolConfig {
s.ForgotPassword = v
return s
}
// SetMfa sets the Mfa field's value.
func (s *CreateBackendAuthUserPoolConfig) SetMfa(v *CreateBackendAuthMFAConfig) *CreateBackendAuthUserPoolConfig {
s.Mfa = v
return s
}
// SetOAuth sets the OAuth field's value.
func (s *CreateBackendAuthUserPoolConfig) SetOAuth(v *CreateBackendAuthOAuthConfig) *CreateBackendAuthUserPoolConfig {
s.OAuth = v
return s
}
// SetPasswordPolicy sets the PasswordPolicy field's value.
func (s *CreateBackendAuthUserPoolConfig) SetPasswordPolicy(v *CreateBackendAuthPasswordPolicyConfig) *CreateBackendAuthUserPoolConfig {
s.PasswordPolicy = v
return s
}
// SetRequiredSignUpAttributes sets the RequiredSignUpAttributes field's value.
func (s *CreateBackendAuthUserPoolConfig) SetRequiredSignUpAttributes(v []*string) *CreateBackendAuthUserPoolConfig {
s.RequiredSignUpAttributes = v
return s
}
// SetSignInMethod sets the SignInMethod field's value.
func (s *CreateBackendAuthUserPoolConfig) SetSignInMethod(v string) *CreateBackendAuthUserPoolConfig {
s.SignInMethod = &v
return s
}
// SetUserPoolName sets the UserPoolName field's value.
func (s *CreateBackendAuthUserPoolConfig) SetUserPoolName(v string) *CreateBackendAuthUserPoolConfig {
s.UserPoolName = &v
return s
}
type CreateBackendConfigInput struct {
_ struct{} `type:"structure"`
// AppId is a required field
AppId *string `location:"uri" locationName:"appId" type:"string" required:"true"`
BackendManagerAppId *string `locationName:"backendManagerAppId" type:"string"`
}
// String returns the string representation
func (s CreateBackendConfigInput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s CreateBackendConfigInput) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
func (s *CreateBackendConfigInput) Validate() error {
invalidParams := request.ErrInvalidParams{Context: "CreateBackendConfigInput"}
if s.AppId == nil {
invalidParams.Add(request.NewErrParamRequired("AppId"))
}
if s.AppId != nil && len(*s.AppId) < 1 {
invalidParams.Add(request.NewErrParamMinLen("AppId", 1))
}
if invalidParams.Len() > 0 {
return invalidParams
}
return nil
}
// SetAppId sets the AppId field's value.
func (s *CreateBackendConfigInput) SetAppId(v string) *CreateBackendConfigInput {
s.AppId = &v
return s
}
// SetBackendManagerAppId sets the BackendManagerAppId field's value.
func (s *CreateBackendConfigInput) SetBackendManagerAppId(v string) *CreateBackendConfigInput {
s.BackendManagerAppId = &v
return s
}
type CreateBackendConfigOutput struct {
_ struct{} `type:"structure"`
AppId *string `locationName:"appId" type:"string"`
BackendEnvironmentName *string `locationName:"backendEnvironmentName" type:"string"`
JobId *string `locationName:"jobId" type:"string"`
Status *string `locationName:"status" type:"string"`
}
// String returns the string representation
func (s CreateBackendConfigOutput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s CreateBackendConfigOutput) GoString() string {
return s.String()
}
// SetAppId sets the AppId field's value.
func (s *CreateBackendConfigOutput) SetAppId(v string) *CreateBackendConfigOutput {
s.AppId = &v
return s
}
// SetBackendEnvironmentName sets the BackendEnvironmentName field's value.
func (s *CreateBackendConfigOutput) SetBackendEnvironmentName(v string) *CreateBackendConfigOutput {
s.BackendEnvironmentName = &v
return s
}
// SetJobId sets the JobId field's value.
func (s *CreateBackendConfigOutput) SetJobId(v string) *CreateBackendConfigOutput {
s.JobId = &v
return s
}
// SetStatus sets the Status field's value.
func (s *CreateBackendConfigOutput) SetStatus(v string) *CreateBackendConfigOutput {
s.Status = &v
return s
}
type CreateBackendInput struct {
_ struct{} `type:"structure"`
// AppId is a required field
AppId *string `locationName:"appId" type:"string" required:"true"`
// AppName is a required field
AppName *string `locationName:"appName" type:"string" required:"true"`
// BackendEnvironmentName is a required field
BackendEnvironmentName *string `locationName:"backendEnvironmentName" type:"string" required:"true"`
ResourceConfig *ResourceConfig `locationName:"resourceConfig" type:"structure"`
ResourceName *string `locationName:"resourceName" type:"string"`
}
// String returns the string representation
func (s CreateBackendInput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s CreateBackendInput) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
func (s *CreateBackendInput) Validate() error {
invalidParams := request.ErrInvalidParams{Context: "CreateBackendInput"}
if s.AppId == nil {
invalidParams.Add(request.NewErrParamRequired("AppId"))
}
if s.AppName == nil {
invalidParams.Add(request.NewErrParamRequired("AppName"))
}
if s.BackendEnvironmentName == nil {
invalidParams.Add(request.NewErrParamRequired("BackendEnvironmentName"))
}
if invalidParams.Len() > 0 {
return invalidParams
}
return nil
}
// SetAppId sets the AppId field's value.
func (s *CreateBackendInput) SetAppId(v string) *CreateBackendInput {
s.AppId = &v
return s
}
// SetAppName sets the AppName field's value.
func (s *CreateBackendInput) SetAppName(v string) *CreateBackendInput {
s.AppName = &v
return s
}
// SetBackendEnvironmentName sets the BackendEnvironmentName field's value.
func (s *CreateBackendInput) SetBackendEnvironmentName(v string) *CreateBackendInput {
s.BackendEnvironmentName = &v
return s
}
// SetResourceConfig sets the ResourceConfig field's value.
func (s *CreateBackendInput) SetResourceConfig(v *ResourceConfig) *CreateBackendInput {
s.ResourceConfig = v
return s
}
// SetResourceName sets the ResourceName field's value.
func (s *CreateBackendInput) SetResourceName(v string) *CreateBackendInput {
s.ResourceName = &v
return s
}
type CreateBackendOutput struct {
_ struct{} `type:"structure"`
AppId *string `locationName:"appId" type:"string"`
BackendEnvironmentName *string `locationName:"backendEnvironmentName" type:"string"`
Error *string `locationName:"error" type:"string"`
JobId *string `locationName:"jobId" type:"string"`
Operation *string `locationName:"operation" type:"string"`
Status *string `locationName:"status" type:"string"`
}
// String returns the string representation
func (s CreateBackendOutput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s CreateBackendOutput) GoString() string {
return s.String()
}
// SetAppId sets the AppId field's value.
func (s *CreateBackendOutput) SetAppId(v string) *CreateBackendOutput {
s.AppId = &v
return s
}
// SetBackendEnvironmentName sets the BackendEnvironmentName field's value.
func (s *CreateBackendOutput) SetBackendEnvironmentName(v string) *CreateBackendOutput {
s.BackendEnvironmentName = &v
return s
}
// SetError sets the Error field's value.
func (s *CreateBackendOutput) SetError(v string) *CreateBackendOutput {
s.Error = &v
return s
}
// SetJobId sets the JobId field's value.
func (s *CreateBackendOutput) SetJobId(v string) *CreateBackendOutput {
s.JobId = &v
return s
}
// SetOperation sets the Operation field's value.
func (s *CreateBackendOutput) SetOperation(v string) *CreateBackendOutput {
s.Operation = &v
return s
}
// SetStatus sets the Status field's value.
func (s *CreateBackendOutput) SetStatus(v string) *CreateBackendOutput {
s.Status = &v
return s
}
type CreateTokenInput struct {
_ struct{} `type:"structure"`
// AppId is a required field
AppId *string `location:"uri" locationName:"appId" type:"string" required:"true"`
}
// String returns the string representation
func (s CreateTokenInput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s CreateTokenInput) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
func (s *CreateTokenInput) Validate() error {
invalidParams := request.ErrInvalidParams{Context: "CreateTokenInput"}
if s.AppId == nil {
invalidParams.Add(request.NewErrParamRequired("AppId"))
}
if s.AppId != nil && len(*s.AppId) < 1 {
invalidParams.Add(request.NewErrParamMinLen("AppId", 1))
}
if invalidParams.Len() > 0 {
return invalidParams
}
return nil
}
// SetAppId sets the AppId field's value.
func (s *CreateTokenInput) SetAppId(v string) *CreateTokenInput {
s.AppId = &v
return s
}
type CreateTokenOutput struct {
_ struct{} `type:"structure"`
AppId *string `locationName:"appId" type:"string"`
ChallengeCode *string `locationName:"challengeCode" type:"string"`
SessionId *string `locationName:"sessionId" type:"string"`
Ttl *string `locationName:"ttl" type:"string"`
}
// String returns the string representation
func (s CreateTokenOutput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s CreateTokenOutput) GoString() string {
return s.String()
}
// SetAppId sets the AppId field's value.
func (s *CreateTokenOutput) SetAppId(v string) *CreateTokenOutput {
s.AppId = &v
return s
}
// SetChallengeCode sets the ChallengeCode field's value.
func (s *CreateTokenOutput) SetChallengeCode(v string) *CreateTokenOutput {
s.ChallengeCode = &v
return s
}
// SetSessionId sets the SessionId field's value.
func (s *CreateTokenOutput) SetSessionId(v string) *CreateTokenOutput {
s.SessionId = &v
return s
}
// SetTtl sets the Ttl field's value.
func (s *CreateTokenOutput) SetTtl(v string) *CreateTokenOutput {
s.Ttl = &v
return s
}
type DeleteBackendAPIInput struct {
_ struct{} `type:"structure"`
// AppId is a required field
AppId *string `location:"uri" locationName:"appId" type:"string" required:"true"`
// BackendEnvironmentName is a required field
BackendEnvironmentName *string `location:"uri" locationName:"backendEnvironmentName" type:"string" required:"true"`
// The resource config for the data model, configured as a part of the Amplify
// project.
ResourceConfig *BackendAPIResourceConfig `locationName:"resourceConfig" type:"structure"`
// ResourceName is a required field
ResourceName *string `locationName:"resourceName" type:"string" required:"true"`
}
// String returns the string representation
func (s DeleteBackendAPIInput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s DeleteBackendAPIInput) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
func (s *DeleteBackendAPIInput) Validate() error {
invalidParams := request.ErrInvalidParams{Context: "DeleteBackendAPIInput"}
if s.AppId == nil {
invalidParams.Add(request.NewErrParamRequired("AppId"))
}
if s.AppId != nil && len(*s.AppId) < 1 {
invalidParams.Add(request.NewErrParamMinLen("AppId", 1))
}
if s.BackendEnvironmentName == nil {
invalidParams.Add(request.NewErrParamRequired("BackendEnvironmentName"))
}
if s.BackendEnvironmentName != nil && len(*s.BackendEnvironmentName) < 1 {
invalidParams.Add(request.NewErrParamMinLen("BackendEnvironmentName", 1))
}
if s.ResourceName == nil {
invalidParams.Add(request.NewErrParamRequired("ResourceName"))
}
if invalidParams.Len() > 0 {
return invalidParams
}
return nil
}
// SetAppId sets the AppId field's value.
func (s *DeleteBackendAPIInput) SetAppId(v string) *DeleteBackendAPIInput {
s.AppId = &v
return s
}
// SetBackendEnvironmentName sets the BackendEnvironmentName field's value.
func (s *DeleteBackendAPIInput) SetBackendEnvironmentName(v string) *DeleteBackendAPIInput {
s.BackendEnvironmentName = &v
return s
}
// SetResourceConfig sets the ResourceConfig field's value.
func (s *DeleteBackendAPIInput) SetResourceConfig(v *BackendAPIResourceConfig) *DeleteBackendAPIInput {
s.ResourceConfig = v
return s
}
// SetResourceName sets the ResourceName field's value.
func (s *DeleteBackendAPIInput) SetResourceName(v string) *DeleteBackendAPIInput {
s.ResourceName = &v
return s
}
type DeleteBackendAPIOutput struct {
_ struct{} `type:"structure"`
AppId *string `locationName:"appId" type:"string"`
BackendEnvironmentName *string `locationName:"backendEnvironmentName" type:"string"`
Error *string `locationName:"error" type:"string"`
JobId *string `locationName:"jobId" type:"string"`
Operation *string `locationName:"operation" type:"string"`
Status *string `locationName:"status" type:"string"`
}
// String returns the string representation
func (s DeleteBackendAPIOutput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s DeleteBackendAPIOutput) GoString() string {
return s.String()
}
// SetAppId sets the AppId field's value.
func (s *DeleteBackendAPIOutput) SetAppId(v string) *DeleteBackendAPIOutput {
s.AppId = &v
return s
}
// SetBackendEnvironmentName sets the BackendEnvironmentName field's value.
func (s *DeleteBackendAPIOutput) SetBackendEnvironmentName(v string) *DeleteBackendAPIOutput {
s.BackendEnvironmentName = &v
return s
}
// SetError sets the Error field's value.
func (s *DeleteBackendAPIOutput) SetError(v string) *DeleteBackendAPIOutput {
s.Error = &v
return s
}
// SetJobId sets the JobId field's value.
func (s *DeleteBackendAPIOutput) SetJobId(v string) *DeleteBackendAPIOutput {
s.JobId = &v
return s
}
// SetOperation sets the Operation field's value.
func (s *DeleteBackendAPIOutput) SetOperation(v string) *DeleteBackendAPIOutput {
s.Operation = &v
return s
}
// SetStatus sets the Status field's value.
func (s *DeleteBackendAPIOutput) SetStatus(v string) *DeleteBackendAPIOutput {
s.Status = &v
return s
}
type DeleteBackendAuthInput struct {
_ struct{} `type:"structure"`
// AppId is a required field
AppId *string `location:"uri" locationName:"appId" type:"string" required:"true"`
// BackendEnvironmentName is a required field
BackendEnvironmentName *string `location:"uri" locationName:"backendEnvironmentName" type:"string" required:"true"`
// ResourceName is a required field
ResourceName *string `locationName:"resourceName" type:"string" required:"true"`
}
// String returns the string representation
func (s DeleteBackendAuthInput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s DeleteBackendAuthInput) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
func (s *DeleteBackendAuthInput) Validate() error {
invalidParams := request.ErrInvalidParams{Context: "DeleteBackendAuthInput"}
if s.AppId == nil {
invalidParams.Add(request.NewErrParamRequired("AppId"))
}
if s.AppId != nil && len(*s.AppId) < 1 {
invalidParams.Add(request.NewErrParamMinLen("AppId", 1))
}
if s.BackendEnvironmentName == nil {
invalidParams.Add(request.NewErrParamRequired("BackendEnvironmentName"))
}
if s.BackendEnvironmentName != nil && len(*s.BackendEnvironmentName) < 1 {
invalidParams.Add(request.NewErrParamMinLen("BackendEnvironmentName", 1))
}
if s.ResourceName == nil {
invalidParams.Add(request.NewErrParamRequired("ResourceName"))
}
if invalidParams.Len() > 0 {
return invalidParams
}
return nil
}
// SetAppId sets the AppId field's value.
func (s *DeleteBackendAuthInput) SetAppId(v string) *DeleteBackendAuthInput {
s.AppId = &v
return s
}
// SetBackendEnvironmentName sets the BackendEnvironmentName field's value.
func (s *DeleteBackendAuthInput) SetBackendEnvironmentName(v string) *DeleteBackendAuthInput {
s.BackendEnvironmentName = &v
return s
}
// SetResourceName sets the ResourceName field's value.
func (s *DeleteBackendAuthInput) SetResourceName(v string) *DeleteBackendAuthInput {
s.ResourceName = &v
return s
}
type DeleteBackendAuthOutput struct {
_ struct{} `type:"structure"`
AppId *string `locationName:"appId" type:"string"`
BackendEnvironmentName *string `locationName:"backendEnvironmentName" type:"string"`
Error *string `locationName:"error" type:"string"`
JobId *string `locationName:"jobId" type:"string"`
Operation *string `locationName:"operation" type:"string"`
Status *string `locationName:"status" type:"string"`
}
// String returns the string representation
func (s DeleteBackendAuthOutput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s DeleteBackendAuthOutput) GoString() string {
return s.String()
}
// SetAppId sets the AppId field's value.
func (s *DeleteBackendAuthOutput) SetAppId(v string) *DeleteBackendAuthOutput {
s.AppId = &v
return s
}
// SetBackendEnvironmentName sets the BackendEnvironmentName field's value.
func (s *DeleteBackendAuthOutput) SetBackendEnvironmentName(v string) *DeleteBackendAuthOutput {
s.BackendEnvironmentName = &v
return s
}
// SetError sets the Error field's value.
func (s *DeleteBackendAuthOutput) SetError(v string) *DeleteBackendAuthOutput {
s.Error = &v
return s
}
// SetJobId sets the JobId field's value.
func (s *DeleteBackendAuthOutput) SetJobId(v string) *DeleteBackendAuthOutput {
s.JobId = &v
return s
}
// SetOperation sets the Operation field's value.
func (s *DeleteBackendAuthOutput) SetOperation(v string) *DeleteBackendAuthOutput {
s.Operation = &v
return s
}
// SetStatus sets the Status field's value.
func (s *DeleteBackendAuthOutput) SetStatus(v string) *DeleteBackendAuthOutput {
s.Status = &v
return s
}
type DeleteBackendInput struct {
_ struct{} `type:"structure"`
// AppId is a required field
AppId *string `location:"uri" locationName:"appId" type:"string" required:"true"`
// BackendEnvironmentName is a required field
BackendEnvironmentName *string `location:"uri" locationName:"backendEnvironmentName" type:"string" required:"true"`
}
// String returns the string representation
func (s DeleteBackendInput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s DeleteBackendInput) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
func (s *DeleteBackendInput) Validate() error {
invalidParams := request.ErrInvalidParams{Context: "DeleteBackendInput"}
if s.AppId == nil {
invalidParams.Add(request.NewErrParamRequired("AppId"))
}
if s.AppId != nil && len(*s.AppId) < 1 {
invalidParams.Add(request.NewErrParamMinLen("AppId", 1))
}
if s.BackendEnvironmentName == nil {
invalidParams.Add(request.NewErrParamRequired("BackendEnvironmentName"))
}
if s.BackendEnvironmentName != nil && len(*s.BackendEnvironmentName) < 1 {
invalidParams.Add(request.NewErrParamMinLen("BackendEnvironmentName", 1))
}
if invalidParams.Len() > 0 {
return invalidParams
}
return nil
}
// SetAppId sets the AppId field's value.
func (s *DeleteBackendInput) SetAppId(v string) *DeleteBackendInput {
s.AppId = &v
return s
}
// SetBackendEnvironmentName sets the BackendEnvironmentName field's value.
func (s *DeleteBackendInput) SetBackendEnvironmentName(v string) *DeleteBackendInput {
s.BackendEnvironmentName = &v
return s
}
type DeleteBackendOutput struct {
_ struct{} `type:"structure"`
AppId *string `locationName:"appId" type:"string"`
BackendEnvironmentName *string `locationName:"backendEnvironmentName" type:"string"`
Error *string `locationName:"error" type:"string"`
JobId *string `locationName:"jobId" type:"string"`
Operation *string `locationName:"operation" type:"string"`
Status *string `locationName:"status" type:"string"`
}
// String returns the string representation
func (s DeleteBackendOutput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s DeleteBackendOutput) GoString() string {
return s.String()
}
// SetAppId sets the AppId field's value.
func (s *DeleteBackendOutput) SetAppId(v string) *DeleteBackendOutput {
s.AppId = &v
return s
}
// SetBackendEnvironmentName sets the BackendEnvironmentName field's value.
func (s *DeleteBackendOutput) SetBackendEnvironmentName(v string) *DeleteBackendOutput {
s.BackendEnvironmentName = &v
return s
}
// SetError sets the Error field's value.
func (s *DeleteBackendOutput) SetError(v string) *DeleteBackendOutput {
s.Error = &v
return s
}
// SetJobId sets the JobId field's value.
func (s *DeleteBackendOutput) SetJobId(v string) *DeleteBackendOutput {
s.JobId = &v
return s
}
// SetOperation sets the Operation field's value.
func (s *DeleteBackendOutput) SetOperation(v string) *DeleteBackendOutput {
s.Operation = &v
return s
}
// SetStatus sets the Status field's value.
func (s *DeleteBackendOutput) SetStatus(v string) *DeleteBackendOutput {
s.Status = &v
return s
}
type DeleteTokenInput struct {
_ struct{} `type:"structure"`
// AppId is a required field
AppId *string `location:"uri" locationName:"appId" type:"string" required:"true"`
// SessionId is a required field
SessionId *string `location:"uri" locationName:"sessionId" type:"string" required:"true"`
}
// String returns the string representation
func (s DeleteTokenInput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s DeleteTokenInput) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
func (s *DeleteTokenInput) Validate() error {
invalidParams := request.ErrInvalidParams{Context: "DeleteTokenInput"}
if s.AppId == nil {
invalidParams.Add(request.NewErrParamRequired("AppId"))
}
if s.AppId != nil && len(*s.AppId) < 1 {
invalidParams.Add(request.NewErrParamMinLen("AppId", 1))
}
if s.SessionId == nil {
invalidParams.Add(request.NewErrParamRequired("SessionId"))
}
if s.SessionId != nil && len(*s.SessionId) < 1 {
invalidParams.Add(request.NewErrParamMinLen("SessionId", 1))
}
if invalidParams.Len() > 0 {
return invalidParams
}
return nil
}
// SetAppId sets the AppId field's value.
func (s *DeleteTokenInput) SetAppId(v string) *DeleteTokenInput {
s.AppId = &v
return s
}
// SetSessionId sets the SessionId field's value.
func (s *DeleteTokenInput) SetSessionId(v string) *DeleteTokenInput {
s.SessionId = &v
return s
}
type DeleteTokenOutput struct {
_ struct{} `type:"structure"`
IsSuccess *bool `locationName:"isSuccess" type:"boolean"`
}
// String returns the string representation
func (s DeleteTokenOutput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s DeleteTokenOutput) GoString() string {
return s.String()
}
// SetIsSuccess sets the IsSuccess field's value.
func (s *DeleteTokenOutput) SetIsSuccess(v bool) *DeleteTokenOutput {
s.IsSuccess = &v
return s
}
type EmailSettings struct {
_ struct{} `type:"structure"`
// The body of the email.
EmailMessage *string `locationName:"emailMessage" type:"string"`
// The subject of the email.
EmailSubject *string `locationName:"emailSubject" type:"string"`
}
// String returns the string representation
func (s EmailSettings) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s EmailSettings) GoString() string {
return s.String()
}
// SetEmailMessage sets the EmailMessage field's value.
func (s *EmailSettings) SetEmailMessage(v string) *EmailSettings {
s.EmailMessage = &v
return s
}
// SetEmailSubject sets the EmailSubject field's value.
func (s *EmailSettings) SetEmailSubject(v string) *EmailSettings {
s.EmailSubject = &v
return s
}
// An error returned if there's a temporary issue with the service.
type GatewayTimeoutException struct {
_ struct{} `type:"structure"`
RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
// String returns the string representation
func (s GatewayTimeoutException) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s GatewayTimeoutException) GoString() string {
return s.String()
}
func newErrorGatewayTimeoutException(v protocol.ResponseMetadata) error {
return &GatewayTimeoutException{
RespMetadata: v,
}
}
// Code returns the exception type name.
func (s *GatewayTimeoutException) Code() string {
return "GatewayTimeoutException"
}
// Message returns the exception's message.
func (s *GatewayTimeoutException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
return ""
}
// OrigErr always returns nil, satisfies awserr.Error interface.
func (s *GatewayTimeoutException) OrigErr() error {
return nil
}
func (s *GatewayTimeoutException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
func (s *GatewayTimeoutException) StatusCode() int {
return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
func (s *GatewayTimeoutException) RequestID() string {
return s.RespMetadata.RequestID
}
type GenerateBackendAPIModelsInput struct {
_ struct{} `type:"structure"`
// AppId is a required field
AppId *string `location:"uri" locationName:"appId" type:"string" required:"true"`
// BackendEnvironmentName is a required field
BackendEnvironmentName *string `location:"uri" locationName:"backendEnvironmentName" type:"string" required:"true"`
// ResourceName is a required field
ResourceName *string `locationName:"resourceName" type:"string" required:"true"`
}
// String returns the string representation
func (s GenerateBackendAPIModelsInput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s GenerateBackendAPIModelsInput) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
func (s *GenerateBackendAPIModelsInput) Validate() error {
invalidParams := request.ErrInvalidParams{Context: "GenerateBackendAPIModelsInput"}
if s.AppId == nil {
invalidParams.Add(request.NewErrParamRequired("AppId"))
}
if s.AppId != nil && len(*s.AppId) < 1 {
invalidParams.Add(request.NewErrParamMinLen("AppId", 1))
}
if s.BackendEnvironmentName == nil {
invalidParams.Add(request.NewErrParamRequired("BackendEnvironmentName"))
}
if s.BackendEnvironmentName != nil && len(*s.BackendEnvironmentName) < 1 {
invalidParams.Add(request.NewErrParamMinLen("BackendEnvironmentName", 1))
}
if s.ResourceName == nil {
invalidParams.Add(request.NewErrParamRequired("ResourceName"))
}
if invalidParams.Len() > 0 {
return invalidParams
}
return nil
}
// SetAppId sets the AppId field's value.
func (s *GenerateBackendAPIModelsInput) SetAppId(v string) *GenerateBackendAPIModelsInput {
s.AppId = &v
return s
}
// SetBackendEnvironmentName sets the BackendEnvironmentName field's value.
func (s *GenerateBackendAPIModelsInput) SetBackendEnvironmentName(v string) *GenerateBackendAPIModelsInput {
s.BackendEnvironmentName = &v
return s
}
// SetResourceName sets the ResourceName field's value.
func (s *GenerateBackendAPIModelsInput) SetResourceName(v string) *GenerateBackendAPIModelsInput {
s.ResourceName = &v
return s
}
type GenerateBackendAPIModelsOutput struct {
_ struct{} `type:"structure"`
AppId *string `locationName:"appId" type:"string"`
BackendEnvironmentName *string `locationName:"backendEnvironmentName" type:"string"`
Error *string `locationName:"error" type:"string"`
JobId *string `locationName:"jobId" type:"string"`
Operation *string `locationName:"operation" type:"string"`
Status *string `locationName:"status" type:"string"`
}
// String returns the string representation
func (s GenerateBackendAPIModelsOutput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s GenerateBackendAPIModelsOutput) GoString() string {
return s.String()
}
// SetAppId sets the AppId field's value.
func (s *GenerateBackendAPIModelsOutput) SetAppId(v string) *GenerateBackendAPIModelsOutput {
s.AppId = &v
return s
}
// SetBackendEnvironmentName sets the BackendEnvironmentName field's value.
func (s *GenerateBackendAPIModelsOutput) SetBackendEnvironmentName(v string) *GenerateBackendAPIModelsOutput {
s.BackendEnvironmentName = &v
return s
}
// SetError sets the Error field's value.
func (s *GenerateBackendAPIModelsOutput) SetError(v string) *GenerateBackendAPIModelsOutput {
s.Error = &v
return s
}
// SetJobId sets the JobId field's value.
func (s *GenerateBackendAPIModelsOutput) SetJobId(v string) *GenerateBackendAPIModelsOutput {
s.JobId = &v
return s
}
// SetOperation sets the Operation field's value.
func (s *GenerateBackendAPIModelsOutput) SetOperation(v string) *GenerateBackendAPIModelsOutput {
s.Operation = &v
return s
}
// SetStatus sets the Status field's value.
func (s *GenerateBackendAPIModelsOutput) SetStatus(v string) *GenerateBackendAPIModelsOutput {
s.Status = &v
return s
}
type GetBackendAPIInput struct {
_ struct{} `type:"structure"`
// AppId is a required field
AppId *string `location:"uri" locationName:"appId" type:"string" required:"true"`
// BackendEnvironmentName is a required field
BackendEnvironmentName *string `location:"uri" locationName:"backendEnvironmentName" type:"string" required:"true"`
// The resource config for the data model, configured as a part of the Amplify
// project.
ResourceConfig *BackendAPIResourceConfig `locationName:"resourceConfig" type:"structure"`
// ResourceName is a required field
ResourceName *string `locationName:"resourceName" type:"string" required:"true"`
}
// String returns the string representation
func (s GetBackendAPIInput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s GetBackendAPIInput) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
func (s *GetBackendAPIInput) Validate() error {
invalidParams := request.ErrInvalidParams{Context: "GetBackendAPIInput"}
if s.AppId == nil {
invalidParams.Add(request.NewErrParamRequired("AppId"))
}
if s.AppId != nil && len(*s.AppId) < 1 {
invalidParams.Add(request.NewErrParamMinLen("AppId", 1))
}
if s.BackendEnvironmentName == nil {
invalidParams.Add(request.NewErrParamRequired("BackendEnvironmentName"))
}
if s.BackendEnvironmentName != nil && len(*s.BackendEnvironmentName) < 1 {
invalidParams.Add(request.NewErrParamMinLen("BackendEnvironmentName", 1))
}
if s.ResourceName == nil {
invalidParams.Add(request.NewErrParamRequired("ResourceName"))
}
if invalidParams.Len() > 0 {
return invalidParams
}
return nil
}
// SetAppId sets the AppId field's value.
func (s *GetBackendAPIInput) SetAppId(v string) *GetBackendAPIInput {
s.AppId = &v
return s
}
// SetBackendEnvironmentName sets the BackendEnvironmentName field's value.
func (s *GetBackendAPIInput) SetBackendEnvironmentName(v string) *GetBackendAPIInput {
s.BackendEnvironmentName = &v
return s
}
// SetResourceConfig sets the ResourceConfig field's value.
func (s *GetBackendAPIInput) SetResourceConfig(v *BackendAPIResourceConfig) *GetBackendAPIInput {
s.ResourceConfig = v
return s
}
// SetResourceName sets the ResourceName field's value.
func (s *GetBackendAPIInput) SetResourceName(v string) *GetBackendAPIInput {
s.ResourceName = &v
return s
}
type GetBackendAPIModelsInput struct {
_ struct{} `type:"structure"`
// AppId is a required field
AppId *string `location:"uri" locationName:"appId" type:"string" required:"true"`
// BackendEnvironmentName is a required field
BackendEnvironmentName *string `location:"uri" locationName:"backendEnvironmentName" type:"string" required:"true"`
// ResourceName is a required field
ResourceName *string `locationName:"resourceName" type:"string" required:"true"`
}
// String returns the string representation
func (s GetBackendAPIModelsInput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s GetBackendAPIModelsInput) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
func (s *GetBackendAPIModelsInput) Validate() error {
invalidParams := request.ErrInvalidParams{Context: "GetBackendAPIModelsInput"}
if s.AppId == nil {
invalidParams.Add(request.NewErrParamRequired("AppId"))
}
if s.AppId != nil && len(*s.AppId) < 1 {
invalidParams.Add(request.NewErrParamMinLen("AppId", 1))
}
if s.BackendEnvironmentName == nil {
invalidParams.Add(request.NewErrParamRequired("BackendEnvironmentName"))
}
if s.BackendEnvironmentName != nil && len(*s.BackendEnvironmentName) < 1 {
invalidParams.Add(request.NewErrParamMinLen("BackendEnvironmentName", 1))
}
if s.ResourceName == nil {
invalidParams.Add(request.NewErrParamRequired("ResourceName"))
}
if invalidParams.Len() > 0 {
return invalidParams
}
return nil
}
// SetAppId sets the AppId field's value.
func (s *GetBackendAPIModelsInput) SetAppId(v string) *GetBackendAPIModelsInput {
s.AppId = &v
return s
}
// SetBackendEnvironmentName sets the BackendEnvironmentName field's value.
func (s *GetBackendAPIModelsInput) SetBackendEnvironmentName(v string) *GetBackendAPIModelsInput {
s.BackendEnvironmentName = &v
return s
}
// SetResourceName sets the ResourceName field's value.
func (s *GetBackendAPIModelsInput) SetResourceName(v string) *GetBackendAPIModelsInput {
s.ResourceName = &v
return s
}
type GetBackendAPIModelsOutput struct {
_ struct{} `type:"structure"`
Models *string `locationName:"models" type:"string"`
Status *string `locationName:"status" type:"string" enum:"Status"`
}
// String returns the string representation
func (s GetBackendAPIModelsOutput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s GetBackendAPIModelsOutput) GoString() string {
return s.String()
}
// SetModels sets the Models field's value.
func (s *GetBackendAPIModelsOutput) SetModels(v string) *GetBackendAPIModelsOutput {
s.Models = &v
return s
}
// SetStatus sets the Status field's value.
func (s *GetBackendAPIModelsOutput) SetStatus(v string) *GetBackendAPIModelsOutput {
s.Status = &v
return s
}
type GetBackendAPIOutput struct {
_ struct{} `type:"structure"`
AppId *string `locationName:"appId" type:"string"`
BackendEnvironmentName *string `locationName:"backendEnvironmentName" type:"string"`
Error *string `locationName:"error" type:"string"`
// The resource config for the data model, configured as a part of the Amplify
// project.
ResourceConfig *BackendAPIResourceConfig `locationName:"resourceConfig" type:"structure"`
ResourceName *string `locationName:"resourceName" type:"string"`
}
// String returns the string representation
func (s GetBackendAPIOutput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s GetBackendAPIOutput) GoString() string {
return s.String()
}
// SetAppId sets the AppId field's value.
func (s *GetBackendAPIOutput) SetAppId(v string) *GetBackendAPIOutput {
s.AppId = &v
return s
}
// SetBackendEnvironmentName sets the BackendEnvironmentName field's value.
func (s *GetBackendAPIOutput) SetBackendEnvironmentName(v string) *GetBackendAPIOutput {
s.BackendEnvironmentName = &v
return s
}
// SetError sets the Error field's value.
func (s *GetBackendAPIOutput) SetError(v string) *GetBackendAPIOutput {
s.Error = &v
return s
}
// SetResourceConfig sets the ResourceConfig field's value.
func (s *GetBackendAPIOutput) SetResourceConfig(v *BackendAPIResourceConfig) *GetBackendAPIOutput {
s.ResourceConfig = v
return s
}
// SetResourceName sets the ResourceName field's value.
func (s *GetBackendAPIOutput) SetResourceName(v string) *GetBackendAPIOutput {
s.ResourceName = &v
return s
}
type GetBackendAuthInput struct {
_ struct{} `type:"structure"`
// AppId is a required field
AppId *string `location:"uri" locationName:"appId" type:"string" required:"true"`
// BackendEnvironmentName is a required field
BackendEnvironmentName *string `location:"uri" locationName:"backendEnvironmentName" type:"string" required:"true"`
// ResourceName is a required field
ResourceName *string `locationName:"resourceName" type:"string" required:"true"`
}
// String returns the string representation
func (s GetBackendAuthInput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s GetBackendAuthInput) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
func (s *GetBackendAuthInput) Validate() error {
invalidParams := request.ErrInvalidParams{Context: "GetBackendAuthInput"}
if s.AppId == nil {
invalidParams.Add(request.NewErrParamRequired("AppId"))
}
if s.AppId != nil && len(*s.AppId) < 1 {
invalidParams.Add(request.NewErrParamMinLen("AppId", 1))
}
if s.BackendEnvironmentName == nil {
invalidParams.Add(request.NewErrParamRequired("BackendEnvironmentName"))
}
if s.BackendEnvironmentName != nil && len(*s.BackendEnvironmentName) < 1 {
invalidParams.Add(request.NewErrParamMinLen("BackendEnvironmentName", 1))
}
if s.ResourceName == nil {
invalidParams.Add(request.NewErrParamRequired("ResourceName"))
}
if invalidParams.Len() > 0 {
return invalidParams
}
return nil
}
// SetAppId sets the AppId field's value.
func (s *GetBackendAuthInput) SetAppId(v string) *GetBackendAuthInput {
s.AppId = &v
return s
}
// SetBackendEnvironmentName sets the BackendEnvironmentName field's value.
func (s *GetBackendAuthInput) SetBackendEnvironmentName(v string) *GetBackendAuthInput {
s.BackendEnvironmentName = &v
return s
}
// SetResourceName sets the ResourceName field's value.
func (s *GetBackendAuthInput) SetResourceName(v string) *GetBackendAuthInput {
s.ResourceName = &v
return s
}
type GetBackendAuthOutput struct {
_ struct{} `type:"structure"`
AppId *string `locationName:"appId" type:"string"`
BackendEnvironmentName *string `locationName:"backendEnvironmentName" type:"string"`
Error *string `locationName:"error" type:"string"`
// Defines the resource configuration when creating an auth resource in your
// Amplify project.
ResourceConfig *CreateBackendAuthResourceConfig `locationName:"resourceConfig" type:"structure"`
ResourceName *string `locationName:"resourceName" type:"string"`
}
// String returns the string representation
func (s GetBackendAuthOutput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s GetBackendAuthOutput) GoString() string {
return s.String()
}
// SetAppId sets the AppId field's value.
func (s *GetBackendAuthOutput) SetAppId(v string) *GetBackendAuthOutput {
s.AppId = &v
return s
}
// SetBackendEnvironmentName sets the BackendEnvironmentName field's value.
func (s *GetBackendAuthOutput) SetBackendEnvironmentName(v string) *GetBackendAuthOutput {
s.BackendEnvironmentName = &v
return s
}
// SetError sets the Error field's value.
func (s *GetBackendAuthOutput) SetError(v string) *GetBackendAuthOutput {
s.Error = &v
return s
}
// SetResourceConfig sets the ResourceConfig field's value.
func (s *GetBackendAuthOutput) SetResourceConfig(v *CreateBackendAuthResourceConfig) *GetBackendAuthOutput {
s.ResourceConfig = v
return s
}
// SetResourceName sets the ResourceName field's value.
func (s *GetBackendAuthOutput) SetResourceName(v string) *GetBackendAuthOutput {
s.ResourceName = &v
return s
}
type GetBackendInput struct {
_ struct{} `type:"structure"`
// AppId is a required field
AppId *string `location:"uri" locationName:"appId" type:"string" required:"true"`
BackendEnvironmentName *string `locationName:"backendEnvironmentName" type:"string"`
}
// String returns the string representation
func (s GetBackendInput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s GetBackendInput) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
func (s *GetBackendInput) Validate() error {
invalidParams := request.ErrInvalidParams{Context: "GetBackendInput"}
if s.AppId == nil {
invalidParams.Add(request.NewErrParamRequired("AppId"))
}
if s.AppId != nil && len(*s.AppId) < 1 {
invalidParams.Add(request.NewErrParamMinLen("AppId", 1))
}
if invalidParams.Len() > 0 {
return invalidParams
}
return nil
}
// SetAppId sets the AppId field's value.
func (s *GetBackendInput) SetAppId(v string) *GetBackendInput {
s.AppId = &v
return s
}
// SetBackendEnvironmentName sets the BackendEnvironmentName field's value.
func (s *GetBackendInput) SetBackendEnvironmentName(v string) *GetBackendInput {
s.BackendEnvironmentName = &v
return s
}
type GetBackendJobInput struct {
_ struct{} `type:"structure"`
// AppId is a required field
AppId *string `location:"uri" locationName:"appId" type:"string" required:"true"`
// BackendEnvironmentName is a required field
BackendEnvironmentName *string `location:"uri" locationName:"backendEnvironmentName" type:"string" required:"true"`
// JobId is a required field
JobId *string `location:"uri" locationName:"jobId" type:"string" required:"true"`
}
// String returns the string representation
func (s GetBackendJobInput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s GetBackendJobInput) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
func (s *GetBackendJobInput) Validate() error {
invalidParams := request.ErrInvalidParams{Context: "GetBackendJobInput"}
if s.AppId == nil {
invalidParams.Add(request.NewErrParamRequired("AppId"))
}
if s.AppId != nil && len(*s.AppId) < 1 {
invalidParams.Add(request.NewErrParamMinLen("AppId", 1))
}
if s.BackendEnvironmentName == nil {
invalidParams.Add(request.NewErrParamRequired("BackendEnvironmentName"))
}
if s.BackendEnvironmentName != nil && len(*s.BackendEnvironmentName) < 1 {
invalidParams.Add(request.NewErrParamMinLen("BackendEnvironmentName", 1))
}
if s.JobId == nil {
invalidParams.Add(request.NewErrParamRequired("JobId"))
}
if s.JobId != nil && len(*s.JobId) < 1 {
invalidParams.Add(request.NewErrParamMinLen("JobId", 1))
}
if invalidParams.Len() > 0 {
return invalidParams
}
return nil
}
// SetAppId sets the AppId field's value.
func (s *GetBackendJobInput) SetAppId(v string) *GetBackendJobInput {
s.AppId = &v
return s
}
// SetBackendEnvironmentName sets the BackendEnvironmentName field's value.
func (s *GetBackendJobInput) SetBackendEnvironmentName(v string) *GetBackendJobInput {
s.BackendEnvironmentName = &v
return s
}
// SetJobId sets the JobId field's value.
func (s *GetBackendJobInput) SetJobId(v string) *GetBackendJobInput {
s.JobId = &v
return s
}
type GetBackendJobOutput struct {
_ struct{} `type:"structure"`
AppId *string `locationName:"appId" type:"string"`
BackendEnvironmentName *string `locationName:"backendEnvironmentName" type:"string"`
CreateTime *string `locationName:"createTime" type:"string"`
Error *string `locationName:"error" type:"string"`
JobId *string `locationName:"jobId" type:"string"`
Operation *string `locationName:"operation" type:"string"`
Status *string `locationName:"status" type:"string"`
UpdateTime *string `locationName:"updateTime" type:"string"`
}
// String returns the string representation
func (s GetBackendJobOutput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s GetBackendJobOutput) GoString() string {
return s.String()
}
// SetAppId sets the AppId field's value.
func (s *GetBackendJobOutput) SetAppId(v string) *GetBackendJobOutput {
s.AppId = &v
return s
}
// SetBackendEnvironmentName sets the BackendEnvironmentName field's value.
func (s *GetBackendJobOutput) SetBackendEnvironmentName(v string) *GetBackendJobOutput {
s.BackendEnvironmentName = &v
return s
}
// SetCreateTime sets the CreateTime field's value.
func (s *GetBackendJobOutput) SetCreateTime(v string) *GetBackendJobOutput {
s.CreateTime = &v
return s
}
// SetError sets the Error field's value.
func (s *GetBackendJobOutput) SetError(v string) *GetBackendJobOutput {
s.Error = &v
return s
}
// SetJobId sets the JobId field's value.
func (s *GetBackendJobOutput) SetJobId(v string) *GetBackendJobOutput {
s.JobId = &v
return s
}
// SetOperation sets the Operation field's value.
func (s *GetBackendJobOutput) SetOperation(v string) *GetBackendJobOutput {
s.Operation = &v
return s
}
// SetStatus sets the Status field's value.
func (s *GetBackendJobOutput) SetStatus(v string) *GetBackendJobOutput {
s.Status = &v
return s
}
// SetUpdateTime sets the UpdateTime field's value.
func (s *GetBackendJobOutput) SetUpdateTime(v string) *GetBackendJobOutput {
s.UpdateTime = &v
return s
}
type GetBackendOutput struct {
_ struct{} `type:"structure"`
AmplifyMetaConfig *string `locationName:"amplifyMetaConfig" type:"string"`
AppId *string `locationName:"appId" type:"string"`
AppName *string `locationName:"appName" type:"string"`
BackendEnvironmentList []*string `locationName:"backendEnvironmentList" type:"list"`
BackendEnvironmentName *string `locationName:"backendEnvironmentName" type:"string"`
Error *string `locationName:"error" type:"string"`
}
// String returns the string representation
func (s GetBackendOutput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s GetBackendOutput) GoString() string {
return s.String()
}
// SetAmplifyMetaConfig sets the AmplifyMetaConfig field's value.
func (s *GetBackendOutput) SetAmplifyMetaConfig(v string) *GetBackendOutput {
s.AmplifyMetaConfig = &v
return s
}
// SetAppId sets the AppId field's value.
func (s *GetBackendOutput) SetAppId(v string) *GetBackendOutput {
s.AppId = &v
return s
}
// SetAppName sets the AppName field's value.
func (s *GetBackendOutput) SetAppName(v string) *GetBackendOutput {
s.AppName = &v
return s
}
// SetBackendEnvironmentList sets the BackendEnvironmentList field's value.
func (s *GetBackendOutput) SetBackendEnvironmentList(v []*string) *GetBackendOutput {
s.BackendEnvironmentList = v
return s
}
// SetBackendEnvironmentName sets the BackendEnvironmentName field's value.
func (s *GetBackendOutput) SetBackendEnvironmentName(v string) *GetBackendOutput {
s.BackendEnvironmentName = &v
return s
}
// SetError sets the Error field's value.
func (s *GetBackendOutput) SetError(v string) *GetBackendOutput {
s.Error = &v
return s
}
type GetTokenInput struct {
_ struct{} `type:"structure"`
// AppId is a required field
AppId *string `location:"uri" locationName:"appId" type:"string" required:"true"`
// SessionId is a required field
SessionId *string `location:"uri" locationName:"sessionId" type:"string" required:"true"`
}
// String returns the string representation
func (s GetTokenInput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s GetTokenInput) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
func (s *GetTokenInput) Validate() error {
invalidParams := request.ErrInvalidParams{Context: "GetTokenInput"}
if s.AppId == nil {
invalidParams.Add(request.NewErrParamRequired("AppId"))
}
if s.AppId != nil && len(*s.AppId) < 1 {
invalidParams.Add(request.NewErrParamMinLen("AppId", 1))
}
if s.SessionId == nil {
invalidParams.Add(request.NewErrParamRequired("SessionId"))
}
if s.SessionId != nil && len(*s.SessionId) < 1 {
invalidParams.Add(request.NewErrParamMinLen("SessionId", 1))
}
if invalidParams.Len() > 0 {
return invalidParams
}
return nil
}
// SetAppId sets the AppId field's value.
func (s *GetTokenInput) SetAppId(v string) *GetTokenInput {
s.AppId = &v
return s
}
// SetSessionId sets the SessionId field's value.
func (s *GetTokenInput) SetSessionId(v string) *GetTokenInput {
s.SessionId = &v
return s
}
type GetTokenOutput struct {
_ struct{} `type:"structure"`
AppId *string `locationName:"appId" type:"string"`
ChallengeCode *string `locationName:"challengeCode" type:"string"`
SessionId *string `locationName:"sessionId" type:"string"`
Ttl *string `locationName:"ttl" type:"string"`
}
// String returns the string representation
func (s GetTokenOutput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s GetTokenOutput) GoString() string {
return s.String()
}
// SetAppId sets the AppId field's value.
func (s *GetTokenOutput) SetAppId(v string) *GetTokenOutput {
s.AppId = &v
return s
}
// SetChallengeCode sets the ChallengeCode field's value.
func (s *GetTokenOutput) SetChallengeCode(v string) *GetTokenOutput {
s.ChallengeCode = &v
return s
}
// SetSessionId sets the SessionId field's value.
func (s *GetTokenOutput) SetSessionId(v string) *GetTokenOutput {
s.SessionId = &v
return s
}
// SetTtl sets the Ttl field's value.
func (s *GetTokenOutput) SetTtl(v string) *GetTokenOutput {
s.Ttl = &v
return s
}
type ImportBackendAuthInput struct {
_ struct{} `type:"structure"`
// AppId is a required field
AppId *string `location:"uri" locationName:"appId" type:"string" required:"true"`
// BackendEnvironmentName is a required field
BackendEnvironmentName *string `location:"uri" locationName:"backendEnvironmentName" type:"string" required:"true"`
IdentityPoolId *string `locationName:"identityPoolId" type:"string"`
// NativeClientId is a required field
NativeClientId *string `locationName:"nativeClientId" type:"string" required:"true"`
// UserPoolId is a required field
UserPoolId *string `locationName:"userPoolId" type:"string" required:"true"`
// WebClientId is a required field
WebClientId *string `locationName:"webClientId" type:"string" required:"true"`
}
// String returns the string representation
func (s ImportBackendAuthInput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s ImportBackendAuthInput) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
func (s *ImportBackendAuthInput) Validate() error {
invalidParams := request.ErrInvalidParams{Context: "ImportBackendAuthInput"}
if s.AppId == nil {
invalidParams.Add(request.NewErrParamRequired("AppId"))
}
if s.AppId != nil && len(*s.AppId) < 1 {
invalidParams.Add(request.NewErrParamMinLen("AppId", 1))
}
if s.BackendEnvironmentName == nil {
invalidParams.Add(request.NewErrParamRequired("BackendEnvironmentName"))
}
if s.BackendEnvironmentName != nil && len(*s.BackendEnvironmentName) < 1 {
invalidParams.Add(request.NewErrParamMinLen("BackendEnvironmentName", 1))
}
if s.NativeClientId == nil {
invalidParams.Add(request.NewErrParamRequired("NativeClientId"))
}
if s.UserPoolId == nil {
invalidParams.Add(request.NewErrParamRequired("UserPoolId"))
}
if s.WebClientId == nil {
invalidParams.Add(request.NewErrParamRequired("WebClientId"))
}
if invalidParams.Len() > 0 {
return invalidParams
}
return nil
}
// SetAppId sets the AppId field's value.
func (s *ImportBackendAuthInput) SetAppId(v string) *ImportBackendAuthInput {
s.AppId = &v
return s
}
// SetBackendEnvironmentName sets the BackendEnvironmentName field's value.
func (s *ImportBackendAuthInput) SetBackendEnvironmentName(v string) *ImportBackendAuthInput {
s.BackendEnvironmentName = &v
return s
}
// SetIdentityPoolId sets the IdentityPoolId field's value.
func (s *ImportBackendAuthInput) SetIdentityPoolId(v string) *ImportBackendAuthInput {
s.IdentityPoolId = &v
return s
}
// SetNativeClientId sets the NativeClientId field's value.
func (s *ImportBackendAuthInput) SetNativeClientId(v string) *ImportBackendAuthInput {
s.NativeClientId = &v
return s
}
// SetUserPoolId sets the UserPoolId field's value.
func (s *ImportBackendAuthInput) SetUserPoolId(v string) *ImportBackendAuthInput {
s.UserPoolId = &v
return s
}
// SetWebClientId sets the WebClientId field's value.
func (s *ImportBackendAuthInput) SetWebClientId(v string) *ImportBackendAuthInput {
s.WebClientId = &v
return s
}
type ImportBackendAuthOutput struct {
_ struct{} `type:"structure"`
AppId *string `locationName:"appId" type:"string"`
BackendEnvironmentName *string `locationName:"backendEnvironmentName" type:"string"`
Error *string `locationName:"error" type:"string"`
JobId *string `locationName:"jobId" type:"string"`
Operation *string `locationName:"operation" type:"string"`
Status *string `locationName:"status" type:"string"`
}
// String returns the string representation
func (s ImportBackendAuthOutput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s ImportBackendAuthOutput) GoString() string {
return s.String()
}
// SetAppId sets the AppId field's value.
func (s *ImportBackendAuthOutput) SetAppId(v string) *ImportBackendAuthOutput {
s.AppId = &v
return s
}
// SetBackendEnvironmentName sets the BackendEnvironmentName field's value.
func (s *ImportBackendAuthOutput) SetBackendEnvironmentName(v string) *ImportBackendAuthOutput {
s.BackendEnvironmentName = &v
return s
}
// SetError sets the Error field's value.
func (s *ImportBackendAuthOutput) SetError(v string) *ImportBackendAuthOutput {
s.Error = &v
return s
}
// SetJobId sets the JobId field's value.
func (s *ImportBackendAuthOutput) SetJobId(v string) *ImportBackendAuthOutput {
s.JobId = &v
return s
}
// SetOperation sets the Operation field's value.
func (s *ImportBackendAuthOutput) SetOperation(v string) *ImportBackendAuthOutput {
s.Operation = &v
return s
}
// SetStatus sets the Status field's value.
func (s *ImportBackendAuthOutput) SetStatus(v string) *ImportBackendAuthOutput {
s.Status = &v
return s
}
type ListBackendJobsInput struct {
_ struct{} `type:"structure"`
// AppId is a required field
AppId *string `location:"uri" locationName:"appId" type:"string" required:"true"`
// BackendEnvironmentName is a required field
BackendEnvironmentName *string `location:"uri" locationName:"backendEnvironmentName" type:"string" required:"true"`
JobId *string `locationName:"jobId" type:"string"`
MaxResults *int64 `locationName:"maxResults" min:"1" type:"integer"`
NextToken *string `locationName:"nextToken" type:"string"`
Operation *string `locationName:"operation" type:"string"`
Status *string `locationName:"status" type:"string"`
}
// String returns the string representation
func (s ListBackendJobsInput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s ListBackendJobsInput) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
func (s *ListBackendJobsInput) Validate() error {
invalidParams := request.ErrInvalidParams{Context: "ListBackendJobsInput"}
if s.AppId == nil {
invalidParams.Add(request.NewErrParamRequired("AppId"))
}
if s.AppId != nil && len(*s.AppId) < 1 {
invalidParams.Add(request.NewErrParamMinLen("AppId", 1))
}
if s.BackendEnvironmentName == nil {
invalidParams.Add(request.NewErrParamRequired("BackendEnvironmentName"))
}
if s.BackendEnvironmentName != nil && len(*s.BackendEnvironmentName) < 1 {
invalidParams.Add(request.NewErrParamMinLen("BackendEnvironmentName", 1))
}
if s.MaxResults != nil && *s.MaxResults < 1 {
invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1))
}
if invalidParams.Len() > 0 {
return invalidParams
}
return nil
}
// SetAppId sets the AppId field's value.
func (s *ListBackendJobsInput) SetAppId(v string) *ListBackendJobsInput {
s.AppId = &v
return s
}
// SetBackendEnvironmentName sets the BackendEnvironmentName field's value.
func (s *ListBackendJobsInput) SetBackendEnvironmentName(v string) *ListBackendJobsInput {
s.BackendEnvironmentName = &v
return s
}
// SetJobId sets the JobId field's value.
func (s *ListBackendJobsInput) SetJobId(v string) *ListBackendJobsInput {
s.JobId = &v
return s
}
// SetMaxResults sets the MaxResults field's value.
func (s *ListBackendJobsInput) SetMaxResults(v int64) *ListBackendJobsInput {
s.MaxResults = &v
return s
}
// SetNextToken sets the NextToken field's value.
func (s *ListBackendJobsInput) SetNextToken(v string) *ListBackendJobsInput {
s.NextToken = &v
return s
}
// SetOperation sets the Operation field's value.
func (s *ListBackendJobsInput) SetOperation(v string) *ListBackendJobsInput {
s.Operation = &v
return s
}
// SetStatus sets the Status field's value.
func (s *ListBackendJobsInput) SetStatus(v string) *ListBackendJobsInput {
s.Status = &v
return s
}
type ListBackendJobsOutput struct {
_ struct{} `type:"structure"`
Jobs []*BackendJobRespObj `locationName:"jobs" type:"list"`
NextToken *string `locationName:"nextToken" type:"string"`
}
// String returns the string representation
func (s ListBackendJobsOutput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s ListBackendJobsOutput) GoString() string {
return s.String()
}
// SetJobs sets the Jobs field's value.
func (s *ListBackendJobsOutput) SetJobs(v []*BackendJobRespObj) *ListBackendJobsOutput {
s.Jobs = v
return s
}
// SetNextToken sets the NextToken field's value.
func (s *ListBackendJobsOutput) SetNextToken(v string) *ListBackendJobsOutput {
s.NextToken = &v
return s
}
// The request object for this operation.
type LoginAuthConfigReqObj struct {
_ struct{} `type:"structure"`
// The Amazon Cognito identity pool ID used for the Amplify Admin UI login authorization.
AwsCognitoIdentityPoolId *string `locationName:"aws_cognito_identity_pool_id" type:"string"`
// The AWS Region for the Amplify Admin UI login.
AwsCognitoRegion *string `locationName:"aws_cognito_region" type:"string"`
// The Amazon Cognito user pool ID used for Amplify Admin UI login authentication.
AwsUserPoolsId *string `locationName:"aws_user_pools_id" type:"string"`
// The web client ID for the Amazon Cognito user pools.
AwsUserPoolsWebClientId *string `locationName:"aws_user_pools_web_client_id" type:"string"`
}
// String returns the string representation
func (s LoginAuthConfigReqObj) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s LoginAuthConfigReqObj) GoString() string {
return s.String()
}
// SetAwsCognitoIdentityPoolId sets the AwsCognitoIdentityPoolId field's value.
func (s *LoginAuthConfigReqObj) SetAwsCognitoIdentityPoolId(v string) *LoginAuthConfigReqObj {
s.AwsCognitoIdentityPoolId = &v
return s
}
// SetAwsCognitoRegion sets the AwsCognitoRegion field's value.
func (s *LoginAuthConfigReqObj) SetAwsCognitoRegion(v string) *LoginAuthConfigReqObj {
s.AwsCognitoRegion = &v
return s
}
// SetAwsUserPoolsId sets the AwsUserPoolsId field's value.
func (s *LoginAuthConfigReqObj) SetAwsUserPoolsId(v string) *LoginAuthConfigReqObj {
s.AwsUserPoolsId = &v
return s
}
// SetAwsUserPoolsWebClientId sets the AwsUserPoolsWebClientId field's value.
func (s *LoginAuthConfigReqObj) SetAwsUserPoolsWebClientId(v string) *LoginAuthConfigReqObj {
s.AwsUserPoolsWebClientId = &v
return s
}
// An error returned when a specific resource type is not found.
type NotFoundException struct {
_ struct{} `type:"structure"`
RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
// An error message to inform that the request has failed.
Message_ *string `locationName:"message" type:"string"`
// The type of resource that is not found.
ResourceType *string `locationName:"resourceType" type:"string"`
}
// String returns the string representation
func (s NotFoundException) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s NotFoundException) GoString() string {
return s.String()
}
func newErrorNotFoundException(v protocol.ResponseMetadata) error {
return &NotFoundException{
RespMetadata: v,
}
}
// Code returns the exception type name.
func (s *NotFoundException) Code() string {
return "NotFoundException"
}
// Message returns the exception's message.
func (s *NotFoundException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
return ""
}
// OrigErr always returns nil, satisfies awserr.Error interface.
func (s *NotFoundException) OrigErr() error {
return nil
}
func (s *NotFoundException) Error() string {
return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String())
}
// Status code returns the HTTP status code for the request's response error.
func (s *NotFoundException) StatusCode() int {
return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
func (s *NotFoundException) RequestID() string {
return s.RespMetadata.RequestID
}
type RemoveAllBackendsInput struct {
_ struct{} `type:"structure"`
// AppId is a required field
AppId *string `location:"uri" locationName:"appId" type:"string" required:"true"`
CleanAmplifyApp *bool `locationName:"cleanAmplifyApp" type:"boolean"`
}
// String returns the string representation
func (s RemoveAllBackendsInput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s RemoveAllBackendsInput) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
func (s *RemoveAllBackendsInput) Validate() error {
invalidParams := request.ErrInvalidParams{Context: "RemoveAllBackendsInput"}
if s.AppId == nil {
invalidParams.Add(request.NewErrParamRequired("AppId"))
}
if s.AppId != nil && len(*s.AppId) < 1 {
invalidParams.Add(request.NewErrParamMinLen("AppId", 1))
}
if invalidParams.Len() > 0 {
return invalidParams
}
return nil
}
// SetAppId sets the AppId field's value.
func (s *RemoveAllBackendsInput) SetAppId(v string) *RemoveAllBackendsInput {
s.AppId = &v
return s
}
// SetCleanAmplifyApp sets the CleanAmplifyApp field's value.
func (s *RemoveAllBackendsInput) SetCleanAmplifyApp(v bool) *RemoveAllBackendsInput {
s.CleanAmplifyApp = &v
return s
}
type RemoveAllBackendsOutput struct {
_ struct{} `type:"structure"`
AppId *string `locationName:"appId" type:"string"`
Error *string `locationName:"error" type:"string"`
JobId *string `locationName:"jobId" type:"string"`
Operation *string `locationName:"operation" type:"string"`
Status *string `locationName:"status" type:"string"`
}
// String returns the string representation
func (s RemoveAllBackendsOutput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s RemoveAllBackendsOutput) GoString() string {
return s.String()
}
// SetAppId sets the AppId field's value.
func (s *RemoveAllBackendsOutput) SetAppId(v string) *RemoveAllBackendsOutput {
s.AppId = &v
return s
}
// SetError sets the Error field's value.
func (s *RemoveAllBackendsOutput) SetError(v string) *RemoveAllBackendsOutput {
s.Error = &v
return s
}
// SetJobId sets the JobId field's value.
func (s *RemoveAllBackendsOutput) SetJobId(v string) *RemoveAllBackendsOutput {
s.JobId = &v
return s
}
// SetOperation sets the Operation field's value.
func (s *RemoveAllBackendsOutput) SetOperation(v string) *RemoveAllBackendsOutput {
s.Operation = &v
return s
}
// SetStatus sets the Status field's value.
func (s *RemoveAllBackendsOutput) SetStatus(v string) *RemoveAllBackendsOutput {
s.Status = &v
return s
}
type RemoveBackendConfigInput struct {
_ struct{} `type:"structure"`
// AppId is a required field
AppId *string `location:"uri" locationName:"appId" type:"string" required:"true"`
}
// String returns the string representation
func (s RemoveBackendConfigInput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s RemoveBackendConfigInput) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
func (s *RemoveBackendConfigInput) Validate() error {
invalidParams := request.ErrInvalidParams{Context: "RemoveBackendConfigInput"}
if s.AppId == nil {
invalidParams.Add(request.NewErrParamRequired("AppId"))
}
if s.AppId != nil && len(*s.AppId) < 1 {
invalidParams.Add(request.NewErrParamMinLen("AppId", 1))
}
if invalidParams.Len() > 0 {
return invalidParams
}
return nil
}
// SetAppId sets the AppId field's value.
func (s *RemoveBackendConfigInput) SetAppId(v string) *RemoveBackendConfigInput {
s.AppId = &v
return s
}
type RemoveBackendConfigOutput struct {
_ struct{} `type:"structure"`
Error *string `locationName:"error" type:"string"`
}
// String returns the string representation
func (s RemoveBackendConfigOutput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s RemoveBackendConfigOutput) GoString() string {
return s.String()
}
// SetError sets the Error field's value.
func (s *RemoveBackendConfigOutput) SetError(v string) *RemoveBackendConfigOutput {
s.Error = &v
return s
}
type ResourceConfig struct {
_ struct{} `type:"structure"`
}
// String returns the string representation
func (s ResourceConfig) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s ResourceConfig) GoString() string {
return s.String()
}
type Settings struct {
_ struct{} `type:"structure"`
MfaTypes []*string `locationName:"mfaTypes" type:"list"`
// The body of the SMS message.
SmsMessage *string `locationName:"smsMessage" type:"string"`
}
// String returns the string representation
func (s Settings) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s Settings) GoString() string {
return s.String()
}
// SetMfaTypes sets the MfaTypes field's value.
func (s *Settings) SetMfaTypes(v []*string) *Settings {
s.MfaTypes = v
return s
}
// SetSmsMessage sets the SmsMessage field's value.
func (s *Settings) SetSmsMessage(v string) *Settings {
s.SmsMessage = &v
return s
}
type SmsSettings struct {
_ struct{} `type:"structure"`
// The body of the SMS message.
SmsMessage *string `locationName:"smsMessage" type:"string"`
}
// String returns the string representation
func (s SmsSettings) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s SmsSettings) GoString() string {
return s.String()
}
// SetSmsMessage sets the SmsMessage field's value.
func (s *SmsSettings) SetSmsMessage(v string) *SmsSettings {
s.SmsMessage = &v
return s
}
type SocialProviderSettings struct {
_ struct{} `type:"structure"`
// Describes third-party social federation configurations for allowing your
// app users to sign in using OAuth.
Facebook *BackendAuthSocialProviderConfig `type:"structure"`
// Describes third-party social federation configurations for allowing your
// app users to sign in using OAuth.
Google *BackendAuthSocialProviderConfig `type:"structure"`
// Describes third-party social federation configurations for allowing your
// app users to sign in using OAuth.
LoginWithAmazon *BackendAuthSocialProviderConfig `type:"structure"`
// Describes Apple social federation configurations for allowing your app users
// to sign in using OAuth.
SignInWithApple *BackendAuthAppleProviderConfig `type:"structure"`
}
// String returns the string representation
func (s SocialProviderSettings) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s SocialProviderSettings) GoString() string {
return s.String()
}
// SetFacebook sets the Facebook field's value.
func (s *SocialProviderSettings) SetFacebook(v *BackendAuthSocialProviderConfig) *SocialProviderSettings {
s.Facebook = v
return s
}
// SetGoogle sets the Google field's value.
func (s *SocialProviderSettings) SetGoogle(v *BackendAuthSocialProviderConfig) *SocialProviderSettings {
s.Google = v
return s
}
// SetLoginWithAmazon sets the LoginWithAmazon field's value.
func (s *SocialProviderSettings) SetLoginWithAmazon(v *BackendAuthSocialProviderConfig) *SocialProviderSettings {
s.LoginWithAmazon = v
return s
}
// SetSignInWithApple sets the SignInWithApple field's value.
func (s *SocialProviderSettings) SetSignInWithApple(v *BackendAuthAppleProviderConfig) *SocialProviderSettings {
s.SignInWithApple = v
return s
}
// An error that is returned when a limit of a specific type has been exceeded.
type TooManyRequestsException struct {
_ struct{} `type:"structure"`
RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
LimitType *string `locationName:"limitType" type:"string"`
Message_ *string `locationName:"message" type:"string"`
}
// String returns the string representation
func (s TooManyRequestsException) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s TooManyRequestsException) GoString() string {
return s.String()
}
func newErrorTooManyRequestsException(v protocol.ResponseMetadata) error {
return &TooManyRequestsException{
RespMetadata: v,
}
}
// Code returns the exception type name.
func (s *TooManyRequestsException) Code() string {
return "TooManyRequestsException"
}
// Message returns the exception's message.
func (s *TooManyRequestsException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
return ""
}
// OrigErr always returns nil, satisfies awserr.Error interface.
func (s *TooManyRequestsException) OrigErr() error {
return nil
}
func (s *TooManyRequestsException) Error() string {
return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String())
}
// Status code returns the HTTP status code for the request's response error.
func (s *TooManyRequestsException) StatusCode() int {
return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
func (s *TooManyRequestsException) RequestID() string {
return s.RespMetadata.RequestID
}
type UpdateBackendAPIInput struct {
_ struct{} `type:"structure"`
// AppId is a required field
AppId *string `location:"uri" locationName:"appId" type:"string" required:"true"`
// BackendEnvironmentName is a required field
BackendEnvironmentName *string `location:"uri" locationName:"backendEnvironmentName" type:"string" required:"true"`
// The resource config for the data model, configured as a part of the Amplify
// project.
ResourceConfig *BackendAPIResourceConfig `locationName:"resourceConfig" type:"structure"`
// ResourceName is a required field
ResourceName *string `locationName:"resourceName" type:"string" required:"true"`
}
// String returns the string representation
func (s UpdateBackendAPIInput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s UpdateBackendAPIInput) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
func (s *UpdateBackendAPIInput) Validate() error {
invalidParams := request.ErrInvalidParams{Context: "UpdateBackendAPIInput"}
if s.AppId == nil {
invalidParams.Add(request.NewErrParamRequired("AppId"))
}
if s.AppId != nil && len(*s.AppId) < 1 {
invalidParams.Add(request.NewErrParamMinLen("AppId", 1))
}
if s.BackendEnvironmentName == nil {
invalidParams.Add(request.NewErrParamRequired("BackendEnvironmentName"))
}
if s.BackendEnvironmentName != nil && len(*s.BackendEnvironmentName) < 1 {
invalidParams.Add(request.NewErrParamMinLen("BackendEnvironmentName", 1))
}
if s.ResourceName == nil {
invalidParams.Add(request.NewErrParamRequired("ResourceName"))
}
if invalidParams.Len() > 0 {
return invalidParams
}
return nil
}
// SetAppId sets the AppId field's value.
func (s *UpdateBackendAPIInput) SetAppId(v string) *UpdateBackendAPIInput {
s.AppId = &v
return s
}
// SetBackendEnvironmentName sets the BackendEnvironmentName field's value.
func (s *UpdateBackendAPIInput) SetBackendEnvironmentName(v string) *UpdateBackendAPIInput {
s.BackendEnvironmentName = &v
return s
}
// SetResourceConfig sets the ResourceConfig field's value.
func (s *UpdateBackendAPIInput) SetResourceConfig(v *BackendAPIResourceConfig) *UpdateBackendAPIInput {
s.ResourceConfig = v
return s
}
// SetResourceName sets the ResourceName field's value.
func (s *UpdateBackendAPIInput) SetResourceName(v string) *UpdateBackendAPIInput {
s.ResourceName = &v
return s
}
type UpdateBackendAPIOutput struct {
_ struct{} `type:"structure"`
AppId *string `locationName:"appId" type:"string"`
BackendEnvironmentName *string `locationName:"backendEnvironmentName" type:"string"`
Error *string `locationName:"error" type:"string"`
JobId *string `locationName:"jobId" type:"string"`
Operation *string `locationName:"operation" type:"string"`
Status *string `locationName:"status" type:"string"`
}
// String returns the string representation
func (s UpdateBackendAPIOutput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s UpdateBackendAPIOutput) GoString() string {
return s.String()
}
// SetAppId sets the AppId field's value.
func (s *UpdateBackendAPIOutput) SetAppId(v string) *UpdateBackendAPIOutput {
s.AppId = &v
return s
}
// SetBackendEnvironmentName sets the BackendEnvironmentName field's value.
func (s *UpdateBackendAPIOutput) SetBackendEnvironmentName(v string) *UpdateBackendAPIOutput {
s.BackendEnvironmentName = &v
return s
}
// SetError sets the Error field's value.
func (s *UpdateBackendAPIOutput) SetError(v string) *UpdateBackendAPIOutput {
s.Error = &v
return s
}
// SetJobId sets the JobId field's value.
func (s *UpdateBackendAPIOutput) SetJobId(v string) *UpdateBackendAPIOutput {
s.JobId = &v
return s
}
// SetOperation sets the Operation field's value.
func (s *UpdateBackendAPIOutput) SetOperation(v string) *UpdateBackendAPIOutput {
s.Operation = &v
return s
}
// SetStatus sets the Status field's value.
func (s *UpdateBackendAPIOutput) SetStatus(v string) *UpdateBackendAPIOutput {
s.Status = &v
return s
}
// Describes the forgot password policy for authenticating into the Amplify
// app.
type UpdateBackendAuthForgotPasswordConfig struct {
_ struct{} `type:"structure"`
// Describes which mode to use (either SMS or email) to deliver messages to
// app users that want to recover their password.
DeliveryMethod *string `locationName:"deliveryMethod" type:"string" enum:"DeliveryMethod"`
// The configuration for the email sent when an app user forgets their password.
EmailSettings *EmailSettings `locationName:"emailSettings" type:"structure"`
// The configuration for the SMS message sent when an Amplify app user forgets
// their password.
SmsSettings *SmsSettings `locationName:"smsSettings" type:"structure"`
}
// String returns the string representation
func (s UpdateBackendAuthForgotPasswordConfig) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s UpdateBackendAuthForgotPasswordConfig) GoString() string {
return s.String()
}
// SetDeliveryMethod sets the DeliveryMethod field's value.
func (s *UpdateBackendAuthForgotPasswordConfig) SetDeliveryMethod(v string) *UpdateBackendAuthForgotPasswordConfig {
s.DeliveryMethod = &v
return s
}
// SetEmailSettings sets the EmailSettings field's value.
func (s *UpdateBackendAuthForgotPasswordConfig) SetEmailSettings(v *EmailSettings) *UpdateBackendAuthForgotPasswordConfig {
s.EmailSettings = v
return s
}
// SetSmsSettings sets the SmsSettings field's value.
func (s *UpdateBackendAuthForgotPasswordConfig) SetSmsSettings(v *SmsSettings) *UpdateBackendAuthForgotPasswordConfig {
s.SmsSettings = v
return s
}
// Describes the authorization configuration for the Amazon Cognito identity
// pool, provisioned as a part of your auth resource in the Amplify project.
type UpdateBackendAuthIdentityPoolConfig struct {
_ struct{} `type:"structure"`
// A boolean value that can be set to allow or disallow guest-level authorization
// into your Amplify app.
UnauthenticatedLogin *bool `locationName:"unauthenticatedLogin" type:"boolean"`
}
// String returns the string representation
func (s UpdateBackendAuthIdentityPoolConfig) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s UpdateBackendAuthIdentityPoolConfig) GoString() string {
return s.String()
}
// SetUnauthenticatedLogin sets the UnauthenticatedLogin field's value.
func (s *UpdateBackendAuthIdentityPoolConfig) SetUnauthenticatedLogin(v bool) *UpdateBackendAuthIdentityPoolConfig {
s.UnauthenticatedLogin = &v
return s
}
type UpdateBackendAuthInput struct {
_ struct{} `type:"structure"`
// AppId is a required field
AppId *string `location:"uri" locationName:"appId" type:"string" required:"true"`
// BackendEnvironmentName is a required field
BackendEnvironmentName *string `location:"uri" locationName:"backendEnvironmentName" type:"string" required:"true"`
// Defines the resource configuration when updating an authentication resource
// in your Amplify project.
//
// ResourceConfig is a required field
ResourceConfig *UpdateBackendAuthResourceConfig `locationName:"resourceConfig" type:"structure" required:"true"`
// ResourceName is a required field
ResourceName *string `locationName:"resourceName" type:"string" required:"true"`
}
// String returns the string representation
func (s UpdateBackendAuthInput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s UpdateBackendAuthInput) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
func (s *UpdateBackendAuthInput) Validate() error {
invalidParams := request.ErrInvalidParams{Context: "UpdateBackendAuthInput"}
if s.AppId == nil {
invalidParams.Add(request.NewErrParamRequired("AppId"))
}
if s.AppId != nil && len(*s.AppId) < 1 {
invalidParams.Add(request.NewErrParamMinLen("AppId", 1))
}
if s.BackendEnvironmentName == nil {
invalidParams.Add(request.NewErrParamRequired("BackendEnvironmentName"))
}
if s.BackendEnvironmentName != nil && len(*s.BackendEnvironmentName) < 1 {
invalidParams.Add(request.NewErrParamMinLen("BackendEnvironmentName", 1))
}
if s.ResourceConfig == nil {
invalidParams.Add(request.NewErrParamRequired("ResourceConfig"))
}
if s.ResourceName == nil {
invalidParams.Add(request.NewErrParamRequired("ResourceName"))
}
if s.ResourceConfig != nil {
if err := s.ResourceConfig.Validate(); err != nil {
invalidParams.AddNested("ResourceConfig", err.(request.ErrInvalidParams))
}
}
if invalidParams.Len() > 0 {
return invalidParams
}
return nil
}
// SetAppId sets the AppId field's value.
func (s *UpdateBackendAuthInput) SetAppId(v string) *UpdateBackendAuthInput {
s.AppId = &v
return s
}
// SetBackendEnvironmentName sets the BackendEnvironmentName field's value.
func (s *UpdateBackendAuthInput) SetBackendEnvironmentName(v string) *UpdateBackendAuthInput {
s.BackendEnvironmentName = &v
return s
}
// SetResourceConfig sets the ResourceConfig field's value.
func (s *UpdateBackendAuthInput) SetResourceConfig(v *UpdateBackendAuthResourceConfig) *UpdateBackendAuthInput {
s.ResourceConfig = v
return s
}
// SetResourceName sets the ResourceName field's value.
func (s *UpdateBackendAuthInput) SetResourceName(v string) *UpdateBackendAuthInput {
s.ResourceName = &v
return s
}
// Updates the multi-factor authentication (MFA) configuration for the backend
// of your Amplify project.
type UpdateBackendAuthMFAConfig struct {
_ struct{} `type:"structure"`
// The MFA mode for the backend of your Amplify project.
MFAMode *string `type:"string" enum:"MFAMode"`
// The settings of your MFA configuration for the backend of your Amplify project.
Settings *Settings `locationName:"settings" type:"structure"`
}
// String returns the string representation
func (s UpdateBackendAuthMFAConfig) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s UpdateBackendAuthMFAConfig) GoString() string {
return s.String()
}
// SetMFAMode sets the MFAMode field's value.
func (s *UpdateBackendAuthMFAConfig) SetMFAMode(v string) *UpdateBackendAuthMFAConfig {
s.MFAMode = &v
return s
}
// SetSettings sets the Settings field's value.
func (s *UpdateBackendAuthMFAConfig) SetSettings(v *Settings) *UpdateBackendAuthMFAConfig {
s.Settings = v
return s
}
// The OAuth configurations for authenticating users into your Amplify app.
type UpdateBackendAuthOAuthConfig struct {
_ struct{} `type:"structure"`
// The Amazon Cognito domain prefix used to create a hosted UI for authentication.
DomainPrefix *string `locationName:"domainPrefix" type:"string"`
// The OAuth grant type to allow app users to authenticate from your Amplify
// app.
OAuthGrantType *string `locationName:"oAuthGrantType" type:"string" enum:"OAuthGrantType"`
// The list of OAuth-related flows that can allow users to authenticate from
// your Amplify app.
OAuthScopes []*string `locationName:"oAuthScopes" type:"list"`
// Redirect URLs that OAuth uses when a user signs in to an Amplify app.
RedirectSignInURIs []*string `locationName:"redirectSignInURIs" type:"list"`
// Redirect URLs that OAuth uses when a user signs out of an Amplify app.
RedirectSignOutURIs []*string `locationName:"redirectSignOutURIs" type:"list"`
// Describes third-party social federation configurations for allowing your
// users to sign in with OAuth.
SocialProviderSettings *SocialProviderSettings `locationName:"socialProviderSettings" type:"structure"`
}
// String returns the string representation
func (s UpdateBackendAuthOAuthConfig) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s UpdateBackendAuthOAuthConfig) GoString() string {
return s.String()
}
// SetDomainPrefix sets the DomainPrefix field's value.
func (s *UpdateBackendAuthOAuthConfig) SetDomainPrefix(v string) *UpdateBackendAuthOAuthConfig {
s.DomainPrefix = &v
return s
}
// SetOAuthGrantType sets the OAuthGrantType field's value.
func (s *UpdateBackendAuthOAuthConfig) SetOAuthGrantType(v string) *UpdateBackendAuthOAuthConfig {
s.OAuthGrantType = &v
return s
}
// SetOAuthScopes sets the OAuthScopes field's value.
func (s *UpdateBackendAuthOAuthConfig) SetOAuthScopes(v []*string) *UpdateBackendAuthOAuthConfig {
s.OAuthScopes = v
return s
}
// SetRedirectSignInURIs sets the RedirectSignInURIs field's value.
func (s *UpdateBackendAuthOAuthConfig) SetRedirectSignInURIs(v []*string) *UpdateBackendAuthOAuthConfig {
s.RedirectSignInURIs = v
return s
}
// SetRedirectSignOutURIs sets the RedirectSignOutURIs field's value.
func (s *UpdateBackendAuthOAuthConfig) SetRedirectSignOutURIs(v []*string) *UpdateBackendAuthOAuthConfig {
s.RedirectSignOutURIs = v
return s
}
// SetSocialProviderSettings sets the SocialProviderSettings field's value.
func (s *UpdateBackendAuthOAuthConfig) SetSocialProviderSettings(v *SocialProviderSettings) *UpdateBackendAuthOAuthConfig {
s.SocialProviderSettings = v
return s
}
type UpdateBackendAuthOutput struct {
_ struct{} `type:"structure"`
AppId *string `locationName:"appId" type:"string"`
BackendEnvironmentName *string `locationName:"backendEnvironmentName" type:"string"`
Error *string `locationName:"error" type:"string"`
JobId *string `locationName:"jobId" type:"string"`
Operation *string `locationName:"operation" type:"string"`
Status *string `locationName:"status" type:"string"`
}
// String returns the string representation
func (s UpdateBackendAuthOutput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s UpdateBackendAuthOutput) GoString() string {
return s.String()
}
// SetAppId sets the AppId field's value.
func (s *UpdateBackendAuthOutput) SetAppId(v string) *UpdateBackendAuthOutput {
s.AppId = &v
return s
}
// SetBackendEnvironmentName sets the BackendEnvironmentName field's value.
func (s *UpdateBackendAuthOutput) SetBackendEnvironmentName(v string) *UpdateBackendAuthOutput {
s.BackendEnvironmentName = &v
return s
}
// SetError sets the Error field's value.
func (s *UpdateBackendAuthOutput) SetError(v string) *UpdateBackendAuthOutput {
s.Error = &v
return s
}
// SetJobId sets the JobId field's value.
func (s *UpdateBackendAuthOutput) SetJobId(v string) *UpdateBackendAuthOutput {
s.JobId = &v
return s
}
// SetOperation sets the Operation field's value.
func (s *UpdateBackendAuthOutput) SetOperation(v string) *UpdateBackendAuthOutput {
s.Operation = &v
return s
}
// SetStatus sets the Status field's value.
func (s *UpdateBackendAuthOutput) SetStatus(v string) *UpdateBackendAuthOutput {
s.Status = &v
return s
}
// Describes the password policy for your Amazon Cognito user pool configured
// as a part of your Amplify project.
type UpdateBackendAuthPasswordPolicyConfig struct {
_ struct{} `type:"structure"`
// Describes additional constraints on password requirements to sign in to the
// auth resource, configured as a part of your Amplify project.
AdditionalConstraints []*string `locationName:"additionalConstraints" type:"list"`
// Describes the minimum length of the password required to sign in to the auth
// resource, configured as a part of your Amplify project.
MinimumLength *float64 `locationName:"minimumLength" type:"double"`
}
// String returns the string representation
func (s UpdateBackendAuthPasswordPolicyConfig) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s UpdateBackendAuthPasswordPolicyConfig) GoString() string {
return s.String()
}
// SetAdditionalConstraints sets the AdditionalConstraints field's value.
func (s *UpdateBackendAuthPasswordPolicyConfig) SetAdditionalConstraints(v []*string) *UpdateBackendAuthPasswordPolicyConfig {
s.AdditionalConstraints = v
return s
}
// SetMinimumLength sets the MinimumLength field's value.
func (s *UpdateBackendAuthPasswordPolicyConfig) SetMinimumLength(v float64) *UpdateBackendAuthPasswordPolicyConfig {
s.MinimumLength = &v
return s
}
// Defines the resource configuration when updating an authentication resource
// in your Amplify project.
type UpdateBackendAuthResourceConfig struct {
_ struct{} `type:"structure"`
// Defines the service name to use when configuring an authentication resource
// in your Amplify project.
//
// AuthResources is a required field
AuthResources *string `locationName:"authResources" type:"string" required:"true" enum:"AuthResources"`
// Describes the authorization configuration for the Amazon Cognito identity
// pool, provisioned as a part of your auth resource in the Amplify project.
IdentityPoolConfigs *UpdateBackendAuthIdentityPoolConfig `locationName:"identityPoolConfigs" type:"structure"`
// Defines the service name to use when configuring an authentication resource
// in your Amplify project.
//
// Service is a required field
Service *string `locationName:"service" type:"string" required:"true" enum:"Service"`
// Describes the authentication configuration for the Amazon Cognito user pool,
// provisioned as a part of your auth resource in the Amplify project.
//
// UserPoolConfigs is a required field
UserPoolConfigs *UpdateBackendAuthUserPoolConfig `locationName:"userPoolConfigs" type:"structure" required:"true"`
}
// String returns the string representation
func (s UpdateBackendAuthResourceConfig) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s UpdateBackendAuthResourceConfig) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
func (s *UpdateBackendAuthResourceConfig) Validate() error {
invalidParams := request.ErrInvalidParams{Context: "UpdateBackendAuthResourceConfig"}
if s.AuthResources == nil {
invalidParams.Add(request.NewErrParamRequired("AuthResources"))
}
if s.Service == nil {
invalidParams.Add(request.NewErrParamRequired("Service"))
}
if s.UserPoolConfigs == nil {
invalidParams.Add(request.NewErrParamRequired("UserPoolConfigs"))
}
if invalidParams.Len() > 0 {
return invalidParams
}
return nil
}
// SetAuthResources sets the AuthResources field's value.
func (s *UpdateBackendAuthResourceConfig) SetAuthResources(v string) *UpdateBackendAuthResourceConfig {
s.AuthResources = &v
return s
}
// SetIdentityPoolConfigs sets the IdentityPoolConfigs field's value.
func (s *UpdateBackendAuthResourceConfig) SetIdentityPoolConfigs(v *UpdateBackendAuthIdentityPoolConfig) *UpdateBackendAuthResourceConfig {
s.IdentityPoolConfigs = v
return s
}
// SetService sets the Service field's value.
func (s *UpdateBackendAuthResourceConfig) SetService(v string) *UpdateBackendAuthResourceConfig {
s.Service = &v
return s
}
// SetUserPoolConfigs sets the UserPoolConfigs field's value.
func (s *UpdateBackendAuthResourceConfig) SetUserPoolConfigs(v *UpdateBackendAuthUserPoolConfig) *UpdateBackendAuthResourceConfig {
s.UserPoolConfigs = v
return s
}
// Describes the Amazon Cognito user pool configuration for the authorization
// resource to be configured for your Amplify project on an update.
type UpdateBackendAuthUserPoolConfig struct {
_ struct{} `type:"structure"`
// Describes the forgot password policy for your Amazon Cognito user pool, configured
// as a part of your Amplify project.
ForgotPassword *UpdateBackendAuthForgotPasswordConfig `locationName:"forgotPassword" type:"structure"`
// Describes whether to apply multi-factor authentication policies for your
// Amazon Cognito user pool configured as a part of your Amplify project.
Mfa *UpdateBackendAuthMFAConfig `locationName:"mfa" type:"structure"`
// Describes the OAuth policy and rules for your Amazon Cognito user pool, configured
// as a part of your Amplify project.
OAuth *UpdateBackendAuthOAuthConfig `locationName:"oAuth" type:"structure"`
// Describes the password policy for your Amazon Cognito user pool, configured
// as a part of your Amplify project.
PasswordPolicy *UpdateBackendAuthPasswordPolicyConfig `locationName:"passwordPolicy" type:"structure"`
}
// String returns the string representation
func (s UpdateBackendAuthUserPoolConfig) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s UpdateBackendAuthUserPoolConfig) GoString() string {
return s.String()
}
// SetForgotPassword sets the ForgotPassword field's value.
func (s *UpdateBackendAuthUserPoolConfig) SetForgotPassword(v *UpdateBackendAuthForgotPasswordConfig) *UpdateBackendAuthUserPoolConfig {
s.ForgotPassword = v
return s
}
// SetMfa sets the Mfa field's value.
func (s *UpdateBackendAuthUserPoolConfig) SetMfa(v *UpdateBackendAuthMFAConfig) *UpdateBackendAuthUserPoolConfig {
s.Mfa = v
return s
}
// SetOAuth sets the OAuth field's value.
func (s *UpdateBackendAuthUserPoolConfig) SetOAuth(v *UpdateBackendAuthOAuthConfig) *UpdateBackendAuthUserPoolConfig {
s.OAuth = v
return s
}
// SetPasswordPolicy sets the PasswordPolicy field's value.
func (s *UpdateBackendAuthUserPoolConfig) SetPasswordPolicy(v *UpdateBackendAuthPasswordPolicyConfig) *UpdateBackendAuthUserPoolConfig {
s.PasswordPolicy = v
return s
}
type UpdateBackendConfigInput struct {
_ struct{} `type:"structure"`
// AppId is a required field
AppId *string `location:"uri" locationName:"appId" type:"string" required:"true"`
// The request object for this operation.
LoginAuthConfig *LoginAuthConfigReqObj `locationName:"loginAuthConfig" type:"structure"`
}
// String returns the string representation
func (s UpdateBackendConfigInput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s UpdateBackendConfigInput) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
func (s *UpdateBackendConfigInput) Validate() error {
invalidParams := request.ErrInvalidParams{Context: "UpdateBackendConfigInput"}
if s.AppId == nil {
invalidParams.Add(request.NewErrParamRequired("AppId"))
}
if s.AppId != nil && len(*s.AppId) < 1 {
invalidParams.Add(request.NewErrParamMinLen("AppId", 1))
}
if invalidParams.Len() > 0 {
return invalidParams
}
return nil
}
// SetAppId sets the AppId field's value.
func (s *UpdateBackendConfigInput) SetAppId(v string) *UpdateBackendConfigInput {
s.AppId = &v
return s
}
// SetLoginAuthConfig sets the LoginAuthConfig field's value.
func (s *UpdateBackendConfigInput) SetLoginAuthConfig(v *LoginAuthConfigReqObj) *UpdateBackendConfigInput {
s.LoginAuthConfig = v
return s
}
type UpdateBackendConfigOutput struct {
_ struct{} `type:"structure"`
AppId *string `locationName:"appId" type:"string"`
BackendManagerAppId *string `locationName:"backendManagerAppId" type:"string"`
Error *string `locationName:"error" type:"string"`
// The request object for this operation.
LoginAuthConfig *LoginAuthConfigReqObj `locationName:"loginAuthConfig" type:"structure"`
}
// String returns the string representation
func (s UpdateBackendConfigOutput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s UpdateBackendConfigOutput) GoString() string {
return s.String()
}
// SetAppId sets the AppId field's value.
func (s *UpdateBackendConfigOutput) SetAppId(v string) *UpdateBackendConfigOutput {
s.AppId = &v
return s
}
// SetBackendManagerAppId sets the BackendManagerAppId field's value.
func (s *UpdateBackendConfigOutput) SetBackendManagerAppId(v string) *UpdateBackendConfigOutput {
s.BackendManagerAppId = &v
return s
}
// SetError sets the Error field's value.
func (s *UpdateBackendConfigOutput) SetError(v string) *UpdateBackendConfigOutput {
s.Error = &v
return s
}
// SetLoginAuthConfig sets the LoginAuthConfig field's value.
func (s *UpdateBackendConfigOutput) SetLoginAuthConfig(v *LoginAuthConfigReqObj) *UpdateBackendConfigOutput {
s.LoginAuthConfig = v
return s
}
type UpdateBackendJobInput struct {
_ struct{} `type:"structure"`
// AppId is a required field
AppId *string `location:"uri" locationName:"appId" type:"string" required:"true"`
// BackendEnvironmentName is a required field
BackendEnvironmentName *string `location:"uri" locationName:"backendEnvironmentName" type:"string" required:"true"`
// JobId is a required field
JobId *string `location:"uri" locationName:"jobId" type:"string" required:"true"`
Operation *string `locationName:"operation" type:"string"`
Status *string `locationName:"status" type:"string"`
}
// String returns the string representation
func (s UpdateBackendJobInput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s UpdateBackendJobInput) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
func (s *UpdateBackendJobInput) Validate() error {
invalidParams := request.ErrInvalidParams{Context: "UpdateBackendJobInput"}
if s.AppId == nil {
invalidParams.Add(request.NewErrParamRequired("AppId"))
}
if s.AppId != nil && len(*s.AppId) < 1 {
invalidParams.Add(request.NewErrParamMinLen("AppId", 1))
}
if s.BackendEnvironmentName == nil {
invalidParams.Add(request.NewErrParamRequired("BackendEnvironmentName"))
}
if s.BackendEnvironmentName != nil && len(*s.BackendEnvironmentName) < 1 {
invalidParams.Add(request.NewErrParamMinLen("BackendEnvironmentName", 1))
}
if s.JobId == nil {
invalidParams.Add(request.NewErrParamRequired("JobId"))
}
if s.JobId != nil && len(*s.JobId) < 1 {
invalidParams.Add(request.NewErrParamMinLen("JobId", 1))
}
if invalidParams.Len() > 0 {
return invalidParams
}
return nil
}
// SetAppId sets the AppId field's value.
func (s *UpdateBackendJobInput) SetAppId(v string) *UpdateBackendJobInput {
s.AppId = &v
return s
}
// SetBackendEnvironmentName sets the BackendEnvironmentName field's value.
func (s *UpdateBackendJobInput) SetBackendEnvironmentName(v string) *UpdateBackendJobInput {
s.BackendEnvironmentName = &v
return s
}
// SetJobId sets the JobId field's value.
func (s *UpdateBackendJobInput) SetJobId(v string) *UpdateBackendJobInput {
s.JobId = &v
return s
}
// SetOperation sets the Operation field's value.
func (s *UpdateBackendJobInput) SetOperation(v string) *UpdateBackendJobInput {
s.Operation = &v
return s
}
// SetStatus sets the Status field's value.
func (s *UpdateBackendJobInput) SetStatus(v string) *UpdateBackendJobInput {
s.Status = &v
return s
}
type UpdateBackendJobOutput struct {
_ struct{} `type:"structure"`
AppId *string `locationName:"appId" type:"string"`
BackendEnvironmentName *string `locationName:"backendEnvironmentName" type:"string"`
CreateTime *string `locationName:"createTime" type:"string"`
Error *string `locationName:"error" type:"string"`
JobId *string `locationName:"jobId" type:"string"`
Operation *string `locationName:"operation" type:"string"`
Status *string `locationName:"status" type:"string"`
UpdateTime *string `locationName:"updateTime" type:"string"`
}
// String returns the string representation
func (s UpdateBackendJobOutput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s UpdateBackendJobOutput) GoString() string {
return s.String()
}
// SetAppId sets the AppId field's value.
func (s *UpdateBackendJobOutput) SetAppId(v string) *UpdateBackendJobOutput {
s.AppId = &v
return s
}
// SetBackendEnvironmentName sets the BackendEnvironmentName field's value.
func (s *UpdateBackendJobOutput) SetBackendEnvironmentName(v string) *UpdateBackendJobOutput {
s.BackendEnvironmentName = &v
return s
}
// SetCreateTime sets the CreateTime field's value.
func (s *UpdateBackendJobOutput) SetCreateTime(v string) *UpdateBackendJobOutput {
s.CreateTime = &v
return s
}
// SetError sets the Error field's value.
func (s *UpdateBackendJobOutput) SetError(v string) *UpdateBackendJobOutput {
s.Error = &v
return s
}
// SetJobId sets the JobId field's value.
func (s *UpdateBackendJobOutput) SetJobId(v string) *UpdateBackendJobOutput {
s.JobId = &v
return s
}
// SetOperation sets the Operation field's value.
func (s *UpdateBackendJobOutput) SetOperation(v string) *UpdateBackendJobOutput {
s.Operation = &v
return s
}
// SetStatus sets the Status field's value.
func (s *UpdateBackendJobOutput) SetStatus(v string) *UpdateBackendJobOutput {
s.Status = &v
return s
}
// SetUpdateTime sets the UpdateTime field's value.
func (s *UpdateBackendJobOutput) SetUpdateTime(v string) *UpdateBackendJobOutput {
s.UpdateTime = &v
return s
}
const (
// AdditionalConstraintsElementRequireDigit is a AdditionalConstraintsElement enum value
AdditionalConstraintsElementRequireDigit = "REQUIRE_DIGIT"
// AdditionalConstraintsElementRequireLowercase is a AdditionalConstraintsElement enum value
AdditionalConstraintsElementRequireLowercase = "REQUIRE_LOWERCASE"
// AdditionalConstraintsElementRequireSymbol is a AdditionalConstraintsElement enum value
AdditionalConstraintsElementRequireSymbol = "REQUIRE_SYMBOL"
// AdditionalConstraintsElementRequireUppercase is a AdditionalConstraintsElement enum value
AdditionalConstraintsElementRequireUppercase = "REQUIRE_UPPERCASE"
)
// AdditionalConstraintsElement_Values returns all elements of the AdditionalConstraintsElement enum
func AdditionalConstraintsElement_Values() []string {
return []string{
AdditionalConstraintsElementRequireDigit,
AdditionalConstraintsElementRequireLowercase,
AdditionalConstraintsElementRequireSymbol,
AdditionalConstraintsElementRequireUppercase,
}
}
const (
// AuthResourcesUserPoolOnly is a AuthResources enum value
AuthResourcesUserPoolOnly = "USER_POOL_ONLY"
// AuthResourcesIdentityPoolAndUserPool is a AuthResources enum value
AuthResourcesIdentityPoolAndUserPool = "IDENTITY_POOL_AND_USER_POOL"
)
// AuthResources_Values returns all elements of the AuthResources enum
func AuthResources_Values() []string {
return []string{
AuthResourcesUserPoolOnly,
AuthResourcesIdentityPoolAndUserPool,
}
}
const (
// DeliveryMethodEmail is a DeliveryMethod enum value
DeliveryMethodEmail = "EMAIL"
// DeliveryMethodSms is a DeliveryMethod enum value
DeliveryMethodSms = "SMS"
)
// DeliveryMethod_Values returns all elements of the DeliveryMethod enum
func DeliveryMethod_Values() []string {
return []string{
DeliveryMethodEmail,
DeliveryMethodSms,
}
}
const (
// MFAModeOn is a MFAMode enum value
MFAModeOn = "ON"
// MFAModeOff is a MFAMode enum value
MFAModeOff = "OFF"
// MFAModeOptional is a MFAMode enum value
MFAModeOptional = "OPTIONAL"
)
// MFAMode_Values returns all elements of the MFAMode enum
func MFAMode_Values() []string {
return []string{
MFAModeOn,
MFAModeOff,
MFAModeOptional,
}
}
const (
// MfaTypesElementSms is a MfaTypesElement enum value
MfaTypesElementSms = "SMS"
// MfaTypesElementTotp is a MfaTypesElement enum value
MfaTypesElementTotp = "TOTP"
)
// MfaTypesElement_Values returns all elements of the MfaTypesElement enum
func MfaTypesElement_Values() []string {
return []string{
MfaTypesElementSms,
MfaTypesElementTotp,
}
}
const (
// ModeApiKey is a Mode enum value
ModeApiKey = "API_KEY"
// ModeAwsIam is a Mode enum value
ModeAwsIam = "AWS_IAM"
// ModeAmazonCognitoUserPools is a Mode enum value
ModeAmazonCognitoUserPools = "AMAZON_COGNITO_USER_POOLS"
// ModeOpenidConnect is a Mode enum value
ModeOpenidConnect = "OPENID_CONNECT"
)
// Mode_Values returns all elements of the Mode enum
func Mode_Values() []string {
return []string{
ModeApiKey,
ModeAwsIam,
ModeAmazonCognitoUserPools,
ModeOpenidConnect,
}
}
const (
// OAuthGrantTypeCode is a OAuthGrantType enum value
OAuthGrantTypeCode = "CODE"
// OAuthGrantTypeImplicit is a OAuthGrantType enum value
OAuthGrantTypeImplicit = "IMPLICIT"
)
// OAuthGrantType_Values returns all elements of the OAuthGrantType enum
func OAuthGrantType_Values() []string {
return []string{
OAuthGrantTypeCode,
OAuthGrantTypeImplicit,
}
}
const (
// OAuthScopesElementPhone is a OAuthScopesElement enum value
OAuthScopesElementPhone = "PHONE"
// OAuthScopesElementEmail is a OAuthScopesElement enum value
OAuthScopesElementEmail = "EMAIL"
// OAuthScopesElementOpenid is a OAuthScopesElement enum value
OAuthScopesElementOpenid = "OPENID"
// OAuthScopesElementProfile is a OAuthScopesElement enum value
OAuthScopesElementProfile = "PROFILE"
// OAuthScopesElementAwsCognitoSigninUserAdmin is a OAuthScopesElement enum value
OAuthScopesElementAwsCognitoSigninUserAdmin = "AWS_COGNITO_SIGNIN_USER_ADMIN"
)
// OAuthScopesElement_Values returns all elements of the OAuthScopesElement enum
func OAuthScopesElement_Values() []string {
return []string{
OAuthScopesElementPhone,
OAuthScopesElementEmail,
OAuthScopesElementOpenid,
OAuthScopesElementProfile,
OAuthScopesElementAwsCognitoSigninUserAdmin,
}
}
const (
// RequiredSignUpAttributesElementAddress is a RequiredSignUpAttributesElement enum value
RequiredSignUpAttributesElementAddress = "ADDRESS"
// RequiredSignUpAttributesElementBirthdate is a RequiredSignUpAttributesElement enum value
RequiredSignUpAttributesElementBirthdate = "BIRTHDATE"
// RequiredSignUpAttributesElementEmail is a RequiredSignUpAttributesElement enum value
RequiredSignUpAttributesElementEmail = "EMAIL"
// RequiredSignUpAttributesElementFamilyName is a RequiredSignUpAttributesElement enum value
RequiredSignUpAttributesElementFamilyName = "FAMILY_NAME"
// RequiredSignUpAttributesElementGender is a RequiredSignUpAttributesElement enum value
RequiredSignUpAttributesElementGender = "GENDER"
// RequiredSignUpAttributesElementGivenName is a RequiredSignUpAttributesElement enum value
RequiredSignUpAttributesElementGivenName = "GIVEN_NAME"
// RequiredSignUpAttributesElementLocale is a RequiredSignUpAttributesElement enum value
RequiredSignUpAttributesElementLocale = "LOCALE"
// RequiredSignUpAttributesElementMiddleName is a RequiredSignUpAttributesElement enum value
RequiredSignUpAttributesElementMiddleName = "MIDDLE_NAME"
// RequiredSignUpAttributesElementName is a RequiredSignUpAttributesElement enum value
RequiredSignUpAttributesElementName = "NAME"
// RequiredSignUpAttributesElementNickname is a RequiredSignUpAttributesElement enum value
RequiredSignUpAttributesElementNickname = "NICKNAME"
// RequiredSignUpAttributesElementPhoneNumber is a RequiredSignUpAttributesElement enum value
RequiredSignUpAttributesElementPhoneNumber = "PHONE_NUMBER"
// RequiredSignUpAttributesElementPicture is a RequiredSignUpAttributesElement enum value
RequiredSignUpAttributesElementPicture = "PICTURE"
// RequiredSignUpAttributesElementPreferredUsername is a RequiredSignUpAttributesElement enum value
RequiredSignUpAttributesElementPreferredUsername = "PREFERRED_USERNAME"
// RequiredSignUpAttributesElementProfile is a RequiredSignUpAttributesElement enum value
RequiredSignUpAttributesElementProfile = "PROFILE"
// RequiredSignUpAttributesElementUpdatedAt is a RequiredSignUpAttributesElement enum value
RequiredSignUpAttributesElementUpdatedAt = "UPDATED_AT"
// RequiredSignUpAttributesElementWebsite is a RequiredSignUpAttributesElement enum value
RequiredSignUpAttributesElementWebsite = "WEBSITE"
// RequiredSignUpAttributesElementZoneInfo is a RequiredSignUpAttributesElement enum value
RequiredSignUpAttributesElementZoneInfo = "ZONE_INFO"
)
// RequiredSignUpAttributesElement_Values returns all elements of the RequiredSignUpAttributesElement enum
func RequiredSignUpAttributesElement_Values() []string {
return []string{
RequiredSignUpAttributesElementAddress,
RequiredSignUpAttributesElementBirthdate,
RequiredSignUpAttributesElementEmail,
RequiredSignUpAttributesElementFamilyName,
RequiredSignUpAttributesElementGender,
RequiredSignUpAttributesElementGivenName,
RequiredSignUpAttributesElementLocale,
RequiredSignUpAttributesElementMiddleName,
RequiredSignUpAttributesElementName,
RequiredSignUpAttributesElementNickname,
RequiredSignUpAttributesElementPhoneNumber,
RequiredSignUpAttributesElementPicture,
RequiredSignUpAttributesElementPreferredUsername,
RequiredSignUpAttributesElementProfile,
RequiredSignUpAttributesElementUpdatedAt,
RequiredSignUpAttributesElementWebsite,
RequiredSignUpAttributesElementZoneInfo,
}
}
const (
// ResolutionStrategyOptimisticConcurrency is a ResolutionStrategy enum value
ResolutionStrategyOptimisticConcurrency = "OPTIMISTIC_CONCURRENCY"
// ResolutionStrategyLambda is a ResolutionStrategy enum value
ResolutionStrategyLambda = "LAMBDA"
// ResolutionStrategyAutomerge is a ResolutionStrategy enum value
ResolutionStrategyAutomerge = "AUTOMERGE"
// ResolutionStrategyNone is a ResolutionStrategy enum value
ResolutionStrategyNone = "NONE"
)
// ResolutionStrategy_Values returns all elements of the ResolutionStrategy enum
func ResolutionStrategy_Values() []string {
return []string{
ResolutionStrategyOptimisticConcurrency,
ResolutionStrategyLambda,
ResolutionStrategyAutomerge,
ResolutionStrategyNone,
}
}
const (
// ServiceCognito is a Service enum value
ServiceCognito = "COGNITO"
)
// Service_Values returns all elements of the Service enum
func Service_Values() []string {
return []string{
ServiceCognito,
}
}
const (
// SignInMethodEmail is a SignInMethod enum value
SignInMethodEmail = "EMAIL"
// SignInMethodEmailAndPhoneNumber is a SignInMethod enum value
SignInMethodEmailAndPhoneNumber = "EMAIL_AND_PHONE_NUMBER"
// SignInMethodPhoneNumber is a SignInMethod enum value
SignInMethodPhoneNumber = "PHONE_NUMBER"
// SignInMethodUsername is a SignInMethod enum value
SignInMethodUsername = "USERNAME"
)
// SignInMethod_Values returns all elements of the SignInMethod enum
func SignInMethod_Values() []string {
return []string{
SignInMethodEmail,
SignInMethodEmailAndPhoneNumber,
SignInMethodPhoneNumber,
SignInMethodUsername,
}
}
const (
// StatusLatest is a Status enum value
StatusLatest = "LATEST"
// StatusStale is a Status enum value
StatusStale = "STALE"
)
// Status_Values returns all elements of the Status enum
func Status_Values() []string {
return []string{
StatusLatest,
StatusStale,
}
}
| 7,326 |
session-manager-plugin | aws | Go | // Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
// Package amplifybackend provides the client and types for making API
// requests to AmplifyBackend.
//
// AWS Amplify Admin API
//
// See https://docs.aws.amazon.com/goto/WebAPI/amplifybackend-2020-08-11 for more information on this service.
//
// See amplifybackend package documentation for more information.
// https://docs.aws.amazon.com/sdk-for-go/api/service/amplifybackend/
//
// Using the Client
//
// To contact AmplifyBackend 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 AmplifyBackend client AmplifyBackend for more
// information on creating client for this service.
// https://docs.aws.amazon.com/sdk-for-go/api/service/amplifybackend/#New
package amplifybackend
| 29 |
session-manager-plugin | aws | Go | // Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
package amplifybackend
import (
"github.com/aws/aws-sdk-go/private/protocol"
)
const (
// ErrCodeBadRequestException for service response error code
// "BadRequestException".
//
// An error returned if a request is not formed properly.
ErrCodeBadRequestException = "BadRequestException"
// ErrCodeGatewayTimeoutException for service response error code
// "GatewayTimeoutException".
//
// An error returned if there's a temporary issue with the service.
ErrCodeGatewayTimeoutException = "GatewayTimeoutException"
// ErrCodeNotFoundException for service response error code
// "NotFoundException".
//
// An error returned when a specific resource type is not found.
ErrCodeNotFoundException = "NotFoundException"
// ErrCodeTooManyRequestsException for service response error code
// "TooManyRequestsException".
//
// An error that is returned when a limit of a specific type has been exceeded.
ErrCodeTooManyRequestsException = "TooManyRequestsException"
)
var exceptionFromCode = map[string]func(protocol.ResponseMetadata) error{
"BadRequestException": newErrorBadRequestException,
"GatewayTimeoutException": newErrorGatewayTimeoutException,
"NotFoundException": newErrorNotFoundException,
"TooManyRequestsException": newErrorTooManyRequestsException,
}
| 42 |
session-manager-plugin | aws | Go | // Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
package amplifybackend
import (
"github.com/aws/aws-sdk-go/aws"
"github.com/aws/aws-sdk-go/aws/client"
"github.com/aws/aws-sdk-go/aws/client/metadata"
"github.com/aws/aws-sdk-go/aws/request"
"github.com/aws/aws-sdk-go/aws/signer/v4"
"github.com/aws/aws-sdk-go/private/protocol"
"github.com/aws/aws-sdk-go/private/protocol/restjson"
)
// AmplifyBackend provides the API operation methods for making requests to
// AmplifyBackend. See this package's package overview docs
// for details on the service.
//
// AmplifyBackend methods are safe to use concurrently. It is not safe to
// modify mutate any of the struct's properties though.
type AmplifyBackend struct {
*client.Client
}
// Used for custom client initialization logic
var initClient func(*client.Client)
// Used for custom request initialization logic
var initRequest func(*request.Request)
// Service information constants
const (
ServiceName = "AmplifyBackend" // Name of service.
EndpointsID = "amplifybackend" // ID to lookup a service endpoint with.
ServiceID = "AmplifyBackend" // ServiceID is a unique identifier of a specific service.
)
// New creates a new instance of the AmplifyBackend 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 AmplifyBackend client from just a session.
// svc := amplifybackend.New(mySession)
//
// // Create a AmplifyBackend client with additional configuration
// svc := amplifybackend.New(mySession, aws.NewConfig().WithRegion("us-west-2"))
func New(p client.ConfigProvider, cfgs ...*aws.Config) *AmplifyBackend {
c := p.ClientConfig(EndpointsID, cfgs...)
if c.SigningNameDerived || len(c.SigningName) == 0 {
c.SigningName = "amplifybackend"
}
return newClient(*c.Config, c.Handlers, c.PartitionID, c.Endpoint, c.SigningRegion, c.SigningName)
}
// newClient creates, initializes and returns a new service client instance.
func newClient(cfg aws.Config, handlers request.Handlers, partitionID, endpoint, signingRegion, signingName string) *AmplifyBackend {
svc := &AmplifyBackend{
Client: client.New(
cfg,
metadata.ClientInfo{
ServiceName: ServiceName,
ServiceID: ServiceID,
SigningName: signingName,
SigningRegion: signingRegion,
PartitionID: partitionID,
Endpoint: endpoint,
APIVersion: "2020-08-11",
},
handlers,
),
}
// Handlers
svc.Handlers.Sign.PushBackNamed(v4.SignRequestHandler)
svc.Handlers.Build.PushBackNamed(restjson.BuildHandler)
svc.Handlers.Unmarshal.PushBackNamed(restjson.UnmarshalHandler)
svc.Handlers.UnmarshalMeta.PushBackNamed(restjson.UnmarshalMetaHandler)
svc.Handlers.UnmarshalError.PushBackNamed(
protocol.NewUnmarshalErrorHandler(restjson.NewUnmarshalTypedError(exceptionFromCode)).NamedHandler(),
)
// Run custom client initialization if present
if initClient != nil {
initClient(svc.Client)
}
return svc
}
// newRequest creates a new request for a AmplifyBackend operation and runs any
// custom request initialization.
func (c *AmplifyBackend) newRequest(op *request.Operation, params, data interface{}) *request.Request {
req := c.NewRequest(op, params, data)
// Run custom request initialization if present
if initRequest != nil {
initRequest(req)
}
return req
}
| 105 |
session-manager-plugin | aws | Go | // Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
// Package amplifybackendiface provides an interface to enable mocking the AmplifyBackend service client
// for testing your code.
//
// It is important to note that this interface will have breaking changes
// when the service model is updated and adds new API operations, paginators,
// and waiters.
package amplifybackendiface
import (
"github.com/aws/aws-sdk-go/aws"
"github.com/aws/aws-sdk-go/aws/request"
"github.com/aws/aws-sdk-go/service/amplifybackend"
)
// AmplifyBackendAPI provides an interface to enable mocking the
// amplifybackend.AmplifyBackend service client's API operation,
// paginators, and waiters. This make unit testing your code that calls out
// to the SDK's service client's calls easier.
//
// The best way to use this interface is so the SDK's service client's calls
// can be stubbed out for unit testing your code with the SDK without needing
// to inject custom request handlers into the SDK's request pipeline.
//
// // myFunc uses an SDK service client to make a request to
// // AmplifyBackend.
// func myFunc(svc amplifybackendiface.AmplifyBackendAPI) bool {
// // Make svc.CloneBackend request
// }
//
// func main() {
// sess := session.New()
// svc := amplifybackend.New(sess)
//
// myFunc(svc)
// }
//
// In your _test.go file:
//
// // Define a mock struct to be used in your unit tests of myFunc.
// type mockAmplifyBackendClient struct {
// amplifybackendiface.AmplifyBackendAPI
// }
// func (m *mockAmplifyBackendClient) CloneBackend(input *amplifybackend.CloneBackendInput) (*amplifybackend.CloneBackendOutput, error) {
// // mock response/functionality
// }
//
// func TestMyFunc(t *testing.T) {
// // Setup Test
// mockSvc := &mockAmplifyBackendClient{}
//
// myfunc(mockSvc)
//
// // Verify myFunc's functionality
// }
//
// It is important to note that this interface will have breaking changes
// when the service model is updated and adds new API operations, paginators,
// and waiters. Its suggested to use the pattern above for testing, or using
// tooling to generate mocks to satisfy the interfaces.
type AmplifyBackendAPI interface {
CloneBackend(*amplifybackend.CloneBackendInput) (*amplifybackend.CloneBackendOutput, error)
CloneBackendWithContext(aws.Context, *amplifybackend.CloneBackendInput, ...request.Option) (*amplifybackend.CloneBackendOutput, error)
CloneBackendRequest(*amplifybackend.CloneBackendInput) (*request.Request, *amplifybackend.CloneBackendOutput)
CreateBackend(*amplifybackend.CreateBackendInput) (*amplifybackend.CreateBackendOutput, error)
CreateBackendWithContext(aws.Context, *amplifybackend.CreateBackendInput, ...request.Option) (*amplifybackend.CreateBackendOutput, error)
CreateBackendRequest(*amplifybackend.CreateBackendInput) (*request.Request, *amplifybackend.CreateBackendOutput)
CreateBackendAPI(*amplifybackend.CreateBackendAPIInput) (*amplifybackend.CreateBackendAPIOutput, error)
CreateBackendAPIWithContext(aws.Context, *amplifybackend.CreateBackendAPIInput, ...request.Option) (*amplifybackend.CreateBackendAPIOutput, error)
CreateBackendAPIRequest(*amplifybackend.CreateBackendAPIInput) (*request.Request, *amplifybackend.CreateBackendAPIOutput)
CreateBackendAuth(*amplifybackend.CreateBackendAuthInput) (*amplifybackend.CreateBackendAuthOutput, error)
CreateBackendAuthWithContext(aws.Context, *amplifybackend.CreateBackendAuthInput, ...request.Option) (*amplifybackend.CreateBackendAuthOutput, error)
CreateBackendAuthRequest(*amplifybackend.CreateBackendAuthInput) (*request.Request, *amplifybackend.CreateBackendAuthOutput)
CreateBackendConfig(*amplifybackend.CreateBackendConfigInput) (*amplifybackend.CreateBackendConfigOutput, error)
CreateBackendConfigWithContext(aws.Context, *amplifybackend.CreateBackendConfigInput, ...request.Option) (*amplifybackend.CreateBackendConfigOutput, error)
CreateBackendConfigRequest(*amplifybackend.CreateBackendConfigInput) (*request.Request, *amplifybackend.CreateBackendConfigOutput)
CreateToken(*amplifybackend.CreateTokenInput) (*amplifybackend.CreateTokenOutput, error)
CreateTokenWithContext(aws.Context, *amplifybackend.CreateTokenInput, ...request.Option) (*amplifybackend.CreateTokenOutput, error)
CreateTokenRequest(*amplifybackend.CreateTokenInput) (*request.Request, *amplifybackend.CreateTokenOutput)
DeleteBackend(*amplifybackend.DeleteBackendInput) (*amplifybackend.DeleteBackendOutput, error)
DeleteBackendWithContext(aws.Context, *amplifybackend.DeleteBackendInput, ...request.Option) (*amplifybackend.DeleteBackendOutput, error)
DeleteBackendRequest(*amplifybackend.DeleteBackendInput) (*request.Request, *amplifybackend.DeleteBackendOutput)
DeleteBackendAPI(*amplifybackend.DeleteBackendAPIInput) (*amplifybackend.DeleteBackendAPIOutput, error)
DeleteBackendAPIWithContext(aws.Context, *amplifybackend.DeleteBackendAPIInput, ...request.Option) (*amplifybackend.DeleteBackendAPIOutput, error)
DeleteBackendAPIRequest(*amplifybackend.DeleteBackendAPIInput) (*request.Request, *amplifybackend.DeleteBackendAPIOutput)
DeleteBackendAuth(*amplifybackend.DeleteBackendAuthInput) (*amplifybackend.DeleteBackendAuthOutput, error)
DeleteBackendAuthWithContext(aws.Context, *amplifybackend.DeleteBackendAuthInput, ...request.Option) (*amplifybackend.DeleteBackendAuthOutput, error)
DeleteBackendAuthRequest(*amplifybackend.DeleteBackendAuthInput) (*request.Request, *amplifybackend.DeleteBackendAuthOutput)
DeleteToken(*amplifybackend.DeleteTokenInput) (*amplifybackend.DeleteTokenOutput, error)
DeleteTokenWithContext(aws.Context, *amplifybackend.DeleteTokenInput, ...request.Option) (*amplifybackend.DeleteTokenOutput, error)
DeleteTokenRequest(*amplifybackend.DeleteTokenInput) (*request.Request, *amplifybackend.DeleteTokenOutput)
GenerateBackendAPIModels(*amplifybackend.GenerateBackendAPIModelsInput) (*amplifybackend.GenerateBackendAPIModelsOutput, error)
GenerateBackendAPIModelsWithContext(aws.Context, *amplifybackend.GenerateBackendAPIModelsInput, ...request.Option) (*amplifybackend.GenerateBackendAPIModelsOutput, error)
GenerateBackendAPIModelsRequest(*amplifybackend.GenerateBackendAPIModelsInput) (*request.Request, *amplifybackend.GenerateBackendAPIModelsOutput)
GetBackend(*amplifybackend.GetBackendInput) (*amplifybackend.GetBackendOutput, error)
GetBackendWithContext(aws.Context, *amplifybackend.GetBackendInput, ...request.Option) (*amplifybackend.GetBackendOutput, error)
GetBackendRequest(*amplifybackend.GetBackendInput) (*request.Request, *amplifybackend.GetBackendOutput)
GetBackendAPI(*amplifybackend.GetBackendAPIInput) (*amplifybackend.GetBackendAPIOutput, error)
GetBackendAPIWithContext(aws.Context, *amplifybackend.GetBackendAPIInput, ...request.Option) (*amplifybackend.GetBackendAPIOutput, error)
GetBackendAPIRequest(*amplifybackend.GetBackendAPIInput) (*request.Request, *amplifybackend.GetBackendAPIOutput)
GetBackendAPIModels(*amplifybackend.GetBackendAPIModelsInput) (*amplifybackend.GetBackendAPIModelsOutput, error)
GetBackendAPIModelsWithContext(aws.Context, *amplifybackend.GetBackendAPIModelsInput, ...request.Option) (*amplifybackend.GetBackendAPIModelsOutput, error)
GetBackendAPIModelsRequest(*amplifybackend.GetBackendAPIModelsInput) (*request.Request, *amplifybackend.GetBackendAPIModelsOutput)
GetBackendAuth(*amplifybackend.GetBackendAuthInput) (*amplifybackend.GetBackendAuthOutput, error)
GetBackendAuthWithContext(aws.Context, *amplifybackend.GetBackendAuthInput, ...request.Option) (*amplifybackend.GetBackendAuthOutput, error)
GetBackendAuthRequest(*amplifybackend.GetBackendAuthInput) (*request.Request, *amplifybackend.GetBackendAuthOutput)
GetBackendJob(*amplifybackend.GetBackendJobInput) (*amplifybackend.GetBackendJobOutput, error)
GetBackendJobWithContext(aws.Context, *amplifybackend.GetBackendJobInput, ...request.Option) (*amplifybackend.GetBackendJobOutput, error)
GetBackendJobRequest(*amplifybackend.GetBackendJobInput) (*request.Request, *amplifybackend.GetBackendJobOutput)
GetToken(*amplifybackend.GetTokenInput) (*amplifybackend.GetTokenOutput, error)
GetTokenWithContext(aws.Context, *amplifybackend.GetTokenInput, ...request.Option) (*amplifybackend.GetTokenOutput, error)
GetTokenRequest(*amplifybackend.GetTokenInput) (*request.Request, *amplifybackend.GetTokenOutput)
ImportBackendAuth(*amplifybackend.ImportBackendAuthInput) (*amplifybackend.ImportBackendAuthOutput, error)
ImportBackendAuthWithContext(aws.Context, *amplifybackend.ImportBackendAuthInput, ...request.Option) (*amplifybackend.ImportBackendAuthOutput, error)
ImportBackendAuthRequest(*amplifybackend.ImportBackendAuthInput) (*request.Request, *amplifybackend.ImportBackendAuthOutput)
ListBackendJobs(*amplifybackend.ListBackendJobsInput) (*amplifybackend.ListBackendJobsOutput, error)
ListBackendJobsWithContext(aws.Context, *amplifybackend.ListBackendJobsInput, ...request.Option) (*amplifybackend.ListBackendJobsOutput, error)
ListBackendJobsRequest(*amplifybackend.ListBackendJobsInput) (*request.Request, *amplifybackend.ListBackendJobsOutput)
ListBackendJobsPages(*amplifybackend.ListBackendJobsInput, func(*amplifybackend.ListBackendJobsOutput, bool) bool) error
ListBackendJobsPagesWithContext(aws.Context, *amplifybackend.ListBackendJobsInput, func(*amplifybackend.ListBackendJobsOutput, bool) bool, ...request.Option) error
RemoveAllBackends(*amplifybackend.RemoveAllBackendsInput) (*amplifybackend.RemoveAllBackendsOutput, error)
RemoveAllBackendsWithContext(aws.Context, *amplifybackend.RemoveAllBackendsInput, ...request.Option) (*amplifybackend.RemoveAllBackendsOutput, error)
RemoveAllBackendsRequest(*amplifybackend.RemoveAllBackendsInput) (*request.Request, *amplifybackend.RemoveAllBackendsOutput)
RemoveBackendConfig(*amplifybackend.RemoveBackendConfigInput) (*amplifybackend.RemoveBackendConfigOutput, error)
RemoveBackendConfigWithContext(aws.Context, *amplifybackend.RemoveBackendConfigInput, ...request.Option) (*amplifybackend.RemoveBackendConfigOutput, error)
RemoveBackendConfigRequest(*amplifybackend.RemoveBackendConfigInput) (*request.Request, *amplifybackend.RemoveBackendConfigOutput)
UpdateBackendAPI(*amplifybackend.UpdateBackendAPIInput) (*amplifybackend.UpdateBackendAPIOutput, error)
UpdateBackendAPIWithContext(aws.Context, *amplifybackend.UpdateBackendAPIInput, ...request.Option) (*amplifybackend.UpdateBackendAPIOutput, error)
UpdateBackendAPIRequest(*amplifybackend.UpdateBackendAPIInput) (*request.Request, *amplifybackend.UpdateBackendAPIOutput)
UpdateBackendAuth(*amplifybackend.UpdateBackendAuthInput) (*amplifybackend.UpdateBackendAuthOutput, error)
UpdateBackendAuthWithContext(aws.Context, *amplifybackend.UpdateBackendAuthInput, ...request.Option) (*amplifybackend.UpdateBackendAuthOutput, error)
UpdateBackendAuthRequest(*amplifybackend.UpdateBackendAuthInput) (*request.Request, *amplifybackend.UpdateBackendAuthOutput)
UpdateBackendConfig(*amplifybackend.UpdateBackendConfigInput) (*amplifybackend.UpdateBackendConfigOutput, error)
UpdateBackendConfigWithContext(aws.Context, *amplifybackend.UpdateBackendConfigInput, ...request.Option) (*amplifybackend.UpdateBackendConfigOutput, error)
UpdateBackendConfigRequest(*amplifybackend.UpdateBackendConfigInput) (*request.Request, *amplifybackend.UpdateBackendConfigOutput)
UpdateBackendJob(*amplifybackend.UpdateBackendJobInput) (*amplifybackend.UpdateBackendJobOutput, error)
UpdateBackendJobWithContext(aws.Context, *amplifybackend.UpdateBackendJobInput, ...request.Option) (*amplifybackend.UpdateBackendJobOutput, error)
UpdateBackendJobRequest(*amplifybackend.UpdateBackendJobInput) (*request.Request, *amplifybackend.UpdateBackendJobOutput)
}
var _ AmplifyBackendAPI = (*amplifybackend.AmplifyBackend)(nil)
| 168 |
session-manager-plugin | aws | Go | package apigateway
import (
"github.com/aws/aws-sdk-go/aws/client"
"github.com/aws/aws-sdk-go/aws/request"
)
func init() {
initClient = func(c *client.Client) {
c.Handlers.Build.PushBack(func(r *request.Request) {
r.HTTPRequest.Header.Add("Accept", "application/json")
})
}
}
| 15 |
session-manager-plugin | aws | Go | // Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
// Package apigateway provides the client and types for making API
// requests to Amazon API Gateway.
//
// Amazon API Gateway helps developers deliver robust, secure, and scalable
// mobile and web application back ends. API Gateway allows developers to securely
// connect mobile and web applications to APIs that run on AWS Lambda, Amazon
// EC2, or other publicly addressable web services that are hosted outside of
// AWS.
//
// See apigateway package documentation for more information.
// https://docs.aws.amazon.com/sdk-for-go/api/service/apigateway/
//
// Using the Client
//
// To contact Amazon API Gateway 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 Amazon API Gateway client APIGateway for more
// information on creating client for this service.
// https://docs.aws.amazon.com/sdk-for-go/api/service/apigateway/#New
package apigateway
| 31 |
session-manager-plugin | aws | Go | // Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
package apigateway
import (
"github.com/aws/aws-sdk-go/private/protocol"
)
const (
// ErrCodeBadRequestException for service response error code
// "BadRequestException".
//
// The submitted request is not valid, for example, the input is incomplete
// or incorrect. See the accompanying error message for details.
ErrCodeBadRequestException = "BadRequestException"
// ErrCodeConflictException for service response error code
// "ConflictException".
//
// The request configuration has conflicts. For details, see the accompanying
// error message.
ErrCodeConflictException = "ConflictException"
// ErrCodeLimitExceededException for service response error code
// "LimitExceededException".
//
// The request exceeded the rate limit. Retry after the specified time period.
ErrCodeLimitExceededException = "LimitExceededException"
// ErrCodeNotFoundException for service response error code
// "NotFoundException".
//
// The requested resource is not found. Make sure that the request URI is correct.
ErrCodeNotFoundException = "NotFoundException"
// ErrCodeServiceUnavailableException for service response error code
// "ServiceUnavailableException".
//
// The requested service is not available. For details see the accompanying
// error message. Retry after the specified time period.
ErrCodeServiceUnavailableException = "ServiceUnavailableException"
// ErrCodeTooManyRequestsException for service response error code
// "TooManyRequestsException".
//
// The request has reached its throttling limit. Retry after the specified time
// period.
ErrCodeTooManyRequestsException = "TooManyRequestsException"
// ErrCodeUnauthorizedException for service response error code
// "UnauthorizedException".
//
// The request is denied because the caller has insufficient permissions.
ErrCodeUnauthorizedException = "UnauthorizedException"
)
var exceptionFromCode = map[string]func(protocol.ResponseMetadata) error{
"BadRequestException": newErrorBadRequestException,
"ConflictException": newErrorConflictException,
"LimitExceededException": newErrorLimitExceededException,
"NotFoundException": newErrorNotFoundException,
"ServiceUnavailableException": newErrorServiceUnavailableException,
"TooManyRequestsException": newErrorTooManyRequestsException,
"UnauthorizedException": newErrorUnauthorizedException,
}
| 67 |
session-manager-plugin | aws | Go | // Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
// +build go1.15,integration
package apigateway_test
import (
"context"
"testing"
"time"
"github.com/aws/aws-sdk-go/aws"
"github.com/aws/aws-sdk-go/aws/awserr"
"github.com/aws/aws-sdk-go/aws/request"
"github.com/aws/aws-sdk-go/awstesting/integration"
"github.com/aws/aws-sdk-go/service/apigateway"
)
var _ aws.Config
var _ awserr.Error
var _ request.Request
func TestInteg_00_GetDomainNames(t *testing.T) {
ctx, cancelFn := context.WithTimeout(context.Background(), 5*time.Second)
defer cancelFn()
sess := integration.SessionWithDefaultRegion("us-west-2")
svc := apigateway.New(sess)
params := &apigateway.GetDomainNamesInput{}
_, err := svc.GetDomainNamesWithContext(ctx, params, func(r *request.Request) {
r.Handlers.Validate.RemoveByName("core.ValidateParametersHandler")
})
if err != nil {
t.Errorf("expect no error, got %v", err)
}
}
func TestInteg_01_CreateUsagePlanKey(t *testing.T) {
ctx, cancelFn := context.WithTimeout(context.Background(), 5*time.Second)
defer cancelFn()
sess := integration.SessionWithDefaultRegion("us-west-2")
svc := apigateway.New(sess)
params := &apigateway.CreateUsagePlanKeyInput{
KeyId: aws.String("bar"),
KeyType: aws.String("fixx"),
UsagePlanId: aws.String("foo"),
}
_, err := svc.CreateUsagePlanKeyWithContext(ctx, params, func(r *request.Request) {
r.Handlers.Validate.RemoveByName("core.ValidateParametersHandler")
})
if err == nil {
t.Fatalf("expect request to fail")
}
aerr, ok := err.(awserr.RequestFailure)
if !ok {
t.Fatalf("expect awserr, was %T", err)
}
if len(aerr.Code()) == 0 {
t.Errorf("expect non-empty error code")
}
if len(aerr.Message()) == 0 {
t.Errorf("expect non-empty error message")
}
if v := aerr.Code(); v == request.ErrCodeSerialization {
t.Errorf("expect API error code got serialization failure")
}
}
| 68 |
session-manager-plugin | aws | Go | // Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
package apigateway
import (
"github.com/aws/aws-sdk-go/aws"
"github.com/aws/aws-sdk-go/aws/client"
"github.com/aws/aws-sdk-go/aws/client/metadata"
"github.com/aws/aws-sdk-go/aws/request"
"github.com/aws/aws-sdk-go/aws/signer/v4"
"github.com/aws/aws-sdk-go/private/protocol"
"github.com/aws/aws-sdk-go/private/protocol/restjson"
)
// APIGateway provides the API operation methods for making requests to
// Amazon API Gateway. See this package's package overview docs
// for details on the service.
//
// APIGateway methods are safe to use concurrently. It is not safe to
// modify mutate any of the struct's properties though.
type APIGateway struct {
*client.Client
}
// Used for custom client initialization logic
var initClient func(*client.Client)
// Used for custom request initialization logic
var initRequest func(*request.Request)
// Service information constants
const (
ServiceName = "apigateway" // Name of service.
EndpointsID = ServiceName // ID to lookup a service endpoint with.
ServiceID = "API Gateway" // ServiceID is a unique identifier of a specific service.
)
// New creates a new instance of the APIGateway 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 APIGateway client from just a session.
// svc := apigateway.New(mySession)
//
// // Create a APIGateway client with additional configuration
// svc := apigateway.New(mySession, aws.NewConfig().WithRegion("us-west-2"))
func New(p client.ConfigProvider, cfgs ...*aws.Config) *APIGateway {
c := p.ClientConfig(EndpointsID, cfgs...)
return newClient(*c.Config, c.Handlers, c.PartitionID, c.Endpoint, c.SigningRegion, c.SigningName)
}
// newClient creates, initializes and returns a new service client instance.
func newClient(cfg aws.Config, handlers request.Handlers, partitionID, endpoint, signingRegion, signingName string) *APIGateway {
svc := &APIGateway{
Client: client.New(
cfg,
metadata.ClientInfo{
ServiceName: ServiceName,
ServiceID: ServiceID,
SigningName: signingName,
SigningRegion: signingRegion,
PartitionID: partitionID,
Endpoint: endpoint,
APIVersion: "2015-07-09",
},
handlers,
),
}
// Handlers
svc.Handlers.Sign.PushBackNamed(v4.SignRequestHandler)
svc.Handlers.Build.PushBackNamed(restjson.BuildHandler)
svc.Handlers.Unmarshal.PushBackNamed(restjson.UnmarshalHandler)
svc.Handlers.UnmarshalMeta.PushBackNamed(restjson.UnmarshalMetaHandler)
svc.Handlers.UnmarshalError.PushBackNamed(
protocol.NewUnmarshalErrorHandler(restjson.NewUnmarshalTypedError(exceptionFromCode)).NamedHandler(),
)
// Run custom client initialization if present
if initClient != nil {
initClient(svc.Client)
}
return svc
}
// newRequest creates a new request for a APIGateway operation and runs any
// custom request initialization.
func (c *APIGateway) newRequest(op *request.Operation, params, data interface{}) *request.Request {
req := c.NewRequest(op, params, data)
// Run custom request initialization if present
if initRequest != nil {
initRequest(req)
}
return req
}
| 102 |
session-manager-plugin | aws | Go | // Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
// Package apigatewayiface provides an interface to enable mocking the Amazon API Gateway service client
// for testing your code.
//
// It is important to note that this interface will have breaking changes
// when the service model is updated and adds new API operations, paginators,
// and waiters.
package apigatewayiface
import (
"github.com/aws/aws-sdk-go/aws"
"github.com/aws/aws-sdk-go/aws/request"
"github.com/aws/aws-sdk-go/service/apigateway"
)
// APIGatewayAPI provides an interface to enable mocking the
// apigateway.APIGateway service client's API operation,
// paginators, and waiters. This make unit testing your code that calls out
// to the SDK's service client's calls easier.
//
// The best way to use this interface is so the SDK's service client's calls
// can be stubbed out for unit testing your code with the SDK without needing
// to inject custom request handlers into the SDK's request pipeline.
//
// // myFunc uses an SDK service client to make a request to
// // Amazon API Gateway.
// func myFunc(svc apigatewayiface.APIGatewayAPI) bool {
// // Make svc.CreateApiKey request
// }
//
// func main() {
// sess := session.New()
// svc := apigateway.New(sess)
//
// myFunc(svc)
// }
//
// In your _test.go file:
//
// // Define a mock struct to be used in your unit tests of myFunc.
// type mockAPIGatewayClient struct {
// apigatewayiface.APIGatewayAPI
// }
// func (m *mockAPIGatewayClient) CreateApiKey(input *apigateway.CreateApiKeyInput) (*apigateway.ApiKey, error) {
// // mock response/functionality
// }
//
// func TestMyFunc(t *testing.T) {
// // Setup Test
// mockSvc := &mockAPIGatewayClient{}
//
// myfunc(mockSvc)
//
// // Verify myFunc's functionality
// }
//
// It is important to note that this interface will have breaking changes
// when the service model is updated and adds new API operations, paginators,
// and waiters. Its suggested to use the pattern above for testing, or using
// tooling to generate mocks to satisfy the interfaces.
type APIGatewayAPI interface {
CreateApiKey(*apigateway.CreateApiKeyInput) (*apigateway.ApiKey, error)
CreateApiKeyWithContext(aws.Context, *apigateway.CreateApiKeyInput, ...request.Option) (*apigateway.ApiKey, error)
CreateApiKeyRequest(*apigateway.CreateApiKeyInput) (*request.Request, *apigateway.ApiKey)
CreateAuthorizer(*apigateway.CreateAuthorizerInput) (*apigateway.Authorizer, error)
CreateAuthorizerWithContext(aws.Context, *apigateway.CreateAuthorizerInput, ...request.Option) (*apigateway.Authorizer, error)
CreateAuthorizerRequest(*apigateway.CreateAuthorizerInput) (*request.Request, *apigateway.Authorizer)
CreateBasePathMapping(*apigateway.CreateBasePathMappingInput) (*apigateway.BasePathMapping, error)
CreateBasePathMappingWithContext(aws.Context, *apigateway.CreateBasePathMappingInput, ...request.Option) (*apigateway.BasePathMapping, error)
CreateBasePathMappingRequest(*apigateway.CreateBasePathMappingInput) (*request.Request, *apigateway.BasePathMapping)
CreateDeployment(*apigateway.CreateDeploymentInput) (*apigateway.Deployment, error)
CreateDeploymentWithContext(aws.Context, *apigateway.CreateDeploymentInput, ...request.Option) (*apigateway.Deployment, error)
CreateDeploymentRequest(*apigateway.CreateDeploymentInput) (*request.Request, *apigateway.Deployment)
CreateDocumentationPart(*apigateway.CreateDocumentationPartInput) (*apigateway.DocumentationPart, error)
CreateDocumentationPartWithContext(aws.Context, *apigateway.CreateDocumentationPartInput, ...request.Option) (*apigateway.DocumentationPart, error)
CreateDocumentationPartRequest(*apigateway.CreateDocumentationPartInput) (*request.Request, *apigateway.DocumentationPart)
CreateDocumentationVersion(*apigateway.CreateDocumentationVersionInput) (*apigateway.DocumentationVersion, error)
CreateDocumentationVersionWithContext(aws.Context, *apigateway.CreateDocumentationVersionInput, ...request.Option) (*apigateway.DocumentationVersion, error)
CreateDocumentationVersionRequest(*apigateway.CreateDocumentationVersionInput) (*request.Request, *apigateway.DocumentationVersion)
CreateDomainName(*apigateway.CreateDomainNameInput) (*apigateway.DomainName, error)
CreateDomainNameWithContext(aws.Context, *apigateway.CreateDomainNameInput, ...request.Option) (*apigateway.DomainName, error)
CreateDomainNameRequest(*apigateway.CreateDomainNameInput) (*request.Request, *apigateway.DomainName)
CreateModel(*apigateway.CreateModelInput) (*apigateway.Model, error)
CreateModelWithContext(aws.Context, *apigateway.CreateModelInput, ...request.Option) (*apigateway.Model, error)
CreateModelRequest(*apigateway.CreateModelInput) (*request.Request, *apigateway.Model)
CreateRequestValidator(*apigateway.CreateRequestValidatorInput) (*apigateway.UpdateRequestValidatorOutput, error)
CreateRequestValidatorWithContext(aws.Context, *apigateway.CreateRequestValidatorInput, ...request.Option) (*apigateway.UpdateRequestValidatorOutput, error)
CreateRequestValidatorRequest(*apigateway.CreateRequestValidatorInput) (*request.Request, *apigateway.UpdateRequestValidatorOutput)
CreateResource(*apigateway.CreateResourceInput) (*apigateway.Resource, error)
CreateResourceWithContext(aws.Context, *apigateway.CreateResourceInput, ...request.Option) (*apigateway.Resource, error)
CreateResourceRequest(*apigateway.CreateResourceInput) (*request.Request, *apigateway.Resource)
CreateRestApi(*apigateway.CreateRestApiInput) (*apigateway.RestApi, error)
CreateRestApiWithContext(aws.Context, *apigateway.CreateRestApiInput, ...request.Option) (*apigateway.RestApi, error)
CreateRestApiRequest(*apigateway.CreateRestApiInput) (*request.Request, *apigateway.RestApi)
CreateStage(*apigateway.CreateStageInput) (*apigateway.Stage, error)
CreateStageWithContext(aws.Context, *apigateway.CreateStageInput, ...request.Option) (*apigateway.Stage, error)
CreateStageRequest(*apigateway.CreateStageInput) (*request.Request, *apigateway.Stage)
CreateUsagePlan(*apigateway.CreateUsagePlanInput) (*apigateway.UsagePlan, error)
CreateUsagePlanWithContext(aws.Context, *apigateway.CreateUsagePlanInput, ...request.Option) (*apigateway.UsagePlan, error)
CreateUsagePlanRequest(*apigateway.CreateUsagePlanInput) (*request.Request, *apigateway.UsagePlan)
CreateUsagePlanKey(*apigateway.CreateUsagePlanKeyInput) (*apigateway.UsagePlanKey, error)
CreateUsagePlanKeyWithContext(aws.Context, *apigateway.CreateUsagePlanKeyInput, ...request.Option) (*apigateway.UsagePlanKey, error)
CreateUsagePlanKeyRequest(*apigateway.CreateUsagePlanKeyInput) (*request.Request, *apigateway.UsagePlanKey)
CreateVpcLink(*apigateway.CreateVpcLinkInput) (*apigateway.UpdateVpcLinkOutput, error)
CreateVpcLinkWithContext(aws.Context, *apigateway.CreateVpcLinkInput, ...request.Option) (*apigateway.UpdateVpcLinkOutput, error)
CreateVpcLinkRequest(*apigateway.CreateVpcLinkInput) (*request.Request, *apigateway.UpdateVpcLinkOutput)
DeleteApiKey(*apigateway.DeleteApiKeyInput) (*apigateway.DeleteApiKeyOutput, error)
DeleteApiKeyWithContext(aws.Context, *apigateway.DeleteApiKeyInput, ...request.Option) (*apigateway.DeleteApiKeyOutput, error)
DeleteApiKeyRequest(*apigateway.DeleteApiKeyInput) (*request.Request, *apigateway.DeleteApiKeyOutput)
DeleteAuthorizer(*apigateway.DeleteAuthorizerInput) (*apigateway.DeleteAuthorizerOutput, error)
DeleteAuthorizerWithContext(aws.Context, *apigateway.DeleteAuthorizerInput, ...request.Option) (*apigateway.DeleteAuthorizerOutput, error)
DeleteAuthorizerRequest(*apigateway.DeleteAuthorizerInput) (*request.Request, *apigateway.DeleteAuthorizerOutput)
DeleteBasePathMapping(*apigateway.DeleteBasePathMappingInput) (*apigateway.DeleteBasePathMappingOutput, error)
DeleteBasePathMappingWithContext(aws.Context, *apigateway.DeleteBasePathMappingInput, ...request.Option) (*apigateway.DeleteBasePathMappingOutput, error)
DeleteBasePathMappingRequest(*apigateway.DeleteBasePathMappingInput) (*request.Request, *apigateway.DeleteBasePathMappingOutput)
DeleteClientCertificate(*apigateway.DeleteClientCertificateInput) (*apigateway.DeleteClientCertificateOutput, error)
DeleteClientCertificateWithContext(aws.Context, *apigateway.DeleteClientCertificateInput, ...request.Option) (*apigateway.DeleteClientCertificateOutput, error)
DeleteClientCertificateRequest(*apigateway.DeleteClientCertificateInput) (*request.Request, *apigateway.DeleteClientCertificateOutput)
DeleteDeployment(*apigateway.DeleteDeploymentInput) (*apigateway.DeleteDeploymentOutput, error)
DeleteDeploymentWithContext(aws.Context, *apigateway.DeleteDeploymentInput, ...request.Option) (*apigateway.DeleteDeploymentOutput, error)
DeleteDeploymentRequest(*apigateway.DeleteDeploymentInput) (*request.Request, *apigateway.DeleteDeploymentOutput)
DeleteDocumentationPart(*apigateway.DeleteDocumentationPartInput) (*apigateway.DeleteDocumentationPartOutput, error)
DeleteDocumentationPartWithContext(aws.Context, *apigateway.DeleteDocumentationPartInput, ...request.Option) (*apigateway.DeleteDocumentationPartOutput, error)
DeleteDocumentationPartRequest(*apigateway.DeleteDocumentationPartInput) (*request.Request, *apigateway.DeleteDocumentationPartOutput)
DeleteDocumentationVersion(*apigateway.DeleteDocumentationVersionInput) (*apigateway.DeleteDocumentationVersionOutput, error)
DeleteDocumentationVersionWithContext(aws.Context, *apigateway.DeleteDocumentationVersionInput, ...request.Option) (*apigateway.DeleteDocumentationVersionOutput, error)
DeleteDocumentationVersionRequest(*apigateway.DeleteDocumentationVersionInput) (*request.Request, *apigateway.DeleteDocumentationVersionOutput)
DeleteDomainName(*apigateway.DeleteDomainNameInput) (*apigateway.DeleteDomainNameOutput, error)
DeleteDomainNameWithContext(aws.Context, *apigateway.DeleteDomainNameInput, ...request.Option) (*apigateway.DeleteDomainNameOutput, error)
DeleteDomainNameRequest(*apigateway.DeleteDomainNameInput) (*request.Request, *apigateway.DeleteDomainNameOutput)
DeleteGatewayResponse(*apigateway.DeleteGatewayResponseInput) (*apigateway.DeleteGatewayResponseOutput, error)
DeleteGatewayResponseWithContext(aws.Context, *apigateway.DeleteGatewayResponseInput, ...request.Option) (*apigateway.DeleteGatewayResponseOutput, error)
DeleteGatewayResponseRequest(*apigateway.DeleteGatewayResponseInput) (*request.Request, *apigateway.DeleteGatewayResponseOutput)
DeleteIntegration(*apigateway.DeleteIntegrationInput) (*apigateway.DeleteIntegrationOutput, error)
DeleteIntegrationWithContext(aws.Context, *apigateway.DeleteIntegrationInput, ...request.Option) (*apigateway.DeleteIntegrationOutput, error)
DeleteIntegrationRequest(*apigateway.DeleteIntegrationInput) (*request.Request, *apigateway.DeleteIntegrationOutput)
DeleteIntegrationResponse(*apigateway.DeleteIntegrationResponseInput) (*apigateway.DeleteIntegrationResponseOutput, error)
DeleteIntegrationResponseWithContext(aws.Context, *apigateway.DeleteIntegrationResponseInput, ...request.Option) (*apigateway.DeleteIntegrationResponseOutput, error)
DeleteIntegrationResponseRequest(*apigateway.DeleteIntegrationResponseInput) (*request.Request, *apigateway.DeleteIntegrationResponseOutput)
DeleteMethod(*apigateway.DeleteMethodInput) (*apigateway.DeleteMethodOutput, error)
DeleteMethodWithContext(aws.Context, *apigateway.DeleteMethodInput, ...request.Option) (*apigateway.DeleteMethodOutput, error)
DeleteMethodRequest(*apigateway.DeleteMethodInput) (*request.Request, *apigateway.DeleteMethodOutput)
DeleteMethodResponse(*apigateway.DeleteMethodResponseInput) (*apigateway.DeleteMethodResponseOutput, error)
DeleteMethodResponseWithContext(aws.Context, *apigateway.DeleteMethodResponseInput, ...request.Option) (*apigateway.DeleteMethodResponseOutput, error)
DeleteMethodResponseRequest(*apigateway.DeleteMethodResponseInput) (*request.Request, *apigateway.DeleteMethodResponseOutput)
DeleteModel(*apigateway.DeleteModelInput) (*apigateway.DeleteModelOutput, error)
DeleteModelWithContext(aws.Context, *apigateway.DeleteModelInput, ...request.Option) (*apigateway.DeleteModelOutput, error)
DeleteModelRequest(*apigateway.DeleteModelInput) (*request.Request, *apigateway.DeleteModelOutput)
DeleteRequestValidator(*apigateway.DeleteRequestValidatorInput) (*apigateway.DeleteRequestValidatorOutput, error)
DeleteRequestValidatorWithContext(aws.Context, *apigateway.DeleteRequestValidatorInput, ...request.Option) (*apigateway.DeleteRequestValidatorOutput, error)
DeleteRequestValidatorRequest(*apigateway.DeleteRequestValidatorInput) (*request.Request, *apigateway.DeleteRequestValidatorOutput)
DeleteResource(*apigateway.DeleteResourceInput) (*apigateway.DeleteResourceOutput, error)
DeleteResourceWithContext(aws.Context, *apigateway.DeleteResourceInput, ...request.Option) (*apigateway.DeleteResourceOutput, error)
DeleteResourceRequest(*apigateway.DeleteResourceInput) (*request.Request, *apigateway.DeleteResourceOutput)
DeleteRestApi(*apigateway.DeleteRestApiInput) (*apigateway.DeleteRestApiOutput, error)
DeleteRestApiWithContext(aws.Context, *apigateway.DeleteRestApiInput, ...request.Option) (*apigateway.DeleteRestApiOutput, error)
DeleteRestApiRequest(*apigateway.DeleteRestApiInput) (*request.Request, *apigateway.DeleteRestApiOutput)
DeleteStage(*apigateway.DeleteStageInput) (*apigateway.DeleteStageOutput, error)
DeleteStageWithContext(aws.Context, *apigateway.DeleteStageInput, ...request.Option) (*apigateway.DeleteStageOutput, error)
DeleteStageRequest(*apigateway.DeleteStageInput) (*request.Request, *apigateway.DeleteStageOutput)
DeleteUsagePlan(*apigateway.DeleteUsagePlanInput) (*apigateway.DeleteUsagePlanOutput, error)
DeleteUsagePlanWithContext(aws.Context, *apigateway.DeleteUsagePlanInput, ...request.Option) (*apigateway.DeleteUsagePlanOutput, error)
DeleteUsagePlanRequest(*apigateway.DeleteUsagePlanInput) (*request.Request, *apigateway.DeleteUsagePlanOutput)
DeleteUsagePlanKey(*apigateway.DeleteUsagePlanKeyInput) (*apigateway.DeleteUsagePlanKeyOutput, error)
DeleteUsagePlanKeyWithContext(aws.Context, *apigateway.DeleteUsagePlanKeyInput, ...request.Option) (*apigateway.DeleteUsagePlanKeyOutput, error)
DeleteUsagePlanKeyRequest(*apigateway.DeleteUsagePlanKeyInput) (*request.Request, *apigateway.DeleteUsagePlanKeyOutput)
DeleteVpcLink(*apigateway.DeleteVpcLinkInput) (*apigateway.DeleteVpcLinkOutput, error)
DeleteVpcLinkWithContext(aws.Context, *apigateway.DeleteVpcLinkInput, ...request.Option) (*apigateway.DeleteVpcLinkOutput, error)
DeleteVpcLinkRequest(*apigateway.DeleteVpcLinkInput) (*request.Request, *apigateway.DeleteVpcLinkOutput)
FlushStageAuthorizersCache(*apigateway.FlushStageAuthorizersCacheInput) (*apigateway.FlushStageAuthorizersCacheOutput, error)
FlushStageAuthorizersCacheWithContext(aws.Context, *apigateway.FlushStageAuthorizersCacheInput, ...request.Option) (*apigateway.FlushStageAuthorizersCacheOutput, error)
FlushStageAuthorizersCacheRequest(*apigateway.FlushStageAuthorizersCacheInput) (*request.Request, *apigateway.FlushStageAuthorizersCacheOutput)
FlushStageCache(*apigateway.FlushStageCacheInput) (*apigateway.FlushStageCacheOutput, error)
FlushStageCacheWithContext(aws.Context, *apigateway.FlushStageCacheInput, ...request.Option) (*apigateway.FlushStageCacheOutput, error)
FlushStageCacheRequest(*apigateway.FlushStageCacheInput) (*request.Request, *apigateway.FlushStageCacheOutput)
GenerateClientCertificate(*apigateway.GenerateClientCertificateInput) (*apigateway.ClientCertificate, error)
GenerateClientCertificateWithContext(aws.Context, *apigateway.GenerateClientCertificateInput, ...request.Option) (*apigateway.ClientCertificate, error)
GenerateClientCertificateRequest(*apigateway.GenerateClientCertificateInput) (*request.Request, *apigateway.ClientCertificate)
GetAccount(*apigateway.GetAccountInput) (*apigateway.Account, error)
GetAccountWithContext(aws.Context, *apigateway.GetAccountInput, ...request.Option) (*apigateway.Account, error)
GetAccountRequest(*apigateway.GetAccountInput) (*request.Request, *apigateway.Account)
GetApiKey(*apigateway.GetApiKeyInput) (*apigateway.ApiKey, error)
GetApiKeyWithContext(aws.Context, *apigateway.GetApiKeyInput, ...request.Option) (*apigateway.ApiKey, error)
GetApiKeyRequest(*apigateway.GetApiKeyInput) (*request.Request, *apigateway.ApiKey)
GetApiKeys(*apigateway.GetApiKeysInput) (*apigateway.GetApiKeysOutput, error)
GetApiKeysWithContext(aws.Context, *apigateway.GetApiKeysInput, ...request.Option) (*apigateway.GetApiKeysOutput, error)
GetApiKeysRequest(*apigateway.GetApiKeysInput) (*request.Request, *apigateway.GetApiKeysOutput)
GetApiKeysPages(*apigateway.GetApiKeysInput, func(*apigateway.GetApiKeysOutput, bool) bool) error
GetApiKeysPagesWithContext(aws.Context, *apigateway.GetApiKeysInput, func(*apigateway.GetApiKeysOutput, bool) bool, ...request.Option) error
GetAuthorizer(*apigateway.GetAuthorizerInput) (*apigateway.Authorizer, error)
GetAuthorizerWithContext(aws.Context, *apigateway.GetAuthorizerInput, ...request.Option) (*apigateway.Authorizer, error)
GetAuthorizerRequest(*apigateway.GetAuthorizerInput) (*request.Request, *apigateway.Authorizer)
GetAuthorizers(*apigateway.GetAuthorizersInput) (*apigateway.GetAuthorizersOutput, error)
GetAuthorizersWithContext(aws.Context, *apigateway.GetAuthorizersInput, ...request.Option) (*apigateway.GetAuthorizersOutput, error)
GetAuthorizersRequest(*apigateway.GetAuthorizersInput) (*request.Request, *apigateway.GetAuthorizersOutput)
GetBasePathMapping(*apigateway.GetBasePathMappingInput) (*apigateway.BasePathMapping, error)
GetBasePathMappingWithContext(aws.Context, *apigateway.GetBasePathMappingInput, ...request.Option) (*apigateway.BasePathMapping, error)
GetBasePathMappingRequest(*apigateway.GetBasePathMappingInput) (*request.Request, *apigateway.BasePathMapping)
GetBasePathMappings(*apigateway.GetBasePathMappingsInput) (*apigateway.GetBasePathMappingsOutput, error)
GetBasePathMappingsWithContext(aws.Context, *apigateway.GetBasePathMappingsInput, ...request.Option) (*apigateway.GetBasePathMappingsOutput, error)
GetBasePathMappingsRequest(*apigateway.GetBasePathMappingsInput) (*request.Request, *apigateway.GetBasePathMappingsOutput)
GetBasePathMappingsPages(*apigateway.GetBasePathMappingsInput, func(*apigateway.GetBasePathMappingsOutput, bool) bool) error
GetBasePathMappingsPagesWithContext(aws.Context, *apigateway.GetBasePathMappingsInput, func(*apigateway.GetBasePathMappingsOutput, bool) bool, ...request.Option) error
GetClientCertificate(*apigateway.GetClientCertificateInput) (*apigateway.ClientCertificate, error)
GetClientCertificateWithContext(aws.Context, *apigateway.GetClientCertificateInput, ...request.Option) (*apigateway.ClientCertificate, error)
GetClientCertificateRequest(*apigateway.GetClientCertificateInput) (*request.Request, *apigateway.ClientCertificate)
GetClientCertificates(*apigateway.GetClientCertificatesInput) (*apigateway.GetClientCertificatesOutput, error)
GetClientCertificatesWithContext(aws.Context, *apigateway.GetClientCertificatesInput, ...request.Option) (*apigateway.GetClientCertificatesOutput, error)
GetClientCertificatesRequest(*apigateway.GetClientCertificatesInput) (*request.Request, *apigateway.GetClientCertificatesOutput)
GetClientCertificatesPages(*apigateway.GetClientCertificatesInput, func(*apigateway.GetClientCertificatesOutput, bool) bool) error
GetClientCertificatesPagesWithContext(aws.Context, *apigateway.GetClientCertificatesInput, func(*apigateway.GetClientCertificatesOutput, bool) bool, ...request.Option) error
GetDeployment(*apigateway.GetDeploymentInput) (*apigateway.Deployment, error)
GetDeploymentWithContext(aws.Context, *apigateway.GetDeploymentInput, ...request.Option) (*apigateway.Deployment, error)
GetDeploymentRequest(*apigateway.GetDeploymentInput) (*request.Request, *apigateway.Deployment)
GetDeployments(*apigateway.GetDeploymentsInput) (*apigateway.GetDeploymentsOutput, error)
GetDeploymentsWithContext(aws.Context, *apigateway.GetDeploymentsInput, ...request.Option) (*apigateway.GetDeploymentsOutput, error)
GetDeploymentsRequest(*apigateway.GetDeploymentsInput) (*request.Request, *apigateway.GetDeploymentsOutput)
GetDeploymentsPages(*apigateway.GetDeploymentsInput, func(*apigateway.GetDeploymentsOutput, bool) bool) error
GetDeploymentsPagesWithContext(aws.Context, *apigateway.GetDeploymentsInput, func(*apigateway.GetDeploymentsOutput, bool) bool, ...request.Option) error
GetDocumentationPart(*apigateway.GetDocumentationPartInput) (*apigateway.DocumentationPart, error)
GetDocumentationPartWithContext(aws.Context, *apigateway.GetDocumentationPartInput, ...request.Option) (*apigateway.DocumentationPart, error)
GetDocumentationPartRequest(*apigateway.GetDocumentationPartInput) (*request.Request, *apigateway.DocumentationPart)
GetDocumentationParts(*apigateway.GetDocumentationPartsInput) (*apigateway.GetDocumentationPartsOutput, error)
GetDocumentationPartsWithContext(aws.Context, *apigateway.GetDocumentationPartsInput, ...request.Option) (*apigateway.GetDocumentationPartsOutput, error)
GetDocumentationPartsRequest(*apigateway.GetDocumentationPartsInput) (*request.Request, *apigateway.GetDocumentationPartsOutput)
GetDocumentationVersion(*apigateway.GetDocumentationVersionInput) (*apigateway.DocumentationVersion, error)
GetDocumentationVersionWithContext(aws.Context, *apigateway.GetDocumentationVersionInput, ...request.Option) (*apigateway.DocumentationVersion, error)
GetDocumentationVersionRequest(*apigateway.GetDocumentationVersionInput) (*request.Request, *apigateway.DocumentationVersion)
GetDocumentationVersions(*apigateway.GetDocumentationVersionsInput) (*apigateway.GetDocumentationVersionsOutput, error)
GetDocumentationVersionsWithContext(aws.Context, *apigateway.GetDocumentationVersionsInput, ...request.Option) (*apigateway.GetDocumentationVersionsOutput, error)
GetDocumentationVersionsRequest(*apigateway.GetDocumentationVersionsInput) (*request.Request, *apigateway.GetDocumentationVersionsOutput)
GetDomainName(*apigateway.GetDomainNameInput) (*apigateway.DomainName, error)
GetDomainNameWithContext(aws.Context, *apigateway.GetDomainNameInput, ...request.Option) (*apigateway.DomainName, error)
GetDomainNameRequest(*apigateway.GetDomainNameInput) (*request.Request, *apigateway.DomainName)
GetDomainNames(*apigateway.GetDomainNamesInput) (*apigateway.GetDomainNamesOutput, error)
GetDomainNamesWithContext(aws.Context, *apigateway.GetDomainNamesInput, ...request.Option) (*apigateway.GetDomainNamesOutput, error)
GetDomainNamesRequest(*apigateway.GetDomainNamesInput) (*request.Request, *apigateway.GetDomainNamesOutput)
GetDomainNamesPages(*apigateway.GetDomainNamesInput, func(*apigateway.GetDomainNamesOutput, bool) bool) error
GetDomainNamesPagesWithContext(aws.Context, *apigateway.GetDomainNamesInput, func(*apigateway.GetDomainNamesOutput, bool) bool, ...request.Option) error
GetExport(*apigateway.GetExportInput) (*apigateway.GetExportOutput, error)
GetExportWithContext(aws.Context, *apigateway.GetExportInput, ...request.Option) (*apigateway.GetExportOutput, error)
GetExportRequest(*apigateway.GetExportInput) (*request.Request, *apigateway.GetExportOutput)
GetGatewayResponse(*apigateway.GetGatewayResponseInput) (*apigateway.UpdateGatewayResponseOutput, error)
GetGatewayResponseWithContext(aws.Context, *apigateway.GetGatewayResponseInput, ...request.Option) (*apigateway.UpdateGatewayResponseOutput, error)
GetGatewayResponseRequest(*apigateway.GetGatewayResponseInput) (*request.Request, *apigateway.UpdateGatewayResponseOutput)
GetGatewayResponses(*apigateway.GetGatewayResponsesInput) (*apigateway.GetGatewayResponsesOutput, error)
GetGatewayResponsesWithContext(aws.Context, *apigateway.GetGatewayResponsesInput, ...request.Option) (*apigateway.GetGatewayResponsesOutput, error)
GetGatewayResponsesRequest(*apigateway.GetGatewayResponsesInput) (*request.Request, *apigateway.GetGatewayResponsesOutput)
GetIntegration(*apigateway.GetIntegrationInput) (*apigateway.Integration, error)
GetIntegrationWithContext(aws.Context, *apigateway.GetIntegrationInput, ...request.Option) (*apigateway.Integration, error)
GetIntegrationRequest(*apigateway.GetIntegrationInput) (*request.Request, *apigateway.Integration)
GetIntegrationResponse(*apigateway.GetIntegrationResponseInput) (*apigateway.IntegrationResponse, error)
GetIntegrationResponseWithContext(aws.Context, *apigateway.GetIntegrationResponseInput, ...request.Option) (*apigateway.IntegrationResponse, error)
GetIntegrationResponseRequest(*apigateway.GetIntegrationResponseInput) (*request.Request, *apigateway.IntegrationResponse)
GetMethod(*apigateway.GetMethodInput) (*apigateway.Method, error)
GetMethodWithContext(aws.Context, *apigateway.GetMethodInput, ...request.Option) (*apigateway.Method, error)
GetMethodRequest(*apigateway.GetMethodInput) (*request.Request, *apigateway.Method)
GetMethodResponse(*apigateway.GetMethodResponseInput) (*apigateway.MethodResponse, error)
GetMethodResponseWithContext(aws.Context, *apigateway.GetMethodResponseInput, ...request.Option) (*apigateway.MethodResponse, error)
GetMethodResponseRequest(*apigateway.GetMethodResponseInput) (*request.Request, *apigateway.MethodResponse)
GetModel(*apigateway.GetModelInput) (*apigateway.Model, error)
GetModelWithContext(aws.Context, *apigateway.GetModelInput, ...request.Option) (*apigateway.Model, error)
GetModelRequest(*apigateway.GetModelInput) (*request.Request, *apigateway.Model)
GetModelTemplate(*apigateway.GetModelTemplateInput) (*apigateway.GetModelTemplateOutput, error)
GetModelTemplateWithContext(aws.Context, *apigateway.GetModelTemplateInput, ...request.Option) (*apigateway.GetModelTemplateOutput, error)
GetModelTemplateRequest(*apigateway.GetModelTemplateInput) (*request.Request, *apigateway.GetModelTemplateOutput)
GetModels(*apigateway.GetModelsInput) (*apigateway.GetModelsOutput, error)
GetModelsWithContext(aws.Context, *apigateway.GetModelsInput, ...request.Option) (*apigateway.GetModelsOutput, error)
GetModelsRequest(*apigateway.GetModelsInput) (*request.Request, *apigateway.GetModelsOutput)
GetModelsPages(*apigateway.GetModelsInput, func(*apigateway.GetModelsOutput, bool) bool) error
GetModelsPagesWithContext(aws.Context, *apigateway.GetModelsInput, func(*apigateway.GetModelsOutput, bool) bool, ...request.Option) error
GetRequestValidator(*apigateway.GetRequestValidatorInput) (*apigateway.UpdateRequestValidatorOutput, error)
GetRequestValidatorWithContext(aws.Context, *apigateway.GetRequestValidatorInput, ...request.Option) (*apigateway.UpdateRequestValidatorOutput, error)
GetRequestValidatorRequest(*apigateway.GetRequestValidatorInput) (*request.Request, *apigateway.UpdateRequestValidatorOutput)
GetRequestValidators(*apigateway.GetRequestValidatorsInput) (*apigateway.GetRequestValidatorsOutput, error)
GetRequestValidatorsWithContext(aws.Context, *apigateway.GetRequestValidatorsInput, ...request.Option) (*apigateway.GetRequestValidatorsOutput, error)
GetRequestValidatorsRequest(*apigateway.GetRequestValidatorsInput) (*request.Request, *apigateway.GetRequestValidatorsOutput)
GetResource(*apigateway.GetResourceInput) (*apigateway.Resource, error)
GetResourceWithContext(aws.Context, *apigateway.GetResourceInput, ...request.Option) (*apigateway.Resource, error)
GetResourceRequest(*apigateway.GetResourceInput) (*request.Request, *apigateway.Resource)
GetResources(*apigateway.GetResourcesInput) (*apigateway.GetResourcesOutput, error)
GetResourcesWithContext(aws.Context, *apigateway.GetResourcesInput, ...request.Option) (*apigateway.GetResourcesOutput, error)
GetResourcesRequest(*apigateway.GetResourcesInput) (*request.Request, *apigateway.GetResourcesOutput)
GetResourcesPages(*apigateway.GetResourcesInput, func(*apigateway.GetResourcesOutput, bool) bool) error
GetResourcesPagesWithContext(aws.Context, *apigateway.GetResourcesInput, func(*apigateway.GetResourcesOutput, bool) bool, ...request.Option) error
GetRestApi(*apigateway.GetRestApiInput) (*apigateway.RestApi, error)
GetRestApiWithContext(aws.Context, *apigateway.GetRestApiInput, ...request.Option) (*apigateway.RestApi, error)
GetRestApiRequest(*apigateway.GetRestApiInput) (*request.Request, *apigateway.RestApi)
GetRestApis(*apigateway.GetRestApisInput) (*apigateway.GetRestApisOutput, error)
GetRestApisWithContext(aws.Context, *apigateway.GetRestApisInput, ...request.Option) (*apigateway.GetRestApisOutput, error)
GetRestApisRequest(*apigateway.GetRestApisInput) (*request.Request, *apigateway.GetRestApisOutput)
GetRestApisPages(*apigateway.GetRestApisInput, func(*apigateway.GetRestApisOutput, bool) bool) error
GetRestApisPagesWithContext(aws.Context, *apigateway.GetRestApisInput, func(*apigateway.GetRestApisOutput, bool) bool, ...request.Option) error
GetSdk(*apigateway.GetSdkInput) (*apigateway.GetSdkOutput, error)
GetSdkWithContext(aws.Context, *apigateway.GetSdkInput, ...request.Option) (*apigateway.GetSdkOutput, error)
GetSdkRequest(*apigateway.GetSdkInput) (*request.Request, *apigateway.GetSdkOutput)
GetSdkType(*apigateway.GetSdkTypeInput) (*apigateway.SdkType, error)
GetSdkTypeWithContext(aws.Context, *apigateway.GetSdkTypeInput, ...request.Option) (*apigateway.SdkType, error)
GetSdkTypeRequest(*apigateway.GetSdkTypeInput) (*request.Request, *apigateway.SdkType)
GetSdkTypes(*apigateway.GetSdkTypesInput) (*apigateway.GetSdkTypesOutput, error)
GetSdkTypesWithContext(aws.Context, *apigateway.GetSdkTypesInput, ...request.Option) (*apigateway.GetSdkTypesOutput, error)
GetSdkTypesRequest(*apigateway.GetSdkTypesInput) (*request.Request, *apigateway.GetSdkTypesOutput)
GetStage(*apigateway.GetStageInput) (*apigateway.Stage, error)
GetStageWithContext(aws.Context, *apigateway.GetStageInput, ...request.Option) (*apigateway.Stage, error)
GetStageRequest(*apigateway.GetStageInput) (*request.Request, *apigateway.Stage)
GetStages(*apigateway.GetStagesInput) (*apigateway.GetStagesOutput, error)
GetStagesWithContext(aws.Context, *apigateway.GetStagesInput, ...request.Option) (*apigateway.GetStagesOutput, error)
GetStagesRequest(*apigateway.GetStagesInput) (*request.Request, *apigateway.GetStagesOutput)
GetTags(*apigateway.GetTagsInput) (*apigateway.GetTagsOutput, error)
GetTagsWithContext(aws.Context, *apigateway.GetTagsInput, ...request.Option) (*apigateway.GetTagsOutput, error)
GetTagsRequest(*apigateway.GetTagsInput) (*request.Request, *apigateway.GetTagsOutput)
GetUsage(*apigateway.GetUsageInput) (*apigateway.Usage, error)
GetUsageWithContext(aws.Context, *apigateway.GetUsageInput, ...request.Option) (*apigateway.Usage, error)
GetUsageRequest(*apigateway.GetUsageInput) (*request.Request, *apigateway.Usage)
GetUsagePages(*apigateway.GetUsageInput, func(*apigateway.Usage, bool) bool) error
GetUsagePagesWithContext(aws.Context, *apigateway.GetUsageInput, func(*apigateway.Usage, bool) bool, ...request.Option) error
GetUsagePlan(*apigateway.GetUsagePlanInput) (*apigateway.UsagePlan, error)
GetUsagePlanWithContext(aws.Context, *apigateway.GetUsagePlanInput, ...request.Option) (*apigateway.UsagePlan, error)
GetUsagePlanRequest(*apigateway.GetUsagePlanInput) (*request.Request, *apigateway.UsagePlan)
GetUsagePlanKey(*apigateway.GetUsagePlanKeyInput) (*apigateway.UsagePlanKey, error)
GetUsagePlanKeyWithContext(aws.Context, *apigateway.GetUsagePlanKeyInput, ...request.Option) (*apigateway.UsagePlanKey, error)
GetUsagePlanKeyRequest(*apigateway.GetUsagePlanKeyInput) (*request.Request, *apigateway.UsagePlanKey)
GetUsagePlanKeys(*apigateway.GetUsagePlanKeysInput) (*apigateway.GetUsagePlanKeysOutput, error)
GetUsagePlanKeysWithContext(aws.Context, *apigateway.GetUsagePlanKeysInput, ...request.Option) (*apigateway.GetUsagePlanKeysOutput, error)
GetUsagePlanKeysRequest(*apigateway.GetUsagePlanKeysInput) (*request.Request, *apigateway.GetUsagePlanKeysOutput)
GetUsagePlanKeysPages(*apigateway.GetUsagePlanKeysInput, func(*apigateway.GetUsagePlanKeysOutput, bool) bool) error
GetUsagePlanKeysPagesWithContext(aws.Context, *apigateway.GetUsagePlanKeysInput, func(*apigateway.GetUsagePlanKeysOutput, bool) bool, ...request.Option) error
GetUsagePlans(*apigateway.GetUsagePlansInput) (*apigateway.GetUsagePlansOutput, error)
GetUsagePlansWithContext(aws.Context, *apigateway.GetUsagePlansInput, ...request.Option) (*apigateway.GetUsagePlansOutput, error)
GetUsagePlansRequest(*apigateway.GetUsagePlansInput) (*request.Request, *apigateway.GetUsagePlansOutput)
GetUsagePlansPages(*apigateway.GetUsagePlansInput, func(*apigateway.GetUsagePlansOutput, bool) bool) error
GetUsagePlansPagesWithContext(aws.Context, *apigateway.GetUsagePlansInput, func(*apigateway.GetUsagePlansOutput, bool) bool, ...request.Option) error
GetVpcLink(*apigateway.GetVpcLinkInput) (*apigateway.UpdateVpcLinkOutput, error)
GetVpcLinkWithContext(aws.Context, *apigateway.GetVpcLinkInput, ...request.Option) (*apigateway.UpdateVpcLinkOutput, error)
GetVpcLinkRequest(*apigateway.GetVpcLinkInput) (*request.Request, *apigateway.UpdateVpcLinkOutput)
GetVpcLinks(*apigateway.GetVpcLinksInput) (*apigateway.GetVpcLinksOutput, error)
GetVpcLinksWithContext(aws.Context, *apigateway.GetVpcLinksInput, ...request.Option) (*apigateway.GetVpcLinksOutput, error)
GetVpcLinksRequest(*apigateway.GetVpcLinksInput) (*request.Request, *apigateway.GetVpcLinksOutput)
GetVpcLinksPages(*apigateway.GetVpcLinksInput, func(*apigateway.GetVpcLinksOutput, bool) bool) error
GetVpcLinksPagesWithContext(aws.Context, *apigateway.GetVpcLinksInput, func(*apigateway.GetVpcLinksOutput, bool) bool, ...request.Option) error
ImportApiKeys(*apigateway.ImportApiKeysInput) (*apigateway.ImportApiKeysOutput, error)
ImportApiKeysWithContext(aws.Context, *apigateway.ImportApiKeysInput, ...request.Option) (*apigateway.ImportApiKeysOutput, error)
ImportApiKeysRequest(*apigateway.ImportApiKeysInput) (*request.Request, *apigateway.ImportApiKeysOutput)
ImportDocumentationParts(*apigateway.ImportDocumentationPartsInput) (*apigateway.ImportDocumentationPartsOutput, error)
ImportDocumentationPartsWithContext(aws.Context, *apigateway.ImportDocumentationPartsInput, ...request.Option) (*apigateway.ImportDocumentationPartsOutput, error)
ImportDocumentationPartsRequest(*apigateway.ImportDocumentationPartsInput) (*request.Request, *apigateway.ImportDocumentationPartsOutput)
ImportRestApi(*apigateway.ImportRestApiInput) (*apigateway.RestApi, error)
ImportRestApiWithContext(aws.Context, *apigateway.ImportRestApiInput, ...request.Option) (*apigateway.RestApi, error)
ImportRestApiRequest(*apigateway.ImportRestApiInput) (*request.Request, *apigateway.RestApi)
PutGatewayResponse(*apigateway.PutGatewayResponseInput) (*apigateway.UpdateGatewayResponseOutput, error)
PutGatewayResponseWithContext(aws.Context, *apigateway.PutGatewayResponseInput, ...request.Option) (*apigateway.UpdateGatewayResponseOutput, error)
PutGatewayResponseRequest(*apigateway.PutGatewayResponseInput) (*request.Request, *apigateway.UpdateGatewayResponseOutput)
PutIntegration(*apigateway.PutIntegrationInput) (*apigateway.Integration, error)
PutIntegrationWithContext(aws.Context, *apigateway.PutIntegrationInput, ...request.Option) (*apigateway.Integration, error)
PutIntegrationRequest(*apigateway.PutIntegrationInput) (*request.Request, *apigateway.Integration)
PutIntegrationResponse(*apigateway.PutIntegrationResponseInput) (*apigateway.IntegrationResponse, error)
PutIntegrationResponseWithContext(aws.Context, *apigateway.PutIntegrationResponseInput, ...request.Option) (*apigateway.IntegrationResponse, error)
PutIntegrationResponseRequest(*apigateway.PutIntegrationResponseInput) (*request.Request, *apigateway.IntegrationResponse)
PutMethod(*apigateway.PutMethodInput) (*apigateway.Method, error)
PutMethodWithContext(aws.Context, *apigateway.PutMethodInput, ...request.Option) (*apigateway.Method, error)
PutMethodRequest(*apigateway.PutMethodInput) (*request.Request, *apigateway.Method)
PutMethodResponse(*apigateway.PutMethodResponseInput) (*apigateway.MethodResponse, error)
PutMethodResponseWithContext(aws.Context, *apigateway.PutMethodResponseInput, ...request.Option) (*apigateway.MethodResponse, error)
PutMethodResponseRequest(*apigateway.PutMethodResponseInput) (*request.Request, *apigateway.MethodResponse)
PutRestApi(*apigateway.PutRestApiInput) (*apigateway.RestApi, error)
PutRestApiWithContext(aws.Context, *apigateway.PutRestApiInput, ...request.Option) (*apigateway.RestApi, error)
PutRestApiRequest(*apigateway.PutRestApiInput) (*request.Request, *apigateway.RestApi)
TagResource(*apigateway.TagResourceInput) (*apigateway.TagResourceOutput, error)
TagResourceWithContext(aws.Context, *apigateway.TagResourceInput, ...request.Option) (*apigateway.TagResourceOutput, error)
TagResourceRequest(*apigateway.TagResourceInput) (*request.Request, *apigateway.TagResourceOutput)
TestInvokeAuthorizer(*apigateway.TestInvokeAuthorizerInput) (*apigateway.TestInvokeAuthorizerOutput, error)
TestInvokeAuthorizerWithContext(aws.Context, *apigateway.TestInvokeAuthorizerInput, ...request.Option) (*apigateway.TestInvokeAuthorizerOutput, error)
TestInvokeAuthorizerRequest(*apigateway.TestInvokeAuthorizerInput) (*request.Request, *apigateway.TestInvokeAuthorizerOutput)
TestInvokeMethod(*apigateway.TestInvokeMethodInput) (*apigateway.TestInvokeMethodOutput, error)
TestInvokeMethodWithContext(aws.Context, *apigateway.TestInvokeMethodInput, ...request.Option) (*apigateway.TestInvokeMethodOutput, error)
TestInvokeMethodRequest(*apigateway.TestInvokeMethodInput) (*request.Request, *apigateway.TestInvokeMethodOutput)
UntagResource(*apigateway.UntagResourceInput) (*apigateway.UntagResourceOutput, error)
UntagResourceWithContext(aws.Context, *apigateway.UntagResourceInput, ...request.Option) (*apigateway.UntagResourceOutput, error)
UntagResourceRequest(*apigateway.UntagResourceInput) (*request.Request, *apigateway.UntagResourceOutput)
UpdateAccount(*apigateway.UpdateAccountInput) (*apigateway.Account, error)
UpdateAccountWithContext(aws.Context, *apigateway.UpdateAccountInput, ...request.Option) (*apigateway.Account, error)
UpdateAccountRequest(*apigateway.UpdateAccountInput) (*request.Request, *apigateway.Account)
UpdateApiKey(*apigateway.UpdateApiKeyInput) (*apigateway.ApiKey, error)
UpdateApiKeyWithContext(aws.Context, *apigateway.UpdateApiKeyInput, ...request.Option) (*apigateway.ApiKey, error)
UpdateApiKeyRequest(*apigateway.UpdateApiKeyInput) (*request.Request, *apigateway.ApiKey)
UpdateAuthorizer(*apigateway.UpdateAuthorizerInput) (*apigateway.Authorizer, error)
UpdateAuthorizerWithContext(aws.Context, *apigateway.UpdateAuthorizerInput, ...request.Option) (*apigateway.Authorizer, error)
UpdateAuthorizerRequest(*apigateway.UpdateAuthorizerInput) (*request.Request, *apigateway.Authorizer)
UpdateBasePathMapping(*apigateway.UpdateBasePathMappingInput) (*apigateway.BasePathMapping, error)
UpdateBasePathMappingWithContext(aws.Context, *apigateway.UpdateBasePathMappingInput, ...request.Option) (*apigateway.BasePathMapping, error)
UpdateBasePathMappingRequest(*apigateway.UpdateBasePathMappingInput) (*request.Request, *apigateway.BasePathMapping)
UpdateClientCertificate(*apigateway.UpdateClientCertificateInput) (*apigateway.ClientCertificate, error)
UpdateClientCertificateWithContext(aws.Context, *apigateway.UpdateClientCertificateInput, ...request.Option) (*apigateway.ClientCertificate, error)
UpdateClientCertificateRequest(*apigateway.UpdateClientCertificateInput) (*request.Request, *apigateway.ClientCertificate)
UpdateDeployment(*apigateway.UpdateDeploymentInput) (*apigateway.Deployment, error)
UpdateDeploymentWithContext(aws.Context, *apigateway.UpdateDeploymentInput, ...request.Option) (*apigateway.Deployment, error)
UpdateDeploymentRequest(*apigateway.UpdateDeploymentInput) (*request.Request, *apigateway.Deployment)
UpdateDocumentationPart(*apigateway.UpdateDocumentationPartInput) (*apigateway.DocumentationPart, error)
UpdateDocumentationPartWithContext(aws.Context, *apigateway.UpdateDocumentationPartInput, ...request.Option) (*apigateway.DocumentationPart, error)
UpdateDocumentationPartRequest(*apigateway.UpdateDocumentationPartInput) (*request.Request, *apigateway.DocumentationPart)
UpdateDocumentationVersion(*apigateway.UpdateDocumentationVersionInput) (*apigateway.DocumentationVersion, error)
UpdateDocumentationVersionWithContext(aws.Context, *apigateway.UpdateDocumentationVersionInput, ...request.Option) (*apigateway.DocumentationVersion, error)
UpdateDocumentationVersionRequest(*apigateway.UpdateDocumentationVersionInput) (*request.Request, *apigateway.DocumentationVersion)
UpdateDomainName(*apigateway.UpdateDomainNameInput) (*apigateway.DomainName, error)
UpdateDomainNameWithContext(aws.Context, *apigateway.UpdateDomainNameInput, ...request.Option) (*apigateway.DomainName, error)
UpdateDomainNameRequest(*apigateway.UpdateDomainNameInput) (*request.Request, *apigateway.DomainName)
UpdateGatewayResponse(*apigateway.UpdateGatewayResponseInput) (*apigateway.UpdateGatewayResponseOutput, error)
UpdateGatewayResponseWithContext(aws.Context, *apigateway.UpdateGatewayResponseInput, ...request.Option) (*apigateway.UpdateGatewayResponseOutput, error)
UpdateGatewayResponseRequest(*apigateway.UpdateGatewayResponseInput) (*request.Request, *apigateway.UpdateGatewayResponseOutput)
UpdateIntegration(*apigateway.UpdateIntegrationInput) (*apigateway.Integration, error)
UpdateIntegrationWithContext(aws.Context, *apigateway.UpdateIntegrationInput, ...request.Option) (*apigateway.Integration, error)
UpdateIntegrationRequest(*apigateway.UpdateIntegrationInput) (*request.Request, *apigateway.Integration)
UpdateIntegrationResponse(*apigateway.UpdateIntegrationResponseInput) (*apigateway.IntegrationResponse, error)
UpdateIntegrationResponseWithContext(aws.Context, *apigateway.UpdateIntegrationResponseInput, ...request.Option) (*apigateway.IntegrationResponse, error)
UpdateIntegrationResponseRequest(*apigateway.UpdateIntegrationResponseInput) (*request.Request, *apigateway.IntegrationResponse)
UpdateMethod(*apigateway.UpdateMethodInput) (*apigateway.Method, error)
UpdateMethodWithContext(aws.Context, *apigateway.UpdateMethodInput, ...request.Option) (*apigateway.Method, error)
UpdateMethodRequest(*apigateway.UpdateMethodInput) (*request.Request, *apigateway.Method)
UpdateMethodResponse(*apigateway.UpdateMethodResponseInput) (*apigateway.MethodResponse, error)
UpdateMethodResponseWithContext(aws.Context, *apigateway.UpdateMethodResponseInput, ...request.Option) (*apigateway.MethodResponse, error)
UpdateMethodResponseRequest(*apigateway.UpdateMethodResponseInput) (*request.Request, *apigateway.MethodResponse)
UpdateModel(*apigateway.UpdateModelInput) (*apigateway.Model, error)
UpdateModelWithContext(aws.Context, *apigateway.UpdateModelInput, ...request.Option) (*apigateway.Model, error)
UpdateModelRequest(*apigateway.UpdateModelInput) (*request.Request, *apigateway.Model)
UpdateRequestValidator(*apigateway.UpdateRequestValidatorInput) (*apigateway.UpdateRequestValidatorOutput, error)
UpdateRequestValidatorWithContext(aws.Context, *apigateway.UpdateRequestValidatorInput, ...request.Option) (*apigateway.UpdateRequestValidatorOutput, error)
UpdateRequestValidatorRequest(*apigateway.UpdateRequestValidatorInput) (*request.Request, *apigateway.UpdateRequestValidatorOutput)
UpdateResource(*apigateway.UpdateResourceInput) (*apigateway.Resource, error)
UpdateResourceWithContext(aws.Context, *apigateway.UpdateResourceInput, ...request.Option) (*apigateway.Resource, error)
UpdateResourceRequest(*apigateway.UpdateResourceInput) (*request.Request, *apigateway.Resource)
UpdateRestApi(*apigateway.UpdateRestApiInput) (*apigateway.RestApi, error)
UpdateRestApiWithContext(aws.Context, *apigateway.UpdateRestApiInput, ...request.Option) (*apigateway.RestApi, error)
UpdateRestApiRequest(*apigateway.UpdateRestApiInput) (*request.Request, *apigateway.RestApi)
UpdateStage(*apigateway.UpdateStageInput) (*apigateway.Stage, error)
UpdateStageWithContext(aws.Context, *apigateway.UpdateStageInput, ...request.Option) (*apigateway.Stage, error)
UpdateStageRequest(*apigateway.UpdateStageInput) (*request.Request, *apigateway.Stage)
UpdateUsage(*apigateway.UpdateUsageInput) (*apigateway.Usage, error)
UpdateUsageWithContext(aws.Context, *apigateway.UpdateUsageInput, ...request.Option) (*apigateway.Usage, error)
UpdateUsageRequest(*apigateway.UpdateUsageInput) (*request.Request, *apigateway.Usage)
UpdateUsagePlan(*apigateway.UpdateUsagePlanInput) (*apigateway.UsagePlan, error)
UpdateUsagePlanWithContext(aws.Context, *apigateway.UpdateUsagePlanInput, ...request.Option) (*apigateway.UsagePlan, error)
UpdateUsagePlanRequest(*apigateway.UpdateUsagePlanInput) (*request.Request, *apigateway.UsagePlan)
UpdateVpcLink(*apigateway.UpdateVpcLinkInput) (*apigateway.UpdateVpcLinkOutput, error)
UpdateVpcLinkWithContext(aws.Context, *apigateway.UpdateVpcLinkInput, ...request.Option) (*apigateway.UpdateVpcLinkOutput, error)
UpdateVpcLinkRequest(*apigateway.UpdateVpcLinkInput) (*request.Request, *apigateway.UpdateVpcLinkOutput)
}
var _ APIGatewayAPI = (*apigateway.APIGateway)(nil)
| 581 |
session-manager-plugin | aws | Go | // Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
package apigatewaymanagementapi
import (
"fmt"
"time"
"github.com/aws/aws-sdk-go/aws"
"github.com/aws/aws-sdk-go/aws/awsutil"
"github.com/aws/aws-sdk-go/aws/request"
"github.com/aws/aws-sdk-go/private/protocol"
"github.com/aws/aws-sdk-go/private/protocol/restjson"
)
const opDeleteConnection = "DeleteConnection"
// DeleteConnectionRequest generates a "aws/request.Request" representing the
// client's request for the DeleteConnection 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 DeleteConnection for more information on using the DeleteConnection
// 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 DeleteConnectionRequest method.
// req, resp := client.DeleteConnectionRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/apigatewaymanagementapi-2018-11-29/DeleteConnection
func (c *ApiGatewayManagementApi) DeleteConnectionRequest(input *DeleteConnectionInput) (req *request.Request, output *DeleteConnectionOutput) {
op := &request.Operation{
Name: opDeleteConnection,
HTTPMethod: "DELETE",
HTTPPath: "/@connections/{connectionId}",
}
if input == nil {
input = &DeleteConnectionInput{}
}
output = &DeleteConnectionOutput{}
req = c.newRequest(op, input, output)
req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
return
}
// DeleteConnection API operation for AmazonApiGatewayManagementApi.
//
// Delete the connection with the provided 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 AmazonApiGatewayManagementApi's
// API operation DeleteConnection for usage and error information.
//
// Returned Error Types:
// * GoneException
// The connection with the provided id no longer exists.
//
// * LimitExceededException
// The client is sending more than the allowed number of requests per unit of
// time or the WebSocket client side buffer is full.
//
// * ForbiddenException
// The caller is not authorized to invoke this operation.
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/apigatewaymanagementapi-2018-11-29/DeleteConnection
func (c *ApiGatewayManagementApi) DeleteConnection(input *DeleteConnectionInput) (*DeleteConnectionOutput, error) {
req, out := c.DeleteConnectionRequest(input)
return out, req.Send()
}
// DeleteConnectionWithContext is the same as DeleteConnection with the addition of
// the ability to pass a context and additional request options.
//
// See DeleteConnection for details on how to use this API operation.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
func (c *ApiGatewayManagementApi) DeleteConnectionWithContext(ctx aws.Context, input *DeleteConnectionInput, opts ...request.Option) (*DeleteConnectionOutput, error) {
req, out := c.DeleteConnectionRequest(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
const opGetConnection = "GetConnection"
// GetConnectionRequest generates a "aws/request.Request" representing the
// client's request for the GetConnection operation. The "output" return
// value will be populated with the request's response once the request completes
// successfully.
//
// Use "Send" method on the returned Request to send the API call to the service.
// the "output" return value is not valid until after Send returns without error.
//
// See GetConnection for more information on using the GetConnection
// API call, and error handling.
//
// This method is useful when you want to inject custom logic or configuration
// into the SDK's request lifecycle. Such as custom headers, or retry logic.
//
//
// // Example sending a request using the GetConnectionRequest method.
// req, resp := client.GetConnectionRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/apigatewaymanagementapi-2018-11-29/GetConnection
func (c *ApiGatewayManagementApi) GetConnectionRequest(input *GetConnectionInput) (req *request.Request, output *GetConnectionOutput) {
op := &request.Operation{
Name: opGetConnection,
HTTPMethod: "GET",
HTTPPath: "/@connections/{connectionId}",
}
if input == nil {
input = &GetConnectionInput{}
}
output = &GetConnectionOutput{}
req = c.newRequest(op, input, output)
return
}
// GetConnection API operation for AmazonApiGatewayManagementApi.
//
// Get information about the connection with the provided 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 AmazonApiGatewayManagementApi's
// API operation GetConnection for usage and error information.
//
// Returned Error Types:
// * GoneException
// The connection with the provided id no longer exists.
//
// * LimitExceededException
// The client is sending more than the allowed number of requests per unit of
// time or the WebSocket client side buffer is full.
//
// * ForbiddenException
// The caller is not authorized to invoke this operation.
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/apigatewaymanagementapi-2018-11-29/GetConnection
func (c *ApiGatewayManagementApi) GetConnection(input *GetConnectionInput) (*GetConnectionOutput, error) {
req, out := c.GetConnectionRequest(input)
return out, req.Send()
}
// GetConnectionWithContext is the same as GetConnection with the addition of
// the ability to pass a context and additional request options.
//
// See GetConnection for details on how to use this API operation.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
func (c *ApiGatewayManagementApi) GetConnectionWithContext(ctx aws.Context, input *GetConnectionInput, opts ...request.Option) (*GetConnectionOutput, error) {
req, out := c.GetConnectionRequest(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
const opPostToConnection = "PostToConnection"
// PostToConnectionRequest generates a "aws/request.Request" representing the
// client's request for the PostToConnection 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 PostToConnection for more information on using the PostToConnection
// 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 PostToConnectionRequest method.
// req, resp := client.PostToConnectionRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/apigatewaymanagementapi-2018-11-29/PostToConnection
func (c *ApiGatewayManagementApi) PostToConnectionRequest(input *PostToConnectionInput) (req *request.Request, output *PostToConnectionOutput) {
op := &request.Operation{
Name: opPostToConnection,
HTTPMethod: "POST",
HTTPPath: "/@connections/{connectionId}",
}
if input == nil {
input = &PostToConnectionInput{}
}
output = &PostToConnectionOutput{}
req = c.newRequest(op, input, output)
req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
return
}
// PostToConnection API operation for AmazonApiGatewayManagementApi.
//
// Sends the provided data to the specified connection.
//
// 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 AmazonApiGatewayManagementApi's
// API operation PostToConnection for usage and error information.
//
// Returned Error Types:
// * GoneException
// The connection with the provided id no longer exists.
//
// * LimitExceededException
// The client is sending more than the allowed number of requests per unit of
// time or the WebSocket client side buffer is full.
//
// * PayloadTooLargeException
// The data has exceeded the maximum size allowed.
//
// * ForbiddenException
// The caller is not authorized to invoke this operation.
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/apigatewaymanagementapi-2018-11-29/PostToConnection
func (c *ApiGatewayManagementApi) PostToConnection(input *PostToConnectionInput) (*PostToConnectionOutput, error) {
req, out := c.PostToConnectionRequest(input)
return out, req.Send()
}
// PostToConnectionWithContext is the same as PostToConnection with the addition of
// the ability to pass a context and additional request options.
//
// See PostToConnection for details on how to use this API operation.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
func (c *ApiGatewayManagementApi) PostToConnectionWithContext(ctx aws.Context, input *PostToConnectionInput, opts ...request.Option) (*PostToConnectionOutput, error) {
req, out := c.PostToConnectionRequest(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
type DeleteConnectionInput struct {
_ struct{} `type:"structure"`
// ConnectionId is a required field
ConnectionId *string `location:"uri" locationName:"connectionId" type:"string" required:"true"`
}
// String returns the string representation
func (s DeleteConnectionInput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s DeleteConnectionInput) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
func (s *DeleteConnectionInput) Validate() error {
invalidParams := request.ErrInvalidParams{Context: "DeleteConnectionInput"}
if s.ConnectionId == nil {
invalidParams.Add(request.NewErrParamRequired("ConnectionId"))
}
if s.ConnectionId != nil && len(*s.ConnectionId) < 1 {
invalidParams.Add(request.NewErrParamMinLen("ConnectionId", 1))
}
if invalidParams.Len() > 0 {
return invalidParams
}
return nil
}
// SetConnectionId sets the ConnectionId field's value.
func (s *DeleteConnectionInput) SetConnectionId(v string) *DeleteConnectionInput {
s.ConnectionId = &v
return s
}
type DeleteConnectionOutput struct {
_ struct{} `type:"structure"`
}
// String returns the string representation
func (s DeleteConnectionOutput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s DeleteConnectionOutput) GoString() string {
return s.String()
}
// The caller is not authorized to invoke this operation.
type ForbiddenException struct {
_ struct{} `type:"structure"`
RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
// String returns the string representation
func (s ForbiddenException) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s ForbiddenException) GoString() string {
return s.String()
}
func newErrorForbiddenException(v protocol.ResponseMetadata) error {
return &ForbiddenException{
RespMetadata: v,
}
}
// Code returns the exception type name.
func (s *ForbiddenException) Code() string {
return "ForbiddenException"
}
// Message returns the exception's message.
func (s *ForbiddenException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
return ""
}
// OrigErr always returns nil, satisfies awserr.Error interface.
func (s *ForbiddenException) OrigErr() error {
return nil
}
func (s *ForbiddenException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
func (s *ForbiddenException) StatusCode() int {
return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
func (s *ForbiddenException) RequestID() string {
return s.RespMetadata.RequestID
}
type GetConnectionInput struct {
_ struct{} `type:"structure"`
// ConnectionId is a required field
ConnectionId *string `location:"uri" locationName:"connectionId" type:"string" required:"true"`
}
// String returns the string representation
func (s GetConnectionInput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s GetConnectionInput) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
func (s *GetConnectionInput) Validate() error {
invalidParams := request.ErrInvalidParams{Context: "GetConnectionInput"}
if s.ConnectionId == nil {
invalidParams.Add(request.NewErrParamRequired("ConnectionId"))
}
if s.ConnectionId != nil && len(*s.ConnectionId) < 1 {
invalidParams.Add(request.NewErrParamMinLen("ConnectionId", 1))
}
if invalidParams.Len() > 0 {
return invalidParams
}
return nil
}
// SetConnectionId sets the ConnectionId field's value.
func (s *GetConnectionInput) SetConnectionId(v string) *GetConnectionInput {
s.ConnectionId = &v
return s
}
type GetConnectionOutput struct {
_ struct{} `type:"structure"`
ConnectedAt *time.Time `locationName:"connectedAt" type:"timestamp" timestampFormat:"iso8601"`
Identity *Identity `locationName:"identity" type:"structure"`
LastActiveAt *time.Time `locationName:"lastActiveAt" type:"timestamp" timestampFormat:"iso8601"`
}
// String returns the string representation
func (s GetConnectionOutput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s GetConnectionOutput) GoString() string {
return s.String()
}
// SetConnectedAt sets the ConnectedAt field's value.
func (s *GetConnectionOutput) SetConnectedAt(v time.Time) *GetConnectionOutput {
s.ConnectedAt = &v
return s
}
// SetIdentity sets the Identity field's value.
func (s *GetConnectionOutput) SetIdentity(v *Identity) *GetConnectionOutput {
s.Identity = v
return s
}
// SetLastActiveAt sets the LastActiveAt field's value.
func (s *GetConnectionOutput) SetLastActiveAt(v time.Time) *GetConnectionOutput {
s.LastActiveAt = &v
return s
}
// The connection with the provided id no longer exists.
type GoneException struct {
_ struct{} `type:"structure"`
RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
// String returns the string representation
func (s GoneException) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s GoneException) GoString() string {
return s.String()
}
func newErrorGoneException(v protocol.ResponseMetadata) error {
return &GoneException{
RespMetadata: v,
}
}
// Code returns the exception type name.
func (s *GoneException) Code() string {
return "GoneException"
}
// Message returns the exception's message.
func (s *GoneException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
return ""
}
// OrigErr always returns nil, satisfies awserr.Error interface.
func (s *GoneException) OrigErr() error {
return nil
}
func (s *GoneException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
func (s *GoneException) StatusCode() int {
return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
func (s *GoneException) RequestID() string {
return s.RespMetadata.RequestID
}
type Identity struct {
_ struct{} `type:"structure"`
// The source IP address of the TCP connection making the request to API Gateway.
//
// SourceIp is a required field
SourceIp *string `locationName:"sourceIp" type:"string" required:"true"`
// The User Agent of the API caller.
//
// UserAgent is a required field
UserAgent *string `locationName:"userAgent" type:"string" required:"true"`
}
// String returns the string representation
func (s Identity) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s Identity) GoString() string {
return s.String()
}
// SetSourceIp sets the SourceIp field's value.
func (s *Identity) SetSourceIp(v string) *Identity {
s.SourceIp = &v
return s
}
// SetUserAgent sets the UserAgent field's value.
func (s *Identity) SetUserAgent(v string) *Identity {
s.UserAgent = &v
return s
}
// The client is sending more than the allowed number of requests per unit of
// time or the WebSocket client side buffer is full.
type LimitExceededException struct {
_ struct{} `type:"structure"`
RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
// String returns the string representation
func (s LimitExceededException) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s LimitExceededException) GoString() string {
return s.String()
}
func newErrorLimitExceededException(v protocol.ResponseMetadata) error {
return &LimitExceededException{
RespMetadata: v,
}
}
// Code returns the exception type name.
func (s *LimitExceededException) Code() string {
return "LimitExceededException"
}
// Message returns the exception's message.
func (s *LimitExceededException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
return ""
}
// OrigErr always returns nil, satisfies awserr.Error interface.
func (s *LimitExceededException) OrigErr() error {
return nil
}
func (s *LimitExceededException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
func (s *LimitExceededException) StatusCode() int {
return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
func (s *LimitExceededException) RequestID() string {
return s.RespMetadata.RequestID
}
// The data has exceeded the maximum size allowed.
type PayloadTooLargeException struct {
_ struct{} `type:"structure"`
RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
// String returns the string representation
func (s PayloadTooLargeException) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s PayloadTooLargeException) GoString() string {
return s.String()
}
func newErrorPayloadTooLargeException(v protocol.ResponseMetadata) error {
return &PayloadTooLargeException{
RespMetadata: v,
}
}
// Code returns the exception type name.
func (s *PayloadTooLargeException) Code() string {
return "PayloadTooLargeException"
}
// Message returns the exception's message.
func (s *PayloadTooLargeException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
return ""
}
// OrigErr always returns nil, satisfies awserr.Error interface.
func (s *PayloadTooLargeException) OrigErr() error {
return nil
}
func (s *PayloadTooLargeException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
func (s *PayloadTooLargeException) StatusCode() int {
return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
func (s *PayloadTooLargeException) RequestID() string {
return s.RespMetadata.RequestID
}
type PostToConnectionInput struct {
_ struct{} `type:"structure" payload:"Data"`
// ConnectionId is a required field
ConnectionId *string `location:"uri" locationName:"connectionId" type:"string" required:"true"`
// The data to be sent to the client specified by its connection id.
//
// Data is a required field
Data []byte `type:"blob" required:"true"`
}
// String returns the string representation
func (s PostToConnectionInput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s PostToConnectionInput) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
func (s *PostToConnectionInput) Validate() error {
invalidParams := request.ErrInvalidParams{Context: "PostToConnectionInput"}
if s.ConnectionId == nil {
invalidParams.Add(request.NewErrParamRequired("ConnectionId"))
}
if s.ConnectionId != nil && len(*s.ConnectionId) < 1 {
invalidParams.Add(request.NewErrParamMinLen("ConnectionId", 1))
}
if s.Data == nil {
invalidParams.Add(request.NewErrParamRequired("Data"))
}
if invalidParams.Len() > 0 {
return invalidParams
}
return nil
}
// SetConnectionId sets the ConnectionId field's value.
func (s *PostToConnectionInput) SetConnectionId(v string) *PostToConnectionInput {
s.ConnectionId = &v
return s
}
// SetData sets the Data field's value.
func (s *PostToConnectionInput) SetData(v []byte) *PostToConnectionInput {
s.Data = v
return s
}
type PostToConnectionOutput struct {
_ struct{} `type:"structure"`
}
// String returns the string representation
func (s PostToConnectionOutput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s PostToConnectionOutput) GoString() string {
return s.String()
}
| 736 |
session-manager-plugin | aws | Go | // Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
// Package apigatewaymanagementapi provides the client and types for making API
// requests to AmazonApiGatewayManagementApi.
//
// The Amazon API Gateway Management API allows you to directly manage runtime
// aspects of your deployed APIs. To use it, you must explicitly set the SDK's
// endpoint to point to the endpoint of your deployed API. The endpoint will
// be of the form https://{api-id}.execute-api.{region}.amazonaws.com/{stage},
// or will be the endpoint corresponding to your API's custom domain and base
// path, if applicable.
//
// See https://docs.aws.amazon.com/goto/WebAPI/apigatewaymanagementapi-2018-11-29 for more information on this service.
//
// See apigatewaymanagementapi package documentation for more information.
// https://docs.aws.amazon.com/sdk-for-go/api/service/apigatewaymanagementapi/
//
// Using the Client
//
// To contact AmazonApiGatewayManagementApi 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 AmazonApiGatewayManagementApi client ApiGatewayManagementApi for more
// information on creating client for this service.
// https://docs.aws.amazon.com/sdk-for-go/api/service/apigatewaymanagementapi/#New
package apigatewaymanagementapi
| 34 |
session-manager-plugin | aws | Go | // Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
package apigatewaymanagementapi
import (
"github.com/aws/aws-sdk-go/private/protocol"
)
const (
// ErrCodeForbiddenException for service response error code
// "ForbiddenException".
//
// The caller is not authorized to invoke this operation.
ErrCodeForbiddenException = "ForbiddenException"
// ErrCodeGoneException for service response error code
// "GoneException".
//
// The connection with the provided id no longer exists.
ErrCodeGoneException = "GoneException"
// ErrCodeLimitExceededException for service response error code
// "LimitExceededException".
//
// The client is sending more than the allowed number of requests per unit of
// time or the WebSocket client side buffer is full.
ErrCodeLimitExceededException = "LimitExceededException"
// ErrCodePayloadTooLargeException for service response error code
// "PayloadTooLargeException".
//
// The data has exceeded the maximum size allowed.
ErrCodePayloadTooLargeException = "PayloadTooLargeException"
)
var exceptionFromCode = map[string]func(protocol.ResponseMetadata) error{
"ForbiddenException": newErrorForbiddenException,
"GoneException": newErrorGoneException,
"LimitExceededException": newErrorLimitExceededException,
"PayloadTooLargeException": newErrorPayloadTooLargeException,
}
| 43 |
session-manager-plugin | aws | Go | // Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
package apigatewaymanagementapi
import (
"github.com/aws/aws-sdk-go/aws"
"github.com/aws/aws-sdk-go/aws/client"
"github.com/aws/aws-sdk-go/aws/client/metadata"
"github.com/aws/aws-sdk-go/aws/request"
"github.com/aws/aws-sdk-go/aws/signer/v4"
"github.com/aws/aws-sdk-go/private/protocol"
"github.com/aws/aws-sdk-go/private/protocol/restjson"
)
// ApiGatewayManagementApi provides the API operation methods for making requests to
// AmazonApiGatewayManagementApi. See this package's package overview docs
// for details on the service.
//
// ApiGatewayManagementApi methods are safe to use concurrently. It is not safe to
// modify mutate any of the struct's properties though.
type ApiGatewayManagementApi struct {
*client.Client
}
// Used for custom client initialization logic
var initClient func(*client.Client)
// Used for custom request initialization logic
var initRequest func(*request.Request)
// Service information constants
const (
ServiceName = "ApiGatewayManagementApi" // Name of service.
EndpointsID = "execute-api" // ID to lookup a service endpoint with.
ServiceID = "ApiGatewayManagementApi" // ServiceID is a unique identifier of a specific service.
)
// New creates a new instance of the ApiGatewayManagementApi 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 ApiGatewayManagementApi client from just a session.
// svc := apigatewaymanagementapi.New(mySession)
//
// // Create a ApiGatewayManagementApi client with additional configuration
// svc := apigatewaymanagementapi.New(mySession, aws.NewConfig().WithRegion("us-west-2"))
func New(p client.ConfigProvider, cfgs ...*aws.Config) *ApiGatewayManagementApi {
c := p.ClientConfig(EndpointsID, cfgs...)
if c.SigningNameDerived || len(c.SigningName) == 0 {
c.SigningName = "execute-api"
}
return newClient(*c.Config, c.Handlers, c.PartitionID, c.Endpoint, c.SigningRegion, c.SigningName)
}
// newClient creates, initializes and returns a new service client instance.
func newClient(cfg aws.Config, handlers request.Handlers, partitionID, endpoint, signingRegion, signingName string) *ApiGatewayManagementApi {
svc := &ApiGatewayManagementApi{
Client: client.New(
cfg,
metadata.ClientInfo{
ServiceName: ServiceName,
ServiceID: ServiceID,
SigningName: signingName,
SigningRegion: signingRegion,
PartitionID: partitionID,
Endpoint: endpoint,
APIVersion: "2018-11-29",
},
handlers,
),
}
// Handlers
svc.Handlers.Sign.PushBackNamed(v4.SignRequestHandler)
svc.Handlers.Build.PushBackNamed(restjson.BuildHandler)
svc.Handlers.Unmarshal.PushBackNamed(restjson.UnmarshalHandler)
svc.Handlers.UnmarshalMeta.PushBackNamed(restjson.UnmarshalMetaHandler)
svc.Handlers.UnmarshalError.PushBackNamed(
protocol.NewUnmarshalErrorHandler(restjson.NewUnmarshalTypedError(exceptionFromCode)).NamedHandler(),
)
// Run custom client initialization if present
if initClient != nil {
initClient(svc.Client)
}
return svc
}
// newRequest creates a new request for a ApiGatewayManagementApi operation and runs any
// custom request initialization.
func (c *ApiGatewayManagementApi) newRequest(op *request.Operation, params, data interface{}) *request.Request {
req := c.NewRequest(op, params, data)
// Run custom request initialization if present
if initRequest != nil {
initRequest(req)
}
return req
}
| 105 |
session-manager-plugin | aws | Go | // Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
// Package apigatewaymanagementapiiface provides an interface to enable mocking the AmazonApiGatewayManagementApi service client
// for testing your code.
//
// It is important to note that this interface will have breaking changes
// when the service model is updated and adds new API operations, paginators,
// and waiters.
package apigatewaymanagementapiiface
import (
"github.com/aws/aws-sdk-go/aws"
"github.com/aws/aws-sdk-go/aws/request"
"github.com/aws/aws-sdk-go/service/apigatewaymanagementapi"
)
// ApiGatewayManagementApiAPI provides an interface to enable mocking the
// apigatewaymanagementapi.ApiGatewayManagementApi service client's API operation,
// paginators, and waiters. This make unit testing your code that calls out
// to the SDK's service client's calls easier.
//
// The best way to use this interface is so the SDK's service client's calls
// can be stubbed out for unit testing your code with the SDK without needing
// to inject custom request handlers into the SDK's request pipeline.
//
// // myFunc uses an SDK service client to make a request to
// // AmazonApiGatewayManagementApi.
// func myFunc(svc apigatewaymanagementapiiface.ApiGatewayManagementApiAPI) bool {
// // Make svc.DeleteConnection request
// }
//
// func main() {
// sess := session.New()
// svc := apigatewaymanagementapi.New(sess)
//
// myFunc(svc)
// }
//
// In your _test.go file:
//
// // Define a mock struct to be used in your unit tests of myFunc.
// type mockApiGatewayManagementApiClient struct {
// apigatewaymanagementapiiface.ApiGatewayManagementApiAPI
// }
// func (m *mockApiGatewayManagementApiClient) DeleteConnection(input *apigatewaymanagementapi.DeleteConnectionInput) (*apigatewaymanagementapi.DeleteConnectionOutput, error) {
// // mock response/functionality
// }
//
// func TestMyFunc(t *testing.T) {
// // Setup Test
// mockSvc := &mockApiGatewayManagementApiClient{}
//
// myfunc(mockSvc)
//
// // Verify myFunc's functionality
// }
//
// It is important to note that this interface will have breaking changes
// when the service model is updated and adds new API operations, paginators,
// and waiters. Its suggested to use the pattern above for testing, or using
// tooling to generate mocks to satisfy the interfaces.
type ApiGatewayManagementApiAPI interface {
DeleteConnection(*apigatewaymanagementapi.DeleteConnectionInput) (*apigatewaymanagementapi.DeleteConnectionOutput, error)
DeleteConnectionWithContext(aws.Context, *apigatewaymanagementapi.DeleteConnectionInput, ...request.Option) (*apigatewaymanagementapi.DeleteConnectionOutput, error)
DeleteConnectionRequest(*apigatewaymanagementapi.DeleteConnectionInput) (*request.Request, *apigatewaymanagementapi.DeleteConnectionOutput)
GetConnection(*apigatewaymanagementapi.GetConnectionInput) (*apigatewaymanagementapi.GetConnectionOutput, error)
GetConnectionWithContext(aws.Context, *apigatewaymanagementapi.GetConnectionInput, ...request.Option) (*apigatewaymanagementapi.GetConnectionOutput, error)
GetConnectionRequest(*apigatewaymanagementapi.GetConnectionInput) (*request.Request, *apigatewaymanagementapi.GetConnectionOutput)
PostToConnection(*apigatewaymanagementapi.PostToConnectionInput) (*apigatewaymanagementapi.PostToConnectionOutput, error)
PostToConnectionWithContext(aws.Context, *apigatewaymanagementapi.PostToConnectionInput, ...request.Option) (*apigatewaymanagementapi.PostToConnectionOutput, error)
PostToConnectionRequest(*apigatewaymanagementapi.PostToConnectionInput) (*request.Request, *apigatewaymanagementapi.PostToConnectionOutput)
}
var _ ApiGatewayManagementApiAPI = (*apigatewaymanagementapi.ApiGatewayManagementApi)(nil)
| 77 |
session-manager-plugin | aws | Go | // Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
// Package apigatewayv2 provides the client and types for making API
// requests to AmazonApiGatewayV2.
//
// Amazon API Gateway V2
//
// See https://docs.aws.amazon.com/goto/WebAPI/apigatewayv2-2018-11-29 for more information on this service.
//
// See apigatewayv2 package documentation for more information.
// https://docs.aws.amazon.com/sdk-for-go/api/service/apigatewayv2/
//
// Using the Client
//
// To contact AmazonApiGatewayV2 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 AmazonApiGatewayV2 client ApiGatewayV2 for more
// information on creating client for this service.
// https://docs.aws.amazon.com/sdk-for-go/api/service/apigatewayv2/#New
package apigatewayv2
| 29 |
session-manager-plugin | aws | Go | // Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
package apigatewayv2
import (
"github.com/aws/aws-sdk-go/private/protocol"
)
const (
// ErrCodeAccessDeniedException for service response error code
// "AccessDeniedException".
ErrCodeAccessDeniedException = "AccessDeniedException"
// ErrCodeBadRequestException for service response error code
// "BadRequestException".
//
// The request is not valid, for example, the input is incomplete or incorrect.
// See the accompanying error message for details.
ErrCodeBadRequestException = "BadRequestException"
// ErrCodeConflictException for service response error code
// "ConflictException".
//
// The requested operation would cause a conflict with the current state of
// a service resource associated with the request. Resolve the conflict before
// retrying this request. See the accompanying error message for details.
ErrCodeConflictException = "ConflictException"
// ErrCodeNotFoundException for service response error code
// "NotFoundException".
//
// The resource specified in the request was not found. See the message field
// for more information.
ErrCodeNotFoundException = "NotFoundException"
// ErrCodeTooManyRequestsException for service response error code
// "TooManyRequestsException".
//
// A limit has been exceeded. See the accompanying error message for details.
ErrCodeTooManyRequestsException = "TooManyRequestsException"
)
var exceptionFromCode = map[string]func(protocol.ResponseMetadata) error{
"AccessDeniedException": newErrorAccessDeniedException,
"BadRequestException": newErrorBadRequestException,
"ConflictException": newErrorConflictException,
"NotFoundException": newErrorNotFoundException,
"TooManyRequestsException": newErrorTooManyRequestsException,
}
| 51 |
session-manager-plugin | aws | Go | // Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
package apigatewayv2
import (
"github.com/aws/aws-sdk-go/aws"
"github.com/aws/aws-sdk-go/aws/client"
"github.com/aws/aws-sdk-go/aws/client/metadata"
"github.com/aws/aws-sdk-go/aws/request"
"github.com/aws/aws-sdk-go/aws/signer/v4"
"github.com/aws/aws-sdk-go/private/protocol"
"github.com/aws/aws-sdk-go/private/protocol/restjson"
)
// ApiGatewayV2 provides the API operation methods for making requests to
// AmazonApiGatewayV2. See this package's package overview docs
// for details on the service.
//
// ApiGatewayV2 methods are safe to use concurrently. It is not safe to
// modify mutate any of the struct's properties though.
type ApiGatewayV2 struct {
*client.Client
}
// Used for custom client initialization logic
var initClient func(*client.Client)
// Used for custom request initialization logic
var initRequest func(*request.Request)
// Service information constants
const (
ServiceName = "ApiGatewayV2" // Name of service.
EndpointsID = "apigateway" // ID to lookup a service endpoint with.
ServiceID = "ApiGatewayV2" // ServiceID is a unique identifier of a specific service.
)
// New creates a new instance of the ApiGatewayV2 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 ApiGatewayV2 client from just a session.
// svc := apigatewayv2.New(mySession)
//
// // Create a ApiGatewayV2 client with additional configuration
// svc := apigatewayv2.New(mySession, aws.NewConfig().WithRegion("us-west-2"))
func New(p client.ConfigProvider, cfgs ...*aws.Config) *ApiGatewayV2 {
c := p.ClientConfig(EndpointsID, cfgs...)
if c.SigningNameDerived || len(c.SigningName) == 0 {
c.SigningName = "apigateway"
}
return newClient(*c.Config, c.Handlers, c.PartitionID, c.Endpoint, c.SigningRegion, c.SigningName)
}
// newClient creates, initializes and returns a new service client instance.
func newClient(cfg aws.Config, handlers request.Handlers, partitionID, endpoint, signingRegion, signingName string) *ApiGatewayV2 {
svc := &ApiGatewayV2{
Client: client.New(
cfg,
metadata.ClientInfo{
ServiceName: ServiceName,
ServiceID: ServiceID,
SigningName: signingName,
SigningRegion: signingRegion,
PartitionID: partitionID,
Endpoint: endpoint,
APIVersion: "2018-11-29",
},
handlers,
),
}
// Handlers
svc.Handlers.Sign.PushBackNamed(v4.SignRequestHandler)
svc.Handlers.Build.PushBackNamed(restjson.BuildHandler)
svc.Handlers.Unmarshal.PushBackNamed(restjson.UnmarshalHandler)
svc.Handlers.UnmarshalMeta.PushBackNamed(restjson.UnmarshalMetaHandler)
svc.Handlers.UnmarshalError.PushBackNamed(
protocol.NewUnmarshalErrorHandler(restjson.NewUnmarshalTypedError(exceptionFromCode)).NamedHandler(),
)
// Run custom client initialization if present
if initClient != nil {
initClient(svc.Client)
}
return svc
}
// newRequest creates a new request for a ApiGatewayV2 operation and runs any
// custom request initialization.
func (c *ApiGatewayV2) newRequest(op *request.Operation, params, data interface{}) *request.Request {
req := c.NewRequest(op, params, data)
// Run custom request initialization if present
if initRequest != nil {
initRequest(req)
}
return req
}
| 105 |
session-manager-plugin | aws | Go | // Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
// Package apigatewayv2iface provides an interface to enable mocking the AmazonApiGatewayV2 service client
// for testing your code.
//
// It is important to note that this interface will have breaking changes
// when the service model is updated and adds new API operations, paginators,
// and waiters.
package apigatewayv2iface
import (
"github.com/aws/aws-sdk-go/aws"
"github.com/aws/aws-sdk-go/aws/request"
"github.com/aws/aws-sdk-go/service/apigatewayv2"
)
// ApiGatewayV2API provides an interface to enable mocking the
// apigatewayv2.ApiGatewayV2 service client's API operation,
// paginators, and waiters. This make unit testing your code that calls out
// to the SDK's service client's calls easier.
//
// The best way to use this interface is so the SDK's service client's calls
// can be stubbed out for unit testing your code with the SDK without needing
// to inject custom request handlers into the SDK's request pipeline.
//
// // myFunc uses an SDK service client to make a request to
// // AmazonApiGatewayV2.
// func myFunc(svc apigatewayv2iface.ApiGatewayV2API) bool {
// // Make svc.CreateApi request
// }
//
// func main() {
// sess := session.New()
// svc := apigatewayv2.New(sess)
//
// myFunc(svc)
// }
//
// In your _test.go file:
//
// // Define a mock struct to be used in your unit tests of myFunc.
// type mockApiGatewayV2Client struct {
// apigatewayv2iface.ApiGatewayV2API
// }
// func (m *mockApiGatewayV2Client) CreateApi(input *apigatewayv2.CreateApiInput) (*apigatewayv2.CreateApiOutput, error) {
// // mock response/functionality
// }
//
// func TestMyFunc(t *testing.T) {
// // Setup Test
// mockSvc := &mockApiGatewayV2Client{}
//
// myfunc(mockSvc)
//
// // Verify myFunc's functionality
// }
//
// It is important to note that this interface will have breaking changes
// when the service model is updated and adds new API operations, paginators,
// and waiters. Its suggested to use the pattern above for testing, or using
// tooling to generate mocks to satisfy the interfaces.
type ApiGatewayV2API interface {
CreateApi(*apigatewayv2.CreateApiInput) (*apigatewayv2.CreateApiOutput, error)
CreateApiWithContext(aws.Context, *apigatewayv2.CreateApiInput, ...request.Option) (*apigatewayv2.CreateApiOutput, error)
CreateApiRequest(*apigatewayv2.CreateApiInput) (*request.Request, *apigatewayv2.CreateApiOutput)
CreateApiMapping(*apigatewayv2.CreateApiMappingInput) (*apigatewayv2.CreateApiMappingOutput, error)
CreateApiMappingWithContext(aws.Context, *apigatewayv2.CreateApiMappingInput, ...request.Option) (*apigatewayv2.CreateApiMappingOutput, error)
CreateApiMappingRequest(*apigatewayv2.CreateApiMappingInput) (*request.Request, *apigatewayv2.CreateApiMappingOutput)
CreateAuthorizer(*apigatewayv2.CreateAuthorizerInput) (*apigatewayv2.CreateAuthorizerOutput, error)
CreateAuthorizerWithContext(aws.Context, *apigatewayv2.CreateAuthorizerInput, ...request.Option) (*apigatewayv2.CreateAuthorizerOutput, error)
CreateAuthorizerRequest(*apigatewayv2.CreateAuthorizerInput) (*request.Request, *apigatewayv2.CreateAuthorizerOutput)
CreateDeployment(*apigatewayv2.CreateDeploymentInput) (*apigatewayv2.CreateDeploymentOutput, error)
CreateDeploymentWithContext(aws.Context, *apigatewayv2.CreateDeploymentInput, ...request.Option) (*apigatewayv2.CreateDeploymentOutput, error)
CreateDeploymentRequest(*apigatewayv2.CreateDeploymentInput) (*request.Request, *apigatewayv2.CreateDeploymentOutput)
CreateDomainName(*apigatewayv2.CreateDomainNameInput) (*apigatewayv2.CreateDomainNameOutput, error)
CreateDomainNameWithContext(aws.Context, *apigatewayv2.CreateDomainNameInput, ...request.Option) (*apigatewayv2.CreateDomainNameOutput, error)
CreateDomainNameRequest(*apigatewayv2.CreateDomainNameInput) (*request.Request, *apigatewayv2.CreateDomainNameOutput)
CreateIntegration(*apigatewayv2.CreateIntegrationInput) (*apigatewayv2.CreateIntegrationOutput, error)
CreateIntegrationWithContext(aws.Context, *apigatewayv2.CreateIntegrationInput, ...request.Option) (*apigatewayv2.CreateIntegrationOutput, error)
CreateIntegrationRequest(*apigatewayv2.CreateIntegrationInput) (*request.Request, *apigatewayv2.CreateIntegrationOutput)
CreateIntegrationResponse(*apigatewayv2.CreateIntegrationResponseInput) (*apigatewayv2.CreateIntegrationResponseOutput, error)
CreateIntegrationResponseWithContext(aws.Context, *apigatewayv2.CreateIntegrationResponseInput, ...request.Option) (*apigatewayv2.CreateIntegrationResponseOutput, error)
CreateIntegrationResponseRequest(*apigatewayv2.CreateIntegrationResponseInput) (*request.Request, *apigatewayv2.CreateIntegrationResponseOutput)
CreateModel(*apigatewayv2.CreateModelInput) (*apigatewayv2.CreateModelOutput, error)
CreateModelWithContext(aws.Context, *apigatewayv2.CreateModelInput, ...request.Option) (*apigatewayv2.CreateModelOutput, error)
CreateModelRequest(*apigatewayv2.CreateModelInput) (*request.Request, *apigatewayv2.CreateModelOutput)
CreateRoute(*apigatewayv2.CreateRouteInput) (*apigatewayv2.CreateRouteOutput, error)
CreateRouteWithContext(aws.Context, *apigatewayv2.CreateRouteInput, ...request.Option) (*apigatewayv2.CreateRouteOutput, error)
CreateRouteRequest(*apigatewayv2.CreateRouteInput) (*request.Request, *apigatewayv2.CreateRouteOutput)
CreateRouteResponse(*apigatewayv2.CreateRouteResponseInput) (*apigatewayv2.CreateRouteResponseOutput, error)
CreateRouteResponseWithContext(aws.Context, *apigatewayv2.CreateRouteResponseInput, ...request.Option) (*apigatewayv2.CreateRouteResponseOutput, error)
CreateRouteResponseRequest(*apigatewayv2.CreateRouteResponseInput) (*request.Request, *apigatewayv2.CreateRouteResponseOutput)
CreateStage(*apigatewayv2.CreateStageInput) (*apigatewayv2.CreateStageOutput, error)
CreateStageWithContext(aws.Context, *apigatewayv2.CreateStageInput, ...request.Option) (*apigatewayv2.CreateStageOutput, error)
CreateStageRequest(*apigatewayv2.CreateStageInput) (*request.Request, *apigatewayv2.CreateStageOutput)
CreateVpcLink(*apigatewayv2.CreateVpcLinkInput) (*apigatewayv2.CreateVpcLinkOutput, error)
CreateVpcLinkWithContext(aws.Context, *apigatewayv2.CreateVpcLinkInput, ...request.Option) (*apigatewayv2.CreateVpcLinkOutput, error)
CreateVpcLinkRequest(*apigatewayv2.CreateVpcLinkInput) (*request.Request, *apigatewayv2.CreateVpcLinkOutput)
DeleteAccessLogSettings(*apigatewayv2.DeleteAccessLogSettingsInput) (*apigatewayv2.DeleteAccessLogSettingsOutput, error)
DeleteAccessLogSettingsWithContext(aws.Context, *apigatewayv2.DeleteAccessLogSettingsInput, ...request.Option) (*apigatewayv2.DeleteAccessLogSettingsOutput, error)
DeleteAccessLogSettingsRequest(*apigatewayv2.DeleteAccessLogSettingsInput) (*request.Request, *apigatewayv2.DeleteAccessLogSettingsOutput)
DeleteApi(*apigatewayv2.DeleteApiInput) (*apigatewayv2.DeleteApiOutput, error)
DeleteApiWithContext(aws.Context, *apigatewayv2.DeleteApiInput, ...request.Option) (*apigatewayv2.DeleteApiOutput, error)
DeleteApiRequest(*apigatewayv2.DeleteApiInput) (*request.Request, *apigatewayv2.DeleteApiOutput)
DeleteApiMapping(*apigatewayv2.DeleteApiMappingInput) (*apigatewayv2.DeleteApiMappingOutput, error)
DeleteApiMappingWithContext(aws.Context, *apigatewayv2.DeleteApiMappingInput, ...request.Option) (*apigatewayv2.DeleteApiMappingOutput, error)
DeleteApiMappingRequest(*apigatewayv2.DeleteApiMappingInput) (*request.Request, *apigatewayv2.DeleteApiMappingOutput)
DeleteAuthorizer(*apigatewayv2.DeleteAuthorizerInput) (*apigatewayv2.DeleteAuthorizerOutput, error)
DeleteAuthorizerWithContext(aws.Context, *apigatewayv2.DeleteAuthorizerInput, ...request.Option) (*apigatewayv2.DeleteAuthorizerOutput, error)
DeleteAuthorizerRequest(*apigatewayv2.DeleteAuthorizerInput) (*request.Request, *apigatewayv2.DeleteAuthorizerOutput)
DeleteCorsConfiguration(*apigatewayv2.DeleteCorsConfigurationInput) (*apigatewayv2.DeleteCorsConfigurationOutput, error)
DeleteCorsConfigurationWithContext(aws.Context, *apigatewayv2.DeleteCorsConfigurationInput, ...request.Option) (*apigatewayv2.DeleteCorsConfigurationOutput, error)
DeleteCorsConfigurationRequest(*apigatewayv2.DeleteCorsConfigurationInput) (*request.Request, *apigatewayv2.DeleteCorsConfigurationOutput)
DeleteDeployment(*apigatewayv2.DeleteDeploymentInput) (*apigatewayv2.DeleteDeploymentOutput, error)
DeleteDeploymentWithContext(aws.Context, *apigatewayv2.DeleteDeploymentInput, ...request.Option) (*apigatewayv2.DeleteDeploymentOutput, error)
DeleteDeploymentRequest(*apigatewayv2.DeleteDeploymentInput) (*request.Request, *apigatewayv2.DeleteDeploymentOutput)
DeleteDomainName(*apigatewayv2.DeleteDomainNameInput) (*apigatewayv2.DeleteDomainNameOutput, error)
DeleteDomainNameWithContext(aws.Context, *apigatewayv2.DeleteDomainNameInput, ...request.Option) (*apigatewayv2.DeleteDomainNameOutput, error)
DeleteDomainNameRequest(*apigatewayv2.DeleteDomainNameInput) (*request.Request, *apigatewayv2.DeleteDomainNameOutput)
DeleteIntegration(*apigatewayv2.DeleteIntegrationInput) (*apigatewayv2.DeleteIntegrationOutput, error)
DeleteIntegrationWithContext(aws.Context, *apigatewayv2.DeleteIntegrationInput, ...request.Option) (*apigatewayv2.DeleteIntegrationOutput, error)
DeleteIntegrationRequest(*apigatewayv2.DeleteIntegrationInput) (*request.Request, *apigatewayv2.DeleteIntegrationOutput)
DeleteIntegrationResponse(*apigatewayv2.DeleteIntegrationResponseInput) (*apigatewayv2.DeleteIntegrationResponseOutput, error)
DeleteIntegrationResponseWithContext(aws.Context, *apigatewayv2.DeleteIntegrationResponseInput, ...request.Option) (*apigatewayv2.DeleteIntegrationResponseOutput, error)
DeleteIntegrationResponseRequest(*apigatewayv2.DeleteIntegrationResponseInput) (*request.Request, *apigatewayv2.DeleteIntegrationResponseOutput)
DeleteModel(*apigatewayv2.DeleteModelInput) (*apigatewayv2.DeleteModelOutput, error)
DeleteModelWithContext(aws.Context, *apigatewayv2.DeleteModelInput, ...request.Option) (*apigatewayv2.DeleteModelOutput, error)
DeleteModelRequest(*apigatewayv2.DeleteModelInput) (*request.Request, *apigatewayv2.DeleteModelOutput)
DeleteRoute(*apigatewayv2.DeleteRouteInput) (*apigatewayv2.DeleteRouteOutput, error)
DeleteRouteWithContext(aws.Context, *apigatewayv2.DeleteRouteInput, ...request.Option) (*apigatewayv2.DeleteRouteOutput, error)
DeleteRouteRequest(*apigatewayv2.DeleteRouteInput) (*request.Request, *apigatewayv2.DeleteRouteOutput)
DeleteRouteRequestParameter(*apigatewayv2.DeleteRouteRequestParameterInput) (*apigatewayv2.DeleteRouteRequestParameterOutput, error)
DeleteRouteRequestParameterWithContext(aws.Context, *apigatewayv2.DeleteRouteRequestParameterInput, ...request.Option) (*apigatewayv2.DeleteRouteRequestParameterOutput, error)
DeleteRouteRequestParameterRequest(*apigatewayv2.DeleteRouteRequestParameterInput) (*request.Request, *apigatewayv2.DeleteRouteRequestParameterOutput)
DeleteRouteResponse(*apigatewayv2.DeleteRouteResponseInput) (*apigatewayv2.DeleteRouteResponseOutput, error)
DeleteRouteResponseWithContext(aws.Context, *apigatewayv2.DeleteRouteResponseInput, ...request.Option) (*apigatewayv2.DeleteRouteResponseOutput, error)
DeleteRouteResponseRequest(*apigatewayv2.DeleteRouteResponseInput) (*request.Request, *apigatewayv2.DeleteRouteResponseOutput)
DeleteRouteSettings(*apigatewayv2.DeleteRouteSettingsInput) (*apigatewayv2.DeleteRouteSettingsOutput, error)
DeleteRouteSettingsWithContext(aws.Context, *apigatewayv2.DeleteRouteSettingsInput, ...request.Option) (*apigatewayv2.DeleteRouteSettingsOutput, error)
DeleteRouteSettingsRequest(*apigatewayv2.DeleteRouteSettingsInput) (*request.Request, *apigatewayv2.DeleteRouteSettingsOutput)
DeleteStage(*apigatewayv2.DeleteStageInput) (*apigatewayv2.DeleteStageOutput, error)
DeleteStageWithContext(aws.Context, *apigatewayv2.DeleteStageInput, ...request.Option) (*apigatewayv2.DeleteStageOutput, error)
DeleteStageRequest(*apigatewayv2.DeleteStageInput) (*request.Request, *apigatewayv2.DeleteStageOutput)
DeleteVpcLink(*apigatewayv2.DeleteVpcLinkInput) (*apigatewayv2.DeleteVpcLinkOutput, error)
DeleteVpcLinkWithContext(aws.Context, *apigatewayv2.DeleteVpcLinkInput, ...request.Option) (*apigatewayv2.DeleteVpcLinkOutput, error)
DeleteVpcLinkRequest(*apigatewayv2.DeleteVpcLinkInput) (*request.Request, *apigatewayv2.DeleteVpcLinkOutput)
ExportApi(*apigatewayv2.ExportApiInput) (*apigatewayv2.ExportApiOutput, error)
ExportApiWithContext(aws.Context, *apigatewayv2.ExportApiInput, ...request.Option) (*apigatewayv2.ExportApiOutput, error)
ExportApiRequest(*apigatewayv2.ExportApiInput) (*request.Request, *apigatewayv2.ExportApiOutput)
GetApi(*apigatewayv2.GetApiInput) (*apigatewayv2.GetApiOutput, error)
GetApiWithContext(aws.Context, *apigatewayv2.GetApiInput, ...request.Option) (*apigatewayv2.GetApiOutput, error)
GetApiRequest(*apigatewayv2.GetApiInput) (*request.Request, *apigatewayv2.GetApiOutput)
GetApiMapping(*apigatewayv2.GetApiMappingInput) (*apigatewayv2.GetApiMappingOutput, error)
GetApiMappingWithContext(aws.Context, *apigatewayv2.GetApiMappingInput, ...request.Option) (*apigatewayv2.GetApiMappingOutput, error)
GetApiMappingRequest(*apigatewayv2.GetApiMappingInput) (*request.Request, *apigatewayv2.GetApiMappingOutput)
GetApiMappings(*apigatewayv2.GetApiMappingsInput) (*apigatewayv2.GetApiMappingsOutput, error)
GetApiMappingsWithContext(aws.Context, *apigatewayv2.GetApiMappingsInput, ...request.Option) (*apigatewayv2.GetApiMappingsOutput, error)
GetApiMappingsRequest(*apigatewayv2.GetApiMappingsInput) (*request.Request, *apigatewayv2.GetApiMappingsOutput)
GetApis(*apigatewayv2.GetApisInput) (*apigatewayv2.GetApisOutput, error)
GetApisWithContext(aws.Context, *apigatewayv2.GetApisInput, ...request.Option) (*apigatewayv2.GetApisOutput, error)
GetApisRequest(*apigatewayv2.GetApisInput) (*request.Request, *apigatewayv2.GetApisOutput)
GetAuthorizer(*apigatewayv2.GetAuthorizerInput) (*apigatewayv2.GetAuthorizerOutput, error)
GetAuthorizerWithContext(aws.Context, *apigatewayv2.GetAuthorizerInput, ...request.Option) (*apigatewayv2.GetAuthorizerOutput, error)
GetAuthorizerRequest(*apigatewayv2.GetAuthorizerInput) (*request.Request, *apigatewayv2.GetAuthorizerOutput)
GetAuthorizers(*apigatewayv2.GetAuthorizersInput) (*apigatewayv2.GetAuthorizersOutput, error)
GetAuthorizersWithContext(aws.Context, *apigatewayv2.GetAuthorizersInput, ...request.Option) (*apigatewayv2.GetAuthorizersOutput, error)
GetAuthorizersRequest(*apigatewayv2.GetAuthorizersInput) (*request.Request, *apigatewayv2.GetAuthorizersOutput)
GetDeployment(*apigatewayv2.GetDeploymentInput) (*apigatewayv2.GetDeploymentOutput, error)
GetDeploymentWithContext(aws.Context, *apigatewayv2.GetDeploymentInput, ...request.Option) (*apigatewayv2.GetDeploymentOutput, error)
GetDeploymentRequest(*apigatewayv2.GetDeploymentInput) (*request.Request, *apigatewayv2.GetDeploymentOutput)
GetDeployments(*apigatewayv2.GetDeploymentsInput) (*apigatewayv2.GetDeploymentsOutput, error)
GetDeploymentsWithContext(aws.Context, *apigatewayv2.GetDeploymentsInput, ...request.Option) (*apigatewayv2.GetDeploymentsOutput, error)
GetDeploymentsRequest(*apigatewayv2.GetDeploymentsInput) (*request.Request, *apigatewayv2.GetDeploymentsOutput)
GetDomainName(*apigatewayv2.GetDomainNameInput) (*apigatewayv2.GetDomainNameOutput, error)
GetDomainNameWithContext(aws.Context, *apigatewayv2.GetDomainNameInput, ...request.Option) (*apigatewayv2.GetDomainNameOutput, error)
GetDomainNameRequest(*apigatewayv2.GetDomainNameInput) (*request.Request, *apigatewayv2.GetDomainNameOutput)
GetDomainNames(*apigatewayv2.GetDomainNamesInput) (*apigatewayv2.GetDomainNamesOutput, error)
GetDomainNamesWithContext(aws.Context, *apigatewayv2.GetDomainNamesInput, ...request.Option) (*apigatewayv2.GetDomainNamesOutput, error)
GetDomainNamesRequest(*apigatewayv2.GetDomainNamesInput) (*request.Request, *apigatewayv2.GetDomainNamesOutput)
GetIntegration(*apigatewayv2.GetIntegrationInput) (*apigatewayv2.GetIntegrationOutput, error)
GetIntegrationWithContext(aws.Context, *apigatewayv2.GetIntegrationInput, ...request.Option) (*apigatewayv2.GetIntegrationOutput, error)
GetIntegrationRequest(*apigatewayv2.GetIntegrationInput) (*request.Request, *apigatewayv2.GetIntegrationOutput)
GetIntegrationResponse(*apigatewayv2.GetIntegrationResponseInput) (*apigatewayv2.GetIntegrationResponseOutput, error)
GetIntegrationResponseWithContext(aws.Context, *apigatewayv2.GetIntegrationResponseInput, ...request.Option) (*apigatewayv2.GetIntegrationResponseOutput, error)
GetIntegrationResponseRequest(*apigatewayv2.GetIntegrationResponseInput) (*request.Request, *apigatewayv2.GetIntegrationResponseOutput)
GetIntegrationResponses(*apigatewayv2.GetIntegrationResponsesInput) (*apigatewayv2.GetIntegrationResponsesOutput, error)
GetIntegrationResponsesWithContext(aws.Context, *apigatewayv2.GetIntegrationResponsesInput, ...request.Option) (*apigatewayv2.GetIntegrationResponsesOutput, error)
GetIntegrationResponsesRequest(*apigatewayv2.GetIntegrationResponsesInput) (*request.Request, *apigatewayv2.GetIntegrationResponsesOutput)
GetIntegrations(*apigatewayv2.GetIntegrationsInput) (*apigatewayv2.GetIntegrationsOutput, error)
GetIntegrationsWithContext(aws.Context, *apigatewayv2.GetIntegrationsInput, ...request.Option) (*apigatewayv2.GetIntegrationsOutput, error)
GetIntegrationsRequest(*apigatewayv2.GetIntegrationsInput) (*request.Request, *apigatewayv2.GetIntegrationsOutput)
GetModel(*apigatewayv2.GetModelInput) (*apigatewayv2.GetModelOutput, error)
GetModelWithContext(aws.Context, *apigatewayv2.GetModelInput, ...request.Option) (*apigatewayv2.GetModelOutput, error)
GetModelRequest(*apigatewayv2.GetModelInput) (*request.Request, *apigatewayv2.GetModelOutput)
GetModelTemplate(*apigatewayv2.GetModelTemplateInput) (*apigatewayv2.GetModelTemplateOutput, error)
GetModelTemplateWithContext(aws.Context, *apigatewayv2.GetModelTemplateInput, ...request.Option) (*apigatewayv2.GetModelTemplateOutput, error)
GetModelTemplateRequest(*apigatewayv2.GetModelTemplateInput) (*request.Request, *apigatewayv2.GetModelTemplateOutput)
GetModels(*apigatewayv2.GetModelsInput) (*apigatewayv2.GetModelsOutput, error)
GetModelsWithContext(aws.Context, *apigatewayv2.GetModelsInput, ...request.Option) (*apigatewayv2.GetModelsOutput, error)
GetModelsRequest(*apigatewayv2.GetModelsInput) (*request.Request, *apigatewayv2.GetModelsOutput)
GetRoute(*apigatewayv2.GetRouteInput) (*apigatewayv2.GetRouteOutput, error)
GetRouteWithContext(aws.Context, *apigatewayv2.GetRouteInput, ...request.Option) (*apigatewayv2.GetRouteOutput, error)
GetRouteRequest(*apigatewayv2.GetRouteInput) (*request.Request, *apigatewayv2.GetRouteOutput)
GetRouteResponse(*apigatewayv2.GetRouteResponseInput) (*apigatewayv2.GetRouteResponseOutput, error)
GetRouteResponseWithContext(aws.Context, *apigatewayv2.GetRouteResponseInput, ...request.Option) (*apigatewayv2.GetRouteResponseOutput, error)
GetRouteResponseRequest(*apigatewayv2.GetRouteResponseInput) (*request.Request, *apigatewayv2.GetRouteResponseOutput)
GetRouteResponses(*apigatewayv2.GetRouteResponsesInput) (*apigatewayv2.GetRouteResponsesOutput, error)
GetRouteResponsesWithContext(aws.Context, *apigatewayv2.GetRouteResponsesInput, ...request.Option) (*apigatewayv2.GetRouteResponsesOutput, error)
GetRouteResponsesRequest(*apigatewayv2.GetRouteResponsesInput) (*request.Request, *apigatewayv2.GetRouteResponsesOutput)
GetRoutes(*apigatewayv2.GetRoutesInput) (*apigatewayv2.GetRoutesOutput, error)
GetRoutesWithContext(aws.Context, *apigatewayv2.GetRoutesInput, ...request.Option) (*apigatewayv2.GetRoutesOutput, error)
GetRoutesRequest(*apigatewayv2.GetRoutesInput) (*request.Request, *apigatewayv2.GetRoutesOutput)
GetStage(*apigatewayv2.GetStageInput) (*apigatewayv2.GetStageOutput, error)
GetStageWithContext(aws.Context, *apigatewayv2.GetStageInput, ...request.Option) (*apigatewayv2.GetStageOutput, error)
GetStageRequest(*apigatewayv2.GetStageInput) (*request.Request, *apigatewayv2.GetStageOutput)
GetStages(*apigatewayv2.GetStagesInput) (*apigatewayv2.GetStagesOutput, error)
GetStagesWithContext(aws.Context, *apigatewayv2.GetStagesInput, ...request.Option) (*apigatewayv2.GetStagesOutput, error)
GetStagesRequest(*apigatewayv2.GetStagesInput) (*request.Request, *apigatewayv2.GetStagesOutput)
GetTags(*apigatewayv2.GetTagsInput) (*apigatewayv2.GetTagsOutput, error)
GetTagsWithContext(aws.Context, *apigatewayv2.GetTagsInput, ...request.Option) (*apigatewayv2.GetTagsOutput, error)
GetTagsRequest(*apigatewayv2.GetTagsInput) (*request.Request, *apigatewayv2.GetTagsOutput)
GetVpcLink(*apigatewayv2.GetVpcLinkInput) (*apigatewayv2.GetVpcLinkOutput, error)
GetVpcLinkWithContext(aws.Context, *apigatewayv2.GetVpcLinkInput, ...request.Option) (*apigatewayv2.GetVpcLinkOutput, error)
GetVpcLinkRequest(*apigatewayv2.GetVpcLinkInput) (*request.Request, *apigatewayv2.GetVpcLinkOutput)
GetVpcLinks(*apigatewayv2.GetVpcLinksInput) (*apigatewayv2.GetVpcLinksOutput, error)
GetVpcLinksWithContext(aws.Context, *apigatewayv2.GetVpcLinksInput, ...request.Option) (*apigatewayv2.GetVpcLinksOutput, error)
GetVpcLinksRequest(*apigatewayv2.GetVpcLinksInput) (*request.Request, *apigatewayv2.GetVpcLinksOutput)
ImportApi(*apigatewayv2.ImportApiInput) (*apigatewayv2.ImportApiOutput, error)
ImportApiWithContext(aws.Context, *apigatewayv2.ImportApiInput, ...request.Option) (*apigatewayv2.ImportApiOutput, error)
ImportApiRequest(*apigatewayv2.ImportApiInput) (*request.Request, *apigatewayv2.ImportApiOutput)
ReimportApi(*apigatewayv2.ReimportApiInput) (*apigatewayv2.ReimportApiOutput, error)
ReimportApiWithContext(aws.Context, *apigatewayv2.ReimportApiInput, ...request.Option) (*apigatewayv2.ReimportApiOutput, error)
ReimportApiRequest(*apigatewayv2.ReimportApiInput) (*request.Request, *apigatewayv2.ReimportApiOutput)
ResetAuthorizersCache(*apigatewayv2.ResetAuthorizersCacheInput) (*apigatewayv2.ResetAuthorizersCacheOutput, error)
ResetAuthorizersCacheWithContext(aws.Context, *apigatewayv2.ResetAuthorizersCacheInput, ...request.Option) (*apigatewayv2.ResetAuthorizersCacheOutput, error)
ResetAuthorizersCacheRequest(*apigatewayv2.ResetAuthorizersCacheInput) (*request.Request, *apigatewayv2.ResetAuthorizersCacheOutput)
TagResource(*apigatewayv2.TagResourceInput) (*apigatewayv2.TagResourceOutput, error)
TagResourceWithContext(aws.Context, *apigatewayv2.TagResourceInput, ...request.Option) (*apigatewayv2.TagResourceOutput, error)
TagResourceRequest(*apigatewayv2.TagResourceInput) (*request.Request, *apigatewayv2.TagResourceOutput)
UntagResource(*apigatewayv2.UntagResourceInput) (*apigatewayv2.UntagResourceOutput, error)
UntagResourceWithContext(aws.Context, *apigatewayv2.UntagResourceInput, ...request.Option) (*apigatewayv2.UntagResourceOutput, error)
UntagResourceRequest(*apigatewayv2.UntagResourceInput) (*request.Request, *apigatewayv2.UntagResourceOutput)
UpdateApi(*apigatewayv2.UpdateApiInput) (*apigatewayv2.UpdateApiOutput, error)
UpdateApiWithContext(aws.Context, *apigatewayv2.UpdateApiInput, ...request.Option) (*apigatewayv2.UpdateApiOutput, error)
UpdateApiRequest(*apigatewayv2.UpdateApiInput) (*request.Request, *apigatewayv2.UpdateApiOutput)
UpdateApiMapping(*apigatewayv2.UpdateApiMappingInput) (*apigatewayv2.UpdateApiMappingOutput, error)
UpdateApiMappingWithContext(aws.Context, *apigatewayv2.UpdateApiMappingInput, ...request.Option) (*apigatewayv2.UpdateApiMappingOutput, error)
UpdateApiMappingRequest(*apigatewayv2.UpdateApiMappingInput) (*request.Request, *apigatewayv2.UpdateApiMappingOutput)
UpdateAuthorizer(*apigatewayv2.UpdateAuthorizerInput) (*apigatewayv2.UpdateAuthorizerOutput, error)
UpdateAuthorizerWithContext(aws.Context, *apigatewayv2.UpdateAuthorizerInput, ...request.Option) (*apigatewayv2.UpdateAuthorizerOutput, error)
UpdateAuthorizerRequest(*apigatewayv2.UpdateAuthorizerInput) (*request.Request, *apigatewayv2.UpdateAuthorizerOutput)
UpdateDeployment(*apigatewayv2.UpdateDeploymentInput) (*apigatewayv2.UpdateDeploymentOutput, error)
UpdateDeploymentWithContext(aws.Context, *apigatewayv2.UpdateDeploymentInput, ...request.Option) (*apigatewayv2.UpdateDeploymentOutput, error)
UpdateDeploymentRequest(*apigatewayv2.UpdateDeploymentInput) (*request.Request, *apigatewayv2.UpdateDeploymentOutput)
UpdateDomainName(*apigatewayv2.UpdateDomainNameInput) (*apigatewayv2.UpdateDomainNameOutput, error)
UpdateDomainNameWithContext(aws.Context, *apigatewayv2.UpdateDomainNameInput, ...request.Option) (*apigatewayv2.UpdateDomainNameOutput, error)
UpdateDomainNameRequest(*apigatewayv2.UpdateDomainNameInput) (*request.Request, *apigatewayv2.UpdateDomainNameOutput)
UpdateIntegration(*apigatewayv2.UpdateIntegrationInput) (*apigatewayv2.UpdateIntegrationOutput, error)
UpdateIntegrationWithContext(aws.Context, *apigatewayv2.UpdateIntegrationInput, ...request.Option) (*apigatewayv2.UpdateIntegrationOutput, error)
UpdateIntegrationRequest(*apigatewayv2.UpdateIntegrationInput) (*request.Request, *apigatewayv2.UpdateIntegrationOutput)
UpdateIntegrationResponse(*apigatewayv2.UpdateIntegrationResponseInput) (*apigatewayv2.UpdateIntegrationResponseOutput, error)
UpdateIntegrationResponseWithContext(aws.Context, *apigatewayv2.UpdateIntegrationResponseInput, ...request.Option) (*apigatewayv2.UpdateIntegrationResponseOutput, error)
UpdateIntegrationResponseRequest(*apigatewayv2.UpdateIntegrationResponseInput) (*request.Request, *apigatewayv2.UpdateIntegrationResponseOutput)
UpdateModel(*apigatewayv2.UpdateModelInput) (*apigatewayv2.UpdateModelOutput, error)
UpdateModelWithContext(aws.Context, *apigatewayv2.UpdateModelInput, ...request.Option) (*apigatewayv2.UpdateModelOutput, error)
UpdateModelRequest(*apigatewayv2.UpdateModelInput) (*request.Request, *apigatewayv2.UpdateModelOutput)
UpdateRoute(*apigatewayv2.UpdateRouteInput) (*apigatewayv2.UpdateRouteOutput, error)
UpdateRouteWithContext(aws.Context, *apigatewayv2.UpdateRouteInput, ...request.Option) (*apigatewayv2.UpdateRouteOutput, error)
UpdateRouteRequest(*apigatewayv2.UpdateRouteInput) (*request.Request, *apigatewayv2.UpdateRouteOutput)
UpdateRouteResponse(*apigatewayv2.UpdateRouteResponseInput) (*apigatewayv2.UpdateRouteResponseOutput, error)
UpdateRouteResponseWithContext(aws.Context, *apigatewayv2.UpdateRouteResponseInput, ...request.Option) (*apigatewayv2.UpdateRouteResponseOutput, error)
UpdateRouteResponseRequest(*apigatewayv2.UpdateRouteResponseInput) (*request.Request, *apigatewayv2.UpdateRouteResponseOutput)
UpdateStage(*apigatewayv2.UpdateStageInput) (*apigatewayv2.UpdateStageOutput, error)
UpdateStageWithContext(aws.Context, *apigatewayv2.UpdateStageInput, ...request.Option) (*apigatewayv2.UpdateStageOutput, error)
UpdateStageRequest(*apigatewayv2.UpdateStageInput) (*request.Request, *apigatewayv2.UpdateStageOutput)
UpdateVpcLink(*apigatewayv2.UpdateVpcLinkInput) (*apigatewayv2.UpdateVpcLinkOutput, error)
UpdateVpcLinkWithContext(aws.Context, *apigatewayv2.UpdateVpcLinkInput, ...request.Option) (*apigatewayv2.UpdateVpcLinkOutput, error)
UpdateVpcLinkRequest(*apigatewayv2.UpdateVpcLinkInput) (*request.Request, *apigatewayv2.UpdateVpcLinkOutput)
}
var _ ApiGatewayV2API = (*apigatewayv2.ApiGatewayV2)(nil)
| 353 |
session-manager-plugin | aws | Go | // Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
package appconfig
import (
"fmt"
"time"
"github.com/aws/aws-sdk-go/aws"
"github.com/aws/aws-sdk-go/aws/awsutil"
"github.com/aws/aws-sdk-go/aws/request"
"github.com/aws/aws-sdk-go/private/protocol"
"github.com/aws/aws-sdk-go/private/protocol/restjson"
)
const opCreateApplication = "CreateApplication"
// CreateApplicationRequest generates a "aws/request.Request" representing the
// client's request for the CreateApplication 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 CreateApplication for more information on using the CreateApplication
// 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 CreateApplicationRequest method.
// req, resp := client.CreateApplicationRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/appconfig-2019-10-09/CreateApplication
func (c *AppConfig) CreateApplicationRequest(input *CreateApplicationInput) (req *request.Request, output *CreateApplicationOutput) {
op := &request.Operation{
Name: opCreateApplication,
HTTPMethod: "POST",
HTTPPath: "/applications",
}
if input == nil {
input = &CreateApplicationInput{}
}
output = &CreateApplicationOutput{}
req = c.newRequest(op, input, output)
return
}
// CreateApplication API operation for Amazon AppConfig.
//
// An application in AppConfig is a logical unit of code that provides capabilities
// for your customers. For example, an application can be a microservice that
// runs on Amazon EC2 instances, a mobile application installed by your users,
// a serverless application using Amazon API Gateway and AWS Lambda, or any
// system you run on behalf of others.
//
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
// with awserr.Error's Code and Message methods to get detailed information about
// the error.
//
// See the AWS API reference guide for Amazon AppConfig's
// API operation CreateApplication for usage and error information.
//
// Returned Error Types:
// * BadRequestException
// The input fails to satisfy the constraints specified by an AWS service.
//
// * InternalServerException
// There was an internal failure in the AppConfig service.
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/appconfig-2019-10-09/CreateApplication
func (c *AppConfig) CreateApplication(input *CreateApplicationInput) (*CreateApplicationOutput, error) {
req, out := c.CreateApplicationRequest(input)
return out, req.Send()
}
// CreateApplicationWithContext is the same as CreateApplication with the addition of
// the ability to pass a context and additional request options.
//
// See CreateApplication for details on how to use this API operation.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
func (c *AppConfig) CreateApplicationWithContext(ctx aws.Context, input *CreateApplicationInput, opts ...request.Option) (*CreateApplicationOutput, error) {
req, out := c.CreateApplicationRequest(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
const opCreateConfigurationProfile = "CreateConfigurationProfile"
// CreateConfigurationProfileRequest generates a "aws/request.Request" representing the
// client's request for the CreateConfigurationProfile 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 CreateConfigurationProfile for more information on using the CreateConfigurationProfile
// 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 CreateConfigurationProfileRequest method.
// req, resp := client.CreateConfigurationProfileRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/appconfig-2019-10-09/CreateConfigurationProfile
func (c *AppConfig) CreateConfigurationProfileRequest(input *CreateConfigurationProfileInput) (req *request.Request, output *CreateConfigurationProfileOutput) {
op := &request.Operation{
Name: opCreateConfigurationProfile,
HTTPMethod: "POST",
HTTPPath: "/applications/{ApplicationId}/configurationprofiles",
}
if input == nil {
input = &CreateConfigurationProfileInput{}
}
output = &CreateConfigurationProfileOutput{}
req = c.newRequest(op, input, output)
return
}
// CreateConfigurationProfile API operation for Amazon AppConfig.
//
// Information that enables AppConfig to access the configuration source. Valid
// configuration sources include Systems Manager (SSM) documents, SSM Parameter
// Store parameters, and Amazon S3 objects. A configuration profile includes
// the following information.
//
// * The Uri location of the configuration data.
//
// * The AWS Identity and Access Management (IAM) role that provides access
// to the configuration data.
//
// * A validator for the configuration data. Available validators include
// either a JSON Schema or an AWS Lambda function.
//
// For more information, see Create a Configuration and a Configuration Profile
// (http://docs.aws.amazon.com/systems-manager/latest/userguide/appconfig-creating-configuration-and-profile.html)
// in the AWS AppConfig User Guide.
//
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
// with awserr.Error's Code and Message methods to get detailed information about
// the error.
//
// See the AWS API reference guide for Amazon AppConfig's
// API operation CreateConfigurationProfile for usage and error information.
//
// Returned Error Types:
// * BadRequestException
// The input fails to satisfy the constraints specified by an AWS service.
//
// * ResourceNotFoundException
// The requested resource could not be found.
//
// * InternalServerException
// There was an internal failure in the AppConfig service.
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/appconfig-2019-10-09/CreateConfigurationProfile
func (c *AppConfig) CreateConfigurationProfile(input *CreateConfigurationProfileInput) (*CreateConfigurationProfileOutput, error) {
req, out := c.CreateConfigurationProfileRequest(input)
return out, req.Send()
}
// CreateConfigurationProfileWithContext is the same as CreateConfigurationProfile with the addition of
// the ability to pass a context and additional request options.
//
// See CreateConfigurationProfile for details on how to use this API operation.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
func (c *AppConfig) CreateConfigurationProfileWithContext(ctx aws.Context, input *CreateConfigurationProfileInput, opts ...request.Option) (*CreateConfigurationProfileOutput, error) {
req, out := c.CreateConfigurationProfileRequest(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
const opCreateDeploymentStrategy = "CreateDeploymentStrategy"
// CreateDeploymentStrategyRequest generates a "aws/request.Request" representing the
// client's request for the CreateDeploymentStrategy 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 CreateDeploymentStrategy for more information on using the CreateDeploymentStrategy
// 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 CreateDeploymentStrategyRequest method.
// req, resp := client.CreateDeploymentStrategyRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/appconfig-2019-10-09/CreateDeploymentStrategy
func (c *AppConfig) CreateDeploymentStrategyRequest(input *CreateDeploymentStrategyInput) (req *request.Request, output *CreateDeploymentStrategyOutput) {
op := &request.Operation{
Name: opCreateDeploymentStrategy,
HTTPMethod: "POST",
HTTPPath: "/deploymentstrategies",
}
if input == nil {
input = &CreateDeploymentStrategyInput{}
}
output = &CreateDeploymentStrategyOutput{}
req = c.newRequest(op, input, output)
return
}
// CreateDeploymentStrategy API operation for Amazon AppConfig.
//
// A deployment strategy defines important criteria for rolling out your configuration
// to the designated targets. A deployment strategy includes: the overall duration
// required, a percentage of targets to receive the deployment during each interval,
// an algorithm that defines how percentage grows, and bake time.
//
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
// with awserr.Error's Code and Message methods to get detailed information about
// the error.
//
// See the AWS API reference guide for Amazon AppConfig's
// API operation CreateDeploymentStrategy for usage and error information.
//
// Returned Error Types:
// * InternalServerException
// There was an internal failure in the AppConfig service.
//
// * BadRequestException
// The input fails to satisfy the constraints specified by an AWS service.
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/appconfig-2019-10-09/CreateDeploymentStrategy
func (c *AppConfig) CreateDeploymentStrategy(input *CreateDeploymentStrategyInput) (*CreateDeploymentStrategyOutput, error) {
req, out := c.CreateDeploymentStrategyRequest(input)
return out, req.Send()
}
// CreateDeploymentStrategyWithContext is the same as CreateDeploymentStrategy with the addition of
// the ability to pass a context and additional request options.
//
// See CreateDeploymentStrategy for details on how to use this API operation.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
func (c *AppConfig) CreateDeploymentStrategyWithContext(ctx aws.Context, input *CreateDeploymentStrategyInput, opts ...request.Option) (*CreateDeploymentStrategyOutput, error) {
req, out := c.CreateDeploymentStrategyRequest(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
const opCreateEnvironment = "CreateEnvironment"
// CreateEnvironmentRequest generates a "aws/request.Request" representing the
// client's request for the CreateEnvironment 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 CreateEnvironment for more information on using the CreateEnvironment
// 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 CreateEnvironmentRequest method.
// req, resp := client.CreateEnvironmentRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/appconfig-2019-10-09/CreateEnvironment
func (c *AppConfig) CreateEnvironmentRequest(input *CreateEnvironmentInput) (req *request.Request, output *CreateEnvironmentOutput) {
op := &request.Operation{
Name: opCreateEnvironment,
HTTPMethod: "POST",
HTTPPath: "/applications/{ApplicationId}/environments",
}
if input == nil {
input = &CreateEnvironmentInput{}
}
output = &CreateEnvironmentOutput{}
req = c.newRequest(op, input, output)
return
}
// CreateEnvironment API operation for Amazon AppConfig.
//
// For each application, you define one or more environments. An environment
// is a logical deployment group of AppConfig targets, such as applications
// in a Beta or Production environment. You can also define environments for
// application subcomponents such as the Web, Mobile and Back-end components
// for your application. You can configure Amazon CloudWatch alarms for each
// environment. The system monitors alarms during a configuration deployment.
// If an alarm is triggered, the system rolls back the configuration.
//
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
// with awserr.Error's Code and Message methods to get detailed information about
// the error.
//
// See the AWS API reference guide for Amazon AppConfig's
// API operation CreateEnvironment for usage and error information.
//
// Returned Error Types:
// * InternalServerException
// There was an internal failure in the AppConfig service.
//
// * ResourceNotFoundException
// The requested resource could not be found.
//
// * BadRequestException
// The input fails to satisfy the constraints specified by an AWS service.
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/appconfig-2019-10-09/CreateEnvironment
func (c *AppConfig) CreateEnvironment(input *CreateEnvironmentInput) (*CreateEnvironmentOutput, error) {
req, out := c.CreateEnvironmentRequest(input)
return out, req.Send()
}
// CreateEnvironmentWithContext is the same as CreateEnvironment with the addition of
// the ability to pass a context and additional request options.
//
// See CreateEnvironment for details on how to use this API operation.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
func (c *AppConfig) CreateEnvironmentWithContext(ctx aws.Context, input *CreateEnvironmentInput, opts ...request.Option) (*CreateEnvironmentOutput, error) {
req, out := c.CreateEnvironmentRequest(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
const opCreateHostedConfigurationVersion = "CreateHostedConfigurationVersion"
// CreateHostedConfigurationVersionRequest generates a "aws/request.Request" representing the
// client's request for the CreateHostedConfigurationVersion 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 CreateHostedConfigurationVersion for more information on using the CreateHostedConfigurationVersion
// 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 CreateHostedConfigurationVersionRequest method.
// req, resp := client.CreateHostedConfigurationVersionRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/appconfig-2019-10-09/CreateHostedConfigurationVersion
func (c *AppConfig) CreateHostedConfigurationVersionRequest(input *CreateHostedConfigurationVersionInput) (req *request.Request, output *CreateHostedConfigurationVersionOutput) {
op := &request.Operation{
Name: opCreateHostedConfigurationVersion,
HTTPMethod: "POST",
HTTPPath: "/applications/{ApplicationId}/configurationprofiles/{ConfigurationProfileId}/hostedconfigurationversions",
}
if input == nil {
input = &CreateHostedConfigurationVersionInput{}
}
output = &CreateHostedConfigurationVersionOutput{}
req = c.newRequest(op, input, output)
return
}
// CreateHostedConfigurationVersion API operation for Amazon AppConfig.
//
// Create a new configuration in the AppConfig configuration store.
//
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
// with awserr.Error's Code and Message methods to get detailed information about
// the error.
//
// See the AWS API reference guide for Amazon AppConfig's
// API operation CreateHostedConfigurationVersion for usage and error information.
//
// Returned Error Types:
// * BadRequestException
// The input fails to satisfy the constraints specified by an AWS service.
//
// * ServiceQuotaExceededException
// The number of hosted configuration versions exceeds the limit for the AppConfig
// configuration store. Delete one or more versions and try again.
//
// * ResourceNotFoundException
// The requested resource could not be found.
//
// * ConflictException
// The request could not be processed because of conflict in the current state
// of the resource.
//
// * PayloadTooLargeException
// The configuration size is too large.
//
// * InternalServerException
// There was an internal failure in the AppConfig service.
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/appconfig-2019-10-09/CreateHostedConfigurationVersion
func (c *AppConfig) CreateHostedConfigurationVersion(input *CreateHostedConfigurationVersionInput) (*CreateHostedConfigurationVersionOutput, error) {
req, out := c.CreateHostedConfigurationVersionRequest(input)
return out, req.Send()
}
// CreateHostedConfigurationVersionWithContext is the same as CreateHostedConfigurationVersion with the addition of
// the ability to pass a context and additional request options.
//
// See CreateHostedConfigurationVersion for details on how to use this API operation.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
func (c *AppConfig) CreateHostedConfigurationVersionWithContext(ctx aws.Context, input *CreateHostedConfigurationVersionInput, opts ...request.Option) (*CreateHostedConfigurationVersionOutput, error) {
req, out := c.CreateHostedConfigurationVersionRequest(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
const opDeleteApplication = "DeleteApplication"
// DeleteApplicationRequest generates a "aws/request.Request" representing the
// client's request for the DeleteApplication 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 DeleteApplication for more information on using the DeleteApplication
// 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 DeleteApplicationRequest method.
// req, resp := client.DeleteApplicationRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/appconfig-2019-10-09/DeleteApplication
func (c *AppConfig) DeleteApplicationRequest(input *DeleteApplicationInput) (req *request.Request, output *DeleteApplicationOutput) {
op := &request.Operation{
Name: opDeleteApplication,
HTTPMethod: "DELETE",
HTTPPath: "/applications/{ApplicationId}",
}
if input == nil {
input = &DeleteApplicationInput{}
}
output = &DeleteApplicationOutput{}
req = c.newRequest(op, input, output)
req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
return
}
// DeleteApplication API operation for Amazon AppConfig.
//
// Delete an application. Deleting an application does not delete a configuration
// from a host.
//
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
// with awserr.Error's Code and Message methods to get detailed information about
// the error.
//
// See the AWS API reference guide for Amazon AppConfig's
// API operation DeleteApplication for usage and error information.
//
// Returned Error Types:
// * ResourceNotFoundException
// The requested resource could not be found.
//
// * InternalServerException
// There was an internal failure in the AppConfig service.
//
// * BadRequestException
// The input fails to satisfy the constraints specified by an AWS service.
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/appconfig-2019-10-09/DeleteApplication
func (c *AppConfig) DeleteApplication(input *DeleteApplicationInput) (*DeleteApplicationOutput, error) {
req, out := c.DeleteApplicationRequest(input)
return out, req.Send()
}
// DeleteApplicationWithContext is the same as DeleteApplication with the addition of
// the ability to pass a context and additional request options.
//
// See DeleteApplication for details on how to use this API operation.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
func (c *AppConfig) DeleteApplicationWithContext(ctx aws.Context, input *DeleteApplicationInput, opts ...request.Option) (*DeleteApplicationOutput, error) {
req, out := c.DeleteApplicationRequest(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
const opDeleteConfigurationProfile = "DeleteConfigurationProfile"
// DeleteConfigurationProfileRequest generates a "aws/request.Request" representing the
// client's request for the DeleteConfigurationProfile 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 DeleteConfigurationProfile for more information on using the DeleteConfigurationProfile
// 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 DeleteConfigurationProfileRequest method.
// req, resp := client.DeleteConfigurationProfileRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/appconfig-2019-10-09/DeleteConfigurationProfile
func (c *AppConfig) DeleteConfigurationProfileRequest(input *DeleteConfigurationProfileInput) (req *request.Request, output *DeleteConfigurationProfileOutput) {
op := &request.Operation{
Name: opDeleteConfigurationProfile,
HTTPMethod: "DELETE",
HTTPPath: "/applications/{ApplicationId}/configurationprofiles/{ConfigurationProfileId}",
}
if input == nil {
input = &DeleteConfigurationProfileInput{}
}
output = &DeleteConfigurationProfileOutput{}
req = c.newRequest(op, input, output)
req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
return
}
// DeleteConfigurationProfile API operation for Amazon AppConfig.
//
// Delete a configuration profile. Deleting a configuration profile does not
// delete a configuration from a host.
//
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
// with awserr.Error's Code and Message methods to get detailed information about
// the error.
//
// See the AWS API reference guide for Amazon AppConfig's
// API operation DeleteConfigurationProfile for usage and error information.
//
// Returned Error Types:
// * ResourceNotFoundException
// The requested resource could not be found.
//
// * ConflictException
// The request could not be processed because of conflict in the current state
// of the resource.
//
// * InternalServerException
// There was an internal failure in the AppConfig service.
//
// * BadRequestException
// The input fails to satisfy the constraints specified by an AWS service.
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/appconfig-2019-10-09/DeleteConfigurationProfile
func (c *AppConfig) DeleteConfigurationProfile(input *DeleteConfigurationProfileInput) (*DeleteConfigurationProfileOutput, error) {
req, out := c.DeleteConfigurationProfileRequest(input)
return out, req.Send()
}
// DeleteConfigurationProfileWithContext is the same as DeleteConfigurationProfile with the addition of
// the ability to pass a context and additional request options.
//
// See DeleteConfigurationProfile for details on how to use this API operation.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
func (c *AppConfig) DeleteConfigurationProfileWithContext(ctx aws.Context, input *DeleteConfigurationProfileInput, opts ...request.Option) (*DeleteConfigurationProfileOutput, error) {
req, out := c.DeleteConfigurationProfileRequest(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
const opDeleteDeploymentStrategy = "DeleteDeploymentStrategy"
// DeleteDeploymentStrategyRequest generates a "aws/request.Request" representing the
// client's request for the DeleteDeploymentStrategy 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 DeleteDeploymentStrategy for more information on using the DeleteDeploymentStrategy
// 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 DeleteDeploymentStrategyRequest method.
// req, resp := client.DeleteDeploymentStrategyRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/appconfig-2019-10-09/DeleteDeploymentStrategy
func (c *AppConfig) DeleteDeploymentStrategyRequest(input *DeleteDeploymentStrategyInput) (req *request.Request, output *DeleteDeploymentStrategyOutput) {
op := &request.Operation{
Name: opDeleteDeploymentStrategy,
HTTPMethod: "DELETE",
HTTPPath: "/deployementstrategies/{DeploymentStrategyId}",
}
if input == nil {
input = &DeleteDeploymentStrategyInput{}
}
output = &DeleteDeploymentStrategyOutput{}
req = c.newRequest(op, input, output)
req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
return
}
// DeleteDeploymentStrategy API operation for Amazon AppConfig.
//
// Delete a deployment strategy. Deleting a deployment strategy does not delete
// a configuration from a host.
//
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
// with awserr.Error's Code and Message methods to get detailed information about
// the error.
//
// See the AWS API reference guide for Amazon AppConfig's
// API operation DeleteDeploymentStrategy for usage and error information.
//
// Returned Error Types:
// * ResourceNotFoundException
// The requested resource could not be found.
//
// * InternalServerException
// There was an internal failure in the AppConfig service.
//
// * BadRequestException
// The input fails to satisfy the constraints specified by an AWS service.
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/appconfig-2019-10-09/DeleteDeploymentStrategy
func (c *AppConfig) DeleteDeploymentStrategy(input *DeleteDeploymentStrategyInput) (*DeleteDeploymentStrategyOutput, error) {
req, out := c.DeleteDeploymentStrategyRequest(input)
return out, req.Send()
}
// DeleteDeploymentStrategyWithContext is the same as DeleteDeploymentStrategy with the addition of
// the ability to pass a context and additional request options.
//
// See DeleteDeploymentStrategy for details on how to use this API operation.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
func (c *AppConfig) DeleteDeploymentStrategyWithContext(ctx aws.Context, input *DeleteDeploymentStrategyInput, opts ...request.Option) (*DeleteDeploymentStrategyOutput, error) {
req, out := c.DeleteDeploymentStrategyRequest(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
const opDeleteEnvironment = "DeleteEnvironment"
// DeleteEnvironmentRequest generates a "aws/request.Request" representing the
// client's request for the DeleteEnvironment 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 DeleteEnvironment for more information on using the DeleteEnvironment
// 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 DeleteEnvironmentRequest method.
// req, resp := client.DeleteEnvironmentRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/appconfig-2019-10-09/DeleteEnvironment
func (c *AppConfig) DeleteEnvironmentRequest(input *DeleteEnvironmentInput) (req *request.Request, output *DeleteEnvironmentOutput) {
op := &request.Operation{
Name: opDeleteEnvironment,
HTTPMethod: "DELETE",
HTTPPath: "/applications/{ApplicationId}/environments/{EnvironmentId}",
}
if input == nil {
input = &DeleteEnvironmentInput{}
}
output = &DeleteEnvironmentOutput{}
req = c.newRequest(op, input, output)
req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
return
}
// DeleteEnvironment API operation for Amazon AppConfig.
//
// Delete an environment. Deleting an environment does not delete a configuration
// from a host.
//
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
// with awserr.Error's Code and Message methods to get detailed information about
// the error.
//
// See the AWS API reference guide for Amazon AppConfig's
// API operation DeleteEnvironment for usage and error information.
//
// Returned Error Types:
// * ResourceNotFoundException
// The requested resource could not be found.
//
// * ConflictException
// The request could not be processed because of conflict in the current state
// of the resource.
//
// * InternalServerException
// There was an internal failure in the AppConfig service.
//
// * BadRequestException
// The input fails to satisfy the constraints specified by an AWS service.
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/appconfig-2019-10-09/DeleteEnvironment
func (c *AppConfig) DeleteEnvironment(input *DeleteEnvironmentInput) (*DeleteEnvironmentOutput, error) {
req, out := c.DeleteEnvironmentRequest(input)
return out, req.Send()
}
// DeleteEnvironmentWithContext is the same as DeleteEnvironment with the addition of
// the ability to pass a context and additional request options.
//
// See DeleteEnvironment for details on how to use this API operation.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
func (c *AppConfig) DeleteEnvironmentWithContext(ctx aws.Context, input *DeleteEnvironmentInput, opts ...request.Option) (*DeleteEnvironmentOutput, error) {
req, out := c.DeleteEnvironmentRequest(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
const opDeleteHostedConfigurationVersion = "DeleteHostedConfigurationVersion"
// DeleteHostedConfigurationVersionRequest generates a "aws/request.Request" representing the
// client's request for the DeleteHostedConfigurationVersion 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 DeleteHostedConfigurationVersion for more information on using the DeleteHostedConfigurationVersion
// 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 DeleteHostedConfigurationVersionRequest method.
// req, resp := client.DeleteHostedConfigurationVersionRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/appconfig-2019-10-09/DeleteHostedConfigurationVersion
func (c *AppConfig) DeleteHostedConfigurationVersionRequest(input *DeleteHostedConfigurationVersionInput) (req *request.Request, output *DeleteHostedConfigurationVersionOutput) {
op := &request.Operation{
Name: opDeleteHostedConfigurationVersion,
HTTPMethod: "DELETE",
HTTPPath: "/applications/{ApplicationId}/configurationprofiles/{ConfigurationProfileId}/hostedconfigurationversions/{VersionNumber}",
}
if input == nil {
input = &DeleteHostedConfigurationVersionInput{}
}
output = &DeleteHostedConfigurationVersionOutput{}
req = c.newRequest(op, input, output)
req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
return
}
// DeleteHostedConfigurationVersion API operation for Amazon AppConfig.
//
// Delete a version of a configuration from the AppConfig configuration store.
//
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
// with awserr.Error's Code and Message methods to get detailed information about
// the error.
//
// See the AWS API reference guide for Amazon AppConfig's
// API operation DeleteHostedConfigurationVersion for usage and error information.
//
// Returned Error Types:
// * BadRequestException
// The input fails to satisfy the constraints specified by an AWS service.
//
// * ResourceNotFoundException
// The requested resource could not be found.
//
// * InternalServerException
// There was an internal failure in the AppConfig service.
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/appconfig-2019-10-09/DeleteHostedConfigurationVersion
func (c *AppConfig) DeleteHostedConfigurationVersion(input *DeleteHostedConfigurationVersionInput) (*DeleteHostedConfigurationVersionOutput, error) {
req, out := c.DeleteHostedConfigurationVersionRequest(input)
return out, req.Send()
}
// DeleteHostedConfigurationVersionWithContext is the same as DeleteHostedConfigurationVersion with the addition of
// the ability to pass a context and additional request options.
//
// See DeleteHostedConfigurationVersion for details on how to use this API operation.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
func (c *AppConfig) DeleteHostedConfigurationVersionWithContext(ctx aws.Context, input *DeleteHostedConfigurationVersionInput, opts ...request.Option) (*DeleteHostedConfigurationVersionOutput, error) {
req, out := c.DeleteHostedConfigurationVersionRequest(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
const opGetApplication = "GetApplication"
// GetApplicationRequest generates a "aws/request.Request" representing the
// client's request for the GetApplication 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 GetApplication for more information on using the GetApplication
// 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 GetApplicationRequest method.
// req, resp := client.GetApplicationRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/appconfig-2019-10-09/GetApplication
func (c *AppConfig) GetApplicationRequest(input *GetApplicationInput) (req *request.Request, output *GetApplicationOutput) {
op := &request.Operation{
Name: opGetApplication,
HTTPMethod: "GET",
HTTPPath: "/applications/{ApplicationId}",
}
if input == nil {
input = &GetApplicationInput{}
}
output = &GetApplicationOutput{}
req = c.newRequest(op, input, output)
return
}
// GetApplication API operation for Amazon AppConfig.
//
// Retrieve information about an application.
//
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
// with awserr.Error's Code and Message methods to get detailed information about
// the error.
//
// See the AWS API reference guide for Amazon AppConfig's
// API operation GetApplication for usage and error information.
//
// Returned Error Types:
// * ResourceNotFoundException
// The requested resource could not be found.
//
// * InternalServerException
// There was an internal failure in the AppConfig service.
//
// * BadRequestException
// The input fails to satisfy the constraints specified by an AWS service.
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/appconfig-2019-10-09/GetApplication
func (c *AppConfig) GetApplication(input *GetApplicationInput) (*GetApplicationOutput, error) {
req, out := c.GetApplicationRequest(input)
return out, req.Send()
}
// GetApplicationWithContext is the same as GetApplication with the addition of
// the ability to pass a context and additional request options.
//
// See GetApplication for details on how to use this API operation.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
func (c *AppConfig) GetApplicationWithContext(ctx aws.Context, input *GetApplicationInput, opts ...request.Option) (*GetApplicationOutput, error) {
req, out := c.GetApplicationRequest(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
const opGetConfiguration = "GetConfiguration"
// GetConfigurationRequest generates a "aws/request.Request" representing the
// client's request for the GetConfiguration 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 GetConfiguration for more information on using the GetConfiguration
// 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 GetConfigurationRequest method.
// req, resp := client.GetConfigurationRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/appconfig-2019-10-09/GetConfiguration
func (c *AppConfig) GetConfigurationRequest(input *GetConfigurationInput) (req *request.Request, output *GetConfigurationOutput) {
op := &request.Operation{
Name: opGetConfiguration,
HTTPMethod: "GET",
HTTPPath: "/applications/{Application}/environments/{Environment}/configurations/{Configuration}",
}
if input == nil {
input = &GetConfigurationInput{}
}
output = &GetConfigurationOutput{}
req = c.newRequest(op, input, output)
return
}
// GetConfiguration API operation for Amazon AppConfig.
//
// Receive information about a configuration.
//
// AWS AppConfig uses the value of the ClientConfigurationVersion parameter
// to identify the configuration version on your clients. If you don’t send
// ClientConfigurationVersion with each call to GetConfiguration, your clients
// receive the current configuration. You are charged each time your clients
// receive a configuration.
//
// To avoid excess charges, we recommend that you include the ClientConfigurationVersion
// value with every call to GetConfiguration. This value must be saved on your
// client. Subsequent calls to GetConfiguration must pass this value by using
// the ClientConfigurationVersion parameter.
//
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
// with awserr.Error's Code and Message methods to get detailed information about
// the error.
//
// See the AWS API reference guide for Amazon AppConfig's
// API operation GetConfiguration for usage and error information.
//
// Returned Error Types:
// * ResourceNotFoundException
// The requested resource could not be found.
//
// * InternalServerException
// There was an internal failure in the AppConfig service.
//
// * BadRequestException
// The input fails to satisfy the constraints specified by an AWS service.
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/appconfig-2019-10-09/GetConfiguration
func (c *AppConfig) GetConfiguration(input *GetConfigurationInput) (*GetConfigurationOutput, error) {
req, out := c.GetConfigurationRequest(input)
return out, req.Send()
}
// GetConfigurationWithContext is the same as GetConfiguration with the addition of
// the ability to pass a context and additional request options.
//
// See GetConfiguration for details on how to use this API operation.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
func (c *AppConfig) GetConfigurationWithContext(ctx aws.Context, input *GetConfigurationInput, opts ...request.Option) (*GetConfigurationOutput, error) {
req, out := c.GetConfigurationRequest(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
const opGetConfigurationProfile = "GetConfigurationProfile"
// GetConfigurationProfileRequest generates a "aws/request.Request" representing the
// client's request for the GetConfigurationProfile 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 GetConfigurationProfile for more information on using the GetConfigurationProfile
// 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 GetConfigurationProfileRequest method.
// req, resp := client.GetConfigurationProfileRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/appconfig-2019-10-09/GetConfigurationProfile
func (c *AppConfig) GetConfigurationProfileRequest(input *GetConfigurationProfileInput) (req *request.Request, output *GetConfigurationProfileOutput) {
op := &request.Operation{
Name: opGetConfigurationProfile,
HTTPMethod: "GET",
HTTPPath: "/applications/{ApplicationId}/configurationprofiles/{ConfigurationProfileId}",
}
if input == nil {
input = &GetConfigurationProfileInput{}
}
output = &GetConfigurationProfileOutput{}
req = c.newRequest(op, input, output)
return
}
// GetConfigurationProfile API operation for Amazon AppConfig.
//
// Retrieve information about a configuration profile.
//
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
// with awserr.Error's Code and Message methods to get detailed information about
// the error.
//
// See the AWS API reference guide for Amazon AppConfig's
// API operation GetConfigurationProfile for usage and error information.
//
// Returned Error Types:
// * ResourceNotFoundException
// The requested resource could not be found.
//
// * InternalServerException
// There was an internal failure in the AppConfig service.
//
// * BadRequestException
// The input fails to satisfy the constraints specified by an AWS service.
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/appconfig-2019-10-09/GetConfigurationProfile
func (c *AppConfig) GetConfigurationProfile(input *GetConfigurationProfileInput) (*GetConfigurationProfileOutput, error) {
req, out := c.GetConfigurationProfileRequest(input)
return out, req.Send()
}
// GetConfigurationProfileWithContext is the same as GetConfigurationProfile with the addition of
// the ability to pass a context and additional request options.
//
// See GetConfigurationProfile for details on how to use this API operation.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
func (c *AppConfig) GetConfigurationProfileWithContext(ctx aws.Context, input *GetConfigurationProfileInput, opts ...request.Option) (*GetConfigurationProfileOutput, error) {
req, out := c.GetConfigurationProfileRequest(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
const opGetDeployment = "GetDeployment"
// GetDeploymentRequest generates a "aws/request.Request" representing the
// client's request for the GetDeployment 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 GetDeployment for more information on using the GetDeployment
// 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 GetDeploymentRequest method.
// req, resp := client.GetDeploymentRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/appconfig-2019-10-09/GetDeployment
func (c *AppConfig) GetDeploymentRequest(input *GetDeploymentInput) (req *request.Request, output *GetDeploymentOutput) {
op := &request.Operation{
Name: opGetDeployment,
HTTPMethod: "GET",
HTTPPath: "/applications/{ApplicationId}/environments/{EnvironmentId}/deployments/{DeploymentNumber}",
}
if input == nil {
input = &GetDeploymentInput{}
}
output = &GetDeploymentOutput{}
req = c.newRequest(op, input, output)
return
}
// GetDeployment API operation for Amazon AppConfig.
//
// Retrieve information about a configuration deployment.
//
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
// with awserr.Error's Code and Message methods to get detailed information about
// the error.
//
// See the AWS API reference guide for Amazon AppConfig's
// API operation GetDeployment for usage and error information.
//
// Returned Error Types:
// * ResourceNotFoundException
// The requested resource could not be found.
//
// * InternalServerException
// There was an internal failure in the AppConfig service.
//
// * BadRequestException
// The input fails to satisfy the constraints specified by an AWS service.
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/appconfig-2019-10-09/GetDeployment
func (c *AppConfig) GetDeployment(input *GetDeploymentInput) (*GetDeploymentOutput, error) {
req, out := c.GetDeploymentRequest(input)
return out, req.Send()
}
// GetDeploymentWithContext is the same as GetDeployment with the addition of
// the ability to pass a context and additional request options.
//
// See GetDeployment for details on how to use this API operation.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
func (c *AppConfig) GetDeploymentWithContext(ctx aws.Context, input *GetDeploymentInput, opts ...request.Option) (*GetDeploymentOutput, error) {
req, out := c.GetDeploymentRequest(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
const opGetDeploymentStrategy = "GetDeploymentStrategy"
// GetDeploymentStrategyRequest generates a "aws/request.Request" representing the
// client's request for the GetDeploymentStrategy 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 GetDeploymentStrategy for more information on using the GetDeploymentStrategy
// 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 GetDeploymentStrategyRequest method.
// req, resp := client.GetDeploymentStrategyRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/appconfig-2019-10-09/GetDeploymentStrategy
func (c *AppConfig) GetDeploymentStrategyRequest(input *GetDeploymentStrategyInput) (req *request.Request, output *GetDeploymentStrategyOutput) {
op := &request.Operation{
Name: opGetDeploymentStrategy,
HTTPMethod: "GET",
HTTPPath: "/deploymentstrategies/{DeploymentStrategyId}",
}
if input == nil {
input = &GetDeploymentStrategyInput{}
}
output = &GetDeploymentStrategyOutput{}
req = c.newRequest(op, input, output)
return
}
// GetDeploymentStrategy API operation for Amazon AppConfig.
//
// Retrieve information about a deployment strategy. A deployment strategy defines
// important criteria for rolling out your configuration to the designated targets.
// A deployment strategy includes: the overall duration required, a percentage
// of targets to receive the deployment during each interval, an algorithm that
// defines how percentage grows, and bake time.
//
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
// with awserr.Error's Code and Message methods to get detailed information about
// the error.
//
// See the AWS API reference guide for Amazon AppConfig's
// API operation GetDeploymentStrategy for usage and error information.
//
// Returned Error Types:
// * ResourceNotFoundException
// The requested resource could not be found.
//
// * InternalServerException
// There was an internal failure in the AppConfig service.
//
// * BadRequestException
// The input fails to satisfy the constraints specified by an AWS service.
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/appconfig-2019-10-09/GetDeploymentStrategy
func (c *AppConfig) GetDeploymentStrategy(input *GetDeploymentStrategyInput) (*GetDeploymentStrategyOutput, error) {
req, out := c.GetDeploymentStrategyRequest(input)
return out, req.Send()
}
// GetDeploymentStrategyWithContext is the same as GetDeploymentStrategy with the addition of
// the ability to pass a context and additional request options.
//
// See GetDeploymentStrategy for details on how to use this API operation.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
func (c *AppConfig) GetDeploymentStrategyWithContext(ctx aws.Context, input *GetDeploymentStrategyInput, opts ...request.Option) (*GetDeploymentStrategyOutput, error) {
req, out := c.GetDeploymentStrategyRequest(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
const opGetEnvironment = "GetEnvironment"
// GetEnvironmentRequest generates a "aws/request.Request" representing the
// client's request for the GetEnvironment 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 GetEnvironment for more information on using the GetEnvironment
// 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 GetEnvironmentRequest method.
// req, resp := client.GetEnvironmentRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/appconfig-2019-10-09/GetEnvironment
func (c *AppConfig) GetEnvironmentRequest(input *GetEnvironmentInput) (req *request.Request, output *GetEnvironmentOutput) {
op := &request.Operation{
Name: opGetEnvironment,
HTTPMethod: "GET",
HTTPPath: "/applications/{ApplicationId}/environments/{EnvironmentId}",
}
if input == nil {
input = &GetEnvironmentInput{}
}
output = &GetEnvironmentOutput{}
req = c.newRequest(op, input, output)
return
}
// GetEnvironment API operation for Amazon AppConfig.
//
// Retrieve information about an environment. An environment is a logical deployment
// group of AppConfig applications, such as applications in a Production environment
// or in an EU_Region environment. Each configuration deployment targets an
// environment. You can enable one or more Amazon CloudWatch alarms for an environment.
// If an alarm is triggered during a deployment, AppConfig roles back the configuration.
//
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
// with awserr.Error's Code and Message methods to get detailed information about
// the error.
//
// See the AWS API reference guide for Amazon AppConfig's
// API operation GetEnvironment for usage and error information.
//
// Returned Error Types:
// * ResourceNotFoundException
// The requested resource could not be found.
//
// * InternalServerException
// There was an internal failure in the AppConfig service.
//
// * BadRequestException
// The input fails to satisfy the constraints specified by an AWS service.
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/appconfig-2019-10-09/GetEnvironment
func (c *AppConfig) GetEnvironment(input *GetEnvironmentInput) (*GetEnvironmentOutput, error) {
req, out := c.GetEnvironmentRequest(input)
return out, req.Send()
}
// GetEnvironmentWithContext is the same as GetEnvironment with the addition of
// the ability to pass a context and additional request options.
//
// See GetEnvironment for details on how to use this API operation.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
func (c *AppConfig) GetEnvironmentWithContext(ctx aws.Context, input *GetEnvironmentInput, opts ...request.Option) (*GetEnvironmentOutput, error) {
req, out := c.GetEnvironmentRequest(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
const opGetHostedConfigurationVersion = "GetHostedConfigurationVersion"
// GetHostedConfigurationVersionRequest generates a "aws/request.Request" representing the
// client's request for the GetHostedConfigurationVersion 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 GetHostedConfigurationVersion for more information on using the GetHostedConfigurationVersion
// 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 GetHostedConfigurationVersionRequest method.
// req, resp := client.GetHostedConfigurationVersionRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/appconfig-2019-10-09/GetHostedConfigurationVersion
func (c *AppConfig) GetHostedConfigurationVersionRequest(input *GetHostedConfigurationVersionInput) (req *request.Request, output *GetHostedConfigurationVersionOutput) {
op := &request.Operation{
Name: opGetHostedConfigurationVersion,
HTTPMethod: "GET",
HTTPPath: "/applications/{ApplicationId}/configurationprofiles/{ConfigurationProfileId}/hostedconfigurationversions/{VersionNumber}",
}
if input == nil {
input = &GetHostedConfigurationVersionInput{}
}
output = &GetHostedConfigurationVersionOutput{}
req = c.newRequest(op, input, output)
return
}
// GetHostedConfigurationVersion API operation for Amazon AppConfig.
//
// Get information about a specific configuration version.
//
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
// with awserr.Error's Code and Message methods to get detailed information about
// the error.
//
// See the AWS API reference guide for Amazon AppConfig's
// API operation GetHostedConfigurationVersion for usage and error information.
//
// Returned Error Types:
// * BadRequestException
// The input fails to satisfy the constraints specified by an AWS service.
//
// * ResourceNotFoundException
// The requested resource could not be found.
//
// * InternalServerException
// There was an internal failure in the AppConfig service.
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/appconfig-2019-10-09/GetHostedConfigurationVersion
func (c *AppConfig) GetHostedConfigurationVersion(input *GetHostedConfigurationVersionInput) (*GetHostedConfigurationVersionOutput, error) {
req, out := c.GetHostedConfigurationVersionRequest(input)
return out, req.Send()
}
// GetHostedConfigurationVersionWithContext is the same as GetHostedConfigurationVersion with the addition of
// the ability to pass a context and additional request options.
//
// See GetHostedConfigurationVersion for details on how to use this API operation.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
func (c *AppConfig) GetHostedConfigurationVersionWithContext(ctx aws.Context, input *GetHostedConfigurationVersionInput, opts ...request.Option) (*GetHostedConfigurationVersionOutput, error) {
req, out := c.GetHostedConfigurationVersionRequest(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
const opListApplications = "ListApplications"
// ListApplicationsRequest generates a "aws/request.Request" representing the
// client's request for the ListApplications 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 ListApplications for more information on using the ListApplications
// 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 ListApplicationsRequest method.
// req, resp := client.ListApplicationsRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/appconfig-2019-10-09/ListApplications
func (c *AppConfig) ListApplicationsRequest(input *ListApplicationsInput) (req *request.Request, output *ListApplicationsOutput) {
op := &request.Operation{
Name: opListApplications,
HTTPMethod: "GET",
HTTPPath: "/applications",
Paginator: &request.Paginator{
InputTokens: []string{"NextToken"},
OutputTokens: []string{"NextToken"},
LimitToken: "MaxResults",
TruncationToken: "",
},
}
if input == nil {
input = &ListApplicationsInput{}
}
output = &ListApplicationsOutput{}
req = c.newRequest(op, input, output)
return
}
// ListApplications API operation for Amazon AppConfig.
//
// List all applications in 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 Amazon AppConfig's
// API operation ListApplications for usage and error information.
//
// Returned Error Types:
// * InternalServerException
// There was an internal failure in the AppConfig service.
//
// * BadRequestException
// The input fails to satisfy the constraints specified by an AWS service.
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/appconfig-2019-10-09/ListApplications
func (c *AppConfig) ListApplications(input *ListApplicationsInput) (*ListApplicationsOutput, error) {
req, out := c.ListApplicationsRequest(input)
return out, req.Send()
}
// ListApplicationsWithContext is the same as ListApplications with the addition of
// the ability to pass a context and additional request options.
//
// See ListApplications for details on how to use this API operation.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
func (c *AppConfig) ListApplicationsWithContext(ctx aws.Context, input *ListApplicationsInput, opts ...request.Option) (*ListApplicationsOutput, error) {
req, out := c.ListApplicationsRequest(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
// ListApplicationsPages iterates over the pages of a ListApplications operation,
// calling the "fn" function with the response data for each page. To stop
// iterating, return false from the fn function.
//
// See ListApplications 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 ListApplications operation.
// pageNum := 0
// err := client.ListApplicationsPages(params,
// func(page *appconfig.ListApplicationsOutput, lastPage bool) bool {
// pageNum++
// fmt.Println(page)
// return pageNum <= 3
// })
//
func (c *AppConfig) ListApplicationsPages(input *ListApplicationsInput, fn func(*ListApplicationsOutput, bool) bool) error {
return c.ListApplicationsPagesWithContext(aws.BackgroundContext(), input, fn)
}
// ListApplicationsPagesWithContext same as ListApplicationsPages except
// it takes a Context and allows setting request options on the pages.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
func (c *AppConfig) ListApplicationsPagesWithContext(ctx aws.Context, input *ListApplicationsInput, fn func(*ListApplicationsOutput, bool) bool, opts ...request.Option) error {
p := request.Pagination{
NewRequest: func() (*request.Request, error) {
var inCpy *ListApplicationsInput
if input != nil {
tmp := *input
inCpy = &tmp
}
req, _ := c.ListApplicationsRequest(inCpy)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return req, nil
},
}
for p.Next() {
if !fn(p.Page().(*ListApplicationsOutput), !p.HasNextPage()) {
break
}
}
return p.Err()
}
const opListConfigurationProfiles = "ListConfigurationProfiles"
// ListConfigurationProfilesRequest generates a "aws/request.Request" representing the
// client's request for the ListConfigurationProfiles 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 ListConfigurationProfiles for more information on using the ListConfigurationProfiles
// 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 ListConfigurationProfilesRequest method.
// req, resp := client.ListConfigurationProfilesRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/appconfig-2019-10-09/ListConfigurationProfiles
func (c *AppConfig) ListConfigurationProfilesRequest(input *ListConfigurationProfilesInput) (req *request.Request, output *ListConfigurationProfilesOutput) {
op := &request.Operation{
Name: opListConfigurationProfiles,
HTTPMethod: "GET",
HTTPPath: "/applications/{ApplicationId}/configurationprofiles",
Paginator: &request.Paginator{
InputTokens: []string{"NextToken"},
OutputTokens: []string{"NextToken"},
LimitToken: "MaxResults",
TruncationToken: "",
},
}
if input == nil {
input = &ListConfigurationProfilesInput{}
}
output = &ListConfigurationProfilesOutput{}
req = c.newRequest(op, input, output)
return
}
// ListConfigurationProfiles API operation for Amazon AppConfig.
//
// Lists the configuration profiles for an application.
//
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
// with awserr.Error's Code and Message methods to get detailed information about
// the error.
//
// See the AWS API reference guide for Amazon AppConfig's
// API operation ListConfigurationProfiles for usage and error information.
//
// Returned Error Types:
// * ResourceNotFoundException
// The requested resource could not be found.
//
// * InternalServerException
// There was an internal failure in the AppConfig service.
//
// * BadRequestException
// The input fails to satisfy the constraints specified by an AWS service.
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/appconfig-2019-10-09/ListConfigurationProfiles
func (c *AppConfig) ListConfigurationProfiles(input *ListConfigurationProfilesInput) (*ListConfigurationProfilesOutput, error) {
req, out := c.ListConfigurationProfilesRequest(input)
return out, req.Send()
}
// ListConfigurationProfilesWithContext is the same as ListConfigurationProfiles with the addition of
// the ability to pass a context and additional request options.
//
// See ListConfigurationProfiles for details on how to use this API operation.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
func (c *AppConfig) ListConfigurationProfilesWithContext(ctx aws.Context, input *ListConfigurationProfilesInput, opts ...request.Option) (*ListConfigurationProfilesOutput, error) {
req, out := c.ListConfigurationProfilesRequest(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
// ListConfigurationProfilesPages iterates over the pages of a ListConfigurationProfiles operation,
// calling the "fn" function with the response data for each page. To stop
// iterating, return false from the fn function.
//
// See ListConfigurationProfiles 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 ListConfigurationProfiles operation.
// pageNum := 0
// err := client.ListConfigurationProfilesPages(params,
// func(page *appconfig.ListConfigurationProfilesOutput, lastPage bool) bool {
// pageNum++
// fmt.Println(page)
// return pageNum <= 3
// })
//
func (c *AppConfig) ListConfigurationProfilesPages(input *ListConfigurationProfilesInput, fn func(*ListConfigurationProfilesOutput, bool) bool) error {
return c.ListConfigurationProfilesPagesWithContext(aws.BackgroundContext(), input, fn)
}
// ListConfigurationProfilesPagesWithContext same as ListConfigurationProfilesPages except
// it takes a Context and allows setting request options on the pages.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
func (c *AppConfig) ListConfigurationProfilesPagesWithContext(ctx aws.Context, input *ListConfigurationProfilesInput, fn func(*ListConfigurationProfilesOutput, bool) bool, opts ...request.Option) error {
p := request.Pagination{
NewRequest: func() (*request.Request, error) {
var inCpy *ListConfigurationProfilesInput
if input != nil {
tmp := *input
inCpy = &tmp
}
req, _ := c.ListConfigurationProfilesRequest(inCpy)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return req, nil
},
}
for p.Next() {
if !fn(p.Page().(*ListConfigurationProfilesOutput), !p.HasNextPage()) {
break
}
}
return p.Err()
}
const opListDeploymentStrategies = "ListDeploymentStrategies"
// ListDeploymentStrategiesRequest generates a "aws/request.Request" representing the
// client's request for the ListDeploymentStrategies 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 ListDeploymentStrategies for more information on using the ListDeploymentStrategies
// 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 ListDeploymentStrategiesRequest method.
// req, resp := client.ListDeploymentStrategiesRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/appconfig-2019-10-09/ListDeploymentStrategies
func (c *AppConfig) ListDeploymentStrategiesRequest(input *ListDeploymentStrategiesInput) (req *request.Request, output *ListDeploymentStrategiesOutput) {
op := &request.Operation{
Name: opListDeploymentStrategies,
HTTPMethod: "GET",
HTTPPath: "/deploymentstrategies",
Paginator: &request.Paginator{
InputTokens: []string{"NextToken"},
OutputTokens: []string{"NextToken"},
LimitToken: "MaxResults",
TruncationToken: "",
},
}
if input == nil {
input = &ListDeploymentStrategiesInput{}
}
output = &ListDeploymentStrategiesOutput{}
req = c.newRequest(op, input, output)
return
}
// ListDeploymentStrategies API operation for Amazon AppConfig.
//
// List deployment strategies.
//
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
// with awserr.Error's Code and Message methods to get detailed information about
// the error.
//
// See the AWS API reference guide for Amazon AppConfig's
// API operation ListDeploymentStrategies for usage and error information.
//
// Returned Error Types:
// * InternalServerException
// There was an internal failure in the AppConfig service.
//
// * BadRequestException
// The input fails to satisfy the constraints specified by an AWS service.
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/appconfig-2019-10-09/ListDeploymentStrategies
func (c *AppConfig) ListDeploymentStrategies(input *ListDeploymentStrategiesInput) (*ListDeploymentStrategiesOutput, error) {
req, out := c.ListDeploymentStrategiesRequest(input)
return out, req.Send()
}
// ListDeploymentStrategiesWithContext is the same as ListDeploymentStrategies with the addition of
// the ability to pass a context and additional request options.
//
// See ListDeploymentStrategies for details on how to use this API operation.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
func (c *AppConfig) ListDeploymentStrategiesWithContext(ctx aws.Context, input *ListDeploymentStrategiesInput, opts ...request.Option) (*ListDeploymentStrategiesOutput, error) {
req, out := c.ListDeploymentStrategiesRequest(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
// ListDeploymentStrategiesPages iterates over the pages of a ListDeploymentStrategies operation,
// calling the "fn" function with the response data for each page. To stop
// iterating, return false from the fn function.
//
// See ListDeploymentStrategies 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 ListDeploymentStrategies operation.
// pageNum := 0
// err := client.ListDeploymentStrategiesPages(params,
// func(page *appconfig.ListDeploymentStrategiesOutput, lastPage bool) bool {
// pageNum++
// fmt.Println(page)
// return pageNum <= 3
// })
//
func (c *AppConfig) ListDeploymentStrategiesPages(input *ListDeploymentStrategiesInput, fn func(*ListDeploymentStrategiesOutput, bool) bool) error {
return c.ListDeploymentStrategiesPagesWithContext(aws.BackgroundContext(), input, fn)
}
// ListDeploymentStrategiesPagesWithContext same as ListDeploymentStrategiesPages except
// it takes a Context and allows setting request options on the pages.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
func (c *AppConfig) ListDeploymentStrategiesPagesWithContext(ctx aws.Context, input *ListDeploymentStrategiesInput, fn func(*ListDeploymentStrategiesOutput, bool) bool, opts ...request.Option) error {
p := request.Pagination{
NewRequest: func() (*request.Request, error) {
var inCpy *ListDeploymentStrategiesInput
if input != nil {
tmp := *input
inCpy = &tmp
}
req, _ := c.ListDeploymentStrategiesRequest(inCpy)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return req, nil
},
}
for p.Next() {
if !fn(p.Page().(*ListDeploymentStrategiesOutput), !p.HasNextPage()) {
break
}
}
return p.Err()
}
const opListDeployments = "ListDeployments"
// ListDeploymentsRequest generates a "aws/request.Request" representing the
// client's request for the ListDeployments 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 ListDeployments for more information on using the ListDeployments
// 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 ListDeploymentsRequest method.
// req, resp := client.ListDeploymentsRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/appconfig-2019-10-09/ListDeployments
func (c *AppConfig) ListDeploymentsRequest(input *ListDeploymentsInput) (req *request.Request, output *ListDeploymentsOutput) {
op := &request.Operation{
Name: opListDeployments,
HTTPMethod: "GET",
HTTPPath: "/applications/{ApplicationId}/environments/{EnvironmentId}/deployments",
Paginator: &request.Paginator{
InputTokens: []string{"NextToken"},
OutputTokens: []string{"NextToken"},
LimitToken: "MaxResults",
TruncationToken: "",
},
}
if input == nil {
input = &ListDeploymentsInput{}
}
output = &ListDeploymentsOutput{}
req = c.newRequest(op, input, output)
return
}
// ListDeployments API operation for Amazon AppConfig.
//
// Lists the deployments for an environment.
//
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
// with awserr.Error's Code and Message methods to get detailed information about
// the error.
//
// See the AWS API reference guide for Amazon AppConfig's
// API operation ListDeployments for usage and error information.
//
// Returned Error Types:
// * ResourceNotFoundException
// The requested resource could not be found.
//
// * InternalServerException
// There was an internal failure in the AppConfig service.
//
// * BadRequestException
// The input fails to satisfy the constraints specified by an AWS service.
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/appconfig-2019-10-09/ListDeployments
func (c *AppConfig) ListDeployments(input *ListDeploymentsInput) (*ListDeploymentsOutput, error) {
req, out := c.ListDeploymentsRequest(input)
return out, req.Send()
}
// ListDeploymentsWithContext is the same as ListDeployments with the addition of
// the ability to pass a context and additional request options.
//
// See ListDeployments for details on how to use this API operation.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
func (c *AppConfig) ListDeploymentsWithContext(ctx aws.Context, input *ListDeploymentsInput, opts ...request.Option) (*ListDeploymentsOutput, error) {
req, out := c.ListDeploymentsRequest(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
// ListDeploymentsPages iterates over the pages of a ListDeployments operation,
// calling the "fn" function with the response data for each page. To stop
// iterating, return false from the fn function.
//
// See ListDeployments 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 ListDeployments operation.
// pageNum := 0
// err := client.ListDeploymentsPages(params,
// func(page *appconfig.ListDeploymentsOutput, lastPage bool) bool {
// pageNum++
// fmt.Println(page)
// return pageNum <= 3
// })
//
func (c *AppConfig) ListDeploymentsPages(input *ListDeploymentsInput, fn func(*ListDeploymentsOutput, bool) bool) error {
return c.ListDeploymentsPagesWithContext(aws.BackgroundContext(), input, fn)
}
// ListDeploymentsPagesWithContext same as ListDeploymentsPages except
// it takes a Context and allows setting request options on the pages.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
func (c *AppConfig) ListDeploymentsPagesWithContext(ctx aws.Context, input *ListDeploymentsInput, fn func(*ListDeploymentsOutput, bool) bool, opts ...request.Option) error {
p := request.Pagination{
NewRequest: func() (*request.Request, error) {
var inCpy *ListDeploymentsInput
if input != nil {
tmp := *input
inCpy = &tmp
}
req, _ := c.ListDeploymentsRequest(inCpy)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return req, nil
},
}
for p.Next() {
if !fn(p.Page().(*ListDeploymentsOutput), !p.HasNextPage()) {
break
}
}
return p.Err()
}
const opListEnvironments = "ListEnvironments"
// ListEnvironmentsRequest generates a "aws/request.Request" representing the
// client's request for the ListEnvironments 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 ListEnvironments for more information on using the ListEnvironments
// 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 ListEnvironmentsRequest method.
// req, resp := client.ListEnvironmentsRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/appconfig-2019-10-09/ListEnvironments
func (c *AppConfig) ListEnvironmentsRequest(input *ListEnvironmentsInput) (req *request.Request, output *ListEnvironmentsOutput) {
op := &request.Operation{
Name: opListEnvironments,
HTTPMethod: "GET",
HTTPPath: "/applications/{ApplicationId}/environments",
Paginator: &request.Paginator{
InputTokens: []string{"NextToken"},
OutputTokens: []string{"NextToken"},
LimitToken: "MaxResults",
TruncationToken: "",
},
}
if input == nil {
input = &ListEnvironmentsInput{}
}
output = &ListEnvironmentsOutput{}
req = c.newRequest(op, input, output)
return
}
// ListEnvironments API operation for Amazon AppConfig.
//
// List the environments for an application.
//
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
// with awserr.Error's Code and Message methods to get detailed information about
// the error.
//
// See the AWS API reference guide for Amazon AppConfig's
// API operation ListEnvironments for usage and error information.
//
// Returned Error Types:
// * ResourceNotFoundException
// The requested resource could not be found.
//
// * InternalServerException
// There was an internal failure in the AppConfig service.
//
// * BadRequestException
// The input fails to satisfy the constraints specified by an AWS service.
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/appconfig-2019-10-09/ListEnvironments
func (c *AppConfig) ListEnvironments(input *ListEnvironmentsInput) (*ListEnvironmentsOutput, error) {
req, out := c.ListEnvironmentsRequest(input)
return out, req.Send()
}
// ListEnvironmentsWithContext is the same as ListEnvironments with the addition of
// the ability to pass a context and additional request options.
//
// See ListEnvironments for details on how to use this API operation.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
func (c *AppConfig) ListEnvironmentsWithContext(ctx aws.Context, input *ListEnvironmentsInput, opts ...request.Option) (*ListEnvironmentsOutput, error) {
req, out := c.ListEnvironmentsRequest(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
// ListEnvironmentsPages iterates over the pages of a ListEnvironments operation,
// calling the "fn" function with the response data for each page. To stop
// iterating, return false from the fn function.
//
// See ListEnvironments 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 ListEnvironments operation.
// pageNum := 0
// err := client.ListEnvironmentsPages(params,
// func(page *appconfig.ListEnvironmentsOutput, lastPage bool) bool {
// pageNum++
// fmt.Println(page)
// return pageNum <= 3
// })
//
func (c *AppConfig) ListEnvironmentsPages(input *ListEnvironmentsInput, fn func(*ListEnvironmentsOutput, bool) bool) error {
return c.ListEnvironmentsPagesWithContext(aws.BackgroundContext(), input, fn)
}
// ListEnvironmentsPagesWithContext same as ListEnvironmentsPages except
// it takes a Context and allows setting request options on the pages.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
func (c *AppConfig) ListEnvironmentsPagesWithContext(ctx aws.Context, input *ListEnvironmentsInput, fn func(*ListEnvironmentsOutput, bool) bool, opts ...request.Option) error {
p := request.Pagination{
NewRequest: func() (*request.Request, error) {
var inCpy *ListEnvironmentsInput
if input != nil {
tmp := *input
inCpy = &tmp
}
req, _ := c.ListEnvironmentsRequest(inCpy)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return req, nil
},
}
for p.Next() {
if !fn(p.Page().(*ListEnvironmentsOutput), !p.HasNextPage()) {
break
}
}
return p.Err()
}
const opListHostedConfigurationVersions = "ListHostedConfigurationVersions"
// ListHostedConfigurationVersionsRequest generates a "aws/request.Request" representing the
// client's request for the ListHostedConfigurationVersions 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 ListHostedConfigurationVersions for more information on using the ListHostedConfigurationVersions
// 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 ListHostedConfigurationVersionsRequest method.
// req, resp := client.ListHostedConfigurationVersionsRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/appconfig-2019-10-09/ListHostedConfigurationVersions
func (c *AppConfig) ListHostedConfigurationVersionsRequest(input *ListHostedConfigurationVersionsInput) (req *request.Request, output *ListHostedConfigurationVersionsOutput) {
op := &request.Operation{
Name: opListHostedConfigurationVersions,
HTTPMethod: "GET",
HTTPPath: "/applications/{ApplicationId}/configurationprofiles/{ConfigurationProfileId}/hostedconfigurationversions",
Paginator: &request.Paginator{
InputTokens: []string{"NextToken"},
OutputTokens: []string{"NextToken"},
LimitToken: "MaxResults",
TruncationToken: "",
},
}
if input == nil {
input = &ListHostedConfigurationVersionsInput{}
}
output = &ListHostedConfigurationVersionsOutput{}
req = c.newRequest(op, input, output)
return
}
// ListHostedConfigurationVersions API operation for Amazon AppConfig.
//
// View a list of configurations stored in the AppConfig configuration store
// by version.
//
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
// with awserr.Error's Code and Message methods to get detailed information about
// the error.
//
// See the AWS API reference guide for Amazon AppConfig's
// API operation ListHostedConfigurationVersions for usage and error information.
//
// Returned Error Types:
// * BadRequestException
// The input fails to satisfy the constraints specified by an AWS service.
//
// * ResourceNotFoundException
// The requested resource could not be found.
//
// * InternalServerException
// There was an internal failure in the AppConfig service.
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/appconfig-2019-10-09/ListHostedConfigurationVersions
func (c *AppConfig) ListHostedConfigurationVersions(input *ListHostedConfigurationVersionsInput) (*ListHostedConfigurationVersionsOutput, error) {
req, out := c.ListHostedConfigurationVersionsRequest(input)
return out, req.Send()
}
// ListHostedConfigurationVersionsWithContext is the same as ListHostedConfigurationVersions with the addition of
// the ability to pass a context and additional request options.
//
// See ListHostedConfigurationVersions for details on how to use this API operation.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
func (c *AppConfig) ListHostedConfigurationVersionsWithContext(ctx aws.Context, input *ListHostedConfigurationVersionsInput, opts ...request.Option) (*ListHostedConfigurationVersionsOutput, error) {
req, out := c.ListHostedConfigurationVersionsRequest(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
// ListHostedConfigurationVersionsPages iterates over the pages of a ListHostedConfigurationVersions operation,
// calling the "fn" function with the response data for each page. To stop
// iterating, return false from the fn function.
//
// See ListHostedConfigurationVersions 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 ListHostedConfigurationVersions operation.
// pageNum := 0
// err := client.ListHostedConfigurationVersionsPages(params,
// func(page *appconfig.ListHostedConfigurationVersionsOutput, lastPage bool) bool {
// pageNum++
// fmt.Println(page)
// return pageNum <= 3
// })
//
func (c *AppConfig) ListHostedConfigurationVersionsPages(input *ListHostedConfigurationVersionsInput, fn func(*ListHostedConfigurationVersionsOutput, bool) bool) error {
return c.ListHostedConfigurationVersionsPagesWithContext(aws.BackgroundContext(), input, fn)
}
// ListHostedConfigurationVersionsPagesWithContext same as ListHostedConfigurationVersionsPages except
// it takes a Context and allows setting request options on the pages.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
func (c *AppConfig) ListHostedConfigurationVersionsPagesWithContext(ctx aws.Context, input *ListHostedConfigurationVersionsInput, fn func(*ListHostedConfigurationVersionsOutput, bool) bool, opts ...request.Option) error {
p := request.Pagination{
NewRequest: func() (*request.Request, error) {
var inCpy *ListHostedConfigurationVersionsInput
if input != nil {
tmp := *input
inCpy = &tmp
}
req, _ := c.ListHostedConfigurationVersionsRequest(inCpy)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return req, nil
},
}
for p.Next() {
if !fn(p.Page().(*ListHostedConfigurationVersionsOutput), !p.HasNextPage()) {
break
}
}
return p.Err()
}
const opListTagsForResource = "ListTagsForResource"
// ListTagsForResourceRequest generates a "aws/request.Request" representing the
// client's request for the ListTagsForResource operation. The "output" return
// value will be populated with the request's response once the request completes
// successfully.
//
// Use "Send" method on the returned Request to send the API call to the service.
// the "output" return value is not valid until after Send returns without error.
//
// See ListTagsForResource for more information on using the ListTagsForResource
// API call, and error handling.
//
// This method is useful when you want to inject custom logic or configuration
// into the SDK's request lifecycle. Such as custom headers, or retry logic.
//
//
// // Example sending a request using the ListTagsForResourceRequest method.
// req, resp := client.ListTagsForResourceRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/appconfig-2019-10-09/ListTagsForResource
func (c *AppConfig) ListTagsForResourceRequest(input *ListTagsForResourceInput) (req *request.Request, output *ListTagsForResourceOutput) {
op := &request.Operation{
Name: opListTagsForResource,
HTTPMethod: "GET",
HTTPPath: "/tags/{ResourceArn}",
}
if input == nil {
input = &ListTagsForResourceInput{}
}
output = &ListTagsForResourceOutput{}
req = c.newRequest(op, input, output)
return
}
// ListTagsForResource API operation for Amazon AppConfig.
//
// Retrieves the list of key-value tags assigned to the 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 Amazon AppConfig's
// API operation ListTagsForResource for usage and error information.
//
// Returned Error Types:
// * ResourceNotFoundException
// The requested resource could not be found.
//
// * BadRequestException
// The input fails to satisfy the constraints specified by an AWS service.
//
// * InternalServerException
// There was an internal failure in the AppConfig service.
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/appconfig-2019-10-09/ListTagsForResource
func (c *AppConfig) ListTagsForResource(input *ListTagsForResourceInput) (*ListTagsForResourceOutput, error) {
req, out := c.ListTagsForResourceRequest(input)
return out, req.Send()
}
// ListTagsForResourceWithContext is the same as ListTagsForResource with the addition of
// the ability to pass a context and additional request options.
//
// See ListTagsForResource for details on how to use this API operation.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
func (c *AppConfig) ListTagsForResourceWithContext(ctx aws.Context, input *ListTagsForResourceInput, opts ...request.Option) (*ListTagsForResourceOutput, error) {
req, out := c.ListTagsForResourceRequest(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
const opStartDeployment = "StartDeployment"
// StartDeploymentRequest generates a "aws/request.Request" representing the
// client's request for the StartDeployment 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 StartDeployment for more information on using the StartDeployment
// 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 StartDeploymentRequest method.
// req, resp := client.StartDeploymentRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/appconfig-2019-10-09/StartDeployment
func (c *AppConfig) StartDeploymentRequest(input *StartDeploymentInput) (req *request.Request, output *StartDeploymentOutput) {
op := &request.Operation{
Name: opStartDeployment,
HTTPMethod: "POST",
HTTPPath: "/applications/{ApplicationId}/environments/{EnvironmentId}/deployments",
}
if input == nil {
input = &StartDeploymentInput{}
}
output = &StartDeploymentOutput{}
req = c.newRequest(op, input, output)
return
}
// StartDeployment API operation for Amazon AppConfig.
//
// Starts a deployment.
//
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
// with awserr.Error's Code and Message methods to get detailed information about
// the error.
//
// See the AWS API reference guide for Amazon AppConfig's
// API operation StartDeployment for usage and error information.
//
// Returned Error Types:
// * BadRequestException
// The input fails to satisfy the constraints specified by an AWS service.
//
// * ResourceNotFoundException
// The requested resource could not be found.
//
// * ConflictException
// The request could not be processed because of conflict in the current state
// of the resource.
//
// * InternalServerException
// There was an internal failure in the AppConfig service.
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/appconfig-2019-10-09/StartDeployment
func (c *AppConfig) StartDeployment(input *StartDeploymentInput) (*StartDeploymentOutput, error) {
req, out := c.StartDeploymentRequest(input)
return out, req.Send()
}
// StartDeploymentWithContext is the same as StartDeployment with the addition of
// the ability to pass a context and additional request options.
//
// See StartDeployment for details on how to use this API operation.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
func (c *AppConfig) StartDeploymentWithContext(ctx aws.Context, input *StartDeploymentInput, opts ...request.Option) (*StartDeploymentOutput, error) {
req, out := c.StartDeploymentRequest(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
const opStopDeployment = "StopDeployment"
// StopDeploymentRequest generates a "aws/request.Request" representing the
// client's request for the StopDeployment 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 StopDeployment for more information on using the StopDeployment
// 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 StopDeploymentRequest method.
// req, resp := client.StopDeploymentRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/appconfig-2019-10-09/StopDeployment
func (c *AppConfig) StopDeploymentRequest(input *StopDeploymentInput) (req *request.Request, output *StopDeploymentOutput) {
op := &request.Operation{
Name: opStopDeployment,
HTTPMethod: "DELETE",
HTTPPath: "/applications/{ApplicationId}/environments/{EnvironmentId}/deployments/{DeploymentNumber}",
}
if input == nil {
input = &StopDeploymentInput{}
}
output = &StopDeploymentOutput{}
req = c.newRequest(op, input, output)
return
}
// StopDeployment API operation for Amazon AppConfig.
//
// Stops a deployment. This API action works only on deployments that have a
// status of DEPLOYING. This action moves the deployment to a status of ROLLED_BACK.
//
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
// with awserr.Error's Code and Message methods to get detailed information about
// the error.
//
// See the AWS API reference guide for Amazon AppConfig's
// API operation StopDeployment for usage and error information.
//
// Returned Error Types:
// * ResourceNotFoundException
// The requested resource could not be found.
//
// * InternalServerException
// There was an internal failure in the AppConfig service.
//
// * BadRequestException
// The input fails to satisfy the constraints specified by an AWS service.
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/appconfig-2019-10-09/StopDeployment
func (c *AppConfig) StopDeployment(input *StopDeploymentInput) (*StopDeploymentOutput, error) {
req, out := c.StopDeploymentRequest(input)
return out, req.Send()
}
// StopDeploymentWithContext is the same as StopDeployment with the addition of
// the ability to pass a context and additional request options.
//
// See StopDeployment for details on how to use this API operation.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
func (c *AppConfig) StopDeploymentWithContext(ctx aws.Context, input *StopDeploymentInput, opts ...request.Option) (*StopDeploymentOutput, error) {
req, out := c.StopDeploymentRequest(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
const opTagResource = "TagResource"
// TagResourceRequest generates a "aws/request.Request" representing the
// client's request for the TagResource operation. The "output" return
// value will be populated with the request's response once the request completes
// successfully.
//
// Use "Send" method on the returned Request to send the API call to the service.
// the "output" return value is not valid until after Send returns without error.
//
// See TagResource for more information on using the TagResource
// API call, and error handling.
//
// This method is useful when you want to inject custom logic or configuration
// into the SDK's request lifecycle. Such as custom headers, or retry logic.
//
//
// // Example sending a request using the TagResourceRequest method.
// req, resp := client.TagResourceRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/appconfig-2019-10-09/TagResource
func (c *AppConfig) TagResourceRequest(input *TagResourceInput) (req *request.Request, output *TagResourceOutput) {
op := &request.Operation{
Name: opTagResource,
HTTPMethod: "POST",
HTTPPath: "/tags/{ResourceArn}",
}
if input == nil {
input = &TagResourceInput{}
}
output = &TagResourceOutput{}
req = c.newRequest(op, input, output)
req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
return
}
// TagResource API operation for Amazon AppConfig.
//
// Metadata to assign to an AppConfig resource. Tags help organize and categorize
// your AppConfig resources. Each tag consists of a key and an optional value,
// both of which you define. You can specify a maximum of 50 tags for 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 Amazon AppConfig's
// API operation TagResource for usage and error information.
//
// Returned Error Types:
// * ResourceNotFoundException
// The requested resource could not be found.
//
// * BadRequestException
// The input fails to satisfy the constraints specified by an AWS service.
//
// * InternalServerException
// There was an internal failure in the AppConfig service.
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/appconfig-2019-10-09/TagResource
func (c *AppConfig) TagResource(input *TagResourceInput) (*TagResourceOutput, error) {
req, out := c.TagResourceRequest(input)
return out, req.Send()
}
// TagResourceWithContext is the same as TagResource with the addition of
// the ability to pass a context and additional request options.
//
// See TagResource for details on how to use this API operation.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
func (c *AppConfig) TagResourceWithContext(ctx aws.Context, input *TagResourceInput, opts ...request.Option) (*TagResourceOutput, error) {
req, out := c.TagResourceRequest(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
const opUntagResource = "UntagResource"
// UntagResourceRequest generates a "aws/request.Request" representing the
// client's request for the UntagResource operation. The "output" return
// value will be populated with the request's response once the request completes
// successfully.
//
// Use "Send" method on the returned Request to send the API call to the service.
// the "output" return value is not valid until after Send returns without error.
//
// See UntagResource for more information on using the UntagResource
// API call, and error handling.
//
// This method is useful when you want to inject custom logic or configuration
// into the SDK's request lifecycle. Such as custom headers, or retry logic.
//
//
// // Example sending a request using the UntagResourceRequest method.
// req, resp := client.UntagResourceRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/appconfig-2019-10-09/UntagResource
func (c *AppConfig) UntagResourceRequest(input *UntagResourceInput) (req *request.Request, output *UntagResourceOutput) {
op := &request.Operation{
Name: opUntagResource,
HTTPMethod: "DELETE",
HTTPPath: "/tags/{ResourceArn}",
}
if input == nil {
input = &UntagResourceInput{}
}
output = &UntagResourceOutput{}
req = c.newRequest(op, input, output)
req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
return
}
// UntagResource API operation for Amazon AppConfig.
//
// Deletes a tag key and value from an AppConfig 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 Amazon AppConfig's
// API operation UntagResource for usage and error information.
//
// Returned Error Types:
// * ResourceNotFoundException
// The requested resource could not be found.
//
// * BadRequestException
// The input fails to satisfy the constraints specified by an AWS service.
//
// * InternalServerException
// There was an internal failure in the AppConfig service.
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/appconfig-2019-10-09/UntagResource
func (c *AppConfig) UntagResource(input *UntagResourceInput) (*UntagResourceOutput, error) {
req, out := c.UntagResourceRequest(input)
return out, req.Send()
}
// UntagResourceWithContext is the same as UntagResource with the addition of
// the ability to pass a context and additional request options.
//
// See UntagResource for details on how to use this API operation.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
func (c *AppConfig) UntagResourceWithContext(ctx aws.Context, input *UntagResourceInput, opts ...request.Option) (*UntagResourceOutput, error) {
req, out := c.UntagResourceRequest(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
const opUpdateApplication = "UpdateApplication"
// UpdateApplicationRequest generates a "aws/request.Request" representing the
// client's request for the UpdateApplication 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 UpdateApplication for more information on using the UpdateApplication
// 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 UpdateApplicationRequest method.
// req, resp := client.UpdateApplicationRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/appconfig-2019-10-09/UpdateApplication
func (c *AppConfig) UpdateApplicationRequest(input *UpdateApplicationInput) (req *request.Request, output *UpdateApplicationOutput) {
op := &request.Operation{
Name: opUpdateApplication,
HTTPMethod: "PATCH",
HTTPPath: "/applications/{ApplicationId}",
}
if input == nil {
input = &UpdateApplicationInput{}
}
output = &UpdateApplicationOutput{}
req = c.newRequest(op, input, output)
return
}
// UpdateApplication API operation for Amazon AppConfig.
//
// Updates an application.
//
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
// with awserr.Error's Code and Message methods to get detailed information about
// the error.
//
// See the AWS API reference guide for Amazon AppConfig's
// API operation UpdateApplication for usage and error information.
//
// Returned Error Types:
// * BadRequestException
// The input fails to satisfy the constraints specified by an AWS service.
//
// * ResourceNotFoundException
// The requested resource could not be found.
//
// * InternalServerException
// There was an internal failure in the AppConfig service.
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/appconfig-2019-10-09/UpdateApplication
func (c *AppConfig) UpdateApplication(input *UpdateApplicationInput) (*UpdateApplicationOutput, error) {
req, out := c.UpdateApplicationRequest(input)
return out, req.Send()
}
// UpdateApplicationWithContext is the same as UpdateApplication with the addition of
// the ability to pass a context and additional request options.
//
// See UpdateApplication for details on how to use this API operation.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
func (c *AppConfig) UpdateApplicationWithContext(ctx aws.Context, input *UpdateApplicationInput, opts ...request.Option) (*UpdateApplicationOutput, error) {
req, out := c.UpdateApplicationRequest(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
const opUpdateConfigurationProfile = "UpdateConfigurationProfile"
// UpdateConfigurationProfileRequest generates a "aws/request.Request" representing the
// client's request for the UpdateConfigurationProfile 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 UpdateConfigurationProfile for more information on using the UpdateConfigurationProfile
// 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 UpdateConfigurationProfileRequest method.
// req, resp := client.UpdateConfigurationProfileRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/appconfig-2019-10-09/UpdateConfigurationProfile
func (c *AppConfig) UpdateConfigurationProfileRequest(input *UpdateConfigurationProfileInput) (req *request.Request, output *UpdateConfigurationProfileOutput) {
op := &request.Operation{
Name: opUpdateConfigurationProfile,
HTTPMethod: "PATCH",
HTTPPath: "/applications/{ApplicationId}/configurationprofiles/{ConfigurationProfileId}",
}
if input == nil {
input = &UpdateConfigurationProfileInput{}
}
output = &UpdateConfigurationProfileOutput{}
req = c.newRequest(op, input, output)
return
}
// UpdateConfigurationProfile API operation for Amazon AppConfig.
//
// Updates a configuration profile.
//
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
// with awserr.Error's Code and Message methods to get detailed information about
// the error.
//
// See the AWS API reference guide for Amazon AppConfig's
// API operation UpdateConfigurationProfile for usage and error information.
//
// Returned Error Types:
// * BadRequestException
// The input fails to satisfy the constraints specified by an AWS service.
//
// * ResourceNotFoundException
// The requested resource could not be found.
//
// * InternalServerException
// There was an internal failure in the AppConfig service.
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/appconfig-2019-10-09/UpdateConfigurationProfile
func (c *AppConfig) UpdateConfigurationProfile(input *UpdateConfigurationProfileInput) (*UpdateConfigurationProfileOutput, error) {
req, out := c.UpdateConfigurationProfileRequest(input)
return out, req.Send()
}
// UpdateConfigurationProfileWithContext is the same as UpdateConfigurationProfile with the addition of
// the ability to pass a context and additional request options.
//
// See UpdateConfigurationProfile for details on how to use this API operation.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
func (c *AppConfig) UpdateConfigurationProfileWithContext(ctx aws.Context, input *UpdateConfigurationProfileInput, opts ...request.Option) (*UpdateConfigurationProfileOutput, error) {
req, out := c.UpdateConfigurationProfileRequest(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
const opUpdateDeploymentStrategy = "UpdateDeploymentStrategy"
// UpdateDeploymentStrategyRequest generates a "aws/request.Request" representing the
// client's request for the UpdateDeploymentStrategy 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 UpdateDeploymentStrategy for more information on using the UpdateDeploymentStrategy
// 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 UpdateDeploymentStrategyRequest method.
// req, resp := client.UpdateDeploymentStrategyRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/appconfig-2019-10-09/UpdateDeploymentStrategy
func (c *AppConfig) UpdateDeploymentStrategyRequest(input *UpdateDeploymentStrategyInput) (req *request.Request, output *UpdateDeploymentStrategyOutput) {
op := &request.Operation{
Name: opUpdateDeploymentStrategy,
HTTPMethod: "PATCH",
HTTPPath: "/deploymentstrategies/{DeploymentStrategyId}",
}
if input == nil {
input = &UpdateDeploymentStrategyInput{}
}
output = &UpdateDeploymentStrategyOutput{}
req = c.newRequest(op, input, output)
return
}
// UpdateDeploymentStrategy API operation for Amazon AppConfig.
//
// Updates a deployment strategy.
//
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
// with awserr.Error's Code and Message methods to get detailed information about
// the error.
//
// See the AWS API reference guide for Amazon AppConfig's
// API operation UpdateDeploymentStrategy for usage and error information.
//
// Returned Error Types:
// * BadRequestException
// The input fails to satisfy the constraints specified by an AWS service.
//
// * ResourceNotFoundException
// The requested resource could not be found.
//
// * InternalServerException
// There was an internal failure in the AppConfig service.
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/appconfig-2019-10-09/UpdateDeploymentStrategy
func (c *AppConfig) UpdateDeploymentStrategy(input *UpdateDeploymentStrategyInput) (*UpdateDeploymentStrategyOutput, error) {
req, out := c.UpdateDeploymentStrategyRequest(input)
return out, req.Send()
}
// UpdateDeploymentStrategyWithContext is the same as UpdateDeploymentStrategy with the addition of
// the ability to pass a context and additional request options.
//
// See UpdateDeploymentStrategy for details on how to use this API operation.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
func (c *AppConfig) UpdateDeploymentStrategyWithContext(ctx aws.Context, input *UpdateDeploymentStrategyInput, opts ...request.Option) (*UpdateDeploymentStrategyOutput, error) {
req, out := c.UpdateDeploymentStrategyRequest(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
const opUpdateEnvironment = "UpdateEnvironment"
// UpdateEnvironmentRequest generates a "aws/request.Request" representing the
// client's request for the UpdateEnvironment 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 UpdateEnvironment for more information on using the UpdateEnvironment
// 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 UpdateEnvironmentRequest method.
// req, resp := client.UpdateEnvironmentRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/appconfig-2019-10-09/UpdateEnvironment
func (c *AppConfig) UpdateEnvironmentRequest(input *UpdateEnvironmentInput) (req *request.Request, output *UpdateEnvironmentOutput) {
op := &request.Operation{
Name: opUpdateEnvironment,
HTTPMethod: "PATCH",
HTTPPath: "/applications/{ApplicationId}/environments/{EnvironmentId}",
}
if input == nil {
input = &UpdateEnvironmentInput{}
}
output = &UpdateEnvironmentOutput{}
req = c.newRequest(op, input, output)
return
}
// UpdateEnvironment API operation for Amazon AppConfig.
//
// Updates an environment.
//
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
// with awserr.Error's Code and Message methods to get detailed information about
// the error.
//
// See the AWS API reference guide for Amazon AppConfig's
// API operation UpdateEnvironment for usage and error information.
//
// Returned Error Types:
// * BadRequestException
// The input fails to satisfy the constraints specified by an AWS service.
//
// * ResourceNotFoundException
// The requested resource could not be found.
//
// * InternalServerException
// There was an internal failure in the AppConfig service.
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/appconfig-2019-10-09/UpdateEnvironment
func (c *AppConfig) UpdateEnvironment(input *UpdateEnvironmentInput) (*UpdateEnvironmentOutput, error) {
req, out := c.UpdateEnvironmentRequest(input)
return out, req.Send()
}
// UpdateEnvironmentWithContext is the same as UpdateEnvironment with the addition of
// the ability to pass a context and additional request options.
//
// See UpdateEnvironment for details on how to use this API operation.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
func (c *AppConfig) UpdateEnvironmentWithContext(ctx aws.Context, input *UpdateEnvironmentInput, opts ...request.Option) (*UpdateEnvironmentOutput, error) {
req, out := c.UpdateEnvironmentRequest(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
const opValidateConfiguration = "ValidateConfiguration"
// ValidateConfigurationRequest generates a "aws/request.Request" representing the
// client's request for the ValidateConfiguration 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 ValidateConfiguration for more information on using the ValidateConfiguration
// 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 ValidateConfigurationRequest method.
// req, resp := client.ValidateConfigurationRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/appconfig-2019-10-09/ValidateConfiguration
func (c *AppConfig) ValidateConfigurationRequest(input *ValidateConfigurationInput) (req *request.Request, output *ValidateConfigurationOutput) {
op := &request.Operation{
Name: opValidateConfiguration,
HTTPMethod: "POST",
HTTPPath: "/applications/{ApplicationId}/configurationprofiles/{ConfigurationProfileId}/validators",
}
if input == nil {
input = &ValidateConfigurationInput{}
}
output = &ValidateConfigurationOutput{}
req = c.newRequest(op, input, output)
req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
return
}
// ValidateConfiguration API operation for Amazon AppConfig.
//
// Uses the validators in a configuration profile to validate a configuration.
//
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
// with awserr.Error's Code and Message methods to get detailed information about
// the error.
//
// See the AWS API reference guide for Amazon AppConfig's
// API operation ValidateConfiguration for usage and error information.
//
// Returned Error Types:
// * BadRequestException
// The input fails to satisfy the constraints specified by an AWS service.
//
// * ResourceNotFoundException
// The requested resource could not be found.
//
// * InternalServerException
// There was an internal failure in the AppConfig service.
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/appconfig-2019-10-09/ValidateConfiguration
func (c *AppConfig) ValidateConfiguration(input *ValidateConfigurationInput) (*ValidateConfigurationOutput, error) {
req, out := c.ValidateConfigurationRequest(input)
return out, req.Send()
}
// ValidateConfigurationWithContext is the same as ValidateConfiguration with the addition of
// the ability to pass a context and additional request options.
//
// See ValidateConfiguration for details on how to use this API operation.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
func (c *AppConfig) ValidateConfigurationWithContext(ctx aws.Context, input *ValidateConfigurationInput, opts ...request.Option) (*ValidateConfigurationOutput, error) {
req, out := c.ValidateConfigurationRequest(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
type Application struct {
_ struct{} `type:"structure"`
// The description of the application.
Description *string `type:"string"`
// The application ID.
Id *string `type:"string"`
// The application name.
Name *string `min:"1" type:"string"`
}
// String returns the string representation
func (s Application) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s Application) GoString() string {
return s.String()
}
// SetDescription sets the Description field's value.
func (s *Application) SetDescription(v string) *Application {
s.Description = &v
return s
}
// SetId sets the Id field's value.
func (s *Application) SetId(v string) *Application {
s.Id = &v
return s
}
// SetName sets the Name field's value.
func (s *Application) SetName(v string) *Application {
s.Name = &v
return s
}
// The input fails to satisfy the constraints specified by an AWS service.
type BadRequestException struct {
_ struct{} `type:"structure"`
RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"Message" type:"string"`
}
// String returns the string representation
func (s BadRequestException) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s BadRequestException) GoString() string {
return s.String()
}
func newErrorBadRequestException(v protocol.ResponseMetadata) error {
return &BadRequestException{
RespMetadata: v,
}
}
// Code returns the exception type name.
func (s *BadRequestException) Code() string {
return "BadRequestException"
}
// Message returns the exception's message.
func (s *BadRequestException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
return ""
}
// OrigErr always returns nil, satisfies awserr.Error interface.
func (s *BadRequestException) OrigErr() error {
return nil
}
func (s *BadRequestException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
func (s *BadRequestException) StatusCode() int {
return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
func (s *BadRequestException) RequestID() string {
return s.RespMetadata.RequestID
}
// A summary of a configuration profile.
type ConfigurationProfileSummary struct {
_ struct{} `type:"structure"`
// The application ID.
ApplicationId *string `type:"string"`
// The ID of the configuration profile.
Id *string `type:"string"`
// The URI location of the configuration.
LocationUri *string `min:"1" type:"string"`
// The name of the configuration profile.
Name *string `min:"1" type:"string"`
// The types of validators in the configuration profile.
ValidatorTypes []*string `type:"list"`
}
// String returns the string representation
func (s ConfigurationProfileSummary) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s ConfigurationProfileSummary) GoString() string {
return s.String()
}
// SetApplicationId sets the ApplicationId field's value.
func (s *ConfigurationProfileSummary) SetApplicationId(v string) *ConfigurationProfileSummary {
s.ApplicationId = &v
return s
}
// SetId sets the Id field's value.
func (s *ConfigurationProfileSummary) SetId(v string) *ConfigurationProfileSummary {
s.Id = &v
return s
}
// SetLocationUri sets the LocationUri field's value.
func (s *ConfigurationProfileSummary) SetLocationUri(v string) *ConfigurationProfileSummary {
s.LocationUri = &v
return s
}
// SetName sets the Name field's value.
func (s *ConfigurationProfileSummary) SetName(v string) *ConfigurationProfileSummary {
s.Name = &v
return s
}
// SetValidatorTypes sets the ValidatorTypes field's value.
func (s *ConfigurationProfileSummary) SetValidatorTypes(v []*string) *ConfigurationProfileSummary {
s.ValidatorTypes = v
return s
}
// The request could not be processed because of conflict in the current state
// of the resource.
type ConflictException struct {
_ struct{} `type:"structure"`
RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"Message" type:"string"`
}
// String returns the string representation
func (s ConflictException) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s ConflictException) GoString() string {
return s.String()
}
func newErrorConflictException(v protocol.ResponseMetadata) error {
return &ConflictException{
RespMetadata: v,
}
}
// Code returns the exception type name.
func (s *ConflictException) Code() string {
return "ConflictException"
}
// Message returns the exception's message.
func (s *ConflictException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
return ""
}
// OrigErr always returns nil, satisfies awserr.Error interface.
func (s *ConflictException) OrigErr() error {
return nil
}
func (s *ConflictException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
func (s *ConflictException) StatusCode() int {
return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
func (s *ConflictException) RequestID() string {
return s.RespMetadata.RequestID
}
type CreateApplicationInput struct {
_ struct{} `type:"structure"`
// A description of the application.
Description *string `type:"string"`
// A name for the application.
//
// Name is a required field
Name *string `min:"1" type:"string" required:"true"`
// Metadata to assign to the application. Tags help organize and categorize
// your AppConfig resources. Each tag consists of a key and an optional value,
// both of which you define.
Tags map[string]*string `type:"map"`
}
// String returns the string representation
func (s CreateApplicationInput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s CreateApplicationInput) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
func (s *CreateApplicationInput) Validate() error {
invalidParams := request.ErrInvalidParams{Context: "CreateApplicationInput"}
if s.Name == nil {
invalidParams.Add(request.NewErrParamRequired("Name"))
}
if s.Name != nil && len(*s.Name) < 1 {
invalidParams.Add(request.NewErrParamMinLen("Name", 1))
}
if invalidParams.Len() > 0 {
return invalidParams
}
return nil
}
// SetDescription sets the Description field's value.
func (s *CreateApplicationInput) SetDescription(v string) *CreateApplicationInput {
s.Description = &v
return s
}
// SetName sets the Name field's value.
func (s *CreateApplicationInput) SetName(v string) *CreateApplicationInput {
s.Name = &v
return s
}
// SetTags sets the Tags field's value.
func (s *CreateApplicationInput) SetTags(v map[string]*string) *CreateApplicationInput {
s.Tags = v
return s
}
type CreateApplicationOutput struct {
_ struct{} `type:"structure"`
// The description of the application.
Description *string `type:"string"`
// The application ID.
Id *string `type:"string"`
// The application name.
Name *string `min:"1" type:"string"`
}
// String returns the string representation
func (s CreateApplicationOutput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s CreateApplicationOutput) GoString() string {
return s.String()
}
// SetDescription sets the Description field's value.
func (s *CreateApplicationOutput) SetDescription(v string) *CreateApplicationOutput {
s.Description = &v
return s
}
// SetId sets the Id field's value.
func (s *CreateApplicationOutput) SetId(v string) *CreateApplicationOutput {
s.Id = &v
return s
}
// SetName sets the Name field's value.
func (s *CreateApplicationOutput) SetName(v string) *CreateApplicationOutput {
s.Name = &v
return s
}
type CreateConfigurationProfileInput struct {
_ struct{} `type:"structure"`
// The application ID.
//
// ApplicationId is a required field
ApplicationId *string `location:"uri" locationName:"ApplicationId" type:"string" required:"true"`
// A description of the configuration profile.
Description *string `type:"string"`
// A URI to locate the configuration. You can specify a Systems Manager (SSM)
// document, an SSM Parameter Store parameter, or an Amazon S3 object. For an
// SSM document, specify either the document name in the format ssm-document://<Document_name>
// or the Amazon Resource Name (ARN). For a parameter, specify either the parameter
// name in the format ssm-parameter://<Parameter_name> or the ARN. For an Amazon
// S3 object, specify the URI in the following format: s3://<bucket>/<objectKey>
// . Here is an example: s3://my-bucket/my-app/us-east-1/my-config.json
//
// LocationUri is a required field
LocationUri *string `min:"1" type:"string" required:"true"`
// A name for the configuration profile.
//
// Name is a required field
Name *string `min:"1" type:"string" required:"true"`
// The ARN of an IAM role with permission to access the configuration at the
// specified LocationUri.
RetrievalRoleArn *string `min:"20" type:"string"`
// Metadata to assign to the configuration profile. Tags help organize and categorize
// your AppConfig resources. Each tag consists of a key and an optional value,
// both of which you define.
Tags map[string]*string `type:"map"`
// A list of methods for validating the configuration.
Validators []*Validator `type:"list"`
}
// String returns the string representation
func (s CreateConfigurationProfileInput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s CreateConfigurationProfileInput) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
func (s *CreateConfigurationProfileInput) Validate() error {
invalidParams := request.ErrInvalidParams{Context: "CreateConfigurationProfileInput"}
if s.ApplicationId == nil {
invalidParams.Add(request.NewErrParamRequired("ApplicationId"))
}
if s.ApplicationId != nil && len(*s.ApplicationId) < 1 {
invalidParams.Add(request.NewErrParamMinLen("ApplicationId", 1))
}
if s.LocationUri == nil {
invalidParams.Add(request.NewErrParamRequired("LocationUri"))
}
if s.LocationUri != nil && len(*s.LocationUri) < 1 {
invalidParams.Add(request.NewErrParamMinLen("LocationUri", 1))
}
if s.Name == nil {
invalidParams.Add(request.NewErrParamRequired("Name"))
}
if s.Name != nil && len(*s.Name) < 1 {
invalidParams.Add(request.NewErrParamMinLen("Name", 1))
}
if s.RetrievalRoleArn != nil && len(*s.RetrievalRoleArn) < 20 {
invalidParams.Add(request.NewErrParamMinLen("RetrievalRoleArn", 20))
}
if s.Validators != nil {
for i, v := range s.Validators {
if v == nil {
continue
}
if err := v.Validate(); err != nil {
invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Validators", i), err.(request.ErrInvalidParams))
}
}
}
if invalidParams.Len() > 0 {
return invalidParams
}
return nil
}
// SetApplicationId sets the ApplicationId field's value.
func (s *CreateConfigurationProfileInput) SetApplicationId(v string) *CreateConfigurationProfileInput {
s.ApplicationId = &v
return s
}
// SetDescription sets the Description field's value.
func (s *CreateConfigurationProfileInput) SetDescription(v string) *CreateConfigurationProfileInput {
s.Description = &v
return s
}
// SetLocationUri sets the LocationUri field's value.
func (s *CreateConfigurationProfileInput) SetLocationUri(v string) *CreateConfigurationProfileInput {
s.LocationUri = &v
return s
}
// SetName sets the Name field's value.
func (s *CreateConfigurationProfileInput) SetName(v string) *CreateConfigurationProfileInput {
s.Name = &v
return s
}
// SetRetrievalRoleArn sets the RetrievalRoleArn field's value.
func (s *CreateConfigurationProfileInput) SetRetrievalRoleArn(v string) *CreateConfigurationProfileInput {
s.RetrievalRoleArn = &v
return s
}
// SetTags sets the Tags field's value.
func (s *CreateConfigurationProfileInput) SetTags(v map[string]*string) *CreateConfigurationProfileInput {
s.Tags = v
return s
}
// SetValidators sets the Validators field's value.
func (s *CreateConfigurationProfileInput) SetValidators(v []*Validator) *CreateConfigurationProfileInput {
s.Validators = v
return s
}
type CreateConfigurationProfileOutput struct {
_ struct{} `type:"structure"`
// The application ID.
ApplicationId *string `type:"string"`
// The configuration profile description.
Description *string `type:"string"`
// The configuration profile ID.
Id *string `type:"string"`
// The URI location of the configuration.
LocationUri *string `min:"1" type:"string"`
// The name of the configuration profile.
Name *string `min:"1" type:"string"`
// The ARN of an IAM role with permission to access the configuration at the
// specified LocationUri.
RetrievalRoleArn *string `min:"20" type:"string"`
// A list of methods for validating the configuration.
Validators []*Validator `type:"list"`
}
// String returns the string representation
func (s CreateConfigurationProfileOutput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s CreateConfigurationProfileOutput) GoString() string {
return s.String()
}
// SetApplicationId sets the ApplicationId field's value.
func (s *CreateConfigurationProfileOutput) SetApplicationId(v string) *CreateConfigurationProfileOutput {
s.ApplicationId = &v
return s
}
// SetDescription sets the Description field's value.
func (s *CreateConfigurationProfileOutput) SetDescription(v string) *CreateConfigurationProfileOutput {
s.Description = &v
return s
}
// SetId sets the Id field's value.
func (s *CreateConfigurationProfileOutput) SetId(v string) *CreateConfigurationProfileOutput {
s.Id = &v
return s
}
// SetLocationUri sets the LocationUri field's value.
func (s *CreateConfigurationProfileOutput) SetLocationUri(v string) *CreateConfigurationProfileOutput {
s.LocationUri = &v
return s
}
// SetName sets the Name field's value.
func (s *CreateConfigurationProfileOutput) SetName(v string) *CreateConfigurationProfileOutput {
s.Name = &v
return s
}
// SetRetrievalRoleArn sets the RetrievalRoleArn field's value.
func (s *CreateConfigurationProfileOutput) SetRetrievalRoleArn(v string) *CreateConfigurationProfileOutput {
s.RetrievalRoleArn = &v
return s
}
// SetValidators sets the Validators field's value.
func (s *CreateConfigurationProfileOutput) SetValidators(v []*Validator) *CreateConfigurationProfileOutput {
s.Validators = v
return s
}
type CreateDeploymentStrategyInput struct {
_ struct{} `type:"structure"`
// Total amount of time for a deployment to last.
//
// DeploymentDurationInMinutes is a required field
DeploymentDurationInMinutes *int64 `type:"integer" required:"true"`
// A description of the deployment strategy.
Description *string `type:"string"`
// The amount of time AppConfig monitors for alarms before considering the deployment
// to be complete and no longer eligible for automatic roll back.
FinalBakeTimeInMinutes *int64 `type:"integer"`
// The percentage of targets to receive a deployed configuration during each
// interval.
//
// GrowthFactor is a required field
GrowthFactor *float64 `min:"1" type:"float" required:"true"`
// The algorithm used to define how percentage grows over time. AWS AppConfig
// supports the following growth types:
//
// Linear: For this type, AppConfig processes the deployment by dividing the
// total number of targets by the value specified for Step percentage. For example,
// a linear deployment that uses a Step percentage of 10 deploys the configuration
// to 10 percent of the hosts. After those deployments are complete, the system
// deploys the configuration to the next 10 percent. This continues until 100%
// of the targets have successfully received the configuration.
//
// Exponential: For this type, AppConfig processes the deployment exponentially
// using the following formula: G*(2^N). In this formula, G is the growth factor
// specified by the user and N is the number of steps until the configuration
// is deployed to all targets. For example, if you specify a growth factor of
// 2, then the system rolls out the configuration as follows:
//
// 2*(2^0)
//
// 2*(2^1)
//
// 2*(2^2)
//
// Expressed numerically, the deployment rolls out as follows: 2% of the targets,
// 4% of the targets, 8% of the targets, and continues until the configuration
// has been deployed to all targets.
GrowthType *string `type:"string" enum:"GrowthType"`
// A name for the deployment strategy.
//
// Name is a required field
Name *string `min:"1" type:"string" required:"true"`
// Save the deployment strategy to a Systems Manager (SSM) document.
//
// ReplicateTo is a required field
ReplicateTo *string `type:"string" required:"true" enum:"ReplicateTo"`
// Metadata to assign to the deployment strategy. Tags help organize and categorize
// your AppConfig resources. Each tag consists of a key and an optional value,
// both of which you define.
Tags map[string]*string `type:"map"`
}
// String returns the string representation
func (s CreateDeploymentStrategyInput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s CreateDeploymentStrategyInput) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
func (s *CreateDeploymentStrategyInput) Validate() error {
invalidParams := request.ErrInvalidParams{Context: "CreateDeploymentStrategyInput"}
if s.DeploymentDurationInMinutes == nil {
invalidParams.Add(request.NewErrParamRequired("DeploymentDurationInMinutes"))
}
if s.GrowthFactor == nil {
invalidParams.Add(request.NewErrParamRequired("GrowthFactor"))
}
if s.GrowthFactor != nil && *s.GrowthFactor < 1 {
invalidParams.Add(request.NewErrParamMinValue("GrowthFactor", 1))
}
if s.Name == nil {
invalidParams.Add(request.NewErrParamRequired("Name"))
}
if s.Name != nil && len(*s.Name) < 1 {
invalidParams.Add(request.NewErrParamMinLen("Name", 1))
}
if s.ReplicateTo == nil {
invalidParams.Add(request.NewErrParamRequired("ReplicateTo"))
}
if invalidParams.Len() > 0 {
return invalidParams
}
return nil
}
// SetDeploymentDurationInMinutes sets the DeploymentDurationInMinutes field's value.
func (s *CreateDeploymentStrategyInput) SetDeploymentDurationInMinutes(v int64) *CreateDeploymentStrategyInput {
s.DeploymentDurationInMinutes = &v
return s
}
// SetDescription sets the Description field's value.
func (s *CreateDeploymentStrategyInput) SetDescription(v string) *CreateDeploymentStrategyInput {
s.Description = &v
return s
}
// SetFinalBakeTimeInMinutes sets the FinalBakeTimeInMinutes field's value.
func (s *CreateDeploymentStrategyInput) SetFinalBakeTimeInMinutes(v int64) *CreateDeploymentStrategyInput {
s.FinalBakeTimeInMinutes = &v
return s
}
// SetGrowthFactor sets the GrowthFactor field's value.
func (s *CreateDeploymentStrategyInput) SetGrowthFactor(v float64) *CreateDeploymentStrategyInput {
s.GrowthFactor = &v
return s
}
// SetGrowthType sets the GrowthType field's value.
func (s *CreateDeploymentStrategyInput) SetGrowthType(v string) *CreateDeploymentStrategyInput {
s.GrowthType = &v
return s
}
// SetName sets the Name field's value.
func (s *CreateDeploymentStrategyInput) SetName(v string) *CreateDeploymentStrategyInput {
s.Name = &v
return s
}
// SetReplicateTo sets the ReplicateTo field's value.
func (s *CreateDeploymentStrategyInput) SetReplicateTo(v string) *CreateDeploymentStrategyInput {
s.ReplicateTo = &v
return s
}
// SetTags sets the Tags field's value.
func (s *CreateDeploymentStrategyInput) SetTags(v map[string]*string) *CreateDeploymentStrategyInput {
s.Tags = v
return s
}
type CreateDeploymentStrategyOutput struct {
_ struct{} `type:"structure"`
// Total amount of time the deployment lasted.
DeploymentDurationInMinutes *int64 `type:"integer"`
// The description of the deployment strategy.
Description *string `type:"string"`
// The amount of time AppConfig monitored for alarms before considering the
// deployment to be complete and no longer eligible for automatic roll back.
FinalBakeTimeInMinutes *int64 `type:"integer"`
// The percentage of targets that received a deployed configuration during each
// interval.
GrowthFactor *float64 `min:"1" type:"float"`
// The algorithm used to define how percentage grew over time.
GrowthType *string `type:"string" enum:"GrowthType"`
// The deployment strategy ID.
Id *string `type:"string"`
// The name of the deployment strategy.
Name *string `min:"1" type:"string"`
// Save the deployment strategy to a Systems Manager (SSM) document.
ReplicateTo *string `type:"string" enum:"ReplicateTo"`
}
// String returns the string representation
func (s CreateDeploymentStrategyOutput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s CreateDeploymentStrategyOutput) GoString() string {
return s.String()
}
// SetDeploymentDurationInMinutes sets the DeploymentDurationInMinutes field's value.
func (s *CreateDeploymentStrategyOutput) SetDeploymentDurationInMinutes(v int64) *CreateDeploymentStrategyOutput {
s.DeploymentDurationInMinutes = &v
return s
}
// SetDescription sets the Description field's value.
func (s *CreateDeploymentStrategyOutput) SetDescription(v string) *CreateDeploymentStrategyOutput {
s.Description = &v
return s
}
// SetFinalBakeTimeInMinutes sets the FinalBakeTimeInMinutes field's value.
func (s *CreateDeploymentStrategyOutput) SetFinalBakeTimeInMinutes(v int64) *CreateDeploymentStrategyOutput {
s.FinalBakeTimeInMinutes = &v
return s
}
// SetGrowthFactor sets the GrowthFactor field's value.
func (s *CreateDeploymentStrategyOutput) SetGrowthFactor(v float64) *CreateDeploymentStrategyOutput {
s.GrowthFactor = &v
return s
}
// SetGrowthType sets the GrowthType field's value.
func (s *CreateDeploymentStrategyOutput) SetGrowthType(v string) *CreateDeploymentStrategyOutput {
s.GrowthType = &v
return s
}
// SetId sets the Id field's value.
func (s *CreateDeploymentStrategyOutput) SetId(v string) *CreateDeploymentStrategyOutput {
s.Id = &v
return s
}
// SetName sets the Name field's value.
func (s *CreateDeploymentStrategyOutput) SetName(v string) *CreateDeploymentStrategyOutput {
s.Name = &v
return s
}
// SetReplicateTo sets the ReplicateTo field's value.
func (s *CreateDeploymentStrategyOutput) SetReplicateTo(v string) *CreateDeploymentStrategyOutput {
s.ReplicateTo = &v
return s
}
type CreateEnvironmentInput struct {
_ struct{} `type:"structure"`
// The application ID.
//
// ApplicationId is a required field
ApplicationId *string `location:"uri" locationName:"ApplicationId" type:"string" required:"true"`
// A description of the environment.
Description *string `type:"string"`
// Amazon CloudWatch alarms to monitor during the deployment process.
Monitors []*Monitor `type:"list"`
// A name for the environment.
//
// Name is a required field
Name *string `min:"1" type:"string" required:"true"`
// Metadata to assign to the environment. Tags help organize and categorize
// your AppConfig resources. Each tag consists of a key and an optional value,
// both of which you define.
Tags map[string]*string `type:"map"`
}
// String returns the string representation
func (s CreateEnvironmentInput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s CreateEnvironmentInput) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
func (s *CreateEnvironmentInput) Validate() error {
invalidParams := request.ErrInvalidParams{Context: "CreateEnvironmentInput"}
if s.ApplicationId == nil {
invalidParams.Add(request.NewErrParamRequired("ApplicationId"))
}
if s.ApplicationId != nil && len(*s.ApplicationId) < 1 {
invalidParams.Add(request.NewErrParamMinLen("ApplicationId", 1))
}
if s.Name == nil {
invalidParams.Add(request.NewErrParamRequired("Name"))
}
if s.Name != nil && len(*s.Name) < 1 {
invalidParams.Add(request.NewErrParamMinLen("Name", 1))
}
if s.Monitors != nil {
for i, v := range s.Monitors {
if v == nil {
continue
}
if err := v.Validate(); err != nil {
invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Monitors", i), err.(request.ErrInvalidParams))
}
}
}
if invalidParams.Len() > 0 {
return invalidParams
}
return nil
}
// SetApplicationId sets the ApplicationId field's value.
func (s *CreateEnvironmentInput) SetApplicationId(v string) *CreateEnvironmentInput {
s.ApplicationId = &v
return s
}
// SetDescription sets the Description field's value.
func (s *CreateEnvironmentInput) SetDescription(v string) *CreateEnvironmentInput {
s.Description = &v
return s
}
// SetMonitors sets the Monitors field's value.
func (s *CreateEnvironmentInput) SetMonitors(v []*Monitor) *CreateEnvironmentInput {
s.Monitors = v
return s
}
// SetName sets the Name field's value.
func (s *CreateEnvironmentInput) SetName(v string) *CreateEnvironmentInput {
s.Name = &v
return s
}
// SetTags sets the Tags field's value.
func (s *CreateEnvironmentInput) SetTags(v map[string]*string) *CreateEnvironmentInput {
s.Tags = v
return s
}
type CreateEnvironmentOutput struct {
_ struct{} `type:"structure"`
// The application ID.
ApplicationId *string `type:"string"`
// The description of the environment.
Description *string `type:"string"`
// The environment ID.
Id *string `type:"string"`
// Amazon CloudWatch alarms monitored during the deployment.
Monitors []*Monitor `type:"list"`
// The name of the environment.
Name *string `min:"1" type:"string"`
// The state of the environment. An environment can be in one of the following
// states: READY_FOR_DEPLOYMENT, DEPLOYING, ROLLING_BACK, or ROLLED_BACK
State *string `type:"string" enum:"EnvironmentState"`
}
// String returns the string representation
func (s CreateEnvironmentOutput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s CreateEnvironmentOutput) GoString() string {
return s.String()
}
// SetApplicationId sets the ApplicationId field's value.
func (s *CreateEnvironmentOutput) SetApplicationId(v string) *CreateEnvironmentOutput {
s.ApplicationId = &v
return s
}
// SetDescription sets the Description field's value.
func (s *CreateEnvironmentOutput) SetDescription(v string) *CreateEnvironmentOutput {
s.Description = &v
return s
}
// SetId sets the Id field's value.
func (s *CreateEnvironmentOutput) SetId(v string) *CreateEnvironmentOutput {
s.Id = &v
return s
}
// SetMonitors sets the Monitors field's value.
func (s *CreateEnvironmentOutput) SetMonitors(v []*Monitor) *CreateEnvironmentOutput {
s.Monitors = v
return s
}
// SetName sets the Name field's value.
func (s *CreateEnvironmentOutput) SetName(v string) *CreateEnvironmentOutput {
s.Name = &v
return s
}
// SetState sets the State field's value.
func (s *CreateEnvironmentOutput) SetState(v string) *CreateEnvironmentOutput {
s.State = &v
return s
}
type CreateHostedConfigurationVersionInput struct {
_ struct{} `type:"structure" payload:"Content"`
// The application ID.
//
// ApplicationId is a required field
ApplicationId *string `location:"uri" locationName:"ApplicationId" type:"string" required:"true"`
// The configuration profile ID.
//
// ConfigurationProfileId is a required field
ConfigurationProfileId *string `location:"uri" locationName:"ConfigurationProfileId" type:"string" required:"true"`
// The content of the configuration or the configuration data.
//
// Content is a required field
Content []byte `type:"blob" required:"true" sensitive:"true"`
// A standard MIME type describing the format of the configuration content.
// For more information, see Content-Type (https://docs.aws.amazon.com/https:/www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.17).
//
// ContentType is a required field
ContentType *string `location:"header" locationName:"Content-Type" min:"1" type:"string" required:"true"`
// A description of the configuration.
Description *string `location:"header" locationName:"Description" type:"string"`
// An optional locking token used to prevent race conditions from overwriting
// configuration updates when creating a new version. To ensure your data is
// not overwritten when creating multiple hosted configuration versions in rapid
// succession, specify the version of the latest hosted configuration version.
LatestVersionNumber *int64 `location:"header" locationName:"Latest-Version-Number" type:"integer"`
}
// String returns the string representation
func (s CreateHostedConfigurationVersionInput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s CreateHostedConfigurationVersionInput) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
func (s *CreateHostedConfigurationVersionInput) Validate() error {
invalidParams := request.ErrInvalidParams{Context: "CreateHostedConfigurationVersionInput"}
if s.ApplicationId == nil {
invalidParams.Add(request.NewErrParamRequired("ApplicationId"))
}
if s.ApplicationId != nil && len(*s.ApplicationId) < 1 {
invalidParams.Add(request.NewErrParamMinLen("ApplicationId", 1))
}
if s.ConfigurationProfileId == nil {
invalidParams.Add(request.NewErrParamRequired("ConfigurationProfileId"))
}
if s.ConfigurationProfileId != nil && len(*s.ConfigurationProfileId) < 1 {
invalidParams.Add(request.NewErrParamMinLen("ConfigurationProfileId", 1))
}
if s.Content == nil {
invalidParams.Add(request.NewErrParamRequired("Content"))
}
if s.ContentType == nil {
invalidParams.Add(request.NewErrParamRequired("ContentType"))
}
if s.ContentType != nil && len(*s.ContentType) < 1 {
invalidParams.Add(request.NewErrParamMinLen("ContentType", 1))
}
if invalidParams.Len() > 0 {
return invalidParams
}
return nil
}
// SetApplicationId sets the ApplicationId field's value.
func (s *CreateHostedConfigurationVersionInput) SetApplicationId(v string) *CreateHostedConfigurationVersionInput {
s.ApplicationId = &v
return s
}
// SetConfigurationProfileId sets the ConfigurationProfileId field's value.
func (s *CreateHostedConfigurationVersionInput) SetConfigurationProfileId(v string) *CreateHostedConfigurationVersionInput {
s.ConfigurationProfileId = &v
return s
}
// SetContent sets the Content field's value.
func (s *CreateHostedConfigurationVersionInput) SetContent(v []byte) *CreateHostedConfigurationVersionInput {
s.Content = v
return s
}
// SetContentType sets the ContentType field's value.
func (s *CreateHostedConfigurationVersionInput) SetContentType(v string) *CreateHostedConfigurationVersionInput {
s.ContentType = &v
return s
}
// SetDescription sets the Description field's value.
func (s *CreateHostedConfigurationVersionInput) SetDescription(v string) *CreateHostedConfigurationVersionInput {
s.Description = &v
return s
}
// SetLatestVersionNumber sets the LatestVersionNumber field's value.
func (s *CreateHostedConfigurationVersionInput) SetLatestVersionNumber(v int64) *CreateHostedConfigurationVersionInput {
s.LatestVersionNumber = &v
return s
}
type CreateHostedConfigurationVersionOutput struct {
_ struct{} `type:"structure" payload:"Content"`
// The application ID.
ApplicationId *string `location:"header" locationName:"Application-Id" type:"string"`
// The configuration profile ID.
ConfigurationProfileId *string `location:"header" locationName:"Configuration-Profile-Id" type:"string"`
// The content of the configuration or the configuration data.
Content []byte `type:"blob" sensitive:"true"`
// A standard MIME type describing the format of the configuration content.
// For more information, see Content-Type (https://docs.aws.amazon.com/https:/www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.17).
ContentType *string `location:"header" locationName:"Content-Type" min:"1" type:"string"`
// A description of the configuration.
Description *string `location:"header" locationName:"Description" type:"string"`
// The configuration version.
VersionNumber *int64 `location:"header" locationName:"Version-Number" type:"integer"`
}
// String returns the string representation
func (s CreateHostedConfigurationVersionOutput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s CreateHostedConfigurationVersionOutput) GoString() string {
return s.String()
}
// SetApplicationId sets the ApplicationId field's value.
func (s *CreateHostedConfigurationVersionOutput) SetApplicationId(v string) *CreateHostedConfigurationVersionOutput {
s.ApplicationId = &v
return s
}
// SetConfigurationProfileId sets the ConfigurationProfileId field's value.
func (s *CreateHostedConfigurationVersionOutput) SetConfigurationProfileId(v string) *CreateHostedConfigurationVersionOutput {
s.ConfigurationProfileId = &v
return s
}
// SetContent sets the Content field's value.
func (s *CreateHostedConfigurationVersionOutput) SetContent(v []byte) *CreateHostedConfigurationVersionOutput {
s.Content = v
return s
}
// SetContentType sets the ContentType field's value.
func (s *CreateHostedConfigurationVersionOutput) SetContentType(v string) *CreateHostedConfigurationVersionOutput {
s.ContentType = &v
return s
}
// SetDescription sets the Description field's value.
func (s *CreateHostedConfigurationVersionOutput) SetDescription(v string) *CreateHostedConfigurationVersionOutput {
s.Description = &v
return s
}
// SetVersionNumber sets the VersionNumber field's value.
func (s *CreateHostedConfigurationVersionOutput) SetVersionNumber(v int64) *CreateHostedConfigurationVersionOutput {
s.VersionNumber = &v
return s
}
type DeleteApplicationInput struct {
_ struct{} `type:"structure"`
// The ID of the application to delete.
//
// ApplicationId is a required field
ApplicationId *string `location:"uri" locationName:"ApplicationId" type:"string" required:"true"`
}
// String returns the string representation
func (s DeleteApplicationInput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s DeleteApplicationInput) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
func (s *DeleteApplicationInput) Validate() error {
invalidParams := request.ErrInvalidParams{Context: "DeleteApplicationInput"}
if s.ApplicationId == nil {
invalidParams.Add(request.NewErrParamRequired("ApplicationId"))
}
if s.ApplicationId != nil && len(*s.ApplicationId) < 1 {
invalidParams.Add(request.NewErrParamMinLen("ApplicationId", 1))
}
if invalidParams.Len() > 0 {
return invalidParams
}
return nil
}
// SetApplicationId sets the ApplicationId field's value.
func (s *DeleteApplicationInput) SetApplicationId(v string) *DeleteApplicationInput {
s.ApplicationId = &v
return s
}
type DeleteApplicationOutput struct {
_ struct{} `type:"structure"`
}
// String returns the string representation
func (s DeleteApplicationOutput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s DeleteApplicationOutput) GoString() string {
return s.String()
}
type DeleteConfigurationProfileInput struct {
_ struct{} `type:"structure"`
// The application ID that includes the configuration profile you want to delete.
//
// ApplicationId is a required field
ApplicationId *string `location:"uri" locationName:"ApplicationId" type:"string" required:"true"`
// The ID of the configuration profile you want to delete.
//
// ConfigurationProfileId is a required field
ConfigurationProfileId *string `location:"uri" locationName:"ConfigurationProfileId" type:"string" required:"true"`
}
// String returns the string representation
func (s DeleteConfigurationProfileInput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s DeleteConfigurationProfileInput) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
func (s *DeleteConfigurationProfileInput) Validate() error {
invalidParams := request.ErrInvalidParams{Context: "DeleteConfigurationProfileInput"}
if s.ApplicationId == nil {
invalidParams.Add(request.NewErrParamRequired("ApplicationId"))
}
if s.ApplicationId != nil && len(*s.ApplicationId) < 1 {
invalidParams.Add(request.NewErrParamMinLen("ApplicationId", 1))
}
if s.ConfigurationProfileId == nil {
invalidParams.Add(request.NewErrParamRequired("ConfigurationProfileId"))
}
if s.ConfigurationProfileId != nil && len(*s.ConfigurationProfileId) < 1 {
invalidParams.Add(request.NewErrParamMinLen("ConfigurationProfileId", 1))
}
if invalidParams.Len() > 0 {
return invalidParams
}
return nil
}
// SetApplicationId sets the ApplicationId field's value.
func (s *DeleteConfigurationProfileInput) SetApplicationId(v string) *DeleteConfigurationProfileInput {
s.ApplicationId = &v
return s
}
// SetConfigurationProfileId sets the ConfigurationProfileId field's value.
func (s *DeleteConfigurationProfileInput) SetConfigurationProfileId(v string) *DeleteConfigurationProfileInput {
s.ConfigurationProfileId = &v
return s
}
type DeleteConfigurationProfileOutput struct {
_ struct{} `type:"structure"`
}
// String returns the string representation
func (s DeleteConfigurationProfileOutput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s DeleteConfigurationProfileOutput) GoString() string {
return s.String()
}
type DeleteDeploymentStrategyInput struct {
_ struct{} `type:"structure"`
// The ID of the deployment strategy you want to delete.
//
// DeploymentStrategyId is a required field
DeploymentStrategyId *string `location:"uri" locationName:"DeploymentStrategyId" type:"string" required:"true"`
}
// String returns the string representation
func (s DeleteDeploymentStrategyInput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s DeleteDeploymentStrategyInput) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
func (s *DeleteDeploymentStrategyInput) Validate() error {
invalidParams := request.ErrInvalidParams{Context: "DeleteDeploymentStrategyInput"}
if s.DeploymentStrategyId == nil {
invalidParams.Add(request.NewErrParamRequired("DeploymentStrategyId"))
}
if s.DeploymentStrategyId != nil && len(*s.DeploymentStrategyId) < 1 {
invalidParams.Add(request.NewErrParamMinLen("DeploymentStrategyId", 1))
}
if invalidParams.Len() > 0 {
return invalidParams
}
return nil
}
// SetDeploymentStrategyId sets the DeploymentStrategyId field's value.
func (s *DeleteDeploymentStrategyInput) SetDeploymentStrategyId(v string) *DeleteDeploymentStrategyInput {
s.DeploymentStrategyId = &v
return s
}
type DeleteDeploymentStrategyOutput struct {
_ struct{} `type:"structure"`
}
// String returns the string representation
func (s DeleteDeploymentStrategyOutput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s DeleteDeploymentStrategyOutput) GoString() string {
return s.String()
}
type DeleteEnvironmentInput struct {
_ struct{} `type:"structure"`
// The application ID that includes the environment you want to delete.
//
// ApplicationId is a required field
ApplicationId *string `location:"uri" locationName:"ApplicationId" type:"string" required:"true"`
// The ID of the environment you want to delete.
//
// EnvironmentId is a required field
EnvironmentId *string `location:"uri" locationName:"EnvironmentId" type:"string" required:"true"`
}
// String returns the string representation
func (s DeleteEnvironmentInput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s DeleteEnvironmentInput) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
func (s *DeleteEnvironmentInput) Validate() error {
invalidParams := request.ErrInvalidParams{Context: "DeleteEnvironmentInput"}
if s.ApplicationId == nil {
invalidParams.Add(request.NewErrParamRequired("ApplicationId"))
}
if s.ApplicationId != nil && len(*s.ApplicationId) < 1 {
invalidParams.Add(request.NewErrParamMinLen("ApplicationId", 1))
}
if s.EnvironmentId == nil {
invalidParams.Add(request.NewErrParamRequired("EnvironmentId"))
}
if s.EnvironmentId != nil && len(*s.EnvironmentId) < 1 {
invalidParams.Add(request.NewErrParamMinLen("EnvironmentId", 1))
}
if invalidParams.Len() > 0 {
return invalidParams
}
return nil
}
// SetApplicationId sets the ApplicationId field's value.
func (s *DeleteEnvironmentInput) SetApplicationId(v string) *DeleteEnvironmentInput {
s.ApplicationId = &v
return s
}
// SetEnvironmentId sets the EnvironmentId field's value.
func (s *DeleteEnvironmentInput) SetEnvironmentId(v string) *DeleteEnvironmentInput {
s.EnvironmentId = &v
return s
}
type DeleteEnvironmentOutput struct {
_ struct{} `type:"structure"`
}
// String returns the string representation
func (s DeleteEnvironmentOutput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s DeleteEnvironmentOutput) GoString() string {
return s.String()
}
type DeleteHostedConfigurationVersionInput struct {
_ struct{} `type:"structure"`
// The application ID.
//
// ApplicationId is a required field
ApplicationId *string `location:"uri" locationName:"ApplicationId" type:"string" required:"true"`
// The configuration profile ID.
//
// ConfigurationProfileId is a required field
ConfigurationProfileId *string `location:"uri" locationName:"ConfigurationProfileId" type:"string" required:"true"`
// The versions number to delete.
//
// VersionNumber is a required field
VersionNumber *int64 `location:"uri" locationName:"VersionNumber" type:"integer" required:"true"`
}
// String returns the string representation
func (s DeleteHostedConfigurationVersionInput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s DeleteHostedConfigurationVersionInput) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
func (s *DeleteHostedConfigurationVersionInput) Validate() error {
invalidParams := request.ErrInvalidParams{Context: "DeleteHostedConfigurationVersionInput"}
if s.ApplicationId == nil {
invalidParams.Add(request.NewErrParamRequired("ApplicationId"))
}
if s.ApplicationId != nil && len(*s.ApplicationId) < 1 {
invalidParams.Add(request.NewErrParamMinLen("ApplicationId", 1))
}
if s.ConfigurationProfileId == nil {
invalidParams.Add(request.NewErrParamRequired("ConfigurationProfileId"))
}
if s.ConfigurationProfileId != nil && len(*s.ConfigurationProfileId) < 1 {
invalidParams.Add(request.NewErrParamMinLen("ConfigurationProfileId", 1))
}
if s.VersionNumber == nil {
invalidParams.Add(request.NewErrParamRequired("VersionNumber"))
}
if invalidParams.Len() > 0 {
return invalidParams
}
return nil
}
// SetApplicationId sets the ApplicationId field's value.
func (s *DeleteHostedConfigurationVersionInput) SetApplicationId(v string) *DeleteHostedConfigurationVersionInput {
s.ApplicationId = &v
return s
}
// SetConfigurationProfileId sets the ConfigurationProfileId field's value.
func (s *DeleteHostedConfigurationVersionInput) SetConfigurationProfileId(v string) *DeleteHostedConfigurationVersionInput {
s.ConfigurationProfileId = &v
return s
}
// SetVersionNumber sets the VersionNumber field's value.
func (s *DeleteHostedConfigurationVersionInput) SetVersionNumber(v int64) *DeleteHostedConfigurationVersionInput {
s.VersionNumber = &v
return s
}
type DeleteHostedConfigurationVersionOutput struct {
_ struct{} `type:"structure"`
}
// String returns the string representation
func (s DeleteHostedConfigurationVersionOutput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s DeleteHostedConfigurationVersionOutput) GoString() string {
return s.String()
}
// An object that describes a deployment event.
type DeploymentEvent struct {
_ struct{} `type:"structure"`
// A description of the deployment event. Descriptions include, but are not
// limited to, the user account or the CloudWatch alarm ARN that initiated a
// rollback, the percentage of hosts that received the deployment, or in the
// case of an internal error, a recommendation to attempt a new deployment.
Description *string `type:"string"`
// The type of deployment event. Deployment event types include the start, stop,
// or completion of a deployment; a percentage update; the start or stop of
// a bake period; the start or completion of a rollback.
EventType *string `type:"string" enum:"DeploymentEventType"`
// The date and time the event occurred.
OccurredAt *time.Time `type:"timestamp" timestampFormat:"iso8601"`
// The entity that triggered the deployment event. Events can be triggered by
// a user, AWS AppConfig, an Amazon CloudWatch alarm, or an internal error.
TriggeredBy *string `type:"string" enum:"TriggeredBy"`
}
// String returns the string representation
func (s DeploymentEvent) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s DeploymentEvent) GoString() string {
return s.String()
}
// SetDescription sets the Description field's value.
func (s *DeploymentEvent) SetDescription(v string) *DeploymentEvent {
s.Description = &v
return s
}
// SetEventType sets the EventType field's value.
func (s *DeploymentEvent) SetEventType(v string) *DeploymentEvent {
s.EventType = &v
return s
}
// SetOccurredAt sets the OccurredAt field's value.
func (s *DeploymentEvent) SetOccurredAt(v time.Time) *DeploymentEvent {
s.OccurredAt = &v
return s
}
// SetTriggeredBy sets the TriggeredBy field's value.
func (s *DeploymentEvent) SetTriggeredBy(v string) *DeploymentEvent {
s.TriggeredBy = &v
return s
}
type DeploymentStrategy struct {
_ struct{} `type:"structure"`
// Total amount of time the deployment lasted.
DeploymentDurationInMinutes *int64 `type:"integer"`
// The description of the deployment strategy.
Description *string `type:"string"`
// The amount of time AppConfig monitored for alarms before considering the
// deployment to be complete and no longer eligible for automatic roll back.
FinalBakeTimeInMinutes *int64 `type:"integer"`
// The percentage of targets that received a deployed configuration during each
// interval.
GrowthFactor *float64 `min:"1" type:"float"`
// The algorithm used to define how percentage grew over time.
GrowthType *string `type:"string" enum:"GrowthType"`
// The deployment strategy ID.
Id *string `type:"string"`
// The name of the deployment strategy.
Name *string `min:"1" type:"string"`
// Save the deployment strategy to a Systems Manager (SSM) document.
ReplicateTo *string `type:"string" enum:"ReplicateTo"`
}
// String returns the string representation
func (s DeploymentStrategy) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s DeploymentStrategy) GoString() string {
return s.String()
}
// SetDeploymentDurationInMinutes sets the DeploymentDurationInMinutes field's value.
func (s *DeploymentStrategy) SetDeploymentDurationInMinutes(v int64) *DeploymentStrategy {
s.DeploymentDurationInMinutes = &v
return s
}
// SetDescription sets the Description field's value.
func (s *DeploymentStrategy) SetDescription(v string) *DeploymentStrategy {
s.Description = &v
return s
}
// SetFinalBakeTimeInMinutes sets the FinalBakeTimeInMinutes field's value.
func (s *DeploymentStrategy) SetFinalBakeTimeInMinutes(v int64) *DeploymentStrategy {
s.FinalBakeTimeInMinutes = &v
return s
}
// SetGrowthFactor sets the GrowthFactor field's value.
func (s *DeploymentStrategy) SetGrowthFactor(v float64) *DeploymentStrategy {
s.GrowthFactor = &v
return s
}
// SetGrowthType sets the GrowthType field's value.
func (s *DeploymentStrategy) SetGrowthType(v string) *DeploymentStrategy {
s.GrowthType = &v
return s
}
// SetId sets the Id field's value.
func (s *DeploymentStrategy) SetId(v string) *DeploymentStrategy {
s.Id = &v
return s
}
// SetName sets the Name field's value.
func (s *DeploymentStrategy) SetName(v string) *DeploymentStrategy {
s.Name = &v
return s
}
// SetReplicateTo sets the ReplicateTo field's value.
func (s *DeploymentStrategy) SetReplicateTo(v string) *DeploymentStrategy {
s.ReplicateTo = &v
return s
}
// Information about the deployment.
type DeploymentSummary struct {
_ struct{} `type:"structure"`
// Time the deployment completed.
CompletedAt *time.Time `type:"timestamp" timestampFormat:"iso8601"`
// The name of the configuration.
ConfigurationName *string `min:"1" type:"string"`
// The version of the configuration.
ConfigurationVersion *string `min:"1" type:"string"`
// Total amount of time the deployment lasted.
DeploymentDurationInMinutes *int64 `type:"integer"`
// The sequence number of the deployment.
DeploymentNumber *int64 `type:"integer"`
// The amount of time AppConfig monitors for alarms before considering the deployment
// to be complete and no longer eligible for automatic roll back.
FinalBakeTimeInMinutes *int64 `type:"integer"`
// The percentage of targets to receive a deployed configuration during each
// interval.
GrowthFactor *float64 `min:"1" type:"float"`
// The algorithm used to define how percentage grows over time.
GrowthType *string `type:"string" enum:"GrowthType"`
// The percentage of targets for which the deployment is available.
PercentageComplete *float64 `min:"1" type:"float"`
// Time the deployment started.
StartedAt *time.Time `type:"timestamp" timestampFormat:"iso8601"`
// The state of the deployment.
State *string `type:"string" enum:"DeploymentState"`
}
// String returns the string representation
func (s DeploymentSummary) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s DeploymentSummary) GoString() string {
return s.String()
}
// SetCompletedAt sets the CompletedAt field's value.
func (s *DeploymentSummary) SetCompletedAt(v time.Time) *DeploymentSummary {
s.CompletedAt = &v
return s
}
// SetConfigurationName sets the ConfigurationName field's value.
func (s *DeploymentSummary) SetConfigurationName(v string) *DeploymentSummary {
s.ConfigurationName = &v
return s
}
// SetConfigurationVersion sets the ConfigurationVersion field's value.
func (s *DeploymentSummary) SetConfigurationVersion(v string) *DeploymentSummary {
s.ConfigurationVersion = &v
return s
}
// SetDeploymentDurationInMinutes sets the DeploymentDurationInMinutes field's value.
func (s *DeploymentSummary) SetDeploymentDurationInMinutes(v int64) *DeploymentSummary {
s.DeploymentDurationInMinutes = &v
return s
}
// SetDeploymentNumber sets the DeploymentNumber field's value.
func (s *DeploymentSummary) SetDeploymentNumber(v int64) *DeploymentSummary {
s.DeploymentNumber = &v
return s
}
// SetFinalBakeTimeInMinutes sets the FinalBakeTimeInMinutes field's value.
func (s *DeploymentSummary) SetFinalBakeTimeInMinutes(v int64) *DeploymentSummary {
s.FinalBakeTimeInMinutes = &v
return s
}
// SetGrowthFactor sets the GrowthFactor field's value.
func (s *DeploymentSummary) SetGrowthFactor(v float64) *DeploymentSummary {
s.GrowthFactor = &v
return s
}
// SetGrowthType sets the GrowthType field's value.
func (s *DeploymentSummary) SetGrowthType(v string) *DeploymentSummary {
s.GrowthType = &v
return s
}
// SetPercentageComplete sets the PercentageComplete field's value.
func (s *DeploymentSummary) SetPercentageComplete(v float64) *DeploymentSummary {
s.PercentageComplete = &v
return s
}
// SetStartedAt sets the StartedAt field's value.
func (s *DeploymentSummary) SetStartedAt(v time.Time) *DeploymentSummary {
s.StartedAt = &v
return s
}
// SetState sets the State field's value.
func (s *DeploymentSummary) SetState(v string) *DeploymentSummary {
s.State = &v
return s
}
type Environment struct {
_ struct{} `type:"structure"`
// The application ID.
ApplicationId *string `type:"string"`
// The description of the environment.
Description *string `type:"string"`
// The environment ID.
Id *string `type:"string"`
// Amazon CloudWatch alarms monitored during the deployment.
Monitors []*Monitor `type:"list"`
// The name of the environment.
Name *string `min:"1" type:"string"`
// The state of the environment. An environment can be in one of the following
// states: READY_FOR_DEPLOYMENT, DEPLOYING, ROLLING_BACK, or ROLLED_BACK
State *string `type:"string" enum:"EnvironmentState"`
}
// String returns the string representation
func (s Environment) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s Environment) GoString() string {
return s.String()
}
// SetApplicationId sets the ApplicationId field's value.
func (s *Environment) SetApplicationId(v string) *Environment {
s.ApplicationId = &v
return s
}
// SetDescription sets the Description field's value.
func (s *Environment) SetDescription(v string) *Environment {
s.Description = &v
return s
}
// SetId sets the Id field's value.
func (s *Environment) SetId(v string) *Environment {
s.Id = &v
return s
}
// SetMonitors sets the Monitors field's value.
func (s *Environment) SetMonitors(v []*Monitor) *Environment {
s.Monitors = v
return s
}
// SetName sets the Name field's value.
func (s *Environment) SetName(v string) *Environment {
s.Name = &v
return s
}
// SetState sets the State field's value.
func (s *Environment) SetState(v string) *Environment {
s.State = &v
return s
}
type GetApplicationInput struct {
_ struct{} `type:"structure"`
// The ID of the application you want to get.
//
// ApplicationId is a required field
ApplicationId *string `location:"uri" locationName:"ApplicationId" type:"string" required:"true"`
}
// String returns the string representation
func (s GetApplicationInput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s GetApplicationInput) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
func (s *GetApplicationInput) Validate() error {
invalidParams := request.ErrInvalidParams{Context: "GetApplicationInput"}
if s.ApplicationId == nil {
invalidParams.Add(request.NewErrParamRequired("ApplicationId"))
}
if s.ApplicationId != nil && len(*s.ApplicationId) < 1 {
invalidParams.Add(request.NewErrParamMinLen("ApplicationId", 1))
}
if invalidParams.Len() > 0 {
return invalidParams
}
return nil
}
// SetApplicationId sets the ApplicationId field's value.
func (s *GetApplicationInput) SetApplicationId(v string) *GetApplicationInput {
s.ApplicationId = &v
return s
}
type GetApplicationOutput struct {
_ struct{} `type:"structure"`
// The description of the application.
Description *string `type:"string"`
// The application ID.
Id *string `type:"string"`
// The application name.
Name *string `min:"1" type:"string"`
}
// String returns the string representation
func (s GetApplicationOutput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s GetApplicationOutput) GoString() string {
return s.String()
}
// SetDescription sets the Description field's value.
func (s *GetApplicationOutput) SetDescription(v string) *GetApplicationOutput {
s.Description = &v
return s
}
// SetId sets the Id field's value.
func (s *GetApplicationOutput) SetId(v string) *GetApplicationOutput {
s.Id = &v
return s
}
// SetName sets the Name field's value.
func (s *GetApplicationOutput) SetName(v string) *GetApplicationOutput {
s.Name = &v
return s
}
type GetConfigurationInput struct {
_ struct{} `type:"structure"`
// The application to get. Specify either the application name or the application
// ID.
//
// Application is a required field
Application *string `location:"uri" locationName:"Application" min:"1" type:"string" required:"true"`
// The configuration version returned in the most recent GetConfiguration response.
//
// AWS AppConfig uses the value of the ClientConfigurationVersion parameter
// to identify the configuration version on your clients. If you don’t send
// ClientConfigurationVersion with each call to GetConfiguration, your clients
// receive the current configuration. You are charged each time your clients
// receive a configuration.
//
// To avoid excess charges, we recommend that you include the ClientConfigurationVersion
// value with every call to GetConfiguration. This value must be saved on your
// client. Subsequent calls to GetConfiguration must pass this value by using
// the ClientConfigurationVersion parameter.
//
// For more information about working with configurations, see Retrieving the
// Configuration (https://docs.aws.amazon.com/systems-manager/latest/userguide/appconfig-retrieving-the-configuration.html)
// in the AWS AppConfig User Guide.
ClientConfigurationVersion *string `location:"querystring" locationName:"client_configuration_version" min:"1" type:"string"`
// A unique ID to identify the client for the configuration. This ID enables
// AppConfig to deploy the configuration in intervals, as defined in the deployment
// strategy.
//
// ClientId is a required field
ClientId *string `location:"querystring" locationName:"client_id" min:"1" type:"string" required:"true"`
// The configuration to get. Specify either the configuration name or the configuration
// ID.
//
// Configuration is a required field
Configuration *string `location:"uri" locationName:"Configuration" min:"1" type:"string" required:"true"`
// The environment to get. Specify either the environment name or the environment
// ID.
//
// Environment is a required field
Environment *string `location:"uri" locationName:"Environment" min:"1" type:"string" required:"true"`
}
// String returns the string representation
func (s GetConfigurationInput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s GetConfigurationInput) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
func (s *GetConfigurationInput) Validate() error {
invalidParams := request.ErrInvalidParams{Context: "GetConfigurationInput"}
if s.Application == nil {
invalidParams.Add(request.NewErrParamRequired("Application"))
}
if s.Application != nil && len(*s.Application) < 1 {
invalidParams.Add(request.NewErrParamMinLen("Application", 1))
}
if s.ClientConfigurationVersion != nil && len(*s.ClientConfigurationVersion) < 1 {
invalidParams.Add(request.NewErrParamMinLen("ClientConfigurationVersion", 1))
}
if s.ClientId == nil {
invalidParams.Add(request.NewErrParamRequired("ClientId"))
}
if s.ClientId != nil && len(*s.ClientId) < 1 {
invalidParams.Add(request.NewErrParamMinLen("ClientId", 1))
}
if s.Configuration == nil {
invalidParams.Add(request.NewErrParamRequired("Configuration"))
}
if s.Configuration != nil && len(*s.Configuration) < 1 {
invalidParams.Add(request.NewErrParamMinLen("Configuration", 1))
}
if s.Environment == nil {
invalidParams.Add(request.NewErrParamRequired("Environment"))
}
if s.Environment != nil && len(*s.Environment) < 1 {
invalidParams.Add(request.NewErrParamMinLen("Environment", 1))
}
if invalidParams.Len() > 0 {
return invalidParams
}
return nil
}
// SetApplication sets the Application field's value.
func (s *GetConfigurationInput) SetApplication(v string) *GetConfigurationInput {
s.Application = &v
return s
}
// SetClientConfigurationVersion sets the ClientConfigurationVersion field's value.
func (s *GetConfigurationInput) SetClientConfigurationVersion(v string) *GetConfigurationInput {
s.ClientConfigurationVersion = &v
return s
}
// SetClientId sets the ClientId field's value.
func (s *GetConfigurationInput) SetClientId(v string) *GetConfigurationInput {
s.ClientId = &v
return s
}
// SetConfiguration sets the Configuration field's value.
func (s *GetConfigurationInput) SetConfiguration(v string) *GetConfigurationInput {
s.Configuration = &v
return s
}
// SetEnvironment sets the Environment field's value.
func (s *GetConfigurationInput) SetEnvironment(v string) *GetConfigurationInput {
s.Environment = &v
return s
}
type GetConfigurationOutput struct {
_ struct{} `type:"structure" payload:"Content"`
// The configuration version.
ConfigurationVersion *string `location:"header" locationName:"Configuration-Version" min:"1" type:"string"`
// The content of the configuration or the configuration data.
Content []byte `type:"blob" sensitive:"true"`
// A standard MIME type describing the format of the configuration content.
// For more information, see Content-Type (http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.17).
ContentType *string `location:"header" locationName:"Content-Type" type:"string"`
}
// String returns the string representation
func (s GetConfigurationOutput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s GetConfigurationOutput) GoString() string {
return s.String()
}
// SetConfigurationVersion sets the ConfigurationVersion field's value.
func (s *GetConfigurationOutput) SetConfigurationVersion(v string) *GetConfigurationOutput {
s.ConfigurationVersion = &v
return s
}
// SetContent sets the Content field's value.
func (s *GetConfigurationOutput) SetContent(v []byte) *GetConfigurationOutput {
s.Content = v
return s
}
// SetContentType sets the ContentType field's value.
func (s *GetConfigurationOutput) SetContentType(v string) *GetConfigurationOutput {
s.ContentType = &v
return s
}
type GetConfigurationProfileInput struct {
_ struct{} `type:"structure"`
// The ID of the application that includes the configuration profile you want
// to get.
//
// ApplicationId is a required field
ApplicationId *string `location:"uri" locationName:"ApplicationId" type:"string" required:"true"`
// The ID of the configuration profile you want to get.
//
// ConfigurationProfileId is a required field
ConfigurationProfileId *string `location:"uri" locationName:"ConfigurationProfileId" type:"string" required:"true"`
}
// String returns the string representation
func (s GetConfigurationProfileInput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s GetConfigurationProfileInput) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
func (s *GetConfigurationProfileInput) Validate() error {
invalidParams := request.ErrInvalidParams{Context: "GetConfigurationProfileInput"}
if s.ApplicationId == nil {
invalidParams.Add(request.NewErrParamRequired("ApplicationId"))
}
if s.ApplicationId != nil && len(*s.ApplicationId) < 1 {
invalidParams.Add(request.NewErrParamMinLen("ApplicationId", 1))
}
if s.ConfigurationProfileId == nil {
invalidParams.Add(request.NewErrParamRequired("ConfigurationProfileId"))
}
if s.ConfigurationProfileId != nil && len(*s.ConfigurationProfileId) < 1 {
invalidParams.Add(request.NewErrParamMinLen("ConfigurationProfileId", 1))
}
if invalidParams.Len() > 0 {
return invalidParams
}
return nil
}
// SetApplicationId sets the ApplicationId field's value.
func (s *GetConfigurationProfileInput) SetApplicationId(v string) *GetConfigurationProfileInput {
s.ApplicationId = &v
return s
}
// SetConfigurationProfileId sets the ConfigurationProfileId field's value.
func (s *GetConfigurationProfileInput) SetConfigurationProfileId(v string) *GetConfigurationProfileInput {
s.ConfigurationProfileId = &v
return s
}
type GetConfigurationProfileOutput struct {
_ struct{} `type:"structure"`
// The application ID.
ApplicationId *string `type:"string"`
// The configuration profile description.
Description *string `type:"string"`
// The configuration profile ID.
Id *string `type:"string"`
// The URI location of the configuration.
LocationUri *string `min:"1" type:"string"`
// The name of the configuration profile.
Name *string `min:"1" type:"string"`
// The ARN of an IAM role with permission to access the configuration at the
// specified LocationUri.
RetrievalRoleArn *string `min:"20" type:"string"`
// A list of methods for validating the configuration.
Validators []*Validator `type:"list"`
}
// String returns the string representation
func (s GetConfigurationProfileOutput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s GetConfigurationProfileOutput) GoString() string {
return s.String()
}
// SetApplicationId sets the ApplicationId field's value.
func (s *GetConfigurationProfileOutput) SetApplicationId(v string) *GetConfigurationProfileOutput {
s.ApplicationId = &v
return s
}
// SetDescription sets the Description field's value.
func (s *GetConfigurationProfileOutput) SetDescription(v string) *GetConfigurationProfileOutput {
s.Description = &v
return s
}
// SetId sets the Id field's value.
func (s *GetConfigurationProfileOutput) SetId(v string) *GetConfigurationProfileOutput {
s.Id = &v
return s
}
// SetLocationUri sets the LocationUri field's value.
func (s *GetConfigurationProfileOutput) SetLocationUri(v string) *GetConfigurationProfileOutput {
s.LocationUri = &v
return s
}
// SetName sets the Name field's value.
func (s *GetConfigurationProfileOutput) SetName(v string) *GetConfigurationProfileOutput {
s.Name = &v
return s
}
// SetRetrievalRoleArn sets the RetrievalRoleArn field's value.
func (s *GetConfigurationProfileOutput) SetRetrievalRoleArn(v string) *GetConfigurationProfileOutput {
s.RetrievalRoleArn = &v
return s
}
// SetValidators sets the Validators field's value.
func (s *GetConfigurationProfileOutput) SetValidators(v []*Validator) *GetConfigurationProfileOutput {
s.Validators = v
return s
}
type GetDeploymentInput struct {
_ struct{} `type:"structure"`
// The ID of the application that includes the deployment you want to get.
//
// ApplicationId is a required field
ApplicationId *string `location:"uri" locationName:"ApplicationId" type:"string" required:"true"`
// The sequence number of the deployment.
//
// DeploymentNumber is a required field
DeploymentNumber *int64 `location:"uri" locationName:"DeploymentNumber" type:"integer" required:"true"`
// The ID of the environment that includes the deployment you want to get.
//
// EnvironmentId is a required field
EnvironmentId *string `location:"uri" locationName:"EnvironmentId" type:"string" required:"true"`
}
// String returns the string representation
func (s GetDeploymentInput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s GetDeploymentInput) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
func (s *GetDeploymentInput) Validate() error {
invalidParams := request.ErrInvalidParams{Context: "GetDeploymentInput"}
if s.ApplicationId == nil {
invalidParams.Add(request.NewErrParamRequired("ApplicationId"))
}
if s.ApplicationId != nil && len(*s.ApplicationId) < 1 {
invalidParams.Add(request.NewErrParamMinLen("ApplicationId", 1))
}
if s.DeploymentNumber == nil {
invalidParams.Add(request.NewErrParamRequired("DeploymentNumber"))
}
if s.EnvironmentId == nil {
invalidParams.Add(request.NewErrParamRequired("EnvironmentId"))
}
if s.EnvironmentId != nil && len(*s.EnvironmentId) < 1 {
invalidParams.Add(request.NewErrParamMinLen("EnvironmentId", 1))
}
if invalidParams.Len() > 0 {
return invalidParams
}
return nil
}
// SetApplicationId sets the ApplicationId field's value.
func (s *GetDeploymentInput) SetApplicationId(v string) *GetDeploymentInput {
s.ApplicationId = &v
return s
}
// SetDeploymentNumber sets the DeploymentNumber field's value.
func (s *GetDeploymentInput) SetDeploymentNumber(v int64) *GetDeploymentInput {
s.DeploymentNumber = &v
return s
}
// SetEnvironmentId sets the EnvironmentId field's value.
func (s *GetDeploymentInput) SetEnvironmentId(v string) *GetDeploymentInput {
s.EnvironmentId = &v
return s
}
type GetDeploymentOutput struct {
_ struct{} `type:"structure"`
// The ID of the application that was deployed.
ApplicationId *string `type:"string"`
// The time the deployment completed.
CompletedAt *time.Time `type:"timestamp" timestampFormat:"iso8601"`
// Information about the source location of the configuration.
ConfigurationLocationUri *string `min:"1" type:"string"`
// The name of the configuration.
ConfigurationName *string `min:"1" type:"string"`
// The ID of the configuration profile that was deployed.
ConfigurationProfileId *string `type:"string"`
// The configuration version that was deployed.
ConfigurationVersion *string `min:"1" type:"string"`
// Total amount of time the deployment lasted.
DeploymentDurationInMinutes *int64 `type:"integer"`
// The sequence number of the deployment.
DeploymentNumber *int64 `type:"integer"`
// The ID of the deployment strategy that was deployed.
DeploymentStrategyId *string `type:"string"`
// The description of the deployment.
Description *string `type:"string"`
// The ID of the environment that was deployed.
EnvironmentId *string `type:"string"`
// A list containing all events related to a deployment. The most recent events
// are displayed first.
EventLog []*DeploymentEvent `type:"list"`
// The amount of time AppConfig monitored for alarms before considering the
// deployment to be complete and no longer eligible for automatic roll back.
FinalBakeTimeInMinutes *int64 `type:"integer"`
// The percentage of targets to receive a deployed configuration during each
// interval.
GrowthFactor *float64 `min:"1" type:"float"`
// The algorithm used to define how percentage grew over time.
GrowthType *string `type:"string" enum:"GrowthType"`
// The percentage of targets for which the deployment is available.
PercentageComplete *float64 `min:"1" type:"float"`
// The time the deployment started.
StartedAt *time.Time `type:"timestamp" timestampFormat:"iso8601"`
// The state of the deployment.
State *string `type:"string" enum:"DeploymentState"`
}
// String returns the string representation
func (s GetDeploymentOutput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s GetDeploymentOutput) GoString() string {
return s.String()
}
// SetApplicationId sets the ApplicationId field's value.
func (s *GetDeploymentOutput) SetApplicationId(v string) *GetDeploymentOutput {
s.ApplicationId = &v
return s
}
// SetCompletedAt sets the CompletedAt field's value.
func (s *GetDeploymentOutput) SetCompletedAt(v time.Time) *GetDeploymentOutput {
s.CompletedAt = &v
return s
}
// SetConfigurationLocationUri sets the ConfigurationLocationUri field's value.
func (s *GetDeploymentOutput) SetConfigurationLocationUri(v string) *GetDeploymentOutput {
s.ConfigurationLocationUri = &v
return s
}
// SetConfigurationName sets the ConfigurationName field's value.
func (s *GetDeploymentOutput) SetConfigurationName(v string) *GetDeploymentOutput {
s.ConfigurationName = &v
return s
}
// SetConfigurationProfileId sets the ConfigurationProfileId field's value.
func (s *GetDeploymentOutput) SetConfigurationProfileId(v string) *GetDeploymentOutput {
s.ConfigurationProfileId = &v
return s
}
// SetConfigurationVersion sets the ConfigurationVersion field's value.
func (s *GetDeploymentOutput) SetConfigurationVersion(v string) *GetDeploymentOutput {
s.ConfigurationVersion = &v
return s
}
// SetDeploymentDurationInMinutes sets the DeploymentDurationInMinutes field's value.
func (s *GetDeploymentOutput) SetDeploymentDurationInMinutes(v int64) *GetDeploymentOutput {
s.DeploymentDurationInMinutes = &v
return s
}
// SetDeploymentNumber sets the DeploymentNumber field's value.
func (s *GetDeploymentOutput) SetDeploymentNumber(v int64) *GetDeploymentOutput {
s.DeploymentNumber = &v
return s
}
// SetDeploymentStrategyId sets the DeploymentStrategyId field's value.
func (s *GetDeploymentOutput) SetDeploymentStrategyId(v string) *GetDeploymentOutput {
s.DeploymentStrategyId = &v
return s
}
// SetDescription sets the Description field's value.
func (s *GetDeploymentOutput) SetDescription(v string) *GetDeploymentOutput {
s.Description = &v
return s
}
// SetEnvironmentId sets the EnvironmentId field's value.
func (s *GetDeploymentOutput) SetEnvironmentId(v string) *GetDeploymentOutput {
s.EnvironmentId = &v
return s
}
// SetEventLog sets the EventLog field's value.
func (s *GetDeploymentOutput) SetEventLog(v []*DeploymentEvent) *GetDeploymentOutput {
s.EventLog = v
return s
}
// SetFinalBakeTimeInMinutes sets the FinalBakeTimeInMinutes field's value.
func (s *GetDeploymentOutput) SetFinalBakeTimeInMinutes(v int64) *GetDeploymentOutput {
s.FinalBakeTimeInMinutes = &v
return s
}
// SetGrowthFactor sets the GrowthFactor field's value.
func (s *GetDeploymentOutput) SetGrowthFactor(v float64) *GetDeploymentOutput {
s.GrowthFactor = &v
return s
}
// SetGrowthType sets the GrowthType field's value.
func (s *GetDeploymentOutput) SetGrowthType(v string) *GetDeploymentOutput {
s.GrowthType = &v
return s
}
// SetPercentageComplete sets the PercentageComplete field's value.
func (s *GetDeploymentOutput) SetPercentageComplete(v float64) *GetDeploymentOutput {
s.PercentageComplete = &v
return s
}
// SetStartedAt sets the StartedAt field's value.
func (s *GetDeploymentOutput) SetStartedAt(v time.Time) *GetDeploymentOutput {
s.StartedAt = &v
return s
}
// SetState sets the State field's value.
func (s *GetDeploymentOutput) SetState(v string) *GetDeploymentOutput {
s.State = &v
return s
}
type GetDeploymentStrategyInput struct {
_ struct{} `type:"structure"`
// The ID of the deployment strategy to get.
//
// DeploymentStrategyId is a required field
DeploymentStrategyId *string `location:"uri" locationName:"DeploymentStrategyId" type:"string" required:"true"`
}
// String returns the string representation
func (s GetDeploymentStrategyInput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s GetDeploymentStrategyInput) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
func (s *GetDeploymentStrategyInput) Validate() error {
invalidParams := request.ErrInvalidParams{Context: "GetDeploymentStrategyInput"}
if s.DeploymentStrategyId == nil {
invalidParams.Add(request.NewErrParamRequired("DeploymentStrategyId"))
}
if s.DeploymentStrategyId != nil && len(*s.DeploymentStrategyId) < 1 {
invalidParams.Add(request.NewErrParamMinLen("DeploymentStrategyId", 1))
}
if invalidParams.Len() > 0 {
return invalidParams
}
return nil
}
// SetDeploymentStrategyId sets the DeploymentStrategyId field's value.
func (s *GetDeploymentStrategyInput) SetDeploymentStrategyId(v string) *GetDeploymentStrategyInput {
s.DeploymentStrategyId = &v
return s
}
type GetDeploymentStrategyOutput struct {
_ struct{} `type:"structure"`
// Total amount of time the deployment lasted.
DeploymentDurationInMinutes *int64 `type:"integer"`
// The description of the deployment strategy.
Description *string `type:"string"`
// The amount of time AppConfig monitored for alarms before considering the
// deployment to be complete and no longer eligible for automatic roll back.
FinalBakeTimeInMinutes *int64 `type:"integer"`
// The percentage of targets that received a deployed configuration during each
// interval.
GrowthFactor *float64 `min:"1" type:"float"`
// The algorithm used to define how percentage grew over time.
GrowthType *string `type:"string" enum:"GrowthType"`
// The deployment strategy ID.
Id *string `type:"string"`
// The name of the deployment strategy.
Name *string `min:"1" type:"string"`
// Save the deployment strategy to a Systems Manager (SSM) document.
ReplicateTo *string `type:"string" enum:"ReplicateTo"`
}
// String returns the string representation
func (s GetDeploymentStrategyOutput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s GetDeploymentStrategyOutput) GoString() string {
return s.String()
}
// SetDeploymentDurationInMinutes sets the DeploymentDurationInMinutes field's value.
func (s *GetDeploymentStrategyOutput) SetDeploymentDurationInMinutes(v int64) *GetDeploymentStrategyOutput {
s.DeploymentDurationInMinutes = &v
return s
}
// SetDescription sets the Description field's value.
func (s *GetDeploymentStrategyOutput) SetDescription(v string) *GetDeploymentStrategyOutput {
s.Description = &v
return s
}
// SetFinalBakeTimeInMinutes sets the FinalBakeTimeInMinutes field's value.
func (s *GetDeploymentStrategyOutput) SetFinalBakeTimeInMinutes(v int64) *GetDeploymentStrategyOutput {
s.FinalBakeTimeInMinutes = &v
return s
}
// SetGrowthFactor sets the GrowthFactor field's value.
func (s *GetDeploymentStrategyOutput) SetGrowthFactor(v float64) *GetDeploymentStrategyOutput {
s.GrowthFactor = &v
return s
}
// SetGrowthType sets the GrowthType field's value.
func (s *GetDeploymentStrategyOutput) SetGrowthType(v string) *GetDeploymentStrategyOutput {
s.GrowthType = &v
return s
}
// SetId sets the Id field's value.
func (s *GetDeploymentStrategyOutput) SetId(v string) *GetDeploymentStrategyOutput {
s.Id = &v
return s
}
// SetName sets the Name field's value.
func (s *GetDeploymentStrategyOutput) SetName(v string) *GetDeploymentStrategyOutput {
s.Name = &v
return s
}
// SetReplicateTo sets the ReplicateTo field's value.
func (s *GetDeploymentStrategyOutput) SetReplicateTo(v string) *GetDeploymentStrategyOutput {
s.ReplicateTo = &v
return s
}
type GetEnvironmentInput struct {
_ struct{} `type:"structure"`
// The ID of the application that includes the environment you want to get.
//
// ApplicationId is a required field
ApplicationId *string `location:"uri" locationName:"ApplicationId" type:"string" required:"true"`
// The ID of the environment you wnat to get.
//
// EnvironmentId is a required field
EnvironmentId *string `location:"uri" locationName:"EnvironmentId" type:"string" required:"true"`
}
// String returns the string representation
func (s GetEnvironmentInput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s GetEnvironmentInput) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
func (s *GetEnvironmentInput) Validate() error {
invalidParams := request.ErrInvalidParams{Context: "GetEnvironmentInput"}
if s.ApplicationId == nil {
invalidParams.Add(request.NewErrParamRequired("ApplicationId"))
}
if s.ApplicationId != nil && len(*s.ApplicationId) < 1 {
invalidParams.Add(request.NewErrParamMinLen("ApplicationId", 1))
}
if s.EnvironmentId == nil {
invalidParams.Add(request.NewErrParamRequired("EnvironmentId"))
}
if s.EnvironmentId != nil && len(*s.EnvironmentId) < 1 {
invalidParams.Add(request.NewErrParamMinLen("EnvironmentId", 1))
}
if invalidParams.Len() > 0 {
return invalidParams
}
return nil
}
// SetApplicationId sets the ApplicationId field's value.
func (s *GetEnvironmentInput) SetApplicationId(v string) *GetEnvironmentInput {
s.ApplicationId = &v
return s
}
// SetEnvironmentId sets the EnvironmentId field's value.
func (s *GetEnvironmentInput) SetEnvironmentId(v string) *GetEnvironmentInput {
s.EnvironmentId = &v
return s
}
type GetEnvironmentOutput struct {
_ struct{} `type:"structure"`
// The application ID.
ApplicationId *string `type:"string"`
// The description of the environment.
Description *string `type:"string"`
// The environment ID.
Id *string `type:"string"`
// Amazon CloudWatch alarms monitored during the deployment.
Monitors []*Monitor `type:"list"`
// The name of the environment.
Name *string `min:"1" type:"string"`
// The state of the environment. An environment can be in one of the following
// states: READY_FOR_DEPLOYMENT, DEPLOYING, ROLLING_BACK, or ROLLED_BACK
State *string `type:"string" enum:"EnvironmentState"`
}
// String returns the string representation
func (s GetEnvironmentOutput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s GetEnvironmentOutput) GoString() string {
return s.String()
}
// SetApplicationId sets the ApplicationId field's value.
func (s *GetEnvironmentOutput) SetApplicationId(v string) *GetEnvironmentOutput {
s.ApplicationId = &v
return s
}
// SetDescription sets the Description field's value.
func (s *GetEnvironmentOutput) SetDescription(v string) *GetEnvironmentOutput {
s.Description = &v
return s
}
// SetId sets the Id field's value.
func (s *GetEnvironmentOutput) SetId(v string) *GetEnvironmentOutput {
s.Id = &v
return s
}
// SetMonitors sets the Monitors field's value.
func (s *GetEnvironmentOutput) SetMonitors(v []*Monitor) *GetEnvironmentOutput {
s.Monitors = v
return s
}
// SetName sets the Name field's value.
func (s *GetEnvironmentOutput) SetName(v string) *GetEnvironmentOutput {
s.Name = &v
return s
}
// SetState sets the State field's value.
func (s *GetEnvironmentOutput) SetState(v string) *GetEnvironmentOutput {
s.State = &v
return s
}
type GetHostedConfigurationVersionInput struct {
_ struct{} `type:"structure"`
// The application ID.
//
// ApplicationId is a required field
ApplicationId *string `location:"uri" locationName:"ApplicationId" type:"string" required:"true"`
// The configuration profile ID.
//
// ConfigurationProfileId is a required field
ConfigurationProfileId *string `location:"uri" locationName:"ConfigurationProfileId" type:"string" required:"true"`
// The version.
//
// VersionNumber is a required field
VersionNumber *int64 `location:"uri" locationName:"VersionNumber" type:"integer" required:"true"`
}
// String returns the string representation
func (s GetHostedConfigurationVersionInput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s GetHostedConfigurationVersionInput) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
func (s *GetHostedConfigurationVersionInput) Validate() error {
invalidParams := request.ErrInvalidParams{Context: "GetHostedConfigurationVersionInput"}
if s.ApplicationId == nil {
invalidParams.Add(request.NewErrParamRequired("ApplicationId"))
}
if s.ApplicationId != nil && len(*s.ApplicationId) < 1 {
invalidParams.Add(request.NewErrParamMinLen("ApplicationId", 1))
}
if s.ConfigurationProfileId == nil {
invalidParams.Add(request.NewErrParamRequired("ConfigurationProfileId"))
}
if s.ConfigurationProfileId != nil && len(*s.ConfigurationProfileId) < 1 {
invalidParams.Add(request.NewErrParamMinLen("ConfigurationProfileId", 1))
}
if s.VersionNumber == nil {
invalidParams.Add(request.NewErrParamRequired("VersionNumber"))
}
if invalidParams.Len() > 0 {
return invalidParams
}
return nil
}
// SetApplicationId sets the ApplicationId field's value.
func (s *GetHostedConfigurationVersionInput) SetApplicationId(v string) *GetHostedConfigurationVersionInput {
s.ApplicationId = &v
return s
}
// SetConfigurationProfileId sets the ConfigurationProfileId field's value.
func (s *GetHostedConfigurationVersionInput) SetConfigurationProfileId(v string) *GetHostedConfigurationVersionInput {
s.ConfigurationProfileId = &v
return s
}
// SetVersionNumber sets the VersionNumber field's value.
func (s *GetHostedConfigurationVersionInput) SetVersionNumber(v int64) *GetHostedConfigurationVersionInput {
s.VersionNumber = &v
return s
}
type GetHostedConfigurationVersionOutput struct {
_ struct{} `type:"structure" payload:"Content"`
// The application ID.
ApplicationId *string `location:"header" locationName:"Application-Id" type:"string"`
// The configuration profile ID.
ConfigurationProfileId *string `location:"header" locationName:"Configuration-Profile-Id" type:"string"`
// The content of the configuration or the configuration data.
Content []byte `type:"blob" sensitive:"true"`
// A standard MIME type describing the format of the configuration content.
// For more information, see Content-Type (https://docs.aws.amazon.com/https:/www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.17).
ContentType *string `location:"header" locationName:"Content-Type" min:"1" type:"string"`
// A description of the configuration.
Description *string `location:"header" locationName:"Description" type:"string"`
// The configuration version.
VersionNumber *int64 `location:"header" locationName:"Version-Number" type:"integer"`
}
// String returns the string representation
func (s GetHostedConfigurationVersionOutput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s GetHostedConfigurationVersionOutput) GoString() string {
return s.String()
}
// SetApplicationId sets the ApplicationId field's value.
func (s *GetHostedConfigurationVersionOutput) SetApplicationId(v string) *GetHostedConfigurationVersionOutput {
s.ApplicationId = &v
return s
}
// SetConfigurationProfileId sets the ConfigurationProfileId field's value.
func (s *GetHostedConfigurationVersionOutput) SetConfigurationProfileId(v string) *GetHostedConfigurationVersionOutput {
s.ConfigurationProfileId = &v
return s
}
// SetContent sets the Content field's value.
func (s *GetHostedConfigurationVersionOutput) SetContent(v []byte) *GetHostedConfigurationVersionOutput {
s.Content = v
return s
}
// SetContentType sets the ContentType field's value.
func (s *GetHostedConfigurationVersionOutput) SetContentType(v string) *GetHostedConfigurationVersionOutput {
s.ContentType = &v
return s
}
// SetDescription sets the Description field's value.
func (s *GetHostedConfigurationVersionOutput) SetDescription(v string) *GetHostedConfigurationVersionOutput {
s.Description = &v
return s
}
// SetVersionNumber sets the VersionNumber field's value.
func (s *GetHostedConfigurationVersionOutput) SetVersionNumber(v int64) *GetHostedConfigurationVersionOutput {
s.VersionNumber = &v
return s
}
// Information about the configuration.
type HostedConfigurationVersionSummary struct {
_ struct{} `type:"structure"`
// The application ID.
ApplicationId *string `type:"string"`
// The configuration profile ID.
ConfigurationProfileId *string `type:"string"`
// A standard MIME type describing the format of the configuration content.
// For more information, see Content-Type (https://docs.aws.amazon.com/https:/www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.17).
ContentType *string `min:"1" type:"string"`
// A description of the configuration.
Description *string `type:"string"`
// The configuration version.
VersionNumber *int64 `type:"integer"`
}
// String returns the string representation
func (s HostedConfigurationVersionSummary) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s HostedConfigurationVersionSummary) GoString() string {
return s.String()
}
// SetApplicationId sets the ApplicationId field's value.
func (s *HostedConfigurationVersionSummary) SetApplicationId(v string) *HostedConfigurationVersionSummary {
s.ApplicationId = &v
return s
}
// SetConfigurationProfileId sets the ConfigurationProfileId field's value.
func (s *HostedConfigurationVersionSummary) SetConfigurationProfileId(v string) *HostedConfigurationVersionSummary {
s.ConfigurationProfileId = &v
return s
}
// SetContentType sets the ContentType field's value.
func (s *HostedConfigurationVersionSummary) SetContentType(v string) *HostedConfigurationVersionSummary {
s.ContentType = &v
return s
}
// SetDescription sets the Description field's value.
func (s *HostedConfigurationVersionSummary) SetDescription(v string) *HostedConfigurationVersionSummary {
s.Description = &v
return s
}
// SetVersionNumber sets the VersionNumber field's value.
func (s *HostedConfigurationVersionSummary) SetVersionNumber(v int64) *HostedConfigurationVersionSummary {
s.VersionNumber = &v
return s
}
// There was an internal failure in the AppConfig service.
type InternalServerException struct {
_ struct{} `type:"structure"`
RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"Message" type:"string"`
}
// String returns the string representation
func (s InternalServerException) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s InternalServerException) GoString() string {
return s.String()
}
func newErrorInternalServerException(v protocol.ResponseMetadata) error {
return &InternalServerException{
RespMetadata: v,
}
}
// Code returns the exception type name.
func (s *InternalServerException) Code() string {
return "InternalServerException"
}
// Message returns the exception's message.
func (s *InternalServerException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
return ""
}
// OrigErr always returns nil, satisfies awserr.Error interface.
func (s *InternalServerException) OrigErr() error {
return nil
}
func (s *InternalServerException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
func (s *InternalServerException) StatusCode() int {
return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
func (s *InternalServerException) RequestID() string {
return s.RespMetadata.RequestID
}
type ListApplicationsInput struct {
_ struct{} `type:"structure"`
// The maximum number of items to return for this call. The call also returns
// a token that you can specify in a subsequent call to get the next set of
// results.
MaxResults *int64 `location:"querystring" locationName:"max_results" min:"1" type:"integer"`
// A token to start the list. Use this token to get the next set of results.
NextToken *string `location:"querystring" locationName:"next_token" min:"1" type:"string"`
}
// String returns the string representation
func (s ListApplicationsInput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s ListApplicationsInput) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
func (s *ListApplicationsInput) Validate() error {
invalidParams := request.ErrInvalidParams{Context: "ListApplicationsInput"}
if s.MaxResults != nil && *s.MaxResults < 1 {
invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1))
}
if s.NextToken != nil && len(*s.NextToken) < 1 {
invalidParams.Add(request.NewErrParamMinLen("NextToken", 1))
}
if invalidParams.Len() > 0 {
return invalidParams
}
return nil
}
// SetMaxResults sets the MaxResults field's value.
func (s *ListApplicationsInput) SetMaxResults(v int64) *ListApplicationsInput {
s.MaxResults = &v
return s
}
// SetNextToken sets the NextToken field's value.
func (s *ListApplicationsInput) SetNextToken(v string) *ListApplicationsInput {
s.NextToken = &v
return s
}
type ListApplicationsOutput struct {
_ struct{} `type:"structure"`
// The elements from this collection.
Items []*Application `type:"list"`
// The token for the next set of items to return. Use this token to get the
// next set of results.
NextToken *string `min:"1" type:"string"`
}
// String returns the string representation
func (s ListApplicationsOutput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s ListApplicationsOutput) GoString() string {
return s.String()
}
// SetItems sets the Items field's value.
func (s *ListApplicationsOutput) SetItems(v []*Application) *ListApplicationsOutput {
s.Items = v
return s
}
// SetNextToken sets the NextToken field's value.
func (s *ListApplicationsOutput) SetNextToken(v string) *ListApplicationsOutput {
s.NextToken = &v
return s
}
type ListConfigurationProfilesInput struct {
_ struct{} `type:"structure"`
// The application ID.
//
// ApplicationId is a required field
ApplicationId *string `location:"uri" locationName:"ApplicationId" type:"string" required:"true"`
// The maximum number of items to return for this call. The call also returns
// a token that you can specify in a subsequent call to get the next set of
// results.
MaxResults *int64 `location:"querystring" locationName:"max_results" min:"1" type:"integer"`
// A token to start the list. Use this token to get the next set of results.
NextToken *string `location:"querystring" locationName:"next_token" min:"1" type:"string"`
}
// String returns the string representation
func (s ListConfigurationProfilesInput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s ListConfigurationProfilesInput) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
func (s *ListConfigurationProfilesInput) Validate() error {
invalidParams := request.ErrInvalidParams{Context: "ListConfigurationProfilesInput"}
if s.ApplicationId == nil {
invalidParams.Add(request.NewErrParamRequired("ApplicationId"))
}
if s.ApplicationId != nil && len(*s.ApplicationId) < 1 {
invalidParams.Add(request.NewErrParamMinLen("ApplicationId", 1))
}
if s.MaxResults != nil && *s.MaxResults < 1 {
invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1))
}
if s.NextToken != nil && len(*s.NextToken) < 1 {
invalidParams.Add(request.NewErrParamMinLen("NextToken", 1))
}
if invalidParams.Len() > 0 {
return invalidParams
}
return nil
}
// SetApplicationId sets the ApplicationId field's value.
func (s *ListConfigurationProfilesInput) SetApplicationId(v string) *ListConfigurationProfilesInput {
s.ApplicationId = &v
return s
}
// SetMaxResults sets the MaxResults field's value.
func (s *ListConfigurationProfilesInput) SetMaxResults(v int64) *ListConfigurationProfilesInput {
s.MaxResults = &v
return s
}
// SetNextToken sets the NextToken field's value.
func (s *ListConfigurationProfilesInput) SetNextToken(v string) *ListConfigurationProfilesInput {
s.NextToken = &v
return s
}
type ListConfigurationProfilesOutput struct {
_ struct{} `type:"structure"`
// The elements from this collection.
Items []*ConfigurationProfileSummary `type:"list"`
// The token for the next set of items to return. Use this token to get the
// next set of results.
NextToken *string `min:"1" type:"string"`
}
// String returns the string representation
func (s ListConfigurationProfilesOutput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s ListConfigurationProfilesOutput) GoString() string {
return s.String()
}
// SetItems sets the Items field's value.
func (s *ListConfigurationProfilesOutput) SetItems(v []*ConfigurationProfileSummary) *ListConfigurationProfilesOutput {
s.Items = v
return s
}
// SetNextToken sets the NextToken field's value.
func (s *ListConfigurationProfilesOutput) SetNextToken(v string) *ListConfigurationProfilesOutput {
s.NextToken = &v
return s
}
type ListDeploymentStrategiesInput struct {
_ struct{} `type:"structure"`
// The maximum number of items to return for this call. The call also returns
// a token that you can specify in a subsequent call to get the next set of
// results.
MaxResults *int64 `location:"querystring" locationName:"max_results" min:"1" type:"integer"`
// A token to start the list. Use this token to get the next set of results.
NextToken *string `location:"querystring" locationName:"next_token" min:"1" type:"string"`
}
// String returns the string representation
func (s ListDeploymentStrategiesInput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s ListDeploymentStrategiesInput) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
func (s *ListDeploymentStrategiesInput) Validate() error {
invalidParams := request.ErrInvalidParams{Context: "ListDeploymentStrategiesInput"}
if s.MaxResults != nil && *s.MaxResults < 1 {
invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1))
}
if s.NextToken != nil && len(*s.NextToken) < 1 {
invalidParams.Add(request.NewErrParamMinLen("NextToken", 1))
}
if invalidParams.Len() > 0 {
return invalidParams
}
return nil
}
// SetMaxResults sets the MaxResults field's value.
func (s *ListDeploymentStrategiesInput) SetMaxResults(v int64) *ListDeploymentStrategiesInput {
s.MaxResults = &v
return s
}
// SetNextToken sets the NextToken field's value.
func (s *ListDeploymentStrategiesInput) SetNextToken(v string) *ListDeploymentStrategiesInput {
s.NextToken = &v
return s
}
type ListDeploymentStrategiesOutput struct {
_ struct{} `type:"structure"`
// The elements from this collection.
Items []*DeploymentStrategy `type:"list"`
// The token for the next set of items to return. Use this token to get the
// next set of results.
NextToken *string `min:"1" type:"string"`
}
// String returns the string representation
func (s ListDeploymentStrategiesOutput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s ListDeploymentStrategiesOutput) GoString() string {
return s.String()
}
// SetItems sets the Items field's value.
func (s *ListDeploymentStrategiesOutput) SetItems(v []*DeploymentStrategy) *ListDeploymentStrategiesOutput {
s.Items = v
return s
}
// SetNextToken sets the NextToken field's value.
func (s *ListDeploymentStrategiesOutput) SetNextToken(v string) *ListDeploymentStrategiesOutput {
s.NextToken = &v
return s
}
type ListDeploymentsInput struct {
_ struct{} `type:"structure"`
// The application ID.
//
// ApplicationId is a required field
ApplicationId *string `location:"uri" locationName:"ApplicationId" type:"string" required:"true"`
// The environment ID.
//
// EnvironmentId is a required field
EnvironmentId *string `location:"uri" locationName:"EnvironmentId" type:"string" required:"true"`
// The maximum number of items to return for this call. The call also returns
// a token that you can specify in a subsequent call to get the next set of
// results.
MaxResults *int64 `location:"querystring" locationName:"max_results" min:"1" type:"integer"`
// A token to start the list. Use this token to get the next set of results.
NextToken *string `location:"querystring" locationName:"next_token" min:"1" type:"string"`
}
// String returns the string representation
func (s ListDeploymentsInput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s ListDeploymentsInput) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
func (s *ListDeploymentsInput) Validate() error {
invalidParams := request.ErrInvalidParams{Context: "ListDeploymentsInput"}
if s.ApplicationId == nil {
invalidParams.Add(request.NewErrParamRequired("ApplicationId"))
}
if s.ApplicationId != nil && len(*s.ApplicationId) < 1 {
invalidParams.Add(request.NewErrParamMinLen("ApplicationId", 1))
}
if s.EnvironmentId == nil {
invalidParams.Add(request.NewErrParamRequired("EnvironmentId"))
}
if s.EnvironmentId != nil && len(*s.EnvironmentId) < 1 {
invalidParams.Add(request.NewErrParamMinLen("EnvironmentId", 1))
}
if s.MaxResults != nil && *s.MaxResults < 1 {
invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1))
}
if s.NextToken != nil && len(*s.NextToken) < 1 {
invalidParams.Add(request.NewErrParamMinLen("NextToken", 1))
}
if invalidParams.Len() > 0 {
return invalidParams
}
return nil
}
// SetApplicationId sets the ApplicationId field's value.
func (s *ListDeploymentsInput) SetApplicationId(v string) *ListDeploymentsInput {
s.ApplicationId = &v
return s
}
// SetEnvironmentId sets the EnvironmentId field's value.
func (s *ListDeploymentsInput) SetEnvironmentId(v string) *ListDeploymentsInput {
s.EnvironmentId = &v
return s
}
// SetMaxResults sets the MaxResults field's value.
func (s *ListDeploymentsInput) SetMaxResults(v int64) *ListDeploymentsInput {
s.MaxResults = &v
return s
}
// SetNextToken sets the NextToken field's value.
func (s *ListDeploymentsInput) SetNextToken(v string) *ListDeploymentsInput {
s.NextToken = &v
return s
}
type ListDeploymentsOutput struct {
_ struct{} `type:"structure"`
// The elements from this collection.
Items []*DeploymentSummary `type:"list"`
// The token for the next set of items to return. Use this token to get the
// next set of results.
NextToken *string `min:"1" type:"string"`
}
// String returns the string representation
func (s ListDeploymentsOutput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s ListDeploymentsOutput) GoString() string {
return s.String()
}
// SetItems sets the Items field's value.
func (s *ListDeploymentsOutput) SetItems(v []*DeploymentSummary) *ListDeploymentsOutput {
s.Items = v
return s
}
// SetNextToken sets the NextToken field's value.
func (s *ListDeploymentsOutput) SetNextToken(v string) *ListDeploymentsOutput {
s.NextToken = &v
return s
}
type ListEnvironmentsInput struct {
_ struct{} `type:"structure"`
// The application ID.
//
// ApplicationId is a required field
ApplicationId *string `location:"uri" locationName:"ApplicationId" type:"string" required:"true"`
// The maximum number of items to return for this call. The call also returns
// a token that you can specify in a subsequent call to get the next set of
// results.
MaxResults *int64 `location:"querystring" locationName:"max_results" min:"1" type:"integer"`
// A token to start the list. Use this token to get the next set of results.
NextToken *string `location:"querystring" locationName:"next_token" min:"1" type:"string"`
}
// String returns the string representation
func (s ListEnvironmentsInput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s ListEnvironmentsInput) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
func (s *ListEnvironmentsInput) Validate() error {
invalidParams := request.ErrInvalidParams{Context: "ListEnvironmentsInput"}
if s.ApplicationId == nil {
invalidParams.Add(request.NewErrParamRequired("ApplicationId"))
}
if s.ApplicationId != nil && len(*s.ApplicationId) < 1 {
invalidParams.Add(request.NewErrParamMinLen("ApplicationId", 1))
}
if s.MaxResults != nil && *s.MaxResults < 1 {
invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1))
}
if s.NextToken != nil && len(*s.NextToken) < 1 {
invalidParams.Add(request.NewErrParamMinLen("NextToken", 1))
}
if invalidParams.Len() > 0 {
return invalidParams
}
return nil
}
// SetApplicationId sets the ApplicationId field's value.
func (s *ListEnvironmentsInput) SetApplicationId(v string) *ListEnvironmentsInput {
s.ApplicationId = &v
return s
}
// SetMaxResults sets the MaxResults field's value.
func (s *ListEnvironmentsInput) SetMaxResults(v int64) *ListEnvironmentsInput {
s.MaxResults = &v
return s
}
// SetNextToken sets the NextToken field's value.
func (s *ListEnvironmentsInput) SetNextToken(v string) *ListEnvironmentsInput {
s.NextToken = &v
return s
}
type ListEnvironmentsOutput struct {
_ struct{} `type:"structure"`
// The elements from this collection.
Items []*Environment `type:"list"`
// The token for the next set of items to return. Use this token to get the
// next set of results.
NextToken *string `min:"1" type:"string"`
}
// String returns the string representation
func (s ListEnvironmentsOutput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s ListEnvironmentsOutput) GoString() string {
return s.String()
}
// SetItems sets the Items field's value.
func (s *ListEnvironmentsOutput) SetItems(v []*Environment) *ListEnvironmentsOutput {
s.Items = v
return s
}
// SetNextToken sets the NextToken field's value.
func (s *ListEnvironmentsOutput) SetNextToken(v string) *ListEnvironmentsOutput {
s.NextToken = &v
return s
}
type ListHostedConfigurationVersionsInput struct {
_ struct{} `type:"structure"`
// The application ID.
//
// ApplicationId is a required field
ApplicationId *string `location:"uri" locationName:"ApplicationId" type:"string" required:"true"`
// The configuration profile ID.
//
// ConfigurationProfileId is a required field
ConfigurationProfileId *string `location:"uri" locationName:"ConfigurationProfileId" type:"string" required:"true"`
// The maximum number of items to return for this call. The call also returns
// a token that you can specify in a subsequent call to get the next set of
// results.
MaxResults *int64 `location:"querystring" locationName:"max_results" min:"1" type:"integer"`
// A token to start the list. Use this token to get the next set of results.
NextToken *string `location:"querystring" locationName:"next_token" min:"1" type:"string"`
}
// String returns the string representation
func (s ListHostedConfigurationVersionsInput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s ListHostedConfigurationVersionsInput) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
func (s *ListHostedConfigurationVersionsInput) Validate() error {
invalidParams := request.ErrInvalidParams{Context: "ListHostedConfigurationVersionsInput"}
if s.ApplicationId == nil {
invalidParams.Add(request.NewErrParamRequired("ApplicationId"))
}
if s.ApplicationId != nil && len(*s.ApplicationId) < 1 {
invalidParams.Add(request.NewErrParamMinLen("ApplicationId", 1))
}
if s.ConfigurationProfileId == nil {
invalidParams.Add(request.NewErrParamRequired("ConfigurationProfileId"))
}
if s.ConfigurationProfileId != nil && len(*s.ConfigurationProfileId) < 1 {
invalidParams.Add(request.NewErrParamMinLen("ConfigurationProfileId", 1))
}
if s.MaxResults != nil && *s.MaxResults < 1 {
invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1))
}
if s.NextToken != nil && len(*s.NextToken) < 1 {
invalidParams.Add(request.NewErrParamMinLen("NextToken", 1))
}
if invalidParams.Len() > 0 {
return invalidParams
}
return nil
}
// SetApplicationId sets the ApplicationId field's value.
func (s *ListHostedConfigurationVersionsInput) SetApplicationId(v string) *ListHostedConfigurationVersionsInput {
s.ApplicationId = &v
return s
}
// SetConfigurationProfileId sets the ConfigurationProfileId field's value.
func (s *ListHostedConfigurationVersionsInput) SetConfigurationProfileId(v string) *ListHostedConfigurationVersionsInput {
s.ConfigurationProfileId = &v
return s
}
// SetMaxResults sets the MaxResults field's value.
func (s *ListHostedConfigurationVersionsInput) SetMaxResults(v int64) *ListHostedConfigurationVersionsInput {
s.MaxResults = &v
return s
}
// SetNextToken sets the NextToken field's value.
func (s *ListHostedConfigurationVersionsInput) SetNextToken(v string) *ListHostedConfigurationVersionsInput {
s.NextToken = &v
return s
}
type ListHostedConfigurationVersionsOutput struct {
_ struct{} `type:"structure"`
// The elements from this collection.
Items []*HostedConfigurationVersionSummary `type:"list"`
// The token for the next set of items to return. Use this token to get the
// next set of results.
NextToken *string `min:"1" type:"string"`
}
// String returns the string representation
func (s ListHostedConfigurationVersionsOutput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s ListHostedConfigurationVersionsOutput) GoString() string {
return s.String()
}
// SetItems sets the Items field's value.
func (s *ListHostedConfigurationVersionsOutput) SetItems(v []*HostedConfigurationVersionSummary) *ListHostedConfigurationVersionsOutput {
s.Items = v
return s
}
// SetNextToken sets the NextToken field's value.
func (s *ListHostedConfigurationVersionsOutput) SetNextToken(v string) *ListHostedConfigurationVersionsOutput {
s.NextToken = &v
return s
}
type ListTagsForResourceInput struct {
_ struct{} `type:"structure"`
// The resource ARN.
//
// ResourceArn is a required field
ResourceArn *string `location:"uri" locationName:"ResourceArn" min:"20" type:"string" required:"true"`
}
// String returns the string representation
func (s ListTagsForResourceInput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s ListTagsForResourceInput) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
func (s *ListTagsForResourceInput) Validate() error {
invalidParams := request.ErrInvalidParams{Context: "ListTagsForResourceInput"}
if s.ResourceArn == nil {
invalidParams.Add(request.NewErrParamRequired("ResourceArn"))
}
if s.ResourceArn != nil && len(*s.ResourceArn) < 20 {
invalidParams.Add(request.NewErrParamMinLen("ResourceArn", 20))
}
if invalidParams.Len() > 0 {
return invalidParams
}
return nil
}
// SetResourceArn sets the ResourceArn field's value.
func (s *ListTagsForResourceInput) SetResourceArn(v string) *ListTagsForResourceInput {
s.ResourceArn = &v
return s
}
type ListTagsForResourceOutput struct {
_ struct{} `type:"structure"`
// Metadata to assign to AppConfig resources. Tags help organize and categorize
// your AppConfig resources. Each tag consists of a key and an optional value,
// both of which you define.
Tags map[string]*string `type:"map"`
}
// String returns the string representation
func (s ListTagsForResourceOutput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s ListTagsForResourceOutput) GoString() string {
return s.String()
}
// SetTags sets the Tags field's value.
func (s *ListTagsForResourceOutput) SetTags(v map[string]*string) *ListTagsForResourceOutput {
s.Tags = v
return s
}
// Amazon CloudWatch alarms to monitor during the deployment process.
type Monitor struct {
_ struct{} `type:"structure"`
// ARN of the Amazon CloudWatch alarm.
AlarmArn *string `min:"20" type:"string"`
// ARN of an IAM role for AppConfig to monitor AlarmArn.
AlarmRoleArn *string `min:"20" type:"string"`
}
// String returns the string representation
func (s Monitor) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s Monitor) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
func (s *Monitor) Validate() error {
invalidParams := request.ErrInvalidParams{Context: "Monitor"}
if s.AlarmArn != nil && len(*s.AlarmArn) < 20 {
invalidParams.Add(request.NewErrParamMinLen("AlarmArn", 20))
}
if s.AlarmRoleArn != nil && len(*s.AlarmRoleArn) < 20 {
invalidParams.Add(request.NewErrParamMinLen("AlarmRoleArn", 20))
}
if invalidParams.Len() > 0 {
return invalidParams
}
return nil
}
// SetAlarmArn sets the AlarmArn field's value.
func (s *Monitor) SetAlarmArn(v string) *Monitor {
s.AlarmArn = &v
return s
}
// SetAlarmRoleArn sets the AlarmRoleArn field's value.
func (s *Monitor) SetAlarmRoleArn(v string) *Monitor {
s.AlarmRoleArn = &v
return s
}
// The configuration size is too large.
type PayloadTooLargeException struct {
_ struct{} `type:"structure"`
RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Limit *float64 `type:"float"`
Measure *string `type:"string" enum:"BytesMeasure"`
Message_ *string `locationName:"Message" type:"string"`
Size *float64 `type:"float"`
}
// String returns the string representation
func (s PayloadTooLargeException) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s PayloadTooLargeException) GoString() string {
return s.String()
}
func newErrorPayloadTooLargeException(v protocol.ResponseMetadata) error {
return &PayloadTooLargeException{
RespMetadata: v,
}
}
// Code returns the exception type name.
func (s *PayloadTooLargeException) Code() string {
return "PayloadTooLargeException"
}
// Message returns the exception's message.
func (s *PayloadTooLargeException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
return ""
}
// OrigErr always returns nil, satisfies awserr.Error interface.
func (s *PayloadTooLargeException) OrigErr() error {
return nil
}
func (s *PayloadTooLargeException) Error() string {
return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String())
}
// Status code returns the HTTP status code for the request's response error.
func (s *PayloadTooLargeException) StatusCode() int {
return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
func (s *PayloadTooLargeException) RequestID() string {
return s.RespMetadata.RequestID
}
// The requested resource could not be found.
type ResourceNotFoundException struct {
_ struct{} `type:"structure"`
RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"Message" type:"string"`
ResourceName *string `type:"string"`
}
// String returns the string representation
func (s ResourceNotFoundException) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s ResourceNotFoundException) GoString() string {
return s.String()
}
func newErrorResourceNotFoundException(v protocol.ResponseMetadata) error {
return &ResourceNotFoundException{
RespMetadata: v,
}
}
// Code returns the exception type name.
func (s *ResourceNotFoundException) Code() string {
return "ResourceNotFoundException"
}
// Message returns the exception's message.
func (s *ResourceNotFoundException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
return ""
}
// OrigErr always returns nil, satisfies awserr.Error interface.
func (s *ResourceNotFoundException) OrigErr() error {
return nil
}
func (s *ResourceNotFoundException) Error() string {
return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String())
}
// Status code returns the HTTP status code for the request's response error.
func (s *ResourceNotFoundException) StatusCode() int {
return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
func (s *ResourceNotFoundException) RequestID() string {
return s.RespMetadata.RequestID
}
// The number of hosted configuration versions exceeds the limit for the AppConfig
// configuration store. Delete one or more versions and try again.
type ServiceQuotaExceededException struct {
_ struct{} `type:"structure"`
RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"Message" type:"string"`
}
// String returns the string representation
func (s ServiceQuotaExceededException) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s ServiceQuotaExceededException) GoString() string {
return s.String()
}
func newErrorServiceQuotaExceededException(v protocol.ResponseMetadata) error {
return &ServiceQuotaExceededException{
RespMetadata: v,
}
}
// Code returns the exception type name.
func (s *ServiceQuotaExceededException) Code() string {
return "ServiceQuotaExceededException"
}
// Message returns the exception's message.
func (s *ServiceQuotaExceededException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
return ""
}
// OrigErr always returns nil, satisfies awserr.Error interface.
func (s *ServiceQuotaExceededException) OrigErr() error {
return nil
}
func (s *ServiceQuotaExceededException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
func (s *ServiceQuotaExceededException) StatusCode() int {
return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
func (s *ServiceQuotaExceededException) RequestID() string {
return s.RespMetadata.RequestID
}
type StartDeploymentInput struct {
_ struct{} `type:"structure"`
// The application ID.
//
// ApplicationId is a required field
ApplicationId *string `location:"uri" locationName:"ApplicationId" type:"string" required:"true"`
// The configuration profile ID.
//
// ConfigurationProfileId is a required field
ConfigurationProfileId *string `type:"string" required:"true"`
// The configuration version to deploy.
//
// ConfigurationVersion is a required field
ConfigurationVersion *string `min:"1" type:"string" required:"true"`
// The deployment strategy ID.
//
// DeploymentStrategyId is a required field
DeploymentStrategyId *string `type:"string" required:"true"`
// A description of the deployment.
Description *string `type:"string"`
// The environment ID.
//
// EnvironmentId is a required field
EnvironmentId *string `location:"uri" locationName:"EnvironmentId" type:"string" required:"true"`
// Metadata to assign to the deployment. Tags help organize and categorize your
// AppConfig resources. Each tag consists of a key and an optional value, both
// of which you define.
Tags map[string]*string `type:"map"`
}
// String returns the string representation
func (s StartDeploymentInput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s StartDeploymentInput) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
func (s *StartDeploymentInput) Validate() error {
invalidParams := request.ErrInvalidParams{Context: "StartDeploymentInput"}
if s.ApplicationId == nil {
invalidParams.Add(request.NewErrParamRequired("ApplicationId"))
}
if s.ApplicationId != nil && len(*s.ApplicationId) < 1 {
invalidParams.Add(request.NewErrParamMinLen("ApplicationId", 1))
}
if s.ConfigurationProfileId == nil {
invalidParams.Add(request.NewErrParamRequired("ConfigurationProfileId"))
}
if s.ConfigurationVersion == nil {
invalidParams.Add(request.NewErrParamRequired("ConfigurationVersion"))
}
if s.ConfigurationVersion != nil && len(*s.ConfigurationVersion) < 1 {
invalidParams.Add(request.NewErrParamMinLen("ConfigurationVersion", 1))
}
if s.DeploymentStrategyId == nil {
invalidParams.Add(request.NewErrParamRequired("DeploymentStrategyId"))
}
if s.EnvironmentId == nil {
invalidParams.Add(request.NewErrParamRequired("EnvironmentId"))
}
if s.EnvironmentId != nil && len(*s.EnvironmentId) < 1 {
invalidParams.Add(request.NewErrParamMinLen("EnvironmentId", 1))
}
if invalidParams.Len() > 0 {
return invalidParams
}
return nil
}
// SetApplicationId sets the ApplicationId field's value.
func (s *StartDeploymentInput) SetApplicationId(v string) *StartDeploymentInput {
s.ApplicationId = &v
return s
}
// SetConfigurationProfileId sets the ConfigurationProfileId field's value.
func (s *StartDeploymentInput) SetConfigurationProfileId(v string) *StartDeploymentInput {
s.ConfigurationProfileId = &v
return s
}
// SetConfigurationVersion sets the ConfigurationVersion field's value.
func (s *StartDeploymentInput) SetConfigurationVersion(v string) *StartDeploymentInput {
s.ConfigurationVersion = &v
return s
}
// SetDeploymentStrategyId sets the DeploymentStrategyId field's value.
func (s *StartDeploymentInput) SetDeploymentStrategyId(v string) *StartDeploymentInput {
s.DeploymentStrategyId = &v
return s
}
// SetDescription sets the Description field's value.
func (s *StartDeploymentInput) SetDescription(v string) *StartDeploymentInput {
s.Description = &v
return s
}
// SetEnvironmentId sets the EnvironmentId field's value.
func (s *StartDeploymentInput) SetEnvironmentId(v string) *StartDeploymentInput {
s.EnvironmentId = &v
return s
}
// SetTags sets the Tags field's value.
func (s *StartDeploymentInput) SetTags(v map[string]*string) *StartDeploymentInput {
s.Tags = v
return s
}
type StartDeploymentOutput struct {
_ struct{} `type:"structure"`
// The ID of the application that was deployed.
ApplicationId *string `type:"string"`
// The time the deployment completed.
CompletedAt *time.Time `type:"timestamp" timestampFormat:"iso8601"`
// Information about the source location of the configuration.
ConfigurationLocationUri *string `min:"1" type:"string"`
// The name of the configuration.
ConfigurationName *string `min:"1" type:"string"`
// The ID of the configuration profile that was deployed.
ConfigurationProfileId *string `type:"string"`
// The configuration version that was deployed.
ConfigurationVersion *string `min:"1" type:"string"`
// Total amount of time the deployment lasted.
DeploymentDurationInMinutes *int64 `type:"integer"`
// The sequence number of the deployment.
DeploymentNumber *int64 `type:"integer"`
// The ID of the deployment strategy that was deployed.
DeploymentStrategyId *string `type:"string"`
// The description of the deployment.
Description *string `type:"string"`
// The ID of the environment that was deployed.
EnvironmentId *string `type:"string"`
// A list containing all events related to a deployment. The most recent events
// are displayed first.
EventLog []*DeploymentEvent `type:"list"`
// The amount of time AppConfig monitored for alarms before considering the
// deployment to be complete and no longer eligible for automatic roll back.
FinalBakeTimeInMinutes *int64 `type:"integer"`
// The percentage of targets to receive a deployed configuration during each
// interval.
GrowthFactor *float64 `min:"1" type:"float"`
// The algorithm used to define how percentage grew over time.
GrowthType *string `type:"string" enum:"GrowthType"`
// The percentage of targets for which the deployment is available.
PercentageComplete *float64 `min:"1" type:"float"`
// The time the deployment started.
StartedAt *time.Time `type:"timestamp" timestampFormat:"iso8601"`
// The state of the deployment.
State *string `type:"string" enum:"DeploymentState"`
}
// String returns the string representation
func (s StartDeploymentOutput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s StartDeploymentOutput) GoString() string {
return s.String()
}
// SetApplicationId sets the ApplicationId field's value.
func (s *StartDeploymentOutput) SetApplicationId(v string) *StartDeploymentOutput {
s.ApplicationId = &v
return s
}
// SetCompletedAt sets the CompletedAt field's value.
func (s *StartDeploymentOutput) SetCompletedAt(v time.Time) *StartDeploymentOutput {
s.CompletedAt = &v
return s
}
// SetConfigurationLocationUri sets the ConfigurationLocationUri field's value.
func (s *StartDeploymentOutput) SetConfigurationLocationUri(v string) *StartDeploymentOutput {
s.ConfigurationLocationUri = &v
return s
}
// SetConfigurationName sets the ConfigurationName field's value.
func (s *StartDeploymentOutput) SetConfigurationName(v string) *StartDeploymentOutput {
s.ConfigurationName = &v
return s
}
// SetConfigurationProfileId sets the ConfigurationProfileId field's value.
func (s *StartDeploymentOutput) SetConfigurationProfileId(v string) *StartDeploymentOutput {
s.ConfigurationProfileId = &v
return s
}
// SetConfigurationVersion sets the ConfigurationVersion field's value.
func (s *StartDeploymentOutput) SetConfigurationVersion(v string) *StartDeploymentOutput {
s.ConfigurationVersion = &v
return s
}
// SetDeploymentDurationInMinutes sets the DeploymentDurationInMinutes field's value.
func (s *StartDeploymentOutput) SetDeploymentDurationInMinutes(v int64) *StartDeploymentOutput {
s.DeploymentDurationInMinutes = &v
return s
}
// SetDeploymentNumber sets the DeploymentNumber field's value.
func (s *StartDeploymentOutput) SetDeploymentNumber(v int64) *StartDeploymentOutput {
s.DeploymentNumber = &v
return s
}
// SetDeploymentStrategyId sets the DeploymentStrategyId field's value.
func (s *StartDeploymentOutput) SetDeploymentStrategyId(v string) *StartDeploymentOutput {
s.DeploymentStrategyId = &v
return s
}
// SetDescription sets the Description field's value.
func (s *StartDeploymentOutput) SetDescription(v string) *StartDeploymentOutput {
s.Description = &v
return s
}
// SetEnvironmentId sets the EnvironmentId field's value.
func (s *StartDeploymentOutput) SetEnvironmentId(v string) *StartDeploymentOutput {
s.EnvironmentId = &v
return s
}
// SetEventLog sets the EventLog field's value.
func (s *StartDeploymentOutput) SetEventLog(v []*DeploymentEvent) *StartDeploymentOutput {
s.EventLog = v
return s
}
// SetFinalBakeTimeInMinutes sets the FinalBakeTimeInMinutes field's value.
func (s *StartDeploymentOutput) SetFinalBakeTimeInMinutes(v int64) *StartDeploymentOutput {
s.FinalBakeTimeInMinutes = &v
return s
}
// SetGrowthFactor sets the GrowthFactor field's value.
func (s *StartDeploymentOutput) SetGrowthFactor(v float64) *StartDeploymentOutput {
s.GrowthFactor = &v
return s
}
// SetGrowthType sets the GrowthType field's value.
func (s *StartDeploymentOutput) SetGrowthType(v string) *StartDeploymentOutput {
s.GrowthType = &v
return s
}
// SetPercentageComplete sets the PercentageComplete field's value.
func (s *StartDeploymentOutput) SetPercentageComplete(v float64) *StartDeploymentOutput {
s.PercentageComplete = &v
return s
}
// SetStartedAt sets the StartedAt field's value.
func (s *StartDeploymentOutput) SetStartedAt(v time.Time) *StartDeploymentOutput {
s.StartedAt = &v
return s
}
// SetState sets the State field's value.
func (s *StartDeploymentOutput) SetState(v string) *StartDeploymentOutput {
s.State = &v
return s
}
type StopDeploymentInput struct {
_ struct{} `type:"structure"`
// The application ID.
//
// ApplicationId is a required field
ApplicationId *string `location:"uri" locationName:"ApplicationId" type:"string" required:"true"`
// The sequence number of the deployment.
//
// DeploymentNumber is a required field
DeploymentNumber *int64 `location:"uri" locationName:"DeploymentNumber" type:"integer" required:"true"`
// The environment ID.
//
// EnvironmentId is a required field
EnvironmentId *string `location:"uri" locationName:"EnvironmentId" type:"string" required:"true"`
}
// String returns the string representation
func (s StopDeploymentInput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s StopDeploymentInput) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
func (s *StopDeploymentInput) Validate() error {
invalidParams := request.ErrInvalidParams{Context: "StopDeploymentInput"}
if s.ApplicationId == nil {
invalidParams.Add(request.NewErrParamRequired("ApplicationId"))
}
if s.ApplicationId != nil && len(*s.ApplicationId) < 1 {
invalidParams.Add(request.NewErrParamMinLen("ApplicationId", 1))
}
if s.DeploymentNumber == nil {
invalidParams.Add(request.NewErrParamRequired("DeploymentNumber"))
}
if s.EnvironmentId == nil {
invalidParams.Add(request.NewErrParamRequired("EnvironmentId"))
}
if s.EnvironmentId != nil && len(*s.EnvironmentId) < 1 {
invalidParams.Add(request.NewErrParamMinLen("EnvironmentId", 1))
}
if invalidParams.Len() > 0 {
return invalidParams
}
return nil
}
// SetApplicationId sets the ApplicationId field's value.
func (s *StopDeploymentInput) SetApplicationId(v string) *StopDeploymentInput {
s.ApplicationId = &v
return s
}
// SetDeploymentNumber sets the DeploymentNumber field's value.
func (s *StopDeploymentInput) SetDeploymentNumber(v int64) *StopDeploymentInput {
s.DeploymentNumber = &v
return s
}
// SetEnvironmentId sets the EnvironmentId field's value.
func (s *StopDeploymentInput) SetEnvironmentId(v string) *StopDeploymentInput {
s.EnvironmentId = &v
return s
}
type StopDeploymentOutput struct {
_ struct{} `type:"structure"`
// The ID of the application that was deployed.
ApplicationId *string `type:"string"`
// The time the deployment completed.
CompletedAt *time.Time `type:"timestamp" timestampFormat:"iso8601"`
// Information about the source location of the configuration.
ConfigurationLocationUri *string `min:"1" type:"string"`
// The name of the configuration.
ConfigurationName *string `min:"1" type:"string"`
// The ID of the configuration profile that was deployed.
ConfigurationProfileId *string `type:"string"`
// The configuration version that was deployed.
ConfigurationVersion *string `min:"1" type:"string"`
// Total amount of time the deployment lasted.
DeploymentDurationInMinutes *int64 `type:"integer"`
// The sequence number of the deployment.
DeploymentNumber *int64 `type:"integer"`
// The ID of the deployment strategy that was deployed.
DeploymentStrategyId *string `type:"string"`
// The description of the deployment.
Description *string `type:"string"`
// The ID of the environment that was deployed.
EnvironmentId *string `type:"string"`
// A list containing all events related to a deployment. The most recent events
// are displayed first.
EventLog []*DeploymentEvent `type:"list"`
// The amount of time AppConfig monitored for alarms before considering the
// deployment to be complete and no longer eligible for automatic roll back.
FinalBakeTimeInMinutes *int64 `type:"integer"`
// The percentage of targets to receive a deployed configuration during each
// interval.
GrowthFactor *float64 `min:"1" type:"float"`
// The algorithm used to define how percentage grew over time.
GrowthType *string `type:"string" enum:"GrowthType"`
// The percentage of targets for which the deployment is available.
PercentageComplete *float64 `min:"1" type:"float"`
// The time the deployment started.
StartedAt *time.Time `type:"timestamp" timestampFormat:"iso8601"`
// The state of the deployment.
State *string `type:"string" enum:"DeploymentState"`
}
// String returns the string representation
func (s StopDeploymentOutput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s StopDeploymentOutput) GoString() string {
return s.String()
}
// SetApplicationId sets the ApplicationId field's value.
func (s *StopDeploymentOutput) SetApplicationId(v string) *StopDeploymentOutput {
s.ApplicationId = &v
return s
}
// SetCompletedAt sets the CompletedAt field's value.
func (s *StopDeploymentOutput) SetCompletedAt(v time.Time) *StopDeploymentOutput {
s.CompletedAt = &v
return s
}
// SetConfigurationLocationUri sets the ConfigurationLocationUri field's value.
func (s *StopDeploymentOutput) SetConfigurationLocationUri(v string) *StopDeploymentOutput {
s.ConfigurationLocationUri = &v
return s
}
// SetConfigurationName sets the ConfigurationName field's value.
func (s *StopDeploymentOutput) SetConfigurationName(v string) *StopDeploymentOutput {
s.ConfigurationName = &v
return s
}
// SetConfigurationProfileId sets the ConfigurationProfileId field's value.
func (s *StopDeploymentOutput) SetConfigurationProfileId(v string) *StopDeploymentOutput {
s.ConfigurationProfileId = &v
return s
}
// SetConfigurationVersion sets the ConfigurationVersion field's value.
func (s *StopDeploymentOutput) SetConfigurationVersion(v string) *StopDeploymentOutput {
s.ConfigurationVersion = &v
return s
}
// SetDeploymentDurationInMinutes sets the DeploymentDurationInMinutes field's value.
func (s *StopDeploymentOutput) SetDeploymentDurationInMinutes(v int64) *StopDeploymentOutput {
s.DeploymentDurationInMinutes = &v
return s
}
// SetDeploymentNumber sets the DeploymentNumber field's value.
func (s *StopDeploymentOutput) SetDeploymentNumber(v int64) *StopDeploymentOutput {
s.DeploymentNumber = &v
return s
}
// SetDeploymentStrategyId sets the DeploymentStrategyId field's value.
func (s *StopDeploymentOutput) SetDeploymentStrategyId(v string) *StopDeploymentOutput {
s.DeploymentStrategyId = &v
return s
}
// SetDescription sets the Description field's value.
func (s *StopDeploymentOutput) SetDescription(v string) *StopDeploymentOutput {
s.Description = &v
return s
}
// SetEnvironmentId sets the EnvironmentId field's value.
func (s *StopDeploymentOutput) SetEnvironmentId(v string) *StopDeploymentOutput {
s.EnvironmentId = &v
return s
}
// SetEventLog sets the EventLog field's value.
func (s *StopDeploymentOutput) SetEventLog(v []*DeploymentEvent) *StopDeploymentOutput {
s.EventLog = v
return s
}
// SetFinalBakeTimeInMinutes sets the FinalBakeTimeInMinutes field's value.
func (s *StopDeploymentOutput) SetFinalBakeTimeInMinutes(v int64) *StopDeploymentOutput {
s.FinalBakeTimeInMinutes = &v
return s
}
// SetGrowthFactor sets the GrowthFactor field's value.
func (s *StopDeploymentOutput) SetGrowthFactor(v float64) *StopDeploymentOutput {
s.GrowthFactor = &v
return s
}
// SetGrowthType sets the GrowthType field's value.
func (s *StopDeploymentOutput) SetGrowthType(v string) *StopDeploymentOutput {
s.GrowthType = &v
return s
}
// SetPercentageComplete sets the PercentageComplete field's value.
func (s *StopDeploymentOutput) SetPercentageComplete(v float64) *StopDeploymentOutput {
s.PercentageComplete = &v
return s
}
// SetStartedAt sets the StartedAt field's value.
func (s *StopDeploymentOutput) SetStartedAt(v time.Time) *StopDeploymentOutput {
s.StartedAt = &v
return s
}
// SetState sets the State field's value.
func (s *StopDeploymentOutput) SetState(v string) *StopDeploymentOutput {
s.State = &v
return s
}
type TagResourceInput struct {
_ struct{} `type:"structure"`
// The ARN of the resource for which to retrieve tags.
//
// ResourceArn is a required field
ResourceArn *string `location:"uri" locationName:"ResourceArn" min:"20" type:"string" required:"true"`
// The key-value string map. The valid character set is [a-zA-Z+-=._:/]. The
// tag key can be up to 128 characters and must not start with aws:. The tag
// value can be up to 256 characters.
//
// Tags is a required field
Tags map[string]*string `type:"map" required:"true"`
}
// String returns the string representation
func (s TagResourceInput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s TagResourceInput) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
func (s *TagResourceInput) Validate() error {
invalidParams := request.ErrInvalidParams{Context: "TagResourceInput"}
if s.ResourceArn == nil {
invalidParams.Add(request.NewErrParamRequired("ResourceArn"))
}
if s.ResourceArn != nil && len(*s.ResourceArn) < 20 {
invalidParams.Add(request.NewErrParamMinLen("ResourceArn", 20))
}
if s.Tags == nil {
invalidParams.Add(request.NewErrParamRequired("Tags"))
}
if invalidParams.Len() > 0 {
return invalidParams
}
return nil
}
// SetResourceArn sets the ResourceArn field's value.
func (s *TagResourceInput) SetResourceArn(v string) *TagResourceInput {
s.ResourceArn = &v
return s
}
// SetTags sets the Tags field's value.
func (s *TagResourceInput) SetTags(v map[string]*string) *TagResourceInput {
s.Tags = v
return s
}
type TagResourceOutput struct {
_ struct{} `type:"structure"`
}
// String returns the string representation
func (s TagResourceOutput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s TagResourceOutput) GoString() string {
return s.String()
}
type UntagResourceInput struct {
_ struct{} `type:"structure"`
// The ARN of the resource for which to remove tags.
//
// ResourceArn is a required field
ResourceArn *string `location:"uri" locationName:"ResourceArn" min:"20" type:"string" required:"true"`
// The tag keys to delete.
//
// TagKeys is a required field
TagKeys []*string `location:"querystring" locationName:"tagKeys" type:"list" required:"true"`
}
// String returns the string representation
func (s UntagResourceInput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s UntagResourceInput) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
func (s *UntagResourceInput) Validate() error {
invalidParams := request.ErrInvalidParams{Context: "UntagResourceInput"}
if s.ResourceArn == nil {
invalidParams.Add(request.NewErrParamRequired("ResourceArn"))
}
if s.ResourceArn != nil && len(*s.ResourceArn) < 20 {
invalidParams.Add(request.NewErrParamMinLen("ResourceArn", 20))
}
if s.TagKeys == nil {
invalidParams.Add(request.NewErrParamRequired("TagKeys"))
}
if invalidParams.Len() > 0 {
return invalidParams
}
return nil
}
// SetResourceArn sets the ResourceArn field's value.
func (s *UntagResourceInput) SetResourceArn(v string) *UntagResourceInput {
s.ResourceArn = &v
return s
}
// SetTagKeys sets the TagKeys field's value.
func (s *UntagResourceInput) SetTagKeys(v []*string) *UntagResourceInput {
s.TagKeys = v
return s
}
type UntagResourceOutput struct {
_ struct{} `type:"structure"`
}
// String returns the string representation
func (s UntagResourceOutput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s UntagResourceOutput) GoString() string {
return s.String()
}
type UpdateApplicationInput struct {
_ struct{} `type:"structure"`
// The application ID.
//
// ApplicationId is a required field
ApplicationId *string `location:"uri" locationName:"ApplicationId" type:"string" required:"true"`
// A description of the application.
Description *string `type:"string"`
// The name of the application.
Name *string `min:"1" type:"string"`
}
// String returns the string representation
func (s UpdateApplicationInput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s UpdateApplicationInput) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
func (s *UpdateApplicationInput) Validate() error {
invalidParams := request.ErrInvalidParams{Context: "UpdateApplicationInput"}
if s.ApplicationId == nil {
invalidParams.Add(request.NewErrParamRequired("ApplicationId"))
}
if s.ApplicationId != nil && len(*s.ApplicationId) < 1 {
invalidParams.Add(request.NewErrParamMinLen("ApplicationId", 1))
}
if s.Name != nil && len(*s.Name) < 1 {
invalidParams.Add(request.NewErrParamMinLen("Name", 1))
}
if invalidParams.Len() > 0 {
return invalidParams
}
return nil
}
// SetApplicationId sets the ApplicationId field's value.
func (s *UpdateApplicationInput) SetApplicationId(v string) *UpdateApplicationInput {
s.ApplicationId = &v
return s
}
// SetDescription sets the Description field's value.
func (s *UpdateApplicationInput) SetDescription(v string) *UpdateApplicationInput {
s.Description = &v
return s
}
// SetName sets the Name field's value.
func (s *UpdateApplicationInput) SetName(v string) *UpdateApplicationInput {
s.Name = &v
return s
}
type UpdateApplicationOutput struct {
_ struct{} `type:"structure"`
// The description of the application.
Description *string `type:"string"`
// The application ID.
Id *string `type:"string"`
// The application name.
Name *string `min:"1" type:"string"`
}
// String returns the string representation
func (s UpdateApplicationOutput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s UpdateApplicationOutput) GoString() string {
return s.String()
}
// SetDescription sets the Description field's value.
func (s *UpdateApplicationOutput) SetDescription(v string) *UpdateApplicationOutput {
s.Description = &v
return s
}
// SetId sets the Id field's value.
func (s *UpdateApplicationOutput) SetId(v string) *UpdateApplicationOutput {
s.Id = &v
return s
}
// SetName sets the Name field's value.
func (s *UpdateApplicationOutput) SetName(v string) *UpdateApplicationOutput {
s.Name = &v
return s
}
type UpdateConfigurationProfileInput struct {
_ struct{} `type:"structure"`
// The application ID.
//
// ApplicationId is a required field
ApplicationId *string `location:"uri" locationName:"ApplicationId" type:"string" required:"true"`
// The ID of the configuration profile.
//
// ConfigurationProfileId is a required field
ConfigurationProfileId *string `location:"uri" locationName:"ConfigurationProfileId" type:"string" required:"true"`
// A description of the configuration profile.
Description *string `type:"string"`
// The name of the configuration profile.
Name *string `min:"1" type:"string"`
// The ARN of an IAM role with permission to access the configuration at the
// specified LocationUri.
RetrievalRoleArn *string `min:"20" type:"string"`
// A list of methods for validating the configuration.
Validators []*Validator `type:"list"`
}
// String returns the string representation
func (s UpdateConfigurationProfileInput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s UpdateConfigurationProfileInput) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
func (s *UpdateConfigurationProfileInput) Validate() error {
invalidParams := request.ErrInvalidParams{Context: "UpdateConfigurationProfileInput"}
if s.ApplicationId == nil {
invalidParams.Add(request.NewErrParamRequired("ApplicationId"))
}
if s.ApplicationId != nil && len(*s.ApplicationId) < 1 {
invalidParams.Add(request.NewErrParamMinLen("ApplicationId", 1))
}
if s.ConfigurationProfileId == nil {
invalidParams.Add(request.NewErrParamRequired("ConfigurationProfileId"))
}
if s.ConfigurationProfileId != nil && len(*s.ConfigurationProfileId) < 1 {
invalidParams.Add(request.NewErrParamMinLen("ConfigurationProfileId", 1))
}
if s.Name != nil && len(*s.Name) < 1 {
invalidParams.Add(request.NewErrParamMinLen("Name", 1))
}
if s.RetrievalRoleArn != nil && len(*s.RetrievalRoleArn) < 20 {
invalidParams.Add(request.NewErrParamMinLen("RetrievalRoleArn", 20))
}
if s.Validators != nil {
for i, v := range s.Validators {
if v == nil {
continue
}
if err := v.Validate(); err != nil {
invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Validators", i), err.(request.ErrInvalidParams))
}
}
}
if invalidParams.Len() > 0 {
return invalidParams
}
return nil
}
// SetApplicationId sets the ApplicationId field's value.
func (s *UpdateConfigurationProfileInput) SetApplicationId(v string) *UpdateConfigurationProfileInput {
s.ApplicationId = &v
return s
}
// SetConfigurationProfileId sets the ConfigurationProfileId field's value.
func (s *UpdateConfigurationProfileInput) SetConfigurationProfileId(v string) *UpdateConfigurationProfileInput {
s.ConfigurationProfileId = &v
return s
}
// SetDescription sets the Description field's value.
func (s *UpdateConfigurationProfileInput) SetDescription(v string) *UpdateConfigurationProfileInput {
s.Description = &v
return s
}
// SetName sets the Name field's value.
func (s *UpdateConfigurationProfileInput) SetName(v string) *UpdateConfigurationProfileInput {
s.Name = &v
return s
}
// SetRetrievalRoleArn sets the RetrievalRoleArn field's value.
func (s *UpdateConfigurationProfileInput) SetRetrievalRoleArn(v string) *UpdateConfigurationProfileInput {
s.RetrievalRoleArn = &v
return s
}
// SetValidators sets the Validators field's value.
func (s *UpdateConfigurationProfileInput) SetValidators(v []*Validator) *UpdateConfigurationProfileInput {
s.Validators = v
return s
}
type UpdateConfigurationProfileOutput struct {
_ struct{} `type:"structure"`
// The application ID.
ApplicationId *string `type:"string"`
// The configuration profile description.
Description *string `type:"string"`
// The configuration profile ID.
Id *string `type:"string"`
// The URI location of the configuration.
LocationUri *string `min:"1" type:"string"`
// The name of the configuration profile.
Name *string `min:"1" type:"string"`
// The ARN of an IAM role with permission to access the configuration at the
// specified LocationUri.
RetrievalRoleArn *string `min:"20" type:"string"`
// A list of methods for validating the configuration.
Validators []*Validator `type:"list"`
}
// String returns the string representation
func (s UpdateConfigurationProfileOutput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s UpdateConfigurationProfileOutput) GoString() string {
return s.String()
}
// SetApplicationId sets the ApplicationId field's value.
func (s *UpdateConfigurationProfileOutput) SetApplicationId(v string) *UpdateConfigurationProfileOutput {
s.ApplicationId = &v
return s
}
// SetDescription sets the Description field's value.
func (s *UpdateConfigurationProfileOutput) SetDescription(v string) *UpdateConfigurationProfileOutput {
s.Description = &v
return s
}
// SetId sets the Id field's value.
func (s *UpdateConfigurationProfileOutput) SetId(v string) *UpdateConfigurationProfileOutput {
s.Id = &v
return s
}
// SetLocationUri sets the LocationUri field's value.
func (s *UpdateConfigurationProfileOutput) SetLocationUri(v string) *UpdateConfigurationProfileOutput {
s.LocationUri = &v
return s
}
// SetName sets the Name field's value.
func (s *UpdateConfigurationProfileOutput) SetName(v string) *UpdateConfigurationProfileOutput {
s.Name = &v
return s
}
// SetRetrievalRoleArn sets the RetrievalRoleArn field's value.
func (s *UpdateConfigurationProfileOutput) SetRetrievalRoleArn(v string) *UpdateConfigurationProfileOutput {
s.RetrievalRoleArn = &v
return s
}
// SetValidators sets the Validators field's value.
func (s *UpdateConfigurationProfileOutput) SetValidators(v []*Validator) *UpdateConfigurationProfileOutput {
s.Validators = v
return s
}
type UpdateDeploymentStrategyInput struct {
_ struct{} `type:"structure"`
// Total amount of time for a deployment to last.
DeploymentDurationInMinutes *int64 `type:"integer"`
// The deployment strategy ID.
//
// DeploymentStrategyId is a required field
DeploymentStrategyId *string `location:"uri" locationName:"DeploymentStrategyId" type:"string" required:"true"`
// A description of the deployment strategy.
Description *string `type:"string"`
// The amount of time AppConfig monitors for alarms before considering the deployment
// to be complete and no longer eligible for automatic roll back.
FinalBakeTimeInMinutes *int64 `type:"integer"`
// The percentage of targets to receive a deployed configuration during each
// interval.
GrowthFactor *float64 `min:"1" type:"float"`
// The algorithm used to define how percentage grows over time. AWS AppConfig
// supports the following growth types:
//
// Linear: For this type, AppConfig processes the deployment by increments of
// the growth factor evenly distributed over the deployment time. For example,
// a linear deployment that uses a growth factor of 20 initially makes the configuration
// available to 20 percent of the targets. After 1/5th of the deployment time
// has passed, the system updates the percentage to 40 percent. This continues
// until 100% of the targets are set to receive the deployed configuration.
//
// Exponential: For this type, AppConfig processes the deployment exponentially
// using the following formula: G*(2^N). In this formula, G is the growth factor
// specified by the user and N is the number of steps until the configuration
// is deployed to all targets. For example, if you specify a growth factor of
// 2, then the system rolls out the configuration as follows:
//
// 2*(2^0)
//
// 2*(2^1)
//
// 2*(2^2)
//
// Expressed numerically, the deployment rolls out as follows: 2% of the targets,
// 4% of the targets, 8% of the targets, and continues until the configuration
// has been deployed to all targets.
GrowthType *string `type:"string" enum:"GrowthType"`
}
// String returns the string representation
func (s UpdateDeploymentStrategyInput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s UpdateDeploymentStrategyInput) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
func (s *UpdateDeploymentStrategyInput) Validate() error {
invalidParams := request.ErrInvalidParams{Context: "UpdateDeploymentStrategyInput"}
if s.DeploymentStrategyId == nil {
invalidParams.Add(request.NewErrParamRequired("DeploymentStrategyId"))
}
if s.DeploymentStrategyId != nil && len(*s.DeploymentStrategyId) < 1 {
invalidParams.Add(request.NewErrParamMinLen("DeploymentStrategyId", 1))
}
if s.GrowthFactor != nil && *s.GrowthFactor < 1 {
invalidParams.Add(request.NewErrParamMinValue("GrowthFactor", 1))
}
if invalidParams.Len() > 0 {
return invalidParams
}
return nil
}
// SetDeploymentDurationInMinutes sets the DeploymentDurationInMinutes field's value.
func (s *UpdateDeploymentStrategyInput) SetDeploymentDurationInMinutes(v int64) *UpdateDeploymentStrategyInput {
s.DeploymentDurationInMinutes = &v
return s
}
// SetDeploymentStrategyId sets the DeploymentStrategyId field's value.
func (s *UpdateDeploymentStrategyInput) SetDeploymentStrategyId(v string) *UpdateDeploymentStrategyInput {
s.DeploymentStrategyId = &v
return s
}
// SetDescription sets the Description field's value.
func (s *UpdateDeploymentStrategyInput) SetDescription(v string) *UpdateDeploymentStrategyInput {
s.Description = &v
return s
}
// SetFinalBakeTimeInMinutes sets the FinalBakeTimeInMinutes field's value.
func (s *UpdateDeploymentStrategyInput) SetFinalBakeTimeInMinutes(v int64) *UpdateDeploymentStrategyInput {
s.FinalBakeTimeInMinutes = &v
return s
}
// SetGrowthFactor sets the GrowthFactor field's value.
func (s *UpdateDeploymentStrategyInput) SetGrowthFactor(v float64) *UpdateDeploymentStrategyInput {
s.GrowthFactor = &v
return s
}
// SetGrowthType sets the GrowthType field's value.
func (s *UpdateDeploymentStrategyInput) SetGrowthType(v string) *UpdateDeploymentStrategyInput {
s.GrowthType = &v
return s
}
type UpdateDeploymentStrategyOutput struct {
_ struct{} `type:"structure"`
// Total amount of time the deployment lasted.
DeploymentDurationInMinutes *int64 `type:"integer"`
// The description of the deployment strategy.
Description *string `type:"string"`
// The amount of time AppConfig monitored for alarms before considering the
// deployment to be complete and no longer eligible for automatic roll back.
FinalBakeTimeInMinutes *int64 `type:"integer"`
// The percentage of targets that received a deployed configuration during each
// interval.
GrowthFactor *float64 `min:"1" type:"float"`
// The algorithm used to define how percentage grew over time.
GrowthType *string `type:"string" enum:"GrowthType"`
// The deployment strategy ID.
Id *string `type:"string"`
// The name of the deployment strategy.
Name *string `min:"1" type:"string"`
// Save the deployment strategy to a Systems Manager (SSM) document.
ReplicateTo *string `type:"string" enum:"ReplicateTo"`
}
// String returns the string representation
func (s UpdateDeploymentStrategyOutput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s UpdateDeploymentStrategyOutput) GoString() string {
return s.String()
}
// SetDeploymentDurationInMinutes sets the DeploymentDurationInMinutes field's value.
func (s *UpdateDeploymentStrategyOutput) SetDeploymentDurationInMinutes(v int64) *UpdateDeploymentStrategyOutput {
s.DeploymentDurationInMinutes = &v
return s
}
// SetDescription sets the Description field's value.
func (s *UpdateDeploymentStrategyOutput) SetDescription(v string) *UpdateDeploymentStrategyOutput {
s.Description = &v
return s
}
// SetFinalBakeTimeInMinutes sets the FinalBakeTimeInMinutes field's value.
func (s *UpdateDeploymentStrategyOutput) SetFinalBakeTimeInMinutes(v int64) *UpdateDeploymentStrategyOutput {
s.FinalBakeTimeInMinutes = &v
return s
}
// SetGrowthFactor sets the GrowthFactor field's value.
func (s *UpdateDeploymentStrategyOutput) SetGrowthFactor(v float64) *UpdateDeploymentStrategyOutput {
s.GrowthFactor = &v
return s
}
// SetGrowthType sets the GrowthType field's value.
func (s *UpdateDeploymentStrategyOutput) SetGrowthType(v string) *UpdateDeploymentStrategyOutput {
s.GrowthType = &v
return s
}
// SetId sets the Id field's value.
func (s *UpdateDeploymentStrategyOutput) SetId(v string) *UpdateDeploymentStrategyOutput {
s.Id = &v
return s
}
// SetName sets the Name field's value.
func (s *UpdateDeploymentStrategyOutput) SetName(v string) *UpdateDeploymentStrategyOutput {
s.Name = &v
return s
}
// SetReplicateTo sets the ReplicateTo field's value.
func (s *UpdateDeploymentStrategyOutput) SetReplicateTo(v string) *UpdateDeploymentStrategyOutput {
s.ReplicateTo = &v
return s
}
type UpdateEnvironmentInput struct {
_ struct{} `type:"structure"`
// The application ID.
//
// ApplicationId is a required field
ApplicationId *string `location:"uri" locationName:"ApplicationId" type:"string" required:"true"`
// A description of the environment.
Description *string `type:"string"`
// The environment ID.
//
// EnvironmentId is a required field
EnvironmentId *string `location:"uri" locationName:"EnvironmentId" type:"string" required:"true"`
// Amazon CloudWatch alarms to monitor during the deployment process.
Monitors []*Monitor `type:"list"`
// The name of the environment.
Name *string `min:"1" type:"string"`
}
// String returns the string representation
func (s UpdateEnvironmentInput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s UpdateEnvironmentInput) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
func (s *UpdateEnvironmentInput) Validate() error {
invalidParams := request.ErrInvalidParams{Context: "UpdateEnvironmentInput"}
if s.ApplicationId == nil {
invalidParams.Add(request.NewErrParamRequired("ApplicationId"))
}
if s.ApplicationId != nil && len(*s.ApplicationId) < 1 {
invalidParams.Add(request.NewErrParamMinLen("ApplicationId", 1))
}
if s.EnvironmentId == nil {
invalidParams.Add(request.NewErrParamRequired("EnvironmentId"))
}
if s.EnvironmentId != nil && len(*s.EnvironmentId) < 1 {
invalidParams.Add(request.NewErrParamMinLen("EnvironmentId", 1))
}
if s.Name != nil && len(*s.Name) < 1 {
invalidParams.Add(request.NewErrParamMinLen("Name", 1))
}
if s.Monitors != nil {
for i, v := range s.Monitors {
if v == nil {
continue
}
if err := v.Validate(); err != nil {
invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Monitors", i), err.(request.ErrInvalidParams))
}
}
}
if invalidParams.Len() > 0 {
return invalidParams
}
return nil
}
// SetApplicationId sets the ApplicationId field's value.
func (s *UpdateEnvironmentInput) SetApplicationId(v string) *UpdateEnvironmentInput {
s.ApplicationId = &v
return s
}
// SetDescription sets the Description field's value.
func (s *UpdateEnvironmentInput) SetDescription(v string) *UpdateEnvironmentInput {
s.Description = &v
return s
}
// SetEnvironmentId sets the EnvironmentId field's value.
func (s *UpdateEnvironmentInput) SetEnvironmentId(v string) *UpdateEnvironmentInput {
s.EnvironmentId = &v
return s
}
// SetMonitors sets the Monitors field's value.
func (s *UpdateEnvironmentInput) SetMonitors(v []*Monitor) *UpdateEnvironmentInput {
s.Monitors = v
return s
}
// SetName sets the Name field's value.
func (s *UpdateEnvironmentInput) SetName(v string) *UpdateEnvironmentInput {
s.Name = &v
return s
}
type UpdateEnvironmentOutput struct {
_ struct{} `type:"structure"`
// The application ID.
ApplicationId *string `type:"string"`
// The description of the environment.
Description *string `type:"string"`
// The environment ID.
Id *string `type:"string"`
// Amazon CloudWatch alarms monitored during the deployment.
Monitors []*Monitor `type:"list"`
// The name of the environment.
Name *string `min:"1" type:"string"`
// The state of the environment. An environment can be in one of the following
// states: READY_FOR_DEPLOYMENT, DEPLOYING, ROLLING_BACK, or ROLLED_BACK
State *string `type:"string" enum:"EnvironmentState"`
}
// String returns the string representation
func (s UpdateEnvironmentOutput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s UpdateEnvironmentOutput) GoString() string {
return s.String()
}
// SetApplicationId sets the ApplicationId field's value.
func (s *UpdateEnvironmentOutput) SetApplicationId(v string) *UpdateEnvironmentOutput {
s.ApplicationId = &v
return s
}
// SetDescription sets the Description field's value.
func (s *UpdateEnvironmentOutput) SetDescription(v string) *UpdateEnvironmentOutput {
s.Description = &v
return s
}
// SetId sets the Id field's value.
func (s *UpdateEnvironmentOutput) SetId(v string) *UpdateEnvironmentOutput {
s.Id = &v
return s
}
// SetMonitors sets the Monitors field's value.
func (s *UpdateEnvironmentOutput) SetMonitors(v []*Monitor) *UpdateEnvironmentOutput {
s.Monitors = v
return s
}
// SetName sets the Name field's value.
func (s *UpdateEnvironmentOutput) SetName(v string) *UpdateEnvironmentOutput {
s.Name = &v
return s
}
// SetState sets the State field's value.
func (s *UpdateEnvironmentOutput) SetState(v string) *UpdateEnvironmentOutput {
s.State = &v
return s
}
type ValidateConfigurationInput struct {
_ struct{} `type:"structure"`
// The application ID.
//
// ApplicationId is a required field
ApplicationId *string `location:"uri" locationName:"ApplicationId" type:"string" required:"true"`
// The configuration profile ID.
//
// ConfigurationProfileId is a required field
ConfigurationProfileId *string `location:"uri" locationName:"ConfigurationProfileId" type:"string" required:"true"`
// The version of the configuration to validate.
//
// ConfigurationVersion is a required field
ConfigurationVersion *string `location:"querystring" locationName:"configuration_version" min:"1" type:"string" required:"true"`
}
// String returns the string representation
func (s ValidateConfigurationInput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s ValidateConfigurationInput) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
func (s *ValidateConfigurationInput) Validate() error {
invalidParams := request.ErrInvalidParams{Context: "ValidateConfigurationInput"}
if s.ApplicationId == nil {
invalidParams.Add(request.NewErrParamRequired("ApplicationId"))
}
if s.ApplicationId != nil && len(*s.ApplicationId) < 1 {
invalidParams.Add(request.NewErrParamMinLen("ApplicationId", 1))
}
if s.ConfigurationProfileId == nil {
invalidParams.Add(request.NewErrParamRequired("ConfigurationProfileId"))
}
if s.ConfigurationProfileId != nil && len(*s.ConfigurationProfileId) < 1 {
invalidParams.Add(request.NewErrParamMinLen("ConfigurationProfileId", 1))
}
if s.ConfigurationVersion == nil {
invalidParams.Add(request.NewErrParamRequired("ConfigurationVersion"))
}
if s.ConfigurationVersion != nil && len(*s.ConfigurationVersion) < 1 {
invalidParams.Add(request.NewErrParamMinLen("ConfigurationVersion", 1))
}
if invalidParams.Len() > 0 {
return invalidParams
}
return nil
}
// SetApplicationId sets the ApplicationId field's value.
func (s *ValidateConfigurationInput) SetApplicationId(v string) *ValidateConfigurationInput {
s.ApplicationId = &v
return s
}
// SetConfigurationProfileId sets the ConfigurationProfileId field's value.
func (s *ValidateConfigurationInput) SetConfigurationProfileId(v string) *ValidateConfigurationInput {
s.ConfigurationProfileId = &v
return s
}
// SetConfigurationVersion sets the ConfigurationVersion field's value.
func (s *ValidateConfigurationInput) SetConfigurationVersion(v string) *ValidateConfigurationInput {
s.ConfigurationVersion = &v
return s
}
type ValidateConfigurationOutput struct {
_ struct{} `type:"structure"`
}
// String returns the string representation
func (s ValidateConfigurationOutput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s ValidateConfigurationOutput) GoString() string {
return s.String()
}
// A validator provides a syntactic or semantic check to ensure the configuration
// you want to deploy functions as intended. To validate your application configuration
// data, you provide a schema or a Lambda function that runs against the configuration.
// The configuration deployment or update can only proceed when the configuration
// data is valid.
type Validator struct {
_ struct{} `type:"structure"`
// Either the JSON Schema content or the Amazon Resource Name (ARN) of an AWS
// Lambda function.
//
// Content is a required field
Content *string `type:"string" required:"true" sensitive:"true"`
// AppConfig supports validators of type JSON_SCHEMA and LAMBDA
//
// Type is a required field
Type *string `type:"string" required:"true" enum:"ValidatorType"`
}
// String returns the string representation
func (s Validator) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s Validator) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
func (s *Validator) Validate() error {
invalidParams := request.ErrInvalidParams{Context: "Validator"}
if s.Content == nil {
invalidParams.Add(request.NewErrParamRequired("Content"))
}
if s.Type == nil {
invalidParams.Add(request.NewErrParamRequired("Type"))
}
if invalidParams.Len() > 0 {
return invalidParams
}
return nil
}
// SetContent sets the Content field's value.
func (s *Validator) SetContent(v string) *Validator {
s.Content = &v
return s
}
// SetType sets the Type field's value.
func (s *Validator) SetType(v string) *Validator {
s.Type = &v
return s
}
const (
// BytesMeasureKilobytes is a BytesMeasure enum value
BytesMeasureKilobytes = "KILOBYTES"
)
// BytesMeasure_Values returns all elements of the BytesMeasure enum
func BytesMeasure_Values() []string {
return []string{
BytesMeasureKilobytes,
}
}
const (
// DeploymentEventTypePercentageUpdated is a DeploymentEventType enum value
DeploymentEventTypePercentageUpdated = "PERCENTAGE_UPDATED"
// DeploymentEventTypeRollbackStarted is a DeploymentEventType enum value
DeploymentEventTypeRollbackStarted = "ROLLBACK_STARTED"
// DeploymentEventTypeRollbackCompleted is a DeploymentEventType enum value
DeploymentEventTypeRollbackCompleted = "ROLLBACK_COMPLETED"
// DeploymentEventTypeBakeTimeStarted is a DeploymentEventType enum value
DeploymentEventTypeBakeTimeStarted = "BAKE_TIME_STARTED"
// DeploymentEventTypeDeploymentStarted is a DeploymentEventType enum value
DeploymentEventTypeDeploymentStarted = "DEPLOYMENT_STARTED"
// DeploymentEventTypeDeploymentCompleted is a DeploymentEventType enum value
DeploymentEventTypeDeploymentCompleted = "DEPLOYMENT_COMPLETED"
)
// DeploymentEventType_Values returns all elements of the DeploymentEventType enum
func DeploymentEventType_Values() []string {
return []string{
DeploymentEventTypePercentageUpdated,
DeploymentEventTypeRollbackStarted,
DeploymentEventTypeRollbackCompleted,
DeploymentEventTypeBakeTimeStarted,
DeploymentEventTypeDeploymentStarted,
DeploymentEventTypeDeploymentCompleted,
}
}
const (
// DeploymentStateBaking is a DeploymentState enum value
DeploymentStateBaking = "BAKING"
// DeploymentStateValidating is a DeploymentState enum value
DeploymentStateValidating = "VALIDATING"
// DeploymentStateDeploying is a DeploymentState enum value
DeploymentStateDeploying = "DEPLOYING"
// DeploymentStateComplete is a DeploymentState enum value
DeploymentStateComplete = "COMPLETE"
// DeploymentStateRollingBack is a DeploymentState enum value
DeploymentStateRollingBack = "ROLLING_BACK"
// DeploymentStateRolledBack is a DeploymentState enum value
DeploymentStateRolledBack = "ROLLED_BACK"
)
// DeploymentState_Values returns all elements of the DeploymentState enum
func DeploymentState_Values() []string {
return []string{
DeploymentStateBaking,
DeploymentStateValidating,
DeploymentStateDeploying,
DeploymentStateComplete,
DeploymentStateRollingBack,
DeploymentStateRolledBack,
}
}
const (
// EnvironmentStateReadyForDeployment is a EnvironmentState enum value
EnvironmentStateReadyForDeployment = "READY_FOR_DEPLOYMENT"
// EnvironmentStateDeploying is a EnvironmentState enum value
EnvironmentStateDeploying = "DEPLOYING"
// EnvironmentStateRollingBack is a EnvironmentState enum value
EnvironmentStateRollingBack = "ROLLING_BACK"
// EnvironmentStateRolledBack is a EnvironmentState enum value
EnvironmentStateRolledBack = "ROLLED_BACK"
)
// EnvironmentState_Values returns all elements of the EnvironmentState enum
func EnvironmentState_Values() []string {
return []string{
EnvironmentStateReadyForDeployment,
EnvironmentStateDeploying,
EnvironmentStateRollingBack,
EnvironmentStateRolledBack,
}
}
const (
// GrowthTypeLinear is a GrowthType enum value
GrowthTypeLinear = "LINEAR"
// GrowthTypeExponential is a GrowthType enum value
GrowthTypeExponential = "EXPONENTIAL"
)
// GrowthType_Values returns all elements of the GrowthType enum
func GrowthType_Values() []string {
return []string{
GrowthTypeLinear,
GrowthTypeExponential,
}
}
const (
// ReplicateToNone is a ReplicateTo enum value
ReplicateToNone = "NONE"
// ReplicateToSsmDocument is a ReplicateTo enum value
ReplicateToSsmDocument = "SSM_DOCUMENT"
)
// ReplicateTo_Values returns all elements of the ReplicateTo enum
func ReplicateTo_Values() []string {
return []string{
ReplicateToNone,
ReplicateToSsmDocument,
}
}
const (
// TriggeredByUser is a TriggeredBy enum value
TriggeredByUser = "USER"
// TriggeredByAppconfig is a TriggeredBy enum value
TriggeredByAppconfig = "APPCONFIG"
// TriggeredByCloudwatchAlarm is a TriggeredBy enum value
TriggeredByCloudwatchAlarm = "CLOUDWATCH_ALARM"
// TriggeredByInternalError is a TriggeredBy enum value
TriggeredByInternalError = "INTERNAL_ERROR"
)
// TriggeredBy_Values returns all elements of the TriggeredBy enum
func TriggeredBy_Values() []string {
return []string{
TriggeredByUser,
TriggeredByAppconfig,
TriggeredByCloudwatchAlarm,
TriggeredByInternalError,
}
}
const (
// ValidatorTypeJsonSchema is a ValidatorType enum value
ValidatorTypeJsonSchema = "JSON_SCHEMA"
// ValidatorTypeLambda is a ValidatorType enum value
ValidatorTypeLambda = "LAMBDA"
)
// ValidatorType_Values returns all elements of the ValidatorType enum
func ValidatorType_Values() []string {
return []string{
ValidatorTypeJsonSchema,
ValidatorTypeLambda,
}
}
| 8,739 |
session-manager-plugin | aws | Go | // Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
// Package appconfig provides the client and types for making API
// requests to Amazon AppConfig.
//
// Use AWS AppConfig, a capability of AWS Systems Manager, to create, manage,
// and quickly deploy application configurations. AppConfig supports controlled
// deployments to applications of any size and includes built-in validation
// checks and monitoring. You can use AppConfig with applications hosted on
// Amazon EC2 instances, AWS Lambda, containers, mobile applications, or IoT
// devices.
//
// To prevent errors when deploying application configurations, especially for
// production systems where a simple typo could cause an unexpected outage,
// AppConfig includes validators. A validator provides a syntactic or semantic
// check to ensure that the configuration you want to deploy works as intended.
// To validate your application configuration data, you provide a schema or
// a Lambda function that runs against the configuration. The configuration
// deployment or update can only proceed when the configuration data is valid.
//
// During a configuration deployment, AppConfig monitors the application to
// ensure that the deployment is successful. If the system encounters an error,
// AppConfig rolls back the change to minimize impact for your application users.
// You can configure a deployment strategy for each application or environment
// that includes deployment criteria, including velocity, bake time, and alarms
// to monitor. Similar to error monitoring, if a deployment triggers an alarm,
// AppConfig automatically rolls back to the previous version.
//
// AppConfig supports multiple use cases. Here are some examples.
//
// * Application tuning: Use AppConfig to carefully introduce changes to
// your application that can only be tested with production traffic.
//
// * Feature toggle: Use AppConfig to turn on new features that require a
// timely deployment, such as a product launch or announcement.
//
// * Allow list: Use AppConfig to allow premium subscribers to access paid
// content.
//
// * Operational issues: Use AppConfig to reduce stress on your application
// when a dependency or other external factor impacts the system.
//
// This reference is intended to be used with the AWS AppConfig User Guide (http://docs.aws.amazon.com/systems-manager/latest/userguide/appconfig.html).
//
// See https://docs.aws.amazon.com/goto/WebAPI/appconfig-2019-10-09 for more information on this service.
//
// See appconfig package documentation for more information.
// https://docs.aws.amazon.com/sdk-for-go/api/service/appconfig/
//
// Using the Client
//
// To contact Amazon AppConfig 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 Amazon AppConfig client AppConfig for more
// information on creating client for this service.
// https://docs.aws.amazon.com/sdk-for-go/api/service/appconfig/#New
package appconfig
| 66 |
session-manager-plugin | aws | Go | // Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
package appconfig
import (
"github.com/aws/aws-sdk-go/private/protocol"
)
const (
// ErrCodeBadRequestException for service response error code
// "BadRequestException".
//
// The input fails to satisfy the constraints specified by an AWS service.
ErrCodeBadRequestException = "BadRequestException"
// ErrCodeConflictException for service response error code
// "ConflictException".
//
// The request could not be processed because of conflict in the current state
// of the resource.
ErrCodeConflictException = "ConflictException"
// ErrCodeInternalServerException for service response error code
// "InternalServerException".
//
// There was an internal failure in the AppConfig service.
ErrCodeInternalServerException = "InternalServerException"
// ErrCodePayloadTooLargeException for service response error code
// "PayloadTooLargeException".
//
// The configuration size is too large.
ErrCodePayloadTooLargeException = "PayloadTooLargeException"
// ErrCodeResourceNotFoundException for service response error code
// "ResourceNotFoundException".
//
// The requested resource could not be found.
ErrCodeResourceNotFoundException = "ResourceNotFoundException"
// ErrCodeServiceQuotaExceededException for service response error code
// "ServiceQuotaExceededException".
//
// The number of hosted configuration versions exceeds the limit for the AppConfig
// configuration store. Delete one or more versions and try again.
ErrCodeServiceQuotaExceededException = "ServiceQuotaExceededException"
)
var exceptionFromCode = map[string]func(protocol.ResponseMetadata) error{
"BadRequestException": newErrorBadRequestException,
"ConflictException": newErrorConflictException,
"InternalServerException": newErrorInternalServerException,
"PayloadTooLargeException": newErrorPayloadTooLargeException,
"ResourceNotFoundException": newErrorResourceNotFoundException,
"ServiceQuotaExceededException": newErrorServiceQuotaExceededException,
}
| 58 |
session-manager-plugin | aws | Go | // Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
package appconfig
import (
"github.com/aws/aws-sdk-go/aws"
"github.com/aws/aws-sdk-go/aws/client"
"github.com/aws/aws-sdk-go/aws/client/metadata"
"github.com/aws/aws-sdk-go/aws/request"
"github.com/aws/aws-sdk-go/aws/signer/v4"
"github.com/aws/aws-sdk-go/private/protocol"
"github.com/aws/aws-sdk-go/private/protocol/restjson"
)
// AppConfig provides the API operation methods for making requests to
// Amazon AppConfig. See this package's package overview docs
// for details on the service.
//
// AppConfig methods are safe to use concurrently. It is not safe to
// modify mutate any of the struct's properties though.
type AppConfig struct {
*client.Client
}
// Used for custom client initialization logic
var initClient func(*client.Client)
// Used for custom request initialization logic
var initRequest func(*request.Request)
// Service information constants
const (
ServiceName = "AppConfig" // Name of service.
EndpointsID = "appconfig" // ID to lookup a service endpoint with.
ServiceID = "AppConfig" // ServiceID is a unique identifier of a specific service.
)
// New creates a new instance of the AppConfig 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 AppConfig client from just a session.
// svc := appconfig.New(mySession)
//
// // Create a AppConfig client with additional configuration
// svc := appconfig.New(mySession, aws.NewConfig().WithRegion("us-west-2"))
func New(p client.ConfigProvider, cfgs ...*aws.Config) *AppConfig {
c := p.ClientConfig(EndpointsID, cfgs...)
if c.SigningNameDerived || len(c.SigningName) == 0 {
c.SigningName = "appconfig"
}
return newClient(*c.Config, c.Handlers, c.PartitionID, c.Endpoint, c.SigningRegion, c.SigningName)
}
// newClient creates, initializes and returns a new service client instance.
func newClient(cfg aws.Config, handlers request.Handlers, partitionID, endpoint, signingRegion, signingName string) *AppConfig {
svc := &AppConfig{
Client: client.New(
cfg,
metadata.ClientInfo{
ServiceName: ServiceName,
ServiceID: ServiceID,
SigningName: signingName,
SigningRegion: signingRegion,
PartitionID: partitionID,
Endpoint: endpoint,
APIVersion: "2019-10-09",
},
handlers,
),
}
// Handlers
svc.Handlers.Sign.PushBackNamed(v4.SignRequestHandler)
svc.Handlers.Build.PushBackNamed(restjson.BuildHandler)
svc.Handlers.Unmarshal.PushBackNamed(restjson.UnmarshalHandler)
svc.Handlers.UnmarshalMeta.PushBackNamed(restjson.UnmarshalMetaHandler)
svc.Handlers.UnmarshalError.PushBackNamed(
protocol.NewUnmarshalErrorHandler(restjson.NewUnmarshalTypedError(exceptionFromCode)).NamedHandler(),
)
// Run custom client initialization if present
if initClient != nil {
initClient(svc.Client)
}
return svc
}
// newRequest creates a new request for a AppConfig operation and runs any
// custom request initialization.
func (c *AppConfig) newRequest(op *request.Operation, params, data interface{}) *request.Request {
req := c.NewRequest(op, params, data)
// Run custom request initialization if present
if initRequest != nil {
initRequest(req)
}
return req
}
| 105 |
session-manager-plugin | aws | Go | // Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
// Package appconfigiface provides an interface to enable mocking the Amazon AppConfig service client
// for testing your code.
//
// It is important to note that this interface will have breaking changes
// when the service model is updated and adds new API operations, paginators,
// and waiters.
package appconfigiface
import (
"github.com/aws/aws-sdk-go/aws"
"github.com/aws/aws-sdk-go/aws/request"
"github.com/aws/aws-sdk-go/service/appconfig"
)
// AppConfigAPI provides an interface to enable mocking the
// appconfig.AppConfig service client's API operation,
// paginators, and waiters. This make unit testing your code that calls out
// to the SDK's service client's calls easier.
//
// The best way to use this interface is so the SDK's service client's calls
// can be stubbed out for unit testing your code with the SDK without needing
// to inject custom request handlers into the SDK's request pipeline.
//
// // myFunc uses an SDK service client to make a request to
// // Amazon AppConfig.
// func myFunc(svc appconfigiface.AppConfigAPI) bool {
// // Make svc.CreateApplication request
// }
//
// func main() {
// sess := session.New()
// svc := appconfig.New(sess)
//
// myFunc(svc)
// }
//
// In your _test.go file:
//
// // Define a mock struct to be used in your unit tests of myFunc.
// type mockAppConfigClient struct {
// appconfigiface.AppConfigAPI
// }
// func (m *mockAppConfigClient) CreateApplication(input *appconfig.CreateApplicationInput) (*appconfig.CreateApplicationOutput, error) {
// // mock response/functionality
// }
//
// func TestMyFunc(t *testing.T) {
// // Setup Test
// mockSvc := &mockAppConfigClient{}
//
// myfunc(mockSvc)
//
// // Verify myFunc's functionality
// }
//
// It is important to note that this interface will have breaking changes
// when the service model is updated and adds new API operations, paginators,
// and waiters. Its suggested to use the pattern above for testing, or using
// tooling to generate mocks to satisfy the interfaces.
type AppConfigAPI interface {
CreateApplication(*appconfig.CreateApplicationInput) (*appconfig.CreateApplicationOutput, error)
CreateApplicationWithContext(aws.Context, *appconfig.CreateApplicationInput, ...request.Option) (*appconfig.CreateApplicationOutput, error)
CreateApplicationRequest(*appconfig.CreateApplicationInput) (*request.Request, *appconfig.CreateApplicationOutput)
CreateConfigurationProfile(*appconfig.CreateConfigurationProfileInput) (*appconfig.CreateConfigurationProfileOutput, error)
CreateConfigurationProfileWithContext(aws.Context, *appconfig.CreateConfigurationProfileInput, ...request.Option) (*appconfig.CreateConfigurationProfileOutput, error)
CreateConfigurationProfileRequest(*appconfig.CreateConfigurationProfileInput) (*request.Request, *appconfig.CreateConfigurationProfileOutput)
CreateDeploymentStrategy(*appconfig.CreateDeploymentStrategyInput) (*appconfig.CreateDeploymentStrategyOutput, error)
CreateDeploymentStrategyWithContext(aws.Context, *appconfig.CreateDeploymentStrategyInput, ...request.Option) (*appconfig.CreateDeploymentStrategyOutput, error)
CreateDeploymentStrategyRequest(*appconfig.CreateDeploymentStrategyInput) (*request.Request, *appconfig.CreateDeploymentStrategyOutput)
CreateEnvironment(*appconfig.CreateEnvironmentInput) (*appconfig.CreateEnvironmentOutput, error)
CreateEnvironmentWithContext(aws.Context, *appconfig.CreateEnvironmentInput, ...request.Option) (*appconfig.CreateEnvironmentOutput, error)
CreateEnvironmentRequest(*appconfig.CreateEnvironmentInput) (*request.Request, *appconfig.CreateEnvironmentOutput)
CreateHostedConfigurationVersion(*appconfig.CreateHostedConfigurationVersionInput) (*appconfig.CreateHostedConfigurationVersionOutput, error)
CreateHostedConfigurationVersionWithContext(aws.Context, *appconfig.CreateHostedConfigurationVersionInput, ...request.Option) (*appconfig.CreateHostedConfigurationVersionOutput, error)
CreateHostedConfigurationVersionRequest(*appconfig.CreateHostedConfigurationVersionInput) (*request.Request, *appconfig.CreateHostedConfigurationVersionOutput)
DeleteApplication(*appconfig.DeleteApplicationInput) (*appconfig.DeleteApplicationOutput, error)
DeleteApplicationWithContext(aws.Context, *appconfig.DeleteApplicationInput, ...request.Option) (*appconfig.DeleteApplicationOutput, error)
DeleteApplicationRequest(*appconfig.DeleteApplicationInput) (*request.Request, *appconfig.DeleteApplicationOutput)
DeleteConfigurationProfile(*appconfig.DeleteConfigurationProfileInput) (*appconfig.DeleteConfigurationProfileOutput, error)
DeleteConfigurationProfileWithContext(aws.Context, *appconfig.DeleteConfigurationProfileInput, ...request.Option) (*appconfig.DeleteConfigurationProfileOutput, error)
DeleteConfigurationProfileRequest(*appconfig.DeleteConfigurationProfileInput) (*request.Request, *appconfig.DeleteConfigurationProfileOutput)
DeleteDeploymentStrategy(*appconfig.DeleteDeploymentStrategyInput) (*appconfig.DeleteDeploymentStrategyOutput, error)
DeleteDeploymentStrategyWithContext(aws.Context, *appconfig.DeleteDeploymentStrategyInput, ...request.Option) (*appconfig.DeleteDeploymentStrategyOutput, error)
DeleteDeploymentStrategyRequest(*appconfig.DeleteDeploymentStrategyInput) (*request.Request, *appconfig.DeleteDeploymentStrategyOutput)
DeleteEnvironment(*appconfig.DeleteEnvironmentInput) (*appconfig.DeleteEnvironmentOutput, error)
DeleteEnvironmentWithContext(aws.Context, *appconfig.DeleteEnvironmentInput, ...request.Option) (*appconfig.DeleteEnvironmentOutput, error)
DeleteEnvironmentRequest(*appconfig.DeleteEnvironmentInput) (*request.Request, *appconfig.DeleteEnvironmentOutput)
DeleteHostedConfigurationVersion(*appconfig.DeleteHostedConfigurationVersionInput) (*appconfig.DeleteHostedConfigurationVersionOutput, error)
DeleteHostedConfigurationVersionWithContext(aws.Context, *appconfig.DeleteHostedConfigurationVersionInput, ...request.Option) (*appconfig.DeleteHostedConfigurationVersionOutput, error)
DeleteHostedConfigurationVersionRequest(*appconfig.DeleteHostedConfigurationVersionInput) (*request.Request, *appconfig.DeleteHostedConfigurationVersionOutput)
GetApplication(*appconfig.GetApplicationInput) (*appconfig.GetApplicationOutput, error)
GetApplicationWithContext(aws.Context, *appconfig.GetApplicationInput, ...request.Option) (*appconfig.GetApplicationOutput, error)
GetApplicationRequest(*appconfig.GetApplicationInput) (*request.Request, *appconfig.GetApplicationOutput)
GetConfiguration(*appconfig.GetConfigurationInput) (*appconfig.GetConfigurationOutput, error)
GetConfigurationWithContext(aws.Context, *appconfig.GetConfigurationInput, ...request.Option) (*appconfig.GetConfigurationOutput, error)
GetConfigurationRequest(*appconfig.GetConfigurationInput) (*request.Request, *appconfig.GetConfigurationOutput)
GetConfigurationProfile(*appconfig.GetConfigurationProfileInput) (*appconfig.GetConfigurationProfileOutput, error)
GetConfigurationProfileWithContext(aws.Context, *appconfig.GetConfigurationProfileInput, ...request.Option) (*appconfig.GetConfigurationProfileOutput, error)
GetConfigurationProfileRequest(*appconfig.GetConfigurationProfileInput) (*request.Request, *appconfig.GetConfigurationProfileOutput)
GetDeployment(*appconfig.GetDeploymentInput) (*appconfig.GetDeploymentOutput, error)
GetDeploymentWithContext(aws.Context, *appconfig.GetDeploymentInput, ...request.Option) (*appconfig.GetDeploymentOutput, error)
GetDeploymentRequest(*appconfig.GetDeploymentInput) (*request.Request, *appconfig.GetDeploymentOutput)
GetDeploymentStrategy(*appconfig.GetDeploymentStrategyInput) (*appconfig.GetDeploymentStrategyOutput, error)
GetDeploymentStrategyWithContext(aws.Context, *appconfig.GetDeploymentStrategyInput, ...request.Option) (*appconfig.GetDeploymentStrategyOutput, error)
GetDeploymentStrategyRequest(*appconfig.GetDeploymentStrategyInput) (*request.Request, *appconfig.GetDeploymentStrategyOutput)
GetEnvironment(*appconfig.GetEnvironmentInput) (*appconfig.GetEnvironmentOutput, error)
GetEnvironmentWithContext(aws.Context, *appconfig.GetEnvironmentInput, ...request.Option) (*appconfig.GetEnvironmentOutput, error)
GetEnvironmentRequest(*appconfig.GetEnvironmentInput) (*request.Request, *appconfig.GetEnvironmentOutput)
GetHostedConfigurationVersion(*appconfig.GetHostedConfigurationVersionInput) (*appconfig.GetHostedConfigurationVersionOutput, error)
GetHostedConfigurationVersionWithContext(aws.Context, *appconfig.GetHostedConfigurationVersionInput, ...request.Option) (*appconfig.GetHostedConfigurationVersionOutput, error)
GetHostedConfigurationVersionRequest(*appconfig.GetHostedConfigurationVersionInput) (*request.Request, *appconfig.GetHostedConfigurationVersionOutput)
ListApplications(*appconfig.ListApplicationsInput) (*appconfig.ListApplicationsOutput, error)
ListApplicationsWithContext(aws.Context, *appconfig.ListApplicationsInput, ...request.Option) (*appconfig.ListApplicationsOutput, error)
ListApplicationsRequest(*appconfig.ListApplicationsInput) (*request.Request, *appconfig.ListApplicationsOutput)
ListApplicationsPages(*appconfig.ListApplicationsInput, func(*appconfig.ListApplicationsOutput, bool) bool) error
ListApplicationsPagesWithContext(aws.Context, *appconfig.ListApplicationsInput, func(*appconfig.ListApplicationsOutput, bool) bool, ...request.Option) error
ListConfigurationProfiles(*appconfig.ListConfigurationProfilesInput) (*appconfig.ListConfigurationProfilesOutput, error)
ListConfigurationProfilesWithContext(aws.Context, *appconfig.ListConfigurationProfilesInput, ...request.Option) (*appconfig.ListConfigurationProfilesOutput, error)
ListConfigurationProfilesRequest(*appconfig.ListConfigurationProfilesInput) (*request.Request, *appconfig.ListConfigurationProfilesOutput)
ListConfigurationProfilesPages(*appconfig.ListConfigurationProfilesInput, func(*appconfig.ListConfigurationProfilesOutput, bool) bool) error
ListConfigurationProfilesPagesWithContext(aws.Context, *appconfig.ListConfigurationProfilesInput, func(*appconfig.ListConfigurationProfilesOutput, bool) bool, ...request.Option) error
ListDeploymentStrategies(*appconfig.ListDeploymentStrategiesInput) (*appconfig.ListDeploymentStrategiesOutput, error)
ListDeploymentStrategiesWithContext(aws.Context, *appconfig.ListDeploymentStrategiesInput, ...request.Option) (*appconfig.ListDeploymentStrategiesOutput, error)
ListDeploymentStrategiesRequest(*appconfig.ListDeploymentStrategiesInput) (*request.Request, *appconfig.ListDeploymentStrategiesOutput)
ListDeploymentStrategiesPages(*appconfig.ListDeploymentStrategiesInput, func(*appconfig.ListDeploymentStrategiesOutput, bool) bool) error
ListDeploymentStrategiesPagesWithContext(aws.Context, *appconfig.ListDeploymentStrategiesInput, func(*appconfig.ListDeploymentStrategiesOutput, bool) bool, ...request.Option) error
ListDeployments(*appconfig.ListDeploymentsInput) (*appconfig.ListDeploymentsOutput, error)
ListDeploymentsWithContext(aws.Context, *appconfig.ListDeploymentsInput, ...request.Option) (*appconfig.ListDeploymentsOutput, error)
ListDeploymentsRequest(*appconfig.ListDeploymentsInput) (*request.Request, *appconfig.ListDeploymentsOutput)
ListDeploymentsPages(*appconfig.ListDeploymentsInput, func(*appconfig.ListDeploymentsOutput, bool) bool) error
ListDeploymentsPagesWithContext(aws.Context, *appconfig.ListDeploymentsInput, func(*appconfig.ListDeploymentsOutput, bool) bool, ...request.Option) error
ListEnvironments(*appconfig.ListEnvironmentsInput) (*appconfig.ListEnvironmentsOutput, error)
ListEnvironmentsWithContext(aws.Context, *appconfig.ListEnvironmentsInput, ...request.Option) (*appconfig.ListEnvironmentsOutput, error)
ListEnvironmentsRequest(*appconfig.ListEnvironmentsInput) (*request.Request, *appconfig.ListEnvironmentsOutput)
ListEnvironmentsPages(*appconfig.ListEnvironmentsInput, func(*appconfig.ListEnvironmentsOutput, bool) bool) error
ListEnvironmentsPagesWithContext(aws.Context, *appconfig.ListEnvironmentsInput, func(*appconfig.ListEnvironmentsOutput, bool) bool, ...request.Option) error
ListHostedConfigurationVersions(*appconfig.ListHostedConfigurationVersionsInput) (*appconfig.ListHostedConfigurationVersionsOutput, error)
ListHostedConfigurationVersionsWithContext(aws.Context, *appconfig.ListHostedConfigurationVersionsInput, ...request.Option) (*appconfig.ListHostedConfigurationVersionsOutput, error)
ListHostedConfigurationVersionsRequest(*appconfig.ListHostedConfigurationVersionsInput) (*request.Request, *appconfig.ListHostedConfigurationVersionsOutput)
ListHostedConfigurationVersionsPages(*appconfig.ListHostedConfigurationVersionsInput, func(*appconfig.ListHostedConfigurationVersionsOutput, bool) bool) error
ListHostedConfigurationVersionsPagesWithContext(aws.Context, *appconfig.ListHostedConfigurationVersionsInput, func(*appconfig.ListHostedConfigurationVersionsOutput, bool) bool, ...request.Option) error
ListTagsForResource(*appconfig.ListTagsForResourceInput) (*appconfig.ListTagsForResourceOutput, error)
ListTagsForResourceWithContext(aws.Context, *appconfig.ListTagsForResourceInput, ...request.Option) (*appconfig.ListTagsForResourceOutput, error)
ListTagsForResourceRequest(*appconfig.ListTagsForResourceInput) (*request.Request, *appconfig.ListTagsForResourceOutput)
StartDeployment(*appconfig.StartDeploymentInput) (*appconfig.StartDeploymentOutput, error)
StartDeploymentWithContext(aws.Context, *appconfig.StartDeploymentInput, ...request.Option) (*appconfig.StartDeploymentOutput, error)
StartDeploymentRequest(*appconfig.StartDeploymentInput) (*request.Request, *appconfig.StartDeploymentOutput)
StopDeployment(*appconfig.StopDeploymentInput) (*appconfig.StopDeploymentOutput, error)
StopDeploymentWithContext(aws.Context, *appconfig.StopDeploymentInput, ...request.Option) (*appconfig.StopDeploymentOutput, error)
StopDeploymentRequest(*appconfig.StopDeploymentInput) (*request.Request, *appconfig.StopDeploymentOutput)
TagResource(*appconfig.TagResourceInput) (*appconfig.TagResourceOutput, error)
TagResourceWithContext(aws.Context, *appconfig.TagResourceInput, ...request.Option) (*appconfig.TagResourceOutput, error)
TagResourceRequest(*appconfig.TagResourceInput) (*request.Request, *appconfig.TagResourceOutput)
UntagResource(*appconfig.UntagResourceInput) (*appconfig.UntagResourceOutput, error)
UntagResourceWithContext(aws.Context, *appconfig.UntagResourceInput, ...request.Option) (*appconfig.UntagResourceOutput, error)
UntagResourceRequest(*appconfig.UntagResourceInput) (*request.Request, *appconfig.UntagResourceOutput)
UpdateApplication(*appconfig.UpdateApplicationInput) (*appconfig.UpdateApplicationOutput, error)
UpdateApplicationWithContext(aws.Context, *appconfig.UpdateApplicationInput, ...request.Option) (*appconfig.UpdateApplicationOutput, error)
UpdateApplicationRequest(*appconfig.UpdateApplicationInput) (*request.Request, *appconfig.UpdateApplicationOutput)
UpdateConfigurationProfile(*appconfig.UpdateConfigurationProfileInput) (*appconfig.UpdateConfigurationProfileOutput, error)
UpdateConfigurationProfileWithContext(aws.Context, *appconfig.UpdateConfigurationProfileInput, ...request.Option) (*appconfig.UpdateConfigurationProfileOutput, error)
UpdateConfigurationProfileRequest(*appconfig.UpdateConfigurationProfileInput) (*request.Request, *appconfig.UpdateConfigurationProfileOutput)
UpdateDeploymentStrategy(*appconfig.UpdateDeploymentStrategyInput) (*appconfig.UpdateDeploymentStrategyOutput, error)
UpdateDeploymentStrategyWithContext(aws.Context, *appconfig.UpdateDeploymentStrategyInput, ...request.Option) (*appconfig.UpdateDeploymentStrategyOutput, error)
UpdateDeploymentStrategyRequest(*appconfig.UpdateDeploymentStrategyInput) (*request.Request, *appconfig.UpdateDeploymentStrategyOutput)
UpdateEnvironment(*appconfig.UpdateEnvironmentInput) (*appconfig.UpdateEnvironmentOutput, error)
UpdateEnvironmentWithContext(aws.Context, *appconfig.UpdateEnvironmentInput, ...request.Option) (*appconfig.UpdateEnvironmentOutput, error)
UpdateEnvironmentRequest(*appconfig.UpdateEnvironmentInput) (*request.Request, *appconfig.UpdateEnvironmentOutput)
ValidateConfiguration(*appconfig.ValidateConfigurationInput) (*appconfig.ValidateConfigurationOutput, error)
ValidateConfigurationWithContext(aws.Context, *appconfig.ValidateConfigurationInput, ...request.Option) (*appconfig.ValidateConfigurationOutput, error)
ValidateConfigurationRequest(*appconfig.ValidateConfigurationInput) (*request.Request, *appconfig.ValidateConfigurationOutput)
}
var _ AppConfigAPI = (*appconfig.AppConfig)(nil)
| 215 |
session-manager-plugin | aws | Go | // Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
package appflow
import (
"fmt"
"time"
"github.com/aws/aws-sdk-go/aws"
"github.com/aws/aws-sdk-go/aws/awsutil"
"github.com/aws/aws-sdk-go/aws/request"
"github.com/aws/aws-sdk-go/private/protocol"
"github.com/aws/aws-sdk-go/private/protocol/restjson"
)
const opCreateConnectorProfile = "CreateConnectorProfile"
// CreateConnectorProfileRequest generates a "aws/request.Request" representing the
// client's request for the CreateConnectorProfile 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 CreateConnectorProfile for more information on using the CreateConnectorProfile
// 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 CreateConnectorProfileRequest method.
// req, resp := client.CreateConnectorProfileRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/appflow-2020-08-23/CreateConnectorProfile
func (c *Appflow) CreateConnectorProfileRequest(input *CreateConnectorProfileInput) (req *request.Request, output *CreateConnectorProfileOutput) {
op := &request.Operation{
Name: opCreateConnectorProfile,
HTTPMethod: "POST",
HTTPPath: "/create-connector-profile",
}
if input == nil {
input = &CreateConnectorProfileInput{}
}
output = &CreateConnectorProfileOutput{}
req = c.newRequest(op, input, output)
return
}
// CreateConnectorProfile API operation for Amazon Appflow.
//
// Creates a new connector profile associated with your AWS account. There is
// a soft quota of 100 connector profiles per AWS account. If you need more
// connector profiles than this quota allows, you can submit a request to the
// Amazon AppFlow team through the Amazon AppFlow support channel.
//
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
// with awserr.Error's Code and Message methods to get detailed information about
// the error.
//
// See the AWS API reference guide for Amazon Appflow's
// API operation CreateConnectorProfile for usage and error information.
//
// Returned Error Types:
// * ValidationException
// The request has invalid or missing parameters.
//
// * ConflictException
// There was a conflict when processing the request (for example, a flow with
// the given name already exists within the account. Check for conflicting resource
// names and try again.
//
// * ServiceQuotaExceededException
// The request would cause a service quota (such as the number of flows) to
// be exceeded.
//
// * ConnectorAuthenticationException
// An error occurred when authenticating with the connector endpoint.
//
// * InternalServerException
// An internal service error occurred during the processing of your request.
// Try again later.
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/appflow-2020-08-23/CreateConnectorProfile
func (c *Appflow) CreateConnectorProfile(input *CreateConnectorProfileInput) (*CreateConnectorProfileOutput, error) {
req, out := c.CreateConnectorProfileRequest(input)
return out, req.Send()
}
// CreateConnectorProfileWithContext is the same as CreateConnectorProfile with the addition of
// the ability to pass a context and additional request options.
//
// See CreateConnectorProfile for details on how to use this API operation.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
func (c *Appflow) CreateConnectorProfileWithContext(ctx aws.Context, input *CreateConnectorProfileInput, opts ...request.Option) (*CreateConnectorProfileOutput, error) {
req, out := c.CreateConnectorProfileRequest(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
const opCreateFlow = "CreateFlow"
// CreateFlowRequest generates a "aws/request.Request" representing the
// client's request for the CreateFlow 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 CreateFlow for more information on using the CreateFlow
// 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 CreateFlowRequest method.
// req, resp := client.CreateFlowRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/appflow-2020-08-23/CreateFlow
func (c *Appflow) CreateFlowRequest(input *CreateFlowInput) (req *request.Request, output *CreateFlowOutput) {
op := &request.Operation{
Name: opCreateFlow,
HTTPMethod: "POST",
HTTPPath: "/create-flow",
}
if input == nil {
input = &CreateFlowInput{}
}
output = &CreateFlowOutput{}
req = c.newRequest(op, input, output)
return
}
// CreateFlow API operation for Amazon Appflow.
//
// Enables your application to create a new flow using Amazon AppFlow. You must
// create a connector profile before calling this API. Please note that the
// Request Syntax below shows syntax for multiple destinations, however, you
// can only transfer data to one item in this list at a time. Amazon AppFlow
// does not currently support flows to multiple destinations at once.
//
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
// with awserr.Error's Code and Message methods to get detailed information about
// the error.
//
// See the AWS API reference guide for Amazon Appflow's
// API operation CreateFlow for usage and error information.
//
// Returned Error Types:
// * ValidationException
// The request has invalid or missing parameters.
//
// * InternalServerException
// An internal service error occurred during the processing of your request.
// Try again later.
//
// * ResourceNotFoundException
// The resource specified in the request (such as the source or destination
// connector profile) is not found.
//
// * ServiceQuotaExceededException
// The request would cause a service quota (such as the number of flows) to
// be exceeded.
//
// * ConflictException
// There was a conflict when processing the request (for example, a flow with
// the given name already exists within the account. Check for conflicting resource
// names and try again.
//
// * ConnectorAuthenticationException
// An error occurred when authenticating with the connector endpoint.
//
// * ConnectorServerException
// An error occurred when retrieving data from the connector endpoint.
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/appflow-2020-08-23/CreateFlow
func (c *Appflow) CreateFlow(input *CreateFlowInput) (*CreateFlowOutput, error) {
req, out := c.CreateFlowRequest(input)
return out, req.Send()
}
// CreateFlowWithContext is the same as CreateFlow with the addition of
// the ability to pass a context and additional request options.
//
// See CreateFlow for details on how to use this API operation.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
func (c *Appflow) CreateFlowWithContext(ctx aws.Context, input *CreateFlowInput, opts ...request.Option) (*CreateFlowOutput, error) {
req, out := c.CreateFlowRequest(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
const opDeleteConnectorProfile = "DeleteConnectorProfile"
// DeleteConnectorProfileRequest generates a "aws/request.Request" representing the
// client's request for the DeleteConnectorProfile 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 DeleteConnectorProfile for more information on using the DeleteConnectorProfile
// 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 DeleteConnectorProfileRequest method.
// req, resp := client.DeleteConnectorProfileRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/appflow-2020-08-23/DeleteConnectorProfile
func (c *Appflow) DeleteConnectorProfileRequest(input *DeleteConnectorProfileInput) (req *request.Request, output *DeleteConnectorProfileOutput) {
op := &request.Operation{
Name: opDeleteConnectorProfile,
HTTPMethod: "POST",
HTTPPath: "/delete-connector-profile",
}
if input == nil {
input = &DeleteConnectorProfileInput{}
}
output = &DeleteConnectorProfileOutput{}
req = c.newRequest(op, input, output)
req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
return
}
// DeleteConnectorProfile API operation for Amazon Appflow.
//
// Enables you to delete an existing connector profile.
//
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
// with awserr.Error's Code and Message methods to get detailed information about
// the error.
//
// See the AWS API reference guide for Amazon Appflow's
// API operation DeleteConnectorProfile for usage and error information.
//
// Returned Error Types:
// * ResourceNotFoundException
// The resource specified in the request (such as the source or destination
// connector profile) is not found.
//
// * ConflictException
// There was a conflict when processing the request (for example, a flow with
// the given name already exists within the account. Check for conflicting resource
// names and try again.
//
// * InternalServerException
// An internal service error occurred during the processing of your request.
// Try again later.
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/appflow-2020-08-23/DeleteConnectorProfile
func (c *Appflow) DeleteConnectorProfile(input *DeleteConnectorProfileInput) (*DeleteConnectorProfileOutput, error) {
req, out := c.DeleteConnectorProfileRequest(input)
return out, req.Send()
}
// DeleteConnectorProfileWithContext is the same as DeleteConnectorProfile with the addition of
// the ability to pass a context and additional request options.
//
// See DeleteConnectorProfile for details on how to use this API operation.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
func (c *Appflow) DeleteConnectorProfileWithContext(ctx aws.Context, input *DeleteConnectorProfileInput, opts ...request.Option) (*DeleteConnectorProfileOutput, error) {
req, out := c.DeleteConnectorProfileRequest(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
const opDeleteFlow = "DeleteFlow"
// DeleteFlowRequest generates a "aws/request.Request" representing the
// client's request for the DeleteFlow 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 DeleteFlow for more information on using the DeleteFlow
// 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 DeleteFlowRequest method.
// req, resp := client.DeleteFlowRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/appflow-2020-08-23/DeleteFlow
func (c *Appflow) DeleteFlowRequest(input *DeleteFlowInput) (req *request.Request, output *DeleteFlowOutput) {
op := &request.Operation{
Name: opDeleteFlow,
HTTPMethod: "POST",
HTTPPath: "/delete-flow",
}
if input == nil {
input = &DeleteFlowInput{}
}
output = &DeleteFlowOutput{}
req = c.newRequest(op, input, output)
req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
return
}
// DeleteFlow API operation for Amazon Appflow.
//
// Enables your application to delete an existing flow. Before deleting the
// flow, Amazon AppFlow validates the request by checking the flow configuration
// and status. You can delete flows one at a time.
//
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
// with awserr.Error's Code and Message methods to get detailed information about
// the error.
//
// See the AWS API reference guide for Amazon Appflow's
// API operation DeleteFlow for usage and error information.
//
// Returned Error Types:
// * ResourceNotFoundException
// The resource specified in the request (such as the source or destination
// connector profile) is not found.
//
// * ConflictException
// There was a conflict when processing the request (for example, a flow with
// the given name already exists within the account. Check for conflicting resource
// names and try again.
//
// * InternalServerException
// An internal service error occurred during the processing of your request.
// Try again later.
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/appflow-2020-08-23/DeleteFlow
func (c *Appflow) DeleteFlow(input *DeleteFlowInput) (*DeleteFlowOutput, error) {
req, out := c.DeleteFlowRequest(input)
return out, req.Send()
}
// DeleteFlowWithContext is the same as DeleteFlow with the addition of
// the ability to pass a context and additional request options.
//
// See DeleteFlow for details on how to use this API operation.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
func (c *Appflow) DeleteFlowWithContext(ctx aws.Context, input *DeleteFlowInput, opts ...request.Option) (*DeleteFlowOutput, error) {
req, out := c.DeleteFlowRequest(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
const opDescribeConnectorEntity = "DescribeConnectorEntity"
// DescribeConnectorEntityRequest generates a "aws/request.Request" representing the
// client's request for the DescribeConnectorEntity 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 DescribeConnectorEntity for more information on using the DescribeConnectorEntity
// 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 DescribeConnectorEntityRequest method.
// req, resp := client.DescribeConnectorEntityRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/appflow-2020-08-23/DescribeConnectorEntity
func (c *Appflow) DescribeConnectorEntityRequest(input *DescribeConnectorEntityInput) (req *request.Request, output *DescribeConnectorEntityOutput) {
op := &request.Operation{
Name: opDescribeConnectorEntity,
HTTPMethod: "POST",
HTTPPath: "/describe-connector-entity",
}
if input == nil {
input = &DescribeConnectorEntityInput{}
}
output = &DescribeConnectorEntityOutput{}
req = c.newRequest(op, input, output)
return
}
// DescribeConnectorEntity API operation for Amazon Appflow.
//
// Provides details regarding the entity used with the connector, with a description
// of the data model for each entity.
//
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
// with awserr.Error's Code and Message methods to get detailed information about
// the error.
//
// See the AWS API reference guide for Amazon Appflow's
// API operation DescribeConnectorEntity for usage and error information.
//
// Returned Error Types:
// * ValidationException
// The request has invalid or missing parameters.
//
// * ResourceNotFoundException
// The resource specified in the request (such as the source or destination
// connector profile) is not found.
//
// * ConnectorAuthenticationException
// An error occurred when authenticating with the connector endpoint.
//
// * ConnectorServerException
// An error occurred when retrieving data from the connector endpoint.
//
// * InternalServerException
// An internal service error occurred during the processing of your request.
// Try again later.
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/appflow-2020-08-23/DescribeConnectorEntity
func (c *Appflow) DescribeConnectorEntity(input *DescribeConnectorEntityInput) (*DescribeConnectorEntityOutput, error) {
req, out := c.DescribeConnectorEntityRequest(input)
return out, req.Send()
}
// DescribeConnectorEntityWithContext is the same as DescribeConnectorEntity with the addition of
// the ability to pass a context and additional request options.
//
// See DescribeConnectorEntity for details on how to use this API operation.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
func (c *Appflow) DescribeConnectorEntityWithContext(ctx aws.Context, input *DescribeConnectorEntityInput, opts ...request.Option) (*DescribeConnectorEntityOutput, error) {
req, out := c.DescribeConnectorEntityRequest(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
const opDescribeConnectorProfiles = "DescribeConnectorProfiles"
// DescribeConnectorProfilesRequest generates a "aws/request.Request" representing the
// client's request for the DescribeConnectorProfiles 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 DescribeConnectorProfiles for more information on using the DescribeConnectorProfiles
// 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 DescribeConnectorProfilesRequest method.
// req, resp := client.DescribeConnectorProfilesRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/appflow-2020-08-23/DescribeConnectorProfiles
func (c *Appflow) DescribeConnectorProfilesRequest(input *DescribeConnectorProfilesInput) (req *request.Request, output *DescribeConnectorProfilesOutput) {
op := &request.Operation{
Name: opDescribeConnectorProfiles,
HTTPMethod: "POST",
HTTPPath: "/describe-connector-profiles",
Paginator: &request.Paginator{
InputTokens: []string{"nextToken"},
OutputTokens: []string{"nextToken"},
LimitToken: "maxResults",
TruncationToken: "",
},
}
if input == nil {
input = &DescribeConnectorProfilesInput{}
}
output = &DescribeConnectorProfilesOutput{}
req = c.newRequest(op, input, output)
return
}
// DescribeConnectorProfiles API operation for Amazon Appflow.
//
// Returns a list of connector-profile details matching the provided connector-profile
// names and connector-types. Both input lists are optional, and you can use
// them to filter the result.
//
// If no names or connector-types are provided, returns all connector profiles
// in a paginated form. If there is no match, this operation returns an empty
// list.
//
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
// with awserr.Error's Code and Message methods to get detailed information about
// the error.
//
// See the AWS API reference guide for Amazon Appflow's
// API operation DescribeConnectorProfiles for usage and error information.
//
// Returned Error Types:
// * ValidationException
// The request has invalid or missing parameters.
//
// * InternalServerException
// An internal service error occurred during the processing of your request.
// Try again later.
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/appflow-2020-08-23/DescribeConnectorProfiles
func (c *Appflow) DescribeConnectorProfiles(input *DescribeConnectorProfilesInput) (*DescribeConnectorProfilesOutput, error) {
req, out := c.DescribeConnectorProfilesRequest(input)
return out, req.Send()
}
// DescribeConnectorProfilesWithContext is the same as DescribeConnectorProfiles with the addition of
// the ability to pass a context and additional request options.
//
// See DescribeConnectorProfiles for details on how to use this API operation.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
func (c *Appflow) DescribeConnectorProfilesWithContext(ctx aws.Context, input *DescribeConnectorProfilesInput, opts ...request.Option) (*DescribeConnectorProfilesOutput, error) {
req, out := c.DescribeConnectorProfilesRequest(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
// DescribeConnectorProfilesPages iterates over the pages of a DescribeConnectorProfiles operation,
// calling the "fn" function with the response data for each page. To stop
// iterating, return false from the fn function.
//
// See DescribeConnectorProfiles 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 DescribeConnectorProfiles operation.
// pageNum := 0
// err := client.DescribeConnectorProfilesPages(params,
// func(page *appflow.DescribeConnectorProfilesOutput, lastPage bool) bool {
// pageNum++
// fmt.Println(page)
// return pageNum <= 3
// })
//
func (c *Appflow) DescribeConnectorProfilesPages(input *DescribeConnectorProfilesInput, fn func(*DescribeConnectorProfilesOutput, bool) bool) error {
return c.DescribeConnectorProfilesPagesWithContext(aws.BackgroundContext(), input, fn)
}
// DescribeConnectorProfilesPagesWithContext same as DescribeConnectorProfilesPages except
// it takes a Context and allows setting request options on the pages.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
func (c *Appflow) DescribeConnectorProfilesPagesWithContext(ctx aws.Context, input *DescribeConnectorProfilesInput, fn func(*DescribeConnectorProfilesOutput, bool) bool, opts ...request.Option) error {
p := request.Pagination{
NewRequest: func() (*request.Request, error) {
var inCpy *DescribeConnectorProfilesInput
if input != nil {
tmp := *input
inCpy = &tmp
}
req, _ := c.DescribeConnectorProfilesRequest(inCpy)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return req, nil
},
}
for p.Next() {
if !fn(p.Page().(*DescribeConnectorProfilesOutput), !p.HasNextPage()) {
break
}
}
return p.Err()
}
const opDescribeConnectors = "DescribeConnectors"
// DescribeConnectorsRequest generates a "aws/request.Request" representing the
// client's request for the DescribeConnectors 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 DescribeConnectors for more information on using the DescribeConnectors
// 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 DescribeConnectorsRequest method.
// req, resp := client.DescribeConnectorsRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/appflow-2020-08-23/DescribeConnectors
func (c *Appflow) DescribeConnectorsRequest(input *DescribeConnectorsInput) (req *request.Request, output *DescribeConnectorsOutput) {
op := &request.Operation{
Name: opDescribeConnectors,
HTTPMethod: "POST",
HTTPPath: "/describe-connectors",
Paginator: &request.Paginator{
InputTokens: []string{"nextToken"},
OutputTokens: []string{"nextToken"},
LimitToken: "",
TruncationToken: "",
},
}
if input == nil {
input = &DescribeConnectorsInput{}
}
output = &DescribeConnectorsOutput{}
req = c.newRequest(op, input, output)
return
}
// DescribeConnectors API operation for Amazon Appflow.
//
// Describes the connectors vended by Amazon AppFlow for specified connector
// types. If you don't specify a connector type, this operation describes all
// connectors vended by Amazon AppFlow. If there are more connectors than can
// be returned in one page, the response contains a nextToken object, which
// can be be passed in to the next call to the DescribeConnectors API operation
// to retrieve the next page.
//
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
// with awserr.Error's Code and Message methods to get detailed information about
// the error.
//
// See the AWS API reference guide for Amazon Appflow's
// API operation DescribeConnectors for usage and error information.
//
// Returned Error Types:
// * ValidationException
// The request has invalid or missing parameters.
//
// * InternalServerException
// An internal service error occurred during the processing of your request.
// Try again later.
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/appflow-2020-08-23/DescribeConnectors
func (c *Appflow) DescribeConnectors(input *DescribeConnectorsInput) (*DescribeConnectorsOutput, error) {
req, out := c.DescribeConnectorsRequest(input)
return out, req.Send()
}
// DescribeConnectorsWithContext is the same as DescribeConnectors with the addition of
// the ability to pass a context and additional request options.
//
// See DescribeConnectors for details on how to use this API operation.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
func (c *Appflow) DescribeConnectorsWithContext(ctx aws.Context, input *DescribeConnectorsInput, opts ...request.Option) (*DescribeConnectorsOutput, error) {
req, out := c.DescribeConnectorsRequest(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
// DescribeConnectorsPages iterates over the pages of a DescribeConnectors operation,
// calling the "fn" function with the response data for each page. To stop
// iterating, return false from the fn function.
//
// See DescribeConnectors 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 DescribeConnectors operation.
// pageNum := 0
// err := client.DescribeConnectorsPages(params,
// func(page *appflow.DescribeConnectorsOutput, lastPage bool) bool {
// pageNum++
// fmt.Println(page)
// return pageNum <= 3
// })
//
func (c *Appflow) DescribeConnectorsPages(input *DescribeConnectorsInput, fn func(*DescribeConnectorsOutput, bool) bool) error {
return c.DescribeConnectorsPagesWithContext(aws.BackgroundContext(), input, fn)
}
// DescribeConnectorsPagesWithContext same as DescribeConnectorsPages except
// it takes a Context and allows setting request options on the pages.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
func (c *Appflow) DescribeConnectorsPagesWithContext(ctx aws.Context, input *DescribeConnectorsInput, fn func(*DescribeConnectorsOutput, bool) bool, opts ...request.Option) error {
p := request.Pagination{
NewRequest: func() (*request.Request, error) {
var inCpy *DescribeConnectorsInput
if input != nil {
tmp := *input
inCpy = &tmp
}
req, _ := c.DescribeConnectorsRequest(inCpy)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return req, nil
},
}
for p.Next() {
if !fn(p.Page().(*DescribeConnectorsOutput), !p.HasNextPage()) {
break
}
}
return p.Err()
}
const opDescribeFlow = "DescribeFlow"
// DescribeFlowRequest generates a "aws/request.Request" representing the
// client's request for the DescribeFlow 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 DescribeFlow for more information on using the DescribeFlow
// 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 DescribeFlowRequest method.
// req, resp := client.DescribeFlowRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/appflow-2020-08-23/DescribeFlow
func (c *Appflow) DescribeFlowRequest(input *DescribeFlowInput) (req *request.Request, output *DescribeFlowOutput) {
op := &request.Operation{
Name: opDescribeFlow,
HTTPMethod: "POST",
HTTPPath: "/describe-flow",
}
if input == nil {
input = &DescribeFlowInput{}
}
output = &DescribeFlowOutput{}
req = c.newRequest(op, input, output)
return
}
// DescribeFlow API operation for Amazon Appflow.
//
// Provides a description of the specified flow.
//
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
// with awserr.Error's Code and Message methods to get detailed information about
// the error.
//
// See the AWS API reference guide for Amazon Appflow's
// API operation DescribeFlow for usage and error information.
//
// Returned Error Types:
// * ResourceNotFoundException
// The resource specified in the request (such as the source or destination
// connector profile) is not found.
//
// * InternalServerException
// An internal service error occurred during the processing of your request.
// Try again later.
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/appflow-2020-08-23/DescribeFlow
func (c *Appflow) DescribeFlow(input *DescribeFlowInput) (*DescribeFlowOutput, error) {
req, out := c.DescribeFlowRequest(input)
return out, req.Send()
}
// DescribeFlowWithContext is the same as DescribeFlow with the addition of
// the ability to pass a context and additional request options.
//
// See DescribeFlow for details on how to use this API operation.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
func (c *Appflow) DescribeFlowWithContext(ctx aws.Context, input *DescribeFlowInput, opts ...request.Option) (*DescribeFlowOutput, error) {
req, out := c.DescribeFlowRequest(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
const opDescribeFlowExecutionRecords = "DescribeFlowExecutionRecords"
// DescribeFlowExecutionRecordsRequest generates a "aws/request.Request" representing the
// client's request for the DescribeFlowExecutionRecords 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 DescribeFlowExecutionRecords for more information on using the DescribeFlowExecutionRecords
// 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 DescribeFlowExecutionRecordsRequest method.
// req, resp := client.DescribeFlowExecutionRecordsRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/appflow-2020-08-23/DescribeFlowExecutionRecords
func (c *Appflow) DescribeFlowExecutionRecordsRequest(input *DescribeFlowExecutionRecordsInput) (req *request.Request, output *DescribeFlowExecutionRecordsOutput) {
op := &request.Operation{
Name: opDescribeFlowExecutionRecords,
HTTPMethod: "POST",
HTTPPath: "/describe-flow-execution-records",
Paginator: &request.Paginator{
InputTokens: []string{"nextToken"},
OutputTokens: []string{"nextToken"},
LimitToken: "maxResults",
TruncationToken: "",
},
}
if input == nil {
input = &DescribeFlowExecutionRecordsInput{}
}
output = &DescribeFlowExecutionRecordsOutput{}
req = c.newRequest(op, input, output)
return
}
// DescribeFlowExecutionRecords API operation for Amazon Appflow.
//
// Fetches the execution history of the flow.
//
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
// with awserr.Error's Code and Message methods to get detailed information about
// the error.
//
// See the AWS API reference guide for Amazon Appflow's
// API operation DescribeFlowExecutionRecords for usage and error information.
//
// Returned Error Types:
// * ValidationException
// The request has invalid or missing parameters.
//
// * ResourceNotFoundException
// The resource specified in the request (such as the source or destination
// connector profile) is not found.
//
// * InternalServerException
// An internal service error occurred during the processing of your request.
// Try again later.
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/appflow-2020-08-23/DescribeFlowExecutionRecords
func (c *Appflow) DescribeFlowExecutionRecords(input *DescribeFlowExecutionRecordsInput) (*DescribeFlowExecutionRecordsOutput, error) {
req, out := c.DescribeFlowExecutionRecordsRequest(input)
return out, req.Send()
}
// DescribeFlowExecutionRecordsWithContext is the same as DescribeFlowExecutionRecords with the addition of
// the ability to pass a context and additional request options.
//
// See DescribeFlowExecutionRecords for details on how to use this API operation.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
func (c *Appflow) DescribeFlowExecutionRecordsWithContext(ctx aws.Context, input *DescribeFlowExecutionRecordsInput, opts ...request.Option) (*DescribeFlowExecutionRecordsOutput, error) {
req, out := c.DescribeFlowExecutionRecordsRequest(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
// DescribeFlowExecutionRecordsPages iterates over the pages of a DescribeFlowExecutionRecords operation,
// calling the "fn" function with the response data for each page. To stop
// iterating, return false from the fn function.
//
// See DescribeFlowExecutionRecords 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 DescribeFlowExecutionRecords operation.
// pageNum := 0
// err := client.DescribeFlowExecutionRecordsPages(params,
// func(page *appflow.DescribeFlowExecutionRecordsOutput, lastPage bool) bool {
// pageNum++
// fmt.Println(page)
// return pageNum <= 3
// })
//
func (c *Appflow) DescribeFlowExecutionRecordsPages(input *DescribeFlowExecutionRecordsInput, fn func(*DescribeFlowExecutionRecordsOutput, bool) bool) error {
return c.DescribeFlowExecutionRecordsPagesWithContext(aws.BackgroundContext(), input, fn)
}
// DescribeFlowExecutionRecordsPagesWithContext same as DescribeFlowExecutionRecordsPages except
// it takes a Context and allows setting request options on the pages.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
func (c *Appflow) DescribeFlowExecutionRecordsPagesWithContext(ctx aws.Context, input *DescribeFlowExecutionRecordsInput, fn func(*DescribeFlowExecutionRecordsOutput, bool) bool, opts ...request.Option) error {
p := request.Pagination{
NewRequest: func() (*request.Request, error) {
var inCpy *DescribeFlowExecutionRecordsInput
if input != nil {
tmp := *input
inCpy = &tmp
}
req, _ := c.DescribeFlowExecutionRecordsRequest(inCpy)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return req, nil
},
}
for p.Next() {
if !fn(p.Page().(*DescribeFlowExecutionRecordsOutput), !p.HasNextPage()) {
break
}
}
return p.Err()
}
const opListConnectorEntities = "ListConnectorEntities"
// ListConnectorEntitiesRequest generates a "aws/request.Request" representing the
// client's request for the ListConnectorEntities 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 ListConnectorEntities for more information on using the ListConnectorEntities
// 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 ListConnectorEntitiesRequest method.
// req, resp := client.ListConnectorEntitiesRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/appflow-2020-08-23/ListConnectorEntities
func (c *Appflow) ListConnectorEntitiesRequest(input *ListConnectorEntitiesInput) (req *request.Request, output *ListConnectorEntitiesOutput) {
op := &request.Operation{
Name: opListConnectorEntities,
HTTPMethod: "POST",
HTTPPath: "/list-connector-entities",
}
if input == nil {
input = &ListConnectorEntitiesInput{}
}
output = &ListConnectorEntitiesOutput{}
req = c.newRequest(op, input, output)
return
}
// ListConnectorEntities API operation for Amazon Appflow.
//
// Returns the list of available connector entities supported by Amazon AppFlow.
// For example, you can query Salesforce for Account and Opportunity entities,
// or query ServiceNow for the Incident entity.
//
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
// with awserr.Error's Code and Message methods to get detailed information about
// the error.
//
// See the AWS API reference guide for Amazon Appflow's
// API operation ListConnectorEntities for usage and error information.
//
// Returned Error Types:
// * ValidationException
// The request has invalid or missing parameters.
//
// * ResourceNotFoundException
// The resource specified in the request (such as the source or destination
// connector profile) is not found.
//
// * ConnectorAuthenticationException
// An error occurred when authenticating with the connector endpoint.
//
// * ConnectorServerException
// An error occurred when retrieving data from the connector endpoint.
//
// * InternalServerException
// An internal service error occurred during the processing of your request.
// Try again later.
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/appflow-2020-08-23/ListConnectorEntities
func (c *Appflow) ListConnectorEntities(input *ListConnectorEntitiesInput) (*ListConnectorEntitiesOutput, error) {
req, out := c.ListConnectorEntitiesRequest(input)
return out, req.Send()
}
// ListConnectorEntitiesWithContext is the same as ListConnectorEntities with the addition of
// the ability to pass a context and additional request options.
//
// See ListConnectorEntities for details on how to use this API operation.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
func (c *Appflow) ListConnectorEntitiesWithContext(ctx aws.Context, input *ListConnectorEntitiesInput, opts ...request.Option) (*ListConnectorEntitiesOutput, error) {
req, out := c.ListConnectorEntitiesRequest(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
const opListFlows = "ListFlows"
// ListFlowsRequest generates a "aws/request.Request" representing the
// client's request for the ListFlows 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 ListFlows for more information on using the ListFlows
// 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 ListFlowsRequest method.
// req, resp := client.ListFlowsRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/appflow-2020-08-23/ListFlows
func (c *Appflow) ListFlowsRequest(input *ListFlowsInput) (req *request.Request, output *ListFlowsOutput) {
op := &request.Operation{
Name: opListFlows,
HTTPMethod: "POST",
HTTPPath: "/list-flows",
Paginator: &request.Paginator{
InputTokens: []string{"nextToken"},
OutputTokens: []string{"nextToken"},
LimitToken: "maxResults",
TruncationToken: "",
},
}
if input == nil {
input = &ListFlowsInput{}
}
output = &ListFlowsOutput{}
req = c.newRequest(op, input, output)
return
}
// ListFlows API operation for Amazon Appflow.
//
// Lists all of the flows associated with your 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 Amazon Appflow's
// API operation ListFlows for usage and error information.
//
// Returned Error Types:
// * ValidationException
// The request has invalid or missing parameters.
//
// * InternalServerException
// An internal service error occurred during the processing of your request.
// Try again later.
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/appflow-2020-08-23/ListFlows
func (c *Appflow) ListFlows(input *ListFlowsInput) (*ListFlowsOutput, error) {
req, out := c.ListFlowsRequest(input)
return out, req.Send()
}
// ListFlowsWithContext is the same as ListFlows with the addition of
// the ability to pass a context and additional request options.
//
// See ListFlows for details on how to use this API operation.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
func (c *Appflow) ListFlowsWithContext(ctx aws.Context, input *ListFlowsInput, opts ...request.Option) (*ListFlowsOutput, error) {
req, out := c.ListFlowsRequest(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
// ListFlowsPages iterates over the pages of a ListFlows operation,
// calling the "fn" function with the response data for each page. To stop
// iterating, return false from the fn function.
//
// See ListFlows 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 ListFlows operation.
// pageNum := 0
// err := client.ListFlowsPages(params,
// func(page *appflow.ListFlowsOutput, lastPage bool) bool {
// pageNum++
// fmt.Println(page)
// return pageNum <= 3
// })
//
func (c *Appflow) ListFlowsPages(input *ListFlowsInput, fn func(*ListFlowsOutput, bool) bool) error {
return c.ListFlowsPagesWithContext(aws.BackgroundContext(), input, fn)
}
// ListFlowsPagesWithContext same as ListFlowsPages except
// it takes a Context and allows setting request options on the pages.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
func (c *Appflow) ListFlowsPagesWithContext(ctx aws.Context, input *ListFlowsInput, fn func(*ListFlowsOutput, bool) bool, opts ...request.Option) error {
p := request.Pagination{
NewRequest: func() (*request.Request, error) {
var inCpy *ListFlowsInput
if input != nil {
tmp := *input
inCpy = &tmp
}
req, _ := c.ListFlowsRequest(inCpy)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return req, nil
},
}
for p.Next() {
if !fn(p.Page().(*ListFlowsOutput), !p.HasNextPage()) {
break
}
}
return p.Err()
}
const opListTagsForResource = "ListTagsForResource"
// ListTagsForResourceRequest generates a "aws/request.Request" representing the
// client's request for the ListTagsForResource operation. The "output" return
// value will be populated with the request's response once the request completes
// successfully.
//
// Use "Send" method on the returned Request to send the API call to the service.
// the "output" return value is not valid until after Send returns without error.
//
// See ListTagsForResource for more information on using the ListTagsForResource
// API call, and error handling.
//
// This method is useful when you want to inject custom logic or configuration
// into the SDK's request lifecycle. Such as custom headers, or retry logic.
//
//
// // Example sending a request using the ListTagsForResourceRequest method.
// req, resp := client.ListTagsForResourceRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/appflow-2020-08-23/ListTagsForResource
func (c *Appflow) ListTagsForResourceRequest(input *ListTagsForResourceInput) (req *request.Request, output *ListTagsForResourceOutput) {
op := &request.Operation{
Name: opListTagsForResource,
HTTPMethod: "GET",
HTTPPath: "/tags/{resourceArn}",
}
if input == nil {
input = &ListTagsForResourceInput{}
}
output = &ListTagsForResourceOutput{}
req = c.newRequest(op, input, output)
return
}
// ListTagsForResource API operation for Amazon Appflow.
//
// Retrieves the tags that are associated with a specified flow.
//
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
// with awserr.Error's Code and Message methods to get detailed information about
// the error.
//
// See the AWS API reference guide for Amazon Appflow's
// API operation ListTagsForResource for usage and error information.
//
// Returned Error Types:
// * InternalServerException
// An internal service error occurred during the processing of your request.
// Try again later.
//
// * ValidationException
// The request has invalid or missing parameters.
//
// * ResourceNotFoundException
// The resource specified in the request (such as the source or destination
// connector profile) is not found.
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/appflow-2020-08-23/ListTagsForResource
func (c *Appflow) ListTagsForResource(input *ListTagsForResourceInput) (*ListTagsForResourceOutput, error) {
req, out := c.ListTagsForResourceRequest(input)
return out, req.Send()
}
// ListTagsForResourceWithContext is the same as ListTagsForResource with the addition of
// the ability to pass a context and additional request options.
//
// See ListTagsForResource for details on how to use this API operation.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
func (c *Appflow) ListTagsForResourceWithContext(ctx aws.Context, input *ListTagsForResourceInput, opts ...request.Option) (*ListTagsForResourceOutput, error) {
req, out := c.ListTagsForResourceRequest(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
const opStartFlow = "StartFlow"
// StartFlowRequest generates a "aws/request.Request" representing the
// client's request for the StartFlow 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 StartFlow for more information on using the StartFlow
// 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 StartFlowRequest method.
// req, resp := client.StartFlowRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/appflow-2020-08-23/StartFlow
func (c *Appflow) StartFlowRequest(input *StartFlowInput) (req *request.Request, output *StartFlowOutput) {
op := &request.Operation{
Name: opStartFlow,
HTTPMethod: "POST",
HTTPPath: "/start-flow",
}
if input == nil {
input = &StartFlowInput{}
}
output = &StartFlowOutput{}
req = c.newRequest(op, input, output)
return
}
// StartFlow API operation for Amazon Appflow.
//
// Activates an existing flow. For on-demand flows, this operation runs the
// flow immediately. For schedule and event-triggered flows, this operation
// activates the flow.
//
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
// with awserr.Error's Code and Message methods to get detailed information about
// the error.
//
// See the AWS API reference guide for Amazon Appflow's
// API operation StartFlow for usage and error information.
//
// Returned Error Types:
// * ResourceNotFoundException
// The resource specified in the request (such as the source or destination
// connector profile) is not found.
//
// * InternalServerException
// An internal service error occurred during the processing of your request.
// Try again later.
//
// * ServiceQuotaExceededException
// The request would cause a service quota (such as the number of flows) to
// be exceeded.
//
// * ConflictException
// There was a conflict when processing the request (for example, a flow with
// the given name already exists within the account. Check for conflicting resource
// names and try again.
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/appflow-2020-08-23/StartFlow
func (c *Appflow) StartFlow(input *StartFlowInput) (*StartFlowOutput, error) {
req, out := c.StartFlowRequest(input)
return out, req.Send()
}
// StartFlowWithContext is the same as StartFlow with the addition of
// the ability to pass a context and additional request options.
//
// See StartFlow for details on how to use this API operation.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
func (c *Appflow) StartFlowWithContext(ctx aws.Context, input *StartFlowInput, opts ...request.Option) (*StartFlowOutput, error) {
req, out := c.StartFlowRequest(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
const opStopFlow = "StopFlow"
// StopFlowRequest generates a "aws/request.Request" representing the
// client's request for the StopFlow 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 StopFlow for more information on using the StopFlow
// 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 StopFlowRequest method.
// req, resp := client.StopFlowRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/appflow-2020-08-23/StopFlow
func (c *Appflow) StopFlowRequest(input *StopFlowInput) (req *request.Request, output *StopFlowOutput) {
op := &request.Operation{
Name: opStopFlow,
HTTPMethod: "POST",
HTTPPath: "/stop-flow",
}
if input == nil {
input = &StopFlowInput{}
}
output = &StopFlowOutput{}
req = c.newRequest(op, input, output)
return
}
// StopFlow API operation for Amazon Appflow.
//
// Deactivates the existing flow. For on-demand flows, this operation returns
// an unsupportedOperationException error message. For schedule and event-triggered
// flows, this operation deactivates the flow.
//
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
// with awserr.Error's Code and Message methods to get detailed information about
// the error.
//
// See the AWS API reference guide for Amazon Appflow's
// API operation StopFlow for usage and error information.
//
// Returned Error Types:
// * ConflictException
// There was a conflict when processing the request (for example, a flow with
// the given name already exists within the account. Check for conflicting resource
// names and try again.
//
// * ResourceNotFoundException
// The resource specified in the request (such as the source or destination
// connector profile) is not found.
//
// * UnsupportedOperationException
// The requested operation is not supported for the current flow.
//
// * InternalServerException
// An internal service error occurred during the processing of your request.
// Try again later.
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/appflow-2020-08-23/StopFlow
func (c *Appflow) StopFlow(input *StopFlowInput) (*StopFlowOutput, error) {
req, out := c.StopFlowRequest(input)
return out, req.Send()
}
// StopFlowWithContext is the same as StopFlow with the addition of
// the ability to pass a context and additional request options.
//
// See StopFlow for details on how to use this API operation.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
func (c *Appflow) StopFlowWithContext(ctx aws.Context, input *StopFlowInput, opts ...request.Option) (*StopFlowOutput, error) {
req, out := c.StopFlowRequest(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
const opTagResource = "TagResource"
// TagResourceRequest generates a "aws/request.Request" representing the
// client's request for the TagResource operation. The "output" return
// value will be populated with the request's response once the request completes
// successfully.
//
// Use "Send" method on the returned Request to send the API call to the service.
// the "output" return value is not valid until after Send returns without error.
//
// See TagResource for more information on using the TagResource
// API call, and error handling.
//
// This method is useful when you want to inject custom logic or configuration
// into the SDK's request lifecycle. Such as custom headers, or retry logic.
//
//
// // Example sending a request using the TagResourceRequest method.
// req, resp := client.TagResourceRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/appflow-2020-08-23/TagResource
func (c *Appflow) TagResourceRequest(input *TagResourceInput) (req *request.Request, output *TagResourceOutput) {
op := &request.Operation{
Name: opTagResource,
HTTPMethod: "POST",
HTTPPath: "/tags/{resourceArn}",
}
if input == nil {
input = &TagResourceInput{}
}
output = &TagResourceOutput{}
req = c.newRequest(op, input, output)
req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
return
}
// TagResource API operation for Amazon Appflow.
//
// Applies a tag to the specified flow.
//
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
// with awserr.Error's Code and Message methods to get detailed information about
// the error.
//
// See the AWS API reference guide for Amazon Appflow's
// API operation TagResource for usage and error information.
//
// Returned Error Types:
// * InternalServerException
// An internal service error occurred during the processing of your request.
// Try again later.
//
// * ValidationException
// The request has invalid or missing parameters.
//
// * ResourceNotFoundException
// The resource specified in the request (such as the source or destination
// connector profile) is not found.
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/appflow-2020-08-23/TagResource
func (c *Appflow) TagResource(input *TagResourceInput) (*TagResourceOutput, error) {
req, out := c.TagResourceRequest(input)
return out, req.Send()
}
// TagResourceWithContext is the same as TagResource with the addition of
// the ability to pass a context and additional request options.
//
// See TagResource for details on how to use this API operation.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
func (c *Appflow) TagResourceWithContext(ctx aws.Context, input *TagResourceInput, opts ...request.Option) (*TagResourceOutput, error) {
req, out := c.TagResourceRequest(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
const opUntagResource = "UntagResource"
// UntagResourceRequest generates a "aws/request.Request" representing the
// client's request for the UntagResource operation. The "output" return
// value will be populated with the request's response once the request completes
// successfully.
//
// Use "Send" method on the returned Request to send the API call to the service.
// the "output" return value is not valid until after Send returns without error.
//
// See UntagResource for more information on using the UntagResource
// API call, and error handling.
//
// This method is useful when you want to inject custom logic or configuration
// into the SDK's request lifecycle. Such as custom headers, or retry logic.
//
//
// // Example sending a request using the UntagResourceRequest method.
// req, resp := client.UntagResourceRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/appflow-2020-08-23/UntagResource
func (c *Appflow) UntagResourceRequest(input *UntagResourceInput) (req *request.Request, output *UntagResourceOutput) {
op := &request.Operation{
Name: opUntagResource,
HTTPMethod: "DELETE",
HTTPPath: "/tags/{resourceArn}",
}
if input == nil {
input = &UntagResourceInput{}
}
output = &UntagResourceOutput{}
req = c.newRequest(op, input, output)
req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
return
}
// UntagResource API operation for Amazon Appflow.
//
// Removes a tag from the specified flow.
//
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
// with awserr.Error's Code and Message methods to get detailed information about
// the error.
//
// See the AWS API reference guide for Amazon Appflow's
// API operation UntagResource for usage and error information.
//
// Returned Error Types:
// * InternalServerException
// An internal service error occurred during the processing of your request.
// Try again later.
//
// * ValidationException
// The request has invalid or missing parameters.
//
// * ResourceNotFoundException
// The resource specified in the request (such as the source or destination
// connector profile) is not found.
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/appflow-2020-08-23/UntagResource
func (c *Appflow) UntagResource(input *UntagResourceInput) (*UntagResourceOutput, error) {
req, out := c.UntagResourceRequest(input)
return out, req.Send()
}
// UntagResourceWithContext is the same as UntagResource with the addition of
// the ability to pass a context and additional request options.
//
// See UntagResource for details on how to use this API operation.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
func (c *Appflow) UntagResourceWithContext(ctx aws.Context, input *UntagResourceInput, opts ...request.Option) (*UntagResourceOutput, error) {
req, out := c.UntagResourceRequest(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
const opUpdateConnectorProfile = "UpdateConnectorProfile"
// UpdateConnectorProfileRequest generates a "aws/request.Request" representing the
// client's request for the UpdateConnectorProfile 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 UpdateConnectorProfile for more information on using the UpdateConnectorProfile
// 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 UpdateConnectorProfileRequest method.
// req, resp := client.UpdateConnectorProfileRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/appflow-2020-08-23/UpdateConnectorProfile
func (c *Appflow) UpdateConnectorProfileRequest(input *UpdateConnectorProfileInput) (req *request.Request, output *UpdateConnectorProfileOutput) {
op := &request.Operation{
Name: opUpdateConnectorProfile,
HTTPMethod: "POST",
HTTPPath: "/update-connector-profile",
}
if input == nil {
input = &UpdateConnectorProfileInput{}
}
output = &UpdateConnectorProfileOutput{}
req = c.newRequest(op, input, output)
return
}
// UpdateConnectorProfile API operation for Amazon Appflow.
//
// Updates a given connector profile associated with your 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 Amazon Appflow's
// API operation UpdateConnectorProfile for usage and error information.
//
// Returned Error Types:
// * ValidationException
// The request has invalid or missing parameters.
//
// * ResourceNotFoundException
// The resource specified in the request (such as the source or destination
// connector profile) is not found.
//
// * ConflictException
// There was a conflict when processing the request (for example, a flow with
// the given name already exists within the account. Check for conflicting resource
// names and try again.
//
// * ConnectorAuthenticationException
// An error occurred when authenticating with the connector endpoint.
//
// * InternalServerException
// An internal service error occurred during the processing of your request.
// Try again later.
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/appflow-2020-08-23/UpdateConnectorProfile
func (c *Appflow) UpdateConnectorProfile(input *UpdateConnectorProfileInput) (*UpdateConnectorProfileOutput, error) {
req, out := c.UpdateConnectorProfileRequest(input)
return out, req.Send()
}
// UpdateConnectorProfileWithContext is the same as UpdateConnectorProfile with the addition of
// the ability to pass a context and additional request options.
//
// See UpdateConnectorProfile for details on how to use this API operation.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
func (c *Appflow) UpdateConnectorProfileWithContext(ctx aws.Context, input *UpdateConnectorProfileInput, opts ...request.Option) (*UpdateConnectorProfileOutput, error) {
req, out := c.UpdateConnectorProfileRequest(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
const opUpdateFlow = "UpdateFlow"
// UpdateFlowRequest generates a "aws/request.Request" representing the
// client's request for the UpdateFlow 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 UpdateFlow for more information on using the UpdateFlow
// 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 UpdateFlowRequest method.
// req, resp := client.UpdateFlowRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/appflow-2020-08-23/UpdateFlow
func (c *Appflow) UpdateFlowRequest(input *UpdateFlowInput) (req *request.Request, output *UpdateFlowOutput) {
op := &request.Operation{
Name: opUpdateFlow,
HTTPMethod: "POST",
HTTPPath: "/update-flow",
}
if input == nil {
input = &UpdateFlowInput{}
}
output = &UpdateFlowOutput{}
req = c.newRequest(op, input, output)
return
}
// UpdateFlow API operation for Amazon Appflow.
//
// Updates an existing flow.
//
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
// with awserr.Error's Code and Message methods to get detailed information about
// the error.
//
// See the AWS API reference guide for Amazon Appflow's
// API operation UpdateFlow for usage and error information.
//
// Returned Error Types:
// * ValidationException
// The request has invalid or missing parameters.
//
// * ResourceNotFoundException
// The resource specified in the request (such as the source or destination
// connector profile) is not found.
//
// * ServiceQuotaExceededException
// The request would cause a service quota (such as the number of flows) to
// be exceeded.
//
// * ConflictException
// There was a conflict when processing the request (for example, a flow with
// the given name already exists within the account. Check for conflicting resource
// names and try again.
//
// * ConnectorAuthenticationException
// An error occurred when authenticating with the connector endpoint.
//
// * ConnectorServerException
// An error occurred when retrieving data from the connector endpoint.
//
// * InternalServerException
// An internal service error occurred during the processing of your request.
// Try again later.
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/appflow-2020-08-23/UpdateFlow
func (c *Appflow) UpdateFlow(input *UpdateFlowInput) (*UpdateFlowOutput, error) {
req, out := c.UpdateFlowRequest(input)
return out, req.Send()
}
// UpdateFlowWithContext is the same as UpdateFlow with the addition of
// the ability to pass a context and additional request options.
//
// See UpdateFlow for details on how to use this API operation.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
func (c *Appflow) UpdateFlowWithContext(ctx aws.Context, input *UpdateFlowInput, opts ...request.Option) (*UpdateFlowOutput, error) {
req, out := c.UpdateFlowRequest(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
// The aggregation settings that you can use to customize the output format
// of your flow data.
type AggregationConfig struct {
_ struct{} `type:"structure"`
// Specifies whether Amazon AppFlow aggregates the flow records into a single
// file, or leave them unaggregated.
AggregationType *string `locationName:"aggregationType" type:"string" enum:"AggregationType"`
}
// String returns the string representation
func (s AggregationConfig) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s AggregationConfig) GoString() string {
return s.String()
}
// SetAggregationType sets the AggregationType field's value.
func (s *AggregationConfig) SetAggregationType(v string) *AggregationConfig {
s.AggregationType = &v
return s
}
// The connector-specific credentials required when using Amplitude.
type AmplitudeConnectorProfileCredentials struct {
_ struct{} `type:"structure"`
// A unique alphanumeric identifier used to authenticate a user, developer,
// or calling program to your API.
//
// ApiKey is a required field
ApiKey *string `locationName:"apiKey" type:"string" required:"true"`
// The Secret Access Key portion of the credentials.
//
// SecretKey is a required field
SecretKey *string `locationName:"secretKey" type:"string" required:"true" sensitive:"true"`
}
// String returns the string representation
func (s AmplitudeConnectorProfileCredentials) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s AmplitudeConnectorProfileCredentials) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
func (s *AmplitudeConnectorProfileCredentials) Validate() error {
invalidParams := request.ErrInvalidParams{Context: "AmplitudeConnectorProfileCredentials"}
if s.ApiKey == nil {
invalidParams.Add(request.NewErrParamRequired("ApiKey"))
}
if s.SecretKey == nil {
invalidParams.Add(request.NewErrParamRequired("SecretKey"))
}
if invalidParams.Len() > 0 {
return invalidParams
}
return nil
}
// SetApiKey sets the ApiKey field's value.
func (s *AmplitudeConnectorProfileCredentials) SetApiKey(v string) *AmplitudeConnectorProfileCredentials {
s.ApiKey = &v
return s
}
// SetSecretKey sets the SecretKey field's value.
func (s *AmplitudeConnectorProfileCredentials) SetSecretKey(v string) *AmplitudeConnectorProfileCredentials {
s.SecretKey = &v
return s
}
// The connector-specific profile properties required when using Amplitude.
type AmplitudeConnectorProfileProperties struct {
_ struct{} `type:"structure"`
}
// String returns the string representation
func (s AmplitudeConnectorProfileProperties) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s AmplitudeConnectorProfileProperties) GoString() string {
return s.String()
}
// The connector metadata specific to Amplitude.
type AmplitudeMetadata struct {
_ struct{} `type:"structure"`
}
// String returns the string representation
func (s AmplitudeMetadata) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s AmplitudeMetadata) GoString() string {
return s.String()
}
// The properties that are applied when Amplitude is being used as a source.
type AmplitudeSourceProperties struct {
_ struct{} `type:"structure"`
// The object specified in the Amplitude flow source.
//
// Object is a required field
Object *string `locationName:"object" type:"string" required:"true"`
}
// String returns the string representation
func (s AmplitudeSourceProperties) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s AmplitudeSourceProperties) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
func (s *AmplitudeSourceProperties) Validate() error {
invalidParams := request.ErrInvalidParams{Context: "AmplitudeSourceProperties"}
if s.Object == nil {
invalidParams.Add(request.NewErrParamRequired("Object"))
}
if invalidParams.Len() > 0 {
return invalidParams
}
return nil
}
// SetObject sets the Object field's value.
func (s *AmplitudeSourceProperties) SetObject(v string) *AmplitudeSourceProperties {
s.Object = &v
return s
}
// There was a conflict when processing the request (for example, a flow with
// the given name already exists within the account. Check for conflicting resource
// names and try again.
type ConflictException struct {
_ struct{} `type:"structure"`
RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
// String returns the string representation
func (s ConflictException) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s ConflictException) GoString() string {
return s.String()
}
func newErrorConflictException(v protocol.ResponseMetadata) error {
return &ConflictException{
RespMetadata: v,
}
}
// Code returns the exception type name.
func (s *ConflictException) Code() string {
return "ConflictException"
}
// Message returns the exception's message.
func (s *ConflictException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
return ""
}
// OrigErr always returns nil, satisfies awserr.Error interface.
func (s *ConflictException) OrigErr() error {
return nil
}
func (s *ConflictException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
func (s *ConflictException) StatusCode() int {
return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
func (s *ConflictException) RequestID() string {
return s.RespMetadata.RequestID
}
// An error occurred when authenticating with the connector endpoint.
type ConnectorAuthenticationException struct {
_ struct{} `type:"structure"`
RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
// String returns the string representation
func (s ConnectorAuthenticationException) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s ConnectorAuthenticationException) GoString() string {
return s.String()
}
func newErrorConnectorAuthenticationException(v protocol.ResponseMetadata) error {
return &ConnectorAuthenticationException{
RespMetadata: v,
}
}
// Code returns the exception type name.
func (s *ConnectorAuthenticationException) Code() string {
return "ConnectorAuthenticationException"
}
// Message returns the exception's message.
func (s *ConnectorAuthenticationException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
return ""
}
// OrigErr always returns nil, satisfies awserr.Error interface.
func (s *ConnectorAuthenticationException) OrigErr() error {
return nil
}
func (s *ConnectorAuthenticationException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
func (s *ConnectorAuthenticationException) StatusCode() int {
return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
func (s *ConnectorAuthenticationException) RequestID() string {
return s.RespMetadata.RequestID
}
// The configuration settings related to a given connector.
type ConnectorConfiguration struct {
_ struct{} `type:"structure"`
// Specifies whether the connector can be used as a destination.
CanUseAsDestination *bool `locationName:"canUseAsDestination" type:"boolean"`
// Specifies whether the connector can be used as a source.
CanUseAsSource *bool `locationName:"canUseAsSource" type:"boolean"`
// Specifies connector-specific metadata such as oAuthScopes, supportedRegions,
// privateLinkServiceUrl, and so on.
ConnectorMetadata *ConnectorMetadata `locationName:"connectorMetadata" type:"structure"`
// Specifies if PrivateLink is enabled for that connector.
IsPrivateLinkEnabled *bool `locationName:"isPrivateLinkEnabled" type:"boolean"`
// Specifies if a PrivateLink endpoint URL is required.
IsPrivateLinkEndpointUrlRequired *bool `locationName:"isPrivateLinkEndpointUrlRequired" type:"boolean"`
// Lists the connectors that are available for use as destinations.
SupportedDestinationConnectors []*string `locationName:"supportedDestinationConnectors" type:"list"`
// Specifies the supported flow frequency for that connector.
SupportedSchedulingFrequencies []*string `locationName:"supportedSchedulingFrequencies" type:"list"`
// Specifies the supported trigger types for the flow.
SupportedTriggerTypes []*string `locationName:"supportedTriggerTypes" type:"list"`
}
// String returns the string representation
func (s ConnectorConfiguration) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s ConnectorConfiguration) GoString() string {
return s.String()
}
// SetCanUseAsDestination sets the CanUseAsDestination field's value.
func (s *ConnectorConfiguration) SetCanUseAsDestination(v bool) *ConnectorConfiguration {
s.CanUseAsDestination = &v
return s
}
// SetCanUseAsSource sets the CanUseAsSource field's value.
func (s *ConnectorConfiguration) SetCanUseAsSource(v bool) *ConnectorConfiguration {
s.CanUseAsSource = &v
return s
}
// SetConnectorMetadata sets the ConnectorMetadata field's value.
func (s *ConnectorConfiguration) SetConnectorMetadata(v *ConnectorMetadata) *ConnectorConfiguration {
s.ConnectorMetadata = v
return s
}
// SetIsPrivateLinkEnabled sets the IsPrivateLinkEnabled field's value.
func (s *ConnectorConfiguration) SetIsPrivateLinkEnabled(v bool) *ConnectorConfiguration {
s.IsPrivateLinkEnabled = &v
return s
}
// SetIsPrivateLinkEndpointUrlRequired sets the IsPrivateLinkEndpointUrlRequired field's value.
func (s *ConnectorConfiguration) SetIsPrivateLinkEndpointUrlRequired(v bool) *ConnectorConfiguration {
s.IsPrivateLinkEndpointUrlRequired = &v
return s
}
// SetSupportedDestinationConnectors sets the SupportedDestinationConnectors field's value.
func (s *ConnectorConfiguration) SetSupportedDestinationConnectors(v []*string) *ConnectorConfiguration {
s.SupportedDestinationConnectors = v
return s
}
// SetSupportedSchedulingFrequencies sets the SupportedSchedulingFrequencies field's value.
func (s *ConnectorConfiguration) SetSupportedSchedulingFrequencies(v []*string) *ConnectorConfiguration {
s.SupportedSchedulingFrequencies = v
return s
}
// SetSupportedTriggerTypes sets the SupportedTriggerTypes field's value.
func (s *ConnectorConfiguration) SetSupportedTriggerTypes(v []*string) *ConnectorConfiguration {
s.SupportedTriggerTypes = v
return s
}
// The high-level entity that can be queried in Amazon AppFlow. For example,
// a Salesforce entity might be an Account or Opportunity, whereas a ServiceNow
// entity might be an Incident.
type ConnectorEntity struct {
_ struct{} `type:"structure"`
// Specifies whether the connector entity is a parent or a category and has
// more entities nested underneath it. If another call is made with entitiesPath
// = "the_current_entity_name_with_hasNestedEntities_true", then it returns
// the nested entities underneath it. This provides a way to retrieve all supported
// entities in a recursive fashion.
HasNestedEntities *bool `locationName:"hasNestedEntities" type:"boolean"`
// The label applied to the connector entity.
Label *string `locationName:"label" type:"string"`
// The name of the connector entity.
//
// Name is a required field
Name *string `locationName:"name" type:"string" required:"true"`
}
// String returns the string representation
func (s ConnectorEntity) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s ConnectorEntity) GoString() string {
return s.String()
}
// SetHasNestedEntities sets the HasNestedEntities field's value.
func (s *ConnectorEntity) SetHasNestedEntities(v bool) *ConnectorEntity {
s.HasNestedEntities = &v
return s
}
// SetLabel sets the Label field's value.
func (s *ConnectorEntity) SetLabel(v string) *ConnectorEntity {
s.Label = &v
return s
}
// SetName sets the Name field's value.
func (s *ConnectorEntity) SetName(v string) *ConnectorEntity {
s.Name = &v
return s
}
// Describes the data model of a connector field. For example, for an account
// entity, the fields would be account name, account ID, and so on.
type ConnectorEntityField struct {
_ struct{} `type:"structure"`
// A description of the connector entity field.
Description *string `locationName:"description" type:"string"`
// The properties applied to a field when the connector is being used as a destination.
DestinationProperties *DestinationFieldProperties `locationName:"destinationProperties" type:"structure"`
// The unique identifier of the connector field.
//
// Identifier is a required field
Identifier *string `locationName:"identifier" type:"string" required:"true"`
// The label applied to a connector entity field.
Label *string `locationName:"label" type:"string"`
// The properties that can be applied to a field when the connector is being
// used as a source.
SourceProperties *SourceFieldProperties `locationName:"sourceProperties" type:"structure"`
// Contains details regarding the supported FieldType, including the corresponding
// filterOperators and supportedValues.
SupportedFieldTypeDetails *SupportedFieldTypeDetails `locationName:"supportedFieldTypeDetails" type:"structure"`
}
// String returns the string representation
func (s ConnectorEntityField) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s ConnectorEntityField) GoString() string {
return s.String()
}
// SetDescription sets the Description field's value.
func (s *ConnectorEntityField) SetDescription(v string) *ConnectorEntityField {
s.Description = &v
return s
}
// SetDestinationProperties sets the DestinationProperties field's value.
func (s *ConnectorEntityField) SetDestinationProperties(v *DestinationFieldProperties) *ConnectorEntityField {
s.DestinationProperties = v
return s
}
// SetIdentifier sets the Identifier field's value.
func (s *ConnectorEntityField) SetIdentifier(v string) *ConnectorEntityField {
s.Identifier = &v
return s
}
// SetLabel sets the Label field's value.
func (s *ConnectorEntityField) SetLabel(v string) *ConnectorEntityField {
s.Label = &v
return s
}
// SetSourceProperties sets the SourceProperties field's value.
func (s *ConnectorEntityField) SetSourceProperties(v *SourceFieldProperties) *ConnectorEntityField {
s.SourceProperties = v
return s
}
// SetSupportedFieldTypeDetails sets the SupportedFieldTypeDetails field's value.
func (s *ConnectorEntityField) SetSupportedFieldTypeDetails(v *SupportedFieldTypeDetails) *ConnectorEntityField {
s.SupportedFieldTypeDetails = v
return s
}
// A structure to specify connector-specific metadata such as oAuthScopes, supportedRegions,
// privateLinkServiceUrl, and so on.
type ConnectorMetadata struct {
_ struct{} `type:"structure"`
// The connector metadata specific to Amplitude.
Amplitude *AmplitudeMetadata `type:"structure"`
// The connector metadata specific to Amazon Connect Customer Profiles.
CustomerProfiles *CustomerProfilesMetadata `type:"structure"`
// The connector metadata specific to Datadog.
Datadog *DatadogMetadata `type:"structure"`
// The connector metadata specific to Dynatrace.
Dynatrace *DynatraceMetadata `type:"structure"`
// The connector metadata specific to Amazon EventBridge.
EventBridge *EventBridgeMetadata `type:"structure"`
// The connector metadata specific to Google Analytics.
GoogleAnalytics *GoogleAnalyticsMetadata `type:"structure"`
// The connector metadata specific to Amazon Honeycode.
Honeycode *HoneycodeMetadata `type:"structure"`
// The connector metadata specific to Infor Nexus.
InforNexus *InforNexusMetadata `type:"structure"`
// The connector metadata specific to Marketo.
Marketo *MarketoMetadata `type:"structure"`
// The connector metadata specific to Amazon Redshift.
Redshift *RedshiftMetadata `type:"structure"`
// The connector metadata specific to Amazon S3.
S3 *S3Metadata `type:"structure"`
// The connector metadata specific to Salesforce.
Salesforce *SalesforceMetadata `type:"structure"`
// The connector metadata specific to ServiceNow.
ServiceNow *ServiceNowMetadata `type:"structure"`
// The connector metadata specific to Singular.
Singular *SingularMetadata `type:"structure"`
// The connector metadata specific to Slack.
Slack *SlackMetadata `type:"structure"`
// The connector metadata specific to Snowflake.
Snowflake *SnowflakeMetadata `type:"structure"`
// The connector metadata specific to Trend Micro.
Trendmicro *TrendmicroMetadata `type:"structure"`
// The connector metadata specific to Upsolver.
Upsolver *UpsolverMetadata `type:"structure"`
// The connector metadata specific to Veeva.
Veeva *VeevaMetadata `type:"structure"`
// The connector metadata specific to Zendesk.
Zendesk *ZendeskMetadata `type:"structure"`
}
// String returns the string representation
func (s ConnectorMetadata) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s ConnectorMetadata) GoString() string {
return s.String()
}
// SetAmplitude sets the Amplitude field's value.
func (s *ConnectorMetadata) SetAmplitude(v *AmplitudeMetadata) *ConnectorMetadata {
s.Amplitude = v
return s
}
// SetCustomerProfiles sets the CustomerProfiles field's value.
func (s *ConnectorMetadata) SetCustomerProfiles(v *CustomerProfilesMetadata) *ConnectorMetadata {
s.CustomerProfiles = v
return s
}
// SetDatadog sets the Datadog field's value.
func (s *ConnectorMetadata) SetDatadog(v *DatadogMetadata) *ConnectorMetadata {
s.Datadog = v
return s
}
// SetDynatrace sets the Dynatrace field's value.
func (s *ConnectorMetadata) SetDynatrace(v *DynatraceMetadata) *ConnectorMetadata {
s.Dynatrace = v
return s
}
// SetEventBridge sets the EventBridge field's value.
func (s *ConnectorMetadata) SetEventBridge(v *EventBridgeMetadata) *ConnectorMetadata {
s.EventBridge = v
return s
}
// SetGoogleAnalytics sets the GoogleAnalytics field's value.
func (s *ConnectorMetadata) SetGoogleAnalytics(v *GoogleAnalyticsMetadata) *ConnectorMetadata {
s.GoogleAnalytics = v
return s
}
// SetHoneycode sets the Honeycode field's value.
func (s *ConnectorMetadata) SetHoneycode(v *HoneycodeMetadata) *ConnectorMetadata {
s.Honeycode = v
return s
}
// SetInforNexus sets the InforNexus field's value.
func (s *ConnectorMetadata) SetInforNexus(v *InforNexusMetadata) *ConnectorMetadata {
s.InforNexus = v
return s
}
// SetMarketo sets the Marketo field's value.
func (s *ConnectorMetadata) SetMarketo(v *MarketoMetadata) *ConnectorMetadata {
s.Marketo = v
return s
}
// SetRedshift sets the Redshift field's value.
func (s *ConnectorMetadata) SetRedshift(v *RedshiftMetadata) *ConnectorMetadata {
s.Redshift = v
return s
}
// SetS3 sets the S3 field's value.
func (s *ConnectorMetadata) SetS3(v *S3Metadata) *ConnectorMetadata {
s.S3 = v
return s
}
// SetSalesforce sets the Salesforce field's value.
func (s *ConnectorMetadata) SetSalesforce(v *SalesforceMetadata) *ConnectorMetadata {
s.Salesforce = v
return s
}
// SetServiceNow sets the ServiceNow field's value.
func (s *ConnectorMetadata) SetServiceNow(v *ServiceNowMetadata) *ConnectorMetadata {
s.ServiceNow = v
return s
}
// SetSingular sets the Singular field's value.
func (s *ConnectorMetadata) SetSingular(v *SingularMetadata) *ConnectorMetadata {
s.Singular = v
return s
}
// SetSlack sets the Slack field's value.
func (s *ConnectorMetadata) SetSlack(v *SlackMetadata) *ConnectorMetadata {
s.Slack = v
return s
}
// SetSnowflake sets the Snowflake field's value.
func (s *ConnectorMetadata) SetSnowflake(v *SnowflakeMetadata) *ConnectorMetadata {
s.Snowflake = v
return s
}
// SetTrendmicro sets the Trendmicro field's value.
func (s *ConnectorMetadata) SetTrendmicro(v *TrendmicroMetadata) *ConnectorMetadata {
s.Trendmicro = v
return s
}
// SetUpsolver sets the Upsolver field's value.
func (s *ConnectorMetadata) SetUpsolver(v *UpsolverMetadata) *ConnectorMetadata {
s.Upsolver = v
return s
}
// SetVeeva sets the Veeva field's value.
func (s *ConnectorMetadata) SetVeeva(v *VeevaMetadata) *ConnectorMetadata {
s.Veeva = v
return s
}
// SetZendesk sets the Zendesk field's value.
func (s *ConnectorMetadata) SetZendesk(v *ZendeskMetadata) *ConnectorMetadata {
s.Zendesk = v
return s
}
// Used by select connectors for which the OAuth workflow is supported, such
// as Salesforce, Google Analytics, Marketo, Zendesk, and Slack.
type ConnectorOAuthRequest struct {
_ struct{} `type:"structure"`
// The code provided by the connector when it has been authenticated via the
// connected app.
AuthCode *string `locationName:"authCode" type:"string"`
// The URL to which the authentication server redirects the browser after authorization
// has been granted.
RedirectUri *string `locationName:"redirectUri" type:"string"`
}
// String returns the string representation
func (s ConnectorOAuthRequest) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s ConnectorOAuthRequest) GoString() string {
return s.String()
}
// SetAuthCode sets the AuthCode field's value.
func (s *ConnectorOAuthRequest) SetAuthCode(v string) *ConnectorOAuthRequest {
s.AuthCode = &v
return s
}
// SetRedirectUri sets the RedirectUri field's value.
func (s *ConnectorOAuthRequest) SetRedirectUri(v string) *ConnectorOAuthRequest {
s.RedirectUri = &v
return s
}
// The operation to be performed on the provided source fields.
type ConnectorOperator struct {
_ struct{} `type:"structure"`
// The operation to be performed on the provided Amplitude source fields.
Amplitude *string `type:"string" enum:"AmplitudeConnectorOperator"`
// The operation to be performed on the provided Datadog source fields.
Datadog *string `type:"string" enum:"DatadogConnectorOperator"`
// The operation to be performed on the provided Dynatrace source fields.
Dynatrace *string `type:"string" enum:"DynatraceConnectorOperator"`
// The operation to be performed on the provided Google Analytics source fields.
GoogleAnalytics *string `type:"string" enum:"GoogleAnalyticsConnectorOperator"`
// The operation to be performed on the provided Infor Nexus source fields.
InforNexus *string `type:"string" enum:"InforNexusConnectorOperator"`
// The operation to be performed on the provided Marketo source fields.
Marketo *string `type:"string" enum:"MarketoConnectorOperator"`
// The operation to be performed on the provided Amazon S3 source fields.
S3 *string `type:"string" enum:"S3ConnectorOperator"`
// The operation to be performed on the provided Salesforce source fields.
Salesforce *string `type:"string" enum:"SalesforceConnectorOperator"`
// The operation to be performed on the provided ServiceNow source fields.
ServiceNow *string `type:"string" enum:"ServiceNowConnectorOperator"`
// The operation to be performed on the provided Singular source fields.
Singular *string `type:"string" enum:"SingularConnectorOperator"`
// The operation to be performed on the provided Slack source fields.
Slack *string `type:"string" enum:"SlackConnectorOperator"`
// The operation to be performed on the provided Trend Micro source fields.
Trendmicro *string `type:"string" enum:"TrendmicroConnectorOperator"`
// The operation to be performed on the provided Veeva source fields.
Veeva *string `type:"string" enum:"VeevaConnectorOperator"`
// The operation to be performed on the provided Zendesk source fields.
Zendesk *string `type:"string" enum:"ZendeskConnectorOperator"`
}
// String returns the string representation
func (s ConnectorOperator) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s ConnectorOperator) GoString() string {
return s.String()
}
// SetAmplitude sets the Amplitude field's value.
func (s *ConnectorOperator) SetAmplitude(v string) *ConnectorOperator {
s.Amplitude = &v
return s
}
// SetDatadog sets the Datadog field's value.
func (s *ConnectorOperator) SetDatadog(v string) *ConnectorOperator {
s.Datadog = &v
return s
}
// SetDynatrace sets the Dynatrace field's value.
func (s *ConnectorOperator) SetDynatrace(v string) *ConnectorOperator {
s.Dynatrace = &v
return s
}
// SetGoogleAnalytics sets the GoogleAnalytics field's value.
func (s *ConnectorOperator) SetGoogleAnalytics(v string) *ConnectorOperator {
s.GoogleAnalytics = &v
return s
}
// SetInforNexus sets the InforNexus field's value.
func (s *ConnectorOperator) SetInforNexus(v string) *ConnectorOperator {
s.InforNexus = &v
return s
}
// SetMarketo sets the Marketo field's value.
func (s *ConnectorOperator) SetMarketo(v string) *ConnectorOperator {
s.Marketo = &v
return s
}
// SetS3 sets the S3 field's value.
func (s *ConnectorOperator) SetS3(v string) *ConnectorOperator {
s.S3 = &v
return s
}
// SetSalesforce sets the Salesforce field's value.
func (s *ConnectorOperator) SetSalesforce(v string) *ConnectorOperator {
s.Salesforce = &v
return s
}
// SetServiceNow sets the ServiceNow field's value.
func (s *ConnectorOperator) SetServiceNow(v string) *ConnectorOperator {
s.ServiceNow = &v
return s
}
// SetSingular sets the Singular field's value.
func (s *ConnectorOperator) SetSingular(v string) *ConnectorOperator {
s.Singular = &v
return s
}
// SetSlack sets the Slack field's value.
func (s *ConnectorOperator) SetSlack(v string) *ConnectorOperator {
s.Slack = &v
return s
}
// SetTrendmicro sets the Trendmicro field's value.
func (s *ConnectorOperator) SetTrendmicro(v string) *ConnectorOperator {
s.Trendmicro = &v
return s
}
// SetVeeva sets the Veeva field's value.
func (s *ConnectorOperator) SetVeeva(v string) *ConnectorOperator {
s.Veeva = &v
return s
}
// SetZendesk sets the Zendesk field's value.
func (s *ConnectorOperator) SetZendesk(v string) *ConnectorOperator {
s.Zendesk = &v
return s
}
// Describes an instance of a connector. This includes the provided name, credentials
// ARN, connection-mode, and so on. To keep the API intuitive and extensible,
// the fields that are common to all types of connector profiles are explicitly
// specified at the top level. The rest of the connector-specific properties
// are available via the connectorProfileProperties field.
type ConnectorProfile struct {
_ struct{} `type:"structure"`
// Indicates the connection mode and if it is public or private.
ConnectionMode *string `locationName:"connectionMode" type:"string" enum:"ConnectionMode"`
// The Amazon Resource Name (ARN) of the connector profile.
ConnectorProfileArn *string `locationName:"connectorProfileArn" type:"string"`
// The name of the connector profile. The name is unique for each ConnectorProfile
// in the AWS account.
ConnectorProfileName *string `locationName:"connectorProfileName" type:"string"`
// The connector-specific properties of the profile configuration.
ConnectorProfileProperties *ConnectorProfileProperties `locationName:"connectorProfileProperties" type:"structure"`
// The type of connector, such as Salesforce, Amplitude, and so on.
ConnectorType *string `locationName:"connectorType" type:"string" enum:"ConnectorType"`
// Specifies when the connector profile was created.
CreatedAt *time.Time `locationName:"createdAt" type:"timestamp"`
// The Amazon Resource Name (ARN) of the connector profile credentials.
CredentialsArn *string `locationName:"credentialsArn" type:"string"`
// Specifies when the connector profile was last updated.
LastUpdatedAt *time.Time `locationName:"lastUpdatedAt" type:"timestamp"`
}
// String returns the string representation
func (s ConnectorProfile) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s ConnectorProfile) GoString() string {
return s.String()
}
// SetConnectionMode sets the ConnectionMode field's value.
func (s *ConnectorProfile) SetConnectionMode(v string) *ConnectorProfile {
s.ConnectionMode = &v
return s
}
// SetConnectorProfileArn sets the ConnectorProfileArn field's value.
func (s *ConnectorProfile) SetConnectorProfileArn(v string) *ConnectorProfile {
s.ConnectorProfileArn = &v
return s
}
// SetConnectorProfileName sets the ConnectorProfileName field's value.
func (s *ConnectorProfile) SetConnectorProfileName(v string) *ConnectorProfile {
s.ConnectorProfileName = &v
return s
}
// SetConnectorProfileProperties sets the ConnectorProfileProperties field's value.
func (s *ConnectorProfile) SetConnectorProfileProperties(v *ConnectorProfileProperties) *ConnectorProfile {
s.ConnectorProfileProperties = v
return s
}
// SetConnectorType sets the ConnectorType field's value.
func (s *ConnectorProfile) SetConnectorType(v string) *ConnectorProfile {
s.ConnectorType = &v
return s
}
// SetCreatedAt sets the CreatedAt field's value.
func (s *ConnectorProfile) SetCreatedAt(v time.Time) *ConnectorProfile {
s.CreatedAt = &v
return s
}
// SetCredentialsArn sets the CredentialsArn field's value.
func (s *ConnectorProfile) SetCredentialsArn(v string) *ConnectorProfile {
s.CredentialsArn = &v
return s
}
// SetLastUpdatedAt sets the LastUpdatedAt field's value.
func (s *ConnectorProfile) SetLastUpdatedAt(v time.Time) *ConnectorProfile {
s.LastUpdatedAt = &v
return s
}
// Defines the connector-specific configuration and credentials for the connector
// profile.
type ConnectorProfileConfig struct {
_ struct{} `type:"structure"`
// The connector-specific credentials required by each connector.
//
// ConnectorProfileCredentials is a required field
ConnectorProfileCredentials *ConnectorProfileCredentials `locationName:"connectorProfileCredentials" type:"structure" required:"true"`
// The connector-specific properties of the profile configuration.
//
// ConnectorProfileProperties is a required field
ConnectorProfileProperties *ConnectorProfileProperties `locationName:"connectorProfileProperties" type:"structure" required:"true"`
}
// String returns the string representation
func (s ConnectorProfileConfig) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s ConnectorProfileConfig) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
func (s *ConnectorProfileConfig) Validate() error {
invalidParams := request.ErrInvalidParams{Context: "ConnectorProfileConfig"}
if s.ConnectorProfileCredentials == nil {
invalidParams.Add(request.NewErrParamRequired("ConnectorProfileCredentials"))
}
if s.ConnectorProfileProperties == nil {
invalidParams.Add(request.NewErrParamRequired("ConnectorProfileProperties"))
}
if s.ConnectorProfileCredentials != nil {
if err := s.ConnectorProfileCredentials.Validate(); err != nil {
invalidParams.AddNested("ConnectorProfileCredentials", err.(request.ErrInvalidParams))
}
}
if s.ConnectorProfileProperties != nil {
if err := s.ConnectorProfileProperties.Validate(); err != nil {
invalidParams.AddNested("ConnectorProfileProperties", err.(request.ErrInvalidParams))
}
}
if invalidParams.Len() > 0 {
return invalidParams
}
return nil
}
// SetConnectorProfileCredentials sets the ConnectorProfileCredentials field's value.
func (s *ConnectorProfileConfig) SetConnectorProfileCredentials(v *ConnectorProfileCredentials) *ConnectorProfileConfig {
s.ConnectorProfileCredentials = v
return s
}
// SetConnectorProfileProperties sets the ConnectorProfileProperties field's value.
func (s *ConnectorProfileConfig) SetConnectorProfileProperties(v *ConnectorProfileProperties) *ConnectorProfileConfig {
s.ConnectorProfileProperties = v
return s
}
// The connector-specific credentials required by a connector.
type ConnectorProfileCredentials struct {
_ struct{} `type:"structure"`
// The connector-specific credentials required when using Amplitude.
Amplitude *AmplitudeConnectorProfileCredentials `type:"structure"`
// The connector-specific credentials required when using Datadog.
Datadog *DatadogConnectorProfileCredentials `type:"structure"`
// The connector-specific credentials required when using Dynatrace.
Dynatrace *DynatraceConnectorProfileCredentials `type:"structure"`
// The connector-specific credentials required when using Google Analytics.
GoogleAnalytics *GoogleAnalyticsConnectorProfileCredentials `type:"structure"`
// The connector-specific credentials required when using Amazon Honeycode.
Honeycode *HoneycodeConnectorProfileCredentials `type:"structure"`
// The connector-specific credentials required when using Infor Nexus.
InforNexus *InforNexusConnectorProfileCredentials `type:"structure"`
// The connector-specific credentials required when using Marketo.
Marketo *MarketoConnectorProfileCredentials `type:"structure"`
// The connector-specific credentials required when using Amazon Redshift.
Redshift *RedshiftConnectorProfileCredentials `type:"structure"`
// The connector-specific credentials required when using Salesforce.
Salesforce *SalesforceConnectorProfileCredentials `type:"structure"`
// The connector-specific credentials required when using ServiceNow.
ServiceNow *ServiceNowConnectorProfileCredentials `type:"structure"`
// The connector-specific credentials required when using Singular.
Singular *SingularConnectorProfileCredentials `type:"structure"`
// The connector-specific credentials required when using Slack.
Slack *SlackConnectorProfileCredentials `type:"structure"`
// The connector-specific credentials required when using Snowflake.
Snowflake *SnowflakeConnectorProfileCredentials `type:"structure"`
// The connector-specific credentials required when using Trend Micro.
Trendmicro *TrendmicroConnectorProfileCredentials `type:"structure"`
// The connector-specific credentials required when using Veeva.
Veeva *VeevaConnectorProfileCredentials `type:"structure"`
// The connector-specific credentials required when using Zendesk.
Zendesk *ZendeskConnectorProfileCredentials `type:"structure"`
}
// String returns the string representation
func (s ConnectorProfileCredentials) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s ConnectorProfileCredentials) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
func (s *ConnectorProfileCredentials) Validate() error {
invalidParams := request.ErrInvalidParams{Context: "ConnectorProfileCredentials"}
if s.Amplitude != nil {
if err := s.Amplitude.Validate(); err != nil {
invalidParams.AddNested("Amplitude", err.(request.ErrInvalidParams))
}
}
if s.Datadog != nil {
if err := s.Datadog.Validate(); err != nil {
invalidParams.AddNested("Datadog", err.(request.ErrInvalidParams))
}
}
if s.Dynatrace != nil {
if err := s.Dynatrace.Validate(); err != nil {
invalidParams.AddNested("Dynatrace", err.(request.ErrInvalidParams))
}
}
if s.GoogleAnalytics != nil {
if err := s.GoogleAnalytics.Validate(); err != nil {
invalidParams.AddNested("GoogleAnalytics", err.(request.ErrInvalidParams))
}
}
if s.InforNexus != nil {
if err := s.InforNexus.Validate(); err != nil {
invalidParams.AddNested("InforNexus", err.(request.ErrInvalidParams))
}
}
if s.Marketo != nil {
if err := s.Marketo.Validate(); err != nil {
invalidParams.AddNested("Marketo", err.(request.ErrInvalidParams))
}
}
if s.Redshift != nil {
if err := s.Redshift.Validate(); err != nil {
invalidParams.AddNested("Redshift", err.(request.ErrInvalidParams))
}
}
if s.Salesforce != nil {
if err := s.Salesforce.Validate(); err != nil {
invalidParams.AddNested("Salesforce", err.(request.ErrInvalidParams))
}
}
if s.ServiceNow != nil {
if err := s.ServiceNow.Validate(); err != nil {
invalidParams.AddNested("ServiceNow", err.(request.ErrInvalidParams))
}
}
if s.Singular != nil {
if err := s.Singular.Validate(); err != nil {
invalidParams.AddNested("Singular", err.(request.ErrInvalidParams))
}
}
if s.Slack != nil {
if err := s.Slack.Validate(); err != nil {
invalidParams.AddNested("Slack", err.(request.ErrInvalidParams))
}
}
if s.Snowflake != nil {
if err := s.Snowflake.Validate(); err != nil {
invalidParams.AddNested("Snowflake", err.(request.ErrInvalidParams))
}
}
if s.Trendmicro != nil {
if err := s.Trendmicro.Validate(); err != nil {
invalidParams.AddNested("Trendmicro", err.(request.ErrInvalidParams))
}
}
if s.Veeva != nil {
if err := s.Veeva.Validate(); err != nil {
invalidParams.AddNested("Veeva", err.(request.ErrInvalidParams))
}
}
if s.Zendesk != nil {
if err := s.Zendesk.Validate(); err != nil {
invalidParams.AddNested("Zendesk", err.(request.ErrInvalidParams))
}
}
if invalidParams.Len() > 0 {
return invalidParams
}
return nil
}
// SetAmplitude sets the Amplitude field's value.
func (s *ConnectorProfileCredentials) SetAmplitude(v *AmplitudeConnectorProfileCredentials) *ConnectorProfileCredentials {
s.Amplitude = v
return s
}
// SetDatadog sets the Datadog field's value.
func (s *ConnectorProfileCredentials) SetDatadog(v *DatadogConnectorProfileCredentials) *ConnectorProfileCredentials {
s.Datadog = v
return s
}
// SetDynatrace sets the Dynatrace field's value.
func (s *ConnectorProfileCredentials) SetDynatrace(v *DynatraceConnectorProfileCredentials) *ConnectorProfileCredentials {
s.Dynatrace = v
return s
}
// SetGoogleAnalytics sets the GoogleAnalytics field's value.
func (s *ConnectorProfileCredentials) SetGoogleAnalytics(v *GoogleAnalyticsConnectorProfileCredentials) *ConnectorProfileCredentials {
s.GoogleAnalytics = v
return s
}
// SetHoneycode sets the Honeycode field's value.
func (s *ConnectorProfileCredentials) SetHoneycode(v *HoneycodeConnectorProfileCredentials) *ConnectorProfileCredentials {
s.Honeycode = v
return s
}
// SetInforNexus sets the InforNexus field's value.
func (s *ConnectorProfileCredentials) SetInforNexus(v *InforNexusConnectorProfileCredentials) *ConnectorProfileCredentials {
s.InforNexus = v
return s
}
// SetMarketo sets the Marketo field's value.
func (s *ConnectorProfileCredentials) SetMarketo(v *MarketoConnectorProfileCredentials) *ConnectorProfileCredentials {
s.Marketo = v
return s
}
// SetRedshift sets the Redshift field's value.
func (s *ConnectorProfileCredentials) SetRedshift(v *RedshiftConnectorProfileCredentials) *ConnectorProfileCredentials {
s.Redshift = v
return s
}
// SetSalesforce sets the Salesforce field's value.
func (s *ConnectorProfileCredentials) SetSalesforce(v *SalesforceConnectorProfileCredentials) *ConnectorProfileCredentials {
s.Salesforce = v
return s
}
// SetServiceNow sets the ServiceNow field's value.
func (s *ConnectorProfileCredentials) SetServiceNow(v *ServiceNowConnectorProfileCredentials) *ConnectorProfileCredentials {
s.ServiceNow = v
return s
}
// SetSingular sets the Singular field's value.
func (s *ConnectorProfileCredentials) SetSingular(v *SingularConnectorProfileCredentials) *ConnectorProfileCredentials {
s.Singular = v
return s
}
// SetSlack sets the Slack field's value.
func (s *ConnectorProfileCredentials) SetSlack(v *SlackConnectorProfileCredentials) *ConnectorProfileCredentials {
s.Slack = v
return s
}
// SetSnowflake sets the Snowflake field's value.
func (s *ConnectorProfileCredentials) SetSnowflake(v *SnowflakeConnectorProfileCredentials) *ConnectorProfileCredentials {
s.Snowflake = v
return s
}
// SetTrendmicro sets the Trendmicro field's value.
func (s *ConnectorProfileCredentials) SetTrendmicro(v *TrendmicroConnectorProfileCredentials) *ConnectorProfileCredentials {
s.Trendmicro = v
return s
}
// SetVeeva sets the Veeva field's value.
func (s *ConnectorProfileCredentials) SetVeeva(v *VeevaConnectorProfileCredentials) *ConnectorProfileCredentials {
s.Veeva = v
return s
}
// SetZendesk sets the Zendesk field's value.
func (s *ConnectorProfileCredentials) SetZendesk(v *ZendeskConnectorProfileCredentials) *ConnectorProfileCredentials {
s.Zendesk = v
return s
}
// The connector-specific profile properties required by each connector.
type ConnectorProfileProperties struct {
_ struct{} `type:"structure"`
// The connector-specific properties required by Amplitude.
Amplitude *AmplitudeConnectorProfileProperties `type:"structure"`
// The connector-specific properties required by Datadog.
Datadog *DatadogConnectorProfileProperties `type:"structure"`
// The connector-specific properties required by Dynatrace.
Dynatrace *DynatraceConnectorProfileProperties `type:"structure"`
// The connector-specific properties required Google Analytics.
GoogleAnalytics *GoogleAnalyticsConnectorProfileProperties `type:"structure"`
// The connector-specific properties required by Amazon Honeycode.
Honeycode *HoneycodeConnectorProfileProperties `type:"structure"`
// The connector-specific properties required by Infor Nexus.
InforNexus *InforNexusConnectorProfileProperties `type:"structure"`
// The connector-specific properties required by Marketo.
Marketo *MarketoConnectorProfileProperties `type:"structure"`
// The connector-specific properties required by Amazon Redshift.
Redshift *RedshiftConnectorProfileProperties `type:"structure"`
// The connector-specific properties required by Salesforce.
Salesforce *SalesforceConnectorProfileProperties `type:"structure"`
// The connector-specific properties required by serviceNow.
ServiceNow *ServiceNowConnectorProfileProperties `type:"structure"`
// The connector-specific properties required by Singular.
Singular *SingularConnectorProfileProperties `type:"structure"`
// The connector-specific properties required by Slack.
Slack *SlackConnectorProfileProperties `type:"structure"`
// The connector-specific properties required by Snowflake.
Snowflake *SnowflakeConnectorProfileProperties `type:"structure"`
// The connector-specific properties required by Trend Micro.
Trendmicro *TrendmicroConnectorProfileProperties `type:"structure"`
// The connector-specific properties required by Veeva.
Veeva *VeevaConnectorProfileProperties `type:"structure"`
// The connector-specific properties required by Zendesk.
Zendesk *ZendeskConnectorProfileProperties `type:"structure"`
}
// String returns the string representation
func (s ConnectorProfileProperties) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s ConnectorProfileProperties) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
func (s *ConnectorProfileProperties) Validate() error {
invalidParams := request.ErrInvalidParams{Context: "ConnectorProfileProperties"}
if s.Datadog != nil {
if err := s.Datadog.Validate(); err != nil {
invalidParams.AddNested("Datadog", err.(request.ErrInvalidParams))
}
}
if s.Dynatrace != nil {
if err := s.Dynatrace.Validate(); err != nil {
invalidParams.AddNested("Dynatrace", err.(request.ErrInvalidParams))
}
}
if s.InforNexus != nil {
if err := s.InforNexus.Validate(); err != nil {
invalidParams.AddNested("InforNexus", err.(request.ErrInvalidParams))
}
}
if s.Marketo != nil {
if err := s.Marketo.Validate(); err != nil {
invalidParams.AddNested("Marketo", err.(request.ErrInvalidParams))
}
}
if s.Redshift != nil {
if err := s.Redshift.Validate(); err != nil {
invalidParams.AddNested("Redshift", err.(request.ErrInvalidParams))
}
}
if s.ServiceNow != nil {
if err := s.ServiceNow.Validate(); err != nil {
invalidParams.AddNested("ServiceNow", err.(request.ErrInvalidParams))
}
}
if s.Slack != nil {
if err := s.Slack.Validate(); err != nil {
invalidParams.AddNested("Slack", err.(request.ErrInvalidParams))
}
}
if s.Snowflake != nil {
if err := s.Snowflake.Validate(); err != nil {
invalidParams.AddNested("Snowflake", err.(request.ErrInvalidParams))
}
}
if s.Veeva != nil {
if err := s.Veeva.Validate(); err != nil {
invalidParams.AddNested("Veeva", err.(request.ErrInvalidParams))
}
}
if s.Zendesk != nil {
if err := s.Zendesk.Validate(); err != nil {
invalidParams.AddNested("Zendesk", err.(request.ErrInvalidParams))
}
}
if invalidParams.Len() > 0 {
return invalidParams
}
return nil
}
// SetAmplitude sets the Amplitude field's value.
func (s *ConnectorProfileProperties) SetAmplitude(v *AmplitudeConnectorProfileProperties) *ConnectorProfileProperties {
s.Amplitude = v
return s
}
// SetDatadog sets the Datadog field's value.
func (s *ConnectorProfileProperties) SetDatadog(v *DatadogConnectorProfileProperties) *ConnectorProfileProperties {
s.Datadog = v
return s
}
// SetDynatrace sets the Dynatrace field's value.
func (s *ConnectorProfileProperties) SetDynatrace(v *DynatraceConnectorProfileProperties) *ConnectorProfileProperties {
s.Dynatrace = v
return s
}
// SetGoogleAnalytics sets the GoogleAnalytics field's value.
func (s *ConnectorProfileProperties) SetGoogleAnalytics(v *GoogleAnalyticsConnectorProfileProperties) *ConnectorProfileProperties {
s.GoogleAnalytics = v
return s
}
// SetHoneycode sets the Honeycode field's value.
func (s *ConnectorProfileProperties) SetHoneycode(v *HoneycodeConnectorProfileProperties) *ConnectorProfileProperties {
s.Honeycode = v
return s
}
// SetInforNexus sets the InforNexus field's value.
func (s *ConnectorProfileProperties) SetInforNexus(v *InforNexusConnectorProfileProperties) *ConnectorProfileProperties {
s.InforNexus = v
return s
}
// SetMarketo sets the Marketo field's value.
func (s *ConnectorProfileProperties) SetMarketo(v *MarketoConnectorProfileProperties) *ConnectorProfileProperties {
s.Marketo = v
return s
}
// SetRedshift sets the Redshift field's value.
func (s *ConnectorProfileProperties) SetRedshift(v *RedshiftConnectorProfileProperties) *ConnectorProfileProperties {
s.Redshift = v
return s
}
// SetSalesforce sets the Salesforce field's value.
func (s *ConnectorProfileProperties) SetSalesforce(v *SalesforceConnectorProfileProperties) *ConnectorProfileProperties {
s.Salesforce = v
return s
}
// SetServiceNow sets the ServiceNow field's value.
func (s *ConnectorProfileProperties) SetServiceNow(v *ServiceNowConnectorProfileProperties) *ConnectorProfileProperties {
s.ServiceNow = v
return s
}
// SetSingular sets the Singular field's value.
func (s *ConnectorProfileProperties) SetSingular(v *SingularConnectorProfileProperties) *ConnectorProfileProperties {
s.Singular = v
return s
}
// SetSlack sets the Slack field's value.
func (s *ConnectorProfileProperties) SetSlack(v *SlackConnectorProfileProperties) *ConnectorProfileProperties {
s.Slack = v
return s
}
// SetSnowflake sets the Snowflake field's value.
func (s *ConnectorProfileProperties) SetSnowflake(v *SnowflakeConnectorProfileProperties) *ConnectorProfileProperties {
s.Snowflake = v
return s
}
// SetTrendmicro sets the Trendmicro field's value.
func (s *ConnectorProfileProperties) SetTrendmicro(v *TrendmicroConnectorProfileProperties) *ConnectorProfileProperties {
s.Trendmicro = v
return s
}
// SetVeeva sets the Veeva field's value.
func (s *ConnectorProfileProperties) SetVeeva(v *VeevaConnectorProfileProperties) *ConnectorProfileProperties {
s.Veeva = v
return s
}
// SetZendesk sets the Zendesk field's value.
func (s *ConnectorProfileProperties) SetZendesk(v *ZendeskConnectorProfileProperties) *ConnectorProfileProperties {
s.Zendesk = v
return s
}
// An error occurred when retrieving data from the connector endpoint.
type ConnectorServerException struct {
_ struct{} `type:"structure"`
RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
// String returns the string representation
func (s ConnectorServerException) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s ConnectorServerException) GoString() string {
return s.String()
}
func newErrorConnectorServerException(v protocol.ResponseMetadata) error {
return &ConnectorServerException{
RespMetadata: v,
}
}
// Code returns the exception type name.
func (s *ConnectorServerException) Code() string {
return "ConnectorServerException"
}
// Message returns the exception's message.
func (s *ConnectorServerException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
return ""
}
// OrigErr always returns nil, satisfies awserr.Error interface.
func (s *ConnectorServerException) OrigErr() error {
return nil
}
func (s *ConnectorServerException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
func (s *ConnectorServerException) StatusCode() int {
return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
func (s *ConnectorServerException) RequestID() string {
return s.RespMetadata.RequestID
}
type CreateConnectorProfileInput struct {
_ struct{} `type:"structure"`
// Indicates the connection mode and specifies whether it is public or private.
// Private flows use AWS PrivateLink to route data over AWS infrastructure without
// exposing it to the public internet.
//
// ConnectionMode is a required field
ConnectionMode *string `locationName:"connectionMode" type:"string" required:"true" enum:"ConnectionMode"`
// Defines the connector-specific configuration and credentials.
//
// ConnectorProfileConfig is a required field
ConnectorProfileConfig *ConnectorProfileConfig `locationName:"connectorProfileConfig" type:"structure" required:"true"`
// The name of the connector profile. The name is unique for each ConnectorProfile
// in your AWS account.
//
// ConnectorProfileName is a required field
ConnectorProfileName *string `locationName:"connectorProfileName" type:"string" required:"true"`
// The type of connector, such as Salesforce, Amplitude, and so on.
//
// ConnectorType is a required field
ConnectorType *string `locationName:"connectorType" type:"string" required:"true" enum:"ConnectorType"`
// The ARN (Amazon Resource Name) of the Key Management Service (KMS) key you
// provide for encryption. This is required if you do not want to use the Amazon
// AppFlow-managed KMS key. If you don't provide anything here, Amazon AppFlow
// uses the Amazon AppFlow-managed KMS key.
KmsArn *string `locationName:"kmsArn" min:"20" type:"string"`
}
// String returns the string representation
func (s CreateConnectorProfileInput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s CreateConnectorProfileInput) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
func (s *CreateConnectorProfileInput) Validate() error {
invalidParams := request.ErrInvalidParams{Context: "CreateConnectorProfileInput"}
if s.ConnectionMode == nil {
invalidParams.Add(request.NewErrParamRequired("ConnectionMode"))
}
if s.ConnectorProfileConfig == nil {
invalidParams.Add(request.NewErrParamRequired("ConnectorProfileConfig"))
}
if s.ConnectorProfileName == nil {
invalidParams.Add(request.NewErrParamRequired("ConnectorProfileName"))
}
if s.ConnectorType == nil {
invalidParams.Add(request.NewErrParamRequired("ConnectorType"))
}
if s.KmsArn != nil && len(*s.KmsArn) < 20 {
invalidParams.Add(request.NewErrParamMinLen("KmsArn", 20))
}
if s.ConnectorProfileConfig != nil {
if err := s.ConnectorProfileConfig.Validate(); err != nil {
invalidParams.AddNested("ConnectorProfileConfig", err.(request.ErrInvalidParams))
}
}
if invalidParams.Len() > 0 {
return invalidParams
}
return nil
}
// SetConnectionMode sets the ConnectionMode field's value.
func (s *CreateConnectorProfileInput) SetConnectionMode(v string) *CreateConnectorProfileInput {
s.ConnectionMode = &v
return s
}
// SetConnectorProfileConfig sets the ConnectorProfileConfig field's value.
func (s *CreateConnectorProfileInput) SetConnectorProfileConfig(v *ConnectorProfileConfig) *CreateConnectorProfileInput {
s.ConnectorProfileConfig = v
return s
}
// SetConnectorProfileName sets the ConnectorProfileName field's value.
func (s *CreateConnectorProfileInput) SetConnectorProfileName(v string) *CreateConnectorProfileInput {
s.ConnectorProfileName = &v
return s
}
// SetConnectorType sets the ConnectorType field's value.
func (s *CreateConnectorProfileInput) SetConnectorType(v string) *CreateConnectorProfileInput {
s.ConnectorType = &v
return s
}
// SetKmsArn sets the KmsArn field's value.
func (s *CreateConnectorProfileInput) SetKmsArn(v string) *CreateConnectorProfileInput {
s.KmsArn = &v
return s
}
type CreateConnectorProfileOutput struct {
_ struct{} `type:"structure"`
// The Amazon Resource Name (ARN) of the connector profile.
ConnectorProfileArn *string `locationName:"connectorProfileArn" type:"string"`
}
// String returns the string representation
func (s CreateConnectorProfileOutput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s CreateConnectorProfileOutput) GoString() string {
return s.String()
}
// SetConnectorProfileArn sets the ConnectorProfileArn field's value.
func (s *CreateConnectorProfileOutput) SetConnectorProfileArn(v string) *CreateConnectorProfileOutput {
s.ConnectorProfileArn = &v
return s
}
type CreateFlowInput struct {
_ struct{} `type:"structure"`
// A description of the flow you want to create.
Description *string `locationName:"description" type:"string"`
// The configuration that controls how Amazon AppFlow places data in the destination
// connector.
//
// DestinationFlowConfigList is a required field
DestinationFlowConfigList []*DestinationFlowConfig `locationName:"destinationFlowConfigList" type:"list" required:"true"`
// The specified name of the flow. Spaces are not allowed. Use underscores (_)
// or hyphens (-) only.
//
// FlowName is a required field
FlowName *string `locationName:"flowName" type:"string" required:"true"`
// The ARN (Amazon Resource Name) of the Key Management Service (KMS) key you
// provide for encryption. This is required if you do not want to use the Amazon
// AppFlow-managed KMS key. If you don't provide anything here, Amazon AppFlow
// uses the Amazon AppFlow-managed KMS key.
KmsArn *string `locationName:"kmsArn" min:"20" type:"string"`
// The configuration that controls how Amazon AppFlow retrieves data from the
// source connector.
//
// SourceFlowConfig is a required field
SourceFlowConfig *SourceFlowConfig `locationName:"sourceFlowConfig" type:"structure" required:"true"`
// The tags used to organize, track, or control access for your flow.
Tags map[string]*string `locationName:"tags" type:"map"`
// A list of tasks that Amazon AppFlow performs while transferring the data
// in the flow run.
//
// Tasks is a required field
Tasks []*Task `locationName:"tasks" type:"list" required:"true"`
// The trigger settings that determine how and when the flow runs.
//
// TriggerConfig is a required field
TriggerConfig *TriggerConfig `locationName:"triggerConfig" type:"structure" required:"true"`
}
// String returns the string representation
func (s CreateFlowInput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s CreateFlowInput) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
func (s *CreateFlowInput) Validate() error {
invalidParams := request.ErrInvalidParams{Context: "CreateFlowInput"}
if s.DestinationFlowConfigList == nil {
invalidParams.Add(request.NewErrParamRequired("DestinationFlowConfigList"))
}
if s.FlowName == nil {
invalidParams.Add(request.NewErrParamRequired("FlowName"))
}
if s.KmsArn != nil && len(*s.KmsArn) < 20 {
invalidParams.Add(request.NewErrParamMinLen("KmsArn", 20))
}
if s.SourceFlowConfig == nil {
invalidParams.Add(request.NewErrParamRequired("SourceFlowConfig"))
}
if s.Tasks == nil {
invalidParams.Add(request.NewErrParamRequired("Tasks"))
}
if s.TriggerConfig == nil {
invalidParams.Add(request.NewErrParamRequired("TriggerConfig"))
}
if s.DestinationFlowConfigList != nil {
for i, v := range s.DestinationFlowConfigList {
if v == nil {
continue
}
if err := v.Validate(); err != nil {
invalidParams.AddNested(fmt.Sprintf("%s[%v]", "DestinationFlowConfigList", i), err.(request.ErrInvalidParams))
}
}
}
if s.SourceFlowConfig != nil {
if err := s.SourceFlowConfig.Validate(); err != nil {
invalidParams.AddNested("SourceFlowConfig", err.(request.ErrInvalidParams))
}
}
if s.Tasks != nil {
for i, v := range s.Tasks {
if v == nil {
continue
}
if err := v.Validate(); err != nil {
invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Tasks", i), err.(request.ErrInvalidParams))
}
}
}
if s.TriggerConfig != nil {
if err := s.TriggerConfig.Validate(); err != nil {
invalidParams.AddNested("TriggerConfig", err.(request.ErrInvalidParams))
}
}
if invalidParams.Len() > 0 {
return invalidParams
}
return nil
}
// SetDescription sets the Description field's value.
func (s *CreateFlowInput) SetDescription(v string) *CreateFlowInput {
s.Description = &v
return s
}
// SetDestinationFlowConfigList sets the DestinationFlowConfigList field's value.
func (s *CreateFlowInput) SetDestinationFlowConfigList(v []*DestinationFlowConfig) *CreateFlowInput {
s.DestinationFlowConfigList = v
return s
}
// SetFlowName sets the FlowName field's value.
func (s *CreateFlowInput) SetFlowName(v string) *CreateFlowInput {
s.FlowName = &v
return s
}
// SetKmsArn sets the KmsArn field's value.
func (s *CreateFlowInput) SetKmsArn(v string) *CreateFlowInput {
s.KmsArn = &v
return s
}
// SetSourceFlowConfig sets the SourceFlowConfig field's value.
func (s *CreateFlowInput) SetSourceFlowConfig(v *SourceFlowConfig) *CreateFlowInput {
s.SourceFlowConfig = v
return s
}
// SetTags sets the Tags field's value.
func (s *CreateFlowInput) SetTags(v map[string]*string) *CreateFlowInput {
s.Tags = v
return s
}
// SetTasks sets the Tasks field's value.
func (s *CreateFlowInput) SetTasks(v []*Task) *CreateFlowInput {
s.Tasks = v
return s
}
// SetTriggerConfig sets the TriggerConfig field's value.
func (s *CreateFlowInput) SetTriggerConfig(v *TriggerConfig) *CreateFlowInput {
s.TriggerConfig = v
return s
}
type CreateFlowOutput struct {
_ struct{} `type:"structure"`
// The flow's Amazon Resource Name (ARN).
FlowArn *string `locationName:"flowArn" type:"string"`
// Indicates the current status of the flow.
FlowStatus *string `locationName:"flowStatus" type:"string" enum:"FlowStatus"`
}
// String returns the string representation
func (s CreateFlowOutput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s CreateFlowOutput) GoString() string {
return s.String()
}
// SetFlowArn sets the FlowArn field's value.
func (s *CreateFlowOutput) SetFlowArn(v string) *CreateFlowOutput {
s.FlowArn = &v
return s
}
// SetFlowStatus sets the FlowStatus field's value.
func (s *CreateFlowOutput) SetFlowStatus(v string) *CreateFlowOutput {
s.FlowStatus = &v
return s
}
// The properties that are applied when Amazon Connect Customer Profiles is
// used as a destination.
type CustomerProfilesDestinationProperties struct {
_ struct{} `type:"structure"`
// The unique name of the Amazon Connect Customer Profiles domain.
//
// DomainName is a required field
DomainName *string `locationName:"domainName" type:"string" required:"true"`
// The object specified in the Amazon Connect Customer Profiles flow destination.
ObjectTypeName *string `locationName:"objectTypeName" type:"string"`
}
// String returns the string representation
func (s CustomerProfilesDestinationProperties) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s CustomerProfilesDestinationProperties) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
func (s *CustomerProfilesDestinationProperties) Validate() error {
invalidParams := request.ErrInvalidParams{Context: "CustomerProfilesDestinationProperties"}
if s.DomainName == nil {
invalidParams.Add(request.NewErrParamRequired("DomainName"))
}
if invalidParams.Len() > 0 {
return invalidParams
}
return nil
}
// SetDomainName sets the DomainName field's value.
func (s *CustomerProfilesDestinationProperties) SetDomainName(v string) *CustomerProfilesDestinationProperties {
s.DomainName = &v
return s
}
// SetObjectTypeName sets the ObjectTypeName field's value.
func (s *CustomerProfilesDestinationProperties) SetObjectTypeName(v string) *CustomerProfilesDestinationProperties {
s.ObjectTypeName = &v
return s
}
// The connector metadata specific to Amazon Connect Customer Profiles.
type CustomerProfilesMetadata struct {
_ struct{} `type:"structure"`
}
// String returns the string representation
func (s CustomerProfilesMetadata) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s CustomerProfilesMetadata) GoString() string {
return s.String()
}
// The connector-specific credentials required by Datadog.
type DatadogConnectorProfileCredentials struct {
_ struct{} `type:"structure"`
// A unique alphanumeric identifier used to authenticate a user, developer,
// or calling program to your API.
//
// ApiKey is a required field
ApiKey *string `locationName:"apiKey" type:"string" required:"true"`
// Application keys, in conjunction with your API key, give you full access
// to Datadog’s programmatic API. Application keys are associated with the
// user account that created them. The application key is used to log all requests
// made to the API.
//
// ApplicationKey is a required field
ApplicationKey *string `locationName:"applicationKey" type:"string" required:"true"`
}
// String returns the string representation
func (s DatadogConnectorProfileCredentials) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s DatadogConnectorProfileCredentials) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
func (s *DatadogConnectorProfileCredentials) Validate() error {
invalidParams := request.ErrInvalidParams{Context: "DatadogConnectorProfileCredentials"}
if s.ApiKey == nil {
invalidParams.Add(request.NewErrParamRequired("ApiKey"))
}
if s.ApplicationKey == nil {
invalidParams.Add(request.NewErrParamRequired("ApplicationKey"))
}
if invalidParams.Len() > 0 {
return invalidParams
}
return nil
}
// SetApiKey sets the ApiKey field's value.
func (s *DatadogConnectorProfileCredentials) SetApiKey(v string) *DatadogConnectorProfileCredentials {
s.ApiKey = &v
return s
}
// SetApplicationKey sets the ApplicationKey field's value.
func (s *DatadogConnectorProfileCredentials) SetApplicationKey(v string) *DatadogConnectorProfileCredentials {
s.ApplicationKey = &v
return s
}
// The connector-specific profile properties required by Datadog.
type DatadogConnectorProfileProperties struct {
_ struct{} `type:"structure"`
// The location of the Datadog resource.
//
// InstanceUrl is a required field
InstanceUrl *string `locationName:"instanceUrl" type:"string" required:"true"`
}
// String returns the string representation
func (s DatadogConnectorProfileProperties) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s DatadogConnectorProfileProperties) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
func (s *DatadogConnectorProfileProperties) Validate() error {
invalidParams := request.ErrInvalidParams{Context: "DatadogConnectorProfileProperties"}
if s.InstanceUrl == nil {
invalidParams.Add(request.NewErrParamRequired("InstanceUrl"))
}
if invalidParams.Len() > 0 {
return invalidParams
}
return nil
}
// SetInstanceUrl sets the InstanceUrl field's value.
func (s *DatadogConnectorProfileProperties) SetInstanceUrl(v string) *DatadogConnectorProfileProperties {
s.InstanceUrl = &v
return s
}
// The connector metadata specific to Datadog.
type DatadogMetadata struct {
_ struct{} `type:"structure"`
}
// String returns the string representation
func (s DatadogMetadata) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s DatadogMetadata) GoString() string {
return s.String()
}
// The properties that are applied when Datadog is being used as a source.
type DatadogSourceProperties struct {
_ struct{} `type:"structure"`
// The object specified in the Datadog flow source.
//
// Object is a required field
Object *string `locationName:"object" type:"string" required:"true"`
}
// String returns the string representation
func (s DatadogSourceProperties) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s DatadogSourceProperties) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
func (s *DatadogSourceProperties) Validate() error {
invalidParams := request.ErrInvalidParams{Context: "DatadogSourceProperties"}
if s.Object == nil {
invalidParams.Add(request.NewErrParamRequired("Object"))
}
if invalidParams.Len() > 0 {
return invalidParams
}
return nil
}
// SetObject sets the Object field's value.
func (s *DatadogSourceProperties) SetObject(v string) *DatadogSourceProperties {
s.Object = &v
return s
}
type DeleteConnectorProfileInput struct {
_ struct{} `type:"structure"`
// The name of the connector profile. The name is unique for each ConnectorProfile
// in your account.
//
// ConnectorProfileName is a required field
ConnectorProfileName *string `locationName:"connectorProfileName" type:"string" required:"true"`
// Indicates whether Amazon AppFlow should delete the profile, even if it is
// currently in use in one or more flows.
ForceDelete *bool `locationName:"forceDelete" type:"boolean"`
}
// String returns the string representation
func (s DeleteConnectorProfileInput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s DeleteConnectorProfileInput) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
func (s *DeleteConnectorProfileInput) Validate() error {
invalidParams := request.ErrInvalidParams{Context: "DeleteConnectorProfileInput"}
if s.ConnectorProfileName == nil {
invalidParams.Add(request.NewErrParamRequired("ConnectorProfileName"))
}
if invalidParams.Len() > 0 {
return invalidParams
}
return nil
}
// SetConnectorProfileName sets the ConnectorProfileName field's value.
func (s *DeleteConnectorProfileInput) SetConnectorProfileName(v string) *DeleteConnectorProfileInput {
s.ConnectorProfileName = &v
return s
}
// SetForceDelete sets the ForceDelete field's value.
func (s *DeleteConnectorProfileInput) SetForceDelete(v bool) *DeleteConnectorProfileInput {
s.ForceDelete = &v
return s
}
type DeleteConnectorProfileOutput struct {
_ struct{} `type:"structure"`
}
// String returns the string representation
func (s DeleteConnectorProfileOutput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s DeleteConnectorProfileOutput) GoString() string {
return s.String()
}
type DeleteFlowInput struct {
_ struct{} `type:"structure"`
// The specified name of the flow. Spaces are not allowed. Use underscores (_)
// or hyphens (-) only.
//
// FlowName is a required field
FlowName *string `locationName:"flowName" type:"string" required:"true"`
// Indicates whether Amazon AppFlow should delete the flow, even if it is currently
// in use.
ForceDelete *bool `locationName:"forceDelete" type:"boolean"`
}
// String returns the string representation
func (s DeleteFlowInput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s DeleteFlowInput) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
func (s *DeleteFlowInput) Validate() error {
invalidParams := request.ErrInvalidParams{Context: "DeleteFlowInput"}
if s.FlowName == nil {
invalidParams.Add(request.NewErrParamRequired("FlowName"))
}
if invalidParams.Len() > 0 {
return invalidParams
}
return nil
}
// SetFlowName sets the FlowName field's value.
func (s *DeleteFlowInput) SetFlowName(v string) *DeleteFlowInput {
s.FlowName = &v
return s
}
// SetForceDelete sets the ForceDelete field's value.
func (s *DeleteFlowInput) SetForceDelete(v bool) *DeleteFlowInput {
s.ForceDelete = &v
return s
}
type DeleteFlowOutput struct {
_ struct{} `type:"structure"`
}
// String returns the string representation
func (s DeleteFlowOutput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s DeleteFlowOutput) GoString() string {
return s.String()
}
type DescribeConnectorEntityInput struct {
_ struct{} `type:"structure"`
// The entity name for that connector.
//
// ConnectorEntityName is a required field
ConnectorEntityName *string `locationName:"connectorEntityName" type:"string" required:"true"`
// The name of the connector profile. The name is unique for each ConnectorProfile
// in the AWS account.
ConnectorProfileName *string `locationName:"connectorProfileName" type:"string"`
// The type of connector application, such as Salesforce, Amplitude, and so
// on.
ConnectorType *string `locationName:"connectorType" type:"string" enum:"ConnectorType"`
}
// String returns the string representation
func (s DescribeConnectorEntityInput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s DescribeConnectorEntityInput) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
func (s *DescribeConnectorEntityInput) Validate() error {
invalidParams := request.ErrInvalidParams{Context: "DescribeConnectorEntityInput"}
if s.ConnectorEntityName == nil {
invalidParams.Add(request.NewErrParamRequired("ConnectorEntityName"))
}
if invalidParams.Len() > 0 {
return invalidParams
}
return nil
}
// SetConnectorEntityName sets the ConnectorEntityName field's value.
func (s *DescribeConnectorEntityInput) SetConnectorEntityName(v string) *DescribeConnectorEntityInput {
s.ConnectorEntityName = &v
return s
}
// SetConnectorProfileName sets the ConnectorProfileName field's value.
func (s *DescribeConnectorEntityInput) SetConnectorProfileName(v string) *DescribeConnectorEntityInput {
s.ConnectorProfileName = &v
return s
}
// SetConnectorType sets the ConnectorType field's value.
func (s *DescribeConnectorEntityInput) SetConnectorType(v string) *DescribeConnectorEntityInput {
s.ConnectorType = &v
return s
}
type DescribeConnectorEntityOutput struct {
_ struct{} `type:"structure"`
// Describes the fields for that connector entity. For example, for an account
// entity, the fields would be account name, account ID, and so on.
//
// ConnectorEntityFields is a required field
ConnectorEntityFields []*ConnectorEntityField `locationName:"connectorEntityFields" type:"list" required:"true"`
}
// String returns the string representation
func (s DescribeConnectorEntityOutput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s DescribeConnectorEntityOutput) GoString() string {
return s.String()
}
// SetConnectorEntityFields sets the ConnectorEntityFields field's value.
func (s *DescribeConnectorEntityOutput) SetConnectorEntityFields(v []*ConnectorEntityField) *DescribeConnectorEntityOutput {
s.ConnectorEntityFields = v
return s
}
type DescribeConnectorProfilesInput struct {
_ struct{} `type:"structure"`
// The name of the connector profile. The name is unique for each ConnectorProfile
// in the AWS account.
ConnectorProfileNames []*string `locationName:"connectorProfileNames" type:"list"`
// The type of connector, such as Salesforce, Amplitude, and so on.
ConnectorType *string `locationName:"connectorType" type:"string" enum:"ConnectorType"`
// Specifies the maximum number of items that should be returned in the result
// set. The default for maxResults is 20 (for all paginated API operations).
MaxResults *int64 `locationName:"maxResults" min:"1" type:"integer"`
// The pagination token for the next page of data.
NextToken *string `locationName:"nextToken" type:"string"`
}
// String returns the string representation
func (s DescribeConnectorProfilesInput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s DescribeConnectorProfilesInput) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
func (s *DescribeConnectorProfilesInput) Validate() error {
invalidParams := request.ErrInvalidParams{Context: "DescribeConnectorProfilesInput"}
if s.MaxResults != nil && *s.MaxResults < 1 {
invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1))
}
if invalidParams.Len() > 0 {
return invalidParams
}
return nil
}
// SetConnectorProfileNames sets the ConnectorProfileNames field's value.
func (s *DescribeConnectorProfilesInput) SetConnectorProfileNames(v []*string) *DescribeConnectorProfilesInput {
s.ConnectorProfileNames = v
return s
}
// SetConnectorType sets the ConnectorType field's value.
func (s *DescribeConnectorProfilesInput) SetConnectorType(v string) *DescribeConnectorProfilesInput {
s.ConnectorType = &v
return s
}
// SetMaxResults sets the MaxResults field's value.
func (s *DescribeConnectorProfilesInput) SetMaxResults(v int64) *DescribeConnectorProfilesInput {
s.MaxResults = &v
return s
}
// SetNextToken sets the NextToken field's value.
func (s *DescribeConnectorProfilesInput) SetNextToken(v string) *DescribeConnectorProfilesInput {
s.NextToken = &v
return s
}
type DescribeConnectorProfilesOutput struct {
_ struct{} `type:"structure"`
// Returns information about the connector profiles associated with the flow.
ConnectorProfileDetails []*ConnectorProfile `locationName:"connectorProfileDetails" type:"list"`
// The pagination token for the next page of data. If nextToken=null, this means
// that all records have been fetched.
NextToken *string `locationName:"nextToken" type:"string"`
}
// String returns the string representation
func (s DescribeConnectorProfilesOutput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s DescribeConnectorProfilesOutput) GoString() string {
return s.String()
}
// SetConnectorProfileDetails sets the ConnectorProfileDetails field's value.
func (s *DescribeConnectorProfilesOutput) SetConnectorProfileDetails(v []*ConnectorProfile) *DescribeConnectorProfilesOutput {
s.ConnectorProfileDetails = v
return s
}
// SetNextToken sets the NextToken field's value.
func (s *DescribeConnectorProfilesOutput) SetNextToken(v string) *DescribeConnectorProfilesOutput {
s.NextToken = &v
return s
}
type DescribeConnectorsInput struct {
_ struct{} `type:"structure"`
// The type of connector, such as Salesforce, Amplitude, and so on.
ConnectorTypes []*string `locationName:"connectorTypes" type:"list"`
// The pagination token for the next page of data.
NextToken *string `locationName:"nextToken" type:"string"`
}
// String returns the string representation
func (s DescribeConnectorsInput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s DescribeConnectorsInput) GoString() string {
return s.String()
}
// SetConnectorTypes sets the ConnectorTypes field's value.
func (s *DescribeConnectorsInput) SetConnectorTypes(v []*string) *DescribeConnectorsInput {
s.ConnectorTypes = v
return s
}
// SetNextToken sets the NextToken field's value.
func (s *DescribeConnectorsInput) SetNextToken(v string) *DescribeConnectorsInput {
s.NextToken = &v
return s
}
type DescribeConnectorsOutput struct {
_ struct{} `type:"structure"`
// The configuration that is applied to the connectors used in the flow.
ConnectorConfigurations map[string]*ConnectorConfiguration `locationName:"connectorConfigurations" type:"map"`
// The pagination token for the next page of data.
NextToken *string `locationName:"nextToken" type:"string"`
}
// String returns the string representation
func (s DescribeConnectorsOutput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s DescribeConnectorsOutput) GoString() string {
return s.String()
}
// SetConnectorConfigurations sets the ConnectorConfigurations field's value.
func (s *DescribeConnectorsOutput) SetConnectorConfigurations(v map[string]*ConnectorConfiguration) *DescribeConnectorsOutput {
s.ConnectorConfigurations = v
return s
}
// SetNextToken sets the NextToken field's value.
func (s *DescribeConnectorsOutput) SetNextToken(v string) *DescribeConnectorsOutput {
s.NextToken = &v
return s
}
type DescribeFlowExecutionRecordsInput struct {
_ struct{} `type:"structure"`
// The specified name of the flow. Spaces are not allowed. Use underscores (_)
// or hyphens (-) only.
//
// FlowName is a required field
FlowName *string `locationName:"flowName" type:"string" required:"true"`
// Specifies the maximum number of items that should be returned in the result
// set. The default for maxResults is 20 (for all paginated API operations).
MaxResults *int64 `locationName:"maxResults" min:"1" type:"integer"`
// The pagination token for the next page of data.
NextToken *string `locationName:"nextToken" type:"string"`
}
// String returns the string representation
func (s DescribeFlowExecutionRecordsInput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s DescribeFlowExecutionRecordsInput) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
func (s *DescribeFlowExecutionRecordsInput) Validate() error {
invalidParams := request.ErrInvalidParams{Context: "DescribeFlowExecutionRecordsInput"}
if s.FlowName == nil {
invalidParams.Add(request.NewErrParamRequired("FlowName"))
}
if s.MaxResults != nil && *s.MaxResults < 1 {
invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1))
}
if invalidParams.Len() > 0 {
return invalidParams
}
return nil
}
// SetFlowName sets the FlowName field's value.
func (s *DescribeFlowExecutionRecordsInput) SetFlowName(v string) *DescribeFlowExecutionRecordsInput {
s.FlowName = &v
return s
}
// SetMaxResults sets the MaxResults field's value.
func (s *DescribeFlowExecutionRecordsInput) SetMaxResults(v int64) *DescribeFlowExecutionRecordsInput {
s.MaxResults = &v
return s
}
// SetNextToken sets the NextToken field's value.
func (s *DescribeFlowExecutionRecordsInput) SetNextToken(v string) *DescribeFlowExecutionRecordsInput {
s.NextToken = &v
return s
}
type DescribeFlowExecutionRecordsOutput struct {
_ struct{} `type:"structure"`
// Returns a list of all instances when this flow was run.
FlowExecutions []*ExecutionRecord `locationName:"flowExecutions" type:"list"`
// The pagination token for the next page of data.
NextToken *string `locationName:"nextToken" type:"string"`
}
// String returns the string representation
func (s DescribeFlowExecutionRecordsOutput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s DescribeFlowExecutionRecordsOutput) GoString() string {
return s.String()
}
// SetFlowExecutions sets the FlowExecutions field's value.
func (s *DescribeFlowExecutionRecordsOutput) SetFlowExecutions(v []*ExecutionRecord) *DescribeFlowExecutionRecordsOutput {
s.FlowExecutions = v
return s
}
// SetNextToken sets the NextToken field's value.
func (s *DescribeFlowExecutionRecordsOutput) SetNextToken(v string) *DescribeFlowExecutionRecordsOutput {
s.NextToken = &v
return s
}
type DescribeFlowInput struct {
_ struct{} `type:"structure"`
// The specified name of the flow. Spaces are not allowed. Use underscores (_)
// or hyphens (-) only.
//
// FlowName is a required field
FlowName *string `locationName:"flowName" type:"string" required:"true"`
}
// String returns the string representation
func (s DescribeFlowInput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s DescribeFlowInput) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
func (s *DescribeFlowInput) Validate() error {
invalidParams := request.ErrInvalidParams{Context: "DescribeFlowInput"}
if s.FlowName == nil {
invalidParams.Add(request.NewErrParamRequired("FlowName"))
}
if invalidParams.Len() > 0 {
return invalidParams
}
return nil
}
// SetFlowName sets the FlowName field's value.
func (s *DescribeFlowInput) SetFlowName(v string) *DescribeFlowInput {
s.FlowName = &v
return s
}
type DescribeFlowOutput struct {
_ struct{} `type:"structure"`
// Specifies when the flow was created.
CreatedAt *time.Time `locationName:"createdAt" type:"timestamp"`
// The ARN of the user who created the flow.
CreatedBy *string `locationName:"createdBy" type:"string"`
// A description of the flow.
Description *string `locationName:"description" type:"string"`
// The configuration that controls how Amazon AppFlow transfers data to the
// destination connector.
DestinationFlowConfigList []*DestinationFlowConfig `locationName:"destinationFlowConfigList" type:"list"`
// The flow's Amazon Resource Name (ARN).
FlowArn *string `locationName:"flowArn" type:"string"`
// The specified name of the flow. Spaces are not allowed. Use underscores (_)
// or hyphens (-) only.
FlowName *string `locationName:"flowName" type:"string"`
// Indicates the current status of the flow.
FlowStatus *string `locationName:"flowStatus" type:"string" enum:"FlowStatus"`
// Contains an error message if the flow status is in a suspended or error state.
// This applies only to scheduled or event-triggered flows.
FlowStatusMessage *string `locationName:"flowStatusMessage" type:"string"`
// The ARN (Amazon Resource Name) of the Key Management Service (KMS) key you
// provide for encryption. This is required if you do not want to use the Amazon
// AppFlow-managed KMS key. If you don't provide anything here, Amazon AppFlow
// uses the Amazon AppFlow-managed KMS key.
KmsArn *string `locationName:"kmsArn" min:"20" type:"string"`
// Describes the details of the most recent flow run.
LastRunExecutionDetails *ExecutionDetails `locationName:"lastRunExecutionDetails" type:"structure"`
// Specifies when the flow was last updated.
LastUpdatedAt *time.Time `locationName:"lastUpdatedAt" type:"timestamp"`
// Specifies the user name of the account that performed the most recent update.
LastUpdatedBy *string `locationName:"lastUpdatedBy" type:"string"`
// The configuration that controls how Amazon AppFlow retrieves data from the
// source connector.
SourceFlowConfig *SourceFlowConfig `locationName:"sourceFlowConfig" type:"structure"`
// The tags used to organize, track, or control access for your flow.
Tags map[string]*string `locationName:"tags" type:"map"`
// A list of tasks that Amazon AppFlow performs while transferring the data
// in the flow run.
Tasks []*Task `locationName:"tasks" type:"list"`
// The trigger settings that determine how and when the flow runs.
TriggerConfig *TriggerConfig `locationName:"triggerConfig" type:"structure"`
}
// String returns the string representation
func (s DescribeFlowOutput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s DescribeFlowOutput) GoString() string {
return s.String()
}
// SetCreatedAt sets the CreatedAt field's value.
func (s *DescribeFlowOutput) SetCreatedAt(v time.Time) *DescribeFlowOutput {
s.CreatedAt = &v
return s
}
// SetCreatedBy sets the CreatedBy field's value.
func (s *DescribeFlowOutput) SetCreatedBy(v string) *DescribeFlowOutput {
s.CreatedBy = &v
return s
}
// SetDescription sets the Description field's value.
func (s *DescribeFlowOutput) SetDescription(v string) *DescribeFlowOutput {
s.Description = &v
return s
}
// SetDestinationFlowConfigList sets the DestinationFlowConfigList field's value.
func (s *DescribeFlowOutput) SetDestinationFlowConfigList(v []*DestinationFlowConfig) *DescribeFlowOutput {
s.DestinationFlowConfigList = v
return s
}
// SetFlowArn sets the FlowArn field's value.
func (s *DescribeFlowOutput) SetFlowArn(v string) *DescribeFlowOutput {
s.FlowArn = &v
return s
}
// SetFlowName sets the FlowName field's value.
func (s *DescribeFlowOutput) SetFlowName(v string) *DescribeFlowOutput {
s.FlowName = &v
return s
}
// SetFlowStatus sets the FlowStatus field's value.
func (s *DescribeFlowOutput) SetFlowStatus(v string) *DescribeFlowOutput {
s.FlowStatus = &v
return s
}
// SetFlowStatusMessage sets the FlowStatusMessage field's value.
func (s *DescribeFlowOutput) SetFlowStatusMessage(v string) *DescribeFlowOutput {
s.FlowStatusMessage = &v
return s
}
// SetKmsArn sets the KmsArn field's value.
func (s *DescribeFlowOutput) SetKmsArn(v string) *DescribeFlowOutput {
s.KmsArn = &v
return s
}
// SetLastRunExecutionDetails sets the LastRunExecutionDetails field's value.
func (s *DescribeFlowOutput) SetLastRunExecutionDetails(v *ExecutionDetails) *DescribeFlowOutput {
s.LastRunExecutionDetails = v
return s
}
// SetLastUpdatedAt sets the LastUpdatedAt field's value.
func (s *DescribeFlowOutput) SetLastUpdatedAt(v time.Time) *DescribeFlowOutput {
s.LastUpdatedAt = &v
return s
}
// SetLastUpdatedBy sets the LastUpdatedBy field's value.
func (s *DescribeFlowOutput) SetLastUpdatedBy(v string) *DescribeFlowOutput {
s.LastUpdatedBy = &v
return s
}
// SetSourceFlowConfig sets the SourceFlowConfig field's value.
func (s *DescribeFlowOutput) SetSourceFlowConfig(v *SourceFlowConfig) *DescribeFlowOutput {
s.SourceFlowConfig = v
return s
}
// SetTags sets the Tags field's value.
func (s *DescribeFlowOutput) SetTags(v map[string]*string) *DescribeFlowOutput {
s.Tags = v
return s
}
// SetTasks sets the Tasks field's value.
func (s *DescribeFlowOutput) SetTasks(v []*Task) *DescribeFlowOutput {
s.Tasks = v
return s
}
// SetTriggerConfig sets the TriggerConfig field's value.
func (s *DescribeFlowOutput) SetTriggerConfig(v *TriggerConfig) *DescribeFlowOutput {
s.TriggerConfig = v
return s
}
// This stores the information that is required to query a particular connector.
type DestinationConnectorProperties struct {
_ struct{} `type:"structure"`
// The properties required to query Amazon Connect Customer Profiles.
CustomerProfiles *CustomerProfilesDestinationProperties `type:"structure"`
// The properties required to query Amazon EventBridge.
EventBridge *EventBridgeDestinationProperties `type:"structure"`
// The properties required to query Amazon Honeycode.
Honeycode *HoneycodeDestinationProperties `type:"structure"`
// The properties required to query Amazon Lookout for Metrics.
LookoutMetrics *LookoutMetricsDestinationProperties `type:"structure"`
// The properties required to query Amazon Redshift.
Redshift *RedshiftDestinationProperties `type:"structure"`
// The properties required to query Amazon S3.
S3 *S3DestinationProperties `type:"structure"`
// The properties required to query Salesforce.
Salesforce *SalesforceDestinationProperties `type:"structure"`
// The properties required to query Snowflake.
Snowflake *SnowflakeDestinationProperties `type:"structure"`
// The properties required to query Upsolver.
Upsolver *UpsolverDestinationProperties `type:"structure"`
// The properties required to query Zendesk.
Zendesk *ZendeskDestinationProperties `type:"structure"`
}
// String returns the string representation
func (s DestinationConnectorProperties) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s DestinationConnectorProperties) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
func (s *DestinationConnectorProperties) Validate() error {
invalidParams := request.ErrInvalidParams{Context: "DestinationConnectorProperties"}
if s.CustomerProfiles != nil {
if err := s.CustomerProfiles.Validate(); err != nil {
invalidParams.AddNested("CustomerProfiles", err.(request.ErrInvalidParams))
}
}
if s.EventBridge != nil {
if err := s.EventBridge.Validate(); err != nil {
invalidParams.AddNested("EventBridge", err.(request.ErrInvalidParams))
}
}
if s.Honeycode != nil {
if err := s.Honeycode.Validate(); err != nil {
invalidParams.AddNested("Honeycode", err.(request.ErrInvalidParams))
}
}
if s.Redshift != nil {
if err := s.Redshift.Validate(); err != nil {
invalidParams.AddNested("Redshift", err.(request.ErrInvalidParams))
}
}
if s.S3 != nil {
if err := s.S3.Validate(); err != nil {
invalidParams.AddNested("S3", err.(request.ErrInvalidParams))
}
}
if s.Salesforce != nil {
if err := s.Salesforce.Validate(); err != nil {
invalidParams.AddNested("Salesforce", err.(request.ErrInvalidParams))
}
}
if s.Snowflake != nil {
if err := s.Snowflake.Validate(); err != nil {
invalidParams.AddNested("Snowflake", err.(request.ErrInvalidParams))
}
}
if s.Upsolver != nil {
if err := s.Upsolver.Validate(); err != nil {
invalidParams.AddNested("Upsolver", err.(request.ErrInvalidParams))
}
}
if s.Zendesk != nil {
if err := s.Zendesk.Validate(); err != nil {
invalidParams.AddNested("Zendesk", err.(request.ErrInvalidParams))
}
}
if invalidParams.Len() > 0 {
return invalidParams
}
return nil
}
// SetCustomerProfiles sets the CustomerProfiles field's value.
func (s *DestinationConnectorProperties) SetCustomerProfiles(v *CustomerProfilesDestinationProperties) *DestinationConnectorProperties {
s.CustomerProfiles = v
return s
}
// SetEventBridge sets the EventBridge field's value.
func (s *DestinationConnectorProperties) SetEventBridge(v *EventBridgeDestinationProperties) *DestinationConnectorProperties {
s.EventBridge = v
return s
}
// SetHoneycode sets the Honeycode field's value.
func (s *DestinationConnectorProperties) SetHoneycode(v *HoneycodeDestinationProperties) *DestinationConnectorProperties {
s.Honeycode = v
return s
}
// SetLookoutMetrics sets the LookoutMetrics field's value.
func (s *DestinationConnectorProperties) SetLookoutMetrics(v *LookoutMetricsDestinationProperties) *DestinationConnectorProperties {
s.LookoutMetrics = v
return s
}
// SetRedshift sets the Redshift field's value.
func (s *DestinationConnectorProperties) SetRedshift(v *RedshiftDestinationProperties) *DestinationConnectorProperties {
s.Redshift = v
return s
}
// SetS3 sets the S3 field's value.
func (s *DestinationConnectorProperties) SetS3(v *S3DestinationProperties) *DestinationConnectorProperties {
s.S3 = v
return s
}
// SetSalesforce sets the Salesforce field's value.
func (s *DestinationConnectorProperties) SetSalesforce(v *SalesforceDestinationProperties) *DestinationConnectorProperties {
s.Salesforce = v
return s
}
// SetSnowflake sets the Snowflake field's value.
func (s *DestinationConnectorProperties) SetSnowflake(v *SnowflakeDestinationProperties) *DestinationConnectorProperties {
s.Snowflake = v
return s
}
// SetUpsolver sets the Upsolver field's value.
func (s *DestinationConnectorProperties) SetUpsolver(v *UpsolverDestinationProperties) *DestinationConnectorProperties {
s.Upsolver = v
return s
}
// SetZendesk sets the Zendesk field's value.
func (s *DestinationConnectorProperties) SetZendesk(v *ZendeskDestinationProperties) *DestinationConnectorProperties {
s.Zendesk = v
return s
}
// The properties that can be applied to a field when connector is being used
// as a destination.
type DestinationFieldProperties struct {
_ struct{} `type:"structure"`
// Specifies if the destination field can be created by the current user.
IsCreatable *bool `locationName:"isCreatable" type:"boolean"`
// Specifies if the destination field can have a null value.
IsNullable *bool `locationName:"isNullable" type:"boolean"`
// Specifies whether the field can be updated during an UPDATE or UPSERT write
// operation.
IsUpdatable *bool `locationName:"isUpdatable" type:"boolean"`
// Specifies if the flow run can either insert new rows in the destination field
// if they do not already exist, or update them if they do.
IsUpsertable *bool `locationName:"isUpsertable" type:"boolean"`
// A list of supported write operations. For each write operation listed, this
// field can be used in idFieldNames when that write operation is present as
// a destination option.
SupportedWriteOperations []*string `locationName:"supportedWriteOperations" type:"list"`
}
// String returns the string representation
func (s DestinationFieldProperties) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s DestinationFieldProperties) GoString() string {
return s.String()
}
// SetIsCreatable sets the IsCreatable field's value.
func (s *DestinationFieldProperties) SetIsCreatable(v bool) *DestinationFieldProperties {
s.IsCreatable = &v
return s
}
// SetIsNullable sets the IsNullable field's value.
func (s *DestinationFieldProperties) SetIsNullable(v bool) *DestinationFieldProperties {
s.IsNullable = &v
return s
}
// SetIsUpdatable sets the IsUpdatable field's value.
func (s *DestinationFieldProperties) SetIsUpdatable(v bool) *DestinationFieldProperties {
s.IsUpdatable = &v
return s
}
// SetIsUpsertable sets the IsUpsertable field's value.
func (s *DestinationFieldProperties) SetIsUpsertable(v bool) *DestinationFieldProperties {
s.IsUpsertable = &v
return s
}
// SetSupportedWriteOperations sets the SupportedWriteOperations field's value.
func (s *DestinationFieldProperties) SetSupportedWriteOperations(v []*string) *DestinationFieldProperties {
s.SupportedWriteOperations = v
return s
}
// Contains information about the configuration of destination connectors present
// in the flow.
type DestinationFlowConfig struct {
_ struct{} `type:"structure"`
// The name of the connector profile. This name must be unique for each connector
// profile in the AWS account.
ConnectorProfileName *string `locationName:"connectorProfileName" type:"string"`
// The type of connector, such as Salesforce, Amplitude, and so on.
//
// ConnectorType is a required field
ConnectorType *string `locationName:"connectorType" type:"string" required:"true" enum:"ConnectorType"`
// This stores the information that is required to query a particular connector.
//
// DestinationConnectorProperties is a required field
DestinationConnectorProperties *DestinationConnectorProperties `locationName:"destinationConnectorProperties" type:"structure" required:"true"`
}
// String returns the string representation
func (s DestinationFlowConfig) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s DestinationFlowConfig) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
func (s *DestinationFlowConfig) Validate() error {
invalidParams := request.ErrInvalidParams{Context: "DestinationFlowConfig"}
if s.ConnectorType == nil {
invalidParams.Add(request.NewErrParamRequired("ConnectorType"))
}
if s.DestinationConnectorProperties == nil {
invalidParams.Add(request.NewErrParamRequired("DestinationConnectorProperties"))
}
if s.DestinationConnectorProperties != nil {
if err := s.DestinationConnectorProperties.Validate(); err != nil {
invalidParams.AddNested("DestinationConnectorProperties", err.(request.ErrInvalidParams))
}
}
if invalidParams.Len() > 0 {
return invalidParams
}
return nil
}
// SetConnectorProfileName sets the ConnectorProfileName field's value.
func (s *DestinationFlowConfig) SetConnectorProfileName(v string) *DestinationFlowConfig {
s.ConnectorProfileName = &v
return s
}
// SetConnectorType sets the ConnectorType field's value.
func (s *DestinationFlowConfig) SetConnectorType(v string) *DestinationFlowConfig {
s.ConnectorType = &v
return s
}
// SetDestinationConnectorProperties sets the DestinationConnectorProperties field's value.
func (s *DestinationFlowConfig) SetDestinationConnectorProperties(v *DestinationConnectorProperties) *DestinationFlowConfig {
s.DestinationConnectorProperties = v
return s
}
// The connector-specific profile credentials required by Dynatrace.
type DynatraceConnectorProfileCredentials struct {
_ struct{} `type:"structure"`
// The API tokens used by Dynatrace API to authenticate various API calls.
//
// ApiToken is a required field
ApiToken *string `locationName:"apiToken" type:"string" required:"true"`
}
// String returns the string representation
func (s DynatraceConnectorProfileCredentials) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s DynatraceConnectorProfileCredentials) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
func (s *DynatraceConnectorProfileCredentials) Validate() error {
invalidParams := request.ErrInvalidParams{Context: "DynatraceConnectorProfileCredentials"}
if s.ApiToken == nil {
invalidParams.Add(request.NewErrParamRequired("ApiToken"))
}
if invalidParams.Len() > 0 {
return invalidParams
}
return nil
}
// SetApiToken sets the ApiToken field's value.
func (s *DynatraceConnectorProfileCredentials) SetApiToken(v string) *DynatraceConnectorProfileCredentials {
s.ApiToken = &v
return s
}
// The connector-specific profile properties required by Dynatrace.
type DynatraceConnectorProfileProperties struct {
_ struct{} `type:"structure"`
// The location of the Dynatrace resource.
//
// InstanceUrl is a required field
InstanceUrl *string `locationName:"instanceUrl" type:"string" required:"true"`
}
// String returns the string representation
func (s DynatraceConnectorProfileProperties) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s DynatraceConnectorProfileProperties) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
func (s *DynatraceConnectorProfileProperties) Validate() error {
invalidParams := request.ErrInvalidParams{Context: "DynatraceConnectorProfileProperties"}
if s.InstanceUrl == nil {
invalidParams.Add(request.NewErrParamRequired("InstanceUrl"))
}
if invalidParams.Len() > 0 {
return invalidParams
}
return nil
}
// SetInstanceUrl sets the InstanceUrl field's value.
func (s *DynatraceConnectorProfileProperties) SetInstanceUrl(v string) *DynatraceConnectorProfileProperties {
s.InstanceUrl = &v
return s
}
// The connector metadata specific to Dynatrace.
type DynatraceMetadata struct {
_ struct{} `type:"structure"`
}
// String returns the string representation
func (s DynatraceMetadata) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s DynatraceMetadata) GoString() string {
return s.String()
}
// The properties that are applied when Dynatrace is being used as a source.
type DynatraceSourceProperties struct {
_ struct{} `type:"structure"`
// The object specified in the Dynatrace flow source.
//
// Object is a required field
Object *string `locationName:"object" type:"string" required:"true"`
}
// String returns the string representation
func (s DynatraceSourceProperties) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s DynatraceSourceProperties) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
func (s *DynatraceSourceProperties) Validate() error {
invalidParams := request.ErrInvalidParams{Context: "DynatraceSourceProperties"}
if s.Object == nil {
invalidParams.Add(request.NewErrParamRequired("Object"))
}
if invalidParams.Len() > 0 {
return invalidParams
}
return nil
}
// SetObject sets the Object field's value.
func (s *DynatraceSourceProperties) SetObject(v string) *DynatraceSourceProperties {
s.Object = &v
return s
}
// The settings that determine how Amazon AppFlow handles an error when placing
// data in the destination. For example, this setting would determine if the
// flow should fail after one insertion error, or continue and attempt to insert
// every record regardless of the initial failure. ErrorHandlingConfig is a
// part of the destination connector details.
type ErrorHandlingConfig struct {
_ struct{} `type:"structure"`
// Specifies the name of the Amazon S3 bucket.
BucketName *string `locationName:"bucketName" min:"3" type:"string"`
// Specifies the Amazon S3 bucket prefix.
BucketPrefix *string `locationName:"bucketPrefix" type:"string"`
// Specifies if the flow should fail after the first instance of a failure when
// attempting to place data in the destination.
FailOnFirstDestinationError *bool `locationName:"failOnFirstDestinationError" type:"boolean"`
}
// String returns the string representation
func (s ErrorHandlingConfig) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s ErrorHandlingConfig) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
func (s *ErrorHandlingConfig) Validate() error {
invalidParams := request.ErrInvalidParams{Context: "ErrorHandlingConfig"}
if s.BucketName != nil && len(*s.BucketName) < 3 {
invalidParams.Add(request.NewErrParamMinLen("BucketName", 3))
}
if invalidParams.Len() > 0 {
return invalidParams
}
return nil
}
// SetBucketName sets the BucketName field's value.
func (s *ErrorHandlingConfig) SetBucketName(v string) *ErrorHandlingConfig {
s.BucketName = &v
return s
}
// SetBucketPrefix sets the BucketPrefix field's value.
func (s *ErrorHandlingConfig) SetBucketPrefix(v string) *ErrorHandlingConfig {
s.BucketPrefix = &v
return s
}
// SetFailOnFirstDestinationError sets the FailOnFirstDestinationError field's value.
func (s *ErrorHandlingConfig) SetFailOnFirstDestinationError(v bool) *ErrorHandlingConfig {
s.FailOnFirstDestinationError = &v
return s
}
// Provides details in the event of a failed flow, including the failure count
// and the related error messages.
type ErrorInfo struct {
_ struct{} `type:"structure"`
// Specifies the error message that appears if a flow fails.
ExecutionMessage *string `locationName:"executionMessage" type:"string"`
// Specifies the failure count for the attempted flow.
PutFailuresCount *int64 `locationName:"putFailuresCount" type:"long"`
}
// String returns the string representation
func (s ErrorInfo) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s ErrorInfo) GoString() string {
return s.String()
}
// SetExecutionMessage sets the ExecutionMessage field's value.
func (s *ErrorInfo) SetExecutionMessage(v string) *ErrorInfo {
s.ExecutionMessage = &v
return s
}
// SetPutFailuresCount sets the PutFailuresCount field's value.
func (s *ErrorInfo) SetPutFailuresCount(v int64) *ErrorInfo {
s.PutFailuresCount = &v
return s
}
// The properties that are applied when Amazon EventBridge is being used as
// a destination.
type EventBridgeDestinationProperties struct {
_ struct{} `type:"structure"`
// The settings that determine how Amazon AppFlow handles an error when placing
// data in the destination. For example, this setting would determine if the
// flow should fail after one insertion error, or continue and attempt to insert
// every record regardless of the initial failure. ErrorHandlingConfig is a
// part of the destination connector details.
ErrorHandlingConfig *ErrorHandlingConfig `locationName:"errorHandlingConfig" type:"structure"`
// The object specified in the Amazon EventBridge flow destination.
//
// Object is a required field
Object *string `locationName:"object" type:"string" required:"true"`
}
// String returns the string representation
func (s EventBridgeDestinationProperties) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s EventBridgeDestinationProperties) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
func (s *EventBridgeDestinationProperties) Validate() error {
invalidParams := request.ErrInvalidParams{Context: "EventBridgeDestinationProperties"}
if s.Object == nil {
invalidParams.Add(request.NewErrParamRequired("Object"))
}
if s.ErrorHandlingConfig != nil {
if err := s.ErrorHandlingConfig.Validate(); err != nil {
invalidParams.AddNested("ErrorHandlingConfig", err.(request.ErrInvalidParams))
}
}
if invalidParams.Len() > 0 {
return invalidParams
}
return nil
}
// SetErrorHandlingConfig sets the ErrorHandlingConfig field's value.
func (s *EventBridgeDestinationProperties) SetErrorHandlingConfig(v *ErrorHandlingConfig) *EventBridgeDestinationProperties {
s.ErrorHandlingConfig = v
return s
}
// SetObject sets the Object field's value.
func (s *EventBridgeDestinationProperties) SetObject(v string) *EventBridgeDestinationProperties {
s.Object = &v
return s
}
// The connector metadata specific to Amazon EventBridge.
type EventBridgeMetadata struct {
_ struct{} `type:"structure"`
}
// String returns the string representation
func (s EventBridgeMetadata) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s EventBridgeMetadata) GoString() string {
return s.String()
}
// Describes the details of the flow run, including the timestamp, status, and
// message.
type ExecutionDetails struct {
_ struct{} `type:"structure"`
// Describes the details of the most recent flow run.
MostRecentExecutionMessage *string `locationName:"mostRecentExecutionMessage" type:"string"`
// Specifies the status of the most recent flow run.
MostRecentExecutionStatus *string `locationName:"mostRecentExecutionStatus" type:"string" enum:"ExecutionStatus"`
// Specifies the time of the most recent flow run.
MostRecentExecutionTime *time.Time `locationName:"mostRecentExecutionTime" type:"timestamp"`
}
// String returns the string representation
func (s ExecutionDetails) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s ExecutionDetails) GoString() string {
return s.String()
}
// SetMostRecentExecutionMessage sets the MostRecentExecutionMessage field's value.
func (s *ExecutionDetails) SetMostRecentExecutionMessage(v string) *ExecutionDetails {
s.MostRecentExecutionMessage = &v
return s
}
// SetMostRecentExecutionStatus sets the MostRecentExecutionStatus field's value.
func (s *ExecutionDetails) SetMostRecentExecutionStatus(v string) *ExecutionDetails {
s.MostRecentExecutionStatus = &v
return s
}
// SetMostRecentExecutionTime sets the MostRecentExecutionTime field's value.
func (s *ExecutionDetails) SetMostRecentExecutionTime(v time.Time) *ExecutionDetails {
s.MostRecentExecutionTime = &v
return s
}
// Specifies information about the past flow run instances for a given flow.
type ExecutionRecord struct {
_ struct{} `type:"structure"`
// The timestamp that indicates the last new or updated record to be transferred
// in the flow run.
DataPullEndTime *time.Time `locationName:"dataPullEndTime" type:"timestamp"`
// The timestamp that determines the first new or updated record to be transferred
// in the flow run.
DataPullStartTime *time.Time `locationName:"dataPullStartTime" type:"timestamp"`
// Specifies the identifier of the given flow run.
ExecutionId *string `locationName:"executionId" type:"string"`
// Describes the result of the given flow run.
ExecutionResult *ExecutionResult `locationName:"executionResult" type:"structure"`
// Specifies the flow run status and whether it is in progress, has completed
// successfully, or has failed.
ExecutionStatus *string `locationName:"executionStatus" type:"string" enum:"ExecutionStatus"`
// Specifies the time of the most recent update.
LastUpdatedAt *time.Time `locationName:"lastUpdatedAt" type:"timestamp"`
// Specifies the start time of the flow run.
StartedAt *time.Time `locationName:"startedAt" type:"timestamp"`
}
// String returns the string representation
func (s ExecutionRecord) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s ExecutionRecord) GoString() string {
return s.String()
}
// SetDataPullEndTime sets the DataPullEndTime field's value.
func (s *ExecutionRecord) SetDataPullEndTime(v time.Time) *ExecutionRecord {
s.DataPullEndTime = &v
return s
}
// SetDataPullStartTime sets the DataPullStartTime field's value.
func (s *ExecutionRecord) SetDataPullStartTime(v time.Time) *ExecutionRecord {
s.DataPullStartTime = &v
return s
}
// SetExecutionId sets the ExecutionId field's value.
func (s *ExecutionRecord) SetExecutionId(v string) *ExecutionRecord {
s.ExecutionId = &v
return s
}
// SetExecutionResult sets the ExecutionResult field's value.
func (s *ExecutionRecord) SetExecutionResult(v *ExecutionResult) *ExecutionRecord {
s.ExecutionResult = v
return s
}
// SetExecutionStatus sets the ExecutionStatus field's value.
func (s *ExecutionRecord) SetExecutionStatus(v string) *ExecutionRecord {
s.ExecutionStatus = &v
return s
}
// SetLastUpdatedAt sets the LastUpdatedAt field's value.
func (s *ExecutionRecord) SetLastUpdatedAt(v time.Time) *ExecutionRecord {
s.LastUpdatedAt = &v
return s
}
// SetStartedAt sets the StartedAt field's value.
func (s *ExecutionRecord) SetStartedAt(v time.Time) *ExecutionRecord {
s.StartedAt = &v
return s
}
// Specifies the end result of the flow run.
type ExecutionResult struct {
_ struct{} `type:"structure"`
// The total number of bytes processed by the flow run.
BytesProcessed *int64 `locationName:"bytesProcessed" type:"long"`
// The total number of bytes written as a result of the flow run.
BytesWritten *int64 `locationName:"bytesWritten" type:"long"`
// Provides any error message information related to the flow run.
ErrorInfo *ErrorInfo `locationName:"errorInfo" type:"structure"`
// The number of records processed in the flow run.
RecordsProcessed *int64 `locationName:"recordsProcessed" type:"long"`
}
// String returns the string representation
func (s ExecutionResult) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s ExecutionResult) GoString() string {
return s.String()
}
// SetBytesProcessed sets the BytesProcessed field's value.
func (s *ExecutionResult) SetBytesProcessed(v int64) *ExecutionResult {
s.BytesProcessed = &v
return s
}
// SetBytesWritten sets the BytesWritten field's value.
func (s *ExecutionResult) SetBytesWritten(v int64) *ExecutionResult {
s.BytesWritten = &v
return s
}
// SetErrorInfo sets the ErrorInfo field's value.
func (s *ExecutionResult) SetErrorInfo(v *ErrorInfo) *ExecutionResult {
s.ErrorInfo = v
return s
}
// SetRecordsProcessed sets the RecordsProcessed field's value.
func (s *ExecutionResult) SetRecordsProcessed(v int64) *ExecutionResult {
s.RecordsProcessed = &v
return s
}
// Contains details regarding the supported field type and the operators that
// can be applied for filtering.
type FieldTypeDetails struct {
_ struct{} `type:"structure"`
// The type of field, such as string, integer, date, and so on.
//
// FieldType is a required field
FieldType *string `locationName:"fieldType" type:"string" required:"true"`
// The list of operators supported by a field.
//
// FilterOperators is a required field
FilterOperators []*string `locationName:"filterOperators" type:"list" required:"true"`
// The list of values that a field can contain. For example, a Boolean fieldType
// can have two values: "true" and "false".
SupportedValues []*string `locationName:"supportedValues" type:"list"`
}
// String returns the string representation
func (s FieldTypeDetails) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s FieldTypeDetails) GoString() string {
return s.String()
}
// SetFieldType sets the FieldType field's value.
func (s *FieldTypeDetails) SetFieldType(v string) *FieldTypeDetails {
s.FieldType = &v
return s
}
// SetFilterOperators sets the FilterOperators field's value.
func (s *FieldTypeDetails) SetFilterOperators(v []*string) *FieldTypeDetails {
s.FilterOperators = v
return s
}
// SetSupportedValues sets the SupportedValues field's value.
func (s *FieldTypeDetails) SetSupportedValues(v []*string) *FieldTypeDetails {
s.SupportedValues = v
return s
}
// The properties of the flow, such as its source, destination, trigger type,
// and so on.
type FlowDefinition struct {
_ struct{} `type:"structure"`
// Specifies when the flow was created.
CreatedAt *time.Time `locationName:"createdAt" type:"timestamp"`
// The ARN of the user who created the flow.
CreatedBy *string `locationName:"createdBy" type:"string"`
// A user-entered description of the flow.
Description *string `locationName:"description" type:"string"`
// Specifies the destination connector type, such as Salesforce, Amazon S3,
// Amplitude, and so on.
DestinationConnectorType *string `locationName:"destinationConnectorType" type:"string" enum:"ConnectorType"`
// The flow's Amazon Resource Name (ARN).
FlowArn *string `locationName:"flowArn" type:"string"`
// The specified name of the flow. Spaces are not allowed. Use underscores (_)
// or hyphens (-) only.
FlowName *string `locationName:"flowName" type:"string"`
// Indicates the current status of the flow.
FlowStatus *string `locationName:"flowStatus" type:"string" enum:"FlowStatus"`
// Describes the details of the most recent flow run.
LastRunExecutionDetails *ExecutionDetails `locationName:"lastRunExecutionDetails" type:"structure"`
// Specifies when the flow was last updated.
LastUpdatedAt *time.Time `locationName:"lastUpdatedAt" type:"timestamp"`
// Specifies the account user name that most recently updated the flow.
LastUpdatedBy *string `locationName:"lastUpdatedBy" type:"string"`
// Specifies the source connector type, such as Salesforce, Amazon S3, Amplitude,
// and so on.
SourceConnectorType *string `locationName:"sourceConnectorType" type:"string" enum:"ConnectorType"`
// The tags used to organize, track, or control access for your flow.
Tags map[string]*string `locationName:"tags" type:"map"`
// Specifies the type of flow trigger. This can be OnDemand, Scheduled, or Event.
TriggerType *string `locationName:"triggerType" type:"string" enum:"TriggerType"`
}
// String returns the string representation
func (s FlowDefinition) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s FlowDefinition) GoString() string {
return s.String()
}
// SetCreatedAt sets the CreatedAt field's value.
func (s *FlowDefinition) SetCreatedAt(v time.Time) *FlowDefinition {
s.CreatedAt = &v
return s
}
// SetCreatedBy sets the CreatedBy field's value.
func (s *FlowDefinition) SetCreatedBy(v string) *FlowDefinition {
s.CreatedBy = &v
return s
}
// SetDescription sets the Description field's value.
func (s *FlowDefinition) SetDescription(v string) *FlowDefinition {
s.Description = &v
return s
}
// SetDestinationConnectorType sets the DestinationConnectorType field's value.
func (s *FlowDefinition) SetDestinationConnectorType(v string) *FlowDefinition {
s.DestinationConnectorType = &v
return s
}
// SetFlowArn sets the FlowArn field's value.
func (s *FlowDefinition) SetFlowArn(v string) *FlowDefinition {
s.FlowArn = &v
return s
}
// SetFlowName sets the FlowName field's value.
func (s *FlowDefinition) SetFlowName(v string) *FlowDefinition {
s.FlowName = &v
return s
}
// SetFlowStatus sets the FlowStatus field's value.
func (s *FlowDefinition) SetFlowStatus(v string) *FlowDefinition {
s.FlowStatus = &v
return s
}
// SetLastRunExecutionDetails sets the LastRunExecutionDetails field's value.
func (s *FlowDefinition) SetLastRunExecutionDetails(v *ExecutionDetails) *FlowDefinition {
s.LastRunExecutionDetails = v
return s
}
// SetLastUpdatedAt sets the LastUpdatedAt field's value.
func (s *FlowDefinition) SetLastUpdatedAt(v time.Time) *FlowDefinition {
s.LastUpdatedAt = &v
return s
}
// SetLastUpdatedBy sets the LastUpdatedBy field's value.
func (s *FlowDefinition) SetLastUpdatedBy(v string) *FlowDefinition {
s.LastUpdatedBy = &v
return s
}
// SetSourceConnectorType sets the SourceConnectorType field's value.
func (s *FlowDefinition) SetSourceConnectorType(v string) *FlowDefinition {
s.SourceConnectorType = &v
return s
}
// SetTags sets the Tags field's value.
func (s *FlowDefinition) SetTags(v map[string]*string) *FlowDefinition {
s.Tags = v
return s
}
// SetTriggerType sets the TriggerType field's value.
func (s *FlowDefinition) SetTriggerType(v string) *FlowDefinition {
s.TriggerType = &v
return s
}
// The connector-specific profile credentials required by Google Analytics.
type GoogleAnalyticsConnectorProfileCredentials struct {
_ struct{} `type:"structure"`
// The credentials used to access protected Google Analytics resources.
AccessToken *string `locationName:"accessToken" type:"string" sensitive:"true"`
// The identifier for the desired client.
//
// ClientId is a required field
ClientId *string `locationName:"clientId" type:"string" required:"true"`
// The client secret used by the OAuth client to authenticate to the authorization
// server.
//
// ClientSecret is a required field
ClientSecret *string `locationName:"clientSecret" type:"string" required:"true" sensitive:"true"`
// The OAuth requirement needed to request security tokens from the connector
// endpoint.
OAuthRequest *ConnectorOAuthRequest `locationName:"oAuthRequest" type:"structure"`
// The credentials used to acquire new access tokens. This is required only
// for OAuth2 access tokens, and is not required for OAuth1 access tokens.
RefreshToken *string `locationName:"refreshToken" type:"string"`
}
// String returns the string representation
func (s GoogleAnalyticsConnectorProfileCredentials) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s GoogleAnalyticsConnectorProfileCredentials) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
func (s *GoogleAnalyticsConnectorProfileCredentials) Validate() error {
invalidParams := request.ErrInvalidParams{Context: "GoogleAnalyticsConnectorProfileCredentials"}
if s.ClientId == nil {
invalidParams.Add(request.NewErrParamRequired("ClientId"))
}
if s.ClientSecret == nil {
invalidParams.Add(request.NewErrParamRequired("ClientSecret"))
}
if invalidParams.Len() > 0 {
return invalidParams
}
return nil
}
// SetAccessToken sets the AccessToken field's value.
func (s *GoogleAnalyticsConnectorProfileCredentials) SetAccessToken(v string) *GoogleAnalyticsConnectorProfileCredentials {
s.AccessToken = &v
return s
}
// SetClientId sets the ClientId field's value.
func (s *GoogleAnalyticsConnectorProfileCredentials) SetClientId(v string) *GoogleAnalyticsConnectorProfileCredentials {
s.ClientId = &v
return s
}
// SetClientSecret sets the ClientSecret field's value.
func (s *GoogleAnalyticsConnectorProfileCredentials) SetClientSecret(v string) *GoogleAnalyticsConnectorProfileCredentials {
s.ClientSecret = &v
return s
}
// SetOAuthRequest sets the OAuthRequest field's value.
func (s *GoogleAnalyticsConnectorProfileCredentials) SetOAuthRequest(v *ConnectorOAuthRequest) *GoogleAnalyticsConnectorProfileCredentials {
s.OAuthRequest = v
return s
}
// SetRefreshToken sets the RefreshToken field's value.
func (s *GoogleAnalyticsConnectorProfileCredentials) SetRefreshToken(v string) *GoogleAnalyticsConnectorProfileCredentials {
s.RefreshToken = &v
return s
}
// The connector-specific profile properties required by Google Analytics.
type GoogleAnalyticsConnectorProfileProperties struct {
_ struct{} `type:"structure"`
}
// String returns the string representation
func (s GoogleAnalyticsConnectorProfileProperties) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s GoogleAnalyticsConnectorProfileProperties) GoString() string {
return s.String()
}
// The connector metadata specific to Google Analytics.
type GoogleAnalyticsMetadata struct {
_ struct{} `type:"structure"`
// The desired authorization scope for the Google Analytics account.
OAuthScopes []*string `locationName:"oAuthScopes" type:"list"`
}
// String returns the string representation
func (s GoogleAnalyticsMetadata) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s GoogleAnalyticsMetadata) GoString() string {
return s.String()
}
// SetOAuthScopes sets the OAuthScopes field's value.
func (s *GoogleAnalyticsMetadata) SetOAuthScopes(v []*string) *GoogleAnalyticsMetadata {
s.OAuthScopes = v
return s
}
// The properties that are applied when Google Analytics is being used as a
// source.
type GoogleAnalyticsSourceProperties struct {
_ struct{} `type:"structure"`
// The object specified in the Google Analytics flow source.
//
// Object is a required field
Object *string `locationName:"object" type:"string" required:"true"`
}
// String returns the string representation
func (s GoogleAnalyticsSourceProperties) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s GoogleAnalyticsSourceProperties) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
func (s *GoogleAnalyticsSourceProperties) Validate() error {
invalidParams := request.ErrInvalidParams{Context: "GoogleAnalyticsSourceProperties"}
if s.Object == nil {
invalidParams.Add(request.NewErrParamRequired("Object"))
}
if invalidParams.Len() > 0 {
return invalidParams
}
return nil
}
// SetObject sets the Object field's value.
func (s *GoogleAnalyticsSourceProperties) SetObject(v string) *GoogleAnalyticsSourceProperties {
s.Object = &v
return s
}
// The connector-specific credentials required when using Amazon Honeycode.
type HoneycodeConnectorProfileCredentials struct {
_ struct{} `type:"structure"`
// The credentials used to access protected Amazon Honeycode resources.
AccessToken *string `locationName:"accessToken" type:"string" sensitive:"true"`
// Used by select connectors for which the OAuth workflow is supported, such
// as Salesforce, Google Analytics, Marketo, Zendesk, and Slack.
OAuthRequest *ConnectorOAuthRequest `locationName:"oAuthRequest" type:"structure"`
// The credentials used to acquire new access tokens.
RefreshToken *string `locationName:"refreshToken" type:"string"`
}
// String returns the string representation
func (s HoneycodeConnectorProfileCredentials) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s HoneycodeConnectorProfileCredentials) GoString() string {
return s.String()
}
// SetAccessToken sets the AccessToken field's value.
func (s *HoneycodeConnectorProfileCredentials) SetAccessToken(v string) *HoneycodeConnectorProfileCredentials {
s.AccessToken = &v
return s
}
// SetOAuthRequest sets the OAuthRequest field's value.
func (s *HoneycodeConnectorProfileCredentials) SetOAuthRequest(v *ConnectorOAuthRequest) *HoneycodeConnectorProfileCredentials {
s.OAuthRequest = v
return s
}
// SetRefreshToken sets the RefreshToken field's value.
func (s *HoneycodeConnectorProfileCredentials) SetRefreshToken(v string) *HoneycodeConnectorProfileCredentials {
s.RefreshToken = &v
return s
}
// The connector-specific properties required when using Amazon Honeycode.
type HoneycodeConnectorProfileProperties struct {
_ struct{} `type:"structure"`
}
// String returns the string representation
func (s HoneycodeConnectorProfileProperties) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s HoneycodeConnectorProfileProperties) GoString() string {
return s.String()
}
// The properties that are applied when Amazon Honeycode is used as a destination.
type HoneycodeDestinationProperties struct {
_ struct{} `type:"structure"`
// The settings that determine how Amazon AppFlow handles an error when placing
// data in the destination. For example, this setting would determine if the
// flow should fail after one insertion error, or continue and attempt to insert
// every record regardless of the initial failure. ErrorHandlingConfig is a
// part of the destination connector details.
ErrorHandlingConfig *ErrorHandlingConfig `locationName:"errorHandlingConfig" type:"structure"`
// The object specified in the Amazon Honeycode flow destination.
//
// Object is a required field
Object *string `locationName:"object" type:"string" required:"true"`
}
// String returns the string representation
func (s HoneycodeDestinationProperties) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s HoneycodeDestinationProperties) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
func (s *HoneycodeDestinationProperties) Validate() error {
invalidParams := request.ErrInvalidParams{Context: "HoneycodeDestinationProperties"}
if s.Object == nil {
invalidParams.Add(request.NewErrParamRequired("Object"))
}
if s.ErrorHandlingConfig != nil {
if err := s.ErrorHandlingConfig.Validate(); err != nil {
invalidParams.AddNested("ErrorHandlingConfig", err.(request.ErrInvalidParams))
}
}
if invalidParams.Len() > 0 {
return invalidParams
}
return nil
}
// SetErrorHandlingConfig sets the ErrorHandlingConfig field's value.
func (s *HoneycodeDestinationProperties) SetErrorHandlingConfig(v *ErrorHandlingConfig) *HoneycodeDestinationProperties {
s.ErrorHandlingConfig = v
return s
}
// SetObject sets the Object field's value.
func (s *HoneycodeDestinationProperties) SetObject(v string) *HoneycodeDestinationProperties {
s.Object = &v
return s
}
// The connector metadata specific to Amazon Honeycode.
type HoneycodeMetadata struct {
_ struct{} `type:"structure"`
// The desired authorization scope for the Amazon Honeycode account.
OAuthScopes []*string `locationName:"oAuthScopes" type:"list"`
}
// String returns the string representation
func (s HoneycodeMetadata) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s HoneycodeMetadata) GoString() string {
return s.String()
}
// SetOAuthScopes sets the OAuthScopes field's value.
func (s *HoneycodeMetadata) SetOAuthScopes(v []*string) *HoneycodeMetadata {
s.OAuthScopes = v
return s
}
// Specifies the configuration used when importing incremental records from
// the source.
type IncrementalPullConfig struct {
_ struct{} `type:"structure"`
// A field that specifies the date time or timestamp field as the criteria to
// use when importing incremental records from the source.
DatetimeTypeFieldName *string `locationName:"datetimeTypeFieldName" type:"string"`
}
// String returns the string representation
func (s IncrementalPullConfig) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s IncrementalPullConfig) GoString() string {
return s.String()
}
// SetDatetimeTypeFieldName sets the DatetimeTypeFieldName field's value.
func (s *IncrementalPullConfig) SetDatetimeTypeFieldName(v string) *IncrementalPullConfig {
s.DatetimeTypeFieldName = &v
return s
}
// The connector-specific profile credentials required by Infor Nexus.
type InforNexusConnectorProfileCredentials struct {
_ struct{} `type:"structure"`
// The Access Key portion of the credentials.
//
// AccessKeyId is a required field
AccessKeyId *string `locationName:"accessKeyId" type:"string" required:"true" sensitive:"true"`
// The encryption keys used to encrypt data.
//
// Datakey is a required field
Datakey *string `locationName:"datakey" type:"string" required:"true"`
// The secret key used to sign requests.
//
// SecretAccessKey is a required field
SecretAccessKey *string `locationName:"secretAccessKey" type:"string" required:"true"`
// The identifier for the user.
//
// UserId is a required field
UserId *string `locationName:"userId" type:"string" required:"true"`
}
// String returns the string representation
func (s InforNexusConnectorProfileCredentials) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s InforNexusConnectorProfileCredentials) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
func (s *InforNexusConnectorProfileCredentials) Validate() error {
invalidParams := request.ErrInvalidParams{Context: "InforNexusConnectorProfileCredentials"}
if s.AccessKeyId == nil {
invalidParams.Add(request.NewErrParamRequired("AccessKeyId"))
}
if s.Datakey == nil {
invalidParams.Add(request.NewErrParamRequired("Datakey"))
}
if s.SecretAccessKey == nil {
invalidParams.Add(request.NewErrParamRequired("SecretAccessKey"))
}
if s.UserId == nil {
invalidParams.Add(request.NewErrParamRequired("UserId"))
}
if invalidParams.Len() > 0 {
return invalidParams
}
return nil
}
// SetAccessKeyId sets the AccessKeyId field's value.
func (s *InforNexusConnectorProfileCredentials) SetAccessKeyId(v string) *InforNexusConnectorProfileCredentials {
s.AccessKeyId = &v
return s
}
// SetDatakey sets the Datakey field's value.
func (s *InforNexusConnectorProfileCredentials) SetDatakey(v string) *InforNexusConnectorProfileCredentials {
s.Datakey = &v
return s
}
// SetSecretAccessKey sets the SecretAccessKey field's value.
func (s *InforNexusConnectorProfileCredentials) SetSecretAccessKey(v string) *InforNexusConnectorProfileCredentials {
s.SecretAccessKey = &v
return s
}
// SetUserId sets the UserId field's value.
func (s *InforNexusConnectorProfileCredentials) SetUserId(v string) *InforNexusConnectorProfileCredentials {
s.UserId = &v
return s
}
// The connector-specific profile properties required by Infor Nexus.
type InforNexusConnectorProfileProperties struct {
_ struct{} `type:"structure"`
// The location of the Infor Nexus resource.
//
// InstanceUrl is a required field
InstanceUrl *string `locationName:"instanceUrl" type:"string" required:"true"`
}
// String returns the string representation
func (s InforNexusConnectorProfileProperties) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s InforNexusConnectorProfileProperties) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
func (s *InforNexusConnectorProfileProperties) Validate() error {
invalidParams := request.ErrInvalidParams{Context: "InforNexusConnectorProfileProperties"}
if s.InstanceUrl == nil {
invalidParams.Add(request.NewErrParamRequired("InstanceUrl"))
}
if invalidParams.Len() > 0 {
return invalidParams
}
return nil
}
// SetInstanceUrl sets the InstanceUrl field's value.
func (s *InforNexusConnectorProfileProperties) SetInstanceUrl(v string) *InforNexusConnectorProfileProperties {
s.InstanceUrl = &v
return s
}
// The connector metadata specific to Infor Nexus.
type InforNexusMetadata struct {
_ struct{} `type:"structure"`
}
// String returns the string representation
func (s InforNexusMetadata) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s InforNexusMetadata) GoString() string {
return s.String()
}
// The properties that are applied when Infor Nexus is being used as a source.
type InforNexusSourceProperties struct {
_ struct{} `type:"structure"`
// The object specified in the Infor Nexus flow source.
//
// Object is a required field
Object *string `locationName:"object" type:"string" required:"true"`
}
// String returns the string representation
func (s InforNexusSourceProperties) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s InforNexusSourceProperties) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
func (s *InforNexusSourceProperties) Validate() error {
invalidParams := request.ErrInvalidParams{Context: "InforNexusSourceProperties"}
if s.Object == nil {
invalidParams.Add(request.NewErrParamRequired("Object"))
}
if invalidParams.Len() > 0 {
return invalidParams
}
return nil
}
// SetObject sets the Object field's value.
func (s *InforNexusSourceProperties) SetObject(v string) *InforNexusSourceProperties {
s.Object = &v
return s
}
// An internal service error occurred during the processing of your request.
// Try again later.
type InternalServerException struct {
_ struct{} `type:"structure"`
RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
// String returns the string representation
func (s InternalServerException) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s InternalServerException) GoString() string {
return s.String()
}
func newErrorInternalServerException(v protocol.ResponseMetadata) error {
return &InternalServerException{
RespMetadata: v,
}
}
// Code returns the exception type name.
func (s *InternalServerException) Code() string {
return "InternalServerException"
}
// Message returns the exception's message.
func (s *InternalServerException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
return ""
}
// OrigErr always returns nil, satisfies awserr.Error interface.
func (s *InternalServerException) OrigErr() error {
return nil
}
func (s *InternalServerException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
func (s *InternalServerException) StatusCode() int {
return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
func (s *InternalServerException) RequestID() string {
return s.RespMetadata.RequestID
}
type ListConnectorEntitiesInput struct {
_ struct{} `type:"structure"`
// The name of the connector profile. The name is unique for each ConnectorProfile
// in the AWS account, and is used to query the downstream connector.
ConnectorProfileName *string `locationName:"connectorProfileName" type:"string"`
// The type of connector, such as Salesforce, Amplitude, and so on.
ConnectorType *string `locationName:"connectorType" type:"string" enum:"ConnectorType"`
// This optional parameter is specific to connector implementation. Some connectors
// support multiple levels or categories of entities. You can find out the list
// of roots for such providers by sending a request without the entitiesPath
// parameter. If the connector supports entities at different roots, this initial
// request returns the list of roots. Otherwise, this request returns all entities
// supported by the provider.
EntitiesPath *string `locationName:"entitiesPath" type:"string"`
}
// String returns the string representation
func (s ListConnectorEntitiesInput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s ListConnectorEntitiesInput) GoString() string {
return s.String()
}
// SetConnectorProfileName sets the ConnectorProfileName field's value.
func (s *ListConnectorEntitiesInput) SetConnectorProfileName(v string) *ListConnectorEntitiesInput {
s.ConnectorProfileName = &v
return s
}
// SetConnectorType sets the ConnectorType field's value.
func (s *ListConnectorEntitiesInput) SetConnectorType(v string) *ListConnectorEntitiesInput {
s.ConnectorType = &v
return s
}
// SetEntitiesPath sets the EntitiesPath field's value.
func (s *ListConnectorEntitiesInput) SetEntitiesPath(v string) *ListConnectorEntitiesInput {
s.EntitiesPath = &v
return s
}
type ListConnectorEntitiesOutput struct {
_ struct{} `type:"structure"`
// The response of ListConnectorEntities lists entities grouped by category.
// This map's key represents the group name, and its value contains the list
// of entities belonging to that group.
//
// ConnectorEntityMap is a required field
ConnectorEntityMap map[string][]*ConnectorEntity `locationName:"connectorEntityMap" type:"map" required:"true"`
}
// String returns the string representation
func (s ListConnectorEntitiesOutput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s ListConnectorEntitiesOutput) GoString() string {
return s.String()
}
// SetConnectorEntityMap sets the ConnectorEntityMap field's value.
func (s *ListConnectorEntitiesOutput) SetConnectorEntityMap(v map[string][]*ConnectorEntity) *ListConnectorEntitiesOutput {
s.ConnectorEntityMap = v
return s
}
type ListFlowsInput struct {
_ struct{} `type:"structure"`
// Specifies the maximum number of items that should be returned in the result
// set.
MaxResults *int64 `locationName:"maxResults" min:"1" type:"integer"`
// The pagination token for next page of data.
NextToken *string `locationName:"nextToken" type:"string"`
}
// String returns the string representation
func (s ListFlowsInput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s ListFlowsInput) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
func (s *ListFlowsInput) Validate() error {
invalidParams := request.ErrInvalidParams{Context: "ListFlowsInput"}
if s.MaxResults != nil && *s.MaxResults < 1 {
invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1))
}
if invalidParams.Len() > 0 {
return invalidParams
}
return nil
}
// SetMaxResults sets the MaxResults field's value.
func (s *ListFlowsInput) SetMaxResults(v int64) *ListFlowsInput {
s.MaxResults = &v
return s
}
// SetNextToken sets the NextToken field's value.
func (s *ListFlowsInput) SetNextToken(v string) *ListFlowsInput {
s.NextToken = &v
return s
}
type ListFlowsOutput struct {
_ struct{} `type:"structure"`
// The list of flows associated with your account.
Flows []*FlowDefinition `locationName:"flows" type:"list"`
// The pagination token for next page of data.
NextToken *string `locationName:"nextToken" type:"string"`
}
// String returns the string representation
func (s ListFlowsOutput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s ListFlowsOutput) GoString() string {
return s.String()
}
// SetFlows sets the Flows field's value.
func (s *ListFlowsOutput) SetFlows(v []*FlowDefinition) *ListFlowsOutput {
s.Flows = v
return s
}
// SetNextToken sets the NextToken field's value.
func (s *ListFlowsOutput) SetNextToken(v string) *ListFlowsOutput {
s.NextToken = &v
return s
}
type ListTagsForResourceInput struct {
_ struct{} `type:"structure"`
// The Amazon Resource Name (ARN) of the specified flow.
//
// ResourceArn is a required field
ResourceArn *string `location:"uri" locationName:"resourceArn" type:"string" required:"true"`
}
// String returns the string representation
func (s ListTagsForResourceInput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s ListTagsForResourceInput) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
func (s *ListTagsForResourceInput) Validate() error {
invalidParams := request.ErrInvalidParams{Context: "ListTagsForResourceInput"}
if s.ResourceArn == nil {
invalidParams.Add(request.NewErrParamRequired("ResourceArn"))
}
if s.ResourceArn != nil && len(*s.ResourceArn) < 1 {
invalidParams.Add(request.NewErrParamMinLen("ResourceArn", 1))
}
if invalidParams.Len() > 0 {
return invalidParams
}
return nil
}
// SetResourceArn sets the ResourceArn field's value.
func (s *ListTagsForResourceInput) SetResourceArn(v string) *ListTagsForResourceInput {
s.ResourceArn = &v
return s
}
type ListTagsForResourceOutput struct {
_ struct{} `type:"structure"`
// The tags used to organize, track, or control access for your flow.
Tags map[string]*string `locationName:"tags" type:"map"`
}
// String returns the string representation
func (s ListTagsForResourceOutput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s ListTagsForResourceOutput) GoString() string {
return s.String()
}
// SetTags sets the Tags field's value.
func (s *ListTagsForResourceOutput) SetTags(v map[string]*string) *ListTagsForResourceOutput {
s.Tags = v
return s
}
// The properties that are applied when Amazon Lookout for Metrics is used as
// a destination.
type LookoutMetricsDestinationProperties struct {
_ struct{} `type:"structure"`
}
// String returns the string representation
func (s LookoutMetricsDestinationProperties) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s LookoutMetricsDestinationProperties) GoString() string {
return s.String()
}
// The connector-specific profile credentials required by Marketo.
type MarketoConnectorProfileCredentials struct {
_ struct{} `type:"structure"`
// The credentials used to access protected Marketo resources.
AccessToken *string `locationName:"accessToken" type:"string" sensitive:"true"`
// The identifier for the desired client.
//
// ClientId is a required field
ClientId *string `locationName:"clientId" type:"string" required:"true"`
// The client secret used by the OAuth client to authenticate to the authorization
// server.
//
// ClientSecret is a required field
ClientSecret *string `locationName:"clientSecret" type:"string" required:"true" sensitive:"true"`
// The OAuth requirement needed to request security tokens from the connector
// endpoint.
OAuthRequest *ConnectorOAuthRequest `locationName:"oAuthRequest" type:"structure"`
}
// String returns the string representation
func (s MarketoConnectorProfileCredentials) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s MarketoConnectorProfileCredentials) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
func (s *MarketoConnectorProfileCredentials) Validate() error {
invalidParams := request.ErrInvalidParams{Context: "MarketoConnectorProfileCredentials"}
if s.ClientId == nil {
invalidParams.Add(request.NewErrParamRequired("ClientId"))
}
if s.ClientSecret == nil {
invalidParams.Add(request.NewErrParamRequired("ClientSecret"))
}
if invalidParams.Len() > 0 {
return invalidParams
}
return nil
}
// SetAccessToken sets the AccessToken field's value.
func (s *MarketoConnectorProfileCredentials) SetAccessToken(v string) *MarketoConnectorProfileCredentials {
s.AccessToken = &v
return s
}
// SetClientId sets the ClientId field's value.
func (s *MarketoConnectorProfileCredentials) SetClientId(v string) *MarketoConnectorProfileCredentials {
s.ClientId = &v
return s
}
// SetClientSecret sets the ClientSecret field's value.
func (s *MarketoConnectorProfileCredentials) SetClientSecret(v string) *MarketoConnectorProfileCredentials {
s.ClientSecret = &v
return s
}
// SetOAuthRequest sets the OAuthRequest field's value.
func (s *MarketoConnectorProfileCredentials) SetOAuthRequest(v *ConnectorOAuthRequest) *MarketoConnectorProfileCredentials {
s.OAuthRequest = v
return s
}
// The connector-specific profile properties required when using Marketo.
type MarketoConnectorProfileProperties struct {
_ struct{} `type:"structure"`
// The location of the Marketo resource.
//
// InstanceUrl is a required field
InstanceUrl *string `locationName:"instanceUrl" type:"string" required:"true"`
}
// String returns the string representation
func (s MarketoConnectorProfileProperties) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s MarketoConnectorProfileProperties) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
func (s *MarketoConnectorProfileProperties) Validate() error {
invalidParams := request.ErrInvalidParams{Context: "MarketoConnectorProfileProperties"}
if s.InstanceUrl == nil {
invalidParams.Add(request.NewErrParamRequired("InstanceUrl"))
}
if invalidParams.Len() > 0 {
return invalidParams
}
return nil
}
// SetInstanceUrl sets the InstanceUrl field's value.
func (s *MarketoConnectorProfileProperties) SetInstanceUrl(v string) *MarketoConnectorProfileProperties {
s.InstanceUrl = &v
return s
}
// The connector metadata specific to Marketo.
type MarketoMetadata struct {
_ struct{} `type:"structure"`
}
// String returns the string representation
func (s MarketoMetadata) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s MarketoMetadata) GoString() string {
return s.String()
}
// The properties that are applied when Marketo is being used as a source.
type MarketoSourceProperties struct {
_ struct{} `type:"structure"`
// The object specified in the Marketo flow source.
//
// Object is a required field
Object *string `locationName:"object" type:"string" required:"true"`
}
// String returns the string representation
func (s MarketoSourceProperties) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s MarketoSourceProperties) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
func (s *MarketoSourceProperties) Validate() error {
invalidParams := request.ErrInvalidParams{Context: "MarketoSourceProperties"}
if s.Object == nil {
invalidParams.Add(request.NewErrParamRequired("Object"))
}
if invalidParams.Len() > 0 {
return invalidParams
}
return nil
}
// SetObject sets the Object field's value.
func (s *MarketoSourceProperties) SetObject(v string) *MarketoSourceProperties {
s.Object = &v
return s
}
// Determines the prefix that Amazon AppFlow applies to the destination folder
// name. You can name your destination folders according to the flow frequency
// and date.
type PrefixConfig struct {
_ struct{} `type:"structure"`
// Determines the level of granularity that's included in the prefix.
PrefixFormat *string `locationName:"prefixFormat" type:"string" enum:"PrefixFormat"`
// Determines the format of the prefix, and whether it applies to the file name,
// file path, or both.
PrefixType *string `locationName:"prefixType" type:"string" enum:"PrefixType"`
}
// String returns the string representation
func (s PrefixConfig) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s PrefixConfig) GoString() string {
return s.String()
}
// SetPrefixFormat sets the PrefixFormat field's value.
func (s *PrefixConfig) SetPrefixFormat(v string) *PrefixConfig {
s.PrefixFormat = &v
return s
}
// SetPrefixType sets the PrefixType field's value.
func (s *PrefixConfig) SetPrefixType(v string) *PrefixConfig {
s.PrefixType = &v
return s
}
// The connector-specific profile credentials required when using Amazon Redshift.
type RedshiftConnectorProfileCredentials struct {
_ struct{} `type:"structure"`
// The password that corresponds to the user name.
//
// Password is a required field
Password *string `locationName:"password" type:"string" required:"true" sensitive:"true"`
// The name of the user.
//
// Username is a required field
Username *string `locationName:"username" type:"string" required:"true"`
}
// String returns the string representation
func (s RedshiftConnectorProfileCredentials) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s RedshiftConnectorProfileCredentials) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
func (s *RedshiftConnectorProfileCredentials) Validate() error {
invalidParams := request.ErrInvalidParams{Context: "RedshiftConnectorProfileCredentials"}
if s.Password == nil {
invalidParams.Add(request.NewErrParamRequired("Password"))
}
if s.Username == nil {
invalidParams.Add(request.NewErrParamRequired("Username"))
}
if invalidParams.Len() > 0 {
return invalidParams
}
return nil
}
// SetPassword sets the Password field's value.
func (s *RedshiftConnectorProfileCredentials) SetPassword(v string) *RedshiftConnectorProfileCredentials {
s.Password = &v
return s
}
// SetUsername sets the Username field's value.
func (s *RedshiftConnectorProfileCredentials) SetUsername(v string) *RedshiftConnectorProfileCredentials {
s.Username = &v
return s
}
// The connector-specific profile properties when using Amazon Redshift.
type RedshiftConnectorProfileProperties struct {
_ struct{} `type:"structure"`
// A name for the associated Amazon S3 bucket.
//
// BucketName is a required field
BucketName *string `locationName:"bucketName" min:"3" type:"string" required:"true"`
// The object key for the destination bucket in which Amazon AppFlow places
// the files.
BucketPrefix *string `locationName:"bucketPrefix" type:"string"`
// The JDBC URL of the Amazon Redshift cluster.
//
// DatabaseUrl is a required field
DatabaseUrl *string `locationName:"databaseUrl" type:"string" required:"true"`
// The Amazon Resource Name (ARN) of the IAM role.
//
// RoleArn is a required field
RoleArn *string `locationName:"roleArn" type:"string" required:"true"`
}
// String returns the string representation
func (s RedshiftConnectorProfileProperties) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s RedshiftConnectorProfileProperties) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
func (s *RedshiftConnectorProfileProperties) Validate() error {
invalidParams := request.ErrInvalidParams{Context: "RedshiftConnectorProfileProperties"}
if s.BucketName == nil {
invalidParams.Add(request.NewErrParamRequired("BucketName"))
}
if s.BucketName != nil && len(*s.BucketName) < 3 {
invalidParams.Add(request.NewErrParamMinLen("BucketName", 3))
}
if s.DatabaseUrl == nil {
invalidParams.Add(request.NewErrParamRequired("DatabaseUrl"))
}
if s.RoleArn == nil {
invalidParams.Add(request.NewErrParamRequired("RoleArn"))
}
if invalidParams.Len() > 0 {
return invalidParams
}
return nil
}
// SetBucketName sets the BucketName field's value.
func (s *RedshiftConnectorProfileProperties) SetBucketName(v string) *RedshiftConnectorProfileProperties {
s.BucketName = &v
return s
}
// SetBucketPrefix sets the BucketPrefix field's value.
func (s *RedshiftConnectorProfileProperties) SetBucketPrefix(v string) *RedshiftConnectorProfileProperties {
s.BucketPrefix = &v
return s
}
// SetDatabaseUrl sets the DatabaseUrl field's value.
func (s *RedshiftConnectorProfileProperties) SetDatabaseUrl(v string) *RedshiftConnectorProfileProperties {
s.DatabaseUrl = &v
return s
}
// SetRoleArn sets the RoleArn field's value.
func (s *RedshiftConnectorProfileProperties) SetRoleArn(v string) *RedshiftConnectorProfileProperties {
s.RoleArn = &v
return s
}
// The properties that are applied when Amazon Redshift is being used as a destination.
type RedshiftDestinationProperties struct {
_ struct{} `type:"structure"`
// The object key for the bucket in which Amazon AppFlow places the destination
// files.
BucketPrefix *string `locationName:"bucketPrefix" type:"string"`
// The settings that determine how Amazon AppFlow handles an error when placing
// data in the Amazon Redshift destination. For example, this setting would
// determine if the flow should fail after one insertion error, or continue
// and attempt to insert every record regardless of the initial failure. ErrorHandlingConfig
// is a part of the destination connector details.
ErrorHandlingConfig *ErrorHandlingConfig `locationName:"errorHandlingConfig" type:"structure"`
// The intermediate bucket that Amazon AppFlow uses when moving data into Amazon
// Redshift.
//
// IntermediateBucketName is a required field
IntermediateBucketName *string `locationName:"intermediateBucketName" min:"3" type:"string" required:"true"`
// The object specified in the Amazon Redshift flow destination.
//
// Object is a required field
Object *string `locationName:"object" type:"string" required:"true"`
}
// String returns the string representation
func (s RedshiftDestinationProperties) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s RedshiftDestinationProperties) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
func (s *RedshiftDestinationProperties) Validate() error {
invalidParams := request.ErrInvalidParams{Context: "RedshiftDestinationProperties"}
if s.IntermediateBucketName == nil {
invalidParams.Add(request.NewErrParamRequired("IntermediateBucketName"))
}
if s.IntermediateBucketName != nil && len(*s.IntermediateBucketName) < 3 {
invalidParams.Add(request.NewErrParamMinLen("IntermediateBucketName", 3))
}
if s.Object == nil {
invalidParams.Add(request.NewErrParamRequired("Object"))
}
if s.ErrorHandlingConfig != nil {
if err := s.ErrorHandlingConfig.Validate(); err != nil {
invalidParams.AddNested("ErrorHandlingConfig", err.(request.ErrInvalidParams))
}
}
if invalidParams.Len() > 0 {
return invalidParams
}
return nil
}
// SetBucketPrefix sets the BucketPrefix field's value.
func (s *RedshiftDestinationProperties) SetBucketPrefix(v string) *RedshiftDestinationProperties {
s.BucketPrefix = &v
return s
}
// SetErrorHandlingConfig sets the ErrorHandlingConfig field's value.
func (s *RedshiftDestinationProperties) SetErrorHandlingConfig(v *ErrorHandlingConfig) *RedshiftDestinationProperties {
s.ErrorHandlingConfig = v
return s
}
// SetIntermediateBucketName sets the IntermediateBucketName field's value.
func (s *RedshiftDestinationProperties) SetIntermediateBucketName(v string) *RedshiftDestinationProperties {
s.IntermediateBucketName = &v
return s
}
// SetObject sets the Object field's value.
func (s *RedshiftDestinationProperties) SetObject(v string) *RedshiftDestinationProperties {
s.Object = &v
return s
}
// The connector metadata specific to Amazon Redshift.
type RedshiftMetadata struct {
_ struct{} `type:"structure"`
}
// String returns the string representation
func (s RedshiftMetadata) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s RedshiftMetadata) GoString() string {
return s.String()
}
// The resource specified in the request (such as the source or destination
// connector profile) is not found.
type ResourceNotFoundException struct {
_ struct{} `type:"structure"`
RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
// String returns the string representation
func (s ResourceNotFoundException) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s ResourceNotFoundException) GoString() string {
return s.String()
}
func newErrorResourceNotFoundException(v protocol.ResponseMetadata) error {
return &ResourceNotFoundException{
RespMetadata: v,
}
}
// Code returns the exception type name.
func (s *ResourceNotFoundException) Code() string {
return "ResourceNotFoundException"
}
// Message returns the exception's message.
func (s *ResourceNotFoundException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
return ""
}
// OrigErr always returns nil, satisfies awserr.Error interface.
func (s *ResourceNotFoundException) OrigErr() error {
return nil
}
func (s *ResourceNotFoundException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
func (s *ResourceNotFoundException) StatusCode() int {
return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
func (s *ResourceNotFoundException) RequestID() string {
return s.RespMetadata.RequestID
}
// The properties that are applied when Amazon S3 is used as a destination.
type S3DestinationProperties struct {
_ struct{} `type:"structure"`
// The Amazon S3 bucket name in which Amazon AppFlow places the transferred
// data.
//
// BucketName is a required field
BucketName *string `locationName:"bucketName" min:"3" type:"string" required:"true"`
// The object key for the destination bucket in which Amazon AppFlow places
// the files.
BucketPrefix *string `locationName:"bucketPrefix" type:"string"`
// The configuration that determines how Amazon AppFlow should format the flow
// output data when Amazon S3 is used as the destination.
S3OutputFormatConfig *S3OutputFormatConfig `locationName:"s3OutputFormatConfig" type:"structure"`
}
// String returns the string representation
func (s S3DestinationProperties) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s S3DestinationProperties) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
func (s *S3DestinationProperties) Validate() error {
invalidParams := request.ErrInvalidParams{Context: "S3DestinationProperties"}
if s.BucketName == nil {
invalidParams.Add(request.NewErrParamRequired("BucketName"))
}
if s.BucketName != nil && len(*s.BucketName) < 3 {
invalidParams.Add(request.NewErrParamMinLen("BucketName", 3))
}
if invalidParams.Len() > 0 {
return invalidParams
}
return nil
}
// SetBucketName sets the BucketName field's value.
func (s *S3DestinationProperties) SetBucketName(v string) *S3DestinationProperties {
s.BucketName = &v
return s
}
// SetBucketPrefix sets the BucketPrefix field's value.
func (s *S3DestinationProperties) SetBucketPrefix(v string) *S3DestinationProperties {
s.BucketPrefix = &v
return s
}
// SetS3OutputFormatConfig sets the S3OutputFormatConfig field's value.
func (s *S3DestinationProperties) SetS3OutputFormatConfig(v *S3OutputFormatConfig) *S3DestinationProperties {
s.S3OutputFormatConfig = v
return s
}
// The connector metadata specific to Amazon S3.
type S3Metadata struct {
_ struct{} `type:"structure"`
}
// String returns the string representation
func (s S3Metadata) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s S3Metadata) GoString() string {
return s.String()
}
// The configuration that determines how Amazon AppFlow should format the flow
// output data when Amazon S3 is used as the destination.
type S3OutputFormatConfig struct {
_ struct{} `type:"structure"`
// The aggregation settings that you can use to customize the output format
// of your flow data.
AggregationConfig *AggregationConfig `locationName:"aggregationConfig" type:"structure"`
// Indicates the file type that Amazon AppFlow places in the Amazon S3 bucket.
FileType *string `locationName:"fileType" type:"string" enum:"FileType"`
// Determines the prefix that Amazon AppFlow applies to the folder name in the
// Amazon S3 bucket. You can name folders according to the flow frequency and
// date.
PrefixConfig *PrefixConfig `locationName:"prefixConfig" type:"structure"`
}
// String returns the string representation
func (s S3OutputFormatConfig) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s S3OutputFormatConfig) GoString() string {
return s.String()
}
// SetAggregationConfig sets the AggregationConfig field's value.
func (s *S3OutputFormatConfig) SetAggregationConfig(v *AggregationConfig) *S3OutputFormatConfig {
s.AggregationConfig = v
return s
}
// SetFileType sets the FileType field's value.
func (s *S3OutputFormatConfig) SetFileType(v string) *S3OutputFormatConfig {
s.FileType = &v
return s
}
// SetPrefixConfig sets the PrefixConfig field's value.
func (s *S3OutputFormatConfig) SetPrefixConfig(v *PrefixConfig) *S3OutputFormatConfig {
s.PrefixConfig = v
return s
}
// The properties that are applied when Amazon S3 is being used as the flow
// source.
type S3SourceProperties struct {
_ struct{} `type:"structure"`
// The Amazon S3 bucket name where the source files are stored.
//
// BucketName is a required field
BucketName *string `locationName:"bucketName" min:"3" type:"string" required:"true"`
// The object key for the Amazon S3 bucket in which the source files are stored.
BucketPrefix *string `locationName:"bucketPrefix" type:"string"`
}
// String returns the string representation
func (s S3SourceProperties) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s S3SourceProperties) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
func (s *S3SourceProperties) Validate() error {
invalidParams := request.ErrInvalidParams{Context: "S3SourceProperties"}
if s.BucketName == nil {
invalidParams.Add(request.NewErrParamRequired("BucketName"))
}
if s.BucketName != nil && len(*s.BucketName) < 3 {
invalidParams.Add(request.NewErrParamMinLen("BucketName", 3))
}
if invalidParams.Len() > 0 {
return invalidParams
}
return nil
}
// SetBucketName sets the BucketName field's value.
func (s *S3SourceProperties) SetBucketName(v string) *S3SourceProperties {
s.BucketName = &v
return s
}
// SetBucketPrefix sets the BucketPrefix field's value.
func (s *S3SourceProperties) SetBucketPrefix(v string) *S3SourceProperties {
s.BucketPrefix = &v
return s
}
// The connector-specific profile credentials required when using Salesforce.
type SalesforceConnectorProfileCredentials struct {
_ struct{} `type:"structure"`
// The credentials used to access protected Salesforce resources.
AccessToken *string `locationName:"accessToken" type:"string" sensitive:"true"`
// The secret manager ARN, which contains the client ID and client secret of
// the connected app.
ClientCredentialsArn *string `locationName:"clientCredentialsArn" min:"20" type:"string" sensitive:"true"`
// The OAuth requirement needed to request security tokens from the connector
// endpoint.
OAuthRequest *ConnectorOAuthRequest `locationName:"oAuthRequest" type:"structure"`
// The credentials used to acquire new access tokens.
RefreshToken *string `locationName:"refreshToken" type:"string"`
}
// String returns the string representation
func (s SalesforceConnectorProfileCredentials) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s SalesforceConnectorProfileCredentials) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
func (s *SalesforceConnectorProfileCredentials) Validate() error {
invalidParams := request.ErrInvalidParams{Context: "SalesforceConnectorProfileCredentials"}
if s.ClientCredentialsArn != nil && len(*s.ClientCredentialsArn) < 20 {
invalidParams.Add(request.NewErrParamMinLen("ClientCredentialsArn", 20))
}
if invalidParams.Len() > 0 {
return invalidParams
}
return nil
}
// SetAccessToken sets the AccessToken field's value.
func (s *SalesforceConnectorProfileCredentials) SetAccessToken(v string) *SalesforceConnectorProfileCredentials {
s.AccessToken = &v
return s
}
// SetClientCredentialsArn sets the ClientCredentialsArn field's value.
func (s *SalesforceConnectorProfileCredentials) SetClientCredentialsArn(v string) *SalesforceConnectorProfileCredentials {
s.ClientCredentialsArn = &v
return s
}
// SetOAuthRequest sets the OAuthRequest field's value.
func (s *SalesforceConnectorProfileCredentials) SetOAuthRequest(v *ConnectorOAuthRequest) *SalesforceConnectorProfileCredentials {
s.OAuthRequest = v
return s
}
// SetRefreshToken sets the RefreshToken field's value.
func (s *SalesforceConnectorProfileCredentials) SetRefreshToken(v string) *SalesforceConnectorProfileCredentials {
s.RefreshToken = &v
return s
}
// The connector-specific profile properties required when using Salesforce.
type SalesforceConnectorProfileProperties struct {
_ struct{} `type:"structure"`
// The location of the Salesforce resource.
InstanceUrl *string `locationName:"instanceUrl" type:"string"`
// Indicates whether the connector profile applies to a sandbox or production
// environment.
IsSandboxEnvironment *bool `locationName:"isSandboxEnvironment" type:"boolean"`
}
// String returns the string representation
func (s SalesforceConnectorProfileProperties) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s SalesforceConnectorProfileProperties) GoString() string {
return s.String()
}
// SetInstanceUrl sets the InstanceUrl field's value.
func (s *SalesforceConnectorProfileProperties) SetInstanceUrl(v string) *SalesforceConnectorProfileProperties {
s.InstanceUrl = &v
return s
}
// SetIsSandboxEnvironment sets the IsSandboxEnvironment field's value.
func (s *SalesforceConnectorProfileProperties) SetIsSandboxEnvironment(v bool) *SalesforceConnectorProfileProperties {
s.IsSandboxEnvironment = &v
return s
}
// The properties that are applied when Salesforce is being used as a destination.
type SalesforceDestinationProperties struct {
_ struct{} `type:"structure"`
// The settings that determine how Amazon AppFlow handles an error when placing
// data in the Salesforce destination. For example, this setting would determine
// if the flow should fail after one insertion error, or continue and attempt
// to insert every record regardless of the initial failure. ErrorHandlingConfig
// is a part of the destination connector details.
ErrorHandlingConfig *ErrorHandlingConfig `locationName:"errorHandlingConfig" type:"structure"`
// The name of the field that Amazon AppFlow uses as an ID when performing a
// write operation such as update or delete.
IdFieldNames []*string `locationName:"idFieldNames" type:"list"`
// The object specified in the Salesforce flow destination.
//
// Object is a required field
Object *string `locationName:"object" type:"string" required:"true"`
// This specifies the type of write operation to be performed in Salesforce.
// When the value is UPSERT, then idFieldNames is required.
WriteOperationType *string `locationName:"writeOperationType" type:"string" enum:"WriteOperationType"`
}
// String returns the string representation
func (s SalesforceDestinationProperties) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s SalesforceDestinationProperties) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
func (s *SalesforceDestinationProperties) Validate() error {
invalidParams := request.ErrInvalidParams{Context: "SalesforceDestinationProperties"}
if s.Object == nil {
invalidParams.Add(request.NewErrParamRequired("Object"))
}
if s.ErrorHandlingConfig != nil {
if err := s.ErrorHandlingConfig.Validate(); err != nil {
invalidParams.AddNested("ErrorHandlingConfig", err.(request.ErrInvalidParams))
}
}
if invalidParams.Len() > 0 {
return invalidParams
}
return nil
}
// SetErrorHandlingConfig sets the ErrorHandlingConfig field's value.
func (s *SalesforceDestinationProperties) SetErrorHandlingConfig(v *ErrorHandlingConfig) *SalesforceDestinationProperties {
s.ErrorHandlingConfig = v
return s
}
// SetIdFieldNames sets the IdFieldNames field's value.
func (s *SalesforceDestinationProperties) SetIdFieldNames(v []*string) *SalesforceDestinationProperties {
s.IdFieldNames = v
return s
}
// SetObject sets the Object field's value.
func (s *SalesforceDestinationProperties) SetObject(v string) *SalesforceDestinationProperties {
s.Object = &v
return s
}
// SetWriteOperationType sets the WriteOperationType field's value.
func (s *SalesforceDestinationProperties) SetWriteOperationType(v string) *SalesforceDestinationProperties {
s.WriteOperationType = &v
return s
}
// The connector metadata specific to Salesforce.
type SalesforceMetadata struct {
_ struct{} `type:"structure"`
// The desired authorization scope for the Salesforce account.
OAuthScopes []*string `locationName:"oAuthScopes" type:"list"`
}
// String returns the string representation
func (s SalesforceMetadata) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s SalesforceMetadata) GoString() string {
return s.String()
}
// SetOAuthScopes sets the OAuthScopes field's value.
func (s *SalesforceMetadata) SetOAuthScopes(v []*string) *SalesforceMetadata {
s.OAuthScopes = v
return s
}
// The properties that are applied when Salesforce is being used as a source.
type SalesforceSourceProperties struct {
_ struct{} `type:"structure"`
// The flag that enables dynamic fetching of new (recently added) fields in
// the Salesforce objects while running a flow.
EnableDynamicFieldUpdate *bool `locationName:"enableDynamicFieldUpdate" type:"boolean"`
// Indicates whether Amazon AppFlow includes deleted files in the flow run.
IncludeDeletedRecords *bool `locationName:"includeDeletedRecords" type:"boolean"`
// The object specified in the Salesforce flow source.
//
// Object is a required field
Object *string `locationName:"object" type:"string" required:"true"`
}
// String returns the string representation
func (s SalesforceSourceProperties) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s SalesforceSourceProperties) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
func (s *SalesforceSourceProperties) Validate() error {
invalidParams := request.ErrInvalidParams{Context: "SalesforceSourceProperties"}
if s.Object == nil {
invalidParams.Add(request.NewErrParamRequired("Object"))
}
if invalidParams.Len() > 0 {
return invalidParams
}
return nil
}
// SetEnableDynamicFieldUpdate sets the EnableDynamicFieldUpdate field's value.
func (s *SalesforceSourceProperties) SetEnableDynamicFieldUpdate(v bool) *SalesforceSourceProperties {
s.EnableDynamicFieldUpdate = &v
return s
}
// SetIncludeDeletedRecords sets the IncludeDeletedRecords field's value.
func (s *SalesforceSourceProperties) SetIncludeDeletedRecords(v bool) *SalesforceSourceProperties {
s.IncludeDeletedRecords = &v
return s
}
// SetObject sets the Object field's value.
func (s *SalesforceSourceProperties) SetObject(v string) *SalesforceSourceProperties {
s.Object = &v
return s
}
// Specifies the configuration details of a schedule-triggered flow as defined
// by the user. Currently, these settings only apply to the Scheduled trigger
// type.
type ScheduledTriggerProperties struct {
_ struct{} `type:"structure"`
// Specifies whether a scheduled flow has an incremental data transfer or a
// complete data transfer for each flow run.
DataPullMode *string `locationName:"dataPullMode" type:"string" enum:"DataPullMode"`
// Specifies the date range for the records to import from the connector in
// the first flow run.
FirstExecutionFrom *time.Time `locationName:"firstExecutionFrom" type:"timestamp"`
// Specifies the scheduled end time for a schedule-triggered flow.
ScheduleEndTime *time.Time `locationName:"scheduleEndTime" type:"timestamp"`
// The scheduling expression that determines the rate at which the schedule
// will run, for example rate(5minutes).
//
// ScheduleExpression is a required field
ScheduleExpression *string `locationName:"scheduleExpression" type:"string" required:"true"`
// Specifies the optional offset that is added to the time interval for a schedule-triggered
// flow.
ScheduleOffset *int64 `locationName:"scheduleOffset" type:"long"`
// Specifies the scheduled start time for a schedule-triggered flow.
ScheduleStartTime *time.Time `locationName:"scheduleStartTime" type:"timestamp"`
// Specifies the time zone used when referring to the date and time of a scheduled-triggered
// flow, such as America/New_York.
Timezone *string `locationName:"timezone" type:"string"`
}
// String returns the string representation
func (s ScheduledTriggerProperties) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s ScheduledTriggerProperties) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
func (s *ScheduledTriggerProperties) Validate() error {
invalidParams := request.ErrInvalidParams{Context: "ScheduledTriggerProperties"}
if s.ScheduleExpression == nil {
invalidParams.Add(request.NewErrParamRequired("ScheduleExpression"))
}
if invalidParams.Len() > 0 {
return invalidParams
}
return nil
}
// SetDataPullMode sets the DataPullMode field's value.
func (s *ScheduledTriggerProperties) SetDataPullMode(v string) *ScheduledTriggerProperties {
s.DataPullMode = &v
return s
}
// SetFirstExecutionFrom sets the FirstExecutionFrom field's value.
func (s *ScheduledTriggerProperties) SetFirstExecutionFrom(v time.Time) *ScheduledTriggerProperties {
s.FirstExecutionFrom = &v
return s
}
// SetScheduleEndTime sets the ScheduleEndTime field's value.
func (s *ScheduledTriggerProperties) SetScheduleEndTime(v time.Time) *ScheduledTriggerProperties {
s.ScheduleEndTime = &v
return s
}
// SetScheduleExpression sets the ScheduleExpression field's value.
func (s *ScheduledTriggerProperties) SetScheduleExpression(v string) *ScheduledTriggerProperties {
s.ScheduleExpression = &v
return s
}
// SetScheduleOffset sets the ScheduleOffset field's value.
func (s *ScheduledTriggerProperties) SetScheduleOffset(v int64) *ScheduledTriggerProperties {
s.ScheduleOffset = &v
return s
}
// SetScheduleStartTime sets the ScheduleStartTime field's value.
func (s *ScheduledTriggerProperties) SetScheduleStartTime(v time.Time) *ScheduledTriggerProperties {
s.ScheduleStartTime = &v
return s
}
// SetTimezone sets the Timezone field's value.
func (s *ScheduledTriggerProperties) SetTimezone(v string) *ScheduledTriggerProperties {
s.Timezone = &v
return s
}
// The connector-specific profile credentials required when using ServiceNow.
type ServiceNowConnectorProfileCredentials struct {
_ struct{} `type:"structure"`
// The password that corresponds to the user name.
//
// Password is a required field
Password *string `locationName:"password" type:"string" required:"true" sensitive:"true"`
// The name of the user.
//
// Username is a required field
Username *string `locationName:"username" type:"string" required:"true"`
}
// String returns the string representation
func (s ServiceNowConnectorProfileCredentials) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s ServiceNowConnectorProfileCredentials) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
func (s *ServiceNowConnectorProfileCredentials) Validate() error {
invalidParams := request.ErrInvalidParams{Context: "ServiceNowConnectorProfileCredentials"}
if s.Password == nil {
invalidParams.Add(request.NewErrParamRequired("Password"))
}
if s.Username == nil {
invalidParams.Add(request.NewErrParamRequired("Username"))
}
if invalidParams.Len() > 0 {
return invalidParams
}
return nil
}
// SetPassword sets the Password field's value.
func (s *ServiceNowConnectorProfileCredentials) SetPassword(v string) *ServiceNowConnectorProfileCredentials {
s.Password = &v
return s
}
// SetUsername sets the Username field's value.
func (s *ServiceNowConnectorProfileCredentials) SetUsername(v string) *ServiceNowConnectorProfileCredentials {
s.Username = &v
return s
}
// The connector-specific profile properties required when using ServiceNow.
type ServiceNowConnectorProfileProperties struct {
_ struct{} `type:"structure"`
// The location of the ServiceNow resource.
//
// InstanceUrl is a required field
InstanceUrl *string `locationName:"instanceUrl" type:"string" required:"true"`
}
// String returns the string representation
func (s ServiceNowConnectorProfileProperties) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s ServiceNowConnectorProfileProperties) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
func (s *ServiceNowConnectorProfileProperties) Validate() error {
invalidParams := request.ErrInvalidParams{Context: "ServiceNowConnectorProfileProperties"}
if s.InstanceUrl == nil {
invalidParams.Add(request.NewErrParamRequired("InstanceUrl"))
}
if invalidParams.Len() > 0 {
return invalidParams
}
return nil
}
// SetInstanceUrl sets the InstanceUrl field's value.
func (s *ServiceNowConnectorProfileProperties) SetInstanceUrl(v string) *ServiceNowConnectorProfileProperties {
s.InstanceUrl = &v
return s
}
// The connector metadata specific to ServiceNow.
type ServiceNowMetadata struct {
_ struct{} `type:"structure"`
}
// String returns the string representation
func (s ServiceNowMetadata) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s ServiceNowMetadata) GoString() string {
return s.String()
}
// The properties that are applied when ServiceNow is being used as a source.
type ServiceNowSourceProperties struct {
_ struct{} `type:"structure"`
// The object specified in the ServiceNow flow source.
//
// Object is a required field
Object *string `locationName:"object" type:"string" required:"true"`
}
// String returns the string representation
func (s ServiceNowSourceProperties) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s ServiceNowSourceProperties) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
func (s *ServiceNowSourceProperties) Validate() error {
invalidParams := request.ErrInvalidParams{Context: "ServiceNowSourceProperties"}
if s.Object == nil {
invalidParams.Add(request.NewErrParamRequired("Object"))
}
if invalidParams.Len() > 0 {
return invalidParams
}
return nil
}
// SetObject sets the Object field's value.
func (s *ServiceNowSourceProperties) SetObject(v string) *ServiceNowSourceProperties {
s.Object = &v
return s
}
// The request would cause a service quota (such as the number of flows) to
// be exceeded.
type ServiceQuotaExceededException struct {
_ struct{} `type:"structure"`
RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
// String returns the string representation
func (s ServiceQuotaExceededException) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s ServiceQuotaExceededException) GoString() string {
return s.String()
}
func newErrorServiceQuotaExceededException(v protocol.ResponseMetadata) error {
return &ServiceQuotaExceededException{
RespMetadata: v,
}
}
// Code returns the exception type name.
func (s *ServiceQuotaExceededException) Code() string {
return "ServiceQuotaExceededException"
}
// Message returns the exception's message.
func (s *ServiceQuotaExceededException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
return ""
}
// OrigErr always returns nil, satisfies awserr.Error interface.
func (s *ServiceQuotaExceededException) OrigErr() error {
return nil
}
func (s *ServiceQuotaExceededException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
func (s *ServiceQuotaExceededException) StatusCode() int {
return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
func (s *ServiceQuotaExceededException) RequestID() string {
return s.RespMetadata.RequestID
}
// The connector-specific profile credentials required when using Singular.
type SingularConnectorProfileCredentials struct {
_ struct{} `type:"structure"`
// A unique alphanumeric identifier used to authenticate a user, developer,
// or calling program to your API.
//
// ApiKey is a required field
ApiKey *string `locationName:"apiKey" type:"string" required:"true"`
}
// String returns the string representation
func (s SingularConnectorProfileCredentials) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s SingularConnectorProfileCredentials) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
func (s *SingularConnectorProfileCredentials) Validate() error {
invalidParams := request.ErrInvalidParams{Context: "SingularConnectorProfileCredentials"}
if s.ApiKey == nil {
invalidParams.Add(request.NewErrParamRequired("ApiKey"))
}
if invalidParams.Len() > 0 {
return invalidParams
}
return nil
}
// SetApiKey sets the ApiKey field's value.
func (s *SingularConnectorProfileCredentials) SetApiKey(v string) *SingularConnectorProfileCredentials {
s.ApiKey = &v
return s
}
// The connector-specific profile properties required when using Singular.
type SingularConnectorProfileProperties struct {
_ struct{} `type:"structure"`
}
// String returns the string representation
func (s SingularConnectorProfileProperties) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s SingularConnectorProfileProperties) GoString() string {
return s.String()
}
// The connector metadata specific to Singular.
type SingularMetadata struct {
_ struct{} `type:"structure"`
}
// String returns the string representation
func (s SingularMetadata) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s SingularMetadata) GoString() string {
return s.String()
}
// The properties that are applied when Singular is being used as a source.
type SingularSourceProperties struct {
_ struct{} `type:"structure"`
// The object specified in the Singular flow source.
//
// Object is a required field
Object *string `locationName:"object" type:"string" required:"true"`
}
// String returns the string representation
func (s SingularSourceProperties) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s SingularSourceProperties) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
func (s *SingularSourceProperties) Validate() error {
invalidParams := request.ErrInvalidParams{Context: "SingularSourceProperties"}
if s.Object == nil {
invalidParams.Add(request.NewErrParamRequired("Object"))
}
if invalidParams.Len() > 0 {
return invalidParams
}
return nil
}
// SetObject sets the Object field's value.
func (s *SingularSourceProperties) SetObject(v string) *SingularSourceProperties {
s.Object = &v
return s
}
// The connector-specific profile credentials required when using Slack.
type SlackConnectorProfileCredentials struct {
_ struct{} `type:"structure"`
// The credentials used to access protected Slack resources.
AccessToken *string `locationName:"accessToken" type:"string" sensitive:"true"`
// The identifier for the client.
//
// ClientId is a required field
ClientId *string `locationName:"clientId" type:"string" required:"true"`
// The client secret used by the OAuth client to authenticate to the authorization
// server.
//
// ClientSecret is a required field
ClientSecret *string `locationName:"clientSecret" type:"string" required:"true" sensitive:"true"`
// The OAuth requirement needed to request security tokens from the connector
// endpoint.
OAuthRequest *ConnectorOAuthRequest `locationName:"oAuthRequest" type:"structure"`
}
// String returns the string representation
func (s SlackConnectorProfileCredentials) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s SlackConnectorProfileCredentials) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
func (s *SlackConnectorProfileCredentials) Validate() error {
invalidParams := request.ErrInvalidParams{Context: "SlackConnectorProfileCredentials"}
if s.ClientId == nil {
invalidParams.Add(request.NewErrParamRequired("ClientId"))
}
if s.ClientSecret == nil {
invalidParams.Add(request.NewErrParamRequired("ClientSecret"))
}
if invalidParams.Len() > 0 {
return invalidParams
}
return nil
}
// SetAccessToken sets the AccessToken field's value.
func (s *SlackConnectorProfileCredentials) SetAccessToken(v string) *SlackConnectorProfileCredentials {
s.AccessToken = &v
return s
}
// SetClientId sets the ClientId field's value.
func (s *SlackConnectorProfileCredentials) SetClientId(v string) *SlackConnectorProfileCredentials {
s.ClientId = &v
return s
}
// SetClientSecret sets the ClientSecret field's value.
func (s *SlackConnectorProfileCredentials) SetClientSecret(v string) *SlackConnectorProfileCredentials {
s.ClientSecret = &v
return s
}
// SetOAuthRequest sets the OAuthRequest field's value.
func (s *SlackConnectorProfileCredentials) SetOAuthRequest(v *ConnectorOAuthRequest) *SlackConnectorProfileCredentials {
s.OAuthRequest = v
return s
}
// The connector-specific profile properties required when using Slack.
type SlackConnectorProfileProperties struct {
_ struct{} `type:"structure"`
// The location of the Slack resource.
//
// InstanceUrl is a required field
InstanceUrl *string `locationName:"instanceUrl" type:"string" required:"true"`
}
// String returns the string representation
func (s SlackConnectorProfileProperties) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s SlackConnectorProfileProperties) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
func (s *SlackConnectorProfileProperties) Validate() error {
invalidParams := request.ErrInvalidParams{Context: "SlackConnectorProfileProperties"}
if s.InstanceUrl == nil {
invalidParams.Add(request.NewErrParamRequired("InstanceUrl"))
}
if invalidParams.Len() > 0 {
return invalidParams
}
return nil
}
// SetInstanceUrl sets the InstanceUrl field's value.
func (s *SlackConnectorProfileProperties) SetInstanceUrl(v string) *SlackConnectorProfileProperties {
s.InstanceUrl = &v
return s
}
// The connector metadata specific to Slack.
type SlackMetadata struct {
_ struct{} `type:"structure"`
// The desired authorization scope for the Slack account.
OAuthScopes []*string `locationName:"oAuthScopes" type:"list"`
}
// String returns the string representation
func (s SlackMetadata) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s SlackMetadata) GoString() string {
return s.String()
}
// SetOAuthScopes sets the OAuthScopes field's value.
func (s *SlackMetadata) SetOAuthScopes(v []*string) *SlackMetadata {
s.OAuthScopes = v
return s
}
// The properties that are applied when Slack is being used as a source.
type SlackSourceProperties struct {
_ struct{} `type:"structure"`
// The object specified in the Slack flow source.
//
// Object is a required field
Object *string `locationName:"object" type:"string" required:"true"`
}
// String returns the string representation
func (s SlackSourceProperties) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s SlackSourceProperties) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
func (s *SlackSourceProperties) Validate() error {
invalidParams := request.ErrInvalidParams{Context: "SlackSourceProperties"}
if s.Object == nil {
invalidParams.Add(request.NewErrParamRequired("Object"))
}
if invalidParams.Len() > 0 {
return invalidParams
}
return nil
}
// SetObject sets the Object field's value.
func (s *SlackSourceProperties) SetObject(v string) *SlackSourceProperties {
s.Object = &v
return s
}
// The connector-specific profile credentials required when using Snowflake.
type SnowflakeConnectorProfileCredentials struct {
_ struct{} `type:"structure"`
// The password that corresponds to the user name.
//
// Password is a required field
Password *string `locationName:"password" type:"string" required:"true" sensitive:"true"`
// The name of the user.
//
// Username is a required field
Username *string `locationName:"username" type:"string" required:"true"`
}
// String returns the string representation
func (s SnowflakeConnectorProfileCredentials) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s SnowflakeConnectorProfileCredentials) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
func (s *SnowflakeConnectorProfileCredentials) Validate() error {
invalidParams := request.ErrInvalidParams{Context: "SnowflakeConnectorProfileCredentials"}
if s.Password == nil {
invalidParams.Add(request.NewErrParamRequired("Password"))
}
if s.Username == nil {
invalidParams.Add(request.NewErrParamRequired("Username"))
}
if invalidParams.Len() > 0 {
return invalidParams
}
return nil
}
// SetPassword sets the Password field's value.
func (s *SnowflakeConnectorProfileCredentials) SetPassword(v string) *SnowflakeConnectorProfileCredentials {
s.Password = &v
return s
}
// SetUsername sets the Username field's value.
func (s *SnowflakeConnectorProfileCredentials) SetUsername(v string) *SnowflakeConnectorProfileCredentials {
s.Username = &v
return s
}
// The connector-specific profile properties required when using Snowflake.
type SnowflakeConnectorProfileProperties struct {
_ struct{} `type:"structure"`
// The name of the account.
AccountName *string `locationName:"accountName" type:"string"`
// The name of the Amazon S3 bucket associated with Snowflake.
//
// BucketName is a required field
BucketName *string `locationName:"bucketName" min:"3" type:"string" required:"true"`
// The bucket path that refers to the Amazon S3 bucket associated with Snowflake.
BucketPrefix *string `locationName:"bucketPrefix" type:"string"`
// The Snowflake Private Link service name to be used for private data transfers.
PrivateLinkServiceName *string `locationName:"privateLinkServiceName" type:"string"`
// The AWS Region of the Snowflake account.
Region *string `locationName:"region" type:"string"`
// The name of the Amazon S3 stage that was created while setting up an Amazon
// S3 stage in the Snowflake account. This is written in the following format:
// < Database>< Schema><Stage Name>.
//
// Stage is a required field
Stage *string `locationName:"stage" type:"string" required:"true"`
// The name of the Snowflake warehouse.
//
// Warehouse is a required field
Warehouse *string `locationName:"warehouse" type:"string" required:"true"`
}
// String returns the string representation
func (s SnowflakeConnectorProfileProperties) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s SnowflakeConnectorProfileProperties) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
func (s *SnowflakeConnectorProfileProperties) Validate() error {
invalidParams := request.ErrInvalidParams{Context: "SnowflakeConnectorProfileProperties"}
if s.BucketName == nil {
invalidParams.Add(request.NewErrParamRequired("BucketName"))
}
if s.BucketName != nil && len(*s.BucketName) < 3 {
invalidParams.Add(request.NewErrParamMinLen("BucketName", 3))
}
if s.Stage == nil {
invalidParams.Add(request.NewErrParamRequired("Stage"))
}
if s.Warehouse == nil {
invalidParams.Add(request.NewErrParamRequired("Warehouse"))
}
if invalidParams.Len() > 0 {
return invalidParams
}
return nil
}
// SetAccountName sets the AccountName field's value.
func (s *SnowflakeConnectorProfileProperties) SetAccountName(v string) *SnowflakeConnectorProfileProperties {
s.AccountName = &v
return s
}
// SetBucketName sets the BucketName field's value.
func (s *SnowflakeConnectorProfileProperties) SetBucketName(v string) *SnowflakeConnectorProfileProperties {
s.BucketName = &v
return s
}
// SetBucketPrefix sets the BucketPrefix field's value.
func (s *SnowflakeConnectorProfileProperties) SetBucketPrefix(v string) *SnowflakeConnectorProfileProperties {
s.BucketPrefix = &v
return s
}
// SetPrivateLinkServiceName sets the PrivateLinkServiceName field's value.
func (s *SnowflakeConnectorProfileProperties) SetPrivateLinkServiceName(v string) *SnowflakeConnectorProfileProperties {
s.PrivateLinkServiceName = &v
return s
}
// SetRegion sets the Region field's value.
func (s *SnowflakeConnectorProfileProperties) SetRegion(v string) *SnowflakeConnectorProfileProperties {
s.Region = &v
return s
}
// SetStage sets the Stage field's value.
func (s *SnowflakeConnectorProfileProperties) SetStage(v string) *SnowflakeConnectorProfileProperties {
s.Stage = &v
return s
}
// SetWarehouse sets the Warehouse field's value.
func (s *SnowflakeConnectorProfileProperties) SetWarehouse(v string) *SnowflakeConnectorProfileProperties {
s.Warehouse = &v
return s
}
// The properties that are applied when Snowflake is being used as a destination.
type SnowflakeDestinationProperties struct {
_ struct{} `type:"structure"`
// The object key for the destination bucket in which Amazon AppFlow places
// the files.
BucketPrefix *string `locationName:"bucketPrefix" type:"string"`
// The settings that determine how Amazon AppFlow handles an error when placing
// data in the Snowflake destination. For example, this setting would determine
// if the flow should fail after one insertion error, or continue and attempt
// to insert every record regardless of the initial failure. ErrorHandlingConfig
// is a part of the destination connector details.
ErrorHandlingConfig *ErrorHandlingConfig `locationName:"errorHandlingConfig" type:"structure"`
// The intermediate bucket that Amazon AppFlow uses when moving data into Snowflake.
//
// IntermediateBucketName is a required field
IntermediateBucketName *string `locationName:"intermediateBucketName" min:"3" type:"string" required:"true"`
// The object specified in the Snowflake flow destination.
//
// Object is a required field
Object *string `locationName:"object" type:"string" required:"true"`
}
// String returns the string representation
func (s SnowflakeDestinationProperties) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s SnowflakeDestinationProperties) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
func (s *SnowflakeDestinationProperties) Validate() error {
invalidParams := request.ErrInvalidParams{Context: "SnowflakeDestinationProperties"}
if s.IntermediateBucketName == nil {
invalidParams.Add(request.NewErrParamRequired("IntermediateBucketName"))
}
if s.IntermediateBucketName != nil && len(*s.IntermediateBucketName) < 3 {
invalidParams.Add(request.NewErrParamMinLen("IntermediateBucketName", 3))
}
if s.Object == nil {
invalidParams.Add(request.NewErrParamRequired("Object"))
}
if s.ErrorHandlingConfig != nil {
if err := s.ErrorHandlingConfig.Validate(); err != nil {
invalidParams.AddNested("ErrorHandlingConfig", err.(request.ErrInvalidParams))
}
}
if invalidParams.Len() > 0 {
return invalidParams
}
return nil
}
// SetBucketPrefix sets the BucketPrefix field's value.
func (s *SnowflakeDestinationProperties) SetBucketPrefix(v string) *SnowflakeDestinationProperties {
s.BucketPrefix = &v
return s
}
// SetErrorHandlingConfig sets the ErrorHandlingConfig field's value.
func (s *SnowflakeDestinationProperties) SetErrorHandlingConfig(v *ErrorHandlingConfig) *SnowflakeDestinationProperties {
s.ErrorHandlingConfig = v
return s
}
// SetIntermediateBucketName sets the IntermediateBucketName field's value.
func (s *SnowflakeDestinationProperties) SetIntermediateBucketName(v string) *SnowflakeDestinationProperties {
s.IntermediateBucketName = &v
return s
}
// SetObject sets the Object field's value.
func (s *SnowflakeDestinationProperties) SetObject(v string) *SnowflakeDestinationProperties {
s.Object = &v
return s
}
// The connector metadata specific to Snowflake.
type SnowflakeMetadata struct {
_ struct{} `type:"structure"`
// Specifies the supported AWS Regions when using Snowflake.
SupportedRegions []*string `locationName:"supportedRegions" type:"list"`
}
// String returns the string representation
func (s SnowflakeMetadata) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s SnowflakeMetadata) GoString() string {
return s.String()
}
// SetSupportedRegions sets the SupportedRegions field's value.
func (s *SnowflakeMetadata) SetSupportedRegions(v []*string) *SnowflakeMetadata {
s.SupportedRegions = v
return s
}
// Specifies the information that is required to query a particular connector.
type SourceConnectorProperties struct {
_ struct{} `type:"structure"`
// Specifies the information that is required for querying Amplitude.
Amplitude *AmplitudeSourceProperties `type:"structure"`
// Specifies the information that is required for querying Datadog.
Datadog *DatadogSourceProperties `type:"structure"`
// Specifies the information that is required for querying Dynatrace.
Dynatrace *DynatraceSourceProperties `type:"structure"`
// Specifies the information that is required for querying Google Analytics.
GoogleAnalytics *GoogleAnalyticsSourceProperties `type:"structure"`
// Specifies the information that is required for querying Infor Nexus.
InforNexus *InforNexusSourceProperties `type:"structure"`
// Specifies the information that is required for querying Marketo.
Marketo *MarketoSourceProperties `type:"structure"`
// Specifies the information that is required for querying Amazon S3.
S3 *S3SourceProperties `type:"structure"`
// Specifies the information that is required for querying Salesforce.
Salesforce *SalesforceSourceProperties `type:"structure"`
// Specifies the information that is required for querying ServiceNow.
ServiceNow *ServiceNowSourceProperties `type:"structure"`
// Specifies the information that is required for querying Singular.
Singular *SingularSourceProperties `type:"structure"`
// Specifies the information that is required for querying Slack.
Slack *SlackSourceProperties `type:"structure"`
// Specifies the information that is required for querying Trend Micro.
Trendmicro *TrendmicroSourceProperties `type:"structure"`
// Specifies the information that is required for querying Veeva.
Veeva *VeevaSourceProperties `type:"structure"`
// Specifies the information that is required for querying Zendesk.
Zendesk *ZendeskSourceProperties `type:"structure"`
}
// String returns the string representation
func (s SourceConnectorProperties) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s SourceConnectorProperties) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
func (s *SourceConnectorProperties) Validate() error {
invalidParams := request.ErrInvalidParams{Context: "SourceConnectorProperties"}
if s.Amplitude != nil {
if err := s.Amplitude.Validate(); err != nil {
invalidParams.AddNested("Amplitude", err.(request.ErrInvalidParams))
}
}
if s.Datadog != nil {
if err := s.Datadog.Validate(); err != nil {
invalidParams.AddNested("Datadog", err.(request.ErrInvalidParams))
}
}
if s.Dynatrace != nil {
if err := s.Dynatrace.Validate(); err != nil {
invalidParams.AddNested("Dynatrace", err.(request.ErrInvalidParams))
}
}
if s.GoogleAnalytics != nil {
if err := s.GoogleAnalytics.Validate(); err != nil {
invalidParams.AddNested("GoogleAnalytics", err.(request.ErrInvalidParams))
}
}
if s.InforNexus != nil {
if err := s.InforNexus.Validate(); err != nil {
invalidParams.AddNested("InforNexus", err.(request.ErrInvalidParams))
}
}
if s.Marketo != nil {
if err := s.Marketo.Validate(); err != nil {
invalidParams.AddNested("Marketo", err.(request.ErrInvalidParams))
}
}
if s.S3 != nil {
if err := s.S3.Validate(); err != nil {
invalidParams.AddNested("S3", err.(request.ErrInvalidParams))
}
}
if s.Salesforce != nil {
if err := s.Salesforce.Validate(); err != nil {
invalidParams.AddNested("Salesforce", err.(request.ErrInvalidParams))
}
}
if s.ServiceNow != nil {
if err := s.ServiceNow.Validate(); err != nil {
invalidParams.AddNested("ServiceNow", err.(request.ErrInvalidParams))
}
}
if s.Singular != nil {
if err := s.Singular.Validate(); err != nil {
invalidParams.AddNested("Singular", err.(request.ErrInvalidParams))
}
}
if s.Slack != nil {
if err := s.Slack.Validate(); err != nil {
invalidParams.AddNested("Slack", err.(request.ErrInvalidParams))
}
}
if s.Trendmicro != nil {
if err := s.Trendmicro.Validate(); err != nil {
invalidParams.AddNested("Trendmicro", err.(request.ErrInvalidParams))
}
}
if s.Veeva != nil {
if err := s.Veeva.Validate(); err != nil {
invalidParams.AddNested("Veeva", err.(request.ErrInvalidParams))
}
}
if s.Zendesk != nil {
if err := s.Zendesk.Validate(); err != nil {
invalidParams.AddNested("Zendesk", err.(request.ErrInvalidParams))
}
}
if invalidParams.Len() > 0 {
return invalidParams
}
return nil
}
// SetAmplitude sets the Amplitude field's value.
func (s *SourceConnectorProperties) SetAmplitude(v *AmplitudeSourceProperties) *SourceConnectorProperties {
s.Amplitude = v
return s
}
// SetDatadog sets the Datadog field's value.
func (s *SourceConnectorProperties) SetDatadog(v *DatadogSourceProperties) *SourceConnectorProperties {
s.Datadog = v
return s
}
// SetDynatrace sets the Dynatrace field's value.
func (s *SourceConnectorProperties) SetDynatrace(v *DynatraceSourceProperties) *SourceConnectorProperties {
s.Dynatrace = v
return s
}
// SetGoogleAnalytics sets the GoogleAnalytics field's value.
func (s *SourceConnectorProperties) SetGoogleAnalytics(v *GoogleAnalyticsSourceProperties) *SourceConnectorProperties {
s.GoogleAnalytics = v
return s
}
// SetInforNexus sets the InforNexus field's value.
func (s *SourceConnectorProperties) SetInforNexus(v *InforNexusSourceProperties) *SourceConnectorProperties {
s.InforNexus = v
return s
}
// SetMarketo sets the Marketo field's value.
func (s *SourceConnectorProperties) SetMarketo(v *MarketoSourceProperties) *SourceConnectorProperties {
s.Marketo = v
return s
}
// SetS3 sets the S3 field's value.
func (s *SourceConnectorProperties) SetS3(v *S3SourceProperties) *SourceConnectorProperties {
s.S3 = v
return s
}
// SetSalesforce sets the Salesforce field's value.
func (s *SourceConnectorProperties) SetSalesforce(v *SalesforceSourceProperties) *SourceConnectorProperties {
s.Salesforce = v
return s
}
// SetServiceNow sets the ServiceNow field's value.
func (s *SourceConnectorProperties) SetServiceNow(v *ServiceNowSourceProperties) *SourceConnectorProperties {
s.ServiceNow = v
return s
}
// SetSingular sets the Singular field's value.
func (s *SourceConnectorProperties) SetSingular(v *SingularSourceProperties) *SourceConnectorProperties {
s.Singular = v
return s
}
// SetSlack sets the Slack field's value.
func (s *SourceConnectorProperties) SetSlack(v *SlackSourceProperties) *SourceConnectorProperties {
s.Slack = v
return s
}
// SetTrendmicro sets the Trendmicro field's value.
func (s *SourceConnectorProperties) SetTrendmicro(v *TrendmicroSourceProperties) *SourceConnectorProperties {
s.Trendmicro = v
return s
}
// SetVeeva sets the Veeva field's value.
func (s *SourceConnectorProperties) SetVeeva(v *VeevaSourceProperties) *SourceConnectorProperties {
s.Veeva = v
return s
}
// SetZendesk sets the Zendesk field's value.
func (s *SourceConnectorProperties) SetZendesk(v *ZendeskSourceProperties) *SourceConnectorProperties {
s.Zendesk = v
return s
}
// The properties that can be applied to a field when the connector is being
// used as a source.
type SourceFieldProperties struct {
_ struct{} `type:"structure"`
// Indicates if the field can be queried.
IsQueryable *bool `locationName:"isQueryable" type:"boolean"`
// Indicates whether the field can be returned in a search result.
IsRetrievable *bool `locationName:"isRetrievable" type:"boolean"`
}
// String returns the string representation
func (s SourceFieldProperties) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s SourceFieldProperties) GoString() string {
return s.String()
}
// SetIsQueryable sets the IsQueryable field's value.
func (s *SourceFieldProperties) SetIsQueryable(v bool) *SourceFieldProperties {
s.IsQueryable = &v
return s
}
// SetIsRetrievable sets the IsRetrievable field's value.
func (s *SourceFieldProperties) SetIsRetrievable(v bool) *SourceFieldProperties {
s.IsRetrievable = &v
return s
}
// Contains information about the configuration of the source connector used
// in the flow.
type SourceFlowConfig struct {
_ struct{} `type:"structure"`
// The name of the connector profile. This name must be unique for each connector
// profile in the AWS account.
ConnectorProfileName *string `locationName:"connectorProfileName" type:"string"`
// The type of connector, such as Salesforce, Amplitude, and so on.
//
// ConnectorType is a required field
ConnectorType *string `locationName:"connectorType" type:"string" required:"true" enum:"ConnectorType"`
// Defines the configuration for a scheduled incremental data pull. If a valid
// configuration is provided, the fields specified in the configuration are
// used when querying for the incremental data pull.
IncrementalPullConfig *IncrementalPullConfig `locationName:"incrementalPullConfig" type:"structure"`
// Specifies the information that is required to query a particular source connector.
//
// SourceConnectorProperties is a required field
SourceConnectorProperties *SourceConnectorProperties `locationName:"sourceConnectorProperties" type:"structure" required:"true"`
}
// String returns the string representation
func (s SourceFlowConfig) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s SourceFlowConfig) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
func (s *SourceFlowConfig) Validate() error {
invalidParams := request.ErrInvalidParams{Context: "SourceFlowConfig"}
if s.ConnectorType == nil {
invalidParams.Add(request.NewErrParamRequired("ConnectorType"))
}
if s.SourceConnectorProperties == nil {
invalidParams.Add(request.NewErrParamRequired("SourceConnectorProperties"))
}
if s.SourceConnectorProperties != nil {
if err := s.SourceConnectorProperties.Validate(); err != nil {
invalidParams.AddNested("SourceConnectorProperties", err.(request.ErrInvalidParams))
}
}
if invalidParams.Len() > 0 {
return invalidParams
}
return nil
}
// SetConnectorProfileName sets the ConnectorProfileName field's value.
func (s *SourceFlowConfig) SetConnectorProfileName(v string) *SourceFlowConfig {
s.ConnectorProfileName = &v
return s
}
// SetConnectorType sets the ConnectorType field's value.
func (s *SourceFlowConfig) SetConnectorType(v string) *SourceFlowConfig {
s.ConnectorType = &v
return s
}
// SetIncrementalPullConfig sets the IncrementalPullConfig field's value.
func (s *SourceFlowConfig) SetIncrementalPullConfig(v *IncrementalPullConfig) *SourceFlowConfig {
s.IncrementalPullConfig = v
return s
}
// SetSourceConnectorProperties sets the SourceConnectorProperties field's value.
func (s *SourceFlowConfig) SetSourceConnectorProperties(v *SourceConnectorProperties) *SourceFlowConfig {
s.SourceConnectorProperties = v
return s
}
type StartFlowInput struct {
_ struct{} `type:"structure"`
// The specified name of the flow. Spaces are not allowed. Use underscores (_)
// or hyphens (-) only.
//
// FlowName is a required field
FlowName *string `locationName:"flowName" type:"string" required:"true"`
}
// String returns the string representation
func (s StartFlowInput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s StartFlowInput) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
func (s *StartFlowInput) Validate() error {
invalidParams := request.ErrInvalidParams{Context: "StartFlowInput"}
if s.FlowName == nil {
invalidParams.Add(request.NewErrParamRequired("FlowName"))
}
if invalidParams.Len() > 0 {
return invalidParams
}
return nil
}
// SetFlowName sets the FlowName field's value.
func (s *StartFlowInput) SetFlowName(v string) *StartFlowInput {
s.FlowName = &v
return s
}
type StartFlowOutput struct {
_ struct{} `type:"structure"`
// Returns the internal execution ID of an on-demand flow when the flow is started.
// For scheduled or event-triggered flows, this value is null.
ExecutionId *string `locationName:"executionId" type:"string"`
// The flow's Amazon Resource Name (ARN).
FlowArn *string `locationName:"flowArn" type:"string"`
// Indicates the current status of the flow.
FlowStatus *string `locationName:"flowStatus" type:"string" enum:"FlowStatus"`
}
// String returns the string representation
func (s StartFlowOutput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s StartFlowOutput) GoString() string {
return s.String()
}
// SetExecutionId sets the ExecutionId field's value.
func (s *StartFlowOutput) SetExecutionId(v string) *StartFlowOutput {
s.ExecutionId = &v
return s
}
// SetFlowArn sets the FlowArn field's value.
func (s *StartFlowOutput) SetFlowArn(v string) *StartFlowOutput {
s.FlowArn = &v
return s
}
// SetFlowStatus sets the FlowStatus field's value.
func (s *StartFlowOutput) SetFlowStatus(v string) *StartFlowOutput {
s.FlowStatus = &v
return s
}
type StopFlowInput struct {
_ struct{} `type:"structure"`
// The specified name of the flow. Spaces are not allowed. Use underscores (_)
// or hyphens (-) only.
//
// FlowName is a required field
FlowName *string `locationName:"flowName" type:"string" required:"true"`
}
// String returns the string representation
func (s StopFlowInput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s StopFlowInput) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
func (s *StopFlowInput) Validate() error {
invalidParams := request.ErrInvalidParams{Context: "StopFlowInput"}
if s.FlowName == nil {
invalidParams.Add(request.NewErrParamRequired("FlowName"))
}
if invalidParams.Len() > 0 {
return invalidParams
}
return nil
}
// SetFlowName sets the FlowName field's value.
func (s *StopFlowInput) SetFlowName(v string) *StopFlowInput {
s.FlowName = &v
return s
}
type StopFlowOutput struct {
_ struct{} `type:"structure"`
// The flow's Amazon Resource Name (ARN).
FlowArn *string `locationName:"flowArn" type:"string"`
// Indicates the current status of the flow.
FlowStatus *string `locationName:"flowStatus" type:"string" enum:"FlowStatus"`
}
// String returns the string representation
func (s StopFlowOutput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s StopFlowOutput) GoString() string {
return s.String()
}
// SetFlowArn sets the FlowArn field's value.
func (s *StopFlowOutput) SetFlowArn(v string) *StopFlowOutput {
s.FlowArn = &v
return s
}
// SetFlowStatus sets the FlowStatus field's value.
func (s *StopFlowOutput) SetFlowStatus(v string) *StopFlowOutput {
s.FlowStatus = &v
return s
}
// Contains details regarding all the supported FieldTypes and their corresponding
// filterOperators and supportedValues.
type SupportedFieldTypeDetails struct {
_ struct{} `type:"structure"`
// The initial supported version for fieldType. If this is later changed to
// a different version, v2 will be introduced.
//
// V1 is a required field
V1 *FieldTypeDetails `locationName:"v1" type:"structure" required:"true"`
}
// String returns the string representation
func (s SupportedFieldTypeDetails) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s SupportedFieldTypeDetails) GoString() string {
return s.String()
}
// SetV1 sets the V1 field's value.
func (s *SupportedFieldTypeDetails) SetV1(v *FieldTypeDetails) *SupportedFieldTypeDetails {
s.V1 = v
return s
}
type TagResourceInput struct {
_ struct{} `type:"structure"`
// The Amazon Resource Name (ARN) of the flow that you want to tag.
//
// ResourceArn is a required field
ResourceArn *string `location:"uri" locationName:"resourceArn" type:"string" required:"true"`
// The tags used to organize, track, or control access for your flow.
//
// Tags is a required field
Tags map[string]*string `locationName:"tags" type:"map" required:"true"`
}
// String returns the string representation
func (s TagResourceInput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s TagResourceInput) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
func (s *TagResourceInput) Validate() error {
invalidParams := request.ErrInvalidParams{Context: "TagResourceInput"}
if s.ResourceArn == nil {
invalidParams.Add(request.NewErrParamRequired("ResourceArn"))
}
if s.ResourceArn != nil && len(*s.ResourceArn) < 1 {
invalidParams.Add(request.NewErrParamMinLen("ResourceArn", 1))
}
if s.Tags == nil {
invalidParams.Add(request.NewErrParamRequired("Tags"))
}
if invalidParams.Len() > 0 {
return invalidParams
}
return nil
}
// SetResourceArn sets the ResourceArn field's value.
func (s *TagResourceInput) SetResourceArn(v string) *TagResourceInput {
s.ResourceArn = &v
return s
}
// SetTags sets the Tags field's value.
func (s *TagResourceInput) SetTags(v map[string]*string) *TagResourceInput {
s.Tags = v
return s
}
type TagResourceOutput struct {
_ struct{} `type:"structure"`
}
// String returns the string representation
func (s TagResourceOutput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s TagResourceOutput) GoString() string {
return s.String()
}
// A class for modeling different type of tasks. Task implementation varies
// based on the TaskType.
type Task struct {
_ struct{} `type:"structure"`
// The operation to be performed on the provided source fields.
ConnectorOperator *ConnectorOperator `locationName:"connectorOperator" type:"structure"`
// A field in a destination connector, or a field value against which Amazon
// AppFlow validates a source field.
DestinationField *string `locationName:"destinationField" type:"string"`
// The source fields to which a particular task is applied.
//
// SourceFields is a required field
SourceFields []*string `locationName:"sourceFields" type:"list" required:"true"`
// A map used to store task-related information. The execution service looks
// for particular information based on the TaskType.
TaskProperties map[string]*string `locationName:"taskProperties" type:"map"`
// Specifies the particular task implementation that Amazon AppFlow performs.
//
// TaskType is a required field
TaskType *string `locationName:"taskType" type:"string" required:"true" enum:"TaskType"`
}
// String returns the string representation
func (s Task) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s Task) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
func (s *Task) Validate() error {
invalidParams := request.ErrInvalidParams{Context: "Task"}
if s.SourceFields == nil {
invalidParams.Add(request.NewErrParamRequired("SourceFields"))
}
if s.TaskType == nil {
invalidParams.Add(request.NewErrParamRequired("TaskType"))
}
if invalidParams.Len() > 0 {
return invalidParams
}
return nil
}
// SetConnectorOperator sets the ConnectorOperator field's value.
func (s *Task) SetConnectorOperator(v *ConnectorOperator) *Task {
s.ConnectorOperator = v
return s
}
// SetDestinationField sets the DestinationField field's value.
func (s *Task) SetDestinationField(v string) *Task {
s.DestinationField = &v
return s
}
// SetSourceFields sets the SourceFields field's value.
func (s *Task) SetSourceFields(v []*string) *Task {
s.SourceFields = v
return s
}
// SetTaskProperties sets the TaskProperties field's value.
func (s *Task) SetTaskProperties(v map[string]*string) *Task {
s.TaskProperties = v
return s
}
// SetTaskType sets the TaskType field's value.
func (s *Task) SetTaskType(v string) *Task {
s.TaskType = &v
return s
}
// The connector-specific profile credentials required when using Trend Micro.
type TrendmicroConnectorProfileCredentials struct {
_ struct{} `type:"structure"`
// The Secret Access Key portion of the credentials.
//
// ApiSecretKey is a required field
ApiSecretKey *string `locationName:"apiSecretKey" type:"string" required:"true" sensitive:"true"`
}
// String returns the string representation
func (s TrendmicroConnectorProfileCredentials) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s TrendmicroConnectorProfileCredentials) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
func (s *TrendmicroConnectorProfileCredentials) Validate() error {
invalidParams := request.ErrInvalidParams{Context: "TrendmicroConnectorProfileCredentials"}
if s.ApiSecretKey == nil {
invalidParams.Add(request.NewErrParamRequired("ApiSecretKey"))
}
if invalidParams.Len() > 0 {
return invalidParams
}
return nil
}
// SetApiSecretKey sets the ApiSecretKey field's value.
func (s *TrendmicroConnectorProfileCredentials) SetApiSecretKey(v string) *TrendmicroConnectorProfileCredentials {
s.ApiSecretKey = &v
return s
}
// The connector-specific profile properties required when using Trend Micro.
type TrendmicroConnectorProfileProperties struct {
_ struct{} `type:"structure"`
}
// String returns the string representation
func (s TrendmicroConnectorProfileProperties) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s TrendmicroConnectorProfileProperties) GoString() string {
return s.String()
}
// The connector metadata specific to Trend Micro.
type TrendmicroMetadata struct {
_ struct{} `type:"structure"`
}
// String returns the string representation
func (s TrendmicroMetadata) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s TrendmicroMetadata) GoString() string {
return s.String()
}
// The properties that are applied when using Trend Micro as a flow source.
type TrendmicroSourceProperties struct {
_ struct{} `type:"structure"`
// The object specified in the Trend Micro flow source.
//
// Object is a required field
Object *string `locationName:"object" type:"string" required:"true"`
}
// String returns the string representation
func (s TrendmicroSourceProperties) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s TrendmicroSourceProperties) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
func (s *TrendmicroSourceProperties) Validate() error {
invalidParams := request.ErrInvalidParams{Context: "TrendmicroSourceProperties"}
if s.Object == nil {
invalidParams.Add(request.NewErrParamRequired("Object"))
}
if invalidParams.Len() > 0 {
return invalidParams
}
return nil
}
// SetObject sets the Object field's value.
func (s *TrendmicroSourceProperties) SetObject(v string) *TrendmicroSourceProperties {
s.Object = &v
return s
}
// The trigger settings that determine how and when Amazon AppFlow runs the
// specified flow.
type TriggerConfig struct {
_ struct{} `type:"structure"`
// Specifies the configuration details of a schedule-triggered flow as defined
// by the user. Currently, these settings only apply to the Scheduled trigger
// type.
TriggerProperties *TriggerProperties `locationName:"triggerProperties" type:"structure"`
// Specifies the type of flow trigger. This can be OnDemand, Scheduled, or Event.
//
// TriggerType is a required field
TriggerType *string `locationName:"triggerType" type:"string" required:"true" enum:"TriggerType"`
}
// String returns the string representation
func (s TriggerConfig) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s TriggerConfig) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
func (s *TriggerConfig) Validate() error {
invalidParams := request.ErrInvalidParams{Context: "TriggerConfig"}
if s.TriggerType == nil {
invalidParams.Add(request.NewErrParamRequired("TriggerType"))
}
if s.TriggerProperties != nil {
if err := s.TriggerProperties.Validate(); err != nil {
invalidParams.AddNested("TriggerProperties", err.(request.ErrInvalidParams))
}
}
if invalidParams.Len() > 0 {
return invalidParams
}
return nil
}
// SetTriggerProperties sets the TriggerProperties field's value.
func (s *TriggerConfig) SetTriggerProperties(v *TriggerProperties) *TriggerConfig {
s.TriggerProperties = v
return s
}
// SetTriggerType sets the TriggerType field's value.
func (s *TriggerConfig) SetTriggerType(v string) *TriggerConfig {
s.TriggerType = &v
return s
}
// Specifies the configuration details that control the trigger for a flow.
// Currently, these settings only apply to the Scheduled trigger type.
type TriggerProperties struct {
_ struct{} `type:"structure"`
// Specifies the configuration details of a schedule-triggered flow as defined
// by the user.
Scheduled *ScheduledTriggerProperties `type:"structure"`
}
// String returns the string representation
func (s TriggerProperties) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s TriggerProperties) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
func (s *TriggerProperties) Validate() error {
invalidParams := request.ErrInvalidParams{Context: "TriggerProperties"}
if s.Scheduled != nil {
if err := s.Scheduled.Validate(); err != nil {
invalidParams.AddNested("Scheduled", err.(request.ErrInvalidParams))
}
}
if invalidParams.Len() > 0 {
return invalidParams
}
return nil
}
// SetScheduled sets the Scheduled field's value.
func (s *TriggerProperties) SetScheduled(v *ScheduledTriggerProperties) *TriggerProperties {
s.Scheduled = v
return s
}
// The requested operation is not supported for the current flow.
type UnsupportedOperationException struct {
_ struct{} `type:"structure"`
RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
// String returns the string representation
func (s UnsupportedOperationException) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s UnsupportedOperationException) GoString() string {
return s.String()
}
func newErrorUnsupportedOperationException(v protocol.ResponseMetadata) error {
return &UnsupportedOperationException{
RespMetadata: v,
}
}
// Code returns the exception type name.
func (s *UnsupportedOperationException) Code() string {
return "UnsupportedOperationException"
}
// Message returns the exception's message.
func (s *UnsupportedOperationException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
return ""
}
// OrigErr always returns nil, satisfies awserr.Error interface.
func (s *UnsupportedOperationException) OrigErr() error {
return nil
}
func (s *UnsupportedOperationException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
func (s *UnsupportedOperationException) StatusCode() int {
return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
func (s *UnsupportedOperationException) RequestID() string {
return s.RespMetadata.RequestID
}
type UntagResourceInput struct {
_ struct{} `type:"structure"`
// The Amazon Resource Name (ARN) of the flow that you want to untag.
//
// ResourceArn is a required field
ResourceArn *string `location:"uri" locationName:"resourceArn" type:"string" required:"true"`
// The tag keys associated with the tag that you want to remove from your flow.
//
// TagKeys is a required field
TagKeys []*string `location:"querystring" locationName:"tagKeys" type:"list" required:"true"`
}
// String returns the string representation
func (s UntagResourceInput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s UntagResourceInput) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
func (s *UntagResourceInput) Validate() error {
invalidParams := request.ErrInvalidParams{Context: "UntagResourceInput"}
if s.ResourceArn == nil {
invalidParams.Add(request.NewErrParamRequired("ResourceArn"))
}
if s.ResourceArn != nil && len(*s.ResourceArn) < 1 {
invalidParams.Add(request.NewErrParamMinLen("ResourceArn", 1))
}
if s.TagKeys == nil {
invalidParams.Add(request.NewErrParamRequired("TagKeys"))
}
if invalidParams.Len() > 0 {
return invalidParams
}
return nil
}
// SetResourceArn sets the ResourceArn field's value.
func (s *UntagResourceInput) SetResourceArn(v string) *UntagResourceInput {
s.ResourceArn = &v
return s
}
// SetTagKeys sets the TagKeys field's value.
func (s *UntagResourceInput) SetTagKeys(v []*string) *UntagResourceInput {
s.TagKeys = v
return s
}
type UntagResourceOutput struct {
_ struct{} `type:"structure"`
}
// String returns the string representation
func (s UntagResourceOutput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s UntagResourceOutput) GoString() string {
return s.String()
}
type UpdateConnectorProfileInput struct {
_ struct{} `type:"structure"`
// Indicates the connection mode and if it is public or private.
//
// ConnectionMode is a required field
ConnectionMode *string `locationName:"connectionMode" type:"string" required:"true" enum:"ConnectionMode"`
// Defines the connector-specific profile configuration and credentials.
//
// ConnectorProfileConfig is a required field
ConnectorProfileConfig *ConnectorProfileConfig `locationName:"connectorProfileConfig" type:"structure" required:"true"`
// The name of the connector profile and is unique for each ConnectorProfile
// in the AWS Account.
//
// ConnectorProfileName is a required field
ConnectorProfileName *string `locationName:"connectorProfileName" type:"string" required:"true"`
}
// String returns the string representation
func (s UpdateConnectorProfileInput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s UpdateConnectorProfileInput) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
func (s *UpdateConnectorProfileInput) Validate() error {
invalidParams := request.ErrInvalidParams{Context: "UpdateConnectorProfileInput"}
if s.ConnectionMode == nil {
invalidParams.Add(request.NewErrParamRequired("ConnectionMode"))
}
if s.ConnectorProfileConfig == nil {
invalidParams.Add(request.NewErrParamRequired("ConnectorProfileConfig"))
}
if s.ConnectorProfileName == nil {
invalidParams.Add(request.NewErrParamRequired("ConnectorProfileName"))
}
if s.ConnectorProfileConfig != nil {
if err := s.ConnectorProfileConfig.Validate(); err != nil {
invalidParams.AddNested("ConnectorProfileConfig", err.(request.ErrInvalidParams))
}
}
if invalidParams.Len() > 0 {
return invalidParams
}
return nil
}
// SetConnectionMode sets the ConnectionMode field's value.
func (s *UpdateConnectorProfileInput) SetConnectionMode(v string) *UpdateConnectorProfileInput {
s.ConnectionMode = &v
return s
}
// SetConnectorProfileConfig sets the ConnectorProfileConfig field's value.
func (s *UpdateConnectorProfileInput) SetConnectorProfileConfig(v *ConnectorProfileConfig) *UpdateConnectorProfileInput {
s.ConnectorProfileConfig = v
return s
}
// SetConnectorProfileName sets the ConnectorProfileName field's value.
func (s *UpdateConnectorProfileInput) SetConnectorProfileName(v string) *UpdateConnectorProfileInput {
s.ConnectorProfileName = &v
return s
}
type UpdateConnectorProfileOutput struct {
_ struct{} `type:"structure"`
// The Amazon Resource Name (ARN) of the connector profile.
ConnectorProfileArn *string `locationName:"connectorProfileArn" type:"string"`
}
// String returns the string representation
func (s UpdateConnectorProfileOutput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s UpdateConnectorProfileOutput) GoString() string {
return s.String()
}
// SetConnectorProfileArn sets the ConnectorProfileArn field's value.
func (s *UpdateConnectorProfileOutput) SetConnectorProfileArn(v string) *UpdateConnectorProfileOutput {
s.ConnectorProfileArn = &v
return s
}
type UpdateFlowInput struct {
_ struct{} `type:"structure"`
// A description of the flow.
Description *string `locationName:"description" type:"string"`
// The configuration that controls how Amazon AppFlow transfers data to the
// destination connector.
//
// DestinationFlowConfigList is a required field
DestinationFlowConfigList []*DestinationFlowConfig `locationName:"destinationFlowConfigList" type:"list" required:"true"`
// The specified name of the flow. Spaces are not allowed. Use underscores (_)
// or hyphens (-) only.
//
// FlowName is a required field
FlowName *string `locationName:"flowName" type:"string" required:"true"`
// Contains information about the configuration of the source connector used
// in the flow.
SourceFlowConfig *SourceFlowConfig `locationName:"sourceFlowConfig" type:"structure"`
// A list of tasks that Amazon AppFlow performs while transferring the data
// in the flow run.
//
// Tasks is a required field
Tasks []*Task `locationName:"tasks" type:"list" required:"true"`
// The trigger settings that determine how and when the flow runs.
//
// TriggerConfig is a required field
TriggerConfig *TriggerConfig `locationName:"triggerConfig" type:"structure" required:"true"`
}
// String returns the string representation
func (s UpdateFlowInput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s UpdateFlowInput) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
func (s *UpdateFlowInput) Validate() error {
invalidParams := request.ErrInvalidParams{Context: "UpdateFlowInput"}
if s.DestinationFlowConfigList == nil {
invalidParams.Add(request.NewErrParamRequired("DestinationFlowConfigList"))
}
if s.FlowName == nil {
invalidParams.Add(request.NewErrParamRequired("FlowName"))
}
if s.Tasks == nil {
invalidParams.Add(request.NewErrParamRequired("Tasks"))
}
if s.TriggerConfig == nil {
invalidParams.Add(request.NewErrParamRequired("TriggerConfig"))
}
if s.DestinationFlowConfigList != nil {
for i, v := range s.DestinationFlowConfigList {
if v == nil {
continue
}
if err := v.Validate(); err != nil {
invalidParams.AddNested(fmt.Sprintf("%s[%v]", "DestinationFlowConfigList", i), err.(request.ErrInvalidParams))
}
}
}
if s.SourceFlowConfig != nil {
if err := s.SourceFlowConfig.Validate(); err != nil {
invalidParams.AddNested("SourceFlowConfig", err.(request.ErrInvalidParams))
}
}
if s.Tasks != nil {
for i, v := range s.Tasks {
if v == nil {
continue
}
if err := v.Validate(); err != nil {
invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Tasks", i), err.(request.ErrInvalidParams))
}
}
}
if s.TriggerConfig != nil {
if err := s.TriggerConfig.Validate(); err != nil {
invalidParams.AddNested("TriggerConfig", err.(request.ErrInvalidParams))
}
}
if invalidParams.Len() > 0 {
return invalidParams
}
return nil
}
// SetDescription sets the Description field's value.
func (s *UpdateFlowInput) SetDescription(v string) *UpdateFlowInput {
s.Description = &v
return s
}
// SetDestinationFlowConfigList sets the DestinationFlowConfigList field's value.
func (s *UpdateFlowInput) SetDestinationFlowConfigList(v []*DestinationFlowConfig) *UpdateFlowInput {
s.DestinationFlowConfigList = v
return s
}
// SetFlowName sets the FlowName field's value.
func (s *UpdateFlowInput) SetFlowName(v string) *UpdateFlowInput {
s.FlowName = &v
return s
}
// SetSourceFlowConfig sets the SourceFlowConfig field's value.
func (s *UpdateFlowInput) SetSourceFlowConfig(v *SourceFlowConfig) *UpdateFlowInput {
s.SourceFlowConfig = v
return s
}
// SetTasks sets the Tasks field's value.
func (s *UpdateFlowInput) SetTasks(v []*Task) *UpdateFlowInput {
s.Tasks = v
return s
}
// SetTriggerConfig sets the TriggerConfig field's value.
func (s *UpdateFlowInput) SetTriggerConfig(v *TriggerConfig) *UpdateFlowInput {
s.TriggerConfig = v
return s
}
type UpdateFlowOutput struct {
_ struct{} `type:"structure"`
// Indicates the current status of the flow.
FlowStatus *string `locationName:"flowStatus" type:"string" enum:"FlowStatus"`
}
// String returns the string representation
func (s UpdateFlowOutput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s UpdateFlowOutput) GoString() string {
return s.String()
}
// SetFlowStatus sets the FlowStatus field's value.
func (s *UpdateFlowOutput) SetFlowStatus(v string) *UpdateFlowOutput {
s.FlowStatus = &v
return s
}
// The properties that are applied when Upsolver is used as a destination.
type UpsolverDestinationProperties struct {
_ struct{} `type:"structure"`
// The Upsolver Amazon S3 bucket name in which Amazon AppFlow places the transferred
// data.
//
// BucketName is a required field
BucketName *string `locationName:"bucketName" min:"16" type:"string" required:"true"`
// The object key for the destination Upsolver Amazon S3 bucket in which Amazon
// AppFlow places the files.
BucketPrefix *string `locationName:"bucketPrefix" type:"string"`
// The configuration that determines how data is formatted when Upsolver is
// used as the flow destination.
//
// S3OutputFormatConfig is a required field
S3OutputFormatConfig *UpsolverS3OutputFormatConfig `locationName:"s3OutputFormatConfig" type:"structure" required:"true"`
}
// String returns the string representation
func (s UpsolverDestinationProperties) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s UpsolverDestinationProperties) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
func (s *UpsolverDestinationProperties) Validate() error {
invalidParams := request.ErrInvalidParams{Context: "UpsolverDestinationProperties"}
if s.BucketName == nil {
invalidParams.Add(request.NewErrParamRequired("BucketName"))
}
if s.BucketName != nil && len(*s.BucketName) < 16 {
invalidParams.Add(request.NewErrParamMinLen("BucketName", 16))
}
if s.S3OutputFormatConfig == nil {
invalidParams.Add(request.NewErrParamRequired("S3OutputFormatConfig"))
}
if s.S3OutputFormatConfig != nil {
if err := s.S3OutputFormatConfig.Validate(); err != nil {
invalidParams.AddNested("S3OutputFormatConfig", err.(request.ErrInvalidParams))
}
}
if invalidParams.Len() > 0 {
return invalidParams
}
return nil
}
// SetBucketName sets the BucketName field's value.
func (s *UpsolverDestinationProperties) SetBucketName(v string) *UpsolverDestinationProperties {
s.BucketName = &v
return s
}
// SetBucketPrefix sets the BucketPrefix field's value.
func (s *UpsolverDestinationProperties) SetBucketPrefix(v string) *UpsolverDestinationProperties {
s.BucketPrefix = &v
return s
}
// SetS3OutputFormatConfig sets the S3OutputFormatConfig field's value.
func (s *UpsolverDestinationProperties) SetS3OutputFormatConfig(v *UpsolverS3OutputFormatConfig) *UpsolverDestinationProperties {
s.S3OutputFormatConfig = v
return s
}
// The connector metadata specific to Upsolver.
type UpsolverMetadata struct {
_ struct{} `type:"structure"`
}
// String returns the string representation
func (s UpsolverMetadata) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s UpsolverMetadata) GoString() string {
return s.String()
}
// The configuration that determines how Amazon AppFlow formats the flow output
// data when Upsolver is used as the destination.
type UpsolverS3OutputFormatConfig struct {
_ struct{} `type:"structure"`
// The aggregation settings that you can use to customize the output format
// of your flow data.
AggregationConfig *AggregationConfig `locationName:"aggregationConfig" type:"structure"`
// Indicates the file type that Amazon AppFlow places in the Upsolver Amazon
// S3 bucket.
FileType *string `locationName:"fileType" type:"string" enum:"FileType"`
// Determines the prefix that Amazon AppFlow applies to the destination folder
// name. You can name your destination folders according to the flow frequency
// and date.
//
// PrefixConfig is a required field
PrefixConfig *PrefixConfig `locationName:"prefixConfig" type:"structure" required:"true"`
}
// String returns the string representation
func (s UpsolverS3OutputFormatConfig) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s UpsolverS3OutputFormatConfig) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
func (s *UpsolverS3OutputFormatConfig) Validate() error {
invalidParams := request.ErrInvalidParams{Context: "UpsolverS3OutputFormatConfig"}
if s.PrefixConfig == nil {
invalidParams.Add(request.NewErrParamRequired("PrefixConfig"))
}
if invalidParams.Len() > 0 {
return invalidParams
}
return nil
}
// SetAggregationConfig sets the AggregationConfig field's value.
func (s *UpsolverS3OutputFormatConfig) SetAggregationConfig(v *AggregationConfig) *UpsolverS3OutputFormatConfig {
s.AggregationConfig = v
return s
}
// SetFileType sets the FileType field's value.
func (s *UpsolverS3OutputFormatConfig) SetFileType(v string) *UpsolverS3OutputFormatConfig {
s.FileType = &v
return s
}
// SetPrefixConfig sets the PrefixConfig field's value.
func (s *UpsolverS3OutputFormatConfig) SetPrefixConfig(v *PrefixConfig) *UpsolverS3OutputFormatConfig {
s.PrefixConfig = v
return s
}
// The request has invalid or missing parameters.
type ValidationException struct {
_ struct{} `type:"structure"`
RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
// String returns the string representation
func (s ValidationException) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s ValidationException) GoString() string {
return s.String()
}
func newErrorValidationException(v protocol.ResponseMetadata) error {
return &ValidationException{
RespMetadata: v,
}
}
// Code returns the exception type name.
func (s *ValidationException) Code() string {
return "ValidationException"
}
// Message returns the exception's message.
func (s *ValidationException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
return ""
}
// OrigErr always returns nil, satisfies awserr.Error interface.
func (s *ValidationException) OrigErr() error {
return nil
}
func (s *ValidationException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
func (s *ValidationException) StatusCode() int {
return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
func (s *ValidationException) RequestID() string {
return s.RespMetadata.RequestID
}
// The connector-specific profile credentials required when using Veeva.
type VeevaConnectorProfileCredentials struct {
_ struct{} `type:"structure"`
// The password that corresponds to the user name.
//
// Password is a required field
Password *string `locationName:"password" type:"string" required:"true" sensitive:"true"`
// The name of the user.
//
// Username is a required field
Username *string `locationName:"username" type:"string" required:"true"`
}
// String returns the string representation
func (s VeevaConnectorProfileCredentials) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s VeevaConnectorProfileCredentials) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
func (s *VeevaConnectorProfileCredentials) Validate() error {
invalidParams := request.ErrInvalidParams{Context: "VeevaConnectorProfileCredentials"}
if s.Password == nil {
invalidParams.Add(request.NewErrParamRequired("Password"))
}
if s.Username == nil {
invalidParams.Add(request.NewErrParamRequired("Username"))
}
if invalidParams.Len() > 0 {
return invalidParams
}
return nil
}
// SetPassword sets the Password field's value.
func (s *VeevaConnectorProfileCredentials) SetPassword(v string) *VeevaConnectorProfileCredentials {
s.Password = &v
return s
}
// SetUsername sets the Username field's value.
func (s *VeevaConnectorProfileCredentials) SetUsername(v string) *VeevaConnectorProfileCredentials {
s.Username = &v
return s
}
// The connector-specific profile properties required when using Veeva.
type VeevaConnectorProfileProperties struct {
_ struct{} `type:"structure"`
// The location of the Veeva resource.
//
// InstanceUrl is a required field
InstanceUrl *string `locationName:"instanceUrl" type:"string" required:"true"`
}
// String returns the string representation
func (s VeevaConnectorProfileProperties) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s VeevaConnectorProfileProperties) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
func (s *VeevaConnectorProfileProperties) Validate() error {
invalidParams := request.ErrInvalidParams{Context: "VeevaConnectorProfileProperties"}
if s.InstanceUrl == nil {
invalidParams.Add(request.NewErrParamRequired("InstanceUrl"))
}
if invalidParams.Len() > 0 {
return invalidParams
}
return nil
}
// SetInstanceUrl sets the InstanceUrl field's value.
func (s *VeevaConnectorProfileProperties) SetInstanceUrl(v string) *VeevaConnectorProfileProperties {
s.InstanceUrl = &v
return s
}
// The connector metadata specific to Veeva.
type VeevaMetadata struct {
_ struct{} `type:"structure"`
}
// String returns the string representation
func (s VeevaMetadata) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s VeevaMetadata) GoString() string {
return s.String()
}
// The properties that are applied when using Veeva as a flow source.
type VeevaSourceProperties struct {
_ struct{} `type:"structure"`
// The object specified in the Veeva flow source.
//
// Object is a required field
Object *string `locationName:"object" type:"string" required:"true"`
}
// String returns the string representation
func (s VeevaSourceProperties) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s VeevaSourceProperties) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
func (s *VeevaSourceProperties) Validate() error {
invalidParams := request.ErrInvalidParams{Context: "VeevaSourceProperties"}
if s.Object == nil {
invalidParams.Add(request.NewErrParamRequired("Object"))
}
if invalidParams.Len() > 0 {
return invalidParams
}
return nil
}
// SetObject sets the Object field's value.
func (s *VeevaSourceProperties) SetObject(v string) *VeevaSourceProperties {
s.Object = &v
return s
}
// The connector-specific profile credentials required when using Zendesk.
type ZendeskConnectorProfileCredentials struct {
_ struct{} `type:"structure"`
// The credentials used to access protected Zendesk resources.
AccessToken *string `locationName:"accessToken" type:"string" sensitive:"true"`
// The identifier for the desired client.
//
// ClientId is a required field
ClientId *string `locationName:"clientId" type:"string" required:"true"`
// The client secret used by the OAuth client to authenticate to the authorization
// server.
//
// ClientSecret is a required field
ClientSecret *string `locationName:"clientSecret" type:"string" required:"true" sensitive:"true"`
// The OAuth requirement needed to request security tokens from the connector
// endpoint.
OAuthRequest *ConnectorOAuthRequest `locationName:"oAuthRequest" type:"structure"`
}
// String returns the string representation
func (s ZendeskConnectorProfileCredentials) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s ZendeskConnectorProfileCredentials) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
func (s *ZendeskConnectorProfileCredentials) Validate() error {
invalidParams := request.ErrInvalidParams{Context: "ZendeskConnectorProfileCredentials"}
if s.ClientId == nil {
invalidParams.Add(request.NewErrParamRequired("ClientId"))
}
if s.ClientSecret == nil {
invalidParams.Add(request.NewErrParamRequired("ClientSecret"))
}
if invalidParams.Len() > 0 {
return invalidParams
}
return nil
}
// SetAccessToken sets the AccessToken field's value.
func (s *ZendeskConnectorProfileCredentials) SetAccessToken(v string) *ZendeskConnectorProfileCredentials {
s.AccessToken = &v
return s
}
// SetClientId sets the ClientId field's value.
func (s *ZendeskConnectorProfileCredentials) SetClientId(v string) *ZendeskConnectorProfileCredentials {
s.ClientId = &v
return s
}
// SetClientSecret sets the ClientSecret field's value.
func (s *ZendeskConnectorProfileCredentials) SetClientSecret(v string) *ZendeskConnectorProfileCredentials {
s.ClientSecret = &v
return s
}
// SetOAuthRequest sets the OAuthRequest field's value.
func (s *ZendeskConnectorProfileCredentials) SetOAuthRequest(v *ConnectorOAuthRequest) *ZendeskConnectorProfileCredentials {
s.OAuthRequest = v
return s
}
// The connector-specific profile properties required when using Zendesk.
type ZendeskConnectorProfileProperties struct {
_ struct{} `type:"structure"`
// The location of the Zendesk resource.
//
// InstanceUrl is a required field
InstanceUrl *string `locationName:"instanceUrl" type:"string" required:"true"`
}
// String returns the string representation
func (s ZendeskConnectorProfileProperties) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s ZendeskConnectorProfileProperties) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
func (s *ZendeskConnectorProfileProperties) Validate() error {
invalidParams := request.ErrInvalidParams{Context: "ZendeskConnectorProfileProperties"}
if s.InstanceUrl == nil {
invalidParams.Add(request.NewErrParamRequired("InstanceUrl"))
}
if invalidParams.Len() > 0 {
return invalidParams
}
return nil
}
// SetInstanceUrl sets the InstanceUrl field's value.
func (s *ZendeskConnectorProfileProperties) SetInstanceUrl(v string) *ZendeskConnectorProfileProperties {
s.InstanceUrl = &v
return s
}
// The properties that are applied when Zendesk is used as a destination.
type ZendeskDestinationProperties struct {
_ struct{} `type:"structure"`
// The settings that determine how Amazon AppFlow handles an error when placing
// data in the destination. For example, this setting would determine if the
// flow should fail after one insertion error, or continue and attempt to insert
// every record regardless of the initial failure. ErrorHandlingConfig is a
// part of the destination connector details.
ErrorHandlingConfig *ErrorHandlingConfig `locationName:"errorHandlingConfig" type:"structure"`
// A list of field names that can be used as an ID field when performing a write
// operation.
IdFieldNames []*string `locationName:"idFieldNames" type:"list"`
// The object specified in the Zendesk flow destination.
//
// Object is a required field
Object *string `locationName:"object" type:"string" required:"true"`
// The possible write operations in the destination connector. When this value
// is not provided, this defaults to the INSERT operation.
WriteOperationType *string `locationName:"writeOperationType" type:"string" enum:"WriteOperationType"`
}
// String returns the string representation
func (s ZendeskDestinationProperties) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s ZendeskDestinationProperties) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
func (s *ZendeskDestinationProperties) Validate() error {
invalidParams := request.ErrInvalidParams{Context: "ZendeskDestinationProperties"}
if s.Object == nil {
invalidParams.Add(request.NewErrParamRequired("Object"))
}
if s.ErrorHandlingConfig != nil {
if err := s.ErrorHandlingConfig.Validate(); err != nil {
invalidParams.AddNested("ErrorHandlingConfig", err.(request.ErrInvalidParams))
}
}
if invalidParams.Len() > 0 {
return invalidParams
}
return nil
}
// SetErrorHandlingConfig sets the ErrorHandlingConfig field's value.
func (s *ZendeskDestinationProperties) SetErrorHandlingConfig(v *ErrorHandlingConfig) *ZendeskDestinationProperties {
s.ErrorHandlingConfig = v
return s
}
// SetIdFieldNames sets the IdFieldNames field's value.
func (s *ZendeskDestinationProperties) SetIdFieldNames(v []*string) *ZendeskDestinationProperties {
s.IdFieldNames = v
return s
}
// SetObject sets the Object field's value.
func (s *ZendeskDestinationProperties) SetObject(v string) *ZendeskDestinationProperties {
s.Object = &v
return s
}
// SetWriteOperationType sets the WriteOperationType field's value.
func (s *ZendeskDestinationProperties) SetWriteOperationType(v string) *ZendeskDestinationProperties {
s.WriteOperationType = &v
return s
}
// The connector metadata specific to Zendesk.
type ZendeskMetadata struct {
_ struct{} `type:"structure"`
// The desired authorization scope for the Zendesk account.
OAuthScopes []*string `locationName:"oAuthScopes" type:"list"`
}
// String returns the string representation
func (s ZendeskMetadata) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s ZendeskMetadata) GoString() string {
return s.String()
}
// SetOAuthScopes sets the OAuthScopes field's value.
func (s *ZendeskMetadata) SetOAuthScopes(v []*string) *ZendeskMetadata {
s.OAuthScopes = v
return s
}
// The properties that are applied when using Zendesk as a flow source.
type ZendeskSourceProperties struct {
_ struct{} `type:"structure"`
// The object specified in the Zendesk flow source.
//
// Object is a required field
Object *string `locationName:"object" type:"string" required:"true"`
}
// String returns the string representation
func (s ZendeskSourceProperties) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s ZendeskSourceProperties) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
func (s *ZendeskSourceProperties) Validate() error {
invalidParams := request.ErrInvalidParams{Context: "ZendeskSourceProperties"}
if s.Object == nil {
invalidParams.Add(request.NewErrParamRequired("Object"))
}
if invalidParams.Len() > 0 {
return invalidParams
}
return nil
}
// SetObject sets the Object field's value.
func (s *ZendeskSourceProperties) SetObject(v string) *ZendeskSourceProperties {
s.Object = &v
return s
}
const (
// AggregationTypeNone is a AggregationType enum value
AggregationTypeNone = "None"
// AggregationTypeSingleFile is a AggregationType enum value
AggregationTypeSingleFile = "SingleFile"
)
// AggregationType_Values returns all elements of the AggregationType enum
func AggregationType_Values() []string {
return []string{
AggregationTypeNone,
AggregationTypeSingleFile,
}
}
const (
// AmplitudeConnectorOperatorBetween is a AmplitudeConnectorOperator enum value
AmplitudeConnectorOperatorBetween = "BETWEEN"
)
// AmplitudeConnectorOperator_Values returns all elements of the AmplitudeConnectorOperator enum
func AmplitudeConnectorOperator_Values() []string {
return []string{
AmplitudeConnectorOperatorBetween,
}
}
const (
// ConnectionModePublic is a ConnectionMode enum value
ConnectionModePublic = "Public"
// ConnectionModePrivate is a ConnectionMode enum value
ConnectionModePrivate = "Private"
)
// ConnectionMode_Values returns all elements of the ConnectionMode enum
func ConnectionMode_Values() []string {
return []string{
ConnectionModePublic,
ConnectionModePrivate,
}
}
const (
// ConnectorTypeSalesforce is a ConnectorType enum value
ConnectorTypeSalesforce = "Salesforce"
// ConnectorTypeSingular is a ConnectorType enum value
ConnectorTypeSingular = "Singular"
// ConnectorTypeSlack is a ConnectorType enum value
ConnectorTypeSlack = "Slack"
// ConnectorTypeRedshift is a ConnectorType enum value
ConnectorTypeRedshift = "Redshift"
// ConnectorTypeS3 is a ConnectorType enum value
ConnectorTypeS3 = "S3"
// ConnectorTypeMarketo is a ConnectorType enum value
ConnectorTypeMarketo = "Marketo"
// ConnectorTypeGoogleanalytics is a ConnectorType enum value
ConnectorTypeGoogleanalytics = "Googleanalytics"
// ConnectorTypeZendesk is a ConnectorType enum value
ConnectorTypeZendesk = "Zendesk"
// ConnectorTypeServicenow is a ConnectorType enum value
ConnectorTypeServicenow = "Servicenow"
// ConnectorTypeDatadog is a ConnectorType enum value
ConnectorTypeDatadog = "Datadog"
// ConnectorTypeTrendmicro is a ConnectorType enum value
ConnectorTypeTrendmicro = "Trendmicro"
// ConnectorTypeSnowflake is a ConnectorType enum value
ConnectorTypeSnowflake = "Snowflake"
// ConnectorTypeDynatrace is a ConnectorType enum value
ConnectorTypeDynatrace = "Dynatrace"
// ConnectorTypeInfornexus is a ConnectorType enum value
ConnectorTypeInfornexus = "Infornexus"
// ConnectorTypeAmplitude is a ConnectorType enum value
ConnectorTypeAmplitude = "Amplitude"
// ConnectorTypeVeeva is a ConnectorType enum value
ConnectorTypeVeeva = "Veeva"
// ConnectorTypeEventBridge is a ConnectorType enum value
ConnectorTypeEventBridge = "EventBridge"
// ConnectorTypeLookoutMetrics is a ConnectorType enum value
ConnectorTypeLookoutMetrics = "LookoutMetrics"
// ConnectorTypeUpsolver is a ConnectorType enum value
ConnectorTypeUpsolver = "Upsolver"
// ConnectorTypeHoneycode is a ConnectorType enum value
ConnectorTypeHoneycode = "Honeycode"
// ConnectorTypeCustomerProfiles is a ConnectorType enum value
ConnectorTypeCustomerProfiles = "CustomerProfiles"
)
// ConnectorType_Values returns all elements of the ConnectorType enum
func ConnectorType_Values() []string {
return []string{
ConnectorTypeSalesforce,
ConnectorTypeSingular,
ConnectorTypeSlack,
ConnectorTypeRedshift,
ConnectorTypeS3,
ConnectorTypeMarketo,
ConnectorTypeGoogleanalytics,
ConnectorTypeZendesk,
ConnectorTypeServicenow,
ConnectorTypeDatadog,
ConnectorTypeTrendmicro,
ConnectorTypeSnowflake,
ConnectorTypeDynatrace,
ConnectorTypeInfornexus,
ConnectorTypeAmplitude,
ConnectorTypeVeeva,
ConnectorTypeEventBridge,
ConnectorTypeLookoutMetrics,
ConnectorTypeUpsolver,
ConnectorTypeHoneycode,
ConnectorTypeCustomerProfiles,
}
}
const (
// DataPullModeIncremental is a DataPullMode enum value
DataPullModeIncremental = "Incremental"
// DataPullModeComplete is a DataPullMode enum value
DataPullModeComplete = "Complete"
)
// DataPullMode_Values returns all elements of the DataPullMode enum
func DataPullMode_Values() []string {
return []string{
DataPullModeIncremental,
DataPullModeComplete,
}
}
const (
// DatadogConnectorOperatorProjection is a DatadogConnectorOperator enum value
DatadogConnectorOperatorProjection = "PROJECTION"
// DatadogConnectorOperatorBetween is a DatadogConnectorOperator enum value
DatadogConnectorOperatorBetween = "BETWEEN"
// DatadogConnectorOperatorEqualTo is a DatadogConnectorOperator enum value
DatadogConnectorOperatorEqualTo = "EQUAL_TO"
// DatadogConnectorOperatorAddition is a DatadogConnectorOperator enum value
DatadogConnectorOperatorAddition = "ADDITION"
// DatadogConnectorOperatorMultiplication is a DatadogConnectorOperator enum value
DatadogConnectorOperatorMultiplication = "MULTIPLICATION"
// DatadogConnectorOperatorDivision is a DatadogConnectorOperator enum value
DatadogConnectorOperatorDivision = "DIVISION"
// DatadogConnectorOperatorSubtraction is a DatadogConnectorOperator enum value
DatadogConnectorOperatorSubtraction = "SUBTRACTION"
// DatadogConnectorOperatorMaskAll is a DatadogConnectorOperator enum value
DatadogConnectorOperatorMaskAll = "MASK_ALL"
// DatadogConnectorOperatorMaskFirstN is a DatadogConnectorOperator enum value
DatadogConnectorOperatorMaskFirstN = "MASK_FIRST_N"
// DatadogConnectorOperatorMaskLastN is a DatadogConnectorOperator enum value
DatadogConnectorOperatorMaskLastN = "MASK_LAST_N"
// DatadogConnectorOperatorValidateNonNull is a DatadogConnectorOperator enum value
DatadogConnectorOperatorValidateNonNull = "VALIDATE_NON_NULL"
// DatadogConnectorOperatorValidateNonZero is a DatadogConnectorOperator enum value
DatadogConnectorOperatorValidateNonZero = "VALIDATE_NON_ZERO"
// DatadogConnectorOperatorValidateNonNegative is a DatadogConnectorOperator enum value
DatadogConnectorOperatorValidateNonNegative = "VALIDATE_NON_NEGATIVE"
// DatadogConnectorOperatorValidateNumeric is a DatadogConnectorOperator enum value
DatadogConnectorOperatorValidateNumeric = "VALIDATE_NUMERIC"
// DatadogConnectorOperatorNoOp is a DatadogConnectorOperator enum value
DatadogConnectorOperatorNoOp = "NO_OP"
)
// DatadogConnectorOperator_Values returns all elements of the DatadogConnectorOperator enum
func DatadogConnectorOperator_Values() []string {
return []string{
DatadogConnectorOperatorProjection,
DatadogConnectorOperatorBetween,
DatadogConnectorOperatorEqualTo,
DatadogConnectorOperatorAddition,
DatadogConnectorOperatorMultiplication,
DatadogConnectorOperatorDivision,
DatadogConnectorOperatorSubtraction,
DatadogConnectorOperatorMaskAll,
DatadogConnectorOperatorMaskFirstN,
DatadogConnectorOperatorMaskLastN,
DatadogConnectorOperatorValidateNonNull,
DatadogConnectorOperatorValidateNonZero,
DatadogConnectorOperatorValidateNonNegative,
DatadogConnectorOperatorValidateNumeric,
DatadogConnectorOperatorNoOp,
}
}
const (
// DynatraceConnectorOperatorProjection is a DynatraceConnectorOperator enum value
DynatraceConnectorOperatorProjection = "PROJECTION"
// DynatraceConnectorOperatorBetween is a DynatraceConnectorOperator enum value
DynatraceConnectorOperatorBetween = "BETWEEN"
// DynatraceConnectorOperatorEqualTo is a DynatraceConnectorOperator enum value
DynatraceConnectorOperatorEqualTo = "EQUAL_TO"
// DynatraceConnectorOperatorAddition is a DynatraceConnectorOperator enum value
DynatraceConnectorOperatorAddition = "ADDITION"
// DynatraceConnectorOperatorMultiplication is a DynatraceConnectorOperator enum value
DynatraceConnectorOperatorMultiplication = "MULTIPLICATION"
// DynatraceConnectorOperatorDivision is a DynatraceConnectorOperator enum value
DynatraceConnectorOperatorDivision = "DIVISION"
// DynatraceConnectorOperatorSubtraction is a DynatraceConnectorOperator enum value
DynatraceConnectorOperatorSubtraction = "SUBTRACTION"
// DynatraceConnectorOperatorMaskAll is a DynatraceConnectorOperator enum value
DynatraceConnectorOperatorMaskAll = "MASK_ALL"
// DynatraceConnectorOperatorMaskFirstN is a DynatraceConnectorOperator enum value
DynatraceConnectorOperatorMaskFirstN = "MASK_FIRST_N"
// DynatraceConnectorOperatorMaskLastN is a DynatraceConnectorOperator enum value
DynatraceConnectorOperatorMaskLastN = "MASK_LAST_N"
// DynatraceConnectorOperatorValidateNonNull is a DynatraceConnectorOperator enum value
DynatraceConnectorOperatorValidateNonNull = "VALIDATE_NON_NULL"
// DynatraceConnectorOperatorValidateNonZero is a DynatraceConnectorOperator enum value
DynatraceConnectorOperatorValidateNonZero = "VALIDATE_NON_ZERO"
// DynatraceConnectorOperatorValidateNonNegative is a DynatraceConnectorOperator enum value
DynatraceConnectorOperatorValidateNonNegative = "VALIDATE_NON_NEGATIVE"
// DynatraceConnectorOperatorValidateNumeric is a DynatraceConnectorOperator enum value
DynatraceConnectorOperatorValidateNumeric = "VALIDATE_NUMERIC"
// DynatraceConnectorOperatorNoOp is a DynatraceConnectorOperator enum value
DynatraceConnectorOperatorNoOp = "NO_OP"
)
// DynatraceConnectorOperator_Values returns all elements of the DynatraceConnectorOperator enum
func DynatraceConnectorOperator_Values() []string {
return []string{
DynatraceConnectorOperatorProjection,
DynatraceConnectorOperatorBetween,
DynatraceConnectorOperatorEqualTo,
DynatraceConnectorOperatorAddition,
DynatraceConnectorOperatorMultiplication,
DynatraceConnectorOperatorDivision,
DynatraceConnectorOperatorSubtraction,
DynatraceConnectorOperatorMaskAll,
DynatraceConnectorOperatorMaskFirstN,
DynatraceConnectorOperatorMaskLastN,
DynatraceConnectorOperatorValidateNonNull,
DynatraceConnectorOperatorValidateNonZero,
DynatraceConnectorOperatorValidateNonNegative,
DynatraceConnectorOperatorValidateNumeric,
DynatraceConnectorOperatorNoOp,
}
}
const (
// ExecutionStatusInProgress is a ExecutionStatus enum value
ExecutionStatusInProgress = "InProgress"
// ExecutionStatusSuccessful is a ExecutionStatus enum value
ExecutionStatusSuccessful = "Successful"
// ExecutionStatusError is a ExecutionStatus enum value
ExecutionStatusError = "Error"
)
// ExecutionStatus_Values returns all elements of the ExecutionStatus enum
func ExecutionStatus_Values() []string {
return []string{
ExecutionStatusInProgress,
ExecutionStatusSuccessful,
ExecutionStatusError,
}
}
const (
// FileTypeCsv is a FileType enum value
FileTypeCsv = "CSV"
// FileTypeJson is a FileType enum value
FileTypeJson = "JSON"
// FileTypeParquet is a FileType enum value
FileTypeParquet = "PARQUET"
)
// FileType_Values returns all elements of the FileType enum
func FileType_Values() []string {
return []string{
FileTypeCsv,
FileTypeJson,
FileTypeParquet,
}
}
const (
// FlowStatusActive is a FlowStatus enum value
FlowStatusActive = "Active"
// FlowStatusDeprecated is a FlowStatus enum value
FlowStatusDeprecated = "Deprecated"
// FlowStatusDeleted is a FlowStatus enum value
FlowStatusDeleted = "Deleted"
// FlowStatusDraft is a FlowStatus enum value
FlowStatusDraft = "Draft"
// FlowStatusErrored is a FlowStatus enum value
FlowStatusErrored = "Errored"
// FlowStatusSuspended is a FlowStatus enum value
FlowStatusSuspended = "Suspended"
)
// FlowStatus_Values returns all elements of the FlowStatus enum
func FlowStatus_Values() []string {
return []string{
FlowStatusActive,
FlowStatusDeprecated,
FlowStatusDeleted,
FlowStatusDraft,
FlowStatusErrored,
FlowStatusSuspended,
}
}
const (
// GoogleAnalyticsConnectorOperatorProjection is a GoogleAnalyticsConnectorOperator enum value
GoogleAnalyticsConnectorOperatorProjection = "PROJECTION"
// GoogleAnalyticsConnectorOperatorBetween is a GoogleAnalyticsConnectorOperator enum value
GoogleAnalyticsConnectorOperatorBetween = "BETWEEN"
)
// GoogleAnalyticsConnectorOperator_Values returns all elements of the GoogleAnalyticsConnectorOperator enum
func GoogleAnalyticsConnectorOperator_Values() []string {
return []string{
GoogleAnalyticsConnectorOperatorProjection,
GoogleAnalyticsConnectorOperatorBetween,
}
}
const (
// InforNexusConnectorOperatorProjection is a InforNexusConnectorOperator enum value
InforNexusConnectorOperatorProjection = "PROJECTION"
// InforNexusConnectorOperatorBetween is a InforNexusConnectorOperator enum value
InforNexusConnectorOperatorBetween = "BETWEEN"
// InforNexusConnectorOperatorEqualTo is a InforNexusConnectorOperator enum value
InforNexusConnectorOperatorEqualTo = "EQUAL_TO"
// InforNexusConnectorOperatorAddition is a InforNexusConnectorOperator enum value
InforNexusConnectorOperatorAddition = "ADDITION"
// InforNexusConnectorOperatorMultiplication is a InforNexusConnectorOperator enum value
InforNexusConnectorOperatorMultiplication = "MULTIPLICATION"
// InforNexusConnectorOperatorDivision is a InforNexusConnectorOperator enum value
InforNexusConnectorOperatorDivision = "DIVISION"
// InforNexusConnectorOperatorSubtraction is a InforNexusConnectorOperator enum value
InforNexusConnectorOperatorSubtraction = "SUBTRACTION"
// InforNexusConnectorOperatorMaskAll is a InforNexusConnectorOperator enum value
InforNexusConnectorOperatorMaskAll = "MASK_ALL"
// InforNexusConnectorOperatorMaskFirstN is a InforNexusConnectorOperator enum value
InforNexusConnectorOperatorMaskFirstN = "MASK_FIRST_N"
// InforNexusConnectorOperatorMaskLastN is a InforNexusConnectorOperator enum value
InforNexusConnectorOperatorMaskLastN = "MASK_LAST_N"
// InforNexusConnectorOperatorValidateNonNull is a InforNexusConnectorOperator enum value
InforNexusConnectorOperatorValidateNonNull = "VALIDATE_NON_NULL"
// InforNexusConnectorOperatorValidateNonZero is a InforNexusConnectorOperator enum value
InforNexusConnectorOperatorValidateNonZero = "VALIDATE_NON_ZERO"
// InforNexusConnectorOperatorValidateNonNegative is a InforNexusConnectorOperator enum value
InforNexusConnectorOperatorValidateNonNegative = "VALIDATE_NON_NEGATIVE"
// InforNexusConnectorOperatorValidateNumeric is a InforNexusConnectorOperator enum value
InforNexusConnectorOperatorValidateNumeric = "VALIDATE_NUMERIC"
// InforNexusConnectorOperatorNoOp is a InforNexusConnectorOperator enum value
InforNexusConnectorOperatorNoOp = "NO_OP"
)
// InforNexusConnectorOperator_Values returns all elements of the InforNexusConnectorOperator enum
func InforNexusConnectorOperator_Values() []string {
return []string{
InforNexusConnectorOperatorProjection,
InforNexusConnectorOperatorBetween,
InforNexusConnectorOperatorEqualTo,
InforNexusConnectorOperatorAddition,
InforNexusConnectorOperatorMultiplication,
InforNexusConnectorOperatorDivision,
InforNexusConnectorOperatorSubtraction,
InforNexusConnectorOperatorMaskAll,
InforNexusConnectorOperatorMaskFirstN,
InforNexusConnectorOperatorMaskLastN,
InforNexusConnectorOperatorValidateNonNull,
InforNexusConnectorOperatorValidateNonZero,
InforNexusConnectorOperatorValidateNonNegative,
InforNexusConnectorOperatorValidateNumeric,
InforNexusConnectorOperatorNoOp,
}
}
const (
// MarketoConnectorOperatorProjection is a MarketoConnectorOperator enum value
MarketoConnectorOperatorProjection = "PROJECTION"
// MarketoConnectorOperatorLessThan is a MarketoConnectorOperator enum value
MarketoConnectorOperatorLessThan = "LESS_THAN"
// MarketoConnectorOperatorGreaterThan is a MarketoConnectorOperator enum value
MarketoConnectorOperatorGreaterThan = "GREATER_THAN"
// MarketoConnectorOperatorBetween is a MarketoConnectorOperator enum value
MarketoConnectorOperatorBetween = "BETWEEN"
// MarketoConnectorOperatorAddition is a MarketoConnectorOperator enum value
MarketoConnectorOperatorAddition = "ADDITION"
// MarketoConnectorOperatorMultiplication is a MarketoConnectorOperator enum value
MarketoConnectorOperatorMultiplication = "MULTIPLICATION"
// MarketoConnectorOperatorDivision is a MarketoConnectorOperator enum value
MarketoConnectorOperatorDivision = "DIVISION"
// MarketoConnectorOperatorSubtraction is a MarketoConnectorOperator enum value
MarketoConnectorOperatorSubtraction = "SUBTRACTION"
// MarketoConnectorOperatorMaskAll is a MarketoConnectorOperator enum value
MarketoConnectorOperatorMaskAll = "MASK_ALL"
// MarketoConnectorOperatorMaskFirstN is a MarketoConnectorOperator enum value
MarketoConnectorOperatorMaskFirstN = "MASK_FIRST_N"
// MarketoConnectorOperatorMaskLastN is a MarketoConnectorOperator enum value
MarketoConnectorOperatorMaskLastN = "MASK_LAST_N"
// MarketoConnectorOperatorValidateNonNull is a MarketoConnectorOperator enum value
MarketoConnectorOperatorValidateNonNull = "VALIDATE_NON_NULL"
// MarketoConnectorOperatorValidateNonZero is a MarketoConnectorOperator enum value
MarketoConnectorOperatorValidateNonZero = "VALIDATE_NON_ZERO"
// MarketoConnectorOperatorValidateNonNegative is a MarketoConnectorOperator enum value
MarketoConnectorOperatorValidateNonNegative = "VALIDATE_NON_NEGATIVE"
// MarketoConnectorOperatorValidateNumeric is a MarketoConnectorOperator enum value
MarketoConnectorOperatorValidateNumeric = "VALIDATE_NUMERIC"
// MarketoConnectorOperatorNoOp is a MarketoConnectorOperator enum value
MarketoConnectorOperatorNoOp = "NO_OP"
)
// MarketoConnectorOperator_Values returns all elements of the MarketoConnectorOperator enum
func MarketoConnectorOperator_Values() []string {
return []string{
MarketoConnectorOperatorProjection,
MarketoConnectorOperatorLessThan,
MarketoConnectorOperatorGreaterThan,
MarketoConnectorOperatorBetween,
MarketoConnectorOperatorAddition,
MarketoConnectorOperatorMultiplication,
MarketoConnectorOperatorDivision,
MarketoConnectorOperatorSubtraction,
MarketoConnectorOperatorMaskAll,
MarketoConnectorOperatorMaskFirstN,
MarketoConnectorOperatorMaskLastN,
MarketoConnectorOperatorValidateNonNull,
MarketoConnectorOperatorValidateNonZero,
MarketoConnectorOperatorValidateNonNegative,
MarketoConnectorOperatorValidateNumeric,
MarketoConnectorOperatorNoOp,
}
}
const (
// OperatorProjection is a Operator enum value
OperatorProjection = "PROJECTION"
// OperatorLessThan is a Operator enum value
OperatorLessThan = "LESS_THAN"
// OperatorGreaterThan is a Operator enum value
OperatorGreaterThan = "GREATER_THAN"
// OperatorContains is a Operator enum value
OperatorContains = "CONTAINS"
// OperatorBetween is a Operator enum value
OperatorBetween = "BETWEEN"
// OperatorLessThanOrEqualTo is a Operator enum value
OperatorLessThanOrEqualTo = "LESS_THAN_OR_EQUAL_TO"
// OperatorGreaterThanOrEqualTo is a Operator enum value
OperatorGreaterThanOrEqualTo = "GREATER_THAN_OR_EQUAL_TO"
// OperatorEqualTo is a Operator enum value
OperatorEqualTo = "EQUAL_TO"
// OperatorNotEqualTo is a Operator enum value
OperatorNotEqualTo = "NOT_EQUAL_TO"
// OperatorAddition is a Operator enum value
OperatorAddition = "ADDITION"
// OperatorMultiplication is a Operator enum value
OperatorMultiplication = "MULTIPLICATION"
// OperatorDivision is a Operator enum value
OperatorDivision = "DIVISION"
// OperatorSubtraction is a Operator enum value
OperatorSubtraction = "SUBTRACTION"
// OperatorMaskAll is a Operator enum value
OperatorMaskAll = "MASK_ALL"
// OperatorMaskFirstN is a Operator enum value
OperatorMaskFirstN = "MASK_FIRST_N"
// OperatorMaskLastN is a Operator enum value
OperatorMaskLastN = "MASK_LAST_N"
// OperatorValidateNonNull is a Operator enum value
OperatorValidateNonNull = "VALIDATE_NON_NULL"
// OperatorValidateNonZero is a Operator enum value
OperatorValidateNonZero = "VALIDATE_NON_ZERO"
// OperatorValidateNonNegative is a Operator enum value
OperatorValidateNonNegative = "VALIDATE_NON_NEGATIVE"
// OperatorValidateNumeric is a Operator enum value
OperatorValidateNumeric = "VALIDATE_NUMERIC"
// OperatorNoOp is a Operator enum value
OperatorNoOp = "NO_OP"
)
// Operator_Values returns all elements of the Operator enum
func Operator_Values() []string {
return []string{
OperatorProjection,
OperatorLessThan,
OperatorGreaterThan,
OperatorContains,
OperatorBetween,
OperatorLessThanOrEqualTo,
OperatorGreaterThanOrEqualTo,
OperatorEqualTo,
OperatorNotEqualTo,
OperatorAddition,
OperatorMultiplication,
OperatorDivision,
OperatorSubtraction,
OperatorMaskAll,
OperatorMaskFirstN,
OperatorMaskLastN,
OperatorValidateNonNull,
OperatorValidateNonZero,
OperatorValidateNonNegative,
OperatorValidateNumeric,
OperatorNoOp,
}
}
const (
// OperatorPropertiesKeysValue is a OperatorPropertiesKeys enum value
OperatorPropertiesKeysValue = "VALUE"
// OperatorPropertiesKeysValues is a OperatorPropertiesKeys enum value
OperatorPropertiesKeysValues = "VALUES"
// OperatorPropertiesKeysDataType is a OperatorPropertiesKeys enum value
OperatorPropertiesKeysDataType = "DATA_TYPE"
// OperatorPropertiesKeysUpperBound is a OperatorPropertiesKeys enum value
OperatorPropertiesKeysUpperBound = "UPPER_BOUND"
// OperatorPropertiesKeysLowerBound is a OperatorPropertiesKeys enum value
OperatorPropertiesKeysLowerBound = "LOWER_BOUND"
// OperatorPropertiesKeysSourceDataType is a OperatorPropertiesKeys enum value
OperatorPropertiesKeysSourceDataType = "SOURCE_DATA_TYPE"
// OperatorPropertiesKeysDestinationDataType is a OperatorPropertiesKeys enum value
OperatorPropertiesKeysDestinationDataType = "DESTINATION_DATA_TYPE"
// OperatorPropertiesKeysValidationAction is a OperatorPropertiesKeys enum value
OperatorPropertiesKeysValidationAction = "VALIDATION_ACTION"
// OperatorPropertiesKeysMaskValue is a OperatorPropertiesKeys enum value
OperatorPropertiesKeysMaskValue = "MASK_VALUE"
// OperatorPropertiesKeysMaskLength is a OperatorPropertiesKeys enum value
OperatorPropertiesKeysMaskLength = "MASK_LENGTH"
// OperatorPropertiesKeysTruncateLength is a OperatorPropertiesKeys enum value
OperatorPropertiesKeysTruncateLength = "TRUNCATE_LENGTH"
// OperatorPropertiesKeysMathOperationFieldsOrder is a OperatorPropertiesKeys enum value
OperatorPropertiesKeysMathOperationFieldsOrder = "MATH_OPERATION_FIELDS_ORDER"
// OperatorPropertiesKeysConcatFormat is a OperatorPropertiesKeys enum value
OperatorPropertiesKeysConcatFormat = "CONCAT_FORMAT"
// OperatorPropertiesKeysSubfieldCategoryMap is a OperatorPropertiesKeys enum value
OperatorPropertiesKeysSubfieldCategoryMap = "SUBFIELD_CATEGORY_MAP"
// OperatorPropertiesKeysExcludeSourceFieldsList is a OperatorPropertiesKeys enum value
OperatorPropertiesKeysExcludeSourceFieldsList = "EXCLUDE_SOURCE_FIELDS_LIST"
)
// OperatorPropertiesKeys_Values returns all elements of the OperatorPropertiesKeys enum
func OperatorPropertiesKeys_Values() []string {
return []string{
OperatorPropertiesKeysValue,
OperatorPropertiesKeysValues,
OperatorPropertiesKeysDataType,
OperatorPropertiesKeysUpperBound,
OperatorPropertiesKeysLowerBound,
OperatorPropertiesKeysSourceDataType,
OperatorPropertiesKeysDestinationDataType,
OperatorPropertiesKeysValidationAction,
OperatorPropertiesKeysMaskValue,
OperatorPropertiesKeysMaskLength,
OperatorPropertiesKeysTruncateLength,
OperatorPropertiesKeysMathOperationFieldsOrder,
OperatorPropertiesKeysConcatFormat,
OperatorPropertiesKeysSubfieldCategoryMap,
OperatorPropertiesKeysExcludeSourceFieldsList,
}
}
const (
// PrefixFormatYear is a PrefixFormat enum value
PrefixFormatYear = "YEAR"
// PrefixFormatMonth is a PrefixFormat enum value
PrefixFormatMonth = "MONTH"
// PrefixFormatDay is a PrefixFormat enum value
PrefixFormatDay = "DAY"
// PrefixFormatHour is a PrefixFormat enum value
PrefixFormatHour = "HOUR"
// PrefixFormatMinute is a PrefixFormat enum value
PrefixFormatMinute = "MINUTE"
)
// PrefixFormat_Values returns all elements of the PrefixFormat enum
func PrefixFormat_Values() []string {
return []string{
PrefixFormatYear,
PrefixFormatMonth,
PrefixFormatDay,
PrefixFormatHour,
PrefixFormatMinute,
}
}
const (
// PrefixTypeFilename is a PrefixType enum value
PrefixTypeFilename = "FILENAME"
// PrefixTypePath is a PrefixType enum value
PrefixTypePath = "PATH"
// PrefixTypePathAndFilename is a PrefixType enum value
PrefixTypePathAndFilename = "PATH_AND_FILENAME"
)
// PrefixType_Values returns all elements of the PrefixType enum
func PrefixType_Values() []string {
return []string{
PrefixTypeFilename,
PrefixTypePath,
PrefixTypePathAndFilename,
}
}
const (
// S3ConnectorOperatorProjection is a S3ConnectorOperator enum value
S3ConnectorOperatorProjection = "PROJECTION"
// S3ConnectorOperatorLessThan is a S3ConnectorOperator enum value
S3ConnectorOperatorLessThan = "LESS_THAN"
// S3ConnectorOperatorGreaterThan is a S3ConnectorOperator enum value
S3ConnectorOperatorGreaterThan = "GREATER_THAN"
// S3ConnectorOperatorBetween is a S3ConnectorOperator enum value
S3ConnectorOperatorBetween = "BETWEEN"
// S3ConnectorOperatorLessThanOrEqualTo is a S3ConnectorOperator enum value
S3ConnectorOperatorLessThanOrEqualTo = "LESS_THAN_OR_EQUAL_TO"
// S3ConnectorOperatorGreaterThanOrEqualTo is a S3ConnectorOperator enum value
S3ConnectorOperatorGreaterThanOrEqualTo = "GREATER_THAN_OR_EQUAL_TO"
// S3ConnectorOperatorEqualTo is a S3ConnectorOperator enum value
S3ConnectorOperatorEqualTo = "EQUAL_TO"
// S3ConnectorOperatorNotEqualTo is a S3ConnectorOperator enum value
S3ConnectorOperatorNotEqualTo = "NOT_EQUAL_TO"
// S3ConnectorOperatorAddition is a S3ConnectorOperator enum value
S3ConnectorOperatorAddition = "ADDITION"
// S3ConnectorOperatorMultiplication is a S3ConnectorOperator enum value
S3ConnectorOperatorMultiplication = "MULTIPLICATION"
// S3ConnectorOperatorDivision is a S3ConnectorOperator enum value
S3ConnectorOperatorDivision = "DIVISION"
// S3ConnectorOperatorSubtraction is a S3ConnectorOperator enum value
S3ConnectorOperatorSubtraction = "SUBTRACTION"
// S3ConnectorOperatorMaskAll is a S3ConnectorOperator enum value
S3ConnectorOperatorMaskAll = "MASK_ALL"
// S3ConnectorOperatorMaskFirstN is a S3ConnectorOperator enum value
S3ConnectorOperatorMaskFirstN = "MASK_FIRST_N"
// S3ConnectorOperatorMaskLastN is a S3ConnectorOperator enum value
S3ConnectorOperatorMaskLastN = "MASK_LAST_N"
// S3ConnectorOperatorValidateNonNull is a S3ConnectorOperator enum value
S3ConnectorOperatorValidateNonNull = "VALIDATE_NON_NULL"
// S3ConnectorOperatorValidateNonZero is a S3ConnectorOperator enum value
S3ConnectorOperatorValidateNonZero = "VALIDATE_NON_ZERO"
// S3ConnectorOperatorValidateNonNegative is a S3ConnectorOperator enum value
S3ConnectorOperatorValidateNonNegative = "VALIDATE_NON_NEGATIVE"
// S3ConnectorOperatorValidateNumeric is a S3ConnectorOperator enum value
S3ConnectorOperatorValidateNumeric = "VALIDATE_NUMERIC"
// S3ConnectorOperatorNoOp is a S3ConnectorOperator enum value
S3ConnectorOperatorNoOp = "NO_OP"
)
// S3ConnectorOperator_Values returns all elements of the S3ConnectorOperator enum
func S3ConnectorOperator_Values() []string {
return []string{
S3ConnectorOperatorProjection,
S3ConnectorOperatorLessThan,
S3ConnectorOperatorGreaterThan,
S3ConnectorOperatorBetween,
S3ConnectorOperatorLessThanOrEqualTo,
S3ConnectorOperatorGreaterThanOrEqualTo,
S3ConnectorOperatorEqualTo,
S3ConnectorOperatorNotEqualTo,
S3ConnectorOperatorAddition,
S3ConnectorOperatorMultiplication,
S3ConnectorOperatorDivision,
S3ConnectorOperatorSubtraction,
S3ConnectorOperatorMaskAll,
S3ConnectorOperatorMaskFirstN,
S3ConnectorOperatorMaskLastN,
S3ConnectorOperatorValidateNonNull,
S3ConnectorOperatorValidateNonZero,
S3ConnectorOperatorValidateNonNegative,
S3ConnectorOperatorValidateNumeric,
S3ConnectorOperatorNoOp,
}
}
const (
// SalesforceConnectorOperatorProjection is a SalesforceConnectorOperator enum value
SalesforceConnectorOperatorProjection = "PROJECTION"
// SalesforceConnectorOperatorLessThan is a SalesforceConnectorOperator enum value
SalesforceConnectorOperatorLessThan = "LESS_THAN"
// SalesforceConnectorOperatorContains is a SalesforceConnectorOperator enum value
SalesforceConnectorOperatorContains = "CONTAINS"
// SalesforceConnectorOperatorGreaterThan is a SalesforceConnectorOperator enum value
SalesforceConnectorOperatorGreaterThan = "GREATER_THAN"
// SalesforceConnectorOperatorBetween is a SalesforceConnectorOperator enum value
SalesforceConnectorOperatorBetween = "BETWEEN"
// SalesforceConnectorOperatorLessThanOrEqualTo is a SalesforceConnectorOperator enum value
SalesforceConnectorOperatorLessThanOrEqualTo = "LESS_THAN_OR_EQUAL_TO"
// SalesforceConnectorOperatorGreaterThanOrEqualTo is a SalesforceConnectorOperator enum value
SalesforceConnectorOperatorGreaterThanOrEqualTo = "GREATER_THAN_OR_EQUAL_TO"
// SalesforceConnectorOperatorEqualTo is a SalesforceConnectorOperator enum value
SalesforceConnectorOperatorEqualTo = "EQUAL_TO"
// SalesforceConnectorOperatorNotEqualTo is a SalesforceConnectorOperator enum value
SalesforceConnectorOperatorNotEqualTo = "NOT_EQUAL_TO"
// SalesforceConnectorOperatorAddition is a SalesforceConnectorOperator enum value
SalesforceConnectorOperatorAddition = "ADDITION"
// SalesforceConnectorOperatorMultiplication is a SalesforceConnectorOperator enum value
SalesforceConnectorOperatorMultiplication = "MULTIPLICATION"
// SalesforceConnectorOperatorDivision is a SalesforceConnectorOperator enum value
SalesforceConnectorOperatorDivision = "DIVISION"
// SalesforceConnectorOperatorSubtraction is a SalesforceConnectorOperator enum value
SalesforceConnectorOperatorSubtraction = "SUBTRACTION"
// SalesforceConnectorOperatorMaskAll is a SalesforceConnectorOperator enum value
SalesforceConnectorOperatorMaskAll = "MASK_ALL"
// SalesforceConnectorOperatorMaskFirstN is a SalesforceConnectorOperator enum value
SalesforceConnectorOperatorMaskFirstN = "MASK_FIRST_N"
// SalesforceConnectorOperatorMaskLastN is a SalesforceConnectorOperator enum value
SalesforceConnectorOperatorMaskLastN = "MASK_LAST_N"
// SalesforceConnectorOperatorValidateNonNull is a SalesforceConnectorOperator enum value
SalesforceConnectorOperatorValidateNonNull = "VALIDATE_NON_NULL"
// SalesforceConnectorOperatorValidateNonZero is a SalesforceConnectorOperator enum value
SalesforceConnectorOperatorValidateNonZero = "VALIDATE_NON_ZERO"
// SalesforceConnectorOperatorValidateNonNegative is a SalesforceConnectorOperator enum value
SalesforceConnectorOperatorValidateNonNegative = "VALIDATE_NON_NEGATIVE"
// SalesforceConnectorOperatorValidateNumeric is a SalesforceConnectorOperator enum value
SalesforceConnectorOperatorValidateNumeric = "VALIDATE_NUMERIC"
// SalesforceConnectorOperatorNoOp is a SalesforceConnectorOperator enum value
SalesforceConnectorOperatorNoOp = "NO_OP"
)
// SalesforceConnectorOperator_Values returns all elements of the SalesforceConnectorOperator enum
func SalesforceConnectorOperator_Values() []string {
return []string{
SalesforceConnectorOperatorProjection,
SalesforceConnectorOperatorLessThan,
SalesforceConnectorOperatorContains,
SalesforceConnectorOperatorGreaterThan,
SalesforceConnectorOperatorBetween,
SalesforceConnectorOperatorLessThanOrEqualTo,
SalesforceConnectorOperatorGreaterThanOrEqualTo,
SalesforceConnectorOperatorEqualTo,
SalesforceConnectorOperatorNotEqualTo,
SalesforceConnectorOperatorAddition,
SalesforceConnectorOperatorMultiplication,
SalesforceConnectorOperatorDivision,
SalesforceConnectorOperatorSubtraction,
SalesforceConnectorOperatorMaskAll,
SalesforceConnectorOperatorMaskFirstN,
SalesforceConnectorOperatorMaskLastN,
SalesforceConnectorOperatorValidateNonNull,
SalesforceConnectorOperatorValidateNonZero,
SalesforceConnectorOperatorValidateNonNegative,
SalesforceConnectorOperatorValidateNumeric,
SalesforceConnectorOperatorNoOp,
}
}
const (
// ScheduleFrequencyTypeByminute is a ScheduleFrequencyType enum value
ScheduleFrequencyTypeByminute = "BYMINUTE"
// ScheduleFrequencyTypeHourly is a ScheduleFrequencyType enum value
ScheduleFrequencyTypeHourly = "HOURLY"
// ScheduleFrequencyTypeDaily is a ScheduleFrequencyType enum value
ScheduleFrequencyTypeDaily = "DAILY"
// ScheduleFrequencyTypeWeekly is a ScheduleFrequencyType enum value
ScheduleFrequencyTypeWeekly = "WEEKLY"
// ScheduleFrequencyTypeMonthly is a ScheduleFrequencyType enum value
ScheduleFrequencyTypeMonthly = "MONTHLY"
// ScheduleFrequencyTypeOnce is a ScheduleFrequencyType enum value
ScheduleFrequencyTypeOnce = "ONCE"
)
// ScheduleFrequencyType_Values returns all elements of the ScheduleFrequencyType enum
func ScheduleFrequencyType_Values() []string {
return []string{
ScheduleFrequencyTypeByminute,
ScheduleFrequencyTypeHourly,
ScheduleFrequencyTypeDaily,
ScheduleFrequencyTypeWeekly,
ScheduleFrequencyTypeMonthly,
ScheduleFrequencyTypeOnce,
}
}
const (
// ServiceNowConnectorOperatorProjection is a ServiceNowConnectorOperator enum value
ServiceNowConnectorOperatorProjection = "PROJECTION"
// ServiceNowConnectorOperatorContains is a ServiceNowConnectorOperator enum value
ServiceNowConnectorOperatorContains = "CONTAINS"
// ServiceNowConnectorOperatorLessThan is a ServiceNowConnectorOperator enum value
ServiceNowConnectorOperatorLessThan = "LESS_THAN"
// ServiceNowConnectorOperatorGreaterThan is a ServiceNowConnectorOperator enum value
ServiceNowConnectorOperatorGreaterThan = "GREATER_THAN"
// ServiceNowConnectorOperatorBetween is a ServiceNowConnectorOperator enum value
ServiceNowConnectorOperatorBetween = "BETWEEN"
// ServiceNowConnectorOperatorLessThanOrEqualTo is a ServiceNowConnectorOperator enum value
ServiceNowConnectorOperatorLessThanOrEqualTo = "LESS_THAN_OR_EQUAL_TO"
// ServiceNowConnectorOperatorGreaterThanOrEqualTo is a ServiceNowConnectorOperator enum value
ServiceNowConnectorOperatorGreaterThanOrEqualTo = "GREATER_THAN_OR_EQUAL_TO"
// ServiceNowConnectorOperatorEqualTo is a ServiceNowConnectorOperator enum value
ServiceNowConnectorOperatorEqualTo = "EQUAL_TO"
// ServiceNowConnectorOperatorNotEqualTo is a ServiceNowConnectorOperator enum value
ServiceNowConnectorOperatorNotEqualTo = "NOT_EQUAL_TO"
// ServiceNowConnectorOperatorAddition is a ServiceNowConnectorOperator enum value
ServiceNowConnectorOperatorAddition = "ADDITION"
// ServiceNowConnectorOperatorMultiplication is a ServiceNowConnectorOperator enum value
ServiceNowConnectorOperatorMultiplication = "MULTIPLICATION"
// ServiceNowConnectorOperatorDivision is a ServiceNowConnectorOperator enum value
ServiceNowConnectorOperatorDivision = "DIVISION"
// ServiceNowConnectorOperatorSubtraction is a ServiceNowConnectorOperator enum value
ServiceNowConnectorOperatorSubtraction = "SUBTRACTION"
// ServiceNowConnectorOperatorMaskAll is a ServiceNowConnectorOperator enum value
ServiceNowConnectorOperatorMaskAll = "MASK_ALL"
// ServiceNowConnectorOperatorMaskFirstN is a ServiceNowConnectorOperator enum value
ServiceNowConnectorOperatorMaskFirstN = "MASK_FIRST_N"
// ServiceNowConnectorOperatorMaskLastN is a ServiceNowConnectorOperator enum value
ServiceNowConnectorOperatorMaskLastN = "MASK_LAST_N"
// ServiceNowConnectorOperatorValidateNonNull is a ServiceNowConnectorOperator enum value
ServiceNowConnectorOperatorValidateNonNull = "VALIDATE_NON_NULL"
// ServiceNowConnectorOperatorValidateNonZero is a ServiceNowConnectorOperator enum value
ServiceNowConnectorOperatorValidateNonZero = "VALIDATE_NON_ZERO"
// ServiceNowConnectorOperatorValidateNonNegative is a ServiceNowConnectorOperator enum value
ServiceNowConnectorOperatorValidateNonNegative = "VALIDATE_NON_NEGATIVE"
// ServiceNowConnectorOperatorValidateNumeric is a ServiceNowConnectorOperator enum value
ServiceNowConnectorOperatorValidateNumeric = "VALIDATE_NUMERIC"
// ServiceNowConnectorOperatorNoOp is a ServiceNowConnectorOperator enum value
ServiceNowConnectorOperatorNoOp = "NO_OP"
)
// ServiceNowConnectorOperator_Values returns all elements of the ServiceNowConnectorOperator enum
func ServiceNowConnectorOperator_Values() []string {
return []string{
ServiceNowConnectorOperatorProjection,
ServiceNowConnectorOperatorContains,
ServiceNowConnectorOperatorLessThan,
ServiceNowConnectorOperatorGreaterThan,
ServiceNowConnectorOperatorBetween,
ServiceNowConnectorOperatorLessThanOrEqualTo,
ServiceNowConnectorOperatorGreaterThanOrEqualTo,
ServiceNowConnectorOperatorEqualTo,
ServiceNowConnectorOperatorNotEqualTo,
ServiceNowConnectorOperatorAddition,
ServiceNowConnectorOperatorMultiplication,
ServiceNowConnectorOperatorDivision,
ServiceNowConnectorOperatorSubtraction,
ServiceNowConnectorOperatorMaskAll,
ServiceNowConnectorOperatorMaskFirstN,
ServiceNowConnectorOperatorMaskLastN,
ServiceNowConnectorOperatorValidateNonNull,
ServiceNowConnectorOperatorValidateNonZero,
ServiceNowConnectorOperatorValidateNonNegative,
ServiceNowConnectorOperatorValidateNumeric,
ServiceNowConnectorOperatorNoOp,
}
}
const (
// SingularConnectorOperatorProjection is a SingularConnectorOperator enum value
SingularConnectorOperatorProjection = "PROJECTION"
// SingularConnectorOperatorEqualTo is a SingularConnectorOperator enum value
SingularConnectorOperatorEqualTo = "EQUAL_TO"
// SingularConnectorOperatorAddition is a SingularConnectorOperator enum value
SingularConnectorOperatorAddition = "ADDITION"
// SingularConnectorOperatorMultiplication is a SingularConnectorOperator enum value
SingularConnectorOperatorMultiplication = "MULTIPLICATION"
// SingularConnectorOperatorDivision is a SingularConnectorOperator enum value
SingularConnectorOperatorDivision = "DIVISION"
// SingularConnectorOperatorSubtraction is a SingularConnectorOperator enum value
SingularConnectorOperatorSubtraction = "SUBTRACTION"
// SingularConnectorOperatorMaskAll is a SingularConnectorOperator enum value
SingularConnectorOperatorMaskAll = "MASK_ALL"
// SingularConnectorOperatorMaskFirstN is a SingularConnectorOperator enum value
SingularConnectorOperatorMaskFirstN = "MASK_FIRST_N"
// SingularConnectorOperatorMaskLastN is a SingularConnectorOperator enum value
SingularConnectorOperatorMaskLastN = "MASK_LAST_N"
// SingularConnectorOperatorValidateNonNull is a SingularConnectorOperator enum value
SingularConnectorOperatorValidateNonNull = "VALIDATE_NON_NULL"
// SingularConnectorOperatorValidateNonZero is a SingularConnectorOperator enum value
SingularConnectorOperatorValidateNonZero = "VALIDATE_NON_ZERO"
// SingularConnectorOperatorValidateNonNegative is a SingularConnectorOperator enum value
SingularConnectorOperatorValidateNonNegative = "VALIDATE_NON_NEGATIVE"
// SingularConnectorOperatorValidateNumeric is a SingularConnectorOperator enum value
SingularConnectorOperatorValidateNumeric = "VALIDATE_NUMERIC"
// SingularConnectorOperatorNoOp is a SingularConnectorOperator enum value
SingularConnectorOperatorNoOp = "NO_OP"
)
// SingularConnectorOperator_Values returns all elements of the SingularConnectorOperator enum
func SingularConnectorOperator_Values() []string {
return []string{
SingularConnectorOperatorProjection,
SingularConnectorOperatorEqualTo,
SingularConnectorOperatorAddition,
SingularConnectorOperatorMultiplication,
SingularConnectorOperatorDivision,
SingularConnectorOperatorSubtraction,
SingularConnectorOperatorMaskAll,
SingularConnectorOperatorMaskFirstN,
SingularConnectorOperatorMaskLastN,
SingularConnectorOperatorValidateNonNull,
SingularConnectorOperatorValidateNonZero,
SingularConnectorOperatorValidateNonNegative,
SingularConnectorOperatorValidateNumeric,
SingularConnectorOperatorNoOp,
}
}
const (
// SlackConnectorOperatorProjection is a SlackConnectorOperator enum value
SlackConnectorOperatorProjection = "PROJECTION"
// SlackConnectorOperatorLessThan is a SlackConnectorOperator enum value
SlackConnectorOperatorLessThan = "LESS_THAN"
// SlackConnectorOperatorGreaterThan is a SlackConnectorOperator enum value
SlackConnectorOperatorGreaterThan = "GREATER_THAN"
// SlackConnectorOperatorBetween is a SlackConnectorOperator enum value
SlackConnectorOperatorBetween = "BETWEEN"
// SlackConnectorOperatorLessThanOrEqualTo is a SlackConnectorOperator enum value
SlackConnectorOperatorLessThanOrEqualTo = "LESS_THAN_OR_EQUAL_TO"
// SlackConnectorOperatorGreaterThanOrEqualTo is a SlackConnectorOperator enum value
SlackConnectorOperatorGreaterThanOrEqualTo = "GREATER_THAN_OR_EQUAL_TO"
// SlackConnectorOperatorEqualTo is a SlackConnectorOperator enum value
SlackConnectorOperatorEqualTo = "EQUAL_TO"
// SlackConnectorOperatorAddition is a SlackConnectorOperator enum value
SlackConnectorOperatorAddition = "ADDITION"
// SlackConnectorOperatorMultiplication is a SlackConnectorOperator enum value
SlackConnectorOperatorMultiplication = "MULTIPLICATION"
// SlackConnectorOperatorDivision is a SlackConnectorOperator enum value
SlackConnectorOperatorDivision = "DIVISION"
// SlackConnectorOperatorSubtraction is a SlackConnectorOperator enum value
SlackConnectorOperatorSubtraction = "SUBTRACTION"
// SlackConnectorOperatorMaskAll is a SlackConnectorOperator enum value
SlackConnectorOperatorMaskAll = "MASK_ALL"
// SlackConnectorOperatorMaskFirstN is a SlackConnectorOperator enum value
SlackConnectorOperatorMaskFirstN = "MASK_FIRST_N"
// SlackConnectorOperatorMaskLastN is a SlackConnectorOperator enum value
SlackConnectorOperatorMaskLastN = "MASK_LAST_N"
// SlackConnectorOperatorValidateNonNull is a SlackConnectorOperator enum value
SlackConnectorOperatorValidateNonNull = "VALIDATE_NON_NULL"
// SlackConnectorOperatorValidateNonZero is a SlackConnectorOperator enum value
SlackConnectorOperatorValidateNonZero = "VALIDATE_NON_ZERO"
// SlackConnectorOperatorValidateNonNegative is a SlackConnectorOperator enum value
SlackConnectorOperatorValidateNonNegative = "VALIDATE_NON_NEGATIVE"
// SlackConnectorOperatorValidateNumeric is a SlackConnectorOperator enum value
SlackConnectorOperatorValidateNumeric = "VALIDATE_NUMERIC"
// SlackConnectorOperatorNoOp is a SlackConnectorOperator enum value
SlackConnectorOperatorNoOp = "NO_OP"
)
// SlackConnectorOperator_Values returns all elements of the SlackConnectorOperator enum
func SlackConnectorOperator_Values() []string {
return []string{
SlackConnectorOperatorProjection,
SlackConnectorOperatorLessThan,
SlackConnectorOperatorGreaterThan,
SlackConnectorOperatorBetween,
SlackConnectorOperatorLessThanOrEqualTo,
SlackConnectorOperatorGreaterThanOrEqualTo,
SlackConnectorOperatorEqualTo,
SlackConnectorOperatorAddition,
SlackConnectorOperatorMultiplication,
SlackConnectorOperatorDivision,
SlackConnectorOperatorSubtraction,
SlackConnectorOperatorMaskAll,
SlackConnectorOperatorMaskFirstN,
SlackConnectorOperatorMaskLastN,
SlackConnectorOperatorValidateNonNull,
SlackConnectorOperatorValidateNonZero,
SlackConnectorOperatorValidateNonNegative,
SlackConnectorOperatorValidateNumeric,
SlackConnectorOperatorNoOp,
}
}
const (
// TaskTypeArithmetic is a TaskType enum value
TaskTypeArithmetic = "Arithmetic"
// TaskTypeFilter is a TaskType enum value
TaskTypeFilter = "Filter"
// TaskTypeMap is a TaskType enum value
TaskTypeMap = "Map"
// TaskTypeMapAll is a TaskType enum value
TaskTypeMapAll = "Map_all"
// TaskTypeMask is a TaskType enum value
TaskTypeMask = "Mask"
// TaskTypeMerge is a TaskType enum value
TaskTypeMerge = "Merge"
// TaskTypeTruncate is a TaskType enum value
TaskTypeTruncate = "Truncate"
// TaskTypeValidate is a TaskType enum value
TaskTypeValidate = "Validate"
)
// TaskType_Values returns all elements of the TaskType enum
func TaskType_Values() []string {
return []string{
TaskTypeArithmetic,
TaskTypeFilter,
TaskTypeMap,
TaskTypeMapAll,
TaskTypeMask,
TaskTypeMerge,
TaskTypeTruncate,
TaskTypeValidate,
}
}
const (
// TrendmicroConnectorOperatorProjection is a TrendmicroConnectorOperator enum value
TrendmicroConnectorOperatorProjection = "PROJECTION"
// TrendmicroConnectorOperatorEqualTo is a TrendmicroConnectorOperator enum value
TrendmicroConnectorOperatorEqualTo = "EQUAL_TO"
// TrendmicroConnectorOperatorAddition is a TrendmicroConnectorOperator enum value
TrendmicroConnectorOperatorAddition = "ADDITION"
// TrendmicroConnectorOperatorMultiplication is a TrendmicroConnectorOperator enum value
TrendmicroConnectorOperatorMultiplication = "MULTIPLICATION"
// TrendmicroConnectorOperatorDivision is a TrendmicroConnectorOperator enum value
TrendmicroConnectorOperatorDivision = "DIVISION"
// TrendmicroConnectorOperatorSubtraction is a TrendmicroConnectorOperator enum value
TrendmicroConnectorOperatorSubtraction = "SUBTRACTION"
// TrendmicroConnectorOperatorMaskAll is a TrendmicroConnectorOperator enum value
TrendmicroConnectorOperatorMaskAll = "MASK_ALL"
// TrendmicroConnectorOperatorMaskFirstN is a TrendmicroConnectorOperator enum value
TrendmicroConnectorOperatorMaskFirstN = "MASK_FIRST_N"
// TrendmicroConnectorOperatorMaskLastN is a TrendmicroConnectorOperator enum value
TrendmicroConnectorOperatorMaskLastN = "MASK_LAST_N"
// TrendmicroConnectorOperatorValidateNonNull is a TrendmicroConnectorOperator enum value
TrendmicroConnectorOperatorValidateNonNull = "VALIDATE_NON_NULL"
// TrendmicroConnectorOperatorValidateNonZero is a TrendmicroConnectorOperator enum value
TrendmicroConnectorOperatorValidateNonZero = "VALIDATE_NON_ZERO"
// TrendmicroConnectorOperatorValidateNonNegative is a TrendmicroConnectorOperator enum value
TrendmicroConnectorOperatorValidateNonNegative = "VALIDATE_NON_NEGATIVE"
// TrendmicroConnectorOperatorValidateNumeric is a TrendmicroConnectorOperator enum value
TrendmicroConnectorOperatorValidateNumeric = "VALIDATE_NUMERIC"
// TrendmicroConnectorOperatorNoOp is a TrendmicroConnectorOperator enum value
TrendmicroConnectorOperatorNoOp = "NO_OP"
)
// TrendmicroConnectorOperator_Values returns all elements of the TrendmicroConnectorOperator enum
func TrendmicroConnectorOperator_Values() []string {
return []string{
TrendmicroConnectorOperatorProjection,
TrendmicroConnectorOperatorEqualTo,
TrendmicroConnectorOperatorAddition,
TrendmicroConnectorOperatorMultiplication,
TrendmicroConnectorOperatorDivision,
TrendmicroConnectorOperatorSubtraction,
TrendmicroConnectorOperatorMaskAll,
TrendmicroConnectorOperatorMaskFirstN,
TrendmicroConnectorOperatorMaskLastN,
TrendmicroConnectorOperatorValidateNonNull,
TrendmicroConnectorOperatorValidateNonZero,
TrendmicroConnectorOperatorValidateNonNegative,
TrendmicroConnectorOperatorValidateNumeric,
TrendmicroConnectorOperatorNoOp,
}
}
const (
// TriggerTypeScheduled is a TriggerType enum value
TriggerTypeScheduled = "Scheduled"
// TriggerTypeEvent is a TriggerType enum value
TriggerTypeEvent = "Event"
// TriggerTypeOnDemand is a TriggerType enum value
TriggerTypeOnDemand = "OnDemand"
)
// TriggerType_Values returns all elements of the TriggerType enum
func TriggerType_Values() []string {
return []string{
TriggerTypeScheduled,
TriggerTypeEvent,
TriggerTypeOnDemand,
}
}
const (
// VeevaConnectorOperatorProjection is a VeevaConnectorOperator enum value
VeevaConnectorOperatorProjection = "PROJECTION"
// VeevaConnectorOperatorLessThan is a VeevaConnectorOperator enum value
VeevaConnectorOperatorLessThan = "LESS_THAN"
// VeevaConnectorOperatorGreaterThan is a VeevaConnectorOperator enum value
VeevaConnectorOperatorGreaterThan = "GREATER_THAN"
// VeevaConnectorOperatorContains is a VeevaConnectorOperator enum value
VeevaConnectorOperatorContains = "CONTAINS"
// VeevaConnectorOperatorBetween is a VeevaConnectorOperator enum value
VeevaConnectorOperatorBetween = "BETWEEN"
// VeevaConnectorOperatorLessThanOrEqualTo is a VeevaConnectorOperator enum value
VeevaConnectorOperatorLessThanOrEqualTo = "LESS_THAN_OR_EQUAL_TO"
// VeevaConnectorOperatorGreaterThanOrEqualTo is a VeevaConnectorOperator enum value
VeevaConnectorOperatorGreaterThanOrEqualTo = "GREATER_THAN_OR_EQUAL_TO"
// VeevaConnectorOperatorEqualTo is a VeevaConnectorOperator enum value
VeevaConnectorOperatorEqualTo = "EQUAL_TO"
// VeevaConnectorOperatorNotEqualTo is a VeevaConnectorOperator enum value
VeevaConnectorOperatorNotEqualTo = "NOT_EQUAL_TO"
// VeevaConnectorOperatorAddition is a VeevaConnectorOperator enum value
VeevaConnectorOperatorAddition = "ADDITION"
// VeevaConnectorOperatorMultiplication is a VeevaConnectorOperator enum value
VeevaConnectorOperatorMultiplication = "MULTIPLICATION"
// VeevaConnectorOperatorDivision is a VeevaConnectorOperator enum value
VeevaConnectorOperatorDivision = "DIVISION"
// VeevaConnectorOperatorSubtraction is a VeevaConnectorOperator enum value
VeevaConnectorOperatorSubtraction = "SUBTRACTION"
// VeevaConnectorOperatorMaskAll is a VeevaConnectorOperator enum value
VeevaConnectorOperatorMaskAll = "MASK_ALL"
// VeevaConnectorOperatorMaskFirstN is a VeevaConnectorOperator enum value
VeevaConnectorOperatorMaskFirstN = "MASK_FIRST_N"
// VeevaConnectorOperatorMaskLastN is a VeevaConnectorOperator enum value
VeevaConnectorOperatorMaskLastN = "MASK_LAST_N"
// VeevaConnectorOperatorValidateNonNull is a VeevaConnectorOperator enum value
VeevaConnectorOperatorValidateNonNull = "VALIDATE_NON_NULL"
// VeevaConnectorOperatorValidateNonZero is a VeevaConnectorOperator enum value
VeevaConnectorOperatorValidateNonZero = "VALIDATE_NON_ZERO"
// VeevaConnectorOperatorValidateNonNegative is a VeevaConnectorOperator enum value
VeevaConnectorOperatorValidateNonNegative = "VALIDATE_NON_NEGATIVE"
// VeevaConnectorOperatorValidateNumeric is a VeevaConnectorOperator enum value
VeevaConnectorOperatorValidateNumeric = "VALIDATE_NUMERIC"
// VeevaConnectorOperatorNoOp is a VeevaConnectorOperator enum value
VeevaConnectorOperatorNoOp = "NO_OP"
)
// VeevaConnectorOperator_Values returns all elements of the VeevaConnectorOperator enum
func VeevaConnectorOperator_Values() []string {
return []string{
VeevaConnectorOperatorProjection,
VeevaConnectorOperatorLessThan,
VeevaConnectorOperatorGreaterThan,
VeevaConnectorOperatorContains,
VeevaConnectorOperatorBetween,
VeevaConnectorOperatorLessThanOrEqualTo,
VeevaConnectorOperatorGreaterThanOrEqualTo,
VeevaConnectorOperatorEqualTo,
VeevaConnectorOperatorNotEqualTo,
VeevaConnectorOperatorAddition,
VeevaConnectorOperatorMultiplication,
VeevaConnectorOperatorDivision,
VeevaConnectorOperatorSubtraction,
VeevaConnectorOperatorMaskAll,
VeevaConnectorOperatorMaskFirstN,
VeevaConnectorOperatorMaskLastN,
VeevaConnectorOperatorValidateNonNull,
VeevaConnectorOperatorValidateNonZero,
VeevaConnectorOperatorValidateNonNegative,
VeevaConnectorOperatorValidateNumeric,
VeevaConnectorOperatorNoOp,
}
}
// The possible write operations in the destination connector. When this value
// is not provided, this defaults to the INSERT operation.
const (
// WriteOperationTypeInsert is a WriteOperationType enum value
WriteOperationTypeInsert = "INSERT"
// WriteOperationTypeUpsert is a WriteOperationType enum value
WriteOperationTypeUpsert = "UPSERT"
// WriteOperationTypeUpdate is a WriteOperationType enum value
WriteOperationTypeUpdate = "UPDATE"
)
// WriteOperationType_Values returns all elements of the WriteOperationType enum
func WriteOperationType_Values() []string {
return []string{
WriteOperationTypeInsert,
WriteOperationTypeUpsert,
WriteOperationTypeUpdate,
}
}
const (
// ZendeskConnectorOperatorProjection is a ZendeskConnectorOperator enum value
ZendeskConnectorOperatorProjection = "PROJECTION"
// ZendeskConnectorOperatorGreaterThan is a ZendeskConnectorOperator enum value
ZendeskConnectorOperatorGreaterThan = "GREATER_THAN"
// ZendeskConnectorOperatorAddition is a ZendeskConnectorOperator enum value
ZendeskConnectorOperatorAddition = "ADDITION"
// ZendeskConnectorOperatorMultiplication is a ZendeskConnectorOperator enum value
ZendeskConnectorOperatorMultiplication = "MULTIPLICATION"
// ZendeskConnectorOperatorDivision is a ZendeskConnectorOperator enum value
ZendeskConnectorOperatorDivision = "DIVISION"
// ZendeskConnectorOperatorSubtraction is a ZendeskConnectorOperator enum value
ZendeskConnectorOperatorSubtraction = "SUBTRACTION"
// ZendeskConnectorOperatorMaskAll is a ZendeskConnectorOperator enum value
ZendeskConnectorOperatorMaskAll = "MASK_ALL"
// ZendeskConnectorOperatorMaskFirstN is a ZendeskConnectorOperator enum value
ZendeskConnectorOperatorMaskFirstN = "MASK_FIRST_N"
// ZendeskConnectorOperatorMaskLastN is a ZendeskConnectorOperator enum value
ZendeskConnectorOperatorMaskLastN = "MASK_LAST_N"
// ZendeskConnectorOperatorValidateNonNull is a ZendeskConnectorOperator enum value
ZendeskConnectorOperatorValidateNonNull = "VALIDATE_NON_NULL"
// ZendeskConnectorOperatorValidateNonZero is a ZendeskConnectorOperator enum value
ZendeskConnectorOperatorValidateNonZero = "VALIDATE_NON_ZERO"
// ZendeskConnectorOperatorValidateNonNegative is a ZendeskConnectorOperator enum value
ZendeskConnectorOperatorValidateNonNegative = "VALIDATE_NON_NEGATIVE"
// ZendeskConnectorOperatorValidateNumeric is a ZendeskConnectorOperator enum value
ZendeskConnectorOperatorValidateNumeric = "VALIDATE_NUMERIC"
// ZendeskConnectorOperatorNoOp is a ZendeskConnectorOperator enum value
ZendeskConnectorOperatorNoOp = "NO_OP"
)
// ZendeskConnectorOperator_Values returns all elements of the ZendeskConnectorOperator enum
func ZendeskConnectorOperator_Values() []string {
return []string{
ZendeskConnectorOperatorProjection,
ZendeskConnectorOperatorGreaterThan,
ZendeskConnectorOperatorAddition,
ZendeskConnectorOperatorMultiplication,
ZendeskConnectorOperatorDivision,
ZendeskConnectorOperatorSubtraction,
ZendeskConnectorOperatorMaskAll,
ZendeskConnectorOperatorMaskFirstN,
ZendeskConnectorOperatorMaskLastN,
ZendeskConnectorOperatorValidateNonNull,
ZendeskConnectorOperatorValidateNonZero,
ZendeskConnectorOperatorValidateNonNegative,
ZendeskConnectorOperatorValidateNumeric,
ZendeskConnectorOperatorNoOp,
}
}
| 11,482 |
session-manager-plugin | aws | Go | // Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
// Package appflow provides the client and types for making API
// requests to Amazon Appflow.
//
// Welcome to the Amazon AppFlow API reference. This guide is for developers
// who need detailed information about the Amazon AppFlow API operations, data
// types, and errors.
//
// Amazon AppFlow is a fully managed integration service that enables you to
// securely transfer data between software as a service (SaaS) applications
// like Salesforce, Marketo, Slack, and ServiceNow, and AWS services like Amazon
// S3 and Amazon Redshift.
//
// Use the following links to get started on the Amazon AppFlow API:
//
// * Actions (https://docs.aws.amazon.com/appflow/1.0/APIReference/API_Operations.html):
// An alphabetical list of all Amazon AppFlow API operations.
//
// * Data types (https://docs.aws.amazon.com/appflow/1.0/APIReference/API_Types.html):
// An alphabetical list of all Amazon AppFlow data types.
//
// * Common parameters (https://docs.aws.amazon.com/appflow/1.0/APIReference/CommonParameters.html):
// Parameters that all Query operations can use.
//
// * Common errors (https://docs.aws.amazon.com/appflow/1.0/APIReference/CommonErrors.html):
// Client and server errors that all operations can return.
//
// If you're new to Amazon AppFlow, we recommend that you review the Amazon
// AppFlow User Guide (https://docs.aws.amazon.com/appflow/latest/userguide/what-is-appflow.html).
//
// Amazon AppFlow API users can use vendor-specific mechanisms for OAuth, and
// include applicable OAuth attributes (such as auth-code and redirecturi) with
// the connector-specific ConnectorProfileProperties when creating a new connector
// profile using Amazon AppFlow API operations. For example, Salesforce users
// can refer to the Authorize Apps with OAuth (https://help.salesforce.com/articleView?id=remoteaccess_authenticate.htm)
// documentation.
//
// See https://docs.aws.amazon.com/goto/WebAPI/appflow-2020-08-23 for more information on this service.
//
// See appflow package documentation for more information.
// https://docs.aws.amazon.com/sdk-for-go/api/service/appflow/
//
// Using the Client
//
// To contact Amazon Appflow 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 Amazon Appflow client Appflow for more
// information on creating client for this service.
// https://docs.aws.amazon.com/sdk-for-go/api/service/appflow/#New
package appflow
| 60 |
session-manager-plugin | aws | Go | // Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
package appflow
import (
"github.com/aws/aws-sdk-go/private/protocol"
)
const (
// ErrCodeConflictException for service response error code
// "ConflictException".
//
// There was a conflict when processing the request (for example, a flow with
// the given name already exists within the account. Check for conflicting resource
// names and try again.
ErrCodeConflictException = "ConflictException"
// ErrCodeConnectorAuthenticationException for service response error code
// "ConnectorAuthenticationException".
//
// An error occurred when authenticating with the connector endpoint.
ErrCodeConnectorAuthenticationException = "ConnectorAuthenticationException"
// ErrCodeConnectorServerException for service response error code
// "ConnectorServerException".
//
// An error occurred when retrieving data from the connector endpoint.
ErrCodeConnectorServerException = "ConnectorServerException"
// ErrCodeInternalServerException for service response error code
// "InternalServerException".
//
// An internal service error occurred during the processing of your request.
// Try again later.
ErrCodeInternalServerException = "InternalServerException"
// ErrCodeResourceNotFoundException for service response error code
// "ResourceNotFoundException".
//
// The resource specified in the request (such as the source or destination
// connector profile) is not found.
ErrCodeResourceNotFoundException = "ResourceNotFoundException"
// ErrCodeServiceQuotaExceededException for service response error code
// "ServiceQuotaExceededException".
//
// The request would cause a service quota (such as the number of flows) to
// be exceeded.
ErrCodeServiceQuotaExceededException = "ServiceQuotaExceededException"
// ErrCodeUnsupportedOperationException for service response error code
// "UnsupportedOperationException".
//
// The requested operation is not supported for the current flow.
ErrCodeUnsupportedOperationException = "UnsupportedOperationException"
// ErrCodeValidationException for service response error code
// "ValidationException".
//
// The request has invalid or missing parameters.
ErrCodeValidationException = "ValidationException"
)
var exceptionFromCode = map[string]func(protocol.ResponseMetadata) error{
"ConflictException": newErrorConflictException,
"ConnectorAuthenticationException": newErrorConnectorAuthenticationException,
"ConnectorServerException": newErrorConnectorServerException,
"InternalServerException": newErrorInternalServerException,
"ResourceNotFoundException": newErrorResourceNotFoundException,
"ServiceQuotaExceededException": newErrorServiceQuotaExceededException,
"UnsupportedOperationException": newErrorUnsupportedOperationException,
"ValidationException": newErrorValidationException,
}
| 75 |
session-manager-plugin | aws | Go | // Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
package appflow
import (
"github.com/aws/aws-sdk-go/aws"
"github.com/aws/aws-sdk-go/aws/client"
"github.com/aws/aws-sdk-go/aws/client/metadata"
"github.com/aws/aws-sdk-go/aws/request"
"github.com/aws/aws-sdk-go/aws/signer/v4"
"github.com/aws/aws-sdk-go/private/protocol"
"github.com/aws/aws-sdk-go/private/protocol/restjson"
)
// Appflow provides the API operation methods for making requests to
// Amazon Appflow. See this package's package overview docs
// for details on the service.
//
// Appflow methods are safe to use concurrently. It is not safe to
// modify mutate any of the struct's properties though.
type Appflow struct {
*client.Client
}
// Used for custom client initialization logic
var initClient func(*client.Client)
// Used for custom request initialization logic
var initRequest func(*request.Request)
// Service information constants
const (
ServiceName = "Appflow" // Name of service.
EndpointsID = "appflow" // ID to lookup a service endpoint with.
ServiceID = "Appflow" // ServiceID is a unique identifier of a specific service.
)
// New creates a new instance of the Appflow 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 Appflow client from just a session.
// svc := appflow.New(mySession)
//
// // Create a Appflow client with additional configuration
// svc := appflow.New(mySession, aws.NewConfig().WithRegion("us-west-2"))
func New(p client.ConfigProvider, cfgs ...*aws.Config) *Appflow {
c := p.ClientConfig(EndpointsID, cfgs...)
if c.SigningNameDerived || len(c.SigningName) == 0 {
c.SigningName = "appflow"
}
return newClient(*c.Config, c.Handlers, c.PartitionID, c.Endpoint, c.SigningRegion, c.SigningName)
}
// newClient creates, initializes and returns a new service client instance.
func newClient(cfg aws.Config, handlers request.Handlers, partitionID, endpoint, signingRegion, signingName string) *Appflow {
svc := &Appflow{
Client: client.New(
cfg,
metadata.ClientInfo{
ServiceName: ServiceName,
ServiceID: ServiceID,
SigningName: signingName,
SigningRegion: signingRegion,
PartitionID: partitionID,
Endpoint: endpoint,
APIVersion: "2020-08-23",
},
handlers,
),
}
// Handlers
svc.Handlers.Sign.PushBackNamed(v4.SignRequestHandler)
svc.Handlers.Build.PushBackNamed(restjson.BuildHandler)
svc.Handlers.Unmarshal.PushBackNamed(restjson.UnmarshalHandler)
svc.Handlers.UnmarshalMeta.PushBackNamed(restjson.UnmarshalMetaHandler)
svc.Handlers.UnmarshalError.PushBackNamed(
protocol.NewUnmarshalErrorHandler(restjson.NewUnmarshalTypedError(exceptionFromCode)).NamedHandler(),
)
// Run custom client initialization if present
if initClient != nil {
initClient(svc.Client)
}
return svc
}
// newRequest creates a new request for a Appflow operation and runs any
// custom request initialization.
func (c *Appflow) newRequest(op *request.Operation, params, data interface{}) *request.Request {
req := c.NewRequest(op, params, data)
// Run custom request initialization if present
if initRequest != nil {
initRequest(req)
}
return req
}
| 105 |
session-manager-plugin | aws | Go | // Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
// Package appflowiface provides an interface to enable mocking the Amazon Appflow service client
// for testing your code.
//
// It is important to note that this interface will have breaking changes
// when the service model is updated and adds new API operations, paginators,
// and waiters.
package appflowiface
import (
"github.com/aws/aws-sdk-go/aws"
"github.com/aws/aws-sdk-go/aws/request"
"github.com/aws/aws-sdk-go/service/appflow"
)
// AppflowAPI provides an interface to enable mocking the
// appflow.Appflow service client's API operation,
// paginators, and waiters. This make unit testing your code that calls out
// to the SDK's service client's calls easier.
//
// The best way to use this interface is so the SDK's service client's calls
// can be stubbed out for unit testing your code with the SDK without needing
// to inject custom request handlers into the SDK's request pipeline.
//
// // myFunc uses an SDK service client to make a request to
// // Amazon Appflow.
// func myFunc(svc appflowiface.AppflowAPI) bool {
// // Make svc.CreateConnectorProfile request
// }
//
// func main() {
// sess := session.New()
// svc := appflow.New(sess)
//
// myFunc(svc)
// }
//
// In your _test.go file:
//
// // Define a mock struct to be used in your unit tests of myFunc.
// type mockAppflowClient struct {
// appflowiface.AppflowAPI
// }
// func (m *mockAppflowClient) CreateConnectorProfile(input *appflow.CreateConnectorProfileInput) (*appflow.CreateConnectorProfileOutput, error) {
// // mock response/functionality
// }
//
// func TestMyFunc(t *testing.T) {
// // Setup Test
// mockSvc := &mockAppflowClient{}
//
// myfunc(mockSvc)
//
// // Verify myFunc's functionality
// }
//
// It is important to note that this interface will have breaking changes
// when the service model is updated and adds new API operations, paginators,
// and waiters. Its suggested to use the pattern above for testing, or using
// tooling to generate mocks to satisfy the interfaces.
type AppflowAPI interface {
CreateConnectorProfile(*appflow.CreateConnectorProfileInput) (*appflow.CreateConnectorProfileOutput, error)
CreateConnectorProfileWithContext(aws.Context, *appflow.CreateConnectorProfileInput, ...request.Option) (*appflow.CreateConnectorProfileOutput, error)
CreateConnectorProfileRequest(*appflow.CreateConnectorProfileInput) (*request.Request, *appflow.CreateConnectorProfileOutput)
CreateFlow(*appflow.CreateFlowInput) (*appflow.CreateFlowOutput, error)
CreateFlowWithContext(aws.Context, *appflow.CreateFlowInput, ...request.Option) (*appflow.CreateFlowOutput, error)
CreateFlowRequest(*appflow.CreateFlowInput) (*request.Request, *appflow.CreateFlowOutput)
DeleteConnectorProfile(*appflow.DeleteConnectorProfileInput) (*appflow.DeleteConnectorProfileOutput, error)
DeleteConnectorProfileWithContext(aws.Context, *appflow.DeleteConnectorProfileInput, ...request.Option) (*appflow.DeleteConnectorProfileOutput, error)
DeleteConnectorProfileRequest(*appflow.DeleteConnectorProfileInput) (*request.Request, *appflow.DeleteConnectorProfileOutput)
DeleteFlow(*appflow.DeleteFlowInput) (*appflow.DeleteFlowOutput, error)
DeleteFlowWithContext(aws.Context, *appflow.DeleteFlowInput, ...request.Option) (*appflow.DeleteFlowOutput, error)
DeleteFlowRequest(*appflow.DeleteFlowInput) (*request.Request, *appflow.DeleteFlowOutput)
DescribeConnectorEntity(*appflow.DescribeConnectorEntityInput) (*appflow.DescribeConnectorEntityOutput, error)
DescribeConnectorEntityWithContext(aws.Context, *appflow.DescribeConnectorEntityInput, ...request.Option) (*appflow.DescribeConnectorEntityOutput, error)
DescribeConnectorEntityRequest(*appflow.DescribeConnectorEntityInput) (*request.Request, *appflow.DescribeConnectorEntityOutput)
DescribeConnectorProfiles(*appflow.DescribeConnectorProfilesInput) (*appflow.DescribeConnectorProfilesOutput, error)
DescribeConnectorProfilesWithContext(aws.Context, *appflow.DescribeConnectorProfilesInput, ...request.Option) (*appflow.DescribeConnectorProfilesOutput, error)
DescribeConnectorProfilesRequest(*appflow.DescribeConnectorProfilesInput) (*request.Request, *appflow.DescribeConnectorProfilesOutput)
DescribeConnectorProfilesPages(*appflow.DescribeConnectorProfilesInput, func(*appflow.DescribeConnectorProfilesOutput, bool) bool) error
DescribeConnectorProfilesPagesWithContext(aws.Context, *appflow.DescribeConnectorProfilesInput, func(*appflow.DescribeConnectorProfilesOutput, bool) bool, ...request.Option) error
DescribeConnectors(*appflow.DescribeConnectorsInput) (*appflow.DescribeConnectorsOutput, error)
DescribeConnectorsWithContext(aws.Context, *appflow.DescribeConnectorsInput, ...request.Option) (*appflow.DescribeConnectorsOutput, error)
DescribeConnectorsRequest(*appflow.DescribeConnectorsInput) (*request.Request, *appflow.DescribeConnectorsOutput)
DescribeConnectorsPages(*appflow.DescribeConnectorsInput, func(*appflow.DescribeConnectorsOutput, bool) bool) error
DescribeConnectorsPagesWithContext(aws.Context, *appflow.DescribeConnectorsInput, func(*appflow.DescribeConnectorsOutput, bool) bool, ...request.Option) error
DescribeFlow(*appflow.DescribeFlowInput) (*appflow.DescribeFlowOutput, error)
DescribeFlowWithContext(aws.Context, *appflow.DescribeFlowInput, ...request.Option) (*appflow.DescribeFlowOutput, error)
DescribeFlowRequest(*appflow.DescribeFlowInput) (*request.Request, *appflow.DescribeFlowOutput)
DescribeFlowExecutionRecords(*appflow.DescribeFlowExecutionRecordsInput) (*appflow.DescribeFlowExecutionRecordsOutput, error)
DescribeFlowExecutionRecordsWithContext(aws.Context, *appflow.DescribeFlowExecutionRecordsInput, ...request.Option) (*appflow.DescribeFlowExecutionRecordsOutput, error)
DescribeFlowExecutionRecordsRequest(*appflow.DescribeFlowExecutionRecordsInput) (*request.Request, *appflow.DescribeFlowExecutionRecordsOutput)
DescribeFlowExecutionRecordsPages(*appflow.DescribeFlowExecutionRecordsInput, func(*appflow.DescribeFlowExecutionRecordsOutput, bool) bool) error
DescribeFlowExecutionRecordsPagesWithContext(aws.Context, *appflow.DescribeFlowExecutionRecordsInput, func(*appflow.DescribeFlowExecutionRecordsOutput, bool) bool, ...request.Option) error
ListConnectorEntities(*appflow.ListConnectorEntitiesInput) (*appflow.ListConnectorEntitiesOutput, error)
ListConnectorEntitiesWithContext(aws.Context, *appflow.ListConnectorEntitiesInput, ...request.Option) (*appflow.ListConnectorEntitiesOutput, error)
ListConnectorEntitiesRequest(*appflow.ListConnectorEntitiesInput) (*request.Request, *appflow.ListConnectorEntitiesOutput)
ListFlows(*appflow.ListFlowsInput) (*appflow.ListFlowsOutput, error)
ListFlowsWithContext(aws.Context, *appflow.ListFlowsInput, ...request.Option) (*appflow.ListFlowsOutput, error)
ListFlowsRequest(*appflow.ListFlowsInput) (*request.Request, *appflow.ListFlowsOutput)
ListFlowsPages(*appflow.ListFlowsInput, func(*appflow.ListFlowsOutput, bool) bool) error
ListFlowsPagesWithContext(aws.Context, *appflow.ListFlowsInput, func(*appflow.ListFlowsOutput, bool) bool, ...request.Option) error
ListTagsForResource(*appflow.ListTagsForResourceInput) (*appflow.ListTagsForResourceOutput, error)
ListTagsForResourceWithContext(aws.Context, *appflow.ListTagsForResourceInput, ...request.Option) (*appflow.ListTagsForResourceOutput, error)
ListTagsForResourceRequest(*appflow.ListTagsForResourceInput) (*request.Request, *appflow.ListTagsForResourceOutput)
StartFlow(*appflow.StartFlowInput) (*appflow.StartFlowOutput, error)
StartFlowWithContext(aws.Context, *appflow.StartFlowInput, ...request.Option) (*appflow.StartFlowOutput, error)
StartFlowRequest(*appflow.StartFlowInput) (*request.Request, *appflow.StartFlowOutput)
StopFlow(*appflow.StopFlowInput) (*appflow.StopFlowOutput, error)
StopFlowWithContext(aws.Context, *appflow.StopFlowInput, ...request.Option) (*appflow.StopFlowOutput, error)
StopFlowRequest(*appflow.StopFlowInput) (*request.Request, *appflow.StopFlowOutput)
TagResource(*appflow.TagResourceInput) (*appflow.TagResourceOutput, error)
TagResourceWithContext(aws.Context, *appflow.TagResourceInput, ...request.Option) (*appflow.TagResourceOutput, error)
TagResourceRequest(*appflow.TagResourceInput) (*request.Request, *appflow.TagResourceOutput)
UntagResource(*appflow.UntagResourceInput) (*appflow.UntagResourceOutput, error)
UntagResourceWithContext(aws.Context, *appflow.UntagResourceInput, ...request.Option) (*appflow.UntagResourceOutput, error)
UntagResourceRequest(*appflow.UntagResourceInput) (*request.Request, *appflow.UntagResourceOutput)
UpdateConnectorProfile(*appflow.UpdateConnectorProfileInput) (*appflow.UpdateConnectorProfileOutput, error)
UpdateConnectorProfileWithContext(aws.Context, *appflow.UpdateConnectorProfileInput, ...request.Option) (*appflow.UpdateConnectorProfileOutput, error)
UpdateConnectorProfileRequest(*appflow.UpdateConnectorProfileInput) (*request.Request, *appflow.UpdateConnectorProfileOutput)
UpdateFlow(*appflow.UpdateFlowInput) (*appflow.UpdateFlowOutput, error)
UpdateFlowWithContext(aws.Context, *appflow.UpdateFlowInput, ...request.Option) (*appflow.UpdateFlowOutput, error)
UpdateFlowRequest(*appflow.UpdateFlowInput) (*request.Request, *appflow.UpdateFlowOutput)
}
var _ AppflowAPI = (*appflow.Appflow)(nil)
| 149 |
session-manager-plugin | aws | Go | // Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
package appintegrationsservice
import (
"fmt"
"github.com/aws/aws-sdk-go/aws"
"github.com/aws/aws-sdk-go/aws/awsutil"
"github.com/aws/aws-sdk-go/aws/request"
"github.com/aws/aws-sdk-go/private/protocol"
"github.com/aws/aws-sdk-go/private/protocol/restjson"
)
const opCreateEventIntegration = "CreateEventIntegration"
// CreateEventIntegrationRequest generates a "aws/request.Request" representing the
// client's request for the CreateEventIntegration 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 CreateEventIntegration for more information on using the CreateEventIntegration
// 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 CreateEventIntegrationRequest method.
// req, resp := client.CreateEventIntegrationRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/appintegrations-2020-07-29/CreateEventIntegration
func (c *AppIntegrationsService) CreateEventIntegrationRequest(input *CreateEventIntegrationInput) (req *request.Request, output *CreateEventIntegrationOutput) {
op := &request.Operation{
Name: opCreateEventIntegration,
HTTPMethod: "POST",
HTTPPath: "/eventIntegrations",
}
if input == nil {
input = &CreateEventIntegrationInput{}
}
output = &CreateEventIntegrationOutput{}
req = c.newRequest(op, input, output)
return
}
// CreateEventIntegration API operation for Amazon AppIntegrations Service.
//
// Creates an EventIntegration, given a specified name, description, and a reference
// to an Amazon EventBridge bus in your account and a partner event source that
// pushes events to that bus. No objects are created in the your account, only
// metadata that is persisted on the EventIntegration control plane.
//
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
// with awserr.Error's Code and Message methods to get detailed information about
// the error.
//
// See the AWS API reference guide for Amazon AppIntegrations Service's
// API operation CreateEventIntegration for usage and error information.
//
// Returned Error Types:
// * InternalServiceError
// Request processing failed due to an error or failure with the service.
//
// * ResourceQuotaExceededException
// The allowed quota for the resource has been exceeded.
//
// * DuplicateResourceException
// A resource with the specified name already exists.
//
// * ThrottlingException
// The throttling limit has been exceeded.
//
// * InvalidRequestException
// The request is not valid.
//
// * AccessDeniedException
// You do not have sufficient access to perform this action.
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/appintegrations-2020-07-29/CreateEventIntegration
func (c *AppIntegrationsService) CreateEventIntegration(input *CreateEventIntegrationInput) (*CreateEventIntegrationOutput, error) {
req, out := c.CreateEventIntegrationRequest(input)
return out, req.Send()
}
// CreateEventIntegrationWithContext is the same as CreateEventIntegration with the addition of
// the ability to pass a context and additional request options.
//
// See CreateEventIntegration for details on how to use this API operation.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
func (c *AppIntegrationsService) CreateEventIntegrationWithContext(ctx aws.Context, input *CreateEventIntegrationInput, opts ...request.Option) (*CreateEventIntegrationOutput, error) {
req, out := c.CreateEventIntegrationRequest(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
const opDeleteEventIntegration = "DeleteEventIntegration"
// DeleteEventIntegrationRequest generates a "aws/request.Request" representing the
// client's request for the DeleteEventIntegration 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 DeleteEventIntegration for more information on using the DeleteEventIntegration
// 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 DeleteEventIntegrationRequest method.
// req, resp := client.DeleteEventIntegrationRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/appintegrations-2020-07-29/DeleteEventIntegration
func (c *AppIntegrationsService) DeleteEventIntegrationRequest(input *DeleteEventIntegrationInput) (req *request.Request, output *DeleteEventIntegrationOutput) {
op := &request.Operation{
Name: opDeleteEventIntegration,
HTTPMethod: "DELETE",
HTTPPath: "/eventIntegrations/{Name}",
}
if input == nil {
input = &DeleteEventIntegrationInput{}
}
output = &DeleteEventIntegrationOutput{}
req = c.newRequest(op, input, output)
req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
return
}
// DeleteEventIntegration API operation for Amazon AppIntegrations Service.
//
// Deletes the specified existing event integration. If the event integration
// is associated with clients, the request is rejected.
//
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
// with awserr.Error's Code and Message methods to get detailed information about
// the error.
//
// See the AWS API reference guide for Amazon AppIntegrations Service's
// API operation DeleteEventIntegration for usage and error information.
//
// Returned Error Types:
// * InternalServiceError
// Request processing failed due to an error or failure with the service.
//
// * ThrottlingException
// The throttling limit has been exceeded.
//
// * ResourceNotFoundException
// The specified resource was not found.
//
// * InvalidRequestException
// The request is not valid.
//
// * AccessDeniedException
// You do not have sufficient access to perform this action.
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/appintegrations-2020-07-29/DeleteEventIntegration
func (c *AppIntegrationsService) DeleteEventIntegration(input *DeleteEventIntegrationInput) (*DeleteEventIntegrationOutput, error) {
req, out := c.DeleteEventIntegrationRequest(input)
return out, req.Send()
}
// DeleteEventIntegrationWithContext is the same as DeleteEventIntegration with the addition of
// the ability to pass a context and additional request options.
//
// See DeleteEventIntegration for details on how to use this API operation.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
func (c *AppIntegrationsService) DeleteEventIntegrationWithContext(ctx aws.Context, input *DeleteEventIntegrationInput, opts ...request.Option) (*DeleteEventIntegrationOutput, error) {
req, out := c.DeleteEventIntegrationRequest(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
const opGetEventIntegration = "GetEventIntegration"
// GetEventIntegrationRequest generates a "aws/request.Request" representing the
// client's request for the GetEventIntegration 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 GetEventIntegration for more information on using the GetEventIntegration
// 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 GetEventIntegrationRequest method.
// req, resp := client.GetEventIntegrationRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/appintegrations-2020-07-29/GetEventIntegration
func (c *AppIntegrationsService) GetEventIntegrationRequest(input *GetEventIntegrationInput) (req *request.Request, output *GetEventIntegrationOutput) {
op := &request.Operation{
Name: opGetEventIntegration,
HTTPMethod: "GET",
HTTPPath: "/eventIntegrations/{Name}",
}
if input == nil {
input = &GetEventIntegrationInput{}
}
output = &GetEventIntegrationOutput{}
req = c.newRequest(op, input, output)
return
}
// GetEventIntegration API operation for Amazon AppIntegrations Service.
//
// Return information about the event integration.
//
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
// with awserr.Error's Code and Message methods to get detailed information about
// the error.
//
// See the AWS API reference guide for Amazon AppIntegrations Service's
// API operation GetEventIntegration for usage and error information.
//
// Returned Error Types:
// * InternalServiceError
// Request processing failed due to an error or failure with the service.
//
// * ThrottlingException
// The throttling limit has been exceeded.
//
// * ResourceNotFoundException
// The specified resource was not found.
//
// * InvalidRequestException
// The request is not valid.
//
// * AccessDeniedException
// You do not have sufficient access to perform this action.
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/appintegrations-2020-07-29/GetEventIntegration
func (c *AppIntegrationsService) GetEventIntegration(input *GetEventIntegrationInput) (*GetEventIntegrationOutput, error) {
req, out := c.GetEventIntegrationRequest(input)
return out, req.Send()
}
// GetEventIntegrationWithContext is the same as GetEventIntegration with the addition of
// the ability to pass a context and additional request options.
//
// See GetEventIntegration for details on how to use this API operation.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
func (c *AppIntegrationsService) GetEventIntegrationWithContext(ctx aws.Context, input *GetEventIntegrationInput, opts ...request.Option) (*GetEventIntegrationOutput, error) {
req, out := c.GetEventIntegrationRequest(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
const opListEventIntegrationAssociations = "ListEventIntegrationAssociations"
// ListEventIntegrationAssociationsRequest generates a "aws/request.Request" representing the
// client's request for the ListEventIntegrationAssociations 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 ListEventIntegrationAssociations for more information on using the ListEventIntegrationAssociations
// 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 ListEventIntegrationAssociationsRequest method.
// req, resp := client.ListEventIntegrationAssociationsRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/appintegrations-2020-07-29/ListEventIntegrationAssociations
func (c *AppIntegrationsService) ListEventIntegrationAssociationsRequest(input *ListEventIntegrationAssociationsInput) (req *request.Request, output *ListEventIntegrationAssociationsOutput) {
op := &request.Operation{
Name: opListEventIntegrationAssociations,
HTTPMethod: "GET",
HTTPPath: "/eventIntegrations/{Name}/associations",
}
if input == nil {
input = &ListEventIntegrationAssociationsInput{}
}
output = &ListEventIntegrationAssociationsOutput{}
req = c.newRequest(op, input, output)
return
}
// ListEventIntegrationAssociations API operation for Amazon AppIntegrations Service.
//
// Returns a paginated list of event integration associations in the 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 Amazon AppIntegrations Service's
// API operation ListEventIntegrationAssociations for usage and error information.
//
// Returned Error Types:
// * InternalServiceError
// Request processing failed due to an error or failure with the service.
//
// * ThrottlingException
// The throttling limit has been exceeded.
//
// * ResourceNotFoundException
// The specified resource was not found.
//
// * InvalidRequestException
// The request is not valid.
//
// * AccessDeniedException
// You do not have sufficient access to perform this action.
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/appintegrations-2020-07-29/ListEventIntegrationAssociations
func (c *AppIntegrationsService) ListEventIntegrationAssociations(input *ListEventIntegrationAssociationsInput) (*ListEventIntegrationAssociationsOutput, error) {
req, out := c.ListEventIntegrationAssociationsRequest(input)
return out, req.Send()
}
// ListEventIntegrationAssociationsWithContext is the same as ListEventIntegrationAssociations with the addition of
// the ability to pass a context and additional request options.
//
// See ListEventIntegrationAssociations for details on how to use this API operation.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
func (c *AppIntegrationsService) ListEventIntegrationAssociationsWithContext(ctx aws.Context, input *ListEventIntegrationAssociationsInput, opts ...request.Option) (*ListEventIntegrationAssociationsOutput, error) {
req, out := c.ListEventIntegrationAssociationsRequest(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
const opListEventIntegrations = "ListEventIntegrations"
// ListEventIntegrationsRequest generates a "aws/request.Request" representing the
// client's request for the ListEventIntegrations 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 ListEventIntegrations for more information on using the ListEventIntegrations
// 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 ListEventIntegrationsRequest method.
// req, resp := client.ListEventIntegrationsRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/appintegrations-2020-07-29/ListEventIntegrations
func (c *AppIntegrationsService) ListEventIntegrationsRequest(input *ListEventIntegrationsInput) (req *request.Request, output *ListEventIntegrationsOutput) {
op := &request.Operation{
Name: opListEventIntegrations,
HTTPMethod: "GET",
HTTPPath: "/eventIntegrations",
}
if input == nil {
input = &ListEventIntegrationsInput{}
}
output = &ListEventIntegrationsOutput{}
req = c.newRequest(op, input, output)
return
}
// ListEventIntegrations API operation for Amazon AppIntegrations Service.
//
// Returns a paginated list of event integrations in the 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 Amazon AppIntegrations Service's
// API operation ListEventIntegrations for usage and error information.
//
// Returned Error Types:
// * InternalServiceError
// Request processing failed due to an error or failure with the service.
//
// * ThrottlingException
// The throttling limit has been exceeded.
//
// * InvalidRequestException
// The request is not valid.
//
// * AccessDeniedException
// You do not have sufficient access to perform this action.
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/appintegrations-2020-07-29/ListEventIntegrations
func (c *AppIntegrationsService) ListEventIntegrations(input *ListEventIntegrationsInput) (*ListEventIntegrationsOutput, error) {
req, out := c.ListEventIntegrationsRequest(input)
return out, req.Send()
}
// ListEventIntegrationsWithContext is the same as ListEventIntegrations with the addition of
// the ability to pass a context and additional request options.
//
// See ListEventIntegrations for details on how to use this API operation.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
func (c *AppIntegrationsService) ListEventIntegrationsWithContext(ctx aws.Context, input *ListEventIntegrationsInput, opts ...request.Option) (*ListEventIntegrationsOutput, error) {
req, out := c.ListEventIntegrationsRequest(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
const opListTagsForResource = "ListTagsForResource"
// ListTagsForResourceRequest generates a "aws/request.Request" representing the
// client's request for the ListTagsForResource operation. The "output" return
// value will be populated with the request's response once the request completes
// successfully.
//
// Use "Send" method on the returned Request to send the API call to the service.
// the "output" return value is not valid until after Send returns without error.
//
// See ListTagsForResource for more information on using the ListTagsForResource
// API call, and error handling.
//
// This method is useful when you want to inject custom logic or configuration
// into the SDK's request lifecycle. Such as custom headers, or retry logic.
//
//
// // Example sending a request using the ListTagsForResourceRequest method.
// req, resp := client.ListTagsForResourceRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/appintegrations-2020-07-29/ListTagsForResource
func (c *AppIntegrationsService) ListTagsForResourceRequest(input *ListTagsForResourceInput) (req *request.Request, output *ListTagsForResourceOutput) {
op := &request.Operation{
Name: opListTagsForResource,
HTTPMethod: "GET",
HTTPPath: "/tags/{resourceArn}",
}
if input == nil {
input = &ListTagsForResourceInput{}
}
output = &ListTagsForResourceOutput{}
req = c.newRequest(op, input, output)
return
}
// ListTagsForResource API operation for Amazon AppIntegrations Service.
//
// 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 Amazon AppIntegrations Service's
// API operation ListTagsForResource for usage and error information.
//
// Returned Error Types:
// * InvalidRequestException
// The request is not valid.
//
// * InternalServiceError
// Request processing failed due to an error or failure with the service.
//
// * ResourceNotFoundException
// The specified resource was not found.
//
// * ThrottlingException
// The throttling limit has been exceeded.
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/appintegrations-2020-07-29/ListTagsForResource
func (c *AppIntegrationsService) ListTagsForResource(input *ListTagsForResourceInput) (*ListTagsForResourceOutput, error) {
req, out := c.ListTagsForResourceRequest(input)
return out, req.Send()
}
// ListTagsForResourceWithContext is the same as ListTagsForResource with the addition of
// the ability to pass a context and additional request options.
//
// See ListTagsForResource for details on how to use this API operation.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
func (c *AppIntegrationsService) ListTagsForResourceWithContext(ctx aws.Context, input *ListTagsForResourceInput, opts ...request.Option) (*ListTagsForResourceOutput, error) {
req, out := c.ListTagsForResourceRequest(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
const opTagResource = "TagResource"
// TagResourceRequest generates a "aws/request.Request" representing the
// client's request for the TagResource operation. The "output" return
// value will be populated with the request's response once the request completes
// successfully.
//
// Use "Send" method on the returned Request to send the API call to the service.
// the "output" return value is not valid until after Send returns without error.
//
// See TagResource for more information on using the TagResource
// API call, and error handling.
//
// This method is useful when you want to inject custom logic or configuration
// into the SDK's request lifecycle. Such as custom headers, or retry logic.
//
//
// // Example sending a request using the TagResourceRequest method.
// req, resp := client.TagResourceRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/appintegrations-2020-07-29/TagResource
func (c *AppIntegrationsService) TagResourceRequest(input *TagResourceInput) (req *request.Request, output *TagResourceOutput) {
op := &request.Operation{
Name: opTagResource,
HTTPMethod: "POST",
HTTPPath: "/tags/{resourceArn}",
}
if input == nil {
input = &TagResourceInput{}
}
output = &TagResourceOutput{}
req = c.newRequest(op, input, output)
req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
return
}
// TagResource API operation for Amazon AppIntegrations Service.
//
// Adds the specified tags to the specified resource.
//
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
// with awserr.Error's Code and Message methods to get detailed information about
// the error.
//
// See the AWS API reference guide for Amazon AppIntegrations Service's
// API operation TagResource for usage and error information.
//
// Returned Error Types:
// * InvalidRequestException
// The request is not valid.
//
// * InternalServiceError
// Request processing failed due to an error or failure with the service.
//
// * ResourceNotFoundException
// The specified resource was not found.
//
// * ThrottlingException
// The throttling limit has been exceeded.
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/appintegrations-2020-07-29/TagResource
func (c *AppIntegrationsService) TagResource(input *TagResourceInput) (*TagResourceOutput, error) {
req, out := c.TagResourceRequest(input)
return out, req.Send()
}
// TagResourceWithContext is the same as TagResource with the addition of
// the ability to pass a context and additional request options.
//
// See TagResource for details on how to use this API operation.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
func (c *AppIntegrationsService) TagResourceWithContext(ctx aws.Context, input *TagResourceInput, opts ...request.Option) (*TagResourceOutput, error) {
req, out := c.TagResourceRequest(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
const opUntagResource = "UntagResource"
// UntagResourceRequest generates a "aws/request.Request" representing the
// client's request for the UntagResource operation. The "output" return
// value will be populated with the request's response once the request completes
// successfully.
//
// Use "Send" method on the returned Request to send the API call to the service.
// the "output" return value is not valid until after Send returns without error.
//
// See UntagResource for more information on using the UntagResource
// API call, and error handling.
//
// This method is useful when you want to inject custom logic or configuration
// into the SDK's request lifecycle. Such as custom headers, or retry logic.
//
//
// // Example sending a request using the UntagResourceRequest method.
// req, resp := client.UntagResourceRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/appintegrations-2020-07-29/UntagResource
func (c *AppIntegrationsService) UntagResourceRequest(input *UntagResourceInput) (req *request.Request, output *UntagResourceOutput) {
op := &request.Operation{
Name: opUntagResource,
HTTPMethod: "DELETE",
HTTPPath: "/tags/{resourceArn}",
}
if input == nil {
input = &UntagResourceInput{}
}
output = &UntagResourceOutput{}
req = c.newRequest(op, input, output)
req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
return
}
// UntagResource API operation for Amazon AppIntegrations Service.
//
// Removes the specified tags from the specified resource.
//
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
// with awserr.Error's Code and Message methods to get detailed information about
// the error.
//
// See the AWS API reference guide for Amazon AppIntegrations Service's
// API operation UntagResource for usage and error information.
//
// Returned Error Types:
// * InvalidRequestException
// The request is not valid.
//
// * InternalServiceError
// Request processing failed due to an error or failure with the service.
//
// * ResourceNotFoundException
// The specified resource was not found.
//
// * ThrottlingException
// The throttling limit has been exceeded.
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/appintegrations-2020-07-29/UntagResource
func (c *AppIntegrationsService) UntagResource(input *UntagResourceInput) (*UntagResourceOutput, error) {
req, out := c.UntagResourceRequest(input)
return out, req.Send()
}
// UntagResourceWithContext is the same as UntagResource with the addition of
// the ability to pass a context and additional request options.
//
// See UntagResource for details on how to use this API operation.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
func (c *AppIntegrationsService) UntagResourceWithContext(ctx aws.Context, input *UntagResourceInput, opts ...request.Option) (*UntagResourceOutput, error) {
req, out := c.UntagResourceRequest(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
const opUpdateEventIntegration = "UpdateEventIntegration"
// UpdateEventIntegrationRequest generates a "aws/request.Request" representing the
// client's request for the UpdateEventIntegration 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 UpdateEventIntegration for more information on using the UpdateEventIntegration
// 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 UpdateEventIntegrationRequest method.
// req, resp := client.UpdateEventIntegrationRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/appintegrations-2020-07-29/UpdateEventIntegration
func (c *AppIntegrationsService) UpdateEventIntegrationRequest(input *UpdateEventIntegrationInput) (req *request.Request, output *UpdateEventIntegrationOutput) {
op := &request.Operation{
Name: opUpdateEventIntegration,
HTTPMethod: "PATCH",
HTTPPath: "/eventIntegrations/{Name}",
}
if input == nil {
input = &UpdateEventIntegrationInput{}
}
output = &UpdateEventIntegrationOutput{}
req = c.newRequest(op, input, output)
req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
return
}
// UpdateEventIntegration API operation for Amazon AppIntegrations Service.
//
// Updates the description of an event integration.
//
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
// with awserr.Error's Code and Message methods to get detailed information about
// the error.
//
// See the AWS API reference guide for Amazon AppIntegrations Service's
// API operation UpdateEventIntegration for usage and error information.
//
// Returned Error Types:
// * InternalServiceError
// Request processing failed due to an error or failure with the service.
//
// * ThrottlingException
// The throttling limit has been exceeded.
//
// * ResourceNotFoundException
// The specified resource was not found.
//
// * InvalidRequestException
// The request is not valid.
//
// * AccessDeniedException
// You do not have sufficient access to perform this action.
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/appintegrations-2020-07-29/UpdateEventIntegration
func (c *AppIntegrationsService) UpdateEventIntegration(input *UpdateEventIntegrationInput) (*UpdateEventIntegrationOutput, error) {
req, out := c.UpdateEventIntegrationRequest(input)
return out, req.Send()
}
// UpdateEventIntegrationWithContext is the same as UpdateEventIntegration with the addition of
// the ability to pass a context and additional request options.
//
// See UpdateEventIntegration for details on how to use this API operation.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
func (c *AppIntegrationsService) UpdateEventIntegrationWithContext(ctx aws.Context, input *UpdateEventIntegrationInput, opts ...request.Option) (*UpdateEventIntegrationOutput, error) {
req, out := c.UpdateEventIntegrationRequest(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
// You do not have sufficient access to perform this action.
type AccessDeniedException struct {
_ struct{} `type:"structure"`
RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"Message" type:"string"`
}
// String returns the string representation
func (s AccessDeniedException) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s AccessDeniedException) GoString() string {
return s.String()
}
func newErrorAccessDeniedException(v protocol.ResponseMetadata) error {
return &AccessDeniedException{
RespMetadata: v,
}
}
// Code returns the exception type name.
func (s *AccessDeniedException) Code() string {
return "AccessDeniedException"
}
// Message returns the exception's message.
func (s *AccessDeniedException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
return ""
}
// OrigErr always returns nil, satisfies awserr.Error interface.
func (s *AccessDeniedException) OrigErr() error {
return nil
}
func (s *AccessDeniedException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
func (s *AccessDeniedException) StatusCode() int {
return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
func (s *AccessDeniedException) RequestID() string {
return s.RespMetadata.RequestID
}
type CreateEventIntegrationInput struct {
_ struct{} `type:"structure"`
// A unique, case-sensitive identifier that you provide to ensure the idempotency
// of the request.
ClientToken *string `min:"1" type:"string" idempotencyToken:"true"`
// The description of the event integration.
Description *string `min:"1" type:"string"`
// The EventBridge bus.
//
// EventBridgeBus is a required field
EventBridgeBus *string `min:"1" type:"string" required:"true"`
// The event filter.
//
// EventFilter is a required field
EventFilter *EventFilter `type:"structure" required:"true"`
// The name of the event integration.
//
// Name is a required field
Name *string `min:"1" type:"string" required:"true"`
// One or more tags.
Tags map[string]*string `min:"1" type:"map"`
}
// String returns the string representation
func (s CreateEventIntegrationInput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s CreateEventIntegrationInput) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
func (s *CreateEventIntegrationInput) Validate() error {
invalidParams := request.ErrInvalidParams{Context: "CreateEventIntegrationInput"}
if s.ClientToken != nil && len(*s.ClientToken) < 1 {
invalidParams.Add(request.NewErrParamMinLen("ClientToken", 1))
}
if s.Description != nil && len(*s.Description) < 1 {
invalidParams.Add(request.NewErrParamMinLen("Description", 1))
}
if s.EventBridgeBus == nil {
invalidParams.Add(request.NewErrParamRequired("EventBridgeBus"))
}
if s.EventBridgeBus != nil && len(*s.EventBridgeBus) < 1 {
invalidParams.Add(request.NewErrParamMinLen("EventBridgeBus", 1))
}
if s.EventFilter == nil {
invalidParams.Add(request.NewErrParamRequired("EventFilter"))
}
if s.Name == nil {
invalidParams.Add(request.NewErrParamRequired("Name"))
}
if s.Name != nil && len(*s.Name) < 1 {
invalidParams.Add(request.NewErrParamMinLen("Name", 1))
}
if s.Tags != nil && len(s.Tags) < 1 {
invalidParams.Add(request.NewErrParamMinLen("Tags", 1))
}
if s.EventFilter != nil {
if err := s.EventFilter.Validate(); err != nil {
invalidParams.AddNested("EventFilter", err.(request.ErrInvalidParams))
}
}
if invalidParams.Len() > 0 {
return invalidParams
}
return nil
}
// SetClientToken sets the ClientToken field's value.
func (s *CreateEventIntegrationInput) SetClientToken(v string) *CreateEventIntegrationInput {
s.ClientToken = &v
return s
}
// SetDescription sets the Description field's value.
func (s *CreateEventIntegrationInput) SetDescription(v string) *CreateEventIntegrationInput {
s.Description = &v
return s
}
// SetEventBridgeBus sets the EventBridgeBus field's value.
func (s *CreateEventIntegrationInput) SetEventBridgeBus(v string) *CreateEventIntegrationInput {
s.EventBridgeBus = &v
return s
}
// SetEventFilter sets the EventFilter field's value.
func (s *CreateEventIntegrationInput) SetEventFilter(v *EventFilter) *CreateEventIntegrationInput {
s.EventFilter = v
return s
}
// SetName sets the Name field's value.
func (s *CreateEventIntegrationInput) SetName(v string) *CreateEventIntegrationInput {
s.Name = &v
return s
}
// SetTags sets the Tags field's value.
func (s *CreateEventIntegrationInput) SetTags(v map[string]*string) *CreateEventIntegrationInput {
s.Tags = v
return s
}
type CreateEventIntegrationOutput struct {
_ struct{} `type:"structure"`
// The Amazon Resource Name (ARN) of the event integration.
EventIntegrationArn *string `min:"1" type:"string"`
}
// String returns the string representation
func (s CreateEventIntegrationOutput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s CreateEventIntegrationOutput) GoString() string {
return s.String()
}
// SetEventIntegrationArn sets the EventIntegrationArn field's value.
func (s *CreateEventIntegrationOutput) SetEventIntegrationArn(v string) *CreateEventIntegrationOutput {
s.EventIntegrationArn = &v
return s
}
type DeleteEventIntegrationInput struct {
_ struct{} `type:"structure"`
// The name of the event integration.
//
// Name is a required field
Name *string `location:"uri" locationName:"Name" min:"1" type:"string" required:"true"`
}
// String returns the string representation
func (s DeleteEventIntegrationInput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s DeleteEventIntegrationInput) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
func (s *DeleteEventIntegrationInput) Validate() error {
invalidParams := request.ErrInvalidParams{Context: "DeleteEventIntegrationInput"}
if s.Name == nil {
invalidParams.Add(request.NewErrParamRequired("Name"))
}
if s.Name != nil && len(*s.Name) < 1 {
invalidParams.Add(request.NewErrParamMinLen("Name", 1))
}
if invalidParams.Len() > 0 {
return invalidParams
}
return nil
}
// SetName sets the Name field's value.
func (s *DeleteEventIntegrationInput) SetName(v string) *DeleteEventIntegrationInput {
s.Name = &v
return s
}
type DeleteEventIntegrationOutput struct {
_ struct{} `type:"structure"`
}
// String returns the string representation
func (s DeleteEventIntegrationOutput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s DeleteEventIntegrationOutput) GoString() string {
return s.String()
}
// A resource with the specified name already exists.
type DuplicateResourceException struct {
_ struct{} `type:"structure"`
RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"Message" type:"string"`
}
// String returns the string representation
func (s DuplicateResourceException) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s DuplicateResourceException) GoString() string {
return s.String()
}
func newErrorDuplicateResourceException(v protocol.ResponseMetadata) error {
return &DuplicateResourceException{
RespMetadata: v,
}
}
// Code returns the exception type name.
func (s *DuplicateResourceException) Code() string {
return "DuplicateResourceException"
}
// Message returns the exception's message.
func (s *DuplicateResourceException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
return ""
}
// OrigErr always returns nil, satisfies awserr.Error interface.
func (s *DuplicateResourceException) OrigErr() error {
return nil
}
func (s *DuplicateResourceException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
func (s *DuplicateResourceException) StatusCode() int {
return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
func (s *DuplicateResourceException) RequestID() string {
return s.RespMetadata.RequestID
}
// The event filter.
type EventFilter struct {
_ struct{} `type:"structure"`
// The source of the events.
//
// Source is a required field
Source *string `min:"1" type:"string" required:"true"`
}
// String returns the string representation
func (s EventFilter) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s EventFilter) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
func (s *EventFilter) Validate() error {
invalidParams := request.ErrInvalidParams{Context: "EventFilter"}
if s.Source == nil {
invalidParams.Add(request.NewErrParamRequired("Source"))
}
if s.Source != nil && len(*s.Source) < 1 {
invalidParams.Add(request.NewErrParamMinLen("Source", 1))
}
if invalidParams.Len() > 0 {
return invalidParams
}
return nil
}
// SetSource sets the Source field's value.
func (s *EventFilter) SetSource(v string) *EventFilter {
s.Source = &v
return s
}
// The event integration.
type EventIntegration struct {
_ struct{} `type:"structure"`
// The event integration description.
Description *string `min:"1" type:"string"`
// The Amazon EventBridge bus for the event integration.
EventBridgeBus *string `min:"1" type:"string"`
// The event integration filter.
EventFilter *EventFilter `type:"structure"`
// The Amazon Resource Name (ARN) of the event integration.
EventIntegrationArn *string `min:"1" type:"string"`
// The name of the event integration.
Name *string `min:"1" type:"string"`
// The tags.
Tags map[string]*string `min:"1" type:"map"`
}
// String returns the string representation
func (s EventIntegration) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s EventIntegration) GoString() string {
return s.String()
}
// SetDescription sets the Description field's value.
func (s *EventIntegration) SetDescription(v string) *EventIntegration {
s.Description = &v
return s
}
// SetEventBridgeBus sets the EventBridgeBus field's value.
func (s *EventIntegration) SetEventBridgeBus(v string) *EventIntegration {
s.EventBridgeBus = &v
return s
}
// SetEventFilter sets the EventFilter field's value.
func (s *EventIntegration) SetEventFilter(v *EventFilter) *EventIntegration {
s.EventFilter = v
return s
}
// SetEventIntegrationArn sets the EventIntegrationArn field's value.
func (s *EventIntegration) SetEventIntegrationArn(v string) *EventIntegration {
s.EventIntegrationArn = &v
return s
}
// SetName sets the Name field's value.
func (s *EventIntegration) SetName(v string) *EventIntegration {
s.Name = &v
return s
}
// SetTags sets the Tags field's value.
func (s *EventIntegration) SetTags(v map[string]*string) *EventIntegration {
s.Tags = v
return s
}
// The event integration association.
type EventIntegrationAssociation struct {
_ struct{} `type:"structure"`
// The metadata associated with the client.
ClientAssociationMetadata map[string]*string `type:"map"`
// The identifier for the client that is associated with the event integration.
ClientId *string `min:"1" type:"string"`
// The name of the EventBridge rule.
EventBridgeRuleName *string `min:"1" type:"string"`
// The Amazon Resource Name (ARN) for the event integration association.
EventIntegrationAssociationArn *string `min:"1" type:"string"`
// The identifier for the event integration association.
EventIntegrationAssociationId *string `type:"string"`
// The name of the event integration.
EventIntegrationName *string `min:"1" type:"string"`
}
// String returns the string representation
func (s EventIntegrationAssociation) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s EventIntegrationAssociation) GoString() string {
return s.String()
}
// SetClientAssociationMetadata sets the ClientAssociationMetadata field's value.
func (s *EventIntegrationAssociation) SetClientAssociationMetadata(v map[string]*string) *EventIntegrationAssociation {
s.ClientAssociationMetadata = v
return s
}
// SetClientId sets the ClientId field's value.
func (s *EventIntegrationAssociation) SetClientId(v string) *EventIntegrationAssociation {
s.ClientId = &v
return s
}
// SetEventBridgeRuleName sets the EventBridgeRuleName field's value.
func (s *EventIntegrationAssociation) SetEventBridgeRuleName(v string) *EventIntegrationAssociation {
s.EventBridgeRuleName = &v
return s
}
// SetEventIntegrationAssociationArn sets the EventIntegrationAssociationArn field's value.
func (s *EventIntegrationAssociation) SetEventIntegrationAssociationArn(v string) *EventIntegrationAssociation {
s.EventIntegrationAssociationArn = &v
return s
}
// SetEventIntegrationAssociationId sets the EventIntegrationAssociationId field's value.
func (s *EventIntegrationAssociation) SetEventIntegrationAssociationId(v string) *EventIntegrationAssociation {
s.EventIntegrationAssociationId = &v
return s
}
// SetEventIntegrationName sets the EventIntegrationName field's value.
func (s *EventIntegrationAssociation) SetEventIntegrationName(v string) *EventIntegrationAssociation {
s.EventIntegrationName = &v
return s
}
type GetEventIntegrationInput struct {
_ struct{} `type:"structure"`
// The name of the event integration.
//
// Name is a required field
Name *string `location:"uri" locationName:"Name" min:"1" type:"string" required:"true"`
}
// String returns the string representation
func (s GetEventIntegrationInput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s GetEventIntegrationInput) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
func (s *GetEventIntegrationInput) Validate() error {
invalidParams := request.ErrInvalidParams{Context: "GetEventIntegrationInput"}
if s.Name == nil {
invalidParams.Add(request.NewErrParamRequired("Name"))
}
if s.Name != nil && len(*s.Name) < 1 {
invalidParams.Add(request.NewErrParamMinLen("Name", 1))
}
if invalidParams.Len() > 0 {
return invalidParams
}
return nil
}
// SetName sets the Name field's value.
func (s *GetEventIntegrationInput) SetName(v string) *GetEventIntegrationInput {
s.Name = &v
return s
}
type GetEventIntegrationOutput struct {
_ struct{} `type:"structure"`
// The description of the event integration.
Description *string `min:"1" type:"string"`
// The EventBridge bus.
EventBridgeBus *string `min:"1" type:"string"`
// The event filter.
EventFilter *EventFilter `type:"structure"`
// The Amazon Resource Name (ARN) for the event integration.
EventIntegrationArn *string `min:"1" type:"string"`
// The name of the event integration.
Name *string `min:"1" type:"string"`
// One or more tags.
Tags map[string]*string `min:"1" type:"map"`
}
// String returns the string representation
func (s GetEventIntegrationOutput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s GetEventIntegrationOutput) GoString() string {
return s.String()
}
// SetDescription sets the Description field's value.
func (s *GetEventIntegrationOutput) SetDescription(v string) *GetEventIntegrationOutput {
s.Description = &v
return s
}
// SetEventBridgeBus sets the EventBridgeBus field's value.
func (s *GetEventIntegrationOutput) SetEventBridgeBus(v string) *GetEventIntegrationOutput {
s.EventBridgeBus = &v
return s
}
// SetEventFilter sets the EventFilter field's value.
func (s *GetEventIntegrationOutput) SetEventFilter(v *EventFilter) *GetEventIntegrationOutput {
s.EventFilter = v
return s
}
// SetEventIntegrationArn sets the EventIntegrationArn field's value.
func (s *GetEventIntegrationOutput) SetEventIntegrationArn(v string) *GetEventIntegrationOutput {
s.EventIntegrationArn = &v
return s
}
// SetName sets the Name field's value.
func (s *GetEventIntegrationOutput) SetName(v string) *GetEventIntegrationOutput {
s.Name = &v
return s
}
// SetTags sets the Tags field's value.
func (s *GetEventIntegrationOutput) SetTags(v map[string]*string) *GetEventIntegrationOutput {
s.Tags = v
return s
}
// Request processing failed due to an error or failure with the service.
type InternalServiceError struct {
_ struct{} `type:"structure"`
RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"Message" type:"string"`
}
// String returns the string representation
func (s InternalServiceError) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s InternalServiceError) GoString() string {
return s.String()
}
func newErrorInternalServiceError(v protocol.ResponseMetadata) error {
return &InternalServiceError{
RespMetadata: v,
}
}
// Code returns the exception type name.
func (s *InternalServiceError) Code() string {
return "InternalServiceError"
}
// Message returns the exception's message.
func (s *InternalServiceError) Message() string {
if s.Message_ != nil {
return *s.Message_
}
return ""
}
// OrigErr always returns nil, satisfies awserr.Error interface.
func (s *InternalServiceError) OrigErr() error {
return nil
}
func (s *InternalServiceError) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
func (s *InternalServiceError) StatusCode() int {
return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
func (s *InternalServiceError) RequestID() string {
return s.RespMetadata.RequestID
}
// The request is not valid.
type InvalidRequestException struct {
_ struct{} `type:"structure"`
RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"Message" type:"string"`
}
// String returns the string representation
func (s InvalidRequestException) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s InvalidRequestException) GoString() string {
return s.String()
}
func newErrorInvalidRequestException(v protocol.ResponseMetadata) error {
return &InvalidRequestException{
RespMetadata: v,
}
}
// Code returns the exception type name.
func (s *InvalidRequestException) Code() string {
return "InvalidRequestException"
}
// Message returns the exception's message.
func (s *InvalidRequestException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
return ""
}
// OrigErr always returns nil, satisfies awserr.Error interface.
func (s *InvalidRequestException) OrigErr() error {
return nil
}
func (s *InvalidRequestException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
func (s *InvalidRequestException) StatusCode() int {
return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
func (s *InvalidRequestException) RequestID() string {
return s.RespMetadata.RequestID
}
type ListEventIntegrationAssociationsInput struct {
_ struct{} `type:"structure"`
// The name of the event integration.
//
// EventIntegrationName is a required field
EventIntegrationName *string `location:"uri" locationName:"Name" min:"1" type:"string" required:"true"`
// The maximum number of results to return per page.
MaxResults *int64 `location:"querystring" locationName:"maxResults" min:"1" type:"integer"`
// The token for the next set of results. Use the value returned in the previous
// response in the next request to retrieve the next set of results.
NextToken *string `location:"querystring" locationName:"nextToken" min:"1" type:"string"`
}
// String returns the string representation
func (s ListEventIntegrationAssociationsInput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s ListEventIntegrationAssociationsInput) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
func (s *ListEventIntegrationAssociationsInput) Validate() error {
invalidParams := request.ErrInvalidParams{Context: "ListEventIntegrationAssociationsInput"}
if s.EventIntegrationName == nil {
invalidParams.Add(request.NewErrParamRequired("EventIntegrationName"))
}
if s.EventIntegrationName != nil && len(*s.EventIntegrationName) < 1 {
invalidParams.Add(request.NewErrParamMinLen("EventIntegrationName", 1))
}
if s.MaxResults != nil && *s.MaxResults < 1 {
invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1))
}
if s.NextToken != nil && len(*s.NextToken) < 1 {
invalidParams.Add(request.NewErrParamMinLen("NextToken", 1))
}
if invalidParams.Len() > 0 {
return invalidParams
}
return nil
}
// SetEventIntegrationName sets the EventIntegrationName field's value.
func (s *ListEventIntegrationAssociationsInput) SetEventIntegrationName(v string) *ListEventIntegrationAssociationsInput {
s.EventIntegrationName = &v
return s
}
// SetMaxResults sets the MaxResults field's value.
func (s *ListEventIntegrationAssociationsInput) SetMaxResults(v int64) *ListEventIntegrationAssociationsInput {
s.MaxResults = &v
return s
}
// SetNextToken sets the NextToken field's value.
func (s *ListEventIntegrationAssociationsInput) SetNextToken(v string) *ListEventIntegrationAssociationsInput {
s.NextToken = &v
return s
}
type ListEventIntegrationAssociationsOutput struct {
_ struct{} `type:"structure"`
// The event integration associations.
EventIntegrationAssociations []*EventIntegrationAssociation `min:"1" type:"list"`
// If there are additional results, this is the token for the next set of results.
NextToken *string `min:"1" type:"string"`
}
// String returns the string representation
func (s ListEventIntegrationAssociationsOutput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s ListEventIntegrationAssociationsOutput) GoString() string {
return s.String()
}
// SetEventIntegrationAssociations sets the EventIntegrationAssociations field's value.
func (s *ListEventIntegrationAssociationsOutput) SetEventIntegrationAssociations(v []*EventIntegrationAssociation) *ListEventIntegrationAssociationsOutput {
s.EventIntegrationAssociations = v
return s
}
// SetNextToken sets the NextToken field's value.
func (s *ListEventIntegrationAssociationsOutput) SetNextToken(v string) *ListEventIntegrationAssociationsOutput {
s.NextToken = &v
return s
}
type ListEventIntegrationsInput struct {
_ struct{} `type:"structure"`
// The maximum number of results to return per page.
MaxResults *int64 `location:"querystring" locationName:"maxResults" min:"1" type:"integer"`
// The token for the next set of results. Use the value returned in the previous
// response in the next request to retrieve the next set of results.
NextToken *string `location:"querystring" locationName:"nextToken" min:"1" type:"string"`
}
// String returns the string representation
func (s ListEventIntegrationsInput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s ListEventIntegrationsInput) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
func (s *ListEventIntegrationsInput) Validate() error {
invalidParams := request.ErrInvalidParams{Context: "ListEventIntegrationsInput"}
if s.MaxResults != nil && *s.MaxResults < 1 {
invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1))
}
if s.NextToken != nil && len(*s.NextToken) < 1 {
invalidParams.Add(request.NewErrParamMinLen("NextToken", 1))
}
if invalidParams.Len() > 0 {
return invalidParams
}
return nil
}
// SetMaxResults sets the MaxResults field's value.
func (s *ListEventIntegrationsInput) SetMaxResults(v int64) *ListEventIntegrationsInput {
s.MaxResults = &v
return s
}
// SetNextToken sets the NextToken field's value.
func (s *ListEventIntegrationsInput) SetNextToken(v string) *ListEventIntegrationsInput {
s.NextToken = &v
return s
}
type ListEventIntegrationsOutput struct {
_ struct{} `type:"structure"`
// The event integrations.
EventIntegrations []*EventIntegration `min:"1" type:"list"`
// If there are additional results, this is the token for the next set of results.
NextToken *string `min:"1" type:"string"`
}
// String returns the string representation
func (s ListEventIntegrationsOutput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s ListEventIntegrationsOutput) GoString() string {
return s.String()
}
// SetEventIntegrations sets the EventIntegrations field's value.
func (s *ListEventIntegrationsOutput) SetEventIntegrations(v []*EventIntegration) *ListEventIntegrationsOutput {
s.EventIntegrations = v
return s
}
// SetNextToken sets the NextToken field's value.
func (s *ListEventIntegrationsOutput) SetNextToken(v string) *ListEventIntegrationsOutput {
s.NextToken = &v
return s
}
type ListTagsForResourceInput struct {
_ struct{} `type:"structure"`
// The Amazon Resource Name (ARN) of the resource.
//
// ResourceArn is a required field
ResourceArn *string `location:"uri" locationName:"resourceArn" min:"1" type:"string" required:"true"`
}
// String returns the string representation
func (s ListTagsForResourceInput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s ListTagsForResourceInput) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
func (s *ListTagsForResourceInput) Validate() error {
invalidParams := request.ErrInvalidParams{Context: "ListTagsForResourceInput"}
if s.ResourceArn == nil {
invalidParams.Add(request.NewErrParamRequired("ResourceArn"))
}
if s.ResourceArn != nil && len(*s.ResourceArn) < 1 {
invalidParams.Add(request.NewErrParamMinLen("ResourceArn", 1))
}
if invalidParams.Len() > 0 {
return invalidParams
}
return nil
}
// SetResourceArn sets the ResourceArn field's value.
func (s *ListTagsForResourceInput) SetResourceArn(v string) *ListTagsForResourceInput {
s.ResourceArn = &v
return s
}
type ListTagsForResourceOutput struct {
_ struct{} `type:"structure"`
// Information about the tags.
Tags map[string]*string `locationName:"tags" min:"1" type:"map"`
}
// String returns the string representation
func (s ListTagsForResourceOutput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s ListTagsForResourceOutput) GoString() string {
return s.String()
}
// SetTags sets the Tags field's value.
func (s *ListTagsForResourceOutput) SetTags(v map[string]*string) *ListTagsForResourceOutput {
s.Tags = v
return s
}
// The specified resource was not found.
type ResourceNotFoundException struct {
_ struct{} `type:"structure"`
RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"Message" type:"string"`
}
// String returns the string representation
func (s ResourceNotFoundException) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s ResourceNotFoundException) GoString() string {
return s.String()
}
func newErrorResourceNotFoundException(v protocol.ResponseMetadata) error {
return &ResourceNotFoundException{
RespMetadata: v,
}
}
// Code returns the exception type name.
func (s *ResourceNotFoundException) Code() string {
return "ResourceNotFoundException"
}
// Message returns the exception's message.
func (s *ResourceNotFoundException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
return ""
}
// OrigErr always returns nil, satisfies awserr.Error interface.
func (s *ResourceNotFoundException) OrigErr() error {
return nil
}
func (s *ResourceNotFoundException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
func (s *ResourceNotFoundException) StatusCode() int {
return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
func (s *ResourceNotFoundException) RequestID() string {
return s.RespMetadata.RequestID
}
// The allowed quota for the resource has been exceeded.
type ResourceQuotaExceededException struct {
_ struct{} `type:"structure"`
RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"Message" type:"string"`
}
// String returns the string representation
func (s ResourceQuotaExceededException) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s ResourceQuotaExceededException) GoString() string {
return s.String()
}
func newErrorResourceQuotaExceededException(v protocol.ResponseMetadata) error {
return &ResourceQuotaExceededException{
RespMetadata: v,
}
}
// Code returns the exception type name.
func (s *ResourceQuotaExceededException) Code() string {
return "ResourceQuotaExceededException"
}
// Message returns the exception's message.
func (s *ResourceQuotaExceededException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
return ""
}
// OrigErr always returns nil, satisfies awserr.Error interface.
func (s *ResourceQuotaExceededException) OrigErr() error {
return nil
}
func (s *ResourceQuotaExceededException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
func (s *ResourceQuotaExceededException) StatusCode() int {
return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
func (s *ResourceQuotaExceededException) RequestID() string {
return s.RespMetadata.RequestID
}
type TagResourceInput struct {
_ struct{} `type:"structure"`
// The Amazon Resource Name (ARN) of the resource.
//
// ResourceArn is a required field
ResourceArn *string `location:"uri" locationName:"resourceArn" min:"1" type:"string" required:"true"`
// One or more tags.
//
// Tags is a required field
Tags map[string]*string `locationName:"tags" min:"1" type:"map" required:"true"`
}
// String returns the string representation
func (s TagResourceInput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s TagResourceInput) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
func (s *TagResourceInput) Validate() error {
invalidParams := request.ErrInvalidParams{Context: "TagResourceInput"}
if s.ResourceArn == nil {
invalidParams.Add(request.NewErrParamRequired("ResourceArn"))
}
if s.ResourceArn != nil && len(*s.ResourceArn) < 1 {
invalidParams.Add(request.NewErrParamMinLen("ResourceArn", 1))
}
if s.Tags == nil {
invalidParams.Add(request.NewErrParamRequired("Tags"))
}
if s.Tags != nil && len(s.Tags) < 1 {
invalidParams.Add(request.NewErrParamMinLen("Tags", 1))
}
if invalidParams.Len() > 0 {
return invalidParams
}
return nil
}
// SetResourceArn sets the ResourceArn field's value.
func (s *TagResourceInput) SetResourceArn(v string) *TagResourceInput {
s.ResourceArn = &v
return s
}
// SetTags sets the Tags field's value.
func (s *TagResourceInput) SetTags(v map[string]*string) *TagResourceInput {
s.Tags = v
return s
}
type TagResourceOutput struct {
_ struct{} `type:"structure"`
}
// String returns the string representation
func (s TagResourceOutput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s TagResourceOutput) GoString() string {
return s.String()
}
// The throttling limit has been exceeded.
type ThrottlingException struct {
_ struct{} `type:"structure"`
RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"Message" type:"string"`
}
// String returns the string representation
func (s ThrottlingException) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s ThrottlingException) GoString() string {
return s.String()
}
func newErrorThrottlingException(v protocol.ResponseMetadata) error {
return &ThrottlingException{
RespMetadata: v,
}
}
// Code returns the exception type name.
func (s *ThrottlingException) Code() string {
return "ThrottlingException"
}
// Message returns the exception's message.
func (s *ThrottlingException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
return ""
}
// OrigErr always returns nil, satisfies awserr.Error interface.
func (s *ThrottlingException) OrigErr() error {
return nil
}
func (s *ThrottlingException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
func (s *ThrottlingException) StatusCode() int {
return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
func (s *ThrottlingException) RequestID() string {
return s.RespMetadata.RequestID
}
type UntagResourceInput struct {
_ struct{} `type:"structure"`
// The Amazon Resource Name (ARN) of the resource.
//
// ResourceArn is a required field
ResourceArn *string `location:"uri" locationName:"resourceArn" min:"1" type:"string" required:"true"`
// The tag keys.
//
// TagKeys is a required field
TagKeys []*string `location:"querystring" locationName:"tagKeys" min:"1" type:"list" required:"true"`
}
// String returns the string representation
func (s UntagResourceInput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s UntagResourceInput) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
func (s *UntagResourceInput) Validate() error {
invalidParams := request.ErrInvalidParams{Context: "UntagResourceInput"}
if s.ResourceArn == nil {
invalidParams.Add(request.NewErrParamRequired("ResourceArn"))
}
if s.ResourceArn != nil && len(*s.ResourceArn) < 1 {
invalidParams.Add(request.NewErrParamMinLen("ResourceArn", 1))
}
if s.TagKeys == nil {
invalidParams.Add(request.NewErrParamRequired("TagKeys"))
}
if s.TagKeys != nil && len(s.TagKeys) < 1 {
invalidParams.Add(request.NewErrParamMinLen("TagKeys", 1))
}
if invalidParams.Len() > 0 {
return invalidParams
}
return nil
}
// SetResourceArn sets the ResourceArn field's value.
func (s *UntagResourceInput) SetResourceArn(v string) *UntagResourceInput {
s.ResourceArn = &v
return s
}
// SetTagKeys sets the TagKeys field's value.
func (s *UntagResourceInput) SetTagKeys(v []*string) *UntagResourceInput {
s.TagKeys = v
return s
}
type UntagResourceOutput struct {
_ struct{} `type:"structure"`
}
// String returns the string representation
func (s UntagResourceOutput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s UntagResourceOutput) GoString() string {
return s.String()
}
type UpdateEventIntegrationInput struct {
_ struct{} `type:"structure"`
// The description of the event inegration.
Description *string `min:"1" type:"string"`
// The name of the event integration.
//
// Name is a required field
Name *string `location:"uri" locationName:"Name" min:"1" type:"string" required:"true"`
}
// String returns the string representation
func (s UpdateEventIntegrationInput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s UpdateEventIntegrationInput) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
func (s *UpdateEventIntegrationInput) Validate() error {
invalidParams := request.ErrInvalidParams{Context: "UpdateEventIntegrationInput"}
if s.Description != nil && len(*s.Description) < 1 {
invalidParams.Add(request.NewErrParamMinLen("Description", 1))
}
if s.Name == nil {
invalidParams.Add(request.NewErrParamRequired("Name"))
}
if s.Name != nil && len(*s.Name) < 1 {
invalidParams.Add(request.NewErrParamMinLen("Name", 1))
}
if invalidParams.Len() > 0 {
return invalidParams
}
return nil
}
// SetDescription sets the Description field's value.
func (s *UpdateEventIntegrationInput) SetDescription(v string) *UpdateEventIntegrationInput {
s.Description = &v
return s
}
// SetName sets the Name field's value.
func (s *UpdateEventIntegrationInput) SetName(v string) *UpdateEventIntegrationInput {
s.Name = &v
return s
}
type UpdateEventIntegrationOutput struct {
_ struct{} `type:"structure"`
}
// String returns the string representation
func (s UpdateEventIntegrationOutput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s UpdateEventIntegrationOutput) GoString() string {
return s.String()
}
| 2,159 |
session-manager-plugin | aws | Go | // Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
// Package appintegrationsservice provides the client and types for making API
// requests to Amazon AppIntegrations Service.
//
// The Amazon AppIntegrations service enables you to configure and reuse connections
// to external applications.
//
// For information about how you can use external applications with Amazon Connect,
// see Set up pre-built integrations (https://docs.aws.amazon.com/connect/latest/adminguide/crm.html)
// in the Amazon Connect Administrator Guide.
//
// See https://docs.aws.amazon.com/goto/WebAPI/appintegrations-2020-07-29 for more information on this service.
//
// See appintegrationsservice package documentation for more information.
// https://docs.aws.amazon.com/sdk-for-go/api/service/appintegrationsservice/
//
// Using the Client
//
// To contact Amazon AppIntegrations Service 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 Amazon AppIntegrations Service client AppIntegrationsService for more
// information on creating client for this service.
// https://docs.aws.amazon.com/sdk-for-go/api/service/appintegrationsservice/#New
package appintegrationsservice
| 34 |
session-manager-plugin | aws | Go | // Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
package appintegrationsservice
import (
"github.com/aws/aws-sdk-go/private/protocol"
)
const (
// ErrCodeAccessDeniedException for service response error code
// "AccessDeniedException".
//
// You do not have sufficient access to perform this action.
ErrCodeAccessDeniedException = "AccessDeniedException"
// ErrCodeDuplicateResourceException for service response error code
// "DuplicateResourceException".
//
// A resource with the specified name already exists.
ErrCodeDuplicateResourceException = "DuplicateResourceException"
// ErrCodeInternalServiceError for service response error code
// "InternalServiceError".
//
// Request processing failed due to an error or failure with the service.
ErrCodeInternalServiceError = "InternalServiceError"
// ErrCodeInvalidRequestException for service response error code
// "InvalidRequestException".
//
// The request is not valid.
ErrCodeInvalidRequestException = "InvalidRequestException"
// ErrCodeResourceNotFoundException for service response error code
// "ResourceNotFoundException".
//
// The specified resource was not found.
ErrCodeResourceNotFoundException = "ResourceNotFoundException"
// ErrCodeResourceQuotaExceededException for service response error code
// "ResourceQuotaExceededException".
//
// The allowed quota for the resource has been exceeded.
ErrCodeResourceQuotaExceededException = "ResourceQuotaExceededException"
// ErrCodeThrottlingException for service response error code
// "ThrottlingException".
//
// The throttling limit has been exceeded.
ErrCodeThrottlingException = "ThrottlingException"
)
var exceptionFromCode = map[string]func(protocol.ResponseMetadata) error{
"AccessDeniedException": newErrorAccessDeniedException,
"DuplicateResourceException": newErrorDuplicateResourceException,
"InternalServiceError": newErrorInternalServiceError,
"InvalidRequestException": newErrorInvalidRequestException,
"ResourceNotFoundException": newErrorResourceNotFoundException,
"ResourceQuotaExceededException": newErrorResourceQuotaExceededException,
"ThrottlingException": newErrorThrottlingException,
}
| 63 |
session-manager-plugin | aws | Go | // Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
package appintegrationsservice
import (
"github.com/aws/aws-sdk-go/aws"
"github.com/aws/aws-sdk-go/aws/client"
"github.com/aws/aws-sdk-go/aws/client/metadata"
"github.com/aws/aws-sdk-go/aws/request"
"github.com/aws/aws-sdk-go/aws/signer/v4"
"github.com/aws/aws-sdk-go/private/protocol"
"github.com/aws/aws-sdk-go/private/protocol/restjson"
)
// AppIntegrationsService provides the API operation methods for making requests to
// Amazon AppIntegrations Service. See this package's package overview docs
// for details on the service.
//
// AppIntegrationsService methods are safe to use concurrently. It is not safe to
// modify mutate any of the struct's properties though.
type AppIntegrationsService struct {
*client.Client
}
// Used for custom client initialization logic
var initClient func(*client.Client)
// Used for custom request initialization logic
var initRequest func(*request.Request)
// Service information constants
const (
ServiceName = "AppIntegrations" // Name of service.
EndpointsID = "app-integrations" // ID to lookup a service endpoint with.
ServiceID = "AppIntegrations" // ServiceID is a unique identifier of a specific service.
)
// New creates a new instance of the AppIntegrationsService 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 AppIntegrationsService client from just a session.
// svc := appintegrationsservice.New(mySession)
//
// // Create a AppIntegrationsService client with additional configuration
// svc := appintegrationsservice.New(mySession, aws.NewConfig().WithRegion("us-west-2"))
func New(p client.ConfigProvider, cfgs ...*aws.Config) *AppIntegrationsService {
c := p.ClientConfig(EndpointsID, cfgs...)
if c.SigningNameDerived || len(c.SigningName) == 0 {
c.SigningName = "app-integrations"
}
return newClient(*c.Config, c.Handlers, c.PartitionID, c.Endpoint, c.SigningRegion, c.SigningName)
}
// newClient creates, initializes and returns a new service client instance.
func newClient(cfg aws.Config, handlers request.Handlers, partitionID, endpoint, signingRegion, signingName string) *AppIntegrationsService {
svc := &AppIntegrationsService{
Client: client.New(
cfg,
metadata.ClientInfo{
ServiceName: ServiceName,
ServiceID: ServiceID,
SigningName: signingName,
SigningRegion: signingRegion,
PartitionID: partitionID,
Endpoint: endpoint,
APIVersion: "2020-07-29",
},
handlers,
),
}
// Handlers
svc.Handlers.Sign.PushBackNamed(v4.SignRequestHandler)
svc.Handlers.Build.PushBackNamed(restjson.BuildHandler)
svc.Handlers.Unmarshal.PushBackNamed(restjson.UnmarshalHandler)
svc.Handlers.UnmarshalMeta.PushBackNamed(restjson.UnmarshalMetaHandler)
svc.Handlers.UnmarshalError.PushBackNamed(
protocol.NewUnmarshalErrorHandler(restjson.NewUnmarshalTypedError(exceptionFromCode)).NamedHandler(),
)
// Run custom client initialization if present
if initClient != nil {
initClient(svc.Client)
}
return svc
}
// newRequest creates a new request for a AppIntegrationsService operation and runs any
// custom request initialization.
func (c *AppIntegrationsService) newRequest(op *request.Operation, params, data interface{}) *request.Request {
req := c.NewRequest(op, params, data)
// Run custom request initialization if present
if initRequest != nil {
initRequest(req)
}
return req
}
| 105 |
session-manager-plugin | aws | Go | // Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
// Package appintegrationsserviceiface provides an interface to enable mocking the Amazon AppIntegrations Service service client
// for testing your code.
//
// It is important to note that this interface will have breaking changes
// when the service model is updated and adds new API operations, paginators,
// and waiters.
package appintegrationsserviceiface
import (
"github.com/aws/aws-sdk-go/aws"
"github.com/aws/aws-sdk-go/aws/request"
"github.com/aws/aws-sdk-go/service/appintegrationsservice"
)
// AppIntegrationsServiceAPI provides an interface to enable mocking the
// appintegrationsservice.AppIntegrationsService service client's API operation,
// paginators, and waiters. This make unit testing your code that calls out
// to the SDK's service client's calls easier.
//
// The best way to use this interface is so the SDK's service client's calls
// can be stubbed out for unit testing your code with the SDK without needing
// to inject custom request handlers into the SDK's request pipeline.
//
// // myFunc uses an SDK service client to make a request to
// // Amazon AppIntegrations Service.
// func myFunc(svc appintegrationsserviceiface.AppIntegrationsServiceAPI) bool {
// // Make svc.CreateEventIntegration request
// }
//
// func main() {
// sess := session.New()
// svc := appintegrationsservice.New(sess)
//
// myFunc(svc)
// }
//
// In your _test.go file:
//
// // Define a mock struct to be used in your unit tests of myFunc.
// type mockAppIntegrationsServiceClient struct {
// appintegrationsserviceiface.AppIntegrationsServiceAPI
// }
// func (m *mockAppIntegrationsServiceClient) CreateEventIntegration(input *appintegrationsservice.CreateEventIntegrationInput) (*appintegrationsservice.CreateEventIntegrationOutput, error) {
// // mock response/functionality
// }
//
// func TestMyFunc(t *testing.T) {
// // Setup Test
// mockSvc := &mockAppIntegrationsServiceClient{}
//
// myfunc(mockSvc)
//
// // Verify myFunc's functionality
// }
//
// It is important to note that this interface will have breaking changes
// when the service model is updated and adds new API operations, paginators,
// and waiters. Its suggested to use the pattern above for testing, or using
// tooling to generate mocks to satisfy the interfaces.
type AppIntegrationsServiceAPI interface {
CreateEventIntegration(*appintegrationsservice.CreateEventIntegrationInput) (*appintegrationsservice.CreateEventIntegrationOutput, error)
CreateEventIntegrationWithContext(aws.Context, *appintegrationsservice.CreateEventIntegrationInput, ...request.Option) (*appintegrationsservice.CreateEventIntegrationOutput, error)
CreateEventIntegrationRequest(*appintegrationsservice.CreateEventIntegrationInput) (*request.Request, *appintegrationsservice.CreateEventIntegrationOutput)
DeleteEventIntegration(*appintegrationsservice.DeleteEventIntegrationInput) (*appintegrationsservice.DeleteEventIntegrationOutput, error)
DeleteEventIntegrationWithContext(aws.Context, *appintegrationsservice.DeleteEventIntegrationInput, ...request.Option) (*appintegrationsservice.DeleteEventIntegrationOutput, error)
DeleteEventIntegrationRequest(*appintegrationsservice.DeleteEventIntegrationInput) (*request.Request, *appintegrationsservice.DeleteEventIntegrationOutput)
GetEventIntegration(*appintegrationsservice.GetEventIntegrationInput) (*appintegrationsservice.GetEventIntegrationOutput, error)
GetEventIntegrationWithContext(aws.Context, *appintegrationsservice.GetEventIntegrationInput, ...request.Option) (*appintegrationsservice.GetEventIntegrationOutput, error)
GetEventIntegrationRequest(*appintegrationsservice.GetEventIntegrationInput) (*request.Request, *appintegrationsservice.GetEventIntegrationOutput)
ListEventIntegrationAssociations(*appintegrationsservice.ListEventIntegrationAssociationsInput) (*appintegrationsservice.ListEventIntegrationAssociationsOutput, error)
ListEventIntegrationAssociationsWithContext(aws.Context, *appintegrationsservice.ListEventIntegrationAssociationsInput, ...request.Option) (*appintegrationsservice.ListEventIntegrationAssociationsOutput, error)
ListEventIntegrationAssociationsRequest(*appintegrationsservice.ListEventIntegrationAssociationsInput) (*request.Request, *appintegrationsservice.ListEventIntegrationAssociationsOutput)
ListEventIntegrations(*appintegrationsservice.ListEventIntegrationsInput) (*appintegrationsservice.ListEventIntegrationsOutput, error)
ListEventIntegrationsWithContext(aws.Context, *appintegrationsservice.ListEventIntegrationsInput, ...request.Option) (*appintegrationsservice.ListEventIntegrationsOutput, error)
ListEventIntegrationsRequest(*appintegrationsservice.ListEventIntegrationsInput) (*request.Request, *appintegrationsservice.ListEventIntegrationsOutput)
ListTagsForResource(*appintegrationsservice.ListTagsForResourceInput) (*appintegrationsservice.ListTagsForResourceOutput, error)
ListTagsForResourceWithContext(aws.Context, *appintegrationsservice.ListTagsForResourceInput, ...request.Option) (*appintegrationsservice.ListTagsForResourceOutput, error)
ListTagsForResourceRequest(*appintegrationsservice.ListTagsForResourceInput) (*request.Request, *appintegrationsservice.ListTagsForResourceOutput)
TagResource(*appintegrationsservice.TagResourceInput) (*appintegrationsservice.TagResourceOutput, error)
TagResourceWithContext(aws.Context, *appintegrationsservice.TagResourceInput, ...request.Option) (*appintegrationsservice.TagResourceOutput, error)
TagResourceRequest(*appintegrationsservice.TagResourceInput) (*request.Request, *appintegrationsservice.TagResourceOutput)
UntagResource(*appintegrationsservice.UntagResourceInput) (*appintegrationsservice.UntagResourceOutput, error)
UntagResourceWithContext(aws.Context, *appintegrationsservice.UntagResourceInput, ...request.Option) (*appintegrationsservice.UntagResourceOutput, error)
UntagResourceRequest(*appintegrationsservice.UntagResourceInput) (*request.Request, *appintegrationsservice.UntagResourceOutput)
UpdateEventIntegration(*appintegrationsservice.UpdateEventIntegrationInput) (*appintegrationsservice.UpdateEventIntegrationOutput, error)
UpdateEventIntegrationWithContext(aws.Context, *appintegrationsservice.UpdateEventIntegrationInput, ...request.Option) (*appintegrationsservice.UpdateEventIntegrationOutput, error)
UpdateEventIntegrationRequest(*appintegrationsservice.UpdateEventIntegrationInput) (*request.Request, *appintegrationsservice.UpdateEventIntegrationOutput)
}
var _ AppIntegrationsServiceAPI = (*appintegrationsservice.AppIntegrationsService)(nil)
| 101 |
session-manager-plugin | aws | Go | // Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
package applicationautoscaling
import (
"fmt"
"time"
"github.com/aws/aws-sdk-go/aws"
"github.com/aws/aws-sdk-go/aws/awsutil"
"github.com/aws/aws-sdk-go/aws/request"
"github.com/aws/aws-sdk-go/private/protocol"
"github.com/aws/aws-sdk-go/private/protocol/jsonrpc"
)
const opDeleteScalingPolicy = "DeleteScalingPolicy"
// DeleteScalingPolicyRequest generates a "aws/request.Request" representing the
// client's request for the DeleteScalingPolicy 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 DeleteScalingPolicy for more information on using the DeleteScalingPolicy
// 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 DeleteScalingPolicyRequest method.
// req, resp := client.DeleteScalingPolicyRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/application-autoscaling-2016-02-06/DeleteScalingPolicy
func (c *ApplicationAutoScaling) DeleteScalingPolicyRequest(input *DeleteScalingPolicyInput) (req *request.Request, output *DeleteScalingPolicyOutput) {
op := &request.Operation{
Name: opDeleteScalingPolicy,
HTTPMethod: "POST",
HTTPPath: "/",
}
if input == nil {
input = &DeleteScalingPolicyInput{}
}
output = &DeleteScalingPolicyOutput{}
req = c.newRequest(op, input, output)
req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
return
}
// DeleteScalingPolicy API operation for Application Auto Scaling.
//
// Deletes the specified scaling policy for an Application Auto Scaling scalable
// target.
//
// Deleting a step scaling policy deletes the underlying alarm action, but does
// not delete the CloudWatch alarm associated with the scaling policy, even
// if it no longer has an associated action.
//
// For more information, see Delete a step scaling policy (https://docs.aws.amazon.com/autoscaling/application/userguide/application-auto-scaling-step-scaling-policies.html#delete-step-scaling-policy)
// and Delete a target tracking scaling policy (https://docs.aws.amazon.com/autoscaling/application/userguide/application-auto-scaling-target-tracking.html#delete-target-tracking-policy)
// in the Application Auto Scaling User Guide.
//
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
// with awserr.Error's Code and Message methods to get detailed information about
// the error.
//
// See the AWS API reference guide for Application Auto Scaling's
// API operation DeleteScalingPolicy for usage and error information.
//
// Returned Error Types:
// * ValidationException
// An exception was thrown for a validation issue. Review the available parameters
// for the API request.
//
// * ObjectNotFoundException
// The specified object could not be found. For any operation that depends on
// the existence of a scalable target, this exception is thrown if the scalable
// target with the specified service namespace, resource ID, and scalable dimension
// does not exist. For any operation that deletes or deregisters a resource,
// this exception is thrown if the resource cannot be found.
//
// * ConcurrentUpdateException
// Concurrent updates caused an exception, for example, if you request an update
// to an Application Auto Scaling resource that already has a pending update.
//
// * InternalServiceException
// The service encountered an internal error.
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/application-autoscaling-2016-02-06/DeleteScalingPolicy
func (c *ApplicationAutoScaling) DeleteScalingPolicy(input *DeleteScalingPolicyInput) (*DeleteScalingPolicyOutput, error) {
req, out := c.DeleteScalingPolicyRequest(input)
return out, req.Send()
}
// DeleteScalingPolicyWithContext is the same as DeleteScalingPolicy with the addition of
// the ability to pass a context and additional request options.
//
// See DeleteScalingPolicy for details on how to use this API operation.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
func (c *ApplicationAutoScaling) DeleteScalingPolicyWithContext(ctx aws.Context, input *DeleteScalingPolicyInput, opts ...request.Option) (*DeleteScalingPolicyOutput, error) {
req, out := c.DeleteScalingPolicyRequest(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
const opDeleteScheduledAction = "DeleteScheduledAction"
// DeleteScheduledActionRequest generates a "aws/request.Request" representing the
// client's request for the DeleteScheduledAction 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 DeleteScheduledAction for more information on using the DeleteScheduledAction
// 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 DeleteScheduledActionRequest method.
// req, resp := client.DeleteScheduledActionRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/application-autoscaling-2016-02-06/DeleteScheduledAction
func (c *ApplicationAutoScaling) DeleteScheduledActionRequest(input *DeleteScheduledActionInput) (req *request.Request, output *DeleteScheduledActionOutput) {
op := &request.Operation{
Name: opDeleteScheduledAction,
HTTPMethod: "POST",
HTTPPath: "/",
}
if input == nil {
input = &DeleteScheduledActionInput{}
}
output = &DeleteScheduledActionOutput{}
req = c.newRequest(op, input, output)
req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
return
}
// DeleteScheduledAction API operation for Application Auto Scaling.
//
// Deletes the specified scheduled action for an Application Auto Scaling scalable
// target.
//
// For more information, see Delete a scheduled action (https://docs.aws.amazon.com/autoscaling/application/userguide/scheduled-scaling-additional-cli-commands.html#delete-scheduled-action)
// in the Application Auto Scaling User Guide.
//
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
// with awserr.Error's Code and Message methods to get detailed information about
// the error.
//
// See the AWS API reference guide for Application Auto Scaling's
// API operation DeleteScheduledAction for usage and error information.
//
// Returned Error Types:
// * ValidationException
// An exception was thrown for a validation issue. Review the available parameters
// for the API request.
//
// * ObjectNotFoundException
// The specified object could not be found. For any operation that depends on
// the existence of a scalable target, this exception is thrown if the scalable
// target with the specified service namespace, resource ID, and scalable dimension
// does not exist. For any operation that deletes or deregisters a resource,
// this exception is thrown if the resource cannot be found.
//
// * ConcurrentUpdateException
// Concurrent updates caused an exception, for example, if you request an update
// to an Application Auto Scaling resource that already has a pending update.
//
// * InternalServiceException
// The service encountered an internal error.
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/application-autoscaling-2016-02-06/DeleteScheduledAction
func (c *ApplicationAutoScaling) DeleteScheduledAction(input *DeleteScheduledActionInput) (*DeleteScheduledActionOutput, error) {
req, out := c.DeleteScheduledActionRequest(input)
return out, req.Send()
}
// DeleteScheduledActionWithContext is the same as DeleteScheduledAction with the addition of
// the ability to pass a context and additional request options.
//
// See DeleteScheduledAction for details on how to use this API operation.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
func (c *ApplicationAutoScaling) DeleteScheduledActionWithContext(ctx aws.Context, input *DeleteScheduledActionInput, opts ...request.Option) (*DeleteScheduledActionOutput, error) {
req, out := c.DeleteScheduledActionRequest(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
const opDeregisterScalableTarget = "DeregisterScalableTarget"
// DeregisterScalableTargetRequest generates a "aws/request.Request" representing the
// client's request for the DeregisterScalableTarget 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 DeregisterScalableTarget for more information on using the DeregisterScalableTarget
// 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 DeregisterScalableTargetRequest method.
// req, resp := client.DeregisterScalableTargetRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/application-autoscaling-2016-02-06/DeregisterScalableTarget
func (c *ApplicationAutoScaling) DeregisterScalableTargetRequest(input *DeregisterScalableTargetInput) (req *request.Request, output *DeregisterScalableTargetOutput) {
op := &request.Operation{
Name: opDeregisterScalableTarget,
HTTPMethod: "POST",
HTTPPath: "/",
}
if input == nil {
input = &DeregisterScalableTargetInput{}
}
output = &DeregisterScalableTargetOutput{}
req = c.newRequest(op, input, output)
req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
return
}
// DeregisterScalableTarget API operation for Application Auto Scaling.
//
// Deregisters an Application Auto Scaling scalable target when you have finished
// using it. To see which resources have been registered, use DescribeScalableTargets
// (https://docs.aws.amazon.com/autoscaling/application/APIReference/API_DescribeScalableTargets.html).
//
// Deregistering a scalable target deletes the scaling policies and the scheduled
// actions that are associated with it.
//
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
// with awserr.Error's Code and Message methods to get detailed information about
// the error.
//
// See the AWS API reference guide for Application Auto Scaling's
// API operation DeregisterScalableTarget for usage and error information.
//
// Returned Error Types:
// * ValidationException
// An exception was thrown for a validation issue. Review the available parameters
// for the API request.
//
// * ObjectNotFoundException
// The specified object could not be found. For any operation that depends on
// the existence of a scalable target, this exception is thrown if the scalable
// target with the specified service namespace, resource ID, and scalable dimension
// does not exist. For any operation that deletes or deregisters a resource,
// this exception is thrown if the resource cannot be found.
//
// * ConcurrentUpdateException
// Concurrent updates caused an exception, for example, if you request an update
// to an Application Auto Scaling resource that already has a pending update.
//
// * InternalServiceException
// The service encountered an internal error.
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/application-autoscaling-2016-02-06/DeregisterScalableTarget
func (c *ApplicationAutoScaling) DeregisterScalableTarget(input *DeregisterScalableTargetInput) (*DeregisterScalableTargetOutput, error) {
req, out := c.DeregisterScalableTargetRequest(input)
return out, req.Send()
}
// DeregisterScalableTargetWithContext is the same as DeregisterScalableTarget with the addition of
// the ability to pass a context and additional request options.
//
// See DeregisterScalableTarget for details on how to use this API operation.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
func (c *ApplicationAutoScaling) DeregisterScalableTargetWithContext(ctx aws.Context, input *DeregisterScalableTargetInput, opts ...request.Option) (*DeregisterScalableTargetOutput, error) {
req, out := c.DeregisterScalableTargetRequest(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
const opDescribeScalableTargets = "DescribeScalableTargets"
// DescribeScalableTargetsRequest generates a "aws/request.Request" representing the
// client's request for the DescribeScalableTargets 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 DescribeScalableTargets for more information on using the DescribeScalableTargets
// 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 DescribeScalableTargetsRequest method.
// req, resp := client.DescribeScalableTargetsRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/application-autoscaling-2016-02-06/DescribeScalableTargets
func (c *ApplicationAutoScaling) DescribeScalableTargetsRequest(input *DescribeScalableTargetsInput) (req *request.Request, output *DescribeScalableTargetsOutput) {
op := &request.Operation{
Name: opDescribeScalableTargets,
HTTPMethod: "POST",
HTTPPath: "/",
Paginator: &request.Paginator{
InputTokens: []string{"NextToken"},
OutputTokens: []string{"NextToken"},
LimitToken: "MaxResults",
TruncationToken: "",
},
}
if input == nil {
input = &DescribeScalableTargetsInput{}
}
output = &DescribeScalableTargetsOutput{}
req = c.newRequest(op, input, output)
return
}
// DescribeScalableTargets API operation for Application Auto Scaling.
//
// Gets information about the scalable targets in the specified namespace.
//
// You can filter the results using ResourceIds and ScalableDimension.
//
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
// with awserr.Error's Code and Message methods to get detailed information about
// the error.
//
// See the AWS API reference guide for Application Auto Scaling's
// API operation DescribeScalableTargets for usage and error information.
//
// Returned Error Types:
// * ValidationException
// An exception was thrown for a validation issue. Review the available parameters
// for the API request.
//
// * InvalidNextTokenException
// The next token supplied was invalid.
//
// * ConcurrentUpdateException
// Concurrent updates caused an exception, for example, if you request an update
// to an Application Auto Scaling resource that already has a pending update.
//
// * InternalServiceException
// The service encountered an internal error.
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/application-autoscaling-2016-02-06/DescribeScalableTargets
func (c *ApplicationAutoScaling) DescribeScalableTargets(input *DescribeScalableTargetsInput) (*DescribeScalableTargetsOutput, error) {
req, out := c.DescribeScalableTargetsRequest(input)
return out, req.Send()
}
// DescribeScalableTargetsWithContext is the same as DescribeScalableTargets with the addition of
// the ability to pass a context and additional request options.
//
// See DescribeScalableTargets for details on how to use this API operation.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
func (c *ApplicationAutoScaling) DescribeScalableTargetsWithContext(ctx aws.Context, input *DescribeScalableTargetsInput, opts ...request.Option) (*DescribeScalableTargetsOutput, error) {
req, out := c.DescribeScalableTargetsRequest(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
// DescribeScalableTargetsPages iterates over the pages of a DescribeScalableTargets operation,
// calling the "fn" function with the response data for each page. To stop
// iterating, return false from the fn function.
//
// See DescribeScalableTargets 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 DescribeScalableTargets operation.
// pageNum := 0
// err := client.DescribeScalableTargetsPages(params,
// func(page *applicationautoscaling.DescribeScalableTargetsOutput, lastPage bool) bool {
// pageNum++
// fmt.Println(page)
// return pageNum <= 3
// })
//
func (c *ApplicationAutoScaling) DescribeScalableTargetsPages(input *DescribeScalableTargetsInput, fn func(*DescribeScalableTargetsOutput, bool) bool) error {
return c.DescribeScalableTargetsPagesWithContext(aws.BackgroundContext(), input, fn)
}
// DescribeScalableTargetsPagesWithContext same as DescribeScalableTargetsPages except
// it takes a Context and allows setting request options on the pages.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
func (c *ApplicationAutoScaling) DescribeScalableTargetsPagesWithContext(ctx aws.Context, input *DescribeScalableTargetsInput, fn func(*DescribeScalableTargetsOutput, bool) bool, opts ...request.Option) error {
p := request.Pagination{
NewRequest: func() (*request.Request, error) {
var inCpy *DescribeScalableTargetsInput
if input != nil {
tmp := *input
inCpy = &tmp
}
req, _ := c.DescribeScalableTargetsRequest(inCpy)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return req, nil
},
}
for p.Next() {
if !fn(p.Page().(*DescribeScalableTargetsOutput), !p.HasNextPage()) {
break
}
}
return p.Err()
}
const opDescribeScalingActivities = "DescribeScalingActivities"
// DescribeScalingActivitiesRequest generates a "aws/request.Request" representing the
// client's request for the DescribeScalingActivities 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 DescribeScalingActivities for more information on using the DescribeScalingActivities
// 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 DescribeScalingActivitiesRequest method.
// req, resp := client.DescribeScalingActivitiesRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/application-autoscaling-2016-02-06/DescribeScalingActivities
func (c *ApplicationAutoScaling) DescribeScalingActivitiesRequest(input *DescribeScalingActivitiesInput) (req *request.Request, output *DescribeScalingActivitiesOutput) {
op := &request.Operation{
Name: opDescribeScalingActivities,
HTTPMethod: "POST",
HTTPPath: "/",
Paginator: &request.Paginator{
InputTokens: []string{"NextToken"},
OutputTokens: []string{"NextToken"},
LimitToken: "MaxResults",
TruncationToken: "",
},
}
if input == nil {
input = &DescribeScalingActivitiesInput{}
}
output = &DescribeScalingActivitiesOutput{}
req = c.newRequest(op, input, output)
return
}
// DescribeScalingActivities API operation for Application Auto Scaling.
//
// Provides descriptive information about the scaling activities in the specified
// namespace from the previous six weeks.
//
// You can filter the results using ResourceId and ScalableDimension.
//
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
// with awserr.Error's Code and Message methods to get detailed information about
// the error.
//
// See the AWS API reference guide for Application Auto Scaling's
// API operation DescribeScalingActivities for usage and error information.
//
// Returned Error Types:
// * ValidationException
// An exception was thrown for a validation issue. Review the available parameters
// for the API request.
//
// * InvalidNextTokenException
// The next token supplied was invalid.
//
// * ConcurrentUpdateException
// Concurrent updates caused an exception, for example, if you request an update
// to an Application Auto Scaling resource that already has a pending update.
//
// * InternalServiceException
// The service encountered an internal error.
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/application-autoscaling-2016-02-06/DescribeScalingActivities
func (c *ApplicationAutoScaling) DescribeScalingActivities(input *DescribeScalingActivitiesInput) (*DescribeScalingActivitiesOutput, error) {
req, out := c.DescribeScalingActivitiesRequest(input)
return out, req.Send()
}
// DescribeScalingActivitiesWithContext is the same as DescribeScalingActivities with the addition of
// the ability to pass a context and additional request options.
//
// See DescribeScalingActivities for details on how to use this API operation.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
func (c *ApplicationAutoScaling) DescribeScalingActivitiesWithContext(ctx aws.Context, input *DescribeScalingActivitiesInput, opts ...request.Option) (*DescribeScalingActivitiesOutput, error) {
req, out := c.DescribeScalingActivitiesRequest(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
// DescribeScalingActivitiesPages iterates over the pages of a DescribeScalingActivities operation,
// calling the "fn" function with the response data for each page. To stop
// iterating, return false from the fn function.
//
// See DescribeScalingActivities 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 DescribeScalingActivities operation.
// pageNum := 0
// err := client.DescribeScalingActivitiesPages(params,
// func(page *applicationautoscaling.DescribeScalingActivitiesOutput, lastPage bool) bool {
// pageNum++
// fmt.Println(page)
// return pageNum <= 3
// })
//
func (c *ApplicationAutoScaling) DescribeScalingActivitiesPages(input *DescribeScalingActivitiesInput, fn func(*DescribeScalingActivitiesOutput, bool) bool) error {
return c.DescribeScalingActivitiesPagesWithContext(aws.BackgroundContext(), input, fn)
}
// DescribeScalingActivitiesPagesWithContext same as DescribeScalingActivitiesPages except
// it takes a Context and allows setting request options on the pages.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
func (c *ApplicationAutoScaling) DescribeScalingActivitiesPagesWithContext(ctx aws.Context, input *DescribeScalingActivitiesInput, fn func(*DescribeScalingActivitiesOutput, bool) bool, opts ...request.Option) error {
p := request.Pagination{
NewRequest: func() (*request.Request, error) {
var inCpy *DescribeScalingActivitiesInput
if input != nil {
tmp := *input
inCpy = &tmp
}
req, _ := c.DescribeScalingActivitiesRequest(inCpy)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return req, nil
},
}
for p.Next() {
if !fn(p.Page().(*DescribeScalingActivitiesOutput), !p.HasNextPage()) {
break
}
}
return p.Err()
}
const opDescribeScalingPolicies = "DescribeScalingPolicies"
// DescribeScalingPoliciesRequest generates a "aws/request.Request" representing the
// client's request for the DescribeScalingPolicies 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 DescribeScalingPolicies for more information on using the DescribeScalingPolicies
// 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 DescribeScalingPoliciesRequest method.
// req, resp := client.DescribeScalingPoliciesRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/application-autoscaling-2016-02-06/DescribeScalingPolicies
func (c *ApplicationAutoScaling) DescribeScalingPoliciesRequest(input *DescribeScalingPoliciesInput) (req *request.Request, output *DescribeScalingPoliciesOutput) {
op := &request.Operation{
Name: opDescribeScalingPolicies,
HTTPMethod: "POST",
HTTPPath: "/",
Paginator: &request.Paginator{
InputTokens: []string{"NextToken"},
OutputTokens: []string{"NextToken"},
LimitToken: "MaxResults",
TruncationToken: "",
},
}
if input == nil {
input = &DescribeScalingPoliciesInput{}
}
output = &DescribeScalingPoliciesOutput{}
req = c.newRequest(op, input, output)
return
}
// DescribeScalingPolicies API operation for Application Auto Scaling.
//
// Describes the Application Auto Scaling scaling policies for the specified
// service namespace.
//
// You can filter the results using ResourceId, ScalableDimension, and PolicyNames.
//
// For more information, see Target tracking scaling policies (https://docs.aws.amazon.com/autoscaling/application/userguide/application-auto-scaling-target-tracking.html)
// and Step scaling policies (https://docs.aws.amazon.com/autoscaling/application/userguide/application-auto-scaling-step-scaling-policies.html)
// in the Application Auto Scaling User Guide.
//
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
// with awserr.Error's Code and Message methods to get detailed information about
// the error.
//
// See the AWS API reference guide for Application Auto Scaling's
// API operation DescribeScalingPolicies for usage and error information.
//
// Returned Error Types:
// * ValidationException
// An exception was thrown for a validation issue. Review the available parameters
// for the API request.
//
// * FailedResourceAccessException
// Failed access to resources caused an exception. This exception is thrown
// when Application Auto Scaling is unable to retrieve the alarms associated
// with a scaling policy due to a client error, for example, if the role ARN
// specified for a scalable target does not have permission to call the CloudWatch
// DescribeAlarms (https://docs.aws.amazon.com/AmazonCloudWatch/latest/APIReference/API_DescribeAlarms.html)
// on your behalf.
//
// * InvalidNextTokenException
// The next token supplied was invalid.
//
// * ConcurrentUpdateException
// Concurrent updates caused an exception, for example, if you request an update
// to an Application Auto Scaling resource that already has a pending update.
//
// * InternalServiceException
// The service encountered an internal error.
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/application-autoscaling-2016-02-06/DescribeScalingPolicies
func (c *ApplicationAutoScaling) DescribeScalingPolicies(input *DescribeScalingPoliciesInput) (*DescribeScalingPoliciesOutput, error) {
req, out := c.DescribeScalingPoliciesRequest(input)
return out, req.Send()
}
// DescribeScalingPoliciesWithContext is the same as DescribeScalingPolicies with the addition of
// the ability to pass a context and additional request options.
//
// See DescribeScalingPolicies for details on how to use this API operation.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
func (c *ApplicationAutoScaling) DescribeScalingPoliciesWithContext(ctx aws.Context, input *DescribeScalingPoliciesInput, opts ...request.Option) (*DescribeScalingPoliciesOutput, error) {
req, out := c.DescribeScalingPoliciesRequest(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
// DescribeScalingPoliciesPages iterates over the pages of a DescribeScalingPolicies operation,
// calling the "fn" function with the response data for each page. To stop
// iterating, return false from the fn function.
//
// See DescribeScalingPolicies 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 DescribeScalingPolicies operation.
// pageNum := 0
// err := client.DescribeScalingPoliciesPages(params,
// func(page *applicationautoscaling.DescribeScalingPoliciesOutput, lastPage bool) bool {
// pageNum++
// fmt.Println(page)
// return pageNum <= 3
// })
//
func (c *ApplicationAutoScaling) DescribeScalingPoliciesPages(input *DescribeScalingPoliciesInput, fn func(*DescribeScalingPoliciesOutput, bool) bool) error {
return c.DescribeScalingPoliciesPagesWithContext(aws.BackgroundContext(), input, fn)
}
// DescribeScalingPoliciesPagesWithContext same as DescribeScalingPoliciesPages except
// it takes a Context and allows setting request options on the pages.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
func (c *ApplicationAutoScaling) DescribeScalingPoliciesPagesWithContext(ctx aws.Context, input *DescribeScalingPoliciesInput, fn func(*DescribeScalingPoliciesOutput, bool) bool, opts ...request.Option) error {
p := request.Pagination{
NewRequest: func() (*request.Request, error) {
var inCpy *DescribeScalingPoliciesInput
if input != nil {
tmp := *input
inCpy = &tmp
}
req, _ := c.DescribeScalingPoliciesRequest(inCpy)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return req, nil
},
}
for p.Next() {
if !fn(p.Page().(*DescribeScalingPoliciesOutput), !p.HasNextPage()) {
break
}
}
return p.Err()
}
const opDescribeScheduledActions = "DescribeScheduledActions"
// DescribeScheduledActionsRequest generates a "aws/request.Request" representing the
// client's request for the DescribeScheduledActions 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 DescribeScheduledActions for more information on using the DescribeScheduledActions
// 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 DescribeScheduledActionsRequest method.
// req, resp := client.DescribeScheduledActionsRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/application-autoscaling-2016-02-06/DescribeScheduledActions
func (c *ApplicationAutoScaling) DescribeScheduledActionsRequest(input *DescribeScheduledActionsInput) (req *request.Request, output *DescribeScheduledActionsOutput) {
op := &request.Operation{
Name: opDescribeScheduledActions,
HTTPMethod: "POST",
HTTPPath: "/",
Paginator: &request.Paginator{
InputTokens: []string{"NextToken"},
OutputTokens: []string{"NextToken"},
LimitToken: "MaxResults",
TruncationToken: "",
},
}
if input == nil {
input = &DescribeScheduledActionsInput{}
}
output = &DescribeScheduledActionsOutput{}
req = c.newRequest(op, input, output)
return
}
// DescribeScheduledActions API operation for Application Auto Scaling.
//
// Describes the Application Auto Scaling scheduled actions for the specified
// service namespace.
//
// You can filter the results using the ResourceId, ScalableDimension, and ScheduledActionNames
// parameters.
//
// For more information, see Scheduled scaling (https://docs.aws.amazon.com/autoscaling/application/userguide/application-auto-scaling-scheduled-scaling.html)
// and Managing scheduled scaling (https://docs.aws.amazon.com/autoscaling/application/userguide/scheduled-scaling-additional-cli-commands.html)
// in the Application Auto Scaling User Guide.
//
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
// with awserr.Error's Code and Message methods to get detailed information about
// the error.
//
// See the AWS API reference guide for Application Auto Scaling's
// API operation DescribeScheduledActions for usage and error information.
//
// Returned Error Types:
// * ValidationException
// An exception was thrown for a validation issue. Review the available parameters
// for the API request.
//
// * InvalidNextTokenException
// The next token supplied was invalid.
//
// * ConcurrentUpdateException
// Concurrent updates caused an exception, for example, if you request an update
// to an Application Auto Scaling resource that already has a pending update.
//
// * InternalServiceException
// The service encountered an internal error.
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/application-autoscaling-2016-02-06/DescribeScheduledActions
func (c *ApplicationAutoScaling) DescribeScheduledActions(input *DescribeScheduledActionsInput) (*DescribeScheduledActionsOutput, error) {
req, out := c.DescribeScheduledActionsRequest(input)
return out, req.Send()
}
// DescribeScheduledActionsWithContext is the same as DescribeScheduledActions with the addition of
// the ability to pass a context and additional request options.
//
// See DescribeScheduledActions for details on how to use this API operation.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
func (c *ApplicationAutoScaling) DescribeScheduledActionsWithContext(ctx aws.Context, input *DescribeScheduledActionsInput, opts ...request.Option) (*DescribeScheduledActionsOutput, error) {
req, out := c.DescribeScheduledActionsRequest(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
// DescribeScheduledActionsPages iterates over the pages of a DescribeScheduledActions operation,
// calling the "fn" function with the response data for each page. To stop
// iterating, return false from the fn function.
//
// See DescribeScheduledActions 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 DescribeScheduledActions operation.
// pageNum := 0
// err := client.DescribeScheduledActionsPages(params,
// func(page *applicationautoscaling.DescribeScheduledActionsOutput, lastPage bool) bool {
// pageNum++
// fmt.Println(page)
// return pageNum <= 3
// })
//
func (c *ApplicationAutoScaling) DescribeScheduledActionsPages(input *DescribeScheduledActionsInput, fn func(*DescribeScheduledActionsOutput, bool) bool) error {
return c.DescribeScheduledActionsPagesWithContext(aws.BackgroundContext(), input, fn)
}
// DescribeScheduledActionsPagesWithContext same as DescribeScheduledActionsPages except
// it takes a Context and allows setting request options on the pages.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
func (c *ApplicationAutoScaling) DescribeScheduledActionsPagesWithContext(ctx aws.Context, input *DescribeScheduledActionsInput, fn func(*DescribeScheduledActionsOutput, bool) bool, opts ...request.Option) error {
p := request.Pagination{
NewRequest: func() (*request.Request, error) {
var inCpy *DescribeScheduledActionsInput
if input != nil {
tmp := *input
inCpy = &tmp
}
req, _ := c.DescribeScheduledActionsRequest(inCpy)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return req, nil
},
}
for p.Next() {
if !fn(p.Page().(*DescribeScheduledActionsOutput), !p.HasNextPage()) {
break
}
}
return p.Err()
}
const opPutScalingPolicy = "PutScalingPolicy"
// PutScalingPolicyRequest generates a "aws/request.Request" representing the
// client's request for the PutScalingPolicy 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 PutScalingPolicy for more information on using the PutScalingPolicy
// 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 PutScalingPolicyRequest method.
// req, resp := client.PutScalingPolicyRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/application-autoscaling-2016-02-06/PutScalingPolicy
func (c *ApplicationAutoScaling) PutScalingPolicyRequest(input *PutScalingPolicyInput) (req *request.Request, output *PutScalingPolicyOutput) {
op := &request.Operation{
Name: opPutScalingPolicy,
HTTPMethod: "POST",
HTTPPath: "/",
}
if input == nil {
input = &PutScalingPolicyInput{}
}
output = &PutScalingPolicyOutput{}
req = c.newRequest(op, input, output)
return
}
// PutScalingPolicy API operation for Application Auto Scaling.
//
// Creates or updates a scaling policy for an Application Auto Scaling scalable
// target.
//
// Each scalable target is identified by a service namespace, resource ID, and
// scalable dimension. A scaling policy applies to the scalable target identified
// by those three attributes. You cannot create a scaling policy until you have
// registered the resource as a scalable target.
//
// Multiple scaling policies can be in force at the same time for the same scalable
// target. You can have one or more target tracking scaling policies, one or
// more step scaling policies, or both. However, there is a chance that multiple
// policies could conflict, instructing the scalable target to scale out or
// in at the same time. Application Auto Scaling gives precedence to the policy
// that provides the largest capacity for both scale out and scale in. For example,
// if one policy increases capacity by 3, another policy increases capacity
// by 200 percent, and the current capacity is 10, Application Auto Scaling
// uses the policy with the highest calculated capacity (200% of 10 = 20) and
// scales out to 30.
//
// We recommend caution, however, when using target tracking scaling policies
// with step scaling policies because conflicts between these policies can cause
// undesirable behavior. For example, if the step scaling policy initiates a
// scale-in activity before the target tracking policy is ready to scale in,
// the scale-in activity will not be blocked. After the scale-in activity completes,
// the target tracking policy could instruct the scalable target to scale out
// again.
//
// For more information, see Target tracking scaling policies (https://docs.aws.amazon.com/autoscaling/application/userguide/application-auto-scaling-target-tracking.html)
// and Step scaling policies (https://docs.aws.amazon.com/autoscaling/application/userguide/application-auto-scaling-step-scaling-policies.html)
// in the Application Auto Scaling User Guide.
//
// If a scalable target is deregistered, the scalable target is no longer available
// to execute scaling policies. Any scaling policies that were specified for
// the scalable target are deleted.
//
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
// with awserr.Error's Code and Message methods to get detailed information about
// the error.
//
// See the AWS API reference guide for Application Auto Scaling's
// API operation PutScalingPolicy for usage and error information.
//
// Returned Error Types:
// * ValidationException
// An exception was thrown for a validation issue. Review the available parameters
// for the API request.
//
// * LimitExceededException
// A per-account resource limit is exceeded. For more information, see Application
// Auto Scaling service quotas (https://docs.aws.amazon.com/autoscaling/application/userguide/application-auto-scaling-limits.html).
//
// * ObjectNotFoundException
// The specified object could not be found. For any operation that depends on
// the existence of a scalable target, this exception is thrown if the scalable
// target with the specified service namespace, resource ID, and scalable dimension
// does not exist. For any operation that deletes or deregisters a resource,
// this exception is thrown if the resource cannot be found.
//
// * ConcurrentUpdateException
// Concurrent updates caused an exception, for example, if you request an update
// to an Application Auto Scaling resource that already has a pending update.
//
// * FailedResourceAccessException
// Failed access to resources caused an exception. This exception is thrown
// when Application Auto Scaling is unable to retrieve the alarms associated
// with a scaling policy due to a client error, for example, if the role ARN
// specified for a scalable target does not have permission to call the CloudWatch
// DescribeAlarms (https://docs.aws.amazon.com/AmazonCloudWatch/latest/APIReference/API_DescribeAlarms.html)
// on your behalf.
//
// * InternalServiceException
// The service encountered an internal error.
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/application-autoscaling-2016-02-06/PutScalingPolicy
func (c *ApplicationAutoScaling) PutScalingPolicy(input *PutScalingPolicyInput) (*PutScalingPolicyOutput, error) {
req, out := c.PutScalingPolicyRequest(input)
return out, req.Send()
}
// PutScalingPolicyWithContext is the same as PutScalingPolicy with the addition of
// the ability to pass a context and additional request options.
//
// See PutScalingPolicy for details on how to use this API operation.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
func (c *ApplicationAutoScaling) PutScalingPolicyWithContext(ctx aws.Context, input *PutScalingPolicyInput, opts ...request.Option) (*PutScalingPolicyOutput, error) {
req, out := c.PutScalingPolicyRequest(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
const opPutScheduledAction = "PutScheduledAction"
// PutScheduledActionRequest generates a "aws/request.Request" representing the
// client's request for the PutScheduledAction 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 PutScheduledAction for more information on using the PutScheduledAction
// 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 PutScheduledActionRequest method.
// req, resp := client.PutScheduledActionRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/application-autoscaling-2016-02-06/PutScheduledAction
func (c *ApplicationAutoScaling) PutScheduledActionRequest(input *PutScheduledActionInput) (req *request.Request, output *PutScheduledActionOutput) {
op := &request.Operation{
Name: opPutScheduledAction,
HTTPMethod: "POST",
HTTPPath: "/",
}
if input == nil {
input = &PutScheduledActionInput{}
}
output = &PutScheduledActionOutput{}
req = c.newRequest(op, input, output)
req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
return
}
// PutScheduledAction API operation for Application Auto Scaling.
//
// Creates or updates a scheduled action for an Application Auto Scaling scalable
// target.
//
// Each scalable target is identified by a service namespace, resource ID, and
// scalable dimension. A scheduled action applies to the scalable target identified
// by those three attributes. You cannot create a scheduled action until you
// have registered the resource as a scalable target.
//
// When start and end times are specified with a recurring schedule using a
// cron expression or rates, they form the boundaries for when the recurring
// action starts and stops.
//
// To update a scheduled action, specify the parameters that you want to change.
// If you don't specify start and end times, the old values are deleted.
//
// For more information, see Scheduled scaling (https://docs.aws.amazon.com/autoscaling/application/userguide/application-auto-scaling-scheduled-scaling.html)
// in the Application Auto Scaling User Guide.
//
// If a scalable target is deregistered, the scalable target is no longer available
// to run scheduled actions. Any scheduled actions that were specified for the
// scalable target are deleted.
//
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
// with awserr.Error's Code and Message methods to get detailed information about
// the error.
//
// See the AWS API reference guide for Application Auto Scaling's
// API operation PutScheduledAction for usage and error information.
//
// Returned Error Types:
// * ValidationException
// An exception was thrown for a validation issue. Review the available parameters
// for the API request.
//
// * LimitExceededException
// A per-account resource limit is exceeded. For more information, see Application
// Auto Scaling service quotas (https://docs.aws.amazon.com/autoscaling/application/userguide/application-auto-scaling-limits.html).
//
// * ObjectNotFoundException
// The specified object could not be found. For any operation that depends on
// the existence of a scalable target, this exception is thrown if the scalable
// target with the specified service namespace, resource ID, and scalable dimension
// does not exist. For any operation that deletes or deregisters a resource,
// this exception is thrown if the resource cannot be found.
//
// * ConcurrentUpdateException
// Concurrent updates caused an exception, for example, if you request an update
// to an Application Auto Scaling resource that already has a pending update.
//
// * InternalServiceException
// The service encountered an internal error.
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/application-autoscaling-2016-02-06/PutScheduledAction
func (c *ApplicationAutoScaling) PutScheduledAction(input *PutScheduledActionInput) (*PutScheduledActionOutput, error) {
req, out := c.PutScheduledActionRequest(input)
return out, req.Send()
}
// PutScheduledActionWithContext is the same as PutScheduledAction with the addition of
// the ability to pass a context and additional request options.
//
// See PutScheduledAction for details on how to use this API operation.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
func (c *ApplicationAutoScaling) PutScheduledActionWithContext(ctx aws.Context, input *PutScheduledActionInput, opts ...request.Option) (*PutScheduledActionOutput, error) {
req, out := c.PutScheduledActionRequest(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
const opRegisterScalableTarget = "RegisterScalableTarget"
// RegisterScalableTargetRequest generates a "aws/request.Request" representing the
// client's request for the RegisterScalableTarget 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 RegisterScalableTarget for more information on using the RegisterScalableTarget
// 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 RegisterScalableTargetRequest method.
// req, resp := client.RegisterScalableTargetRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/application-autoscaling-2016-02-06/RegisterScalableTarget
func (c *ApplicationAutoScaling) RegisterScalableTargetRequest(input *RegisterScalableTargetInput) (req *request.Request, output *RegisterScalableTargetOutput) {
op := &request.Operation{
Name: opRegisterScalableTarget,
HTTPMethod: "POST",
HTTPPath: "/",
}
if input == nil {
input = &RegisterScalableTargetInput{}
}
output = &RegisterScalableTargetOutput{}
req = c.newRequest(op, input, output)
req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
return
}
// RegisterScalableTarget API operation for Application Auto Scaling.
//
// Registers or updates a scalable target.
//
// A scalable target is a resource that Application Auto Scaling can scale out
// and scale in. Scalable targets are uniquely identified by the combination
// of resource ID, scalable dimension, and namespace.
//
// When you register a new scalable target, you must specify values for minimum
// and maximum capacity. Current capacity will be adjusted within the specified
// range when scaling starts. Application Auto Scaling scaling policies will
// not scale capacity to values that are outside of this range.
//
// After you register a scalable target, you do not need to register it again
// to use other Application Auto Scaling operations. To see which resources
// have been registered, use DescribeScalableTargets (https://docs.aws.amazon.com/autoscaling/application/APIReference/API_DescribeScalableTargets.html).
// You can also view the scaling policies for a service namespace by using DescribeScalableTargets
// (https://docs.aws.amazon.com/autoscaling/application/APIReference/API_DescribeScalableTargets.html).
// If you no longer need a scalable target, you can deregister it by using DeregisterScalableTarget
// (https://docs.aws.amazon.com/autoscaling/application/APIReference/API_DeregisterScalableTarget.html).
//
// To update a scalable target, specify the parameters that you want to change.
// Include the parameters that identify the scalable target: resource ID, scalable
// dimension, and namespace. Any parameters that you don't specify are not changed
// by this update request.
//
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
// with awserr.Error's Code and Message methods to get detailed information about
// the error.
//
// See the AWS API reference guide for Application Auto Scaling's
// API operation RegisterScalableTarget for usage and error information.
//
// Returned Error Types:
// * ValidationException
// An exception was thrown for a validation issue. Review the available parameters
// for the API request.
//
// * LimitExceededException
// A per-account resource limit is exceeded. For more information, see Application
// Auto Scaling service quotas (https://docs.aws.amazon.com/autoscaling/application/userguide/application-auto-scaling-limits.html).
//
// * ConcurrentUpdateException
// Concurrent updates caused an exception, for example, if you request an update
// to an Application Auto Scaling resource that already has a pending update.
//
// * InternalServiceException
// The service encountered an internal error.
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/application-autoscaling-2016-02-06/RegisterScalableTarget
func (c *ApplicationAutoScaling) RegisterScalableTarget(input *RegisterScalableTargetInput) (*RegisterScalableTargetOutput, error) {
req, out := c.RegisterScalableTargetRequest(input)
return out, req.Send()
}
// RegisterScalableTargetWithContext is the same as RegisterScalableTarget with the addition of
// the ability to pass a context and additional request options.
//
// See RegisterScalableTarget for details on how to use this API operation.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
func (c *ApplicationAutoScaling) RegisterScalableTargetWithContext(ctx aws.Context, input *RegisterScalableTargetInput, opts ...request.Option) (*RegisterScalableTargetOutput, error) {
req, out := c.RegisterScalableTargetRequest(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
// Represents a CloudWatch alarm associated with a scaling policy.
type Alarm struct {
_ struct{} `type:"structure"`
// The Amazon Resource Name (ARN) of the alarm.
//
// AlarmARN is a required field
AlarmARN *string `type:"string" required:"true"`
// The name of the alarm.
//
// AlarmName is a required field
AlarmName *string `type:"string" required:"true"`
}
// String returns the string representation
func (s Alarm) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s Alarm) GoString() string {
return s.String()
}
// SetAlarmARN sets the AlarmARN field's value.
func (s *Alarm) SetAlarmARN(v string) *Alarm {
s.AlarmARN = &v
return s
}
// SetAlarmName sets the AlarmName field's value.
func (s *Alarm) SetAlarmName(v string) *Alarm {
s.AlarmName = &v
return s
}
// Concurrent updates caused an exception, for example, if you request an update
// to an Application Auto Scaling resource that already has a pending update.
type ConcurrentUpdateException struct {
_ struct{} `type:"structure"`
RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"Message" type:"string"`
}
// String returns the string representation
func (s ConcurrentUpdateException) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s ConcurrentUpdateException) GoString() string {
return s.String()
}
func newErrorConcurrentUpdateException(v protocol.ResponseMetadata) error {
return &ConcurrentUpdateException{
RespMetadata: v,
}
}
// Code returns the exception type name.
func (s *ConcurrentUpdateException) Code() string {
return "ConcurrentUpdateException"
}
// Message returns the exception's message.
func (s *ConcurrentUpdateException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
return ""
}
// OrigErr always returns nil, satisfies awserr.Error interface.
func (s *ConcurrentUpdateException) OrigErr() error {
return nil
}
func (s *ConcurrentUpdateException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
func (s *ConcurrentUpdateException) StatusCode() int {
return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
func (s *ConcurrentUpdateException) RequestID() string {
return s.RespMetadata.RequestID
}
// Represents a CloudWatch metric of your choosing for a target tracking scaling
// policy to use with Application Auto Scaling.
//
// For information about the available metrics for a service, see AWS Services
// That Publish CloudWatch Metrics (https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/aws-services-cloudwatch-metrics.html)
// in the Amazon CloudWatch User Guide.
//
// To create your customized metric specification:
//
// * Add values for each required parameter from CloudWatch. You can use
// an existing metric, or a new metric that you create. To use your own metric,
// you must first publish the metric to CloudWatch. For more information,
// see Publish Custom Metrics (https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/publishingMetrics.html)
// in the Amazon CloudWatch User Guide.
//
// * Choose a metric that changes proportionally with capacity. The value
// of the metric should increase or decrease in inverse proportion to the
// number of capacity units. That is, the value of the metric should decrease
// when capacity increases, and increase when capacity decreases.
//
// For more information about CloudWatch, see Amazon CloudWatch Concepts (https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/cloudwatch_concepts.html).
type CustomizedMetricSpecification struct {
_ struct{} `type:"structure"`
// The dimensions of the metric.
//
// Conditional: If you published your metric with dimensions, you must specify
// the same dimensions in your scaling policy.
Dimensions []*MetricDimension `type:"list"`
// The name of the metric.
//
// MetricName is a required field
MetricName *string `type:"string" required:"true"`
// The namespace of the metric.
//
// Namespace is a required field
Namespace *string `type:"string" required:"true"`
// The statistic of the metric.
//
// Statistic is a required field
Statistic *string `type:"string" required:"true" enum:"MetricStatistic"`
// The unit of the metric.
Unit *string `type:"string"`
}
// String returns the string representation
func (s CustomizedMetricSpecification) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s CustomizedMetricSpecification) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
func (s *CustomizedMetricSpecification) Validate() error {
invalidParams := request.ErrInvalidParams{Context: "CustomizedMetricSpecification"}
if s.MetricName == nil {
invalidParams.Add(request.NewErrParamRequired("MetricName"))
}
if s.Namespace == nil {
invalidParams.Add(request.NewErrParamRequired("Namespace"))
}
if s.Statistic == nil {
invalidParams.Add(request.NewErrParamRequired("Statistic"))
}
if s.Dimensions != nil {
for i, v := range s.Dimensions {
if v == nil {
continue
}
if err := v.Validate(); err != nil {
invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Dimensions", i), err.(request.ErrInvalidParams))
}
}
}
if invalidParams.Len() > 0 {
return invalidParams
}
return nil
}
// SetDimensions sets the Dimensions field's value.
func (s *CustomizedMetricSpecification) SetDimensions(v []*MetricDimension) *CustomizedMetricSpecification {
s.Dimensions = v
return s
}
// SetMetricName sets the MetricName field's value.
func (s *CustomizedMetricSpecification) SetMetricName(v string) *CustomizedMetricSpecification {
s.MetricName = &v
return s
}
// SetNamespace sets the Namespace field's value.
func (s *CustomizedMetricSpecification) SetNamespace(v string) *CustomizedMetricSpecification {
s.Namespace = &v
return s
}
// SetStatistic sets the Statistic field's value.
func (s *CustomizedMetricSpecification) SetStatistic(v string) *CustomizedMetricSpecification {
s.Statistic = &v
return s
}
// SetUnit sets the Unit field's value.
func (s *CustomizedMetricSpecification) SetUnit(v string) *CustomizedMetricSpecification {
s.Unit = &v
return s
}
type DeleteScalingPolicyInput struct {
_ struct{} `type:"structure"`
// The name of the scaling policy.
//
// PolicyName is a required field
PolicyName *string `min:"1" type:"string" required:"true"`
// The identifier of the resource associated with the scalable target. This
// string consists of the resource type and unique identifier.
//
// * ECS service - The resource type is service and the unique identifier
// is the cluster name and service name. Example: service/default/sample-webapp.
//
// * Spot Fleet request - The resource type is spot-fleet-request and the
// unique identifier is the Spot Fleet request ID. Example: spot-fleet-request/sfr-73fbd2ce-aa30-494c-8788-1cee4EXAMPLE.
//
// * EMR cluster - The resource type is instancegroup and the unique identifier
// is the cluster ID and instance group ID. Example: instancegroup/j-2EEZNYKUA1NTV/ig-1791Y4E1L8YI0.
//
// * AppStream 2.0 fleet - The resource type is fleet and the unique identifier
// is the fleet name. Example: fleet/sample-fleet.
//
// * DynamoDB table - The resource type is table and the unique identifier
// is the table name. Example: table/my-table.
//
// * DynamoDB global secondary index - The resource type is index and the
// unique identifier is the index name. Example: table/my-table/index/my-table-index.
//
// * Aurora DB cluster - The resource type is cluster and the unique identifier
// is the cluster name. Example: cluster:my-db-cluster.
//
// * Amazon SageMaker endpoint variant - The resource type is variant and
// the unique identifier is the resource ID. Example: endpoint/my-end-point/variant/KMeansClustering.
//
// * Custom resources are not supported with a resource type. This parameter
// must specify the OutputValue from the CloudFormation template stack used
// to access the resources. The unique identifier is defined by the service
// provider. More information is available in our GitHub repository (https://github.com/aws/aws-auto-scaling-custom-resource).
//
// * Amazon Comprehend document classification endpoint - The resource type
// and unique identifier are specified using the endpoint ARN. Example: arn:aws:comprehend:us-west-2:123456789012:document-classifier-endpoint/EXAMPLE.
//
// * Amazon Comprehend entity recognizer endpoint - The resource type and
// unique identifier are specified using the endpoint ARN. Example: arn:aws:comprehend:us-west-2:123456789012:entity-recognizer-endpoint/EXAMPLE.
//
// * Lambda provisioned concurrency - The resource type is function and the
// unique identifier is the function name with a function version or alias
// name suffix that is not $LATEST. Example: function:my-function:prod or
// function:my-function:1.
//
// * Amazon Keyspaces table - The resource type is table and the unique identifier
// is the table name. Example: keyspace/mykeyspace/table/mytable.
//
// * Amazon MSK cluster - The resource type and unique identifier are specified
// using the cluster ARN. Example: arn:aws:kafka:us-east-1:123456789012:cluster/demo-cluster-1/6357e0b2-0e6a-4b86-a0b4-70df934c2e31-5.
//
// ResourceId is a required field
ResourceId *string `min:"1" type:"string" required:"true"`
// The scalable dimension. This string consists of the service namespace, resource
// type, and scaling property.
//
// * ecs:service:DesiredCount - The desired task count of an ECS service.
//
// * ec2:spot-fleet-request:TargetCapacity - The target capacity of a Spot
// Fleet request.
//
// * elasticmapreduce:instancegroup:InstanceCount - The instance count of
// an EMR Instance Group.
//
// * appstream:fleet:DesiredCapacity - The desired capacity of an AppStream
// 2.0 fleet.
//
// * dynamodb:table:ReadCapacityUnits - The provisioned read capacity for
// a DynamoDB table.
//
// * dynamodb:table:WriteCapacityUnits - The provisioned write capacity for
// a DynamoDB table.
//
// * dynamodb:index:ReadCapacityUnits - The provisioned read capacity for
// a DynamoDB global secondary index.
//
// * dynamodb:index:WriteCapacityUnits - The provisioned write capacity for
// a DynamoDB global secondary index.
//
// * rds:cluster:ReadReplicaCount - The count of Aurora Replicas in an Aurora
// DB cluster. Available for Aurora MySQL-compatible edition and Aurora PostgreSQL-compatible
// edition.
//
// * sagemaker:variant:DesiredInstanceCount - The number of EC2 instances
// for an Amazon SageMaker model endpoint variant.
//
// * custom-resource:ResourceType:Property - The scalable dimension for a
// custom resource provided by your own application or service.
//
// * comprehend:document-classifier-endpoint:DesiredInferenceUnits - The
// number of inference units for an Amazon Comprehend document classification
// endpoint.
//
// * comprehend:entity-recognizer-endpoint:DesiredInferenceUnits - The number
// of inference units for an Amazon Comprehend entity recognizer endpoint.
//
// * lambda:function:ProvisionedConcurrency - The provisioned concurrency
// for a Lambda function.
//
// * cassandra:table:ReadCapacityUnits - The provisioned read capacity for
// an Amazon Keyspaces table.
//
// * cassandra:table:WriteCapacityUnits - The provisioned write capacity
// for an Amazon Keyspaces table.
//
// * kafka:broker-storage:VolumeSize - The provisioned volume size (in GiB)
// for brokers in an Amazon MSK cluster.
//
// ScalableDimension is a required field
ScalableDimension *string `type:"string" required:"true" enum:"ScalableDimension"`
// The namespace of the AWS service that provides the resource. For a resource
// provided by your own application or service, use custom-resource instead.
//
// ServiceNamespace is a required field
ServiceNamespace *string `type:"string" required:"true" enum:"ServiceNamespace"`
}
// String returns the string representation
func (s DeleteScalingPolicyInput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s DeleteScalingPolicyInput) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
func (s *DeleteScalingPolicyInput) Validate() error {
invalidParams := request.ErrInvalidParams{Context: "DeleteScalingPolicyInput"}
if s.PolicyName == nil {
invalidParams.Add(request.NewErrParamRequired("PolicyName"))
}
if s.PolicyName != nil && len(*s.PolicyName) < 1 {
invalidParams.Add(request.NewErrParamMinLen("PolicyName", 1))
}
if s.ResourceId == nil {
invalidParams.Add(request.NewErrParamRequired("ResourceId"))
}
if s.ResourceId != nil && len(*s.ResourceId) < 1 {
invalidParams.Add(request.NewErrParamMinLen("ResourceId", 1))
}
if s.ScalableDimension == nil {
invalidParams.Add(request.NewErrParamRequired("ScalableDimension"))
}
if s.ServiceNamespace == nil {
invalidParams.Add(request.NewErrParamRequired("ServiceNamespace"))
}
if invalidParams.Len() > 0 {
return invalidParams
}
return nil
}
// SetPolicyName sets the PolicyName field's value.
func (s *DeleteScalingPolicyInput) SetPolicyName(v string) *DeleteScalingPolicyInput {
s.PolicyName = &v
return s
}
// SetResourceId sets the ResourceId field's value.
func (s *DeleteScalingPolicyInput) SetResourceId(v string) *DeleteScalingPolicyInput {
s.ResourceId = &v
return s
}
// SetScalableDimension sets the ScalableDimension field's value.
func (s *DeleteScalingPolicyInput) SetScalableDimension(v string) *DeleteScalingPolicyInput {
s.ScalableDimension = &v
return s
}
// SetServiceNamespace sets the ServiceNamespace field's value.
func (s *DeleteScalingPolicyInput) SetServiceNamespace(v string) *DeleteScalingPolicyInput {
s.ServiceNamespace = &v
return s
}
type DeleteScalingPolicyOutput struct {
_ struct{} `type:"structure"`
}
// String returns the string representation
func (s DeleteScalingPolicyOutput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s DeleteScalingPolicyOutput) GoString() string {
return s.String()
}
type DeleteScheduledActionInput struct {
_ struct{} `type:"structure"`
// The identifier of the resource associated with the scheduled action. This
// string consists of the resource type and unique identifier.
//
// * ECS service - The resource type is service and the unique identifier
// is the cluster name and service name. Example: service/default/sample-webapp.
//
// * Spot Fleet request - The resource type is spot-fleet-request and the
// unique identifier is the Spot Fleet request ID. Example: spot-fleet-request/sfr-73fbd2ce-aa30-494c-8788-1cee4EXAMPLE.
//
// * EMR cluster - The resource type is instancegroup and the unique identifier
// is the cluster ID and instance group ID. Example: instancegroup/j-2EEZNYKUA1NTV/ig-1791Y4E1L8YI0.
//
// * AppStream 2.0 fleet - The resource type is fleet and the unique identifier
// is the fleet name. Example: fleet/sample-fleet.
//
// * DynamoDB table - The resource type is table and the unique identifier
// is the table name. Example: table/my-table.
//
// * DynamoDB global secondary index - The resource type is index and the
// unique identifier is the index name. Example: table/my-table/index/my-table-index.
//
// * Aurora DB cluster - The resource type is cluster and the unique identifier
// is the cluster name. Example: cluster:my-db-cluster.
//
// * Amazon SageMaker endpoint variant - The resource type is variant and
// the unique identifier is the resource ID. Example: endpoint/my-end-point/variant/KMeansClustering.
//
// * Custom resources are not supported with a resource type. This parameter
// must specify the OutputValue from the CloudFormation template stack used
// to access the resources. The unique identifier is defined by the service
// provider. More information is available in our GitHub repository (https://github.com/aws/aws-auto-scaling-custom-resource).
//
// * Amazon Comprehend document classification endpoint - The resource type
// and unique identifier are specified using the endpoint ARN. Example: arn:aws:comprehend:us-west-2:123456789012:document-classifier-endpoint/EXAMPLE.
//
// * Amazon Comprehend entity recognizer endpoint - The resource type and
// unique identifier are specified using the endpoint ARN. Example: arn:aws:comprehend:us-west-2:123456789012:entity-recognizer-endpoint/EXAMPLE.
//
// * Lambda provisioned concurrency - The resource type is function and the
// unique identifier is the function name with a function version or alias
// name suffix that is not $LATEST. Example: function:my-function:prod or
// function:my-function:1.
//
// * Amazon Keyspaces table - The resource type is table and the unique identifier
// is the table name. Example: keyspace/mykeyspace/table/mytable.
//
// * Amazon MSK cluster - The resource type and unique identifier are specified
// using the cluster ARN. Example: arn:aws:kafka:us-east-1:123456789012:cluster/demo-cluster-1/6357e0b2-0e6a-4b86-a0b4-70df934c2e31-5.
//
// ResourceId is a required field
ResourceId *string `min:"1" type:"string" required:"true"`
// The scalable dimension. This string consists of the service namespace, resource
// type, and scaling property.
//
// * ecs:service:DesiredCount - The desired task count of an ECS service.
//
// * ec2:spot-fleet-request:TargetCapacity - The target capacity of a Spot
// Fleet request.
//
// * elasticmapreduce:instancegroup:InstanceCount - The instance count of
// an EMR Instance Group.
//
// * appstream:fleet:DesiredCapacity - The desired capacity of an AppStream
// 2.0 fleet.
//
// * dynamodb:table:ReadCapacityUnits - The provisioned read capacity for
// a DynamoDB table.
//
// * dynamodb:table:WriteCapacityUnits - The provisioned write capacity for
// a DynamoDB table.
//
// * dynamodb:index:ReadCapacityUnits - The provisioned read capacity for
// a DynamoDB global secondary index.
//
// * dynamodb:index:WriteCapacityUnits - The provisioned write capacity for
// a DynamoDB global secondary index.
//
// * rds:cluster:ReadReplicaCount - The count of Aurora Replicas in an Aurora
// DB cluster. Available for Aurora MySQL-compatible edition and Aurora PostgreSQL-compatible
// edition.
//
// * sagemaker:variant:DesiredInstanceCount - The number of EC2 instances
// for an Amazon SageMaker model endpoint variant.
//
// * custom-resource:ResourceType:Property - The scalable dimension for a
// custom resource provided by your own application or service.
//
// * comprehend:document-classifier-endpoint:DesiredInferenceUnits - The
// number of inference units for an Amazon Comprehend document classification
// endpoint.
//
// * comprehend:entity-recognizer-endpoint:DesiredInferenceUnits - The number
// of inference units for an Amazon Comprehend entity recognizer endpoint.
//
// * lambda:function:ProvisionedConcurrency - The provisioned concurrency
// for a Lambda function.
//
// * cassandra:table:ReadCapacityUnits - The provisioned read capacity for
// an Amazon Keyspaces table.
//
// * cassandra:table:WriteCapacityUnits - The provisioned write capacity
// for an Amazon Keyspaces table.
//
// * kafka:broker-storage:VolumeSize - The provisioned volume size (in GiB)
// for brokers in an Amazon MSK cluster.
//
// ScalableDimension is a required field
ScalableDimension *string `type:"string" required:"true" enum:"ScalableDimension"`
// The name of the scheduled action.
//
// ScheduledActionName is a required field
ScheduledActionName *string `min:"1" type:"string" required:"true"`
// The namespace of the AWS service that provides the resource. For a resource
// provided by your own application or service, use custom-resource instead.
//
// ServiceNamespace is a required field
ServiceNamespace *string `type:"string" required:"true" enum:"ServiceNamespace"`
}
// String returns the string representation
func (s DeleteScheduledActionInput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s DeleteScheduledActionInput) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
func (s *DeleteScheduledActionInput) Validate() error {
invalidParams := request.ErrInvalidParams{Context: "DeleteScheduledActionInput"}
if s.ResourceId == nil {
invalidParams.Add(request.NewErrParamRequired("ResourceId"))
}
if s.ResourceId != nil && len(*s.ResourceId) < 1 {
invalidParams.Add(request.NewErrParamMinLen("ResourceId", 1))
}
if s.ScalableDimension == nil {
invalidParams.Add(request.NewErrParamRequired("ScalableDimension"))
}
if s.ScheduledActionName == nil {
invalidParams.Add(request.NewErrParamRequired("ScheduledActionName"))
}
if s.ScheduledActionName != nil && len(*s.ScheduledActionName) < 1 {
invalidParams.Add(request.NewErrParamMinLen("ScheduledActionName", 1))
}
if s.ServiceNamespace == nil {
invalidParams.Add(request.NewErrParamRequired("ServiceNamespace"))
}
if invalidParams.Len() > 0 {
return invalidParams
}
return nil
}
// SetResourceId sets the ResourceId field's value.
func (s *DeleteScheduledActionInput) SetResourceId(v string) *DeleteScheduledActionInput {
s.ResourceId = &v
return s
}
// SetScalableDimension sets the ScalableDimension field's value.
func (s *DeleteScheduledActionInput) SetScalableDimension(v string) *DeleteScheduledActionInput {
s.ScalableDimension = &v
return s
}
// SetScheduledActionName sets the ScheduledActionName field's value.
func (s *DeleteScheduledActionInput) SetScheduledActionName(v string) *DeleteScheduledActionInput {
s.ScheduledActionName = &v
return s
}
// SetServiceNamespace sets the ServiceNamespace field's value.
func (s *DeleteScheduledActionInput) SetServiceNamespace(v string) *DeleteScheduledActionInput {
s.ServiceNamespace = &v
return s
}
type DeleteScheduledActionOutput struct {
_ struct{} `type:"structure"`
}
// String returns the string representation
func (s DeleteScheduledActionOutput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s DeleteScheduledActionOutput) GoString() string {
return s.String()
}
type DeregisterScalableTargetInput struct {
_ struct{} `type:"structure"`
// The identifier of the resource associated with the scalable target. This
// string consists of the resource type and unique identifier.
//
// * ECS service - The resource type is service and the unique identifier
// is the cluster name and service name. Example: service/default/sample-webapp.
//
// * Spot Fleet request - The resource type is spot-fleet-request and the
// unique identifier is the Spot Fleet request ID. Example: spot-fleet-request/sfr-73fbd2ce-aa30-494c-8788-1cee4EXAMPLE.
//
// * EMR cluster - The resource type is instancegroup and the unique identifier
// is the cluster ID and instance group ID. Example: instancegroup/j-2EEZNYKUA1NTV/ig-1791Y4E1L8YI0.
//
// * AppStream 2.0 fleet - The resource type is fleet and the unique identifier
// is the fleet name. Example: fleet/sample-fleet.
//
// * DynamoDB table - The resource type is table and the unique identifier
// is the table name. Example: table/my-table.
//
// * DynamoDB global secondary index - The resource type is index and the
// unique identifier is the index name. Example: table/my-table/index/my-table-index.
//
// * Aurora DB cluster - The resource type is cluster and the unique identifier
// is the cluster name. Example: cluster:my-db-cluster.
//
// * Amazon SageMaker endpoint variant - The resource type is variant and
// the unique identifier is the resource ID. Example: endpoint/my-end-point/variant/KMeansClustering.
//
// * Custom resources are not supported with a resource type. This parameter
// must specify the OutputValue from the CloudFormation template stack used
// to access the resources. The unique identifier is defined by the service
// provider. More information is available in our GitHub repository (https://github.com/aws/aws-auto-scaling-custom-resource).
//
// * Amazon Comprehend document classification endpoint - The resource type
// and unique identifier are specified using the endpoint ARN. Example: arn:aws:comprehend:us-west-2:123456789012:document-classifier-endpoint/EXAMPLE.
//
// * Amazon Comprehend entity recognizer endpoint - The resource type and
// unique identifier are specified using the endpoint ARN. Example: arn:aws:comprehend:us-west-2:123456789012:entity-recognizer-endpoint/EXAMPLE.
//
// * Lambda provisioned concurrency - The resource type is function and the
// unique identifier is the function name with a function version or alias
// name suffix that is not $LATEST. Example: function:my-function:prod or
// function:my-function:1.
//
// * Amazon Keyspaces table - The resource type is table and the unique identifier
// is the table name. Example: keyspace/mykeyspace/table/mytable.
//
// * Amazon MSK cluster - The resource type and unique identifier are specified
// using the cluster ARN. Example: arn:aws:kafka:us-east-1:123456789012:cluster/demo-cluster-1/6357e0b2-0e6a-4b86-a0b4-70df934c2e31-5.
//
// ResourceId is a required field
ResourceId *string `min:"1" type:"string" required:"true"`
// The scalable dimension associated with the scalable target. This string consists
// of the service namespace, resource type, and scaling property.
//
// * ecs:service:DesiredCount - The desired task count of an ECS service.
//
// * ec2:spot-fleet-request:TargetCapacity - The target capacity of a Spot
// Fleet request.
//
// * elasticmapreduce:instancegroup:InstanceCount - The instance count of
// an EMR Instance Group.
//
// * appstream:fleet:DesiredCapacity - The desired capacity of an AppStream
// 2.0 fleet.
//
// * dynamodb:table:ReadCapacityUnits - The provisioned read capacity for
// a DynamoDB table.
//
// * dynamodb:table:WriteCapacityUnits - The provisioned write capacity for
// a DynamoDB table.
//
// * dynamodb:index:ReadCapacityUnits - The provisioned read capacity for
// a DynamoDB global secondary index.
//
// * dynamodb:index:WriteCapacityUnits - The provisioned write capacity for
// a DynamoDB global secondary index.
//
// * rds:cluster:ReadReplicaCount - The count of Aurora Replicas in an Aurora
// DB cluster. Available for Aurora MySQL-compatible edition and Aurora PostgreSQL-compatible
// edition.
//
// * sagemaker:variant:DesiredInstanceCount - The number of EC2 instances
// for an Amazon SageMaker model endpoint variant.
//
// * custom-resource:ResourceType:Property - The scalable dimension for a
// custom resource provided by your own application or service.
//
// * comprehend:document-classifier-endpoint:DesiredInferenceUnits - The
// number of inference units for an Amazon Comprehend document classification
// endpoint.
//
// * comprehend:entity-recognizer-endpoint:DesiredInferenceUnits - The number
// of inference units for an Amazon Comprehend entity recognizer endpoint.
//
// * lambda:function:ProvisionedConcurrency - The provisioned concurrency
// for a Lambda function.
//
// * cassandra:table:ReadCapacityUnits - The provisioned read capacity for
// an Amazon Keyspaces table.
//
// * cassandra:table:WriteCapacityUnits - The provisioned write capacity
// for an Amazon Keyspaces table.
//
// * kafka:broker-storage:VolumeSize - The provisioned volume size (in GiB)
// for brokers in an Amazon MSK cluster.
//
// ScalableDimension is a required field
ScalableDimension *string `type:"string" required:"true" enum:"ScalableDimension"`
// The namespace of the AWS service that provides the resource. For a resource
// provided by your own application or service, use custom-resource instead.
//
// ServiceNamespace is a required field
ServiceNamespace *string `type:"string" required:"true" enum:"ServiceNamespace"`
}
// String returns the string representation
func (s DeregisterScalableTargetInput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s DeregisterScalableTargetInput) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
func (s *DeregisterScalableTargetInput) Validate() error {
invalidParams := request.ErrInvalidParams{Context: "DeregisterScalableTargetInput"}
if s.ResourceId == nil {
invalidParams.Add(request.NewErrParamRequired("ResourceId"))
}
if s.ResourceId != nil && len(*s.ResourceId) < 1 {
invalidParams.Add(request.NewErrParamMinLen("ResourceId", 1))
}
if s.ScalableDimension == nil {
invalidParams.Add(request.NewErrParamRequired("ScalableDimension"))
}
if s.ServiceNamespace == nil {
invalidParams.Add(request.NewErrParamRequired("ServiceNamespace"))
}
if invalidParams.Len() > 0 {
return invalidParams
}
return nil
}
// SetResourceId sets the ResourceId field's value.
func (s *DeregisterScalableTargetInput) SetResourceId(v string) *DeregisterScalableTargetInput {
s.ResourceId = &v
return s
}
// SetScalableDimension sets the ScalableDimension field's value.
func (s *DeregisterScalableTargetInput) SetScalableDimension(v string) *DeregisterScalableTargetInput {
s.ScalableDimension = &v
return s
}
// SetServiceNamespace sets the ServiceNamespace field's value.
func (s *DeregisterScalableTargetInput) SetServiceNamespace(v string) *DeregisterScalableTargetInput {
s.ServiceNamespace = &v
return s
}
type DeregisterScalableTargetOutput struct {
_ struct{} `type:"structure"`
}
// String returns the string representation
func (s DeregisterScalableTargetOutput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s DeregisterScalableTargetOutput) GoString() string {
return s.String()
}
type DescribeScalableTargetsInput struct {
_ struct{} `type:"structure"`
// The maximum number of scalable targets. This value can be between 1 and 50.
// The default value is 50.
//
// If this parameter is used, the operation returns up to MaxResults results
// at a time, along with a NextToken value. To get the next set of results,
// include the NextToken value in a subsequent call. If this parameter is not
// used, the operation returns up to 50 results and a NextToken value, if applicable.
MaxResults *int64 `type:"integer"`
// The token for the next set of results.
NextToken *string `type:"string"`
// The identifier of the resource associated with the scalable target. This
// string consists of the resource type and unique identifier.
//
// * ECS service - The resource type is service and the unique identifier
// is the cluster name and service name. Example: service/default/sample-webapp.
//
// * Spot Fleet request - The resource type is spot-fleet-request and the
// unique identifier is the Spot Fleet request ID. Example: spot-fleet-request/sfr-73fbd2ce-aa30-494c-8788-1cee4EXAMPLE.
//
// * EMR cluster - The resource type is instancegroup and the unique identifier
// is the cluster ID and instance group ID. Example: instancegroup/j-2EEZNYKUA1NTV/ig-1791Y4E1L8YI0.
//
// * AppStream 2.0 fleet - The resource type is fleet and the unique identifier
// is the fleet name. Example: fleet/sample-fleet.
//
// * DynamoDB table - The resource type is table and the unique identifier
// is the table name. Example: table/my-table.
//
// * DynamoDB global secondary index - The resource type is index and the
// unique identifier is the index name. Example: table/my-table/index/my-table-index.
//
// * Aurora DB cluster - The resource type is cluster and the unique identifier
// is the cluster name. Example: cluster:my-db-cluster.
//
// * Amazon SageMaker endpoint variant - The resource type is variant and
// the unique identifier is the resource ID. Example: endpoint/my-end-point/variant/KMeansClustering.
//
// * Custom resources are not supported with a resource type. This parameter
// must specify the OutputValue from the CloudFormation template stack used
// to access the resources. The unique identifier is defined by the service
// provider. More information is available in our GitHub repository (https://github.com/aws/aws-auto-scaling-custom-resource).
//
// * Amazon Comprehend document classification endpoint - The resource type
// and unique identifier are specified using the endpoint ARN. Example: arn:aws:comprehend:us-west-2:123456789012:document-classifier-endpoint/EXAMPLE.
//
// * Amazon Comprehend entity recognizer endpoint - The resource type and
// unique identifier are specified using the endpoint ARN. Example: arn:aws:comprehend:us-west-2:123456789012:entity-recognizer-endpoint/EXAMPLE.
//
// * Lambda provisioned concurrency - The resource type is function and the
// unique identifier is the function name with a function version or alias
// name suffix that is not $LATEST. Example: function:my-function:prod or
// function:my-function:1.
//
// * Amazon Keyspaces table - The resource type is table and the unique identifier
// is the table name. Example: keyspace/mykeyspace/table/mytable.
//
// * Amazon MSK cluster - The resource type and unique identifier are specified
// using the cluster ARN. Example: arn:aws:kafka:us-east-1:123456789012:cluster/demo-cluster-1/6357e0b2-0e6a-4b86-a0b4-70df934c2e31-5.
ResourceIds []*string `type:"list"`
// The scalable dimension associated with the scalable target. This string consists
// of the service namespace, resource type, and scaling property. If you specify
// a scalable dimension, you must also specify a resource ID.
//
// * ecs:service:DesiredCount - The desired task count of an ECS service.
//
// * ec2:spot-fleet-request:TargetCapacity - The target capacity of a Spot
// Fleet request.
//
// * elasticmapreduce:instancegroup:InstanceCount - The instance count of
// an EMR Instance Group.
//
// * appstream:fleet:DesiredCapacity - The desired capacity of an AppStream
// 2.0 fleet.
//
// * dynamodb:table:ReadCapacityUnits - The provisioned read capacity for
// a DynamoDB table.
//
// * dynamodb:table:WriteCapacityUnits - The provisioned write capacity for
// a DynamoDB table.
//
// * dynamodb:index:ReadCapacityUnits - The provisioned read capacity for
// a DynamoDB global secondary index.
//
// * dynamodb:index:WriteCapacityUnits - The provisioned write capacity for
// a DynamoDB global secondary index.
//
// * rds:cluster:ReadReplicaCount - The count of Aurora Replicas in an Aurora
// DB cluster. Available for Aurora MySQL-compatible edition and Aurora PostgreSQL-compatible
// edition.
//
// * sagemaker:variant:DesiredInstanceCount - The number of EC2 instances
// for an Amazon SageMaker model endpoint variant.
//
// * custom-resource:ResourceType:Property - The scalable dimension for a
// custom resource provided by your own application or service.
//
// * comprehend:document-classifier-endpoint:DesiredInferenceUnits - The
// number of inference units for an Amazon Comprehend document classification
// endpoint.
//
// * comprehend:entity-recognizer-endpoint:DesiredInferenceUnits - The number
// of inference units for an Amazon Comprehend entity recognizer endpoint.
//
// * lambda:function:ProvisionedConcurrency - The provisioned concurrency
// for a Lambda function.
//
// * cassandra:table:ReadCapacityUnits - The provisioned read capacity for
// an Amazon Keyspaces table.
//
// * cassandra:table:WriteCapacityUnits - The provisioned write capacity
// for an Amazon Keyspaces table.
//
// * kafka:broker-storage:VolumeSize - The provisioned volume size (in GiB)
// for brokers in an Amazon MSK cluster.
ScalableDimension *string `type:"string" enum:"ScalableDimension"`
// The namespace of the AWS service that provides the resource. For a resource
// provided by your own application or service, use custom-resource instead.
//
// ServiceNamespace is a required field
ServiceNamespace *string `type:"string" required:"true" enum:"ServiceNamespace"`
}
// String returns the string representation
func (s DescribeScalableTargetsInput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s DescribeScalableTargetsInput) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
func (s *DescribeScalableTargetsInput) Validate() error {
invalidParams := request.ErrInvalidParams{Context: "DescribeScalableTargetsInput"}
if s.ServiceNamespace == nil {
invalidParams.Add(request.NewErrParamRequired("ServiceNamespace"))
}
if invalidParams.Len() > 0 {
return invalidParams
}
return nil
}
// SetMaxResults sets the MaxResults field's value.
func (s *DescribeScalableTargetsInput) SetMaxResults(v int64) *DescribeScalableTargetsInput {
s.MaxResults = &v
return s
}
// SetNextToken sets the NextToken field's value.
func (s *DescribeScalableTargetsInput) SetNextToken(v string) *DescribeScalableTargetsInput {
s.NextToken = &v
return s
}
// SetResourceIds sets the ResourceIds field's value.
func (s *DescribeScalableTargetsInput) SetResourceIds(v []*string) *DescribeScalableTargetsInput {
s.ResourceIds = v
return s
}
// SetScalableDimension sets the ScalableDimension field's value.
func (s *DescribeScalableTargetsInput) SetScalableDimension(v string) *DescribeScalableTargetsInput {
s.ScalableDimension = &v
return s
}
// SetServiceNamespace sets the ServiceNamespace field's value.
func (s *DescribeScalableTargetsInput) SetServiceNamespace(v string) *DescribeScalableTargetsInput {
s.ServiceNamespace = &v
return s
}
type DescribeScalableTargetsOutput struct {
_ struct{} `type:"structure"`
// The token required to get the next set of results. This value is null if
// there are no more results to return.
NextToken *string `type:"string"`
// The scalable targets that match the request parameters.
ScalableTargets []*ScalableTarget `type:"list"`
}
// String returns the string representation
func (s DescribeScalableTargetsOutput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s DescribeScalableTargetsOutput) GoString() string {
return s.String()
}
// SetNextToken sets the NextToken field's value.
func (s *DescribeScalableTargetsOutput) SetNextToken(v string) *DescribeScalableTargetsOutput {
s.NextToken = &v
return s
}
// SetScalableTargets sets the ScalableTargets field's value.
func (s *DescribeScalableTargetsOutput) SetScalableTargets(v []*ScalableTarget) *DescribeScalableTargetsOutput {
s.ScalableTargets = v
return s
}
type DescribeScalingActivitiesInput struct {
_ struct{} `type:"structure"`
// The maximum number of scalable targets. This value can be between 1 and 50.
// The default value is 50.
//
// If this parameter is used, the operation returns up to MaxResults results
// at a time, along with a NextToken value. To get the next set of results,
// include the NextToken value in a subsequent call. If this parameter is not
// used, the operation returns up to 50 results and a NextToken value, if applicable.
MaxResults *int64 `type:"integer"`
// The token for the next set of results.
NextToken *string `type:"string"`
// The identifier of the resource associated with the scaling activity. This
// string consists of the resource type and unique identifier.
//
// * ECS service - The resource type is service and the unique identifier
// is the cluster name and service name. Example: service/default/sample-webapp.
//
// * Spot Fleet request - The resource type is spot-fleet-request and the
// unique identifier is the Spot Fleet request ID. Example: spot-fleet-request/sfr-73fbd2ce-aa30-494c-8788-1cee4EXAMPLE.
//
// * EMR cluster - The resource type is instancegroup and the unique identifier
// is the cluster ID and instance group ID. Example: instancegroup/j-2EEZNYKUA1NTV/ig-1791Y4E1L8YI0.
//
// * AppStream 2.0 fleet - The resource type is fleet and the unique identifier
// is the fleet name. Example: fleet/sample-fleet.
//
// * DynamoDB table - The resource type is table and the unique identifier
// is the table name. Example: table/my-table.
//
// * DynamoDB global secondary index - The resource type is index and the
// unique identifier is the index name. Example: table/my-table/index/my-table-index.
//
// * Aurora DB cluster - The resource type is cluster and the unique identifier
// is the cluster name. Example: cluster:my-db-cluster.
//
// * Amazon SageMaker endpoint variant - The resource type is variant and
// the unique identifier is the resource ID. Example: endpoint/my-end-point/variant/KMeansClustering.
//
// * Custom resources are not supported with a resource type. This parameter
// must specify the OutputValue from the CloudFormation template stack used
// to access the resources. The unique identifier is defined by the service
// provider. More information is available in our GitHub repository (https://github.com/aws/aws-auto-scaling-custom-resource).
//
// * Amazon Comprehend document classification endpoint - The resource type
// and unique identifier are specified using the endpoint ARN. Example: arn:aws:comprehend:us-west-2:123456789012:document-classifier-endpoint/EXAMPLE.
//
// * Amazon Comprehend entity recognizer endpoint - The resource type and
// unique identifier are specified using the endpoint ARN. Example: arn:aws:comprehend:us-west-2:123456789012:entity-recognizer-endpoint/EXAMPLE.
//
// * Lambda provisioned concurrency - The resource type is function and the
// unique identifier is the function name with a function version or alias
// name suffix that is not $LATEST. Example: function:my-function:prod or
// function:my-function:1.
//
// * Amazon Keyspaces table - The resource type is table and the unique identifier
// is the table name. Example: keyspace/mykeyspace/table/mytable.
//
// * Amazon MSK cluster - The resource type and unique identifier are specified
// using the cluster ARN. Example: arn:aws:kafka:us-east-1:123456789012:cluster/demo-cluster-1/6357e0b2-0e6a-4b86-a0b4-70df934c2e31-5.
ResourceId *string `min:"1" type:"string"`
// The scalable dimension. This string consists of the service namespace, resource
// type, and scaling property. If you specify a scalable dimension, you must
// also specify a resource ID.
//
// * ecs:service:DesiredCount - The desired task count of an ECS service.
//
// * ec2:spot-fleet-request:TargetCapacity - The target capacity of a Spot
// Fleet request.
//
// * elasticmapreduce:instancegroup:InstanceCount - The instance count of
// an EMR Instance Group.
//
// * appstream:fleet:DesiredCapacity - The desired capacity of an AppStream
// 2.0 fleet.
//
// * dynamodb:table:ReadCapacityUnits - The provisioned read capacity for
// a DynamoDB table.
//
// * dynamodb:table:WriteCapacityUnits - The provisioned write capacity for
// a DynamoDB table.
//
// * dynamodb:index:ReadCapacityUnits - The provisioned read capacity for
// a DynamoDB global secondary index.
//
// * dynamodb:index:WriteCapacityUnits - The provisioned write capacity for
// a DynamoDB global secondary index.
//
// * rds:cluster:ReadReplicaCount - The count of Aurora Replicas in an Aurora
// DB cluster. Available for Aurora MySQL-compatible edition and Aurora PostgreSQL-compatible
// edition.
//
// * sagemaker:variant:DesiredInstanceCount - The number of EC2 instances
// for an Amazon SageMaker model endpoint variant.
//
// * custom-resource:ResourceType:Property - The scalable dimension for a
// custom resource provided by your own application or service.
//
// * comprehend:document-classifier-endpoint:DesiredInferenceUnits - The
// number of inference units for an Amazon Comprehend document classification
// endpoint.
//
// * comprehend:entity-recognizer-endpoint:DesiredInferenceUnits - The number
// of inference units for an Amazon Comprehend entity recognizer endpoint.
//
// * lambda:function:ProvisionedConcurrency - The provisioned concurrency
// for a Lambda function.
//
// * cassandra:table:ReadCapacityUnits - The provisioned read capacity for
// an Amazon Keyspaces table.
//
// * cassandra:table:WriteCapacityUnits - The provisioned write capacity
// for an Amazon Keyspaces table.
//
// * kafka:broker-storage:VolumeSize - The provisioned volume size (in GiB)
// for brokers in an Amazon MSK cluster.
ScalableDimension *string `type:"string" enum:"ScalableDimension"`
// The namespace of the AWS service that provides the resource. For a resource
// provided by your own application or service, use custom-resource instead.
//
// ServiceNamespace is a required field
ServiceNamespace *string `type:"string" required:"true" enum:"ServiceNamespace"`
}
// String returns the string representation
func (s DescribeScalingActivitiesInput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s DescribeScalingActivitiesInput) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
func (s *DescribeScalingActivitiesInput) Validate() error {
invalidParams := request.ErrInvalidParams{Context: "DescribeScalingActivitiesInput"}
if s.ResourceId != nil && len(*s.ResourceId) < 1 {
invalidParams.Add(request.NewErrParamMinLen("ResourceId", 1))
}
if s.ServiceNamespace == nil {
invalidParams.Add(request.NewErrParamRequired("ServiceNamespace"))
}
if invalidParams.Len() > 0 {
return invalidParams
}
return nil
}
// SetMaxResults sets the MaxResults field's value.
func (s *DescribeScalingActivitiesInput) SetMaxResults(v int64) *DescribeScalingActivitiesInput {
s.MaxResults = &v
return s
}
// SetNextToken sets the NextToken field's value.
func (s *DescribeScalingActivitiesInput) SetNextToken(v string) *DescribeScalingActivitiesInput {
s.NextToken = &v
return s
}
// SetResourceId sets the ResourceId field's value.
func (s *DescribeScalingActivitiesInput) SetResourceId(v string) *DescribeScalingActivitiesInput {
s.ResourceId = &v
return s
}
// SetScalableDimension sets the ScalableDimension field's value.
func (s *DescribeScalingActivitiesInput) SetScalableDimension(v string) *DescribeScalingActivitiesInput {
s.ScalableDimension = &v
return s
}
// SetServiceNamespace sets the ServiceNamespace field's value.
func (s *DescribeScalingActivitiesInput) SetServiceNamespace(v string) *DescribeScalingActivitiesInput {
s.ServiceNamespace = &v
return s
}
type DescribeScalingActivitiesOutput struct {
_ struct{} `type:"structure"`
// The token required to get the next set of results. This value is null if
// there are no more results to return.
NextToken *string `type:"string"`
// A list of scaling activity objects.
ScalingActivities []*ScalingActivity `type:"list"`
}
// String returns the string representation
func (s DescribeScalingActivitiesOutput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s DescribeScalingActivitiesOutput) GoString() string {
return s.String()
}
// SetNextToken sets the NextToken field's value.
func (s *DescribeScalingActivitiesOutput) SetNextToken(v string) *DescribeScalingActivitiesOutput {
s.NextToken = &v
return s
}
// SetScalingActivities sets the ScalingActivities field's value.
func (s *DescribeScalingActivitiesOutput) SetScalingActivities(v []*ScalingActivity) *DescribeScalingActivitiesOutput {
s.ScalingActivities = v
return s
}
type DescribeScalingPoliciesInput struct {
_ struct{} `type:"structure"`
// The maximum number of scalable targets. This value can be between 1 and 50.
// The default value is 50.
//
// If this parameter is used, the operation returns up to MaxResults results
// at a time, along with a NextToken value. To get the next set of results,
// include the NextToken value in a subsequent call. If this parameter is not
// used, the operation returns up to 50 results and a NextToken value, if applicable.
MaxResults *int64 `type:"integer"`
// The token for the next set of results.
NextToken *string `type:"string"`
// The names of the scaling policies to describe.
PolicyNames []*string `type:"list"`
// The identifier of the resource associated with the scaling policy. This string
// consists of the resource type and unique identifier.
//
// * ECS service - The resource type is service and the unique identifier
// is the cluster name and service name. Example: service/default/sample-webapp.
//
// * Spot Fleet request - The resource type is spot-fleet-request and the
// unique identifier is the Spot Fleet request ID. Example: spot-fleet-request/sfr-73fbd2ce-aa30-494c-8788-1cee4EXAMPLE.
//
// * EMR cluster - The resource type is instancegroup and the unique identifier
// is the cluster ID and instance group ID. Example: instancegroup/j-2EEZNYKUA1NTV/ig-1791Y4E1L8YI0.
//
// * AppStream 2.0 fleet - The resource type is fleet and the unique identifier
// is the fleet name. Example: fleet/sample-fleet.
//
// * DynamoDB table - The resource type is table and the unique identifier
// is the table name. Example: table/my-table.
//
// * DynamoDB global secondary index - The resource type is index and the
// unique identifier is the index name. Example: table/my-table/index/my-table-index.
//
// * Aurora DB cluster - The resource type is cluster and the unique identifier
// is the cluster name. Example: cluster:my-db-cluster.
//
// * Amazon SageMaker endpoint variant - The resource type is variant and
// the unique identifier is the resource ID. Example: endpoint/my-end-point/variant/KMeansClustering.
//
// * Custom resources are not supported with a resource type. This parameter
// must specify the OutputValue from the CloudFormation template stack used
// to access the resources. The unique identifier is defined by the service
// provider. More information is available in our GitHub repository (https://github.com/aws/aws-auto-scaling-custom-resource).
//
// * Amazon Comprehend document classification endpoint - The resource type
// and unique identifier are specified using the endpoint ARN. Example: arn:aws:comprehend:us-west-2:123456789012:document-classifier-endpoint/EXAMPLE.
//
// * Amazon Comprehend entity recognizer endpoint - The resource type and
// unique identifier are specified using the endpoint ARN. Example: arn:aws:comprehend:us-west-2:123456789012:entity-recognizer-endpoint/EXAMPLE.
//
// * Lambda provisioned concurrency - The resource type is function and the
// unique identifier is the function name with a function version or alias
// name suffix that is not $LATEST. Example: function:my-function:prod or
// function:my-function:1.
//
// * Amazon Keyspaces table - The resource type is table and the unique identifier
// is the table name. Example: keyspace/mykeyspace/table/mytable.
//
// * Amazon MSK cluster - The resource type and unique identifier are specified
// using the cluster ARN. Example: arn:aws:kafka:us-east-1:123456789012:cluster/demo-cluster-1/6357e0b2-0e6a-4b86-a0b4-70df934c2e31-5.
ResourceId *string `min:"1" type:"string"`
// The scalable dimension. This string consists of the service namespace, resource
// type, and scaling property. If you specify a scalable dimension, you must
// also specify a resource ID.
//
// * ecs:service:DesiredCount - The desired task count of an ECS service.
//
// * ec2:spot-fleet-request:TargetCapacity - The target capacity of a Spot
// Fleet request.
//
// * elasticmapreduce:instancegroup:InstanceCount - The instance count of
// an EMR Instance Group.
//
// * appstream:fleet:DesiredCapacity - The desired capacity of an AppStream
// 2.0 fleet.
//
// * dynamodb:table:ReadCapacityUnits - The provisioned read capacity for
// a DynamoDB table.
//
// * dynamodb:table:WriteCapacityUnits - The provisioned write capacity for
// a DynamoDB table.
//
// * dynamodb:index:ReadCapacityUnits - The provisioned read capacity for
// a DynamoDB global secondary index.
//
// * dynamodb:index:WriteCapacityUnits - The provisioned write capacity for
// a DynamoDB global secondary index.
//
// * rds:cluster:ReadReplicaCount - The count of Aurora Replicas in an Aurora
// DB cluster. Available for Aurora MySQL-compatible edition and Aurora PostgreSQL-compatible
// edition.
//
// * sagemaker:variant:DesiredInstanceCount - The number of EC2 instances
// for an Amazon SageMaker model endpoint variant.
//
// * custom-resource:ResourceType:Property - The scalable dimension for a
// custom resource provided by your own application or service.
//
// * comprehend:document-classifier-endpoint:DesiredInferenceUnits - The
// number of inference units for an Amazon Comprehend document classification
// endpoint.
//
// * comprehend:entity-recognizer-endpoint:DesiredInferenceUnits - The number
// of inference units for an Amazon Comprehend entity recognizer endpoint.
//
// * lambda:function:ProvisionedConcurrency - The provisioned concurrency
// for a Lambda function.
//
// * cassandra:table:ReadCapacityUnits - The provisioned read capacity for
// an Amazon Keyspaces table.
//
// * cassandra:table:WriteCapacityUnits - The provisioned write capacity
// for an Amazon Keyspaces table.
//
// * kafka:broker-storage:VolumeSize - The provisioned volume size (in GiB)
// for brokers in an Amazon MSK cluster.
ScalableDimension *string `type:"string" enum:"ScalableDimension"`
// The namespace of the AWS service that provides the resource. For a resource
// provided by your own application or service, use custom-resource instead.
//
// ServiceNamespace is a required field
ServiceNamespace *string `type:"string" required:"true" enum:"ServiceNamespace"`
}
// String returns the string representation
func (s DescribeScalingPoliciesInput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s DescribeScalingPoliciesInput) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
func (s *DescribeScalingPoliciesInput) Validate() error {
invalidParams := request.ErrInvalidParams{Context: "DescribeScalingPoliciesInput"}
if s.ResourceId != nil && len(*s.ResourceId) < 1 {
invalidParams.Add(request.NewErrParamMinLen("ResourceId", 1))
}
if s.ServiceNamespace == nil {
invalidParams.Add(request.NewErrParamRequired("ServiceNamespace"))
}
if invalidParams.Len() > 0 {
return invalidParams
}
return nil
}
// SetMaxResults sets the MaxResults field's value.
func (s *DescribeScalingPoliciesInput) SetMaxResults(v int64) *DescribeScalingPoliciesInput {
s.MaxResults = &v
return s
}
// SetNextToken sets the NextToken field's value.
func (s *DescribeScalingPoliciesInput) SetNextToken(v string) *DescribeScalingPoliciesInput {
s.NextToken = &v
return s
}
// SetPolicyNames sets the PolicyNames field's value.
func (s *DescribeScalingPoliciesInput) SetPolicyNames(v []*string) *DescribeScalingPoliciesInput {
s.PolicyNames = v
return s
}
// SetResourceId sets the ResourceId field's value.
func (s *DescribeScalingPoliciesInput) SetResourceId(v string) *DescribeScalingPoliciesInput {
s.ResourceId = &v
return s
}
// SetScalableDimension sets the ScalableDimension field's value.
func (s *DescribeScalingPoliciesInput) SetScalableDimension(v string) *DescribeScalingPoliciesInput {
s.ScalableDimension = &v
return s
}
// SetServiceNamespace sets the ServiceNamespace field's value.
func (s *DescribeScalingPoliciesInput) SetServiceNamespace(v string) *DescribeScalingPoliciesInput {
s.ServiceNamespace = &v
return s
}
type DescribeScalingPoliciesOutput struct {
_ struct{} `type:"structure"`
// The token required to get the next set of results. This value is null if
// there are no more results to return.
NextToken *string `type:"string"`
// Information about the scaling policies.
ScalingPolicies []*ScalingPolicy `type:"list"`
}
// String returns the string representation
func (s DescribeScalingPoliciesOutput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s DescribeScalingPoliciesOutput) GoString() string {
return s.String()
}
// SetNextToken sets the NextToken field's value.
func (s *DescribeScalingPoliciesOutput) SetNextToken(v string) *DescribeScalingPoliciesOutput {
s.NextToken = &v
return s
}
// SetScalingPolicies sets the ScalingPolicies field's value.
func (s *DescribeScalingPoliciesOutput) SetScalingPolicies(v []*ScalingPolicy) *DescribeScalingPoliciesOutput {
s.ScalingPolicies = v
return s
}
type DescribeScheduledActionsInput struct {
_ struct{} `type:"structure"`
// The maximum number of scheduled action results. This value can be between
// 1 and 50. The default value is 50.
//
// If this parameter is used, the operation returns up to MaxResults results
// at a time, along with a NextToken value. To get the next set of results,
// include the NextToken value in a subsequent call. If this parameter is not
// used, the operation returns up to 50 results and a NextToken value, if applicable.
MaxResults *int64 `type:"integer"`
// The token for the next set of results.
NextToken *string `type:"string"`
// The identifier of the resource associated with the scheduled action. This
// string consists of the resource type and unique identifier.
//
// * ECS service - The resource type is service and the unique identifier
// is the cluster name and service name. Example: service/default/sample-webapp.
//
// * Spot Fleet request - The resource type is spot-fleet-request and the
// unique identifier is the Spot Fleet request ID. Example: spot-fleet-request/sfr-73fbd2ce-aa30-494c-8788-1cee4EXAMPLE.
//
// * EMR cluster - The resource type is instancegroup and the unique identifier
// is the cluster ID and instance group ID. Example: instancegroup/j-2EEZNYKUA1NTV/ig-1791Y4E1L8YI0.
//
// * AppStream 2.0 fleet - The resource type is fleet and the unique identifier
// is the fleet name. Example: fleet/sample-fleet.
//
// * DynamoDB table - The resource type is table and the unique identifier
// is the table name. Example: table/my-table.
//
// * DynamoDB global secondary index - The resource type is index and the
// unique identifier is the index name. Example: table/my-table/index/my-table-index.
//
// * Aurora DB cluster - The resource type is cluster and the unique identifier
// is the cluster name. Example: cluster:my-db-cluster.
//
// * Amazon SageMaker endpoint variant - The resource type is variant and
// the unique identifier is the resource ID. Example: endpoint/my-end-point/variant/KMeansClustering.
//
// * Custom resources are not supported with a resource type. This parameter
// must specify the OutputValue from the CloudFormation template stack used
// to access the resources. The unique identifier is defined by the service
// provider. More information is available in our GitHub repository (https://github.com/aws/aws-auto-scaling-custom-resource).
//
// * Amazon Comprehend document classification endpoint - The resource type
// and unique identifier are specified using the endpoint ARN. Example: arn:aws:comprehend:us-west-2:123456789012:document-classifier-endpoint/EXAMPLE.
//
// * Amazon Comprehend entity recognizer endpoint - The resource type and
// unique identifier are specified using the endpoint ARN. Example: arn:aws:comprehend:us-west-2:123456789012:entity-recognizer-endpoint/EXAMPLE.
//
// * Lambda provisioned concurrency - The resource type is function and the
// unique identifier is the function name with a function version or alias
// name suffix that is not $LATEST. Example: function:my-function:prod or
// function:my-function:1.
//
// * Amazon Keyspaces table - The resource type is table and the unique identifier
// is the table name. Example: keyspace/mykeyspace/table/mytable.
//
// * Amazon MSK cluster - The resource type and unique identifier are specified
// using the cluster ARN. Example: arn:aws:kafka:us-east-1:123456789012:cluster/demo-cluster-1/6357e0b2-0e6a-4b86-a0b4-70df934c2e31-5.
ResourceId *string `min:"1" type:"string"`
// The scalable dimension. This string consists of the service namespace, resource
// type, and scaling property. If you specify a scalable dimension, you must
// also specify a resource ID.
//
// * ecs:service:DesiredCount - The desired task count of an ECS service.
//
// * ec2:spot-fleet-request:TargetCapacity - The target capacity of a Spot
// Fleet request.
//
// * elasticmapreduce:instancegroup:InstanceCount - The instance count of
// an EMR Instance Group.
//
// * appstream:fleet:DesiredCapacity - The desired capacity of an AppStream
// 2.0 fleet.
//
// * dynamodb:table:ReadCapacityUnits - The provisioned read capacity for
// a DynamoDB table.
//
// * dynamodb:table:WriteCapacityUnits - The provisioned write capacity for
// a DynamoDB table.
//
// * dynamodb:index:ReadCapacityUnits - The provisioned read capacity for
// a DynamoDB global secondary index.
//
// * dynamodb:index:WriteCapacityUnits - The provisioned write capacity for
// a DynamoDB global secondary index.
//
// * rds:cluster:ReadReplicaCount - The count of Aurora Replicas in an Aurora
// DB cluster. Available for Aurora MySQL-compatible edition and Aurora PostgreSQL-compatible
// edition.
//
// * sagemaker:variant:DesiredInstanceCount - The number of EC2 instances
// for an Amazon SageMaker model endpoint variant.
//
// * custom-resource:ResourceType:Property - The scalable dimension for a
// custom resource provided by your own application or service.
//
// * comprehend:document-classifier-endpoint:DesiredInferenceUnits - The
// number of inference units for an Amazon Comprehend document classification
// endpoint.
//
// * comprehend:entity-recognizer-endpoint:DesiredInferenceUnits - The number
// of inference units for an Amazon Comprehend entity recognizer endpoint.
//
// * lambda:function:ProvisionedConcurrency - The provisioned concurrency
// for a Lambda function.
//
// * cassandra:table:ReadCapacityUnits - The provisioned read capacity for
// an Amazon Keyspaces table.
//
// * cassandra:table:WriteCapacityUnits - The provisioned write capacity
// for an Amazon Keyspaces table.
//
// * kafka:broker-storage:VolumeSize - The provisioned volume size (in GiB)
// for brokers in an Amazon MSK cluster.
ScalableDimension *string `type:"string" enum:"ScalableDimension"`
// The names of the scheduled actions to describe.
ScheduledActionNames []*string `type:"list"`
// The namespace of the AWS service that provides the resource. For a resource
// provided by your own application or service, use custom-resource instead.
//
// ServiceNamespace is a required field
ServiceNamespace *string `type:"string" required:"true" enum:"ServiceNamespace"`
}
// String returns the string representation
func (s DescribeScheduledActionsInput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s DescribeScheduledActionsInput) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
func (s *DescribeScheduledActionsInput) Validate() error {
invalidParams := request.ErrInvalidParams{Context: "DescribeScheduledActionsInput"}
if s.ResourceId != nil && len(*s.ResourceId) < 1 {
invalidParams.Add(request.NewErrParamMinLen("ResourceId", 1))
}
if s.ServiceNamespace == nil {
invalidParams.Add(request.NewErrParamRequired("ServiceNamespace"))
}
if invalidParams.Len() > 0 {
return invalidParams
}
return nil
}
// SetMaxResults sets the MaxResults field's value.
func (s *DescribeScheduledActionsInput) SetMaxResults(v int64) *DescribeScheduledActionsInput {
s.MaxResults = &v
return s
}
// SetNextToken sets the NextToken field's value.
func (s *DescribeScheduledActionsInput) SetNextToken(v string) *DescribeScheduledActionsInput {
s.NextToken = &v
return s
}
// SetResourceId sets the ResourceId field's value.
func (s *DescribeScheduledActionsInput) SetResourceId(v string) *DescribeScheduledActionsInput {
s.ResourceId = &v
return s
}
// SetScalableDimension sets the ScalableDimension field's value.
func (s *DescribeScheduledActionsInput) SetScalableDimension(v string) *DescribeScheduledActionsInput {
s.ScalableDimension = &v
return s
}
// SetScheduledActionNames sets the ScheduledActionNames field's value.
func (s *DescribeScheduledActionsInput) SetScheduledActionNames(v []*string) *DescribeScheduledActionsInput {
s.ScheduledActionNames = v
return s
}
// SetServiceNamespace sets the ServiceNamespace field's value.
func (s *DescribeScheduledActionsInput) SetServiceNamespace(v string) *DescribeScheduledActionsInput {
s.ServiceNamespace = &v
return s
}
type DescribeScheduledActionsOutput struct {
_ struct{} `type:"structure"`
// The token required to get the next set of results. This value is null if
// there are no more results to return.
NextToken *string `type:"string"`
// Information about the scheduled actions.
ScheduledActions []*ScheduledAction `type:"list"`
}
// String returns the string representation
func (s DescribeScheduledActionsOutput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s DescribeScheduledActionsOutput) GoString() string {
return s.String()
}
// SetNextToken sets the NextToken field's value.
func (s *DescribeScheduledActionsOutput) SetNextToken(v string) *DescribeScheduledActionsOutput {
s.NextToken = &v
return s
}
// SetScheduledActions sets the ScheduledActions field's value.
func (s *DescribeScheduledActionsOutput) SetScheduledActions(v []*ScheduledAction) *DescribeScheduledActionsOutput {
s.ScheduledActions = v
return s
}
// Failed access to resources caused an exception. This exception is thrown
// when Application Auto Scaling is unable to retrieve the alarms associated
// with a scaling policy due to a client error, for example, if the role ARN
// specified for a scalable target does not have permission to call the CloudWatch
// DescribeAlarms (https://docs.aws.amazon.com/AmazonCloudWatch/latest/APIReference/API_DescribeAlarms.html)
// on your behalf.
type FailedResourceAccessException struct {
_ struct{} `type:"structure"`
RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"Message" type:"string"`
}
// String returns the string representation
func (s FailedResourceAccessException) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s FailedResourceAccessException) GoString() string {
return s.String()
}
func newErrorFailedResourceAccessException(v protocol.ResponseMetadata) error {
return &FailedResourceAccessException{
RespMetadata: v,
}
}
// Code returns the exception type name.
func (s *FailedResourceAccessException) Code() string {
return "FailedResourceAccessException"
}
// Message returns the exception's message.
func (s *FailedResourceAccessException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
return ""
}
// OrigErr always returns nil, satisfies awserr.Error interface.
func (s *FailedResourceAccessException) OrigErr() error {
return nil
}
func (s *FailedResourceAccessException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
func (s *FailedResourceAccessException) StatusCode() int {
return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
func (s *FailedResourceAccessException) RequestID() string {
return s.RespMetadata.RequestID
}
// The service encountered an internal error.
type InternalServiceException struct {
_ struct{} `type:"structure"`
RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"Message" type:"string"`
}
// String returns the string representation
func (s InternalServiceException) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s InternalServiceException) GoString() string {
return s.String()
}
func newErrorInternalServiceException(v protocol.ResponseMetadata) error {
return &InternalServiceException{
RespMetadata: v,
}
}
// Code returns the exception type name.
func (s *InternalServiceException) Code() string {
return "InternalServiceException"
}
// Message returns the exception's message.
func (s *InternalServiceException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
return ""
}
// OrigErr always returns nil, satisfies awserr.Error interface.
func (s *InternalServiceException) OrigErr() error {
return nil
}
func (s *InternalServiceException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
func (s *InternalServiceException) StatusCode() int {
return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
func (s *InternalServiceException) RequestID() string {
return s.RespMetadata.RequestID
}
// The next token supplied was invalid.
type InvalidNextTokenException struct {
_ struct{} `type:"structure"`
RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"Message" type:"string"`
}
// String returns the string representation
func (s InvalidNextTokenException) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s InvalidNextTokenException) GoString() string {
return s.String()
}
func newErrorInvalidNextTokenException(v protocol.ResponseMetadata) error {
return &InvalidNextTokenException{
RespMetadata: v,
}
}
// Code returns the exception type name.
func (s *InvalidNextTokenException) Code() string {
return "InvalidNextTokenException"
}
// Message returns the exception's message.
func (s *InvalidNextTokenException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
return ""
}
// OrigErr always returns nil, satisfies awserr.Error interface.
func (s *InvalidNextTokenException) OrigErr() error {
return nil
}
func (s *InvalidNextTokenException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
func (s *InvalidNextTokenException) StatusCode() int {
return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
func (s *InvalidNextTokenException) RequestID() string {
return s.RespMetadata.RequestID
}
// A per-account resource limit is exceeded. For more information, see Application
// Auto Scaling service quotas (https://docs.aws.amazon.com/autoscaling/application/userguide/application-auto-scaling-limits.html).
type LimitExceededException struct {
_ struct{} `type:"structure"`
RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"Message" type:"string"`
}
// String returns the string representation
func (s LimitExceededException) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s LimitExceededException) GoString() string {
return s.String()
}
func newErrorLimitExceededException(v protocol.ResponseMetadata) error {
return &LimitExceededException{
RespMetadata: v,
}
}
// Code returns the exception type name.
func (s *LimitExceededException) Code() string {
return "LimitExceededException"
}
// Message returns the exception's message.
func (s *LimitExceededException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
return ""
}
// OrigErr always returns nil, satisfies awserr.Error interface.
func (s *LimitExceededException) OrigErr() error {
return nil
}
func (s *LimitExceededException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
func (s *LimitExceededException) StatusCode() int {
return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
func (s *LimitExceededException) RequestID() string {
return s.RespMetadata.RequestID
}
// Describes the dimension names and values associated with a metric.
type MetricDimension struct {
_ struct{} `type:"structure"`
// The name of the dimension.
//
// Name is a required field
Name *string `type:"string" required:"true"`
// The value of the dimension.
//
// Value is a required field
Value *string `type:"string" required:"true"`
}
// String returns the string representation
func (s MetricDimension) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s MetricDimension) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
func (s *MetricDimension) Validate() error {
invalidParams := request.ErrInvalidParams{Context: "MetricDimension"}
if s.Name == nil {
invalidParams.Add(request.NewErrParamRequired("Name"))
}
if s.Value == nil {
invalidParams.Add(request.NewErrParamRequired("Value"))
}
if invalidParams.Len() > 0 {
return invalidParams
}
return nil
}
// SetName sets the Name field's value.
func (s *MetricDimension) SetName(v string) *MetricDimension {
s.Name = &v
return s
}
// SetValue sets the Value field's value.
func (s *MetricDimension) SetValue(v string) *MetricDimension {
s.Value = &v
return s
}
// The specified object could not be found. For any operation that depends on
// the existence of a scalable target, this exception is thrown if the scalable
// target with the specified service namespace, resource ID, and scalable dimension
// does not exist. For any operation that deletes or deregisters a resource,
// this exception is thrown if the resource cannot be found.
type ObjectNotFoundException struct {
_ struct{} `type:"structure"`
RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"Message" type:"string"`
}
// String returns the string representation
func (s ObjectNotFoundException) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s ObjectNotFoundException) GoString() string {
return s.String()
}
func newErrorObjectNotFoundException(v protocol.ResponseMetadata) error {
return &ObjectNotFoundException{
RespMetadata: v,
}
}
// Code returns the exception type name.
func (s *ObjectNotFoundException) Code() string {
return "ObjectNotFoundException"
}
// Message returns the exception's message.
func (s *ObjectNotFoundException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
return ""
}
// OrigErr always returns nil, satisfies awserr.Error interface.
func (s *ObjectNotFoundException) OrigErr() error {
return nil
}
func (s *ObjectNotFoundException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
func (s *ObjectNotFoundException) StatusCode() int {
return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
func (s *ObjectNotFoundException) RequestID() string {
return s.RespMetadata.RequestID
}
// Represents a predefined metric for a target tracking scaling policy to use
// with Application Auto Scaling.
//
// Only the AWS services that you're using send metrics to Amazon CloudWatch.
// To determine whether a desired metric already exists by looking up its namespace
// and dimension using the CloudWatch metrics dashboard in the console, follow
// the procedure in Building dashboards with CloudWatch (https://docs.aws.amazon.com/autoscaling/application/userguide/monitoring-cloudwatch.html)
// in the Application Auto Scaling User Guide.
type PredefinedMetricSpecification struct {
_ struct{} `type:"structure"`
// The metric type. The ALBRequestCountPerTarget metric type applies only to
// Spot Fleet requests and ECS services.
//
// PredefinedMetricType is a required field
PredefinedMetricType *string `type:"string" required:"true" enum:"MetricType"`
// Identifies the resource associated with the metric type. You can't specify
// a resource label unless the metric type is ALBRequestCountPerTarget and there
// is a target group attached to the Spot Fleet request or ECS service.
//
// You create the resource label by appending the final portion of the load
// balancer ARN and the final portion of the target group ARN into a single
// value, separated by a forward slash (/). The format is app/<load-balancer-name>/<load-balancer-id>/targetgroup/<target-group-name>/<target-group-id>,
// where:
//
// * app/<load-balancer-name>/<load-balancer-id> is the final portion of
// the load balancer ARN
//
// * targetgroup/<target-group-name>/<target-group-id> is the final portion
// of the target group ARN.
//
// This is an example: app/EC2Co-EcsEl-1TKLTMITMM0EO/f37c06a68c1748aa/targetgroup/EC2Co-Defau-LDNM7Q3ZH1ZN/6d4ea56ca2d6a18d.
//
// To find the ARN for an Application Load Balancer, use the DescribeLoadBalancers
// (https://docs.aws.amazon.com/elasticloadbalancing/latest/APIReference/API_DescribeLoadBalancers.html)
// API operation. To find the ARN for the target group, use the DescribeTargetGroups
// (https://docs.aws.amazon.com/elasticloadbalancing/latest/APIReference/API_DescribeTargetGroups.html)
// API operation.
ResourceLabel *string `min:"1" type:"string"`
}
// String returns the string representation
func (s PredefinedMetricSpecification) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s PredefinedMetricSpecification) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
func (s *PredefinedMetricSpecification) Validate() error {
invalidParams := request.ErrInvalidParams{Context: "PredefinedMetricSpecification"}
if s.PredefinedMetricType == nil {
invalidParams.Add(request.NewErrParamRequired("PredefinedMetricType"))
}
if s.ResourceLabel != nil && len(*s.ResourceLabel) < 1 {
invalidParams.Add(request.NewErrParamMinLen("ResourceLabel", 1))
}
if invalidParams.Len() > 0 {
return invalidParams
}
return nil
}
// SetPredefinedMetricType sets the PredefinedMetricType field's value.
func (s *PredefinedMetricSpecification) SetPredefinedMetricType(v string) *PredefinedMetricSpecification {
s.PredefinedMetricType = &v
return s
}
// SetResourceLabel sets the ResourceLabel field's value.
func (s *PredefinedMetricSpecification) SetResourceLabel(v string) *PredefinedMetricSpecification {
s.ResourceLabel = &v
return s
}
type PutScalingPolicyInput struct {
_ struct{} `type:"structure"`
// The name of the scaling policy.
//
// PolicyName is a required field
PolicyName *string `min:"1" type:"string" required:"true"`
// The policy type. This parameter is required if you are creating a scaling
// policy.
//
// The following policy types are supported:
//
// TargetTrackingScaling—Not supported for Amazon EMR
//
// StepScaling—Not supported for DynamoDB, Amazon Comprehend, Lambda, Amazon
// Keyspaces (for Apache Cassandra), or Amazon MSK.
//
// For more information, see Target tracking scaling policies (https://docs.aws.amazon.com/autoscaling/application/userguide/application-auto-scaling-target-tracking.html)
// and Step scaling policies (https://docs.aws.amazon.com/autoscaling/application/userguide/application-auto-scaling-step-scaling-policies.html)
// in the Application Auto Scaling User Guide.
PolicyType *string `type:"string" enum:"PolicyType"`
// The identifier of the resource associated with the scaling policy. This string
// consists of the resource type and unique identifier.
//
// * ECS service - The resource type is service and the unique identifier
// is the cluster name and service name. Example: service/default/sample-webapp.
//
// * Spot Fleet request - The resource type is spot-fleet-request and the
// unique identifier is the Spot Fleet request ID. Example: spot-fleet-request/sfr-73fbd2ce-aa30-494c-8788-1cee4EXAMPLE.
//
// * EMR cluster - The resource type is instancegroup and the unique identifier
// is the cluster ID and instance group ID. Example: instancegroup/j-2EEZNYKUA1NTV/ig-1791Y4E1L8YI0.
//
// * AppStream 2.0 fleet - The resource type is fleet and the unique identifier
// is the fleet name. Example: fleet/sample-fleet.
//
// * DynamoDB table - The resource type is table and the unique identifier
// is the table name. Example: table/my-table.
//
// * DynamoDB global secondary index - The resource type is index and the
// unique identifier is the index name. Example: table/my-table/index/my-table-index.
//
// * Aurora DB cluster - The resource type is cluster and the unique identifier
// is the cluster name. Example: cluster:my-db-cluster.
//
// * Amazon SageMaker endpoint variant - The resource type is variant and
// the unique identifier is the resource ID. Example: endpoint/my-end-point/variant/KMeansClustering.
//
// * Custom resources are not supported with a resource type. This parameter
// must specify the OutputValue from the CloudFormation template stack used
// to access the resources. The unique identifier is defined by the service
// provider. More information is available in our GitHub repository (https://github.com/aws/aws-auto-scaling-custom-resource).
//
// * Amazon Comprehend document classification endpoint - The resource type
// and unique identifier are specified using the endpoint ARN. Example: arn:aws:comprehend:us-west-2:123456789012:document-classifier-endpoint/EXAMPLE.
//
// * Amazon Comprehend entity recognizer endpoint - The resource type and
// unique identifier are specified using the endpoint ARN. Example: arn:aws:comprehend:us-west-2:123456789012:entity-recognizer-endpoint/EXAMPLE.
//
// * Lambda provisioned concurrency - The resource type is function and the
// unique identifier is the function name with a function version or alias
// name suffix that is not $LATEST. Example: function:my-function:prod or
// function:my-function:1.
//
// * Amazon Keyspaces table - The resource type is table and the unique identifier
// is the table name. Example: keyspace/mykeyspace/table/mytable.
//
// * Amazon MSK cluster - The resource type and unique identifier are specified
// using the cluster ARN. Example: arn:aws:kafka:us-east-1:123456789012:cluster/demo-cluster-1/6357e0b2-0e6a-4b86-a0b4-70df934c2e31-5.
//
// ResourceId is a required field
ResourceId *string `min:"1" type:"string" required:"true"`
// The scalable dimension. This string consists of the service namespace, resource
// type, and scaling property.
//
// * ecs:service:DesiredCount - The desired task count of an ECS service.
//
// * ec2:spot-fleet-request:TargetCapacity - The target capacity of a Spot
// Fleet request.
//
// * elasticmapreduce:instancegroup:InstanceCount - The instance count of
// an EMR Instance Group.
//
// * appstream:fleet:DesiredCapacity - The desired capacity of an AppStream
// 2.0 fleet.
//
// * dynamodb:table:ReadCapacityUnits - The provisioned read capacity for
// a DynamoDB table.
//
// * dynamodb:table:WriteCapacityUnits - The provisioned write capacity for
// a DynamoDB table.
//
// * dynamodb:index:ReadCapacityUnits - The provisioned read capacity for
// a DynamoDB global secondary index.
//
// * dynamodb:index:WriteCapacityUnits - The provisioned write capacity for
// a DynamoDB global secondary index.
//
// * rds:cluster:ReadReplicaCount - The count of Aurora Replicas in an Aurora
// DB cluster. Available for Aurora MySQL-compatible edition and Aurora PostgreSQL-compatible
// edition.
//
// * sagemaker:variant:DesiredInstanceCount - The number of EC2 instances
// for an Amazon SageMaker model endpoint variant.
//
// * custom-resource:ResourceType:Property - The scalable dimension for a
// custom resource provided by your own application or service.
//
// * comprehend:document-classifier-endpoint:DesiredInferenceUnits - The
// number of inference units for an Amazon Comprehend document classification
// endpoint.
//
// * comprehend:entity-recognizer-endpoint:DesiredInferenceUnits - The number
// of inference units for an Amazon Comprehend entity recognizer endpoint.
//
// * lambda:function:ProvisionedConcurrency - The provisioned concurrency
// for a Lambda function.
//
// * cassandra:table:ReadCapacityUnits - The provisioned read capacity for
// an Amazon Keyspaces table.
//
// * cassandra:table:WriteCapacityUnits - The provisioned write capacity
// for an Amazon Keyspaces table.
//
// * kafka:broker-storage:VolumeSize - The provisioned volume size (in GiB)
// for brokers in an Amazon MSK cluster.
//
// ScalableDimension is a required field
ScalableDimension *string `type:"string" required:"true" enum:"ScalableDimension"`
// The namespace of the AWS service that provides the resource. For a resource
// provided by your own application or service, use custom-resource instead.
//
// ServiceNamespace is a required field
ServiceNamespace *string `type:"string" required:"true" enum:"ServiceNamespace"`
// A step scaling policy.
//
// This parameter is required if you are creating a policy and the policy type
// is StepScaling.
StepScalingPolicyConfiguration *StepScalingPolicyConfiguration `type:"structure"`
// A target tracking scaling policy. Includes support for predefined or customized
// metrics.
//
// This parameter is required if you are creating a policy and the policy type
// is TargetTrackingScaling.
TargetTrackingScalingPolicyConfiguration *TargetTrackingScalingPolicyConfiguration `type:"structure"`
}
// String returns the string representation
func (s PutScalingPolicyInput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s PutScalingPolicyInput) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
func (s *PutScalingPolicyInput) Validate() error {
invalidParams := request.ErrInvalidParams{Context: "PutScalingPolicyInput"}
if s.PolicyName == nil {
invalidParams.Add(request.NewErrParamRequired("PolicyName"))
}
if s.PolicyName != nil && len(*s.PolicyName) < 1 {
invalidParams.Add(request.NewErrParamMinLen("PolicyName", 1))
}
if s.ResourceId == nil {
invalidParams.Add(request.NewErrParamRequired("ResourceId"))
}
if s.ResourceId != nil && len(*s.ResourceId) < 1 {
invalidParams.Add(request.NewErrParamMinLen("ResourceId", 1))
}
if s.ScalableDimension == nil {
invalidParams.Add(request.NewErrParamRequired("ScalableDimension"))
}
if s.ServiceNamespace == nil {
invalidParams.Add(request.NewErrParamRequired("ServiceNamespace"))
}
if s.StepScalingPolicyConfiguration != nil {
if err := s.StepScalingPolicyConfiguration.Validate(); err != nil {
invalidParams.AddNested("StepScalingPolicyConfiguration", err.(request.ErrInvalidParams))
}
}
if s.TargetTrackingScalingPolicyConfiguration != nil {
if err := s.TargetTrackingScalingPolicyConfiguration.Validate(); err != nil {
invalidParams.AddNested("TargetTrackingScalingPolicyConfiguration", err.(request.ErrInvalidParams))
}
}
if invalidParams.Len() > 0 {
return invalidParams
}
return nil
}
// SetPolicyName sets the PolicyName field's value.
func (s *PutScalingPolicyInput) SetPolicyName(v string) *PutScalingPolicyInput {
s.PolicyName = &v
return s
}
// SetPolicyType sets the PolicyType field's value.
func (s *PutScalingPolicyInput) SetPolicyType(v string) *PutScalingPolicyInput {
s.PolicyType = &v
return s
}
// SetResourceId sets the ResourceId field's value.
func (s *PutScalingPolicyInput) SetResourceId(v string) *PutScalingPolicyInput {
s.ResourceId = &v
return s
}
// SetScalableDimension sets the ScalableDimension field's value.
func (s *PutScalingPolicyInput) SetScalableDimension(v string) *PutScalingPolicyInput {
s.ScalableDimension = &v
return s
}
// SetServiceNamespace sets the ServiceNamespace field's value.
func (s *PutScalingPolicyInput) SetServiceNamespace(v string) *PutScalingPolicyInput {
s.ServiceNamespace = &v
return s
}
// SetStepScalingPolicyConfiguration sets the StepScalingPolicyConfiguration field's value.
func (s *PutScalingPolicyInput) SetStepScalingPolicyConfiguration(v *StepScalingPolicyConfiguration) *PutScalingPolicyInput {
s.StepScalingPolicyConfiguration = v
return s
}
// SetTargetTrackingScalingPolicyConfiguration sets the TargetTrackingScalingPolicyConfiguration field's value.
func (s *PutScalingPolicyInput) SetTargetTrackingScalingPolicyConfiguration(v *TargetTrackingScalingPolicyConfiguration) *PutScalingPolicyInput {
s.TargetTrackingScalingPolicyConfiguration = v
return s
}
type PutScalingPolicyOutput struct {
_ struct{} `type:"structure"`
// The CloudWatch alarms created for the target tracking scaling policy.
Alarms []*Alarm `type:"list"`
// The Amazon Resource Name (ARN) of the resulting scaling policy.
//
// PolicyARN is a required field
PolicyARN *string `min:"1" type:"string" required:"true"`
}
// String returns the string representation
func (s PutScalingPolicyOutput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s PutScalingPolicyOutput) GoString() string {
return s.String()
}
// SetAlarms sets the Alarms field's value.
func (s *PutScalingPolicyOutput) SetAlarms(v []*Alarm) *PutScalingPolicyOutput {
s.Alarms = v
return s
}
// SetPolicyARN sets the PolicyARN field's value.
func (s *PutScalingPolicyOutput) SetPolicyARN(v string) *PutScalingPolicyOutput {
s.PolicyARN = &v
return s
}
type PutScheduledActionInput struct {
_ struct{} `type:"structure"`
// The date and time for the recurring schedule to end, in UTC.
EndTime *time.Time `type:"timestamp"`
// The identifier of the resource associated with the scheduled action. This
// string consists of the resource type and unique identifier.
//
// * ECS service - The resource type is service and the unique identifier
// is the cluster name and service name. Example: service/default/sample-webapp.
//
// * Spot Fleet request - The resource type is spot-fleet-request and the
// unique identifier is the Spot Fleet request ID. Example: spot-fleet-request/sfr-73fbd2ce-aa30-494c-8788-1cee4EXAMPLE.
//
// * EMR cluster - The resource type is instancegroup and the unique identifier
// is the cluster ID and instance group ID. Example: instancegroup/j-2EEZNYKUA1NTV/ig-1791Y4E1L8YI0.
//
// * AppStream 2.0 fleet - The resource type is fleet and the unique identifier
// is the fleet name. Example: fleet/sample-fleet.
//
// * DynamoDB table - The resource type is table and the unique identifier
// is the table name. Example: table/my-table.
//
// * DynamoDB global secondary index - The resource type is index and the
// unique identifier is the index name. Example: table/my-table/index/my-table-index.
//
// * Aurora DB cluster - The resource type is cluster and the unique identifier
// is the cluster name. Example: cluster:my-db-cluster.
//
// * Amazon SageMaker endpoint variant - The resource type is variant and
// the unique identifier is the resource ID. Example: endpoint/my-end-point/variant/KMeansClustering.
//
// * Custom resources are not supported with a resource type. This parameter
// must specify the OutputValue from the CloudFormation template stack used
// to access the resources. The unique identifier is defined by the service
// provider. More information is available in our GitHub repository (https://github.com/aws/aws-auto-scaling-custom-resource).
//
// * Amazon Comprehend document classification endpoint - The resource type
// and unique identifier are specified using the endpoint ARN. Example: arn:aws:comprehend:us-west-2:123456789012:document-classifier-endpoint/EXAMPLE.
//
// * Amazon Comprehend entity recognizer endpoint - The resource type and
// unique identifier are specified using the endpoint ARN. Example: arn:aws:comprehend:us-west-2:123456789012:entity-recognizer-endpoint/EXAMPLE.
//
// * Lambda provisioned concurrency - The resource type is function and the
// unique identifier is the function name with a function version or alias
// name suffix that is not $LATEST. Example: function:my-function:prod or
// function:my-function:1.
//
// * Amazon Keyspaces table - The resource type is table and the unique identifier
// is the table name. Example: keyspace/mykeyspace/table/mytable.
//
// * Amazon MSK cluster - The resource type and unique identifier are specified
// using the cluster ARN. Example: arn:aws:kafka:us-east-1:123456789012:cluster/demo-cluster-1/6357e0b2-0e6a-4b86-a0b4-70df934c2e31-5.
//
// ResourceId is a required field
ResourceId *string `min:"1" type:"string" required:"true"`
// The scalable dimension. This string consists of the service namespace, resource
// type, and scaling property.
//
// * ecs:service:DesiredCount - The desired task count of an ECS service.
//
// * ec2:spot-fleet-request:TargetCapacity - The target capacity of a Spot
// Fleet request.
//
// * elasticmapreduce:instancegroup:InstanceCount - The instance count of
// an EMR Instance Group.
//
// * appstream:fleet:DesiredCapacity - The desired capacity of an AppStream
// 2.0 fleet.
//
// * dynamodb:table:ReadCapacityUnits - The provisioned read capacity for
// a DynamoDB table.
//
// * dynamodb:table:WriteCapacityUnits - The provisioned write capacity for
// a DynamoDB table.
//
// * dynamodb:index:ReadCapacityUnits - The provisioned read capacity for
// a DynamoDB global secondary index.
//
// * dynamodb:index:WriteCapacityUnits - The provisioned write capacity for
// a DynamoDB global secondary index.
//
// * rds:cluster:ReadReplicaCount - The count of Aurora Replicas in an Aurora
// DB cluster. Available for Aurora MySQL-compatible edition and Aurora PostgreSQL-compatible
// edition.
//
// * sagemaker:variant:DesiredInstanceCount - The number of EC2 instances
// for an Amazon SageMaker model endpoint variant.
//
// * custom-resource:ResourceType:Property - The scalable dimension for a
// custom resource provided by your own application or service.
//
// * comprehend:document-classifier-endpoint:DesiredInferenceUnits - The
// number of inference units for an Amazon Comprehend document classification
// endpoint.
//
// * comprehend:entity-recognizer-endpoint:DesiredInferenceUnits - The number
// of inference units for an Amazon Comprehend entity recognizer endpoint.
//
// * lambda:function:ProvisionedConcurrency - The provisioned concurrency
// for a Lambda function.
//
// * cassandra:table:ReadCapacityUnits - The provisioned read capacity for
// an Amazon Keyspaces table.
//
// * cassandra:table:WriteCapacityUnits - The provisioned write capacity
// for an Amazon Keyspaces table.
//
// * kafka:broker-storage:VolumeSize - The provisioned volume size (in GiB)
// for brokers in an Amazon MSK cluster.
//
// ScalableDimension is a required field
ScalableDimension *string `type:"string" required:"true" enum:"ScalableDimension"`
// The new minimum and maximum capacity. You can set both values or just one.
// At the scheduled time, if the current capacity is below the minimum capacity,
// Application Auto Scaling scales out to the minimum capacity. If the current
// capacity is above the maximum capacity, Application Auto Scaling scales in
// to the maximum capacity.
ScalableTargetAction *ScalableTargetAction `type:"structure"`
// The schedule for this action. The following formats are supported:
//
// * At expressions - "at(yyyy-mm-ddThh:mm:ss)"
//
// * Rate expressions - "rate(value unit)"
//
// * Cron expressions - "cron(fields)"
//
// At expressions are useful for one-time schedules. Cron expressions are useful
// for scheduled actions that run periodically at a specified date and time,
// and rate expressions are useful for scheduled actions that run at a regular
// interval.
//
// At and cron expressions use Universal Coordinated Time (UTC) by default.
//
// The cron format consists of six fields separated by white spaces: [Minutes]
// [Hours] [Day_of_Month] [Month] [Day_of_Week] [Year].
//
// For rate expressions, value is a positive integer and unit is minute | minutes
// | hour | hours | day | days.
//
// For more information and examples, see Example scheduled actions for Application
// Auto Scaling (https://docs.aws.amazon.com/autoscaling/application/userguide/examples-scheduled-actions.html)
// in the Application Auto Scaling User Guide.
Schedule *string `min:"1" type:"string"`
// The name of the scheduled action. This name must be unique among all other
// scheduled actions on the specified scalable target.
//
// ScheduledActionName is a required field
ScheduledActionName *string `min:"1" type:"string" required:"true"`
// The namespace of the AWS service that provides the resource. For a resource
// provided by your own application or service, use custom-resource instead.
//
// ServiceNamespace is a required field
ServiceNamespace *string `type:"string" required:"true" enum:"ServiceNamespace"`
// The date and time for this scheduled action to start, in UTC.
StartTime *time.Time `type:"timestamp"`
// Specifies the time zone used when setting a scheduled action by using an
// at or cron expression. If a time zone is not provided, UTC is used by default.
//
// Valid values are the canonical names of the IANA time zones supported by
// Joda-Time (such as Etc/GMT+9 or Pacific/Tahiti). For more information, see
// https://www.joda.org/joda-time/timezones.html (https://www.joda.org/joda-time/timezones.html).
Timezone *string `min:"1" type:"string"`
}
// String returns the string representation
func (s PutScheduledActionInput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s PutScheduledActionInput) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
func (s *PutScheduledActionInput) Validate() error {
invalidParams := request.ErrInvalidParams{Context: "PutScheduledActionInput"}
if s.ResourceId == nil {
invalidParams.Add(request.NewErrParamRequired("ResourceId"))
}
if s.ResourceId != nil && len(*s.ResourceId) < 1 {
invalidParams.Add(request.NewErrParamMinLen("ResourceId", 1))
}
if s.ScalableDimension == nil {
invalidParams.Add(request.NewErrParamRequired("ScalableDimension"))
}
if s.Schedule != nil && len(*s.Schedule) < 1 {
invalidParams.Add(request.NewErrParamMinLen("Schedule", 1))
}
if s.ScheduledActionName == nil {
invalidParams.Add(request.NewErrParamRequired("ScheduledActionName"))
}
if s.ScheduledActionName != nil && len(*s.ScheduledActionName) < 1 {
invalidParams.Add(request.NewErrParamMinLen("ScheduledActionName", 1))
}
if s.ServiceNamespace == nil {
invalidParams.Add(request.NewErrParamRequired("ServiceNamespace"))
}
if s.Timezone != nil && len(*s.Timezone) < 1 {
invalidParams.Add(request.NewErrParamMinLen("Timezone", 1))
}
if invalidParams.Len() > 0 {
return invalidParams
}
return nil
}
// SetEndTime sets the EndTime field's value.
func (s *PutScheduledActionInput) SetEndTime(v time.Time) *PutScheduledActionInput {
s.EndTime = &v
return s
}
// SetResourceId sets the ResourceId field's value.
func (s *PutScheduledActionInput) SetResourceId(v string) *PutScheduledActionInput {
s.ResourceId = &v
return s
}
// SetScalableDimension sets the ScalableDimension field's value.
func (s *PutScheduledActionInput) SetScalableDimension(v string) *PutScheduledActionInput {
s.ScalableDimension = &v
return s
}
// SetScalableTargetAction sets the ScalableTargetAction field's value.
func (s *PutScheduledActionInput) SetScalableTargetAction(v *ScalableTargetAction) *PutScheduledActionInput {
s.ScalableTargetAction = v
return s
}
// SetSchedule sets the Schedule field's value.
func (s *PutScheduledActionInput) SetSchedule(v string) *PutScheduledActionInput {
s.Schedule = &v
return s
}
// SetScheduledActionName sets the ScheduledActionName field's value.
func (s *PutScheduledActionInput) SetScheduledActionName(v string) *PutScheduledActionInput {
s.ScheduledActionName = &v
return s
}
// SetServiceNamespace sets the ServiceNamespace field's value.
func (s *PutScheduledActionInput) SetServiceNamespace(v string) *PutScheduledActionInput {
s.ServiceNamespace = &v
return s
}
// SetStartTime sets the StartTime field's value.
func (s *PutScheduledActionInput) SetStartTime(v time.Time) *PutScheduledActionInput {
s.StartTime = &v
return s
}
// SetTimezone sets the Timezone field's value.
func (s *PutScheduledActionInput) SetTimezone(v string) *PutScheduledActionInput {
s.Timezone = &v
return s
}
type PutScheduledActionOutput struct {
_ struct{} `type:"structure"`
}
// String returns the string representation
func (s PutScheduledActionOutput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s PutScheduledActionOutput) GoString() string {
return s.String()
}
type RegisterScalableTargetInput struct {
_ struct{} `type:"structure"`
// The maximum value that you plan to scale out to. When a scaling policy is
// in effect, Application Auto Scaling can scale out (expand) as needed to the
// maximum capacity limit in response to changing demand. This property is required
// when registering a new scalable target.
//
// Although you can specify a large maximum capacity, note that service quotas
// may impose lower limits. Each service has its own default quotas for the
// maximum capacity of the resource. If you want to specify a higher limit,
// you can request an increase. For more information, consult the documentation
// for that service. For information about the default quotas for each service,
// see Service Endpoints and Quotas (https://docs.aws.amazon.com/general/latest/gr/aws-service-information.html)
// in the Amazon Web Services General Reference.
MaxCapacity *int64 `type:"integer"`
// The minimum value that you plan to scale in to. When a scaling policy is
// in effect, Application Auto Scaling can scale in (contract) as needed to
// the minimum capacity limit in response to changing demand. This property
// is required when registering a new scalable target.
//
// For certain resources, the minimum value allowed is 0. This includes Lambda
// provisioned concurrency, Spot Fleet, ECS services, Aurora DB clusters, EMR
// clusters, and custom resources. For all other resources, the minimum value
// allowed is 1.
MinCapacity *int64 `type:"integer"`
// The identifier of the resource that is associated with the scalable target.
// This string consists of the resource type and unique identifier.
//
// * ECS service - The resource type is service and the unique identifier
// is the cluster name and service name. Example: service/default/sample-webapp.
//
// * Spot Fleet request - The resource type is spot-fleet-request and the
// unique identifier is the Spot Fleet request ID. Example: spot-fleet-request/sfr-73fbd2ce-aa30-494c-8788-1cee4EXAMPLE.
//
// * EMR cluster - The resource type is instancegroup and the unique identifier
// is the cluster ID and instance group ID. Example: instancegroup/j-2EEZNYKUA1NTV/ig-1791Y4E1L8YI0.
//
// * AppStream 2.0 fleet - The resource type is fleet and the unique identifier
// is the fleet name. Example: fleet/sample-fleet.
//
// * DynamoDB table - The resource type is table and the unique identifier
// is the table name. Example: table/my-table.
//
// * DynamoDB global secondary index - The resource type is index and the
// unique identifier is the index name. Example: table/my-table/index/my-table-index.
//
// * Aurora DB cluster - The resource type is cluster and the unique identifier
// is the cluster name. Example: cluster:my-db-cluster.
//
// * Amazon SageMaker endpoint variant - The resource type is variant and
// the unique identifier is the resource ID. Example: endpoint/my-end-point/variant/KMeansClustering.
//
// * Custom resources are not supported with a resource type. This parameter
// must specify the OutputValue from the CloudFormation template stack used
// to access the resources. The unique identifier is defined by the service
// provider. More information is available in our GitHub repository (https://github.com/aws/aws-auto-scaling-custom-resource).
//
// * Amazon Comprehend document classification endpoint - The resource type
// and unique identifier are specified using the endpoint ARN. Example: arn:aws:comprehend:us-west-2:123456789012:document-classifier-endpoint/EXAMPLE.
//
// * Amazon Comprehend entity recognizer endpoint - The resource type and
// unique identifier are specified using the endpoint ARN. Example: arn:aws:comprehend:us-west-2:123456789012:entity-recognizer-endpoint/EXAMPLE.
//
// * Lambda provisioned concurrency - The resource type is function and the
// unique identifier is the function name with a function version or alias
// name suffix that is not $LATEST. Example: function:my-function:prod or
// function:my-function:1.
//
// * Amazon Keyspaces table - The resource type is table and the unique identifier
// is the table name. Example: keyspace/mykeyspace/table/mytable.
//
// * Amazon MSK cluster - The resource type and unique identifier are specified
// using the cluster ARN. Example: arn:aws:kafka:us-east-1:123456789012:cluster/demo-cluster-1/6357e0b2-0e6a-4b86-a0b4-70df934c2e31-5.
//
// ResourceId is a required field
ResourceId *string `min:"1" type:"string" required:"true"`
// This parameter is required for services that do not support service-linked
// roles (such as Amazon EMR), and it must specify the ARN of an IAM role that
// allows Application Auto Scaling to modify the scalable target on your behalf.
//
// If the service supports service-linked roles, Application Auto Scaling uses
// a service-linked role, which it creates if it does not yet exist. For more
// information, see Application Auto Scaling IAM roles (https://docs.aws.amazon.com/autoscaling/application/userguide/security_iam_service-with-iam.html#security_iam_service-with-iam-roles).
RoleARN *string `min:"1" type:"string"`
// The scalable dimension associated with the scalable target. This string consists
// of the service namespace, resource type, and scaling property.
//
// * ecs:service:DesiredCount - The desired task count of an ECS service.
//
// * ec2:spot-fleet-request:TargetCapacity - The target capacity of a Spot
// Fleet request.
//
// * elasticmapreduce:instancegroup:InstanceCount - The instance count of
// an EMR Instance Group.
//
// * appstream:fleet:DesiredCapacity - The desired capacity of an AppStream
// 2.0 fleet.
//
// * dynamodb:table:ReadCapacityUnits - The provisioned read capacity for
// a DynamoDB table.
//
// * dynamodb:table:WriteCapacityUnits - The provisioned write capacity for
// a DynamoDB table.
//
// * dynamodb:index:ReadCapacityUnits - The provisioned read capacity for
// a DynamoDB global secondary index.
//
// * dynamodb:index:WriteCapacityUnits - The provisioned write capacity for
// a DynamoDB global secondary index.
//
// * rds:cluster:ReadReplicaCount - The count of Aurora Replicas in an Aurora
// DB cluster. Available for Aurora MySQL-compatible edition and Aurora PostgreSQL-compatible
// edition.
//
// * sagemaker:variant:DesiredInstanceCount - The number of EC2 instances
// for an Amazon SageMaker model endpoint variant.
//
// * custom-resource:ResourceType:Property - The scalable dimension for a
// custom resource provided by your own application or service.
//
// * comprehend:document-classifier-endpoint:DesiredInferenceUnits - The
// number of inference units for an Amazon Comprehend document classification
// endpoint.
//
// * comprehend:entity-recognizer-endpoint:DesiredInferenceUnits - The number
// of inference units for an Amazon Comprehend entity recognizer endpoint.
//
// * lambda:function:ProvisionedConcurrency - The provisioned concurrency
// for a Lambda function.
//
// * cassandra:table:ReadCapacityUnits - The provisioned read capacity for
// an Amazon Keyspaces table.
//
// * cassandra:table:WriteCapacityUnits - The provisioned write capacity
// for an Amazon Keyspaces table.
//
// * kafka:broker-storage:VolumeSize - The provisioned volume size (in GiB)
// for brokers in an Amazon MSK cluster.
//
// ScalableDimension is a required field
ScalableDimension *string `type:"string" required:"true" enum:"ScalableDimension"`
// The namespace of the AWS service that provides the resource. For a resource
// provided by your own application or service, use custom-resource instead.
//
// ServiceNamespace is a required field
ServiceNamespace *string `type:"string" required:"true" enum:"ServiceNamespace"`
// An embedded object that contains attributes and attribute values that are
// used to suspend and resume automatic scaling. Setting the value of an attribute
// to true suspends the specified scaling activities. Setting it to false (default)
// resumes the specified scaling activities.
//
// Suspension Outcomes
//
// * For DynamicScalingInSuspended, while a suspension is in effect, all
// scale-in activities that are triggered by a scaling policy are suspended.
//
// * For DynamicScalingOutSuspended, while a suspension is in effect, all
// scale-out activities that are triggered by a scaling policy are suspended.
//
// * For ScheduledScalingSuspended, while a suspension is in effect, all
// scaling activities that involve scheduled actions are suspended.
//
// For more information, see Suspending and resuming scaling (https://docs.aws.amazon.com/autoscaling/application/userguide/application-auto-scaling-suspend-resume-scaling.html)
// in the Application Auto Scaling User Guide.
SuspendedState *SuspendedState `type:"structure"`
}
// String returns the string representation
func (s RegisterScalableTargetInput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s RegisterScalableTargetInput) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
func (s *RegisterScalableTargetInput) Validate() error {
invalidParams := request.ErrInvalidParams{Context: "RegisterScalableTargetInput"}
if s.ResourceId == nil {
invalidParams.Add(request.NewErrParamRequired("ResourceId"))
}
if s.ResourceId != nil && len(*s.ResourceId) < 1 {
invalidParams.Add(request.NewErrParamMinLen("ResourceId", 1))
}
if s.RoleARN != nil && len(*s.RoleARN) < 1 {
invalidParams.Add(request.NewErrParamMinLen("RoleARN", 1))
}
if s.ScalableDimension == nil {
invalidParams.Add(request.NewErrParamRequired("ScalableDimension"))
}
if s.ServiceNamespace == nil {
invalidParams.Add(request.NewErrParamRequired("ServiceNamespace"))
}
if invalidParams.Len() > 0 {
return invalidParams
}
return nil
}
// SetMaxCapacity sets the MaxCapacity field's value.
func (s *RegisterScalableTargetInput) SetMaxCapacity(v int64) *RegisterScalableTargetInput {
s.MaxCapacity = &v
return s
}
// SetMinCapacity sets the MinCapacity field's value.
func (s *RegisterScalableTargetInput) SetMinCapacity(v int64) *RegisterScalableTargetInput {
s.MinCapacity = &v
return s
}
// SetResourceId sets the ResourceId field's value.
func (s *RegisterScalableTargetInput) SetResourceId(v string) *RegisterScalableTargetInput {
s.ResourceId = &v
return s
}
// SetRoleARN sets the RoleARN field's value.
func (s *RegisterScalableTargetInput) SetRoleARN(v string) *RegisterScalableTargetInput {
s.RoleARN = &v
return s
}
// SetScalableDimension sets the ScalableDimension field's value.
func (s *RegisterScalableTargetInput) SetScalableDimension(v string) *RegisterScalableTargetInput {
s.ScalableDimension = &v
return s
}
// SetServiceNamespace sets the ServiceNamespace field's value.
func (s *RegisterScalableTargetInput) SetServiceNamespace(v string) *RegisterScalableTargetInput {
s.ServiceNamespace = &v
return s
}
// SetSuspendedState sets the SuspendedState field's value.
func (s *RegisterScalableTargetInput) SetSuspendedState(v *SuspendedState) *RegisterScalableTargetInput {
s.SuspendedState = v
return s
}
type RegisterScalableTargetOutput struct {
_ struct{} `type:"structure"`
}
// String returns the string representation
func (s RegisterScalableTargetOutput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s RegisterScalableTargetOutput) GoString() string {
return s.String()
}
// Represents a scalable target.
type ScalableTarget struct {
_ struct{} `type:"structure"`
// The Unix timestamp for when the scalable target was created.
//
// CreationTime is a required field
CreationTime *time.Time `type:"timestamp" required:"true"`
// The maximum value to scale to in response to a scale-out activity.
//
// MaxCapacity is a required field
MaxCapacity *int64 `type:"integer" required:"true"`
// The minimum value to scale to in response to a scale-in activity.
//
// MinCapacity is a required field
MinCapacity *int64 `type:"integer" required:"true"`
// The identifier of the resource associated with the scalable target. This
// string consists of the resource type and unique identifier.
//
// * ECS service - The resource type is service and the unique identifier
// is the cluster name and service name. Example: service/default/sample-webapp.
//
// * Spot Fleet request - The resource type is spot-fleet-request and the
// unique identifier is the Spot Fleet request ID. Example: spot-fleet-request/sfr-73fbd2ce-aa30-494c-8788-1cee4EXAMPLE.
//
// * EMR cluster - The resource type is instancegroup and the unique identifier
// is the cluster ID and instance group ID. Example: instancegroup/j-2EEZNYKUA1NTV/ig-1791Y4E1L8YI0.
//
// * AppStream 2.0 fleet - The resource type is fleet and the unique identifier
// is the fleet name. Example: fleet/sample-fleet.
//
// * DynamoDB table - The resource type is table and the unique identifier
// is the table name. Example: table/my-table.
//
// * DynamoDB global secondary index - The resource type is index and the
// unique identifier is the index name. Example: table/my-table/index/my-table-index.
//
// * Aurora DB cluster - The resource type is cluster and the unique identifier
// is the cluster name. Example: cluster:my-db-cluster.
//
// * Amazon SageMaker endpoint variant - The resource type is variant and
// the unique identifier is the resource ID. Example: endpoint/my-end-point/variant/KMeansClustering.
//
// * Custom resources are not supported with a resource type. This parameter
// must specify the OutputValue from the CloudFormation template stack used
// to access the resources. The unique identifier is defined by the service
// provider. More information is available in our GitHub repository (https://github.com/aws/aws-auto-scaling-custom-resource).
//
// * Amazon Comprehend document classification endpoint - The resource type
// and unique identifier are specified using the endpoint ARN. Example: arn:aws:comprehend:us-west-2:123456789012:document-classifier-endpoint/EXAMPLE.
//
// * Amazon Comprehend entity recognizer endpoint - The resource type and
// unique identifier are specified using the endpoint ARN. Example: arn:aws:comprehend:us-west-2:123456789012:entity-recognizer-endpoint/EXAMPLE.
//
// * Lambda provisioned concurrency - The resource type is function and the
// unique identifier is the function name with a function version or alias
// name suffix that is not $LATEST. Example: function:my-function:prod or
// function:my-function:1.
//
// * Amazon Keyspaces table - The resource type is table and the unique identifier
// is the table name. Example: keyspace/mykeyspace/table/mytable.
//
// * Amazon MSK cluster - The resource type and unique identifier are specified
// using the cluster ARN. Example: arn:aws:kafka:us-east-1:123456789012:cluster/demo-cluster-1/6357e0b2-0e6a-4b86-a0b4-70df934c2e31-5.
//
// ResourceId is a required field
ResourceId *string `min:"1" type:"string" required:"true"`
// The ARN of an IAM role that allows Application Auto Scaling to modify the
// scalable target on your behalf.
//
// RoleARN is a required field
RoleARN *string `min:"1" type:"string" required:"true"`
// The scalable dimension associated with the scalable target. This string consists
// of the service namespace, resource type, and scaling property.
//
// * ecs:service:DesiredCount - The desired task count of an ECS service.
//
// * ec2:spot-fleet-request:TargetCapacity - The target capacity of a Spot
// Fleet request.
//
// * elasticmapreduce:instancegroup:InstanceCount - The instance count of
// an EMR Instance Group.
//
// * appstream:fleet:DesiredCapacity - The desired capacity of an AppStream
// 2.0 fleet.
//
// * dynamodb:table:ReadCapacityUnits - The provisioned read capacity for
// a DynamoDB table.
//
// * dynamodb:table:WriteCapacityUnits - The provisioned write capacity for
// a DynamoDB table.
//
// * dynamodb:index:ReadCapacityUnits - The provisioned read capacity for
// a DynamoDB global secondary index.
//
// * dynamodb:index:WriteCapacityUnits - The provisioned write capacity for
// a DynamoDB global secondary index.
//
// * rds:cluster:ReadReplicaCount - The count of Aurora Replicas in an Aurora
// DB cluster. Available for Aurora MySQL-compatible edition and Aurora PostgreSQL-compatible
// edition.
//
// * sagemaker:variant:DesiredInstanceCount - The number of EC2 instances
// for an Amazon SageMaker model endpoint variant.
//
// * custom-resource:ResourceType:Property - The scalable dimension for a
// custom resource provided by your own application or service.
//
// * comprehend:document-classifier-endpoint:DesiredInferenceUnits - The
// number of inference units for an Amazon Comprehend document classification
// endpoint.
//
// * comprehend:entity-recognizer-endpoint:DesiredInferenceUnits - The number
// of inference units for an Amazon Comprehend entity recognizer endpoint.
//
// * lambda:function:ProvisionedConcurrency - The provisioned concurrency
// for a Lambda function.
//
// * cassandra:table:ReadCapacityUnits - The provisioned read capacity for
// an Amazon Keyspaces table.
//
// * cassandra:table:WriteCapacityUnits - The provisioned write capacity
// for an Amazon Keyspaces table.
//
// * kafka:broker-storage:VolumeSize - The provisioned volume size (in GiB)
// for brokers in an Amazon MSK cluster.
//
// ScalableDimension is a required field
ScalableDimension *string `type:"string" required:"true" enum:"ScalableDimension"`
// The namespace of the AWS service that provides the resource, or a custom-resource.
//
// ServiceNamespace is a required field
ServiceNamespace *string `type:"string" required:"true" enum:"ServiceNamespace"`
// Specifies whether the scaling activities for a scalable target are in a suspended
// state.
SuspendedState *SuspendedState `type:"structure"`
}
// String returns the string representation
func (s ScalableTarget) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s ScalableTarget) GoString() string {
return s.String()
}
// SetCreationTime sets the CreationTime field's value.
func (s *ScalableTarget) SetCreationTime(v time.Time) *ScalableTarget {
s.CreationTime = &v
return s
}
// SetMaxCapacity sets the MaxCapacity field's value.
func (s *ScalableTarget) SetMaxCapacity(v int64) *ScalableTarget {
s.MaxCapacity = &v
return s
}
// SetMinCapacity sets the MinCapacity field's value.
func (s *ScalableTarget) SetMinCapacity(v int64) *ScalableTarget {
s.MinCapacity = &v
return s
}
// SetResourceId sets the ResourceId field's value.
func (s *ScalableTarget) SetResourceId(v string) *ScalableTarget {
s.ResourceId = &v
return s
}
// SetRoleARN sets the RoleARN field's value.
func (s *ScalableTarget) SetRoleARN(v string) *ScalableTarget {
s.RoleARN = &v
return s
}
// SetScalableDimension sets the ScalableDimension field's value.
func (s *ScalableTarget) SetScalableDimension(v string) *ScalableTarget {
s.ScalableDimension = &v
return s
}
// SetServiceNamespace sets the ServiceNamespace field's value.
func (s *ScalableTarget) SetServiceNamespace(v string) *ScalableTarget {
s.ServiceNamespace = &v
return s
}
// SetSuspendedState sets the SuspendedState field's value.
func (s *ScalableTarget) SetSuspendedState(v *SuspendedState) *ScalableTarget {
s.SuspendedState = v
return s
}
// Represents the minimum and maximum capacity for a scheduled action.
type ScalableTargetAction struct {
_ struct{} `type:"structure"`
// The maximum capacity.
//
// Although you can specify a large maximum capacity, note that service quotas
// may impose lower limits. Each service has its own default quotas for the
// maximum capacity of the resource. If you want to specify a higher limit,
// you can request an increase. For more information, consult the documentation
// for that service. For information about the default quotas for each service,
// see Service Endpoints and Quotas (https://docs.aws.amazon.com/general/latest/gr/aws-service-information.html)
// in the Amazon Web Services General Reference.
MaxCapacity *int64 `type:"integer"`
// The minimum capacity.
//
// For certain resources, the minimum value allowed is 0. This includes Lambda
// provisioned concurrency, Spot Fleet, ECS services, Aurora DB clusters, EMR
// clusters, and custom resources. For all other resources, the minimum value
// allowed is 1.
MinCapacity *int64 `type:"integer"`
}
// String returns the string representation
func (s ScalableTargetAction) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s ScalableTargetAction) GoString() string {
return s.String()
}
// SetMaxCapacity sets the MaxCapacity field's value.
func (s *ScalableTargetAction) SetMaxCapacity(v int64) *ScalableTargetAction {
s.MaxCapacity = &v
return s
}
// SetMinCapacity sets the MinCapacity field's value.
func (s *ScalableTargetAction) SetMinCapacity(v int64) *ScalableTargetAction {
s.MinCapacity = &v
return s
}
// Represents a scaling activity.
type ScalingActivity struct {
_ struct{} `type:"structure"`
// The unique identifier of the scaling activity.
//
// ActivityId is a required field
ActivityId *string `type:"string" required:"true"`
// A simple description of what caused the scaling activity to happen.
//
// Cause is a required field
Cause *string `type:"string" required:"true"`
// A simple description of what action the scaling activity intends to accomplish.
//
// Description is a required field
Description *string `type:"string" required:"true"`
// The details about the scaling activity.
Details *string `type:"string"`
// The Unix timestamp for when the scaling activity ended.
EndTime *time.Time `type:"timestamp"`
// The identifier of the resource associated with the scaling activity. This
// string consists of the resource type and unique identifier.
//
// * ECS service - The resource type is service and the unique identifier
// is the cluster name and service name. Example: service/default/sample-webapp.
//
// * Spot Fleet request - The resource type is spot-fleet-request and the
// unique identifier is the Spot Fleet request ID. Example: spot-fleet-request/sfr-73fbd2ce-aa30-494c-8788-1cee4EXAMPLE.
//
// * EMR cluster - The resource type is instancegroup and the unique identifier
// is the cluster ID and instance group ID. Example: instancegroup/j-2EEZNYKUA1NTV/ig-1791Y4E1L8YI0.
//
// * AppStream 2.0 fleet - The resource type is fleet and the unique identifier
// is the fleet name. Example: fleet/sample-fleet.
//
// * DynamoDB table - The resource type is table and the unique identifier
// is the table name. Example: table/my-table.
//
// * DynamoDB global secondary index - The resource type is index and the
// unique identifier is the index name. Example: table/my-table/index/my-table-index.
//
// * Aurora DB cluster - The resource type is cluster and the unique identifier
// is the cluster name. Example: cluster:my-db-cluster.
//
// * Amazon SageMaker endpoint variant - The resource type is variant and
// the unique identifier is the resource ID. Example: endpoint/my-end-point/variant/KMeansClustering.
//
// * Custom resources are not supported with a resource type. This parameter
// must specify the OutputValue from the CloudFormation template stack used
// to access the resources. The unique identifier is defined by the service
// provider. More information is available in our GitHub repository (https://github.com/aws/aws-auto-scaling-custom-resource).
//
// * Amazon Comprehend document classification endpoint - The resource type
// and unique identifier are specified using the endpoint ARN. Example: arn:aws:comprehend:us-west-2:123456789012:document-classifier-endpoint/EXAMPLE.
//
// * Amazon Comprehend entity recognizer endpoint - The resource type and
// unique identifier are specified using the endpoint ARN. Example: arn:aws:comprehend:us-west-2:123456789012:entity-recognizer-endpoint/EXAMPLE.
//
// * Lambda provisioned concurrency - The resource type is function and the
// unique identifier is the function name with a function version or alias
// name suffix that is not $LATEST. Example: function:my-function:prod or
// function:my-function:1.
//
// * Amazon Keyspaces table - The resource type is table and the unique identifier
// is the table name. Example: keyspace/mykeyspace/table/mytable.
//
// * Amazon MSK cluster - The resource type and unique identifier are specified
// using the cluster ARN. Example: arn:aws:kafka:us-east-1:123456789012:cluster/demo-cluster-1/6357e0b2-0e6a-4b86-a0b4-70df934c2e31-5.
//
// ResourceId is a required field
ResourceId *string `min:"1" type:"string" required:"true"`
// The scalable dimension. This string consists of the service namespace, resource
// type, and scaling property.
//
// * ecs:service:DesiredCount - The desired task count of an ECS service.
//
// * ec2:spot-fleet-request:TargetCapacity - The target capacity of a Spot
// Fleet request.
//
// * elasticmapreduce:instancegroup:InstanceCount - The instance count of
// an EMR Instance Group.
//
// * appstream:fleet:DesiredCapacity - The desired capacity of an AppStream
// 2.0 fleet.
//
// * dynamodb:table:ReadCapacityUnits - The provisioned read capacity for
// a DynamoDB table.
//
// * dynamodb:table:WriteCapacityUnits - The provisioned write capacity for
// a DynamoDB table.
//
// * dynamodb:index:ReadCapacityUnits - The provisioned read capacity for
// a DynamoDB global secondary index.
//
// * dynamodb:index:WriteCapacityUnits - The provisioned write capacity for
// a DynamoDB global secondary index.
//
// * rds:cluster:ReadReplicaCount - The count of Aurora Replicas in an Aurora
// DB cluster. Available for Aurora MySQL-compatible edition and Aurora PostgreSQL-compatible
// edition.
//
// * sagemaker:variant:DesiredInstanceCount - The number of EC2 instances
// for an Amazon SageMaker model endpoint variant.
//
// * custom-resource:ResourceType:Property - The scalable dimension for a
// custom resource provided by your own application or service.
//
// * comprehend:document-classifier-endpoint:DesiredInferenceUnits - The
// number of inference units for an Amazon Comprehend document classification
// endpoint.
//
// * comprehend:entity-recognizer-endpoint:DesiredInferenceUnits - The number
// of inference units for an Amazon Comprehend entity recognizer endpoint.
//
// * lambda:function:ProvisionedConcurrency - The provisioned concurrency
// for a Lambda function.
//
// * cassandra:table:ReadCapacityUnits - The provisioned read capacity for
// an Amazon Keyspaces table.
//
// * cassandra:table:WriteCapacityUnits - The provisioned write capacity
// for an Amazon Keyspaces table.
//
// * kafka:broker-storage:VolumeSize - The provisioned volume size (in GiB)
// for brokers in an Amazon MSK cluster.
//
// ScalableDimension is a required field
ScalableDimension *string `type:"string" required:"true" enum:"ScalableDimension"`
// The namespace of the AWS service that provides the resource, or a custom-resource.
//
// ServiceNamespace is a required field
ServiceNamespace *string `type:"string" required:"true" enum:"ServiceNamespace"`
// The Unix timestamp for when the scaling activity began.
//
// StartTime is a required field
StartTime *time.Time `type:"timestamp" required:"true"`
// Indicates the status of the scaling activity.
//
// StatusCode is a required field
StatusCode *string `type:"string" required:"true" enum:"ScalingActivityStatusCode"`
// A simple message about the current status of the scaling activity.
StatusMessage *string `type:"string"`
}
// String returns the string representation
func (s ScalingActivity) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s ScalingActivity) GoString() string {
return s.String()
}
// SetActivityId sets the ActivityId field's value.
func (s *ScalingActivity) SetActivityId(v string) *ScalingActivity {
s.ActivityId = &v
return s
}
// SetCause sets the Cause field's value.
func (s *ScalingActivity) SetCause(v string) *ScalingActivity {
s.Cause = &v
return s
}
// SetDescription sets the Description field's value.
func (s *ScalingActivity) SetDescription(v string) *ScalingActivity {
s.Description = &v
return s
}
// SetDetails sets the Details field's value.
func (s *ScalingActivity) SetDetails(v string) *ScalingActivity {
s.Details = &v
return s
}
// SetEndTime sets the EndTime field's value.
func (s *ScalingActivity) SetEndTime(v time.Time) *ScalingActivity {
s.EndTime = &v
return s
}
// SetResourceId sets the ResourceId field's value.
func (s *ScalingActivity) SetResourceId(v string) *ScalingActivity {
s.ResourceId = &v
return s
}
// SetScalableDimension sets the ScalableDimension field's value.
func (s *ScalingActivity) SetScalableDimension(v string) *ScalingActivity {
s.ScalableDimension = &v
return s
}
// SetServiceNamespace sets the ServiceNamespace field's value.
func (s *ScalingActivity) SetServiceNamespace(v string) *ScalingActivity {
s.ServiceNamespace = &v
return s
}
// SetStartTime sets the StartTime field's value.
func (s *ScalingActivity) SetStartTime(v time.Time) *ScalingActivity {
s.StartTime = &v
return s
}
// SetStatusCode sets the StatusCode field's value.
func (s *ScalingActivity) SetStatusCode(v string) *ScalingActivity {
s.StatusCode = &v
return s
}
// SetStatusMessage sets the StatusMessage field's value.
func (s *ScalingActivity) SetStatusMessage(v string) *ScalingActivity {
s.StatusMessage = &v
return s
}
// Represents a scaling policy to use with Application Auto Scaling.
//
// For more information about configuring scaling policies for a specific service,
// see Getting started with Application Auto Scaling (https://docs.aws.amazon.com/autoscaling/application/userguide/getting-started.html)
// in the Application Auto Scaling User Guide.
type ScalingPolicy struct {
_ struct{} `type:"structure"`
// The CloudWatch alarms associated with the scaling policy.
Alarms []*Alarm `type:"list"`
// The Unix timestamp for when the scaling policy was created.
//
// CreationTime is a required field
CreationTime *time.Time `type:"timestamp" required:"true"`
// The Amazon Resource Name (ARN) of the scaling policy.
//
// PolicyARN is a required field
PolicyARN *string `min:"1" type:"string" required:"true"`
// The name of the scaling policy.
//
// PolicyName is a required field
PolicyName *string `min:"1" type:"string" required:"true"`
// The scaling policy type.
//
// PolicyType is a required field
PolicyType *string `type:"string" required:"true" enum:"PolicyType"`
// The identifier of the resource associated with the scaling policy. This string
// consists of the resource type and unique identifier.
//
// * ECS service - The resource type is service and the unique identifier
// is the cluster name and service name. Example: service/default/sample-webapp.
//
// * Spot Fleet request - The resource type is spot-fleet-request and the
// unique identifier is the Spot Fleet request ID. Example: spot-fleet-request/sfr-73fbd2ce-aa30-494c-8788-1cee4EXAMPLE.
//
// * EMR cluster - The resource type is instancegroup and the unique identifier
// is the cluster ID and instance group ID. Example: instancegroup/j-2EEZNYKUA1NTV/ig-1791Y4E1L8YI0.
//
// * AppStream 2.0 fleet - The resource type is fleet and the unique identifier
// is the fleet name. Example: fleet/sample-fleet.
//
// * DynamoDB table - The resource type is table and the unique identifier
// is the table name. Example: table/my-table.
//
// * DynamoDB global secondary index - The resource type is index and the
// unique identifier is the index name. Example: table/my-table/index/my-table-index.
//
// * Aurora DB cluster - The resource type is cluster and the unique identifier
// is the cluster name. Example: cluster:my-db-cluster.
//
// * Amazon SageMaker endpoint variant - The resource type is variant and
// the unique identifier is the resource ID. Example: endpoint/my-end-point/variant/KMeansClustering.
//
// * Custom resources are not supported with a resource type. This parameter
// must specify the OutputValue from the CloudFormation template stack used
// to access the resources. The unique identifier is defined by the service
// provider. More information is available in our GitHub repository (https://github.com/aws/aws-auto-scaling-custom-resource).
//
// * Amazon Comprehend document classification endpoint - The resource type
// and unique identifier are specified using the endpoint ARN. Example: arn:aws:comprehend:us-west-2:123456789012:document-classifier-endpoint/EXAMPLE.
//
// * Amazon Comprehend entity recognizer endpoint - The resource type and
// unique identifier are specified using the endpoint ARN. Example: arn:aws:comprehend:us-west-2:123456789012:entity-recognizer-endpoint/EXAMPLE.
//
// * Lambda provisioned concurrency - The resource type is function and the
// unique identifier is the function name with a function version or alias
// name suffix that is not $LATEST. Example: function:my-function:prod or
// function:my-function:1.
//
// * Amazon Keyspaces table - The resource type is table and the unique identifier
// is the table name. Example: keyspace/mykeyspace/table/mytable.
//
// * Amazon MSK cluster - The resource type and unique identifier are specified
// using the cluster ARN. Example: arn:aws:kafka:us-east-1:123456789012:cluster/demo-cluster-1/6357e0b2-0e6a-4b86-a0b4-70df934c2e31-5.
//
// ResourceId is a required field
ResourceId *string `min:"1" type:"string" required:"true"`
// The scalable dimension. This string consists of the service namespace, resource
// type, and scaling property.
//
// * ecs:service:DesiredCount - The desired task count of an ECS service.
//
// * ec2:spot-fleet-request:TargetCapacity - The target capacity of a Spot
// Fleet request.
//
// * elasticmapreduce:instancegroup:InstanceCount - The instance count of
// an EMR Instance Group.
//
// * appstream:fleet:DesiredCapacity - The desired capacity of an AppStream
// 2.0 fleet.
//
// * dynamodb:table:ReadCapacityUnits - The provisioned read capacity for
// a DynamoDB table.
//
// * dynamodb:table:WriteCapacityUnits - The provisioned write capacity for
// a DynamoDB table.
//
// * dynamodb:index:ReadCapacityUnits - The provisioned read capacity for
// a DynamoDB global secondary index.
//
// * dynamodb:index:WriteCapacityUnits - The provisioned write capacity for
// a DynamoDB global secondary index.
//
// * rds:cluster:ReadReplicaCount - The count of Aurora Replicas in an Aurora
// DB cluster. Available for Aurora MySQL-compatible edition and Aurora PostgreSQL-compatible
// edition.
//
// * sagemaker:variant:DesiredInstanceCount - The number of EC2 instances
// for an Amazon SageMaker model endpoint variant.
//
// * custom-resource:ResourceType:Property - The scalable dimension for a
// custom resource provided by your own application or service.
//
// * comprehend:document-classifier-endpoint:DesiredInferenceUnits - The
// number of inference units for an Amazon Comprehend document classification
// endpoint.
//
// * comprehend:entity-recognizer-endpoint:DesiredInferenceUnits - The number
// of inference units for an Amazon Comprehend entity recognizer endpoint.
//
// * lambda:function:ProvisionedConcurrency - The provisioned concurrency
// for a Lambda function.
//
// * cassandra:table:ReadCapacityUnits - The provisioned read capacity for
// an Amazon Keyspaces table.
//
// * cassandra:table:WriteCapacityUnits - The provisioned write capacity
// for an Amazon Keyspaces table.
//
// * kafka:broker-storage:VolumeSize - The provisioned volume size (in GiB)
// for brokers in an Amazon MSK cluster.
//
// ScalableDimension is a required field
ScalableDimension *string `type:"string" required:"true" enum:"ScalableDimension"`
// The namespace of the AWS service that provides the resource, or a custom-resource.
//
// ServiceNamespace is a required field
ServiceNamespace *string `type:"string" required:"true" enum:"ServiceNamespace"`
// A step scaling policy.
StepScalingPolicyConfiguration *StepScalingPolicyConfiguration `type:"structure"`
// A target tracking scaling policy.
TargetTrackingScalingPolicyConfiguration *TargetTrackingScalingPolicyConfiguration `type:"structure"`
}
// String returns the string representation
func (s ScalingPolicy) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s ScalingPolicy) GoString() string {
return s.String()
}
// SetAlarms sets the Alarms field's value.
func (s *ScalingPolicy) SetAlarms(v []*Alarm) *ScalingPolicy {
s.Alarms = v
return s
}
// SetCreationTime sets the CreationTime field's value.
func (s *ScalingPolicy) SetCreationTime(v time.Time) *ScalingPolicy {
s.CreationTime = &v
return s
}
// SetPolicyARN sets the PolicyARN field's value.
func (s *ScalingPolicy) SetPolicyARN(v string) *ScalingPolicy {
s.PolicyARN = &v
return s
}
// SetPolicyName sets the PolicyName field's value.
func (s *ScalingPolicy) SetPolicyName(v string) *ScalingPolicy {
s.PolicyName = &v
return s
}
// SetPolicyType sets the PolicyType field's value.
func (s *ScalingPolicy) SetPolicyType(v string) *ScalingPolicy {
s.PolicyType = &v
return s
}
// SetResourceId sets the ResourceId field's value.
func (s *ScalingPolicy) SetResourceId(v string) *ScalingPolicy {
s.ResourceId = &v
return s
}
// SetScalableDimension sets the ScalableDimension field's value.
func (s *ScalingPolicy) SetScalableDimension(v string) *ScalingPolicy {
s.ScalableDimension = &v
return s
}
// SetServiceNamespace sets the ServiceNamespace field's value.
func (s *ScalingPolicy) SetServiceNamespace(v string) *ScalingPolicy {
s.ServiceNamespace = &v
return s
}
// SetStepScalingPolicyConfiguration sets the StepScalingPolicyConfiguration field's value.
func (s *ScalingPolicy) SetStepScalingPolicyConfiguration(v *StepScalingPolicyConfiguration) *ScalingPolicy {
s.StepScalingPolicyConfiguration = v
return s
}
// SetTargetTrackingScalingPolicyConfiguration sets the TargetTrackingScalingPolicyConfiguration field's value.
func (s *ScalingPolicy) SetTargetTrackingScalingPolicyConfiguration(v *TargetTrackingScalingPolicyConfiguration) *ScalingPolicy {
s.TargetTrackingScalingPolicyConfiguration = v
return s
}
// Represents a scheduled action.
type ScheduledAction struct {
_ struct{} `type:"structure"`
// The date and time that the scheduled action was created.
//
// CreationTime is a required field
CreationTime *time.Time `type:"timestamp" required:"true"`
// The date and time that the action is scheduled to end, in UTC.
EndTime *time.Time `type:"timestamp"`
// The identifier of the resource associated with the scaling policy. This string
// consists of the resource type and unique identifier.
//
// * ECS service - The resource type is service and the unique identifier
// is the cluster name and service name. Example: service/default/sample-webapp.
//
// * Spot Fleet request - The resource type is spot-fleet-request and the
// unique identifier is the Spot Fleet request ID. Example: spot-fleet-request/sfr-73fbd2ce-aa30-494c-8788-1cee4EXAMPLE.
//
// * EMR cluster - The resource type is instancegroup and the unique identifier
// is the cluster ID and instance group ID. Example: instancegroup/j-2EEZNYKUA1NTV/ig-1791Y4E1L8YI0.
//
// * AppStream 2.0 fleet - The resource type is fleet and the unique identifier
// is the fleet name. Example: fleet/sample-fleet.
//
// * DynamoDB table - The resource type is table and the unique identifier
// is the table name. Example: table/my-table.
//
// * DynamoDB global secondary index - The resource type is index and the
// unique identifier is the index name. Example: table/my-table/index/my-table-index.
//
// * Aurora DB cluster - The resource type is cluster and the unique identifier
// is the cluster name. Example: cluster:my-db-cluster.
//
// * Amazon SageMaker endpoint variant - The resource type is variant and
// the unique identifier is the resource ID. Example: endpoint/my-end-point/variant/KMeansClustering.
//
// * Custom resources are not supported with a resource type. This parameter
// must specify the OutputValue from the CloudFormation template stack used
// to access the resources. The unique identifier is defined by the service
// provider. More information is available in our GitHub repository (https://github.com/aws/aws-auto-scaling-custom-resource).
//
// * Amazon Comprehend document classification endpoint - The resource type
// and unique identifier are specified using the endpoint ARN. Example: arn:aws:comprehend:us-west-2:123456789012:document-classifier-endpoint/EXAMPLE.
//
// * Amazon Comprehend entity recognizer endpoint - The resource type and
// unique identifier are specified using the endpoint ARN. Example: arn:aws:comprehend:us-west-2:123456789012:entity-recognizer-endpoint/EXAMPLE.
//
// * Lambda provisioned concurrency - The resource type is function and the
// unique identifier is the function name with a function version or alias
// name suffix that is not $LATEST. Example: function:my-function:prod or
// function:my-function:1.
//
// * Amazon Keyspaces table - The resource type is table and the unique identifier
// is the table name. Example: keyspace/mykeyspace/table/mytable.
//
// * Amazon MSK cluster - The resource type and unique identifier are specified
// using the cluster ARN. Example: arn:aws:kafka:us-east-1:123456789012:cluster/demo-cluster-1/6357e0b2-0e6a-4b86-a0b4-70df934c2e31-5.
//
// ResourceId is a required field
ResourceId *string `min:"1" type:"string" required:"true"`
// The scalable dimension. This string consists of the service namespace, resource
// type, and scaling property.
//
// * ecs:service:DesiredCount - The desired task count of an ECS service.
//
// * ec2:spot-fleet-request:TargetCapacity - The target capacity of a Spot
// Fleet request.
//
// * elasticmapreduce:instancegroup:InstanceCount - The instance count of
// an EMR Instance Group.
//
// * appstream:fleet:DesiredCapacity - The desired capacity of an AppStream
// 2.0 fleet.
//
// * dynamodb:table:ReadCapacityUnits - The provisioned read capacity for
// a DynamoDB table.
//
// * dynamodb:table:WriteCapacityUnits - The provisioned write capacity for
// a DynamoDB table.
//
// * dynamodb:index:ReadCapacityUnits - The provisioned read capacity for
// a DynamoDB global secondary index.
//
// * dynamodb:index:WriteCapacityUnits - The provisioned write capacity for
// a DynamoDB global secondary index.
//
// * rds:cluster:ReadReplicaCount - The count of Aurora Replicas in an Aurora
// DB cluster. Available for Aurora MySQL-compatible edition and Aurora PostgreSQL-compatible
// edition.
//
// * sagemaker:variant:DesiredInstanceCount - The number of EC2 instances
// for an Amazon SageMaker model endpoint variant.
//
// * custom-resource:ResourceType:Property - The scalable dimension for a
// custom resource provided by your own application or service.
//
// * comprehend:document-classifier-endpoint:DesiredInferenceUnits - The
// number of inference units for an Amazon Comprehend document classification
// endpoint.
//
// * comprehend:entity-recognizer-endpoint:DesiredInferenceUnits - The number
// of inference units for an Amazon Comprehend entity recognizer endpoint.
//
// * lambda:function:ProvisionedConcurrency - The provisioned concurrency
// for a Lambda function.
//
// * cassandra:table:ReadCapacityUnits - The provisioned read capacity for
// an Amazon Keyspaces table.
//
// * cassandra:table:WriteCapacityUnits - The provisioned write capacity
// for an Amazon Keyspaces table.
//
// * kafka:broker-storage:VolumeSize - The provisioned volume size (in GiB)
// for brokers in an Amazon MSK cluster.
ScalableDimension *string `type:"string" enum:"ScalableDimension"`
// The new minimum and maximum capacity. You can set both values or just one.
// At the scheduled time, if the current capacity is below the minimum capacity,
// Application Auto Scaling scales out to the minimum capacity. If the current
// capacity is above the maximum capacity, Application Auto Scaling scales in
// to the maximum capacity.
ScalableTargetAction *ScalableTargetAction `type:"structure"`
// The schedule for this action. The following formats are supported:
//
// * At expressions - "at(yyyy-mm-ddThh:mm:ss)"
//
// * Rate expressions - "rate(value unit)"
//
// * Cron expressions - "cron(fields)"
//
// At expressions are useful for one-time schedules. Cron expressions are useful
// for scheduled actions that run periodically at a specified date and time,
// and rate expressions are useful for scheduled actions that run at a regular
// interval.
//
// At and cron expressions use Universal Coordinated Time (UTC) by default.
//
// The cron format consists of six fields separated by white spaces: [Minutes]
// [Hours] [Day_of_Month] [Month] [Day_of_Week] [Year].
//
// For rate expressions, value is a positive integer and unit is minute | minutes
// | hour | hours | day | days.
//
// For more information and examples, see Example scheduled actions for Application
// Auto Scaling (https://docs.aws.amazon.com/autoscaling/application/userguide/examples-scheduled-actions.html)
// in the Application Auto Scaling User Guide.
//
// Schedule is a required field
Schedule *string `min:"1" type:"string" required:"true"`
// The Amazon Resource Name (ARN) of the scheduled action.
//
// ScheduledActionARN is a required field
ScheduledActionARN *string `min:"1" type:"string" required:"true"`
// The name of the scheduled action.
//
// ScheduledActionName is a required field
ScheduledActionName *string `min:"1" type:"string" required:"true"`
// The namespace of the AWS service that provides the resource, or a custom-resource.
//
// ServiceNamespace is a required field
ServiceNamespace *string `type:"string" required:"true" enum:"ServiceNamespace"`
// The date and time that the action is scheduled to begin, in UTC.
StartTime *time.Time `type:"timestamp"`
// The time zone used when referring to the date and time of a scheduled action,
// when the scheduled action uses an at or cron expression.
Timezone *string `min:"1" type:"string"`
}
// String returns the string representation
func (s ScheduledAction) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s ScheduledAction) GoString() string {
return s.String()
}
// SetCreationTime sets the CreationTime field's value.
func (s *ScheduledAction) SetCreationTime(v time.Time) *ScheduledAction {
s.CreationTime = &v
return s
}
// SetEndTime sets the EndTime field's value.
func (s *ScheduledAction) SetEndTime(v time.Time) *ScheduledAction {
s.EndTime = &v
return s
}
// SetResourceId sets the ResourceId field's value.
func (s *ScheduledAction) SetResourceId(v string) *ScheduledAction {
s.ResourceId = &v
return s
}
// SetScalableDimension sets the ScalableDimension field's value.
func (s *ScheduledAction) SetScalableDimension(v string) *ScheduledAction {
s.ScalableDimension = &v
return s
}
// SetScalableTargetAction sets the ScalableTargetAction field's value.
func (s *ScheduledAction) SetScalableTargetAction(v *ScalableTargetAction) *ScheduledAction {
s.ScalableTargetAction = v
return s
}
// SetSchedule sets the Schedule field's value.
func (s *ScheduledAction) SetSchedule(v string) *ScheduledAction {
s.Schedule = &v
return s
}
// SetScheduledActionARN sets the ScheduledActionARN field's value.
func (s *ScheduledAction) SetScheduledActionARN(v string) *ScheduledAction {
s.ScheduledActionARN = &v
return s
}
// SetScheduledActionName sets the ScheduledActionName field's value.
func (s *ScheduledAction) SetScheduledActionName(v string) *ScheduledAction {
s.ScheduledActionName = &v
return s
}
// SetServiceNamespace sets the ServiceNamespace field's value.
func (s *ScheduledAction) SetServiceNamespace(v string) *ScheduledAction {
s.ServiceNamespace = &v
return s
}
// SetStartTime sets the StartTime field's value.
func (s *ScheduledAction) SetStartTime(v time.Time) *ScheduledAction {
s.StartTime = &v
return s
}
// SetTimezone sets the Timezone field's value.
func (s *ScheduledAction) SetTimezone(v string) *ScheduledAction {
s.Timezone = &v
return s
}
// Represents a step adjustment for a StepScalingPolicyConfiguration (https://docs.aws.amazon.com/autoscaling/application/APIReference/API_StepScalingPolicyConfiguration.html).
// Describes an adjustment based on the difference between the value of the
// aggregated CloudWatch metric and the breach threshold that you've defined
// for the alarm.
//
// For the following examples, suppose that you have an alarm with a breach
// threshold of 50:
//
// * To trigger the adjustment when the metric is greater than or equal to
// 50 and less than 60, specify a lower bound of 0 and an upper bound of
// 10.
//
// * To trigger the adjustment when the metric is greater than 40 and less
// than or equal to 50, specify a lower bound of -10 and an upper bound of
// 0.
//
// There are a few rules for the step adjustments for your step policy:
//
// * The ranges of your step adjustments can't overlap or have a gap.
//
// * At most one step adjustment can have a null lower bound. If one step
// adjustment has a negative lower bound, then there must be a step adjustment
// with a null lower bound.
//
// * At most one step adjustment can have a null upper bound. If one step
// adjustment has a positive upper bound, then there must be a step adjustment
// with a null upper bound.
//
// * The upper and lower bound can't be null in the same step adjustment.
type StepAdjustment struct {
_ struct{} `type:"structure"`
// The lower bound for the difference between the alarm threshold and the CloudWatch
// metric. If the metric value is above the breach threshold, the lower bound
// is inclusive (the metric must be greater than or equal to the threshold plus
// the lower bound). Otherwise, it is exclusive (the metric must be greater
// than the threshold plus the lower bound). A null value indicates negative
// infinity.
MetricIntervalLowerBound *float64 `type:"double"`
// The upper bound for the difference between the alarm threshold and the CloudWatch
// metric. If the metric value is above the breach threshold, the upper bound
// is exclusive (the metric must be less than the threshold plus the upper bound).
// Otherwise, it is inclusive (the metric must be less than or equal to the
// threshold plus the upper bound). A null value indicates positive infinity.
//
// The upper bound must be greater than the lower bound.
MetricIntervalUpperBound *float64 `type:"double"`
// The amount by which to scale, based on the specified adjustment type. A positive
// value adds to the current capacity while a negative number removes from the
// current capacity. For exact capacity, you must specify a positive value.
//
// ScalingAdjustment is a required field
ScalingAdjustment *int64 `type:"integer" required:"true"`
}
// String returns the string representation
func (s StepAdjustment) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s StepAdjustment) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
func (s *StepAdjustment) Validate() error {
invalidParams := request.ErrInvalidParams{Context: "StepAdjustment"}
if s.ScalingAdjustment == nil {
invalidParams.Add(request.NewErrParamRequired("ScalingAdjustment"))
}
if invalidParams.Len() > 0 {
return invalidParams
}
return nil
}
// SetMetricIntervalLowerBound sets the MetricIntervalLowerBound field's value.
func (s *StepAdjustment) SetMetricIntervalLowerBound(v float64) *StepAdjustment {
s.MetricIntervalLowerBound = &v
return s
}
// SetMetricIntervalUpperBound sets the MetricIntervalUpperBound field's value.
func (s *StepAdjustment) SetMetricIntervalUpperBound(v float64) *StepAdjustment {
s.MetricIntervalUpperBound = &v
return s
}
// SetScalingAdjustment sets the ScalingAdjustment field's value.
func (s *StepAdjustment) SetScalingAdjustment(v int64) *StepAdjustment {
s.ScalingAdjustment = &v
return s
}
// Represents a step scaling policy configuration to use with Application Auto
// Scaling.
type StepScalingPolicyConfiguration struct {
_ struct{} `type:"structure"`
// Specifies how the ScalingAdjustment value in a StepAdjustment (https://docs.aws.amazon.com/autoscaling/application/APIReference/API_StepAdjustment.html)
// is interpreted (for example, an absolute number or a percentage). The valid
// values are ChangeInCapacity, ExactCapacity, and PercentChangeInCapacity.
//
// AdjustmentType is required if you are adding a new step scaling policy configuration.
AdjustmentType *string `type:"string" enum:"AdjustmentType"`
// The amount of time, in seconds, to wait for a previous scaling activity to
// take effect.
//
// With scale-out policies, the intention is to continuously (but not excessively)
// scale out. After Application Auto Scaling successfully scales out using a
// step scaling policy, it starts to calculate the cooldown time. The scaling
// policy won't increase the desired capacity again unless either a larger scale
// out is triggered or the cooldown period ends. While the cooldown period is
// in effect, capacity added by the initiating scale-out activity is calculated
// as part of the desired capacity for the next scale-out activity. For example,
// when an alarm triggers a step scaling policy to increase the capacity by
// 2, the scaling activity completes successfully, and a cooldown period starts.
// If the alarm triggers again during the cooldown period but at a more aggressive
// step adjustment of 3, the previous increase of 2 is considered part of the
// current capacity. Therefore, only 1 is added to the capacity.
//
// With scale-in policies, the intention is to scale in conservatively to protect
// your application’s availability, so scale-in activities are blocked until
// the cooldown period has expired. However, if another alarm triggers a scale-out
// activity during the cooldown period after a scale-in activity, Application
// Auto Scaling scales out the target immediately. In this case, the cooldown
// period for the scale-in activity stops and doesn't complete.
//
// Application Auto Scaling provides a default value of 300 for the following
// scalable targets:
//
// * ECS services
//
// * Spot Fleet requests
//
// * EMR clusters
//
// * AppStream 2.0 fleets
//
// * Aurora DB clusters
//
// * Amazon SageMaker endpoint variants
//
// * Custom resources
//
// For all other scalable targets, the default value is 0:
//
// * DynamoDB tables
//
// * DynamoDB global secondary indexes
//
// * Amazon Comprehend document classification and entity recognizer endpoints
//
// * Lambda provisioned concurrency
//
// * Amazon Keyspaces tables
//
// * Amazon MSK broker storage
Cooldown *int64 `type:"integer"`
// The aggregation type for the CloudWatch metrics. Valid values are Minimum,
// Maximum, and Average. If the aggregation type is null, the value is treated
// as Average.
MetricAggregationType *string `type:"string" enum:"MetricAggregationType"`
// The minimum value to scale by when the adjustment type is PercentChangeInCapacity.
// For example, suppose that you create a step scaling policy to scale out an
// Amazon ECS service by 25 percent and you specify a MinAdjustmentMagnitude
// of 2. If the service has 4 tasks and the scaling policy is performed, 25
// percent of 4 is 1. However, because you specified a MinAdjustmentMagnitude
// of 2, Application Auto Scaling scales out the service by 2 tasks.
MinAdjustmentMagnitude *int64 `type:"integer"`
// A set of adjustments that enable you to scale based on the size of the alarm
// breach.
//
// At least one step adjustment is required if you are adding a new step scaling
// policy configuration.
StepAdjustments []*StepAdjustment `type:"list"`
}
// String returns the string representation
func (s StepScalingPolicyConfiguration) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s StepScalingPolicyConfiguration) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
func (s *StepScalingPolicyConfiguration) Validate() error {
invalidParams := request.ErrInvalidParams{Context: "StepScalingPolicyConfiguration"}
if s.StepAdjustments != nil {
for i, v := range s.StepAdjustments {
if v == nil {
continue
}
if err := v.Validate(); err != nil {
invalidParams.AddNested(fmt.Sprintf("%s[%v]", "StepAdjustments", i), err.(request.ErrInvalidParams))
}
}
}
if invalidParams.Len() > 0 {
return invalidParams
}
return nil
}
// SetAdjustmentType sets the AdjustmentType field's value.
func (s *StepScalingPolicyConfiguration) SetAdjustmentType(v string) *StepScalingPolicyConfiguration {
s.AdjustmentType = &v
return s
}
// SetCooldown sets the Cooldown field's value.
func (s *StepScalingPolicyConfiguration) SetCooldown(v int64) *StepScalingPolicyConfiguration {
s.Cooldown = &v
return s
}
// SetMetricAggregationType sets the MetricAggregationType field's value.
func (s *StepScalingPolicyConfiguration) SetMetricAggregationType(v string) *StepScalingPolicyConfiguration {
s.MetricAggregationType = &v
return s
}
// SetMinAdjustmentMagnitude sets the MinAdjustmentMagnitude field's value.
func (s *StepScalingPolicyConfiguration) SetMinAdjustmentMagnitude(v int64) *StepScalingPolicyConfiguration {
s.MinAdjustmentMagnitude = &v
return s
}
// SetStepAdjustments sets the StepAdjustments field's value.
func (s *StepScalingPolicyConfiguration) SetStepAdjustments(v []*StepAdjustment) *StepScalingPolicyConfiguration {
s.StepAdjustments = v
return s
}
// Specifies whether the scaling activities for a scalable target are in a suspended
// state.
type SuspendedState struct {
_ struct{} `type:"structure"`
// Whether scale in by a target tracking scaling policy or a step scaling policy
// is suspended. Set the value to true if you don't want Application Auto Scaling
// to remove capacity when a scaling policy is triggered. The default is false.
DynamicScalingInSuspended *bool `type:"boolean"`
// Whether scale out by a target tracking scaling policy or a step scaling policy
// is suspended. Set the value to true if you don't want Application Auto Scaling
// to add capacity when a scaling policy is triggered. The default is false.
DynamicScalingOutSuspended *bool `type:"boolean"`
// Whether scheduled scaling is suspended. Set the value to true if you don't
// want Application Auto Scaling to add or remove capacity by initiating scheduled
// actions. The default is false.
ScheduledScalingSuspended *bool `type:"boolean"`
}
// String returns the string representation
func (s SuspendedState) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s SuspendedState) GoString() string {
return s.String()
}
// SetDynamicScalingInSuspended sets the DynamicScalingInSuspended field's value.
func (s *SuspendedState) SetDynamicScalingInSuspended(v bool) *SuspendedState {
s.DynamicScalingInSuspended = &v
return s
}
// SetDynamicScalingOutSuspended sets the DynamicScalingOutSuspended field's value.
func (s *SuspendedState) SetDynamicScalingOutSuspended(v bool) *SuspendedState {
s.DynamicScalingOutSuspended = &v
return s
}
// SetScheduledScalingSuspended sets the ScheduledScalingSuspended field's value.
func (s *SuspendedState) SetScheduledScalingSuspended(v bool) *SuspendedState {
s.ScheduledScalingSuspended = &v
return s
}
// Represents a target tracking scaling policy configuration to use with Application
// Auto Scaling.
type TargetTrackingScalingPolicyConfiguration struct {
_ struct{} `type:"structure"`
// A customized metric. You can specify either a predefined metric or a customized
// metric.
CustomizedMetricSpecification *CustomizedMetricSpecification `type:"structure"`
// Indicates whether scale in by the target tracking scaling policy is disabled.
// If the value is true, scale in is disabled and the target tracking scaling
// policy won't remove capacity from the scalable target. Otherwise, scale in
// is enabled and the target tracking scaling policy can remove capacity from
// the scalable target. The default value is false.
DisableScaleIn *bool `type:"boolean"`
// A predefined metric. You can specify either a predefined metric or a customized
// metric.
PredefinedMetricSpecification *PredefinedMetricSpecification `type:"structure"`
// The amount of time, in seconds, after a scale-in activity completes before
// another scale-in activity can start.
//
// With the scale-in cooldown period, the intention is to scale in conservatively
// to protect your application’s availability, so scale-in activities are
// blocked until the cooldown period has expired. However, if another alarm
// triggers a scale-out activity during the scale-in cooldown period, Application
// Auto Scaling scales out the target immediately. In this case, the scale-in
// cooldown period stops and doesn't complete.
//
// Application Auto Scaling provides a default value of 300 for the following
// scalable targets:
//
// * ECS services
//
// * Spot Fleet requests
//
// * EMR clusters
//
// * AppStream 2.0 fleets
//
// * Aurora DB clusters
//
// * Amazon SageMaker endpoint variants
//
// * Custom resources
//
// For all other scalable targets, the default value is 0:
//
// * DynamoDB tables
//
// * DynamoDB global secondary indexes
//
// * Amazon Comprehend document classification and entity recognizer endpoints
//
// * Lambda provisioned concurrency
//
// * Amazon Keyspaces tables
//
// * Amazon MSK broker storage
ScaleInCooldown *int64 `type:"integer"`
// The amount of time, in seconds, to wait for a previous scale-out activity
// to take effect.
//
// With the scale-out cooldown period, the intention is to continuously (but
// not excessively) scale out. After Application Auto Scaling successfully scales
// out using a target tracking scaling policy, it starts to calculate the cooldown
// time. The scaling policy won't increase the desired capacity again unless
// either a larger scale out is triggered or the cooldown period ends. While
// the cooldown period is in effect, the capacity added by the initiating scale-out
// activity is calculated as part of the desired capacity for the next scale-out
// activity.
//
// Application Auto Scaling provides a default value of 300 for the following
// scalable targets:
//
// * ECS services
//
// * Spot Fleet requests
//
// * EMR clusters
//
// * AppStream 2.0 fleets
//
// * Aurora DB clusters
//
// * Amazon SageMaker endpoint variants
//
// * Custom resources
//
// For all other scalable targets, the default value is 0:
//
// * DynamoDB tables
//
// * DynamoDB global secondary indexes
//
// * Amazon Comprehend document classification and entity recognizer endpoints
//
// * Lambda provisioned concurrency
//
// * Amazon Keyspaces tables
//
// * Amazon MSK broker storage
ScaleOutCooldown *int64 `type:"integer"`
// The target value for the metric. Although this property accepts numbers of
// type Double, it won't accept values that are either too small or too large.
// Values must be in the range of -2^360 to 2^360. The value must be a valid
// number based on the choice of metric. For example, if the metric is CPU utilization,
// then the target value is a percent value that represents how much of the
// CPU can be used before scaling out.
//
// TargetValue is a required field
TargetValue *float64 `type:"double" required:"true"`
}
// String returns the string representation
func (s TargetTrackingScalingPolicyConfiguration) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s TargetTrackingScalingPolicyConfiguration) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
func (s *TargetTrackingScalingPolicyConfiguration) Validate() error {
invalidParams := request.ErrInvalidParams{Context: "TargetTrackingScalingPolicyConfiguration"}
if s.TargetValue == nil {
invalidParams.Add(request.NewErrParamRequired("TargetValue"))
}
if s.CustomizedMetricSpecification != nil {
if err := s.CustomizedMetricSpecification.Validate(); err != nil {
invalidParams.AddNested("CustomizedMetricSpecification", err.(request.ErrInvalidParams))
}
}
if s.PredefinedMetricSpecification != nil {
if err := s.PredefinedMetricSpecification.Validate(); err != nil {
invalidParams.AddNested("PredefinedMetricSpecification", err.(request.ErrInvalidParams))
}
}
if invalidParams.Len() > 0 {
return invalidParams
}
return nil
}
// SetCustomizedMetricSpecification sets the CustomizedMetricSpecification field's value.
func (s *TargetTrackingScalingPolicyConfiguration) SetCustomizedMetricSpecification(v *CustomizedMetricSpecification) *TargetTrackingScalingPolicyConfiguration {
s.CustomizedMetricSpecification = v
return s
}
// SetDisableScaleIn sets the DisableScaleIn field's value.
func (s *TargetTrackingScalingPolicyConfiguration) SetDisableScaleIn(v bool) *TargetTrackingScalingPolicyConfiguration {
s.DisableScaleIn = &v
return s
}
// SetPredefinedMetricSpecification sets the PredefinedMetricSpecification field's value.
func (s *TargetTrackingScalingPolicyConfiguration) SetPredefinedMetricSpecification(v *PredefinedMetricSpecification) *TargetTrackingScalingPolicyConfiguration {
s.PredefinedMetricSpecification = v
return s
}
// SetScaleInCooldown sets the ScaleInCooldown field's value.
func (s *TargetTrackingScalingPolicyConfiguration) SetScaleInCooldown(v int64) *TargetTrackingScalingPolicyConfiguration {
s.ScaleInCooldown = &v
return s
}
// SetScaleOutCooldown sets the ScaleOutCooldown field's value.
func (s *TargetTrackingScalingPolicyConfiguration) SetScaleOutCooldown(v int64) *TargetTrackingScalingPolicyConfiguration {
s.ScaleOutCooldown = &v
return s
}
// SetTargetValue sets the TargetValue field's value.
func (s *TargetTrackingScalingPolicyConfiguration) SetTargetValue(v float64) *TargetTrackingScalingPolicyConfiguration {
s.TargetValue = &v
return s
}
// An exception was thrown for a validation issue. Review the available parameters
// for the API request.
type ValidationException struct {
_ struct{} `type:"structure"`
RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"Message" type:"string"`
}
// String returns the string representation
func (s ValidationException) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s ValidationException) GoString() string {
return s.String()
}
func newErrorValidationException(v protocol.ResponseMetadata) error {
return &ValidationException{
RespMetadata: v,
}
}
// Code returns the exception type name.
func (s *ValidationException) Code() string {
return "ValidationException"
}
// Message returns the exception's message.
func (s *ValidationException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
return ""
}
// OrigErr always returns nil, satisfies awserr.Error interface.
func (s *ValidationException) OrigErr() error {
return nil
}
func (s *ValidationException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
func (s *ValidationException) StatusCode() int {
return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
func (s *ValidationException) RequestID() string {
return s.RespMetadata.RequestID
}
const (
// AdjustmentTypeChangeInCapacity is a AdjustmentType enum value
AdjustmentTypeChangeInCapacity = "ChangeInCapacity"
// AdjustmentTypePercentChangeInCapacity is a AdjustmentType enum value
AdjustmentTypePercentChangeInCapacity = "PercentChangeInCapacity"
// AdjustmentTypeExactCapacity is a AdjustmentType enum value
AdjustmentTypeExactCapacity = "ExactCapacity"
)
// AdjustmentType_Values returns all elements of the AdjustmentType enum
func AdjustmentType_Values() []string {
return []string{
AdjustmentTypeChangeInCapacity,
AdjustmentTypePercentChangeInCapacity,
AdjustmentTypeExactCapacity,
}
}
const (
// MetricAggregationTypeAverage is a MetricAggregationType enum value
MetricAggregationTypeAverage = "Average"
// MetricAggregationTypeMinimum is a MetricAggregationType enum value
MetricAggregationTypeMinimum = "Minimum"
// MetricAggregationTypeMaximum is a MetricAggregationType enum value
MetricAggregationTypeMaximum = "Maximum"
)
// MetricAggregationType_Values returns all elements of the MetricAggregationType enum
func MetricAggregationType_Values() []string {
return []string{
MetricAggregationTypeAverage,
MetricAggregationTypeMinimum,
MetricAggregationTypeMaximum,
}
}
const (
// MetricStatisticAverage is a MetricStatistic enum value
MetricStatisticAverage = "Average"
// MetricStatisticMinimum is a MetricStatistic enum value
MetricStatisticMinimum = "Minimum"
// MetricStatisticMaximum is a MetricStatistic enum value
MetricStatisticMaximum = "Maximum"
// MetricStatisticSampleCount is a MetricStatistic enum value
MetricStatisticSampleCount = "SampleCount"
// MetricStatisticSum is a MetricStatistic enum value
MetricStatisticSum = "Sum"
)
// MetricStatistic_Values returns all elements of the MetricStatistic enum
func MetricStatistic_Values() []string {
return []string{
MetricStatisticAverage,
MetricStatisticMinimum,
MetricStatisticMaximum,
MetricStatisticSampleCount,
MetricStatisticSum,
}
}
const (
// MetricTypeDynamoDbreadCapacityUtilization is a MetricType enum value
MetricTypeDynamoDbreadCapacityUtilization = "DynamoDBReadCapacityUtilization"
// MetricTypeDynamoDbwriteCapacityUtilization is a MetricType enum value
MetricTypeDynamoDbwriteCapacityUtilization = "DynamoDBWriteCapacityUtilization"
// MetricTypeAlbrequestCountPerTarget is a MetricType enum value
MetricTypeAlbrequestCountPerTarget = "ALBRequestCountPerTarget"
// MetricTypeRdsreaderAverageCpuutilization is a MetricType enum value
MetricTypeRdsreaderAverageCpuutilization = "RDSReaderAverageCPUUtilization"
// MetricTypeRdsreaderAverageDatabaseConnections is a MetricType enum value
MetricTypeRdsreaderAverageDatabaseConnections = "RDSReaderAverageDatabaseConnections"
// MetricTypeEc2spotFleetRequestAverageCpuutilization is a MetricType enum value
MetricTypeEc2spotFleetRequestAverageCpuutilization = "EC2SpotFleetRequestAverageCPUUtilization"
// MetricTypeEc2spotFleetRequestAverageNetworkIn is a MetricType enum value
MetricTypeEc2spotFleetRequestAverageNetworkIn = "EC2SpotFleetRequestAverageNetworkIn"
// MetricTypeEc2spotFleetRequestAverageNetworkOut is a MetricType enum value
MetricTypeEc2spotFleetRequestAverageNetworkOut = "EC2SpotFleetRequestAverageNetworkOut"
// MetricTypeSageMakerVariantInvocationsPerInstance is a MetricType enum value
MetricTypeSageMakerVariantInvocationsPerInstance = "SageMakerVariantInvocationsPerInstance"
// MetricTypeEcsserviceAverageCpuutilization is a MetricType enum value
MetricTypeEcsserviceAverageCpuutilization = "ECSServiceAverageCPUUtilization"
// MetricTypeEcsserviceAverageMemoryUtilization is a MetricType enum value
MetricTypeEcsserviceAverageMemoryUtilization = "ECSServiceAverageMemoryUtilization"
// MetricTypeAppStreamAverageCapacityUtilization is a MetricType enum value
MetricTypeAppStreamAverageCapacityUtilization = "AppStreamAverageCapacityUtilization"
// MetricTypeComprehendInferenceUtilization is a MetricType enum value
MetricTypeComprehendInferenceUtilization = "ComprehendInferenceUtilization"
// MetricTypeLambdaProvisionedConcurrencyUtilization is a MetricType enum value
MetricTypeLambdaProvisionedConcurrencyUtilization = "LambdaProvisionedConcurrencyUtilization"
// MetricTypeCassandraReadCapacityUtilization is a MetricType enum value
MetricTypeCassandraReadCapacityUtilization = "CassandraReadCapacityUtilization"
// MetricTypeCassandraWriteCapacityUtilization is a MetricType enum value
MetricTypeCassandraWriteCapacityUtilization = "CassandraWriteCapacityUtilization"
// MetricTypeKafkaBrokerStorageUtilization is a MetricType enum value
MetricTypeKafkaBrokerStorageUtilization = "KafkaBrokerStorageUtilization"
)
// MetricType_Values returns all elements of the MetricType enum
func MetricType_Values() []string {
return []string{
MetricTypeDynamoDbreadCapacityUtilization,
MetricTypeDynamoDbwriteCapacityUtilization,
MetricTypeAlbrequestCountPerTarget,
MetricTypeRdsreaderAverageCpuutilization,
MetricTypeRdsreaderAverageDatabaseConnections,
MetricTypeEc2spotFleetRequestAverageCpuutilization,
MetricTypeEc2spotFleetRequestAverageNetworkIn,
MetricTypeEc2spotFleetRequestAverageNetworkOut,
MetricTypeSageMakerVariantInvocationsPerInstance,
MetricTypeEcsserviceAverageCpuutilization,
MetricTypeEcsserviceAverageMemoryUtilization,
MetricTypeAppStreamAverageCapacityUtilization,
MetricTypeComprehendInferenceUtilization,
MetricTypeLambdaProvisionedConcurrencyUtilization,
MetricTypeCassandraReadCapacityUtilization,
MetricTypeCassandraWriteCapacityUtilization,
MetricTypeKafkaBrokerStorageUtilization,
}
}
const (
// PolicyTypeStepScaling is a PolicyType enum value
PolicyTypeStepScaling = "StepScaling"
// PolicyTypeTargetTrackingScaling is a PolicyType enum value
PolicyTypeTargetTrackingScaling = "TargetTrackingScaling"
)
// PolicyType_Values returns all elements of the PolicyType enum
func PolicyType_Values() []string {
return []string{
PolicyTypeStepScaling,
PolicyTypeTargetTrackingScaling,
}
}
const (
// ScalableDimensionEcsServiceDesiredCount is a ScalableDimension enum value
ScalableDimensionEcsServiceDesiredCount = "ecs:service:DesiredCount"
// ScalableDimensionEc2SpotFleetRequestTargetCapacity is a ScalableDimension enum value
ScalableDimensionEc2SpotFleetRequestTargetCapacity = "ec2:spot-fleet-request:TargetCapacity"
// ScalableDimensionElasticmapreduceInstancegroupInstanceCount is a ScalableDimension enum value
ScalableDimensionElasticmapreduceInstancegroupInstanceCount = "elasticmapreduce:instancegroup:InstanceCount"
// ScalableDimensionAppstreamFleetDesiredCapacity is a ScalableDimension enum value
ScalableDimensionAppstreamFleetDesiredCapacity = "appstream:fleet:DesiredCapacity"
// ScalableDimensionDynamodbTableReadCapacityUnits is a ScalableDimension enum value
ScalableDimensionDynamodbTableReadCapacityUnits = "dynamodb:table:ReadCapacityUnits"
// ScalableDimensionDynamodbTableWriteCapacityUnits is a ScalableDimension enum value
ScalableDimensionDynamodbTableWriteCapacityUnits = "dynamodb:table:WriteCapacityUnits"
// ScalableDimensionDynamodbIndexReadCapacityUnits is a ScalableDimension enum value
ScalableDimensionDynamodbIndexReadCapacityUnits = "dynamodb:index:ReadCapacityUnits"
// ScalableDimensionDynamodbIndexWriteCapacityUnits is a ScalableDimension enum value
ScalableDimensionDynamodbIndexWriteCapacityUnits = "dynamodb:index:WriteCapacityUnits"
// ScalableDimensionRdsClusterReadReplicaCount is a ScalableDimension enum value
ScalableDimensionRdsClusterReadReplicaCount = "rds:cluster:ReadReplicaCount"
// ScalableDimensionSagemakerVariantDesiredInstanceCount is a ScalableDimension enum value
ScalableDimensionSagemakerVariantDesiredInstanceCount = "sagemaker:variant:DesiredInstanceCount"
// ScalableDimensionCustomResourceResourceTypeProperty is a ScalableDimension enum value
ScalableDimensionCustomResourceResourceTypeProperty = "custom-resource:ResourceType:Property"
// ScalableDimensionComprehendDocumentClassifierEndpointDesiredInferenceUnits is a ScalableDimension enum value
ScalableDimensionComprehendDocumentClassifierEndpointDesiredInferenceUnits = "comprehend:document-classifier-endpoint:DesiredInferenceUnits"
// ScalableDimensionComprehendEntityRecognizerEndpointDesiredInferenceUnits is a ScalableDimension enum value
ScalableDimensionComprehendEntityRecognizerEndpointDesiredInferenceUnits = "comprehend:entity-recognizer-endpoint:DesiredInferenceUnits"
// ScalableDimensionLambdaFunctionProvisionedConcurrency is a ScalableDimension enum value
ScalableDimensionLambdaFunctionProvisionedConcurrency = "lambda:function:ProvisionedConcurrency"
// ScalableDimensionCassandraTableReadCapacityUnits is a ScalableDimension enum value
ScalableDimensionCassandraTableReadCapacityUnits = "cassandra:table:ReadCapacityUnits"
// ScalableDimensionCassandraTableWriteCapacityUnits is a ScalableDimension enum value
ScalableDimensionCassandraTableWriteCapacityUnits = "cassandra:table:WriteCapacityUnits"
// ScalableDimensionKafkaBrokerStorageVolumeSize is a ScalableDimension enum value
ScalableDimensionKafkaBrokerStorageVolumeSize = "kafka:broker-storage:VolumeSize"
)
// ScalableDimension_Values returns all elements of the ScalableDimension enum
func ScalableDimension_Values() []string {
return []string{
ScalableDimensionEcsServiceDesiredCount,
ScalableDimensionEc2SpotFleetRequestTargetCapacity,
ScalableDimensionElasticmapreduceInstancegroupInstanceCount,
ScalableDimensionAppstreamFleetDesiredCapacity,
ScalableDimensionDynamodbTableReadCapacityUnits,
ScalableDimensionDynamodbTableWriteCapacityUnits,
ScalableDimensionDynamodbIndexReadCapacityUnits,
ScalableDimensionDynamodbIndexWriteCapacityUnits,
ScalableDimensionRdsClusterReadReplicaCount,
ScalableDimensionSagemakerVariantDesiredInstanceCount,
ScalableDimensionCustomResourceResourceTypeProperty,
ScalableDimensionComprehendDocumentClassifierEndpointDesiredInferenceUnits,
ScalableDimensionComprehendEntityRecognizerEndpointDesiredInferenceUnits,
ScalableDimensionLambdaFunctionProvisionedConcurrency,
ScalableDimensionCassandraTableReadCapacityUnits,
ScalableDimensionCassandraTableWriteCapacityUnits,
ScalableDimensionKafkaBrokerStorageVolumeSize,
}
}
const (
// ScalingActivityStatusCodePending is a ScalingActivityStatusCode enum value
ScalingActivityStatusCodePending = "Pending"
// ScalingActivityStatusCodeInProgress is a ScalingActivityStatusCode enum value
ScalingActivityStatusCodeInProgress = "InProgress"
// ScalingActivityStatusCodeSuccessful is a ScalingActivityStatusCode enum value
ScalingActivityStatusCodeSuccessful = "Successful"
// ScalingActivityStatusCodeOverridden is a ScalingActivityStatusCode enum value
ScalingActivityStatusCodeOverridden = "Overridden"
// ScalingActivityStatusCodeUnfulfilled is a ScalingActivityStatusCode enum value
ScalingActivityStatusCodeUnfulfilled = "Unfulfilled"
// ScalingActivityStatusCodeFailed is a ScalingActivityStatusCode enum value
ScalingActivityStatusCodeFailed = "Failed"
)
// ScalingActivityStatusCode_Values returns all elements of the ScalingActivityStatusCode enum
func ScalingActivityStatusCode_Values() []string {
return []string{
ScalingActivityStatusCodePending,
ScalingActivityStatusCodeInProgress,
ScalingActivityStatusCodeSuccessful,
ScalingActivityStatusCodeOverridden,
ScalingActivityStatusCodeUnfulfilled,
ScalingActivityStatusCodeFailed,
}
}
const (
// ServiceNamespaceEcs is a ServiceNamespace enum value
ServiceNamespaceEcs = "ecs"
// ServiceNamespaceElasticmapreduce is a ServiceNamespace enum value
ServiceNamespaceElasticmapreduce = "elasticmapreduce"
// ServiceNamespaceEc2 is a ServiceNamespace enum value
ServiceNamespaceEc2 = "ec2"
// ServiceNamespaceAppstream is a ServiceNamespace enum value
ServiceNamespaceAppstream = "appstream"
// ServiceNamespaceDynamodb is a ServiceNamespace enum value
ServiceNamespaceDynamodb = "dynamodb"
// ServiceNamespaceRds is a ServiceNamespace enum value
ServiceNamespaceRds = "rds"
// ServiceNamespaceSagemaker is a ServiceNamespace enum value
ServiceNamespaceSagemaker = "sagemaker"
// ServiceNamespaceCustomResource is a ServiceNamespace enum value
ServiceNamespaceCustomResource = "custom-resource"
// ServiceNamespaceComprehend is a ServiceNamespace enum value
ServiceNamespaceComprehend = "comprehend"
// ServiceNamespaceLambda is a ServiceNamespace enum value
ServiceNamespaceLambda = "lambda"
// ServiceNamespaceCassandra is a ServiceNamespace enum value
ServiceNamespaceCassandra = "cassandra"
// ServiceNamespaceKafka is a ServiceNamespace enum value
ServiceNamespaceKafka = "kafka"
)
// ServiceNamespace_Values returns all elements of the ServiceNamespace enum
func ServiceNamespace_Values() []string {
return []string{
ServiceNamespaceEcs,
ServiceNamespaceElasticmapreduce,
ServiceNamespaceEc2,
ServiceNamespaceAppstream,
ServiceNamespaceDynamodb,
ServiceNamespaceRds,
ServiceNamespaceSagemaker,
ServiceNamespaceCustomResource,
ServiceNamespaceComprehend,
ServiceNamespaceLambda,
ServiceNamespaceCassandra,
ServiceNamespaceKafka,
}
}
| 6,063 |
session-manager-plugin | aws | Go | // Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
// Package applicationautoscaling provides the client and types for making API
// requests to Application Auto Scaling.
//
// With Application Auto Scaling, you can configure automatic scaling for the
// following resources:
//
// * Amazon ECS services
//
// * Amazon EC2 Spot Fleet requests
//
// * Amazon EMR clusters
//
// * Amazon AppStream 2.0 fleets
//
// * Amazon DynamoDB tables and global secondary indexes throughput capacity
//
// * Amazon Aurora Replicas
//
// * Amazon SageMaker endpoint variants
//
// * Custom resources provided by your own applications or services
//
// * Amazon Comprehend document classification and entity recognizer endpoints
//
// * AWS Lambda function provisioned concurrency
//
// * Amazon Keyspaces (for Apache Cassandra) tables
//
// * Amazon Managed Streaming for Apache Kafka broker storage
//
// API Summary
//
// The Application Auto Scaling service API includes three key sets of actions:
//
// * Register and manage scalable targets - Register AWS or custom resources
// as scalable targets (a resource that Application Auto Scaling can scale),
// set minimum and maximum capacity limits, and retrieve information on existing
// scalable targets.
//
// * Configure and manage automatic scaling - Define scaling policies to
// dynamically scale your resources in response to CloudWatch alarms, schedule
// one-time or recurring scaling actions, and retrieve your recent scaling
// activity history.
//
// * Suspend and resume scaling - Temporarily suspend and later resume automatic
// scaling by calling the RegisterScalableTarget (https://docs.aws.amazon.com/autoscaling/application/APIReference/API_RegisterScalableTarget.html)
// API action for any Application Auto Scaling scalable target. You can suspend
// and resume (individually or in combination) scale-out activities that
// are triggered by a scaling policy, scale-in activities that are triggered
// by a scaling policy, and scheduled scaling.
//
// To learn more about Application Auto Scaling, including information about
// granting IAM users required permissions for Application Auto Scaling actions,
// see the Application Auto Scaling User Guide (https://docs.aws.amazon.com/autoscaling/application/userguide/what-is-application-auto-scaling.html).
//
// See https://docs.aws.amazon.com/goto/WebAPI/application-autoscaling-2016-02-06 for more information on this service.
//
// See applicationautoscaling package documentation for more information.
// https://docs.aws.amazon.com/sdk-for-go/api/service/applicationautoscaling/
//
// Using the Client
//
// To contact Application Auto Scaling 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 Application Auto Scaling client ApplicationAutoScaling for more
// information on creating client for this service.
// https://docs.aws.amazon.com/sdk-for-go/api/service/applicationautoscaling/#New
package applicationautoscaling
| 79 |
session-manager-plugin | aws | Go | // Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
package applicationautoscaling
import (
"github.com/aws/aws-sdk-go/private/protocol"
)
const (
// ErrCodeConcurrentUpdateException for service response error code
// "ConcurrentUpdateException".
//
// Concurrent updates caused an exception, for example, if you request an update
// to an Application Auto Scaling resource that already has a pending update.
ErrCodeConcurrentUpdateException = "ConcurrentUpdateException"
// ErrCodeFailedResourceAccessException for service response error code
// "FailedResourceAccessException".
//
// Failed access to resources caused an exception. This exception is thrown
// when Application Auto Scaling is unable to retrieve the alarms associated
// with a scaling policy due to a client error, for example, if the role ARN
// specified for a scalable target does not have permission to call the CloudWatch
// DescribeAlarms (https://docs.aws.amazon.com/AmazonCloudWatch/latest/APIReference/API_DescribeAlarms.html)
// on your behalf.
ErrCodeFailedResourceAccessException = "FailedResourceAccessException"
// ErrCodeInternalServiceException for service response error code
// "InternalServiceException".
//
// The service encountered an internal error.
ErrCodeInternalServiceException = "InternalServiceException"
// ErrCodeInvalidNextTokenException for service response error code
// "InvalidNextTokenException".
//
// The next token supplied was invalid.
ErrCodeInvalidNextTokenException = "InvalidNextTokenException"
// ErrCodeLimitExceededException for service response error code
// "LimitExceededException".
//
// A per-account resource limit is exceeded. For more information, see Application
// Auto Scaling service quotas (https://docs.aws.amazon.com/autoscaling/application/userguide/application-auto-scaling-limits.html).
ErrCodeLimitExceededException = "LimitExceededException"
// ErrCodeObjectNotFoundException for service response error code
// "ObjectNotFoundException".
//
// The specified object could not be found. For any operation that depends on
// the existence of a scalable target, this exception is thrown if the scalable
// target with the specified service namespace, resource ID, and scalable dimension
// does not exist. For any operation that deletes or deregisters a resource,
// this exception is thrown if the resource cannot be found.
ErrCodeObjectNotFoundException = "ObjectNotFoundException"
// ErrCodeValidationException for service response error code
// "ValidationException".
//
// An exception was thrown for a validation issue. Review the available parameters
// for the API request.
ErrCodeValidationException = "ValidationException"
)
var exceptionFromCode = map[string]func(protocol.ResponseMetadata) error{
"ConcurrentUpdateException": newErrorConcurrentUpdateException,
"FailedResourceAccessException": newErrorFailedResourceAccessException,
"InternalServiceException": newErrorInternalServiceException,
"InvalidNextTokenException": newErrorInvalidNextTokenException,
"LimitExceededException": newErrorLimitExceededException,
"ObjectNotFoundException": newErrorObjectNotFoundException,
"ValidationException": newErrorValidationException,
}
| 75 |
Subsets and Splits