provider/aws: Bump the SDK version to v1.2.5 (#7638)
This will allow for new changes to the ECS
This commit is contained in:
parent
31297f1c9b
commit
f262566f77
|
@ -139,13 +139,18 @@ type Config struct {
|
|||
//
|
||||
EC2MetadataDisableTimeoutOverride *bool
|
||||
|
||||
// SleepDelay is an override for the func the SDK will call when sleeping
|
||||
// during the lifecycle of a request. Specifically this will be used for
|
||||
// request delays. This value should only be used for testing. To adjust
|
||||
// the delay of a request see the aws/client.DefaultRetryer and
|
||||
// aws/request.Retryer.
|
||||
SleepDelay func(time.Duration)
|
||||
}
|
||||
|
||||
// NewConfig returns a new Config pointer that can be chained with builder methods to
|
||||
// set multiple configuration values inline without using pointers.
|
||||
//
|
||||
// svc := s3.New(aws.NewConfig().WithRegion("us-west-2").WithMaxRetries(10))
|
||||
// sess := session.New(aws.NewConfig().WithRegion("us-west-2").WithMaxRetries(10))
|
||||
//
|
||||
func NewConfig() *Config {
|
||||
return &Config{}
|
||||
|
|
|
@ -2,7 +2,7 @@ package aws
|
|||
|
||||
import "time"
|
||||
|
||||
// String returns a pointer to of the string value passed in.
|
||||
// String returns a pointer to the string value passed in.
|
||||
func String(v string) *string {
|
||||
return &v
|
||||
}
|
||||
|
@ -61,7 +61,7 @@ func StringValueMap(src map[string]*string) map[string]string {
|
|||
return dst
|
||||
}
|
||||
|
||||
// Bool returns a pointer to of the bool value passed in.
|
||||
// Bool returns a pointer to the bool value passed in.
|
||||
func Bool(v bool) *bool {
|
||||
return &v
|
||||
}
|
||||
|
@ -120,7 +120,7 @@ func BoolValueMap(src map[string]*bool) map[string]bool {
|
|||
return dst
|
||||
}
|
||||
|
||||
// Int returns a pointer to of the int value passed in.
|
||||
// Int returns a pointer to the int value passed in.
|
||||
func Int(v int) *int {
|
||||
return &v
|
||||
}
|
||||
|
@ -179,7 +179,7 @@ func IntValueMap(src map[string]*int) map[string]int {
|
|||
return dst
|
||||
}
|
||||
|
||||
// Int64 returns a pointer to of the int64 value passed in.
|
||||
// Int64 returns a pointer to the int64 value passed in.
|
||||
func Int64(v int64) *int64 {
|
||||
return &v
|
||||
}
|
||||
|
@ -238,7 +238,7 @@ func Int64ValueMap(src map[string]*int64) map[string]int64 {
|
|||
return dst
|
||||
}
|
||||
|
||||
// Float64 returns a pointer to of the float64 value passed in.
|
||||
// Float64 returns a pointer to the float64 value passed in.
|
||||
func Float64(v float64) *float64 {
|
||||
return &v
|
||||
}
|
||||
|
@ -297,7 +297,7 @@ func Float64ValueMap(src map[string]*float64) map[string]float64 {
|
|||
return dst
|
||||
}
|
||||
|
||||
// Time returns a pointer to of the time.Time value passed in.
|
||||
// Time returns a pointer to the time.Time value passed in.
|
||||
func Time(v time.Time) *time.Time {
|
||||
return &v
|
||||
}
|
||||
|
@ -311,6 +311,18 @@ func TimeValue(v *time.Time) time.Time {
|
|||
return time.Time{}
|
||||
}
|
||||
|
||||
// TimeUnixMilli returns a Unix timestamp in milliseconds from "January 1, 1970 UTC".
|
||||
// The result is undefined if the Unix time cannot be represented by an int64.
|
||||
// Which includes calling TimeUnixMilli on a zero Time is undefined.
|
||||
//
|
||||
// This utility is useful for service API's such as CloudWatch Logs which require
|
||||
// their unix time values to be in milliseconds.
|
||||
//
|
||||
// See Go stdlib https://golang.org/pkg/time/#Time.UnixNano for more information.
|
||||
func TimeUnixMilli(t time.Time) int64 {
|
||||
return t.UnixNano() / int64(time.Millisecond/time.Nanosecond)
|
||||
}
|
||||
|
||||
// TimeSlice converts a slice of time.Time values into a slice of
|
||||
// time.Time pointers
|
||||
func TimeSlice(src []time.Time) []*time.Time {
|
||||
|
|
191
vendor/github.com/aws/aws-sdk-go/aws/credentials/endpointcreds/provider.go
generated
vendored
Normal file
191
vendor/github.com/aws/aws-sdk-go/aws/credentials/endpointcreds/provider.go
generated
vendored
Normal file
|
@ -0,0 +1,191 @@
|
|||
// Package endpointcreds provides support for retrieving credentials from an
|
||||
// arbitrary HTTP endpoint.
|
||||
//
|
||||
// The credentials endpoint Provider can receive both static and refreshable
|
||||
// credentials that will expire. Credentials are static when an "Expiration"
|
||||
// value is not provided in the endpoint's response.
|
||||
//
|
||||
// Static credentials will never expire once they have been retrieved. The format
|
||||
// of the static credentials response:
|
||||
// {
|
||||
// "AccessKeyId" : "MUA...",
|
||||
// "SecretAccessKey" : "/7PC5om....",
|
||||
// }
|
||||
//
|
||||
// Refreshable credentials will expire within the "ExpiryWindow" of the Expiration
|
||||
// value in the response. The format of the refreshable credentials response:
|
||||
// {
|
||||
// "AccessKeyId" : "MUA...",
|
||||
// "SecretAccessKey" : "/7PC5om....",
|
||||
// "Token" : "AQoDY....=",
|
||||
// "Expiration" : "2016-02-25T06:03:31Z"
|
||||
// }
|
||||
//
|
||||
// Errors should be returned in the following format and only returned with 400
|
||||
// or 500 HTTP status codes.
|
||||
// {
|
||||
// "code": "ErrorCode",
|
||||
// "message": "Helpful error message."
|
||||
// }
|
||||
package endpointcreds
|
||||
|
||||
import (
|
||||
"encoding/json"
|
||||
"time"
|
||||
|
||||
"github.com/aws/aws-sdk-go/aws"
|
||||
"github.com/aws/aws-sdk-go/aws/awserr"
|
||||
"github.com/aws/aws-sdk-go/aws/client"
|
||||
"github.com/aws/aws-sdk-go/aws/client/metadata"
|
||||
"github.com/aws/aws-sdk-go/aws/credentials"
|
||||
"github.com/aws/aws-sdk-go/aws/request"
|
||||
)
|
||||
|
||||
// ProviderName is the name of the credentials provider.
|
||||
const ProviderName = `CredentialsEndpointProvider`
|
||||
|
||||
// Provider satisfies the credentials.Provider interface, and is a client to
|
||||
// retrieve credentials from an arbitrary endpoint.
|
||||
type Provider struct {
|
||||
staticCreds bool
|
||||
credentials.Expiry
|
||||
|
||||
// Requires a AWS Client to make HTTP requests to the endpoint with.
|
||||
// the Endpoint the request will be made to is provided by the aws.Config's
|
||||
// Endpoint value.
|
||||
Client *client.Client
|
||||
|
||||
// ExpiryWindow will allow the credentials to trigger refreshing prior to
|
||||
// the credentials actually expiring. This is beneficial so race conditions
|
||||
// with expiring credentials do not cause request to fail unexpectedly
|
||||
// due to ExpiredTokenException exceptions.
|
||||
//
|
||||
// So a ExpiryWindow of 10s would cause calls to IsExpired() to return true
|
||||
// 10 seconds before the credentials are actually expired.
|
||||
//
|
||||
// If ExpiryWindow is 0 or less it will be ignored.
|
||||
ExpiryWindow time.Duration
|
||||
}
|
||||
|
||||
// NewProviderClient returns a credentials Provider for retrieving AWS credentials
|
||||
// from arbitrary endpoint.
|
||||
func NewProviderClient(cfg aws.Config, handlers request.Handlers, endpoint string, options ...func(*Provider)) credentials.Provider {
|
||||
p := &Provider{
|
||||
Client: client.New(
|
||||
cfg,
|
||||
metadata.ClientInfo{
|
||||
ServiceName: "CredentialsEndpoint",
|
||||
Endpoint: endpoint,
|
||||
},
|
||||
handlers,
|
||||
),
|
||||
}
|
||||
|
||||
p.Client.Handlers.Unmarshal.PushBack(unmarshalHandler)
|
||||
p.Client.Handlers.UnmarshalError.PushBack(unmarshalError)
|
||||
p.Client.Handlers.Validate.Clear()
|
||||
p.Client.Handlers.Validate.PushBack(validateEndpointHandler)
|
||||
|
||||
for _, option := range options {
|
||||
option(p)
|
||||
}
|
||||
|
||||
return p
|
||||
}
|
||||
|
||||
// NewCredentialsClient returns a Credentials wrapper for retrieving credentials
|
||||
// from an arbitrary endpoint concurrently. The client will request the
|
||||
func NewCredentialsClient(cfg aws.Config, handlers request.Handlers, endpoint string, options ...func(*Provider)) *credentials.Credentials {
|
||||
return credentials.NewCredentials(NewProviderClient(cfg, handlers, endpoint, options...))
|
||||
}
|
||||
|
||||
// IsExpired returns true if the credentials retrieved are expired, or not yet
|
||||
// retrieved.
|
||||
func (p *Provider) IsExpired() bool {
|
||||
if p.staticCreds {
|
||||
return false
|
||||
}
|
||||
return p.Expiry.IsExpired()
|
||||
}
|
||||
|
||||
// Retrieve will attempt to request the credentials from the endpoint the Provider
|
||||
// was configured for. And error will be returned if the retrieval fails.
|
||||
func (p *Provider) Retrieve() (credentials.Value, error) {
|
||||
resp, err := p.getCredentials()
|
||||
if err != nil {
|
||||
return credentials.Value{ProviderName: ProviderName},
|
||||
awserr.New("CredentialsEndpointError", "failed to load credentials", err)
|
||||
}
|
||||
|
||||
if resp.Expiration != nil {
|
||||
p.SetExpiration(*resp.Expiration, p.ExpiryWindow)
|
||||
} else {
|
||||
p.staticCreds = true
|
||||
}
|
||||
|
||||
return credentials.Value{
|
||||
AccessKeyID: resp.AccessKeyID,
|
||||
SecretAccessKey: resp.SecretAccessKey,
|
||||
SessionToken: resp.Token,
|
||||
ProviderName: ProviderName,
|
||||
}, nil
|
||||
}
|
||||
|
||||
type getCredentialsOutput struct {
|
||||
Expiration *time.Time
|
||||
AccessKeyID string
|
||||
SecretAccessKey string
|
||||
Token string
|
||||
}
|
||||
|
||||
type errorOutput struct {
|
||||
Code string `json:"code"`
|
||||
Message string `json:"message"`
|
||||
}
|
||||
|
||||
func (p *Provider) getCredentials() (*getCredentialsOutput, error) {
|
||||
op := &request.Operation{
|
||||
Name: "GetCredentials",
|
||||
HTTPMethod: "GET",
|
||||
}
|
||||
|
||||
out := &getCredentialsOutput{}
|
||||
req := p.Client.NewRequest(op, nil, out)
|
||||
req.HTTPRequest.Header.Set("Accept", "application/json")
|
||||
|
||||
return out, req.Send()
|
||||
}
|
||||
|
||||
func validateEndpointHandler(r *request.Request) {
|
||||
if len(r.ClientInfo.Endpoint) == 0 {
|
||||
r.Error = aws.ErrMissingEndpoint
|
||||
}
|
||||
}
|
||||
|
||||
func unmarshalHandler(r *request.Request) {
|
||||
defer r.HTTPResponse.Body.Close()
|
||||
|
||||
out := r.Data.(*getCredentialsOutput)
|
||||
if err := json.NewDecoder(r.HTTPResponse.Body).Decode(&out); err != nil {
|
||||
r.Error = awserr.New("SerializationError",
|
||||
"failed to decode endpoint credentials",
|
||||
err,
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
func unmarshalError(r *request.Request) {
|
||||
defer r.HTTPResponse.Body.Close()
|
||||
|
||||
var errOut errorOutput
|
||||
if err := json.NewDecoder(r.HTTPResponse.Body).Decode(&errOut); err != nil {
|
||||
r.Error = awserr.New("SerializationError",
|
||||
"failed to decode endpoint credentials",
|
||||
err,
|
||||
)
|
||||
}
|
||||
|
||||
// Response body format is not consistent between metadata endpoints.
|
||||
// Grab the error message as a string and include that as the source error
|
||||
r.Error = awserr.New(errOut.Code, errOut.Message, nil)
|
||||
}
|
|
@ -14,7 +14,7 @@ var (
|
|||
ErrStaticCredentialsEmpty = awserr.New("EmptyStaticCreds", "static credentials are empty", nil)
|
||||
)
|
||||
|
||||
// A StaticProvider is a set of credentials which are set pragmatically,
|
||||
// A StaticProvider is a set of credentials which are set programmatically,
|
||||
// and will never expire.
|
||||
type StaticProvider struct {
|
||||
Value
|
||||
|
|
|
@ -8,6 +8,7 @@
|
|||
package defaults
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"net/http"
|
||||
"os"
|
||||
"time"
|
||||
|
@ -16,6 +17,7 @@ import (
|
|||
"github.com/aws/aws-sdk-go/aws/corehandlers"
|
||||
"github.com/aws/aws-sdk-go/aws/credentials"
|
||||
"github.com/aws/aws-sdk-go/aws/credentials/ec2rolecreds"
|
||||
"github.com/aws/aws-sdk-go/aws/credentials/endpointcreds"
|
||||
"github.com/aws/aws-sdk-go/aws/ec2metadata"
|
||||
"github.com/aws/aws-sdk-go/aws/request"
|
||||
"github.com/aws/aws-sdk-go/private/endpoints"
|
||||
|
@ -66,6 +68,7 @@ func Handlers() request.Handlers {
|
|||
var handlers request.Handlers
|
||||
|
||||
handlers.Validate.PushBackNamed(corehandlers.ValidateEndpointHandler)
|
||||
handlers.Validate.AfterEachFn = request.HandlerListStopOnError
|
||||
handlers.Build.PushBackNamed(corehandlers.SDKVersionUserAgentHandler)
|
||||
handlers.Build.AfterEachFn = request.HandlerListStopOnError
|
||||
handlers.Sign.PushBackNamed(corehandlers.BuildContentLengthHandler)
|
||||
|
@ -82,16 +85,43 @@ func Handlers() request.Handlers {
|
|||
// is available if you need to reset the credentials of an
|
||||
// existing service client or session's Config.
|
||||
func CredChain(cfg *aws.Config, handlers request.Handlers) *credentials.Credentials {
|
||||
endpoint, signingRegion := endpoints.EndpointForRegion(ec2metadata.ServiceName, *cfg.Region, true)
|
||||
|
||||
return credentials.NewCredentials(&credentials.ChainProvider{
|
||||
VerboseErrors: aws.BoolValue(cfg.CredentialsChainVerboseErrors),
|
||||
Providers: []credentials.Provider{
|
||||
&credentials.EnvProvider{},
|
||||
&credentials.SharedCredentialsProvider{Filename: "", Profile: ""},
|
||||
&ec2rolecreds.EC2RoleProvider{
|
||||
Client: ec2metadata.NewClient(*cfg, handlers, endpoint, signingRegion),
|
||||
ExpiryWindow: 5 * time.Minute,
|
||||
remoteCredProvider(*cfg, handlers),
|
||||
},
|
||||
}})
|
||||
})
|
||||
}
|
||||
|
||||
func remoteCredProvider(cfg aws.Config, handlers request.Handlers) credentials.Provider {
|
||||
ecsCredURI := os.Getenv("AWS_CONTAINER_CREDENTIALS_RELATIVE_URI")
|
||||
|
||||
if len(ecsCredURI) > 0 {
|
||||
return ecsCredProvider(cfg, handlers, ecsCredURI)
|
||||
}
|
||||
|
||||
return ec2RoleProvider(cfg, handlers)
|
||||
}
|
||||
|
||||
func ecsCredProvider(cfg aws.Config, handlers request.Handlers, uri string) credentials.Provider {
|
||||
const host = `169.254.170.2`
|
||||
|
||||
return endpointcreds.NewProviderClient(cfg, handlers,
|
||||
fmt.Sprintf("http://%s%s", host, uri),
|
||||
func(p *endpointcreds.Provider) {
|
||||
p.ExpiryWindow = 5 * time.Minute
|
||||
},
|
||||
)
|
||||
}
|
||||
|
||||
func ec2RoleProvider(cfg aws.Config, handlers request.Handlers) credentials.Provider {
|
||||
endpoint, signingRegion := endpoints.EndpointForRegion(ec2metadata.ServiceName,
|
||||
aws.StringValue(cfg.Region), true)
|
||||
|
||||
return &ec2rolecreds.EC2RoleProvider{
|
||||
Client: ec2metadata.NewClient(cfg, handlers, endpoint, signingRegion),
|
||||
ExpiryWindow: 5 * time.Minute,
|
||||
}
|
||||
}
|
||||
|
|
|
@ -5,17 +5,15 @@ package request
|
|||
import (
|
||||
"io"
|
||||
"net/http"
|
||||
"net/url"
|
||||
)
|
||||
|
||||
func copyHTTPRequest(r *http.Request, body io.ReadCloser) *http.Request {
|
||||
return &http.Request{
|
||||
URL: r.URL,
|
||||
Header: r.Header,
|
||||
req := &http.Request{
|
||||
URL: &url.URL{},
|
||||
Header: http.Header{},
|
||||
Close: r.Close,
|
||||
Form: r.Form,
|
||||
PostForm: r.PostForm,
|
||||
Body: body,
|
||||
MultipartForm: r.MultipartForm,
|
||||
Host: r.Host,
|
||||
Method: r.Method,
|
||||
Proto: r.Proto,
|
||||
|
@ -23,4 +21,13 @@ func copyHTTPRequest(r *http.Request, body io.ReadCloser) *http.Request {
|
|||
// Cancel will be deprecated in 1.7 and will be replaced with Context
|
||||
Cancel: r.Cancel,
|
||||
}
|
||||
|
||||
*req.URL = *r.URL
|
||||
for k, v := range r.Header {
|
||||
for _, vv := range v {
|
||||
req.Header.Add(k, vv)
|
||||
}
|
||||
}
|
||||
|
||||
return req
|
||||
}
|
||||
|
|
|
@ -5,20 +5,27 @@ package request
|
|||
import (
|
||||
"io"
|
||||
"net/http"
|
||||
"net/url"
|
||||
)
|
||||
|
||||
func copyHTTPRequest(r *http.Request, body io.ReadCloser) *http.Request {
|
||||
return &http.Request{
|
||||
URL: r.URL,
|
||||
Header: r.Header,
|
||||
req := &http.Request{
|
||||
URL: &url.URL{},
|
||||
Header: http.Header{},
|
||||
Close: r.Close,
|
||||
Form: r.Form,
|
||||
PostForm: r.PostForm,
|
||||
Body: body,
|
||||
MultipartForm: r.MultipartForm,
|
||||
Host: r.Host,
|
||||
Method: r.Method,
|
||||
Proto: r.Proto,
|
||||
ContentLength: r.ContentLength,
|
||||
}
|
||||
|
||||
*req.URL = *r.URL
|
||||
for k, v := range r.Header {
|
||||
for _, vv := range v {
|
||||
req.Header.Add(k, vv)
|
||||
}
|
||||
}
|
||||
|
||||
return req
|
||||
}
|
||||
|
|
|
@ -12,6 +12,7 @@ import (
|
|||
"time"
|
||||
|
||||
"github.com/aws/aws-sdk-go/aws"
|
||||
"github.com/aws/aws-sdk-go/aws/awserr"
|
||||
"github.com/aws/aws-sdk-go/aws/client/metadata"
|
||||
)
|
||||
|
||||
|
@ -38,6 +39,7 @@ type Request struct {
|
|||
RetryDelay time.Duration
|
||||
NotHoist bool
|
||||
SignedHeaderVals http.Header
|
||||
LastSignedAt time.Time
|
||||
|
||||
built bool
|
||||
}
|
||||
|
@ -71,13 +73,15 @@ func New(cfg aws.Config, clientInfo metadata.ClientInfo, handlers Handlers,
|
|||
if method == "" {
|
||||
method = "POST"
|
||||
}
|
||||
p := operation.HTTPPath
|
||||
if p == "" {
|
||||
p = "/"
|
||||
}
|
||||
|
||||
httpReq, _ := http.NewRequest(method, "", nil)
|
||||
httpReq.URL, _ = url.Parse(clientInfo.Endpoint + p)
|
||||
|
||||
var err error
|
||||
httpReq.URL, err = url.Parse(clientInfo.Endpoint + operation.HTTPPath)
|
||||
if err != nil {
|
||||
httpReq.URL = &url.URL{}
|
||||
err = awserr.New("InvalidEndpointURL", "invalid endpoint uri", err)
|
||||
}
|
||||
|
||||
r := &Request{
|
||||
Config: cfg,
|
||||
|
@ -91,7 +95,7 @@ func New(cfg aws.Config, clientInfo metadata.ClientInfo, handlers Handlers,
|
|||
HTTPRequest: httpReq,
|
||||
Body: nil,
|
||||
Params: params,
|
||||
Error: nil,
|
||||
Error: err,
|
||||
Data: data,
|
||||
}
|
||||
r.SetBufferBody([]byte{})
|
||||
|
@ -185,7 +189,6 @@ func debugLogReqError(r *Request, stage string, retrying bool, err error) {
|
|||
// which occurred will be returned.
|
||||
func (r *Request) Build() error {
|
||||
if !r.built {
|
||||
r.Error = nil
|
||||
r.Handlers.Validate.Run(r)
|
||||
if r.Error != nil {
|
||||
debugLogReqError(r, "Validate Request", false, r.Error)
|
||||
|
@ -202,7 +205,7 @@ func (r *Request) Build() error {
|
|||
return r.Error
|
||||
}
|
||||
|
||||
// Sign will sign the request retuning error if errors are encountered.
|
||||
// Sign will sign the request returning error if errors are encountered.
|
||||
//
|
||||
// Send will build the request prior to signing. All Sign Handlers will
|
||||
// be executed in the order they were set.
|
||||
|
|
|
@ -0,0 +1,644 @@
|
|||
// Package v4 implements signing for AWS V4 signer
|
||||
//
|
||||
// Provides request signing for request that need to be signed with
|
||||
// AWS V4 Signatures.
|
||||
package v4
|
||||
|
||||
import (
|
||||
"bytes"
|
||||
"crypto/hmac"
|
||||
"crypto/sha256"
|
||||
"encoding/hex"
|
||||
"fmt"
|
||||
"io"
|
||||
"net/http"
|
||||
"net/url"
|
||||
"sort"
|
||||
"strconv"
|
||||
"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"
|
||||
"github.com/aws/aws-sdk-go/private/protocol/rest"
|
||||
)
|
||||
|
||||
const (
|
||||
authHeaderPrefix = "AWS4-HMAC-SHA256"
|
||||
timeFormat = "20060102T150405Z"
|
||||
shortTimeFormat = "20060102"
|
||||
|
||||
// emptyStringSHA256 is a SHA256 of an empty string
|
||||
emptyStringSHA256 = `e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855`
|
||||
)
|
||||
|
||||
var ignoredHeaders = rules{
|
||||
blacklist{
|
||||
mapRule{
|
||||
"Authorization": struct{}{},
|
||||
"User-Agent": struct{}{},
|
||||
},
|
||||
},
|
||||
}
|
||||
|
||||
// requiredSignedHeaders is a whitelist for build canonical headers.
|
||||
var requiredSignedHeaders = rules{
|
||||
whitelist{
|
||||
mapRule{
|
||||
"Cache-Control": struct{}{},
|
||||
"Content-Disposition": struct{}{},
|
||||
"Content-Encoding": struct{}{},
|
||||
"Content-Language": struct{}{},
|
||||
"Content-Md5": struct{}{},
|
||||
"Content-Type": struct{}{},
|
||||
"Expires": struct{}{},
|
||||
"If-Match": struct{}{},
|
||||
"If-Modified-Since": struct{}{},
|
||||
"If-None-Match": struct{}{},
|
||||
"If-Unmodified-Since": struct{}{},
|
||||
"Range": struct{}{},
|
||||
"X-Amz-Acl": struct{}{},
|
||||
"X-Amz-Copy-Source": struct{}{},
|
||||
"X-Amz-Copy-Source-If-Match": struct{}{},
|
||||
"X-Amz-Copy-Source-If-Modified-Since": struct{}{},
|
||||
"X-Amz-Copy-Source-If-None-Match": struct{}{},
|
||||
"X-Amz-Copy-Source-If-Unmodified-Since": struct{}{},
|
||||
"X-Amz-Copy-Source-Range": struct{}{},
|
||||
"X-Amz-Copy-Source-Server-Side-Encryption-Customer-Algorithm": struct{}{},
|
||||
"X-Amz-Copy-Source-Server-Side-Encryption-Customer-Key": struct{}{},
|
||||
"X-Amz-Copy-Source-Server-Side-Encryption-Customer-Key-Md5": struct{}{},
|
||||
"X-Amz-Grant-Full-control": struct{}{},
|
||||
"X-Amz-Grant-Read": struct{}{},
|
||||
"X-Amz-Grant-Read-Acp": struct{}{},
|
||||
"X-Amz-Grant-Write": struct{}{},
|
||||
"X-Amz-Grant-Write-Acp": struct{}{},
|
||||
"X-Amz-Metadata-Directive": struct{}{},
|
||||
"X-Amz-Mfa": struct{}{},
|
||||
"X-Amz-Request-Payer": struct{}{},
|
||||
"X-Amz-Server-Side-Encryption": struct{}{},
|
||||
"X-Amz-Server-Side-Encryption-Aws-Kms-Key-Id": struct{}{},
|
||||
"X-Amz-Server-Side-Encryption-Customer-Algorithm": struct{}{},
|
||||
"X-Amz-Server-Side-Encryption-Customer-Key": struct{}{},
|
||||
"X-Amz-Server-Side-Encryption-Customer-Key-Md5": struct{}{},
|
||||
"X-Amz-Storage-Class": struct{}{},
|
||||
"X-Amz-Website-Redirect-Location": struct{}{},
|
||||
},
|
||||
},
|
||||
patterns{"X-Amz-Meta-"},
|
||||
}
|
||||
|
||||
// allowedHoisting is a whitelist for build query headers. The boolean value
|
||||
// represents whether or not it is a pattern.
|
||||
var allowedQueryHoisting = inclusiveRules{
|
||||
blacklist{requiredSignedHeaders},
|
||||
patterns{"X-Amz-"},
|
||||
}
|
||||
|
||||
// Signer applies AWS v4 signing to given request. Use this to sign requests
|
||||
// that need to be signed with AWS V4 Signatures.
|
||||
type Signer struct {
|
||||
// The authentication credentials the request will be signed against.
|
||||
// This value must be set to sign requests.
|
||||
Credentials *credentials.Credentials
|
||||
|
||||
// Sets the log level the signer should use when reporting information to
|
||||
// the logger. If the logger is nil nothing will be logged. See
|
||||
// aws.LogLevelType for more information on available logging levels
|
||||
//
|
||||
// By default nothing will be logged.
|
||||
Debug aws.LogLevelType
|
||||
|
||||
// The logger loging information will be written to. If there the logger
|
||||
// is nil, nothing will be logged.
|
||||
Logger aws.Logger
|
||||
|
||||
// Disables the Signer's moving HTTP header key/value pairs from the HTTP
|
||||
// request header to the request's query string. This is most commonly used
|
||||
// with pre-signed requests preventing headers from being added to the
|
||||
// request's query string.
|
||||
DisableHeaderHoisting bool
|
||||
|
||||
// currentTimeFn returns the time value which represents the current time.
|
||||
// This value should only be used for testing. If it is nil the default
|
||||
// time.Now will be used.
|
||||
currentTimeFn func() time.Time
|
||||
}
|
||||
|
||||
// NewSigner returns a Signer pointer configured with the credentials and optional
|
||||
// option values provided. If not options are provided the Signer will use its
|
||||
// default configuration.
|
||||
func NewSigner(credentials *credentials.Credentials, options ...func(*Signer)) *Signer {
|
||||
v4 := &Signer{
|
||||
Credentials: credentials,
|
||||
}
|
||||
|
||||
for _, option := range options {
|
||||
option(v4)
|
||||
}
|
||||
|
||||
return v4
|
||||
}
|
||||
|
||||
type signingCtx struct {
|
||||
ServiceName string
|
||||
Region string
|
||||
Request *http.Request
|
||||
Body io.ReadSeeker
|
||||
Query url.Values
|
||||
Time time.Time
|
||||
ExpireTime time.Duration
|
||||
SignedHeaderVals http.Header
|
||||
|
||||
credValues credentials.Value
|
||||
isPresign bool
|
||||
formattedTime string
|
||||
formattedShortTime string
|
||||
|
||||
bodyDigest string
|
||||
signedHeaders string
|
||||
canonicalHeaders string
|
||||
canonicalString string
|
||||
credentialString string
|
||||
stringToSign string
|
||||
signature string
|
||||
authorization string
|
||||
}
|
||||
|
||||
// Sign signs AWS v4 requests with the provided body, service name, region the
|
||||
// request is made to, and time the request is signed at. The signTime allows
|
||||
// you to specify that a request is signed for the future, and cannot be
|
||||
// used until then.
|
||||
//
|
||||
// Returns a list of HTTP headers that were included in the signature or an
|
||||
// error if signing the request failed. Generally for signed requests this value
|
||||
// is not needed as the full request context will be captured by the http.Request
|
||||
// value. It is included for reference though.
|
||||
//
|
||||
// Sign differs from Presign in that it will sign the request using HTTP
|
||||
// header values. This type of signing is intended for http.Request values that
|
||||
// will not be shared, or are shared in a way the header values on the request
|
||||
// will not be lost.
|
||||
//
|
||||
// The requests body is an io.ReadSeeker so the SHA256 of the body can be
|
||||
// generated. To bypass the signer computing the hash you can set the
|
||||
// "X-Amz-Content-Sha256" header with a precomputed value. The signer will
|
||||
// only compute the hash if the request header value is empty.
|
||||
func (v4 Signer) Sign(r *http.Request, body io.ReadSeeker, service, region string, signTime time.Time) (http.Header, error) {
|
||||
return v4.signWithBody(r, body, service, region, 0, signTime)
|
||||
}
|
||||
|
||||
// Presign signs AWS v4 requests with the provided body, service name, region
|
||||
// the request is made to, and time the request is signed at. The signTime
|
||||
// allows you to specify that a request is signed for the future, and cannot
|
||||
// be used until then.
|
||||
//
|
||||
// Returns a list of HTTP headers that were included in the signature or an
|
||||
// error if signing the request failed. For presigned requests these headers
|
||||
// and their values must be included on the HTTP request when it is made. This
|
||||
// is helpful to know what header values need to be shared with the party the
|
||||
// presigned request will be distributed to.
|
||||
//
|
||||
// Presign differs from Sign in that it will sign the request using query string
|
||||
// instead of header values. This allows you to share the Presigned Request's
|
||||
// URL with third parties, or distribute it throughout your system with minimal
|
||||
// dependencies.
|
||||
//
|
||||
// Presign also takes an exp value which is the duration the
|
||||
// signed request will be valid after the signing time. This is allows you to
|
||||
// set when the request will expire.
|
||||
//
|
||||
// The requests body is an io.ReadSeeker so the SHA256 of the body can be
|
||||
// generated. To bypass the signer computing the hash you can set the
|
||||
// "X-Amz-Content-Sha256" header with a precomputed value. The signer will
|
||||
// only compute the hash if the request header value is empty.
|
||||
//
|
||||
// Presigning a S3 request will not compute the body's SHA256 hash by default.
|
||||
// This is done due to the general use case for S3 presigned URLs is to share
|
||||
// PUT/GET capabilities. If you would like to include the body's SHA256 in the
|
||||
// presigned request's signature you can set the "X-Amz-Content-Sha256"
|
||||
// HTTP header and that will be included in the request's signature.
|
||||
func (v4 Signer) Presign(r *http.Request, body io.ReadSeeker, service, region string, exp time.Duration, signTime time.Time) (http.Header, error) {
|
||||
return v4.signWithBody(r, body, service, region, exp, signTime)
|
||||
}
|
||||
|
||||
func (v4 Signer) signWithBody(r *http.Request, body io.ReadSeeker, service, region string, exp time.Duration, signTime time.Time) (http.Header, error) {
|
||||
currentTimeFn := v4.currentTimeFn
|
||||
if currentTimeFn == nil {
|
||||
currentTimeFn = time.Now
|
||||
}
|
||||
|
||||
ctx := &signingCtx{
|
||||
Request: r,
|
||||
Body: body,
|
||||
Query: r.URL.Query(),
|
||||
Time: signTime,
|
||||
ExpireTime: exp,
|
||||
isPresign: exp != 0,
|
||||
ServiceName: service,
|
||||
Region: region,
|
||||
}
|
||||
|
||||
if ctx.isRequestSigned() {
|
||||
if !v4.Credentials.IsExpired() && currentTimeFn().Before(ctx.Time.Add(10*time.Minute)) {
|
||||
// If the request is already signed, and the credentials have not
|
||||
// expired, and the request is not too old ignore the signing request.
|
||||
return ctx.SignedHeaderVals, nil
|
||||
}
|
||||
ctx.Time = currentTimeFn()
|
||||
ctx.handlePresignRemoval()
|
||||
}
|
||||
|
||||
var err error
|
||||
ctx.credValues, err = v4.Credentials.Get()
|
||||
if err != nil {
|
||||
return http.Header{}, err
|
||||
}
|
||||
|
||||
ctx.assignAmzQueryValues()
|
||||
ctx.build(v4.DisableHeaderHoisting)
|
||||
|
||||
if v4.Debug.Matches(aws.LogDebugWithSigning) {
|
||||
v4.logSigningInfo(ctx)
|
||||
}
|
||||
|
||||
return ctx.SignedHeaderVals, nil
|
||||
}
|
||||
|
||||
func (ctx *signingCtx) handlePresignRemoval() {
|
||||
if !ctx.isPresign {
|
||||
return
|
||||
}
|
||||
|
||||
// The credentials have expired for this request. The current signing
|
||||
// is invalid, and needs to be request because the request will fail.
|
||||
ctx.removePresign()
|
||||
|
||||
// Update the request's query string to ensure the values stays in
|
||||
// sync in the case retrieving the new credentials fails.
|
||||
ctx.Request.URL.RawQuery = ctx.Query.Encode()
|
||||
}
|
||||
|
||||
func (ctx *signingCtx) assignAmzQueryValues() {
|
||||
if ctx.isPresign {
|
||||
ctx.Query.Set("X-Amz-Algorithm", authHeaderPrefix)
|
||||
if ctx.credValues.SessionToken != "" {
|
||||
ctx.Query.Set("X-Amz-Security-Token", ctx.credValues.SessionToken)
|
||||
} else {
|
||||
ctx.Query.Del("X-Amz-Security-Token")
|
||||
}
|
||||
|
||||
return
|
||||
}
|
||||
|
||||
if ctx.credValues.SessionToken != "" {
|
||||
ctx.Request.Header.Set("X-Amz-Security-Token", ctx.credValues.SessionToken)
|
||||
}
|
||||
}
|
||||
|
||||
// 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: "v4.SignRequestHandler", Fn: SignSDKRequest,
|
||||
}
|
||||
|
||||
// SignSDKRequest signs an AWS request with the V4 signature. This
|
||||
// request handler is bested used only with the SDK's built in service client's
|
||||
// API operation requests.
|
||||
//
|
||||
// This function should not be used on its on its own, but in conjunction with
|
||||
// an AWS service client's API operation call. To sign a standalone request
|
||||
// not created by a service client's API operation method use the "Sign" or
|
||||
// "Presign" functions of the "Signer" type.
|
||||
//
|
||||
// If the credentials of the request's config are set to
|
||||
// credentials.AnonymousCredentials the request will not be signed.
|
||||
func SignSDKRequest(req *request.Request) {
|
||||
signSDKRequestWithCurrTime(req, time.Now)
|
||||
}
|
||||
func signSDKRequestWithCurrTime(req *request.Request, curTimeFn func() time.Time) {
|
||||
// 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
|
||||
}
|
||||
|
||||
region := req.ClientInfo.SigningRegion
|
||||
if region == "" {
|
||||
region = aws.StringValue(req.Config.Region)
|
||||
}
|
||||
|
||||
name := req.ClientInfo.SigningName
|
||||
if name == "" {
|
||||
name = req.ClientInfo.ServiceName
|
||||
}
|
||||
|
||||
v4 := NewSigner(req.Config.Credentials, func(v4 *Signer) {
|
||||
v4.Debug = req.Config.LogLevel.Value()
|
||||
v4.Logger = req.Config.Logger
|
||||
v4.DisableHeaderHoisting = req.NotHoist
|
||||
v4.currentTimeFn = curTimeFn
|
||||
})
|
||||
|
||||
signingTime := req.Time
|
||||
if !req.LastSignedAt.IsZero() {
|
||||
signingTime = req.LastSignedAt
|
||||
}
|
||||
|
||||
signedHeaders, err := v4.signWithBody(req.HTTPRequest, req.Body, name, region, req.ExpireTime, signingTime)
|
||||
if err != nil {
|
||||
req.Error = err
|
||||
req.SignedHeaderVals = nil
|
||||
return
|
||||
}
|
||||
|
||||
req.SignedHeaderVals = signedHeaders
|
||||
req.LastSignedAt = curTimeFn()
|
||||
}
|
||||
|
||||
const logSignInfoMsg = `DEBUG: Request Signiture:
|
||||
---[ CANONICAL STRING ]-----------------------------
|
||||
%s
|
||||
---[ STRING TO SIGN ]--------------------------------
|
||||
%s%s
|
||||
-----------------------------------------------------`
|
||||
const logSignedURLMsg = `
|
||||
---[ SIGNED URL ]------------------------------------
|
||||
%s`
|
||||
|
||||
func (v4 *Signer) logSigningInfo(ctx *signingCtx) {
|
||||
signedURLMsg := ""
|
||||
if ctx.isPresign {
|
||||
signedURLMsg = fmt.Sprintf(logSignedURLMsg, ctx.Request.URL.String())
|
||||
}
|
||||
msg := fmt.Sprintf(logSignInfoMsg, ctx.canonicalString, ctx.stringToSign, signedURLMsg)
|
||||
v4.Logger.Log(msg)
|
||||
}
|
||||
|
||||
func (ctx *signingCtx) build(disableHeaderHoisting bool) {
|
||||
ctx.buildTime() // no depends
|
||||
ctx.buildCredentialString() // no depends
|
||||
|
||||
unsignedHeaders := ctx.Request.Header
|
||||
if ctx.isPresign {
|
||||
if !disableHeaderHoisting {
|
||||
urlValues := url.Values{}
|
||||
urlValues, unsignedHeaders = buildQuery(allowedQueryHoisting, unsignedHeaders) // no depends
|
||||
for k := range urlValues {
|
||||
ctx.Query[k] = urlValues[k]
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
ctx.buildBodyDigest()
|
||||
ctx.buildCanonicalHeaders(ignoredHeaders, unsignedHeaders)
|
||||
ctx.buildCanonicalString() // depends on canon headers / signed headers
|
||||
ctx.buildStringToSign() // depends on canon string
|
||||
ctx.buildSignature() // depends on string to sign
|
||||
|
||||
if ctx.isPresign {
|
||||
ctx.Request.URL.RawQuery += "&X-Amz-Signature=" + ctx.signature
|
||||
} else {
|
||||
parts := []string{
|
||||
authHeaderPrefix + " Credential=" + ctx.credValues.AccessKeyID + "/" + ctx.credentialString,
|
||||
"SignedHeaders=" + ctx.signedHeaders,
|
||||
"Signature=" + ctx.signature,
|
||||
}
|
||||
ctx.Request.Header.Set("Authorization", strings.Join(parts, ", "))
|
||||
}
|
||||
}
|
||||
|
||||
func (ctx *signingCtx) buildTime() {
|
||||
ctx.formattedTime = ctx.Time.UTC().Format(timeFormat)
|
||||
ctx.formattedShortTime = ctx.Time.UTC().Format(shortTimeFormat)
|
||||
|
||||
if ctx.isPresign {
|
||||
duration := int64(ctx.ExpireTime / time.Second)
|
||||
ctx.Query.Set("X-Amz-Date", ctx.formattedTime)
|
||||
ctx.Query.Set("X-Amz-Expires", strconv.FormatInt(duration, 10))
|
||||
} else {
|
||||
ctx.Request.Header.Set("X-Amz-Date", ctx.formattedTime)
|
||||
}
|
||||
}
|
||||
|
||||
func (ctx *signingCtx) buildCredentialString() {
|
||||
ctx.credentialString = strings.Join([]string{
|
||||
ctx.formattedShortTime,
|
||||
ctx.Region,
|
||||
ctx.ServiceName,
|
||||
"aws4_request",
|
||||
}, "/")
|
||||
|
||||
if ctx.isPresign {
|
||||
ctx.Query.Set("X-Amz-Credential", ctx.credValues.AccessKeyID+"/"+ctx.credentialString)
|
||||
}
|
||||
}
|
||||
|
||||
func buildQuery(r rule, header http.Header) (url.Values, http.Header) {
|
||||
query := url.Values{}
|
||||
unsignedHeaders := http.Header{}
|
||||
for k, h := range header {
|
||||
if r.IsValid(k) {
|
||||
query[k] = h
|
||||
} else {
|
||||
unsignedHeaders[k] = h
|
||||
}
|
||||
}
|
||||
|
||||
return query, unsignedHeaders
|
||||
}
|
||||
func (ctx *signingCtx) buildCanonicalHeaders(r rule, header http.Header) {
|
||||
var headers []string
|
||||
headers = append(headers, "host")
|
||||
for k, v := range header {
|
||||
canonicalKey := http.CanonicalHeaderKey(k)
|
||||
if !r.IsValid(canonicalKey) {
|
||||
continue // ignored header
|
||||
}
|
||||
if ctx.SignedHeaderVals == nil {
|
||||
ctx.SignedHeaderVals = make(http.Header)
|
||||
}
|
||||
|
||||
lowerCaseKey := strings.ToLower(k)
|
||||
if _, ok := ctx.SignedHeaderVals[lowerCaseKey]; ok {
|
||||
// include additional values
|
||||
ctx.SignedHeaderVals[lowerCaseKey] = append(ctx.SignedHeaderVals[lowerCaseKey], v...)
|
||||
continue
|
||||
}
|
||||
|
||||
headers = append(headers, lowerCaseKey)
|
||||
ctx.SignedHeaderVals[lowerCaseKey] = v
|
||||
}
|
||||
sort.Strings(headers)
|
||||
|
||||
ctx.signedHeaders = strings.Join(headers, ";")
|
||||
|
||||
if ctx.isPresign {
|
||||
ctx.Query.Set("X-Amz-SignedHeaders", ctx.signedHeaders)
|
||||
}
|
||||
|
||||
headerValues := make([]string, len(headers))
|
||||
for i, k := range headers {
|
||||
if k == "host" {
|
||||
headerValues[i] = "host:" + ctx.Request.URL.Host
|
||||
} else {
|
||||
headerValues[i] = k + ":" +
|
||||
strings.Join(ctx.SignedHeaderVals[k], ",")
|
||||
}
|
||||
}
|
||||
|
||||
ctx.canonicalHeaders = strings.Join(stripExcessSpaces(headerValues), "\n")
|
||||
}
|
||||
|
||||
func (ctx *signingCtx) buildCanonicalString() {
|
||||
ctx.Request.URL.RawQuery = strings.Replace(ctx.Query.Encode(), "+", "%20", -1)
|
||||
uri := ctx.Request.URL.Opaque
|
||||
if uri != "" {
|
||||
uri = "/" + strings.Join(strings.Split(uri, "/")[3:], "/")
|
||||
} else {
|
||||
uri = ctx.Request.URL.Path
|
||||
}
|
||||
if uri == "" {
|
||||
uri = "/"
|
||||
}
|
||||
|
||||
if ctx.ServiceName != "s3" {
|
||||
uri = rest.EscapePath(uri, false)
|
||||
}
|
||||
|
||||
ctx.canonicalString = strings.Join([]string{
|
||||
ctx.Request.Method,
|
||||
uri,
|
||||
ctx.Request.URL.RawQuery,
|
||||
ctx.canonicalHeaders + "\n",
|
||||
ctx.signedHeaders,
|
||||
ctx.bodyDigest,
|
||||
}, "\n")
|
||||
}
|
||||
|
||||
func (ctx *signingCtx) buildStringToSign() {
|
||||
ctx.stringToSign = strings.Join([]string{
|
||||
authHeaderPrefix,
|
||||
ctx.formattedTime,
|
||||
ctx.credentialString,
|
||||
hex.EncodeToString(makeSha256([]byte(ctx.canonicalString))),
|
||||
}, "\n")
|
||||
}
|
||||
|
||||
func (ctx *signingCtx) buildSignature() {
|
||||
secret := ctx.credValues.SecretAccessKey
|
||||
date := makeHmac([]byte("AWS4"+secret), []byte(ctx.formattedShortTime))
|
||||
region := makeHmac(date, []byte(ctx.Region))
|
||||
service := makeHmac(region, []byte(ctx.ServiceName))
|
||||
credentials := makeHmac(service, []byte("aws4_request"))
|
||||
signature := makeHmac(credentials, []byte(ctx.stringToSign))
|
||||
ctx.signature = hex.EncodeToString(signature)
|
||||
}
|
||||
|
||||
func (ctx *signingCtx) buildBodyDigest() {
|
||||
hash := ctx.Request.Header.Get("X-Amz-Content-Sha256")
|
||||
if hash == "" {
|
||||
if ctx.isPresign && ctx.ServiceName == "s3" {
|
||||
hash = "UNSIGNED-PAYLOAD"
|
||||
} else if ctx.Body == nil {
|
||||
hash = emptyStringSHA256
|
||||
} else {
|
||||
hash = hex.EncodeToString(makeSha256Reader(ctx.Body))
|
||||
}
|
||||
if ctx.ServiceName == "s3" {
|
||||
ctx.Request.Header.Set("X-Amz-Content-Sha256", hash)
|
||||
}
|
||||
}
|
||||
ctx.bodyDigest = hash
|
||||
}
|
||||
|
||||
// isRequestSigned returns if the request is currently signed or presigned
|
||||
func (ctx *signingCtx) isRequestSigned() bool {
|
||||
if ctx.isPresign && ctx.Query.Get("X-Amz-Signature") != "" {
|
||||
return true
|
||||
}
|
||||
if ctx.Request.Header.Get("Authorization") != "" {
|
||||
return true
|
||||
}
|
||||
|
||||
return false
|
||||
}
|
||||
|
||||
// unsign removes signing flags for both signed and presigned requests.
|
||||
func (ctx *signingCtx) removePresign() {
|
||||
ctx.Query.Del("X-Amz-Algorithm")
|
||||
ctx.Query.Del("X-Amz-Signature")
|
||||
ctx.Query.Del("X-Amz-Security-Token")
|
||||
ctx.Query.Del("X-Amz-Date")
|
||||
ctx.Query.Del("X-Amz-Expires")
|
||||
ctx.Query.Del("X-Amz-Credential")
|
||||
ctx.Query.Del("X-Amz-SignedHeaders")
|
||||
}
|
||||
|
||||
func makeHmac(key []byte, data []byte) []byte {
|
||||
hash := hmac.New(sha256.New, key)
|
||||
hash.Write(data)
|
||||
return hash.Sum(nil)
|
||||
}
|
||||
|
||||
func makeSha256(data []byte) []byte {
|
||||
hash := sha256.New()
|
||||
hash.Write(data)
|
||||
return hash.Sum(nil)
|
||||
}
|
||||
|
||||
func makeSha256Reader(reader io.ReadSeeker) []byte {
|
||||
hash := sha256.New()
|
||||
start, _ := reader.Seek(0, 1)
|
||||
defer reader.Seek(start, 0)
|
||||
|
||||
io.Copy(hash, reader)
|
||||
return hash.Sum(nil)
|
||||
}
|
||||
|
||||
const doubleSpaces = " "
|
||||
|
||||
var doubleSpaceBytes = []byte(doubleSpaces)
|
||||
|
||||
func stripExcessSpaces(headerVals []string) []string {
|
||||
vals := make([]string, len(headerVals))
|
||||
for i, str := range headerVals {
|
||||
// Trim leading and trailing spaces
|
||||
trimmed := strings.TrimSpace(str)
|
||||
|
||||
idx := strings.Index(trimmed, doubleSpaces)
|
||||
var buf []byte
|
||||
for idx > -1 {
|
||||
// Multiple adjacent spaces found
|
||||
if buf == nil {
|
||||
// first time create the buffer
|
||||
buf = []byte(trimmed)
|
||||
}
|
||||
|
||||
stripToIdx := -1
|
||||
for j := idx + 1; j < len(buf); j++ {
|
||||
if buf[j] != ' ' {
|
||||
buf = append(buf[:idx+1], buf[j:]...)
|
||||
stripToIdx = j
|
||||
break
|
||||
}
|
||||
}
|
||||
|
||||
if stripToIdx >= 0 {
|
||||
idx = bytes.Index(buf[stripToIdx:], doubleSpaceBytes)
|
||||
if idx >= 0 {
|
||||
idx += stripToIdx
|
||||
}
|
||||
} else {
|
||||
idx = -1
|
||||
}
|
||||
}
|
||||
|
||||
if buf != nil {
|
||||
vals[i] = string(buf)
|
||||
} else {
|
||||
vals[i] = trimmed
|
||||
}
|
||||
}
|
||||
return vals
|
||||
}
|
|
@ -5,4 +5,4 @@ package aws
|
|||
const SDKName = "aws-sdk-go"
|
||||
|
||||
// SDKVersion is the version of this SDK
|
||||
const SDKVersion = "1.1.23"
|
||||
const SDKVersion = "1.2.5"
|
||||
|
|
|
@ -1,465 +0,0 @@
|
|||
// Package v4 implements signing for AWS V4 signer
|
||||
package v4
|
||||
|
||||
import (
|
||||
"crypto/hmac"
|
||||
"crypto/sha256"
|
||||
"encoding/hex"
|
||||
"fmt"
|
||||
"io"
|
||||
"net/http"
|
||||
"net/url"
|
||||
"sort"
|
||||
"strconv"
|
||||
"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"
|
||||
"github.com/aws/aws-sdk-go/private/protocol/rest"
|
||||
)
|
||||
|
||||
const (
|
||||
authHeaderPrefix = "AWS4-HMAC-SHA256"
|
||||
timeFormat = "20060102T150405Z"
|
||||
shortTimeFormat = "20060102"
|
||||
)
|
||||
|
||||
var ignoredHeaders = rules{
|
||||
blacklist{
|
||||
mapRule{
|
||||
"Authorization": struct{}{},
|
||||
"User-Agent": struct{}{},
|
||||
},
|
||||
},
|
||||
}
|
||||
|
||||
// requiredSignedHeaders is a whitelist for build canonical headers.
|
||||
var requiredSignedHeaders = rules{
|
||||
whitelist{
|
||||
mapRule{
|
||||
"Cache-Control": struct{}{},
|
||||
"Content-Disposition": struct{}{},
|
||||
"Content-Encoding": struct{}{},
|
||||
"Content-Language": struct{}{},
|
||||
"Content-Md5": struct{}{},
|
||||
"Content-Type": struct{}{},
|
||||
"Expires": struct{}{},
|
||||
"If-Match": struct{}{},
|
||||
"If-Modified-Since": struct{}{},
|
||||
"If-None-Match": struct{}{},
|
||||
"If-Unmodified-Since": struct{}{},
|
||||
"Range": struct{}{},
|
||||
"X-Amz-Acl": struct{}{},
|
||||
"X-Amz-Copy-Source": struct{}{},
|
||||
"X-Amz-Copy-Source-If-Match": struct{}{},
|
||||
"X-Amz-Copy-Source-If-Modified-Since": struct{}{},
|
||||
"X-Amz-Copy-Source-If-None-Match": struct{}{},
|
||||
"X-Amz-Copy-Source-If-Unmodified-Since": struct{}{},
|
||||
"X-Amz-Copy-Source-Range": struct{}{},
|
||||
"X-Amz-Copy-Source-Server-Side-Encryption-Customer-Algorithm": struct{}{},
|
||||
"X-Amz-Copy-Source-Server-Side-Encryption-Customer-Key": struct{}{},
|
||||
"X-Amz-Copy-Source-Server-Side-Encryption-Customer-Key-Md5": struct{}{},
|
||||
"X-Amz-Grant-Full-control": struct{}{},
|
||||
"X-Amz-Grant-Read": struct{}{},
|
||||
"X-Amz-Grant-Read-Acp": struct{}{},
|
||||
"X-Amz-Grant-Write": struct{}{},
|
||||
"X-Amz-Grant-Write-Acp": struct{}{},
|
||||
"X-Amz-Metadata-Directive": struct{}{},
|
||||
"X-Amz-Mfa": struct{}{},
|
||||
"X-Amz-Request-Payer": struct{}{},
|
||||
"X-Amz-Server-Side-Encryption": struct{}{},
|
||||
"X-Amz-Server-Side-Encryption-Aws-Kms-Key-Id": struct{}{},
|
||||
"X-Amz-Server-Side-Encryption-Customer-Algorithm": struct{}{},
|
||||
"X-Amz-Server-Side-Encryption-Customer-Key": struct{}{},
|
||||
"X-Amz-Server-Side-Encryption-Customer-Key-Md5": struct{}{},
|
||||
"X-Amz-Storage-Class": struct{}{},
|
||||
"X-Amz-Website-Redirect-Location": struct{}{},
|
||||
},
|
||||
},
|
||||
patterns{"X-Amz-Meta-"},
|
||||
}
|
||||
|
||||
// allowedHoisting is a whitelist for build query headers. The boolean value
|
||||
// represents whether or not it is a pattern.
|
||||
var allowedQueryHoisting = inclusiveRules{
|
||||
blacklist{requiredSignedHeaders},
|
||||
patterns{"X-Amz-"},
|
||||
}
|
||||
|
||||
type signer struct {
|
||||
Request *http.Request
|
||||
Time time.Time
|
||||
ExpireTime time.Duration
|
||||
ServiceName string
|
||||
Region string
|
||||
CredValues credentials.Value
|
||||
Credentials *credentials.Credentials
|
||||
Query url.Values
|
||||
Body io.ReadSeeker
|
||||
Debug aws.LogLevelType
|
||||
Logger aws.Logger
|
||||
|
||||
isPresign bool
|
||||
formattedTime string
|
||||
formattedShortTime string
|
||||
|
||||
signedHeaders string
|
||||
canonicalHeaders string
|
||||
canonicalString string
|
||||
credentialString string
|
||||
stringToSign string
|
||||
signature string
|
||||
authorization string
|
||||
notHoist bool
|
||||
signedHeaderVals http.Header
|
||||
}
|
||||
|
||||
// Sign requests with signature version 4.
|
||||
//
|
||||
// Will sign the requests with the service config's Credentials object
|
||||
// Signing is skipped if the credentials is the credentials.AnonymousCredentials
|
||||
// object.
|
||||
func Sign(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
|
||||
}
|
||||
|
||||
region := req.ClientInfo.SigningRegion
|
||||
if region == "" {
|
||||
region = aws.StringValue(req.Config.Region)
|
||||
}
|
||||
|
||||
name := req.ClientInfo.SigningName
|
||||
if name == "" {
|
||||
name = req.ClientInfo.ServiceName
|
||||
}
|
||||
|
||||
s := signer{
|
||||
Request: req.HTTPRequest,
|
||||
Time: req.Time,
|
||||
ExpireTime: req.ExpireTime,
|
||||
Query: req.HTTPRequest.URL.Query(),
|
||||
Body: req.Body,
|
||||
ServiceName: name,
|
||||
Region: region,
|
||||
Credentials: req.Config.Credentials,
|
||||
Debug: req.Config.LogLevel.Value(),
|
||||
Logger: req.Config.Logger,
|
||||
notHoist: req.NotHoist,
|
||||
}
|
||||
|
||||
req.Error = s.sign()
|
||||
req.Time = s.Time
|
||||
req.SignedHeaderVals = s.signedHeaderVals
|
||||
}
|
||||
|
||||
func (v4 *signer) sign() error {
|
||||
if v4.ExpireTime != 0 {
|
||||
v4.isPresign = true
|
||||
}
|
||||
|
||||
if v4.isRequestSigned() {
|
||||
if !v4.Credentials.IsExpired() && time.Now().Before(v4.Time.Add(10*time.Minute)) {
|
||||
// If the request is already signed, and the credentials have not
|
||||
// expired, and the request is not too old ignore the signing request.
|
||||
return nil
|
||||
}
|
||||
v4.Time = time.Now()
|
||||
|
||||
// The credentials have expired for this request. The current signing
|
||||
// is invalid, and needs to be request because the request will fail.
|
||||
if v4.isPresign {
|
||||
v4.removePresign()
|
||||
// Update the request's query string to ensure the values stays in
|
||||
// sync in the case retrieving the new credentials fails.
|
||||
v4.Request.URL.RawQuery = v4.Query.Encode()
|
||||
}
|
||||
}
|
||||
|
||||
var err error
|
||||
v4.CredValues, err = v4.Credentials.Get()
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
if v4.isPresign {
|
||||
v4.Query.Set("X-Amz-Algorithm", authHeaderPrefix)
|
||||
if v4.CredValues.SessionToken != "" {
|
||||
v4.Query.Set("X-Amz-Security-Token", v4.CredValues.SessionToken)
|
||||
} else {
|
||||
v4.Query.Del("X-Amz-Security-Token")
|
||||
}
|
||||
} else if v4.CredValues.SessionToken != "" {
|
||||
v4.Request.Header.Set("X-Amz-Security-Token", v4.CredValues.SessionToken)
|
||||
}
|
||||
|
||||
v4.build()
|
||||
|
||||
if v4.Debug.Matches(aws.LogDebugWithSigning) {
|
||||
v4.logSigningInfo()
|
||||
}
|
||||
|
||||
return nil
|
||||
}
|
||||
|
||||
const logSignInfoMsg = `DEBUG: Request Signiture:
|
||||
---[ CANONICAL STRING ]-----------------------------
|
||||
%s
|
||||
---[ STRING TO SIGN ]--------------------------------
|
||||
%s%s
|
||||
-----------------------------------------------------`
|
||||
const logSignedURLMsg = `
|
||||
---[ SIGNED URL ]------------------------------------
|
||||
%s`
|
||||
|
||||
func (v4 *signer) logSigningInfo() {
|
||||
signedURLMsg := ""
|
||||
if v4.isPresign {
|
||||
signedURLMsg = fmt.Sprintf(logSignedURLMsg, v4.Request.URL.String())
|
||||
}
|
||||
msg := fmt.Sprintf(logSignInfoMsg, v4.canonicalString, v4.stringToSign, signedURLMsg)
|
||||
v4.Logger.Log(msg)
|
||||
}
|
||||
|
||||
func (v4 *signer) build() {
|
||||
|
||||
v4.buildTime() // no depends
|
||||
v4.buildCredentialString() // no depends
|
||||
|
||||
unsignedHeaders := v4.Request.Header
|
||||
if v4.isPresign {
|
||||
if !v4.notHoist {
|
||||
urlValues := url.Values{}
|
||||
urlValues, unsignedHeaders = buildQuery(allowedQueryHoisting, unsignedHeaders) // no depends
|
||||
for k := range urlValues {
|
||||
v4.Query[k] = urlValues[k]
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
v4.buildCanonicalHeaders(ignoredHeaders, unsignedHeaders)
|
||||
v4.buildCanonicalString() // depends on canon headers / signed headers
|
||||
v4.buildStringToSign() // depends on canon string
|
||||
v4.buildSignature() // depends on string to sign
|
||||
|
||||
if v4.isPresign {
|
||||
v4.Request.URL.RawQuery += "&X-Amz-Signature=" + v4.signature
|
||||
} else {
|
||||
parts := []string{
|
||||
authHeaderPrefix + " Credential=" + v4.CredValues.AccessKeyID + "/" + v4.credentialString,
|
||||
"SignedHeaders=" + v4.signedHeaders,
|
||||
"Signature=" + v4.signature,
|
||||
}
|
||||
v4.Request.Header.Set("Authorization", strings.Join(parts, ", "))
|
||||
}
|
||||
}
|
||||
|
||||
func (v4 *signer) buildTime() {
|
||||
v4.formattedTime = v4.Time.UTC().Format(timeFormat)
|
||||
v4.formattedShortTime = v4.Time.UTC().Format(shortTimeFormat)
|
||||
|
||||
if v4.isPresign {
|
||||
duration := int64(v4.ExpireTime / time.Second)
|
||||
v4.Query.Set("X-Amz-Date", v4.formattedTime)
|
||||
v4.Query.Set("X-Amz-Expires", strconv.FormatInt(duration, 10))
|
||||
} else {
|
||||
v4.Request.Header.Set("X-Amz-Date", v4.formattedTime)
|
||||
}
|
||||
}
|
||||
|
||||
func (v4 *signer) buildCredentialString() {
|
||||
v4.credentialString = strings.Join([]string{
|
||||
v4.formattedShortTime,
|
||||
v4.Region,
|
||||
v4.ServiceName,
|
||||
"aws4_request",
|
||||
}, "/")
|
||||
|
||||
if v4.isPresign {
|
||||
v4.Query.Set("X-Amz-Credential", v4.CredValues.AccessKeyID+"/"+v4.credentialString)
|
||||
}
|
||||
}
|
||||
|
||||
func buildQuery(r rule, header http.Header) (url.Values, http.Header) {
|
||||
query := url.Values{}
|
||||
unsignedHeaders := http.Header{}
|
||||
for k, h := range header {
|
||||
if r.IsValid(k) {
|
||||
query[k] = h
|
||||
} else {
|
||||
unsignedHeaders[k] = h
|
||||
}
|
||||
}
|
||||
|
||||
return query, unsignedHeaders
|
||||
}
|
||||
func (v4 *signer) buildCanonicalHeaders(r rule, header http.Header) {
|
||||
var headers []string
|
||||
headers = append(headers, "host")
|
||||
for k, v := range header {
|
||||
canonicalKey := http.CanonicalHeaderKey(k)
|
||||
if !r.IsValid(canonicalKey) {
|
||||
continue // ignored header
|
||||
}
|
||||
if v4.signedHeaderVals == nil {
|
||||
v4.signedHeaderVals = make(http.Header)
|
||||
}
|
||||
|
||||
lowerCaseKey := strings.ToLower(k)
|
||||
if _, ok := v4.signedHeaderVals[lowerCaseKey]; ok {
|
||||
// include additional values
|
||||
v4.signedHeaderVals[lowerCaseKey] = append(v4.signedHeaderVals[lowerCaseKey], v...)
|
||||
continue
|
||||
}
|
||||
|
||||
headers = append(headers, lowerCaseKey)
|
||||
v4.signedHeaderVals[lowerCaseKey] = v
|
||||
}
|
||||
sort.Strings(headers)
|
||||
|
||||
v4.signedHeaders = strings.Join(headers, ";")
|
||||
|
||||
if v4.isPresign {
|
||||
v4.Query.Set("X-Amz-SignedHeaders", v4.signedHeaders)
|
||||
}
|
||||
|
||||
headerValues := make([]string, len(headers))
|
||||
for i, k := range headers {
|
||||
if k == "host" {
|
||||
headerValues[i] = "host:" + v4.Request.URL.Host
|
||||
} else {
|
||||
headerValues[i] = k + ":" +
|
||||
strings.Join(v4.signedHeaderVals[k], ",")
|
||||
}
|
||||
}
|
||||
|
||||
v4.canonicalHeaders = strings.Join(stripExcessSpaces(headerValues), "\n")
|
||||
}
|
||||
|
||||
func (v4 *signer) buildCanonicalString() {
|
||||
v4.Request.URL.RawQuery = strings.Replace(v4.Query.Encode(), "+", "%20", -1)
|
||||
uri := v4.Request.URL.Opaque
|
||||
if uri != "" {
|
||||
uri = "/" + strings.Join(strings.Split(uri, "/")[3:], "/")
|
||||
} else {
|
||||
uri = v4.Request.URL.Path
|
||||
}
|
||||
if uri == "" {
|
||||
uri = "/"
|
||||
}
|
||||
|
||||
if v4.ServiceName != "s3" {
|
||||
uri = rest.EscapePath(uri, false)
|
||||
}
|
||||
|
||||
v4.canonicalString = strings.Join([]string{
|
||||
v4.Request.Method,
|
||||
uri,
|
||||
v4.Request.URL.RawQuery,
|
||||
v4.canonicalHeaders + "\n",
|
||||
v4.signedHeaders,
|
||||
v4.bodyDigest(),
|
||||
}, "\n")
|
||||
}
|
||||
|
||||
func (v4 *signer) buildStringToSign() {
|
||||
v4.stringToSign = strings.Join([]string{
|
||||
authHeaderPrefix,
|
||||
v4.formattedTime,
|
||||
v4.credentialString,
|
||||
hex.EncodeToString(makeSha256([]byte(v4.canonicalString))),
|
||||
}, "\n")
|
||||
}
|
||||
|
||||
func (v4 *signer) buildSignature() {
|
||||
secret := v4.CredValues.SecretAccessKey
|
||||
date := makeHmac([]byte("AWS4"+secret), []byte(v4.formattedShortTime))
|
||||
region := makeHmac(date, []byte(v4.Region))
|
||||
service := makeHmac(region, []byte(v4.ServiceName))
|
||||
credentials := makeHmac(service, []byte("aws4_request"))
|
||||
signature := makeHmac(credentials, []byte(v4.stringToSign))
|
||||
v4.signature = hex.EncodeToString(signature)
|
||||
}
|
||||
|
||||
func (v4 *signer) bodyDigest() string {
|
||||
hash := v4.Request.Header.Get("X-Amz-Content-Sha256")
|
||||
if hash == "" {
|
||||
if v4.isPresign && v4.ServiceName == "s3" {
|
||||
hash = "UNSIGNED-PAYLOAD"
|
||||
} else if v4.Body == nil {
|
||||
hash = hex.EncodeToString(makeSha256([]byte{}))
|
||||
} else {
|
||||
hash = hex.EncodeToString(makeSha256Reader(v4.Body))
|
||||
}
|
||||
v4.Request.Header.Add("X-Amz-Content-Sha256", hash)
|
||||
}
|
||||
return hash
|
||||
}
|
||||
|
||||
// isRequestSigned returns if the request is currently signed or presigned
|
||||
func (v4 *signer) isRequestSigned() bool {
|
||||
if v4.isPresign && v4.Query.Get("X-Amz-Signature") != "" {
|
||||
return true
|
||||
}
|
||||
if v4.Request.Header.Get("Authorization") != "" {
|
||||
return true
|
||||
}
|
||||
|
||||
return false
|
||||
}
|
||||
|
||||
// unsign removes signing flags for both signed and presigned requests.
|
||||
func (v4 *signer) removePresign() {
|
||||
v4.Query.Del("X-Amz-Algorithm")
|
||||
v4.Query.Del("X-Amz-Signature")
|
||||
v4.Query.Del("X-Amz-Security-Token")
|
||||
v4.Query.Del("X-Amz-Date")
|
||||
v4.Query.Del("X-Amz-Expires")
|
||||
v4.Query.Del("X-Amz-Credential")
|
||||
v4.Query.Del("X-Amz-SignedHeaders")
|
||||
}
|
||||
|
||||
func makeHmac(key []byte, data []byte) []byte {
|
||||
hash := hmac.New(sha256.New, key)
|
||||
hash.Write(data)
|
||||
return hash.Sum(nil)
|
||||
}
|
||||
|
||||
func makeSha256(data []byte) []byte {
|
||||
hash := sha256.New()
|
||||
hash.Write(data)
|
||||
return hash.Sum(nil)
|
||||
}
|
||||
|
||||
func makeSha256Reader(reader io.ReadSeeker) []byte {
|
||||
hash := sha256.New()
|
||||
start, _ := reader.Seek(0, 1)
|
||||
defer reader.Seek(start, 0)
|
||||
|
||||
io.Copy(hash, reader)
|
||||
return hash.Sum(nil)
|
||||
}
|
||||
|
||||
func stripExcessSpaces(headerVals []string) []string {
|
||||
vals := make([]string, len(headerVals))
|
||||
for i, str := range headerVals {
|
||||
stripped := ""
|
||||
found := false
|
||||
str = strings.TrimSpace(str)
|
||||
for _, c := range str {
|
||||
if !found && c == ' ' {
|
||||
stripped += string(c)
|
||||
found = true
|
||||
} else if c != ' ' {
|
||||
stripped += string(c)
|
||||
found = false
|
||||
}
|
||||
}
|
||||
vals[i] = stripped
|
||||
}
|
||||
return vals
|
||||
}
|
File diff suppressed because it is too large
Load Diff
|
@ -7,8 +7,8 @@ import (
|
|||
"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/restjson"
|
||||
"github.com/aws/aws-sdk-go/private/signer/v4"
|
||||
)
|
||||
|
||||
// Amazon API Gateway helps developers deliver robust, secure and scalable mobile
|
||||
|
@ -62,7 +62,7 @@ func newClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegio
|
|||
}
|
||||
|
||||
// Handlers
|
||||
svc.Handlers.Sign.PushBack(v4.Sign)
|
||||
svc.Handlers.Sign.PushBackNamed(v4.SignRequestHandler)
|
||||
svc.Handlers.Build.PushBackNamed(restjson.BuildHandler)
|
||||
svc.Handlers.Unmarshal.PushBackNamed(restjson.UnmarshalHandler)
|
||||
svc.Handlers.UnmarshalMeta.PushBackNamed(restjson.UnmarshalMetaHandler)
|
||||
|
|
File diff suppressed because it is too large
Load Diff
|
@ -7,8 +7,8 @@ import (
|
|||
"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/query"
|
||||
"github.com/aws/aws-sdk-go/private/signer/v4"
|
||||
)
|
||||
|
||||
// Auto Scaling is designed to automatically launch or terminate EC2 instances
|
||||
|
@ -60,7 +60,7 @@ func newClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegio
|
|||
}
|
||||
|
||||
// Handlers
|
||||
svc.Handlers.Sign.PushBack(v4.Sign)
|
||||
svc.Handlers.Sign.PushBackNamed(v4.SignRequestHandler)
|
||||
svc.Handlers.Build.PushBackNamed(query.BuildHandler)
|
||||
svc.Handlers.Unmarshal.PushBackNamed(query.UnmarshalHandler)
|
||||
svc.Handlers.UnmarshalMeta.PushBackNamed(query.UnmarshalMetaHandler)
|
||||
|
|
File diff suppressed because it is too large
Load Diff
|
@ -7,8 +7,8 @@ import (
|
|||
"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/query"
|
||||
"github.com/aws/aws-sdk-go/private/signer/v4"
|
||||
)
|
||||
|
||||
// AWS CloudFormation enables you to create and manage AWS infrastructure deployments
|
||||
|
@ -28,7 +28,7 @@ import (
|
|||
//
|
||||
// Amazon CloudFormation makes use of other AWS products. If you need additional
|
||||
// technical information about a specific AWS product, you can find the product's
|
||||
// technical documentation at http://docs.aws.amazon.com/documentation/ (http://docs.aws.amazon.com/documentation/).
|
||||
// technical documentation at http://docs.aws.amazon.com/ (http://docs.aws.amazon.com/).
|
||||
//The service client's operations are safe to be used concurrently.
|
||||
// It is not safe to mutate any of the client's properties though.
|
||||
type CloudFormation struct {
|
||||
|
@ -75,7 +75,7 @@ func newClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegio
|
|||
}
|
||||
|
||||
// Handlers
|
||||
svc.Handlers.Sign.PushBack(v4.Sign)
|
||||
svc.Handlers.Sign.PushBackNamed(v4.SignRequestHandler)
|
||||
svc.Handlers.Build.PushBackNamed(query.BuildHandler)
|
||||
svc.Handlers.Unmarshal.PushBackNamed(query.UnmarshalHandler)
|
||||
svc.Handlers.UnmarshalMeta.PushBackNamed(query.UnmarshalMetaHandler)
|
||||
|
|
|
@ -15,7 +15,28 @@ import (
|
|||
|
||||
const opCreateCloudFrontOriginAccessIdentity = "CreateCloudFrontOriginAccessIdentity2016_01_28"
|
||||
|
||||
// CreateCloudFrontOriginAccessIdentityRequest generates a request for the CreateCloudFrontOriginAccessIdentity operation.
|
||||
// CreateCloudFrontOriginAccessIdentityRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the CreateCloudFrontOriginAccessIdentity operation. The "output" return
|
||||
// value can be used to capture response data after the request's "Send" method
|
||||
// is called.
|
||||
//
|
||||
// Creating a request object using this method should be used when you want to inject
|
||||
// custom logic into the request's lifecycle using a custom handler, or if you want to
|
||||
// access properties on the request object before or after sending the request. If
|
||||
// you just want the service response, call the CreateCloudFrontOriginAccessIdentity method directly
|
||||
// instead.
|
||||
//
|
||||
// Note: You must call the "Send" method on the returned request object in order
|
||||
// to execute the request.
|
||||
//
|
||||
// // Example sending a request using the CreateCloudFrontOriginAccessIdentityRequest method.
|
||||
// req, resp := client.CreateCloudFrontOriginAccessIdentityRequest(params)
|
||||
//
|
||||
// err := req.Send()
|
||||
// if err == nil { // resp is now filled
|
||||
// fmt.Println(resp)
|
||||
// }
|
||||
//
|
||||
func (c *CloudFront) CreateCloudFrontOriginAccessIdentityRequest(input *CreateCloudFrontOriginAccessIdentityInput) (req *request.Request, output *CreateCloudFrontOriginAccessIdentityOutput) {
|
||||
op := &request.Operation{
|
||||
Name: opCreateCloudFrontOriginAccessIdentity,
|
||||
|
@ -42,7 +63,28 @@ func (c *CloudFront) CreateCloudFrontOriginAccessIdentity(input *CreateCloudFron
|
|||
|
||||
const opCreateDistribution = "CreateDistribution2016_01_28"
|
||||
|
||||
// CreateDistributionRequest generates a request for the CreateDistribution operation.
|
||||
// CreateDistributionRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the CreateDistribution operation. The "output" return
|
||||
// value can be used to capture response data after the request's "Send" method
|
||||
// is called.
|
||||
//
|
||||
// Creating a request object using this method should be used when you want to inject
|
||||
// custom logic into the request's lifecycle using a custom handler, or if you want to
|
||||
// access properties on the request object before or after sending the request. If
|
||||
// you just want the service response, call the CreateDistribution method directly
|
||||
// instead.
|
||||
//
|
||||
// Note: You must call the "Send" method on the returned request object in order
|
||||
// to execute the request.
|
||||
//
|
||||
// // Example sending a request using the CreateDistributionRequest method.
|
||||
// req, resp := client.CreateDistributionRequest(params)
|
||||
//
|
||||
// err := req.Send()
|
||||
// if err == nil { // resp is now filled
|
||||
// fmt.Println(resp)
|
||||
// }
|
||||
//
|
||||
func (c *CloudFront) CreateDistributionRequest(input *CreateDistributionInput) (req *request.Request, output *CreateDistributionOutput) {
|
||||
op := &request.Operation{
|
||||
Name: opCreateDistribution,
|
||||
|
@ -69,7 +111,28 @@ func (c *CloudFront) CreateDistribution(input *CreateDistributionInput) (*Create
|
|||
|
||||
const opCreateInvalidation = "CreateInvalidation2016_01_28"
|
||||
|
||||
// CreateInvalidationRequest generates a request for the CreateInvalidation operation.
|
||||
// CreateInvalidationRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the CreateInvalidation operation. The "output" return
|
||||
// value can be used to capture response data after the request's "Send" method
|
||||
// is called.
|
||||
//
|
||||
// Creating a request object using this method should be used when you want to inject
|
||||
// custom logic into the request's lifecycle using a custom handler, or if you want to
|
||||
// access properties on the request object before or after sending the request. If
|
||||
// you just want the service response, call the CreateInvalidation method directly
|
||||
// instead.
|
||||
//
|
||||
// Note: You must call the "Send" method on the returned request object in order
|
||||
// to execute the request.
|
||||
//
|
||||
// // Example sending a request using the CreateInvalidationRequest method.
|
||||
// req, resp := client.CreateInvalidationRequest(params)
|
||||
//
|
||||
// err := req.Send()
|
||||
// if err == nil { // resp is now filled
|
||||
// fmt.Println(resp)
|
||||
// }
|
||||
//
|
||||
func (c *CloudFront) CreateInvalidationRequest(input *CreateInvalidationInput) (req *request.Request, output *CreateInvalidationOutput) {
|
||||
op := &request.Operation{
|
||||
Name: opCreateInvalidation,
|
||||
|
@ -96,7 +159,28 @@ func (c *CloudFront) CreateInvalidation(input *CreateInvalidationInput) (*Create
|
|||
|
||||
const opCreateStreamingDistribution = "CreateStreamingDistribution2016_01_28"
|
||||
|
||||
// CreateStreamingDistributionRequest generates a request for the CreateStreamingDistribution operation.
|
||||
// CreateStreamingDistributionRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the CreateStreamingDistribution operation. The "output" return
|
||||
// value can be used to capture response data after the request's "Send" method
|
||||
// is called.
|
||||
//
|
||||
// Creating a request object using this method should be used when you want to inject
|
||||
// custom logic into the request's lifecycle using a custom handler, or if you want to
|
||||
// access properties on the request object before or after sending the request. If
|
||||
// you just want the service response, call the CreateStreamingDistribution method directly
|
||||
// instead.
|
||||
//
|
||||
// Note: You must call the "Send" method on the returned request object in order
|
||||
// to execute the request.
|
||||
//
|
||||
// // Example sending a request using the CreateStreamingDistributionRequest method.
|
||||
// req, resp := client.CreateStreamingDistributionRequest(params)
|
||||
//
|
||||
// err := req.Send()
|
||||
// if err == nil { // resp is now filled
|
||||
// fmt.Println(resp)
|
||||
// }
|
||||
//
|
||||
func (c *CloudFront) CreateStreamingDistributionRequest(input *CreateStreamingDistributionInput) (req *request.Request, output *CreateStreamingDistributionOutput) {
|
||||
op := &request.Operation{
|
||||
Name: opCreateStreamingDistribution,
|
||||
|
@ -123,7 +207,28 @@ func (c *CloudFront) CreateStreamingDistribution(input *CreateStreamingDistribut
|
|||
|
||||
const opDeleteCloudFrontOriginAccessIdentity = "DeleteCloudFrontOriginAccessIdentity2016_01_28"
|
||||
|
||||
// DeleteCloudFrontOriginAccessIdentityRequest generates a request for the DeleteCloudFrontOriginAccessIdentity operation.
|
||||
// DeleteCloudFrontOriginAccessIdentityRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the DeleteCloudFrontOriginAccessIdentity operation. The "output" return
|
||||
// value can be used to capture response data after the request's "Send" method
|
||||
// is called.
|
||||
//
|
||||
// Creating a request object using this method should be used when you want to inject
|
||||
// custom logic into the request's lifecycle using a custom handler, or if you want to
|
||||
// access properties on the request object before or after sending the request. If
|
||||
// you just want the service response, call the DeleteCloudFrontOriginAccessIdentity method directly
|
||||
// instead.
|
||||
//
|
||||
// Note: You must call the "Send" method on the returned request object in order
|
||||
// to execute the request.
|
||||
//
|
||||
// // Example sending a request using the DeleteCloudFrontOriginAccessIdentityRequest method.
|
||||
// req, resp := client.DeleteCloudFrontOriginAccessIdentityRequest(params)
|
||||
//
|
||||
// err := req.Send()
|
||||
// if err == nil { // resp is now filled
|
||||
// fmt.Println(resp)
|
||||
// }
|
||||
//
|
||||
func (c *CloudFront) DeleteCloudFrontOriginAccessIdentityRequest(input *DeleteCloudFrontOriginAccessIdentityInput) (req *request.Request, output *DeleteCloudFrontOriginAccessIdentityOutput) {
|
||||
op := &request.Operation{
|
||||
Name: opDeleteCloudFrontOriginAccessIdentity,
|
||||
|
@ -152,7 +257,28 @@ func (c *CloudFront) DeleteCloudFrontOriginAccessIdentity(input *DeleteCloudFron
|
|||
|
||||
const opDeleteDistribution = "DeleteDistribution2016_01_28"
|
||||
|
||||
// DeleteDistributionRequest generates a request for the DeleteDistribution operation.
|
||||
// DeleteDistributionRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the DeleteDistribution operation. The "output" return
|
||||
// value can be used to capture response data after the request's "Send" method
|
||||
// is called.
|
||||
//
|
||||
// Creating a request object using this method should be used when you want to inject
|
||||
// custom logic into the request's lifecycle using a custom handler, or if you want to
|
||||
// access properties on the request object before or after sending the request. If
|
||||
// you just want the service response, call the DeleteDistribution method directly
|
||||
// instead.
|
||||
//
|
||||
// Note: You must call the "Send" method on the returned request object in order
|
||||
// to execute the request.
|
||||
//
|
||||
// // Example sending a request using the DeleteDistributionRequest method.
|
||||
// req, resp := client.DeleteDistributionRequest(params)
|
||||
//
|
||||
// err := req.Send()
|
||||
// if err == nil { // resp is now filled
|
||||
// fmt.Println(resp)
|
||||
// }
|
||||
//
|
||||
func (c *CloudFront) DeleteDistributionRequest(input *DeleteDistributionInput) (req *request.Request, output *DeleteDistributionOutput) {
|
||||
op := &request.Operation{
|
||||
Name: opDeleteDistribution,
|
||||
|
@ -181,7 +307,28 @@ func (c *CloudFront) DeleteDistribution(input *DeleteDistributionInput) (*Delete
|
|||
|
||||
const opDeleteStreamingDistribution = "DeleteStreamingDistribution2016_01_28"
|
||||
|
||||
// DeleteStreamingDistributionRequest generates a request for the DeleteStreamingDistribution operation.
|
||||
// DeleteStreamingDistributionRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the DeleteStreamingDistribution operation. The "output" return
|
||||
// value can be used to capture response data after the request's "Send" method
|
||||
// is called.
|
||||
//
|
||||
// Creating a request object using this method should be used when you want to inject
|
||||
// custom logic into the request's lifecycle using a custom handler, or if you want to
|
||||
// access properties on the request object before or after sending the request. If
|
||||
// you just want the service response, call the DeleteStreamingDistribution method directly
|
||||
// instead.
|
||||
//
|
||||
// Note: You must call the "Send" method on the returned request object in order
|
||||
// to execute the request.
|
||||
//
|
||||
// // Example sending a request using the DeleteStreamingDistributionRequest method.
|
||||
// req, resp := client.DeleteStreamingDistributionRequest(params)
|
||||
//
|
||||
// err := req.Send()
|
||||
// if err == nil { // resp is now filled
|
||||
// fmt.Println(resp)
|
||||
// }
|
||||
//
|
||||
func (c *CloudFront) DeleteStreamingDistributionRequest(input *DeleteStreamingDistributionInput) (req *request.Request, output *DeleteStreamingDistributionOutput) {
|
||||
op := &request.Operation{
|
||||
Name: opDeleteStreamingDistribution,
|
||||
|
@ -210,7 +357,28 @@ func (c *CloudFront) DeleteStreamingDistribution(input *DeleteStreamingDistribut
|
|||
|
||||
const opGetCloudFrontOriginAccessIdentity = "GetCloudFrontOriginAccessIdentity2016_01_28"
|
||||
|
||||
// GetCloudFrontOriginAccessIdentityRequest generates a request for the GetCloudFrontOriginAccessIdentity operation.
|
||||
// GetCloudFrontOriginAccessIdentityRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the GetCloudFrontOriginAccessIdentity operation. The "output" return
|
||||
// value can be used to capture response data after the request's "Send" method
|
||||
// is called.
|
||||
//
|
||||
// Creating a request object using this method should be used when you want to inject
|
||||
// custom logic into the request's lifecycle using a custom handler, or if you want to
|
||||
// access properties on the request object before or after sending the request. If
|
||||
// you just want the service response, call the GetCloudFrontOriginAccessIdentity method directly
|
||||
// instead.
|
||||
//
|
||||
// Note: You must call the "Send" method on the returned request object in order
|
||||
// to execute the request.
|
||||
//
|
||||
// // Example sending a request using the GetCloudFrontOriginAccessIdentityRequest method.
|
||||
// req, resp := client.GetCloudFrontOriginAccessIdentityRequest(params)
|
||||
//
|
||||
// err := req.Send()
|
||||
// if err == nil { // resp is now filled
|
||||
// fmt.Println(resp)
|
||||
// }
|
||||
//
|
||||
func (c *CloudFront) GetCloudFrontOriginAccessIdentityRequest(input *GetCloudFrontOriginAccessIdentityInput) (req *request.Request, output *GetCloudFrontOriginAccessIdentityOutput) {
|
||||
op := &request.Operation{
|
||||
Name: opGetCloudFrontOriginAccessIdentity,
|
||||
|
@ -237,7 +405,28 @@ func (c *CloudFront) GetCloudFrontOriginAccessIdentity(input *GetCloudFrontOrigi
|
|||
|
||||
const opGetCloudFrontOriginAccessIdentityConfig = "GetCloudFrontOriginAccessIdentityConfig2016_01_28"
|
||||
|
||||
// GetCloudFrontOriginAccessIdentityConfigRequest generates a request for the GetCloudFrontOriginAccessIdentityConfig operation.
|
||||
// GetCloudFrontOriginAccessIdentityConfigRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the GetCloudFrontOriginAccessIdentityConfig operation. The "output" return
|
||||
// value can be used to capture response data after the request's "Send" method
|
||||
// is called.
|
||||
//
|
||||
// Creating a request object using this method should be used when you want to inject
|
||||
// custom logic into the request's lifecycle using a custom handler, or if you want to
|
||||
// access properties on the request object before or after sending the request. If
|
||||
// you just want the service response, call the GetCloudFrontOriginAccessIdentityConfig method directly
|
||||
// instead.
|
||||
//
|
||||
// Note: You must call the "Send" method on the returned request object in order
|
||||
// to execute the request.
|
||||
//
|
||||
// // Example sending a request using the GetCloudFrontOriginAccessIdentityConfigRequest method.
|
||||
// req, resp := client.GetCloudFrontOriginAccessIdentityConfigRequest(params)
|
||||
//
|
||||
// err := req.Send()
|
||||
// if err == nil { // resp is now filled
|
||||
// fmt.Println(resp)
|
||||
// }
|
||||
//
|
||||
func (c *CloudFront) GetCloudFrontOriginAccessIdentityConfigRequest(input *GetCloudFrontOriginAccessIdentityConfigInput) (req *request.Request, output *GetCloudFrontOriginAccessIdentityConfigOutput) {
|
||||
op := &request.Operation{
|
||||
Name: opGetCloudFrontOriginAccessIdentityConfig,
|
||||
|
@ -264,7 +453,28 @@ func (c *CloudFront) GetCloudFrontOriginAccessIdentityConfig(input *GetCloudFron
|
|||
|
||||
const opGetDistribution = "GetDistribution2016_01_28"
|
||||
|
||||
// GetDistributionRequest generates a request for the GetDistribution operation.
|
||||
// GetDistributionRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the GetDistribution operation. The "output" return
|
||||
// value can be used to capture response data after the request's "Send" method
|
||||
// is called.
|
||||
//
|
||||
// Creating a request object using this method should be used when you want to inject
|
||||
// custom logic into the request's lifecycle using a custom handler, or if you want to
|
||||
// access properties on the request object before or after sending the request. If
|
||||
// you just want the service response, call the GetDistribution method directly
|
||||
// instead.
|
||||
//
|
||||
// Note: You must call the "Send" method on the returned request object in order
|
||||
// to execute the request.
|
||||
//
|
||||
// // Example sending a request using the GetDistributionRequest method.
|
||||
// req, resp := client.GetDistributionRequest(params)
|
||||
//
|
||||
// err := req.Send()
|
||||
// if err == nil { // resp is now filled
|
||||
// fmt.Println(resp)
|
||||
// }
|
||||
//
|
||||
func (c *CloudFront) GetDistributionRequest(input *GetDistributionInput) (req *request.Request, output *GetDistributionOutput) {
|
||||
op := &request.Operation{
|
||||
Name: opGetDistribution,
|
||||
|
@ -291,7 +501,28 @@ func (c *CloudFront) GetDistribution(input *GetDistributionInput) (*GetDistribut
|
|||
|
||||
const opGetDistributionConfig = "GetDistributionConfig2016_01_28"
|
||||
|
||||
// GetDistributionConfigRequest generates a request for the GetDistributionConfig operation.
|
||||
// GetDistributionConfigRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the GetDistributionConfig operation. The "output" return
|
||||
// value can be used to capture response data after the request's "Send" method
|
||||
// is called.
|
||||
//
|
||||
// Creating a request object using this method should be used when you want to inject
|
||||
// custom logic into the request's lifecycle using a custom handler, or if you want to
|
||||
// access properties on the request object before or after sending the request. If
|
||||
// you just want the service response, call the GetDistributionConfig method directly
|
||||
// instead.
|
||||
//
|
||||
// Note: You must call the "Send" method on the returned request object in order
|
||||
// to execute the request.
|
||||
//
|
||||
// // Example sending a request using the GetDistributionConfigRequest method.
|
||||
// req, resp := client.GetDistributionConfigRequest(params)
|
||||
//
|
||||
// err := req.Send()
|
||||
// if err == nil { // resp is now filled
|
||||
// fmt.Println(resp)
|
||||
// }
|
||||
//
|
||||
func (c *CloudFront) GetDistributionConfigRequest(input *GetDistributionConfigInput) (req *request.Request, output *GetDistributionConfigOutput) {
|
||||
op := &request.Operation{
|
||||
Name: opGetDistributionConfig,
|
||||
|
@ -318,7 +549,28 @@ func (c *CloudFront) GetDistributionConfig(input *GetDistributionConfigInput) (*
|
|||
|
||||
const opGetInvalidation = "GetInvalidation2016_01_28"
|
||||
|
||||
// GetInvalidationRequest generates a request for the GetInvalidation operation.
|
||||
// GetInvalidationRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the GetInvalidation operation. The "output" return
|
||||
// value can be used to capture response data after the request's "Send" method
|
||||
// is called.
|
||||
//
|
||||
// Creating a request object using this method should be used when you want to inject
|
||||
// custom logic into the request's lifecycle using a custom handler, or if you want to
|
||||
// access properties on the request object before or after sending the request. If
|
||||
// you just want the service response, call the GetInvalidation method directly
|
||||
// instead.
|
||||
//
|
||||
// Note: You must call the "Send" method on the returned request object in order
|
||||
// to execute the request.
|
||||
//
|
||||
// // Example sending a request using the GetInvalidationRequest method.
|
||||
// req, resp := client.GetInvalidationRequest(params)
|
||||
//
|
||||
// err := req.Send()
|
||||
// if err == nil { // resp is now filled
|
||||
// fmt.Println(resp)
|
||||
// }
|
||||
//
|
||||
func (c *CloudFront) GetInvalidationRequest(input *GetInvalidationInput) (req *request.Request, output *GetInvalidationOutput) {
|
||||
op := &request.Operation{
|
||||
Name: opGetInvalidation,
|
||||
|
@ -345,7 +597,28 @@ func (c *CloudFront) GetInvalidation(input *GetInvalidationInput) (*GetInvalidat
|
|||
|
||||
const opGetStreamingDistribution = "GetStreamingDistribution2016_01_28"
|
||||
|
||||
// GetStreamingDistributionRequest generates a request for the GetStreamingDistribution operation.
|
||||
// GetStreamingDistributionRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the GetStreamingDistribution operation. The "output" return
|
||||
// value can be used to capture response data after the request's "Send" method
|
||||
// is called.
|
||||
//
|
||||
// Creating a request object using this method should be used when you want to inject
|
||||
// custom logic into the request's lifecycle using a custom handler, or if you want to
|
||||
// access properties on the request object before or after sending the request. If
|
||||
// you just want the service response, call the GetStreamingDistribution method directly
|
||||
// instead.
|
||||
//
|
||||
// Note: You must call the "Send" method on the returned request object in order
|
||||
// to execute the request.
|
||||
//
|
||||
// // Example sending a request using the GetStreamingDistributionRequest method.
|
||||
// req, resp := client.GetStreamingDistributionRequest(params)
|
||||
//
|
||||
// err := req.Send()
|
||||
// if err == nil { // resp is now filled
|
||||
// fmt.Println(resp)
|
||||
// }
|
||||
//
|
||||
func (c *CloudFront) GetStreamingDistributionRequest(input *GetStreamingDistributionInput) (req *request.Request, output *GetStreamingDistributionOutput) {
|
||||
op := &request.Operation{
|
||||
Name: opGetStreamingDistribution,
|
||||
|
@ -372,7 +645,28 @@ func (c *CloudFront) GetStreamingDistribution(input *GetStreamingDistributionInp
|
|||
|
||||
const opGetStreamingDistributionConfig = "GetStreamingDistributionConfig2016_01_28"
|
||||
|
||||
// GetStreamingDistributionConfigRequest generates a request for the GetStreamingDistributionConfig operation.
|
||||
// GetStreamingDistributionConfigRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the GetStreamingDistributionConfig operation. The "output" return
|
||||
// value can be used to capture response data after the request's "Send" method
|
||||
// is called.
|
||||
//
|
||||
// Creating a request object using this method should be used when you want to inject
|
||||
// custom logic into the request's lifecycle using a custom handler, or if you want to
|
||||
// access properties on the request object before or after sending the request. If
|
||||
// you just want the service response, call the GetStreamingDistributionConfig method directly
|
||||
// instead.
|
||||
//
|
||||
// Note: You must call the "Send" method on the returned request object in order
|
||||
// to execute the request.
|
||||
//
|
||||
// // Example sending a request using the GetStreamingDistributionConfigRequest method.
|
||||
// req, resp := client.GetStreamingDistributionConfigRequest(params)
|
||||
//
|
||||
// err := req.Send()
|
||||
// if err == nil { // resp is now filled
|
||||
// fmt.Println(resp)
|
||||
// }
|
||||
//
|
||||
func (c *CloudFront) GetStreamingDistributionConfigRequest(input *GetStreamingDistributionConfigInput) (req *request.Request, output *GetStreamingDistributionConfigOutput) {
|
||||
op := &request.Operation{
|
||||
Name: opGetStreamingDistributionConfig,
|
||||
|
@ -399,7 +693,28 @@ func (c *CloudFront) GetStreamingDistributionConfig(input *GetStreamingDistribut
|
|||
|
||||
const opListCloudFrontOriginAccessIdentities = "ListCloudFrontOriginAccessIdentities2016_01_28"
|
||||
|
||||
// ListCloudFrontOriginAccessIdentitiesRequest generates a request for the ListCloudFrontOriginAccessIdentities operation.
|
||||
// ListCloudFrontOriginAccessIdentitiesRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the ListCloudFrontOriginAccessIdentities operation. The "output" return
|
||||
// value can be used to capture response data after the request's "Send" method
|
||||
// is called.
|
||||
//
|
||||
// Creating a request object using this method should be used when you want to inject
|
||||
// custom logic into the request's lifecycle using a custom handler, or if you want to
|
||||
// access properties on the request object before or after sending the request. If
|
||||
// you just want the service response, call the ListCloudFrontOriginAccessIdentities method directly
|
||||
// instead.
|
||||
//
|
||||
// Note: You must call the "Send" method on the returned request object in order
|
||||
// to execute the request.
|
||||
//
|
||||
// // Example sending a request using the ListCloudFrontOriginAccessIdentitiesRequest method.
|
||||
// req, resp := client.ListCloudFrontOriginAccessIdentitiesRequest(params)
|
||||
//
|
||||
// err := req.Send()
|
||||
// if err == nil { // resp is now filled
|
||||
// fmt.Println(resp)
|
||||
// }
|
||||
//
|
||||
func (c *CloudFront) ListCloudFrontOriginAccessIdentitiesRequest(input *ListCloudFrontOriginAccessIdentitiesInput) (req *request.Request, output *ListCloudFrontOriginAccessIdentitiesOutput) {
|
||||
op := &request.Operation{
|
||||
Name: opListCloudFrontOriginAccessIdentities,
|
||||
|
@ -430,6 +745,23 @@ func (c *CloudFront) ListCloudFrontOriginAccessIdentities(input *ListCloudFrontO
|
|||
return out, err
|
||||
}
|
||||
|
||||
// ListCloudFrontOriginAccessIdentitiesPages iterates over the pages of a ListCloudFrontOriginAccessIdentities operation,
|
||||
// calling the "fn" function with the response data for each page. To stop
|
||||
// iterating, return false from the fn function.
|
||||
//
|
||||
// See ListCloudFrontOriginAccessIdentities 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 ListCloudFrontOriginAccessIdentities operation.
|
||||
// pageNum := 0
|
||||
// err := client.ListCloudFrontOriginAccessIdentitiesPages(params,
|
||||
// func(page *ListCloudFrontOriginAccessIdentitiesOutput, lastPage bool) bool {
|
||||
// pageNum++
|
||||
// fmt.Println(page)
|
||||
// return pageNum <= 3
|
||||
// })
|
||||
//
|
||||
func (c *CloudFront) ListCloudFrontOriginAccessIdentitiesPages(input *ListCloudFrontOriginAccessIdentitiesInput, fn func(p *ListCloudFrontOriginAccessIdentitiesOutput, lastPage bool) (shouldContinue bool)) error {
|
||||
page, _ := c.ListCloudFrontOriginAccessIdentitiesRequest(input)
|
||||
page.Handlers.Build.PushBack(request.MakeAddToUserAgentFreeFormHandler("Paginator"))
|
||||
|
@ -440,7 +772,28 @@ func (c *CloudFront) ListCloudFrontOriginAccessIdentitiesPages(input *ListCloudF
|
|||
|
||||
const opListDistributions = "ListDistributions2016_01_28"
|
||||
|
||||
// ListDistributionsRequest generates a request for the ListDistributions operation.
|
||||
// ListDistributionsRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the ListDistributions operation. The "output" return
|
||||
// value can be used to capture response data after the request's "Send" method
|
||||
// is called.
|
||||
//
|
||||
// Creating a request object using this method should be used when you want to inject
|
||||
// custom logic into the request's lifecycle using a custom handler, or if you want to
|
||||
// access properties on the request object before or after sending the request. If
|
||||
// you just want the service response, call the ListDistributions method directly
|
||||
// instead.
|
||||
//
|
||||
// Note: You must call the "Send" method on the returned request object in order
|
||||
// to execute the request.
|
||||
//
|
||||
// // Example sending a request using the ListDistributionsRequest method.
|
||||
// req, resp := client.ListDistributionsRequest(params)
|
||||
//
|
||||
// err := req.Send()
|
||||
// if err == nil { // resp is now filled
|
||||
// fmt.Println(resp)
|
||||
// }
|
||||
//
|
||||
func (c *CloudFront) ListDistributionsRequest(input *ListDistributionsInput) (req *request.Request, output *ListDistributionsOutput) {
|
||||
op := &request.Operation{
|
||||
Name: opListDistributions,
|
||||
|
@ -471,6 +824,23 @@ func (c *CloudFront) ListDistributions(input *ListDistributionsInput) (*ListDist
|
|||
return out, err
|
||||
}
|
||||
|
||||
// ListDistributionsPages iterates over the pages of a ListDistributions operation,
|
||||
// calling the "fn" function with the response data for each page. To stop
|
||||
// iterating, return false from the fn function.
|
||||
//
|
||||
// See ListDistributions 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 ListDistributions operation.
|
||||
// pageNum := 0
|
||||
// err := client.ListDistributionsPages(params,
|
||||
// func(page *ListDistributionsOutput, lastPage bool) bool {
|
||||
// pageNum++
|
||||
// fmt.Println(page)
|
||||
// return pageNum <= 3
|
||||
// })
|
||||
//
|
||||
func (c *CloudFront) ListDistributionsPages(input *ListDistributionsInput, fn func(p *ListDistributionsOutput, lastPage bool) (shouldContinue bool)) error {
|
||||
page, _ := c.ListDistributionsRequest(input)
|
||||
page.Handlers.Build.PushBack(request.MakeAddToUserAgentFreeFormHandler("Paginator"))
|
||||
|
@ -481,7 +851,28 @@ func (c *CloudFront) ListDistributionsPages(input *ListDistributionsInput, fn fu
|
|||
|
||||
const opListDistributionsByWebACLId = "ListDistributionsByWebACLId2016_01_28"
|
||||
|
||||
// ListDistributionsByWebACLIdRequest generates a request for the ListDistributionsByWebACLId operation.
|
||||
// ListDistributionsByWebACLIdRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the ListDistributionsByWebACLId operation. The "output" return
|
||||
// value can be used to capture response data after the request's "Send" method
|
||||
// is called.
|
||||
//
|
||||
// Creating a request object using this method should be used when you want to inject
|
||||
// custom logic into the request's lifecycle using a custom handler, or if you want to
|
||||
// access properties on the request object before or after sending the request. If
|
||||
// you just want the service response, call the ListDistributionsByWebACLId method directly
|
||||
// instead.
|
||||
//
|
||||
// Note: You must call the "Send" method on the returned request object in order
|
||||
// to execute the request.
|
||||
//
|
||||
// // Example sending a request using the ListDistributionsByWebACLIdRequest method.
|
||||
// req, resp := client.ListDistributionsByWebACLIdRequest(params)
|
||||
//
|
||||
// err := req.Send()
|
||||
// if err == nil { // resp is now filled
|
||||
// fmt.Println(resp)
|
||||
// }
|
||||
//
|
||||
func (c *CloudFront) ListDistributionsByWebACLIdRequest(input *ListDistributionsByWebACLIdInput) (req *request.Request, output *ListDistributionsByWebACLIdOutput) {
|
||||
op := &request.Operation{
|
||||
Name: opListDistributionsByWebACLId,
|
||||
|
@ -508,7 +899,28 @@ func (c *CloudFront) ListDistributionsByWebACLId(input *ListDistributionsByWebAC
|
|||
|
||||
const opListInvalidations = "ListInvalidations2016_01_28"
|
||||
|
||||
// ListInvalidationsRequest generates a request for the ListInvalidations operation.
|
||||
// ListInvalidationsRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the ListInvalidations operation. The "output" return
|
||||
// value can be used to capture response data after the request's "Send" method
|
||||
// is called.
|
||||
//
|
||||
// Creating a request object using this method should be used when you want to inject
|
||||
// custom logic into the request's lifecycle using a custom handler, or if you want to
|
||||
// access properties on the request object before or after sending the request. If
|
||||
// you just want the service response, call the ListInvalidations method directly
|
||||
// instead.
|
||||
//
|
||||
// Note: You must call the "Send" method on the returned request object in order
|
||||
// to execute the request.
|
||||
//
|
||||
// // Example sending a request using the ListInvalidationsRequest method.
|
||||
// req, resp := client.ListInvalidationsRequest(params)
|
||||
//
|
||||
// err := req.Send()
|
||||
// if err == nil { // resp is now filled
|
||||
// fmt.Println(resp)
|
||||
// }
|
||||
//
|
||||
func (c *CloudFront) ListInvalidationsRequest(input *ListInvalidationsInput) (req *request.Request, output *ListInvalidationsOutput) {
|
||||
op := &request.Operation{
|
||||
Name: opListInvalidations,
|
||||
|
@ -539,6 +951,23 @@ func (c *CloudFront) ListInvalidations(input *ListInvalidationsInput) (*ListInva
|
|||
return out, err
|
||||
}
|
||||
|
||||
// ListInvalidationsPages iterates over the pages of a ListInvalidations operation,
|
||||
// calling the "fn" function with the response data for each page. To stop
|
||||
// iterating, return false from the fn function.
|
||||
//
|
||||
// See ListInvalidations 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 ListInvalidations operation.
|
||||
// pageNum := 0
|
||||
// err := client.ListInvalidationsPages(params,
|
||||
// func(page *ListInvalidationsOutput, lastPage bool) bool {
|
||||
// pageNum++
|
||||
// fmt.Println(page)
|
||||
// return pageNum <= 3
|
||||
// })
|
||||
//
|
||||
func (c *CloudFront) ListInvalidationsPages(input *ListInvalidationsInput, fn func(p *ListInvalidationsOutput, lastPage bool) (shouldContinue bool)) error {
|
||||
page, _ := c.ListInvalidationsRequest(input)
|
||||
page.Handlers.Build.PushBack(request.MakeAddToUserAgentFreeFormHandler("Paginator"))
|
||||
|
@ -549,7 +978,28 @@ func (c *CloudFront) ListInvalidationsPages(input *ListInvalidationsInput, fn fu
|
|||
|
||||
const opListStreamingDistributions = "ListStreamingDistributions2016_01_28"
|
||||
|
||||
// ListStreamingDistributionsRequest generates a request for the ListStreamingDistributions operation.
|
||||
// ListStreamingDistributionsRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the ListStreamingDistributions operation. The "output" return
|
||||
// value can be used to capture response data after the request's "Send" method
|
||||
// is called.
|
||||
//
|
||||
// Creating a request object using this method should be used when you want to inject
|
||||
// custom logic into the request's lifecycle using a custom handler, or if you want to
|
||||
// access properties on the request object before or after sending the request. If
|
||||
// you just want the service response, call the ListStreamingDistributions method directly
|
||||
// instead.
|
||||
//
|
||||
// Note: You must call the "Send" method on the returned request object in order
|
||||
// to execute the request.
|
||||
//
|
||||
// // Example sending a request using the ListStreamingDistributionsRequest method.
|
||||
// req, resp := client.ListStreamingDistributionsRequest(params)
|
||||
//
|
||||
// err := req.Send()
|
||||
// if err == nil { // resp is now filled
|
||||
// fmt.Println(resp)
|
||||
// }
|
||||
//
|
||||
func (c *CloudFront) ListStreamingDistributionsRequest(input *ListStreamingDistributionsInput) (req *request.Request, output *ListStreamingDistributionsOutput) {
|
||||
op := &request.Operation{
|
||||
Name: opListStreamingDistributions,
|
||||
|
@ -580,6 +1030,23 @@ func (c *CloudFront) ListStreamingDistributions(input *ListStreamingDistribution
|
|||
return out, err
|
||||
}
|
||||
|
||||
// ListStreamingDistributionsPages iterates over the pages of a ListStreamingDistributions operation,
|
||||
// calling the "fn" function with the response data for each page. To stop
|
||||
// iterating, return false from the fn function.
|
||||
//
|
||||
// See ListStreamingDistributions 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 ListStreamingDistributions operation.
|
||||
// pageNum := 0
|
||||
// err := client.ListStreamingDistributionsPages(params,
|
||||
// func(page *ListStreamingDistributionsOutput, lastPage bool) bool {
|
||||
// pageNum++
|
||||
// fmt.Println(page)
|
||||
// return pageNum <= 3
|
||||
// })
|
||||
//
|
||||
func (c *CloudFront) ListStreamingDistributionsPages(input *ListStreamingDistributionsInput, fn func(p *ListStreamingDistributionsOutput, lastPage bool) (shouldContinue bool)) error {
|
||||
page, _ := c.ListStreamingDistributionsRequest(input)
|
||||
page.Handlers.Build.PushBack(request.MakeAddToUserAgentFreeFormHandler("Paginator"))
|
||||
|
@ -590,7 +1057,28 @@ func (c *CloudFront) ListStreamingDistributionsPages(input *ListStreamingDistrib
|
|||
|
||||
const opUpdateCloudFrontOriginAccessIdentity = "UpdateCloudFrontOriginAccessIdentity2016_01_28"
|
||||
|
||||
// UpdateCloudFrontOriginAccessIdentityRequest generates a request for the UpdateCloudFrontOriginAccessIdentity operation.
|
||||
// UpdateCloudFrontOriginAccessIdentityRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the UpdateCloudFrontOriginAccessIdentity operation. The "output" return
|
||||
// value can be used to capture response data after the request's "Send" method
|
||||
// is called.
|
||||
//
|
||||
// Creating a request object using this method should be used when you want to inject
|
||||
// custom logic into the request's lifecycle using a custom handler, or if you want to
|
||||
// access properties on the request object before or after sending the request. If
|
||||
// you just want the service response, call the UpdateCloudFrontOriginAccessIdentity method directly
|
||||
// instead.
|
||||
//
|
||||
// Note: You must call the "Send" method on the returned request object in order
|
||||
// to execute the request.
|
||||
//
|
||||
// // Example sending a request using the UpdateCloudFrontOriginAccessIdentityRequest method.
|
||||
// req, resp := client.UpdateCloudFrontOriginAccessIdentityRequest(params)
|
||||
//
|
||||
// err := req.Send()
|
||||
// if err == nil { // resp is now filled
|
||||
// fmt.Println(resp)
|
||||
// }
|
||||
//
|
||||
func (c *CloudFront) UpdateCloudFrontOriginAccessIdentityRequest(input *UpdateCloudFrontOriginAccessIdentityInput) (req *request.Request, output *UpdateCloudFrontOriginAccessIdentityOutput) {
|
||||
op := &request.Operation{
|
||||
Name: opUpdateCloudFrontOriginAccessIdentity,
|
||||
|
@ -617,7 +1105,28 @@ func (c *CloudFront) UpdateCloudFrontOriginAccessIdentity(input *UpdateCloudFron
|
|||
|
||||
const opUpdateDistribution = "UpdateDistribution2016_01_28"
|
||||
|
||||
// UpdateDistributionRequest generates a request for the UpdateDistribution operation.
|
||||
// UpdateDistributionRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the UpdateDistribution operation. The "output" return
|
||||
// value can be used to capture response data after the request's "Send" method
|
||||
// is called.
|
||||
//
|
||||
// Creating a request object using this method should be used when you want to inject
|
||||
// custom logic into the request's lifecycle using a custom handler, or if you want to
|
||||
// access properties on the request object before or after sending the request. If
|
||||
// you just want the service response, call the UpdateDistribution method directly
|
||||
// instead.
|
||||
//
|
||||
// Note: You must call the "Send" method on the returned request object in order
|
||||
// to execute the request.
|
||||
//
|
||||
// // Example sending a request using the UpdateDistributionRequest method.
|
||||
// req, resp := client.UpdateDistributionRequest(params)
|
||||
//
|
||||
// err := req.Send()
|
||||
// if err == nil { // resp is now filled
|
||||
// fmt.Println(resp)
|
||||
// }
|
||||
//
|
||||
func (c *CloudFront) UpdateDistributionRequest(input *UpdateDistributionInput) (req *request.Request, output *UpdateDistributionOutput) {
|
||||
op := &request.Operation{
|
||||
Name: opUpdateDistribution,
|
||||
|
@ -644,7 +1153,28 @@ func (c *CloudFront) UpdateDistribution(input *UpdateDistributionInput) (*Update
|
|||
|
||||
const opUpdateStreamingDistribution = "UpdateStreamingDistribution2016_01_28"
|
||||
|
||||
// UpdateStreamingDistributionRequest generates a request for the UpdateStreamingDistribution operation.
|
||||
// UpdateStreamingDistributionRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the UpdateStreamingDistribution operation. The "output" return
|
||||
// value can be used to capture response data after the request's "Send" method
|
||||
// is called.
|
||||
//
|
||||
// Creating a request object using this method should be used when you want to inject
|
||||
// custom logic into the request's lifecycle using a custom handler, or if you want to
|
||||
// access properties on the request object before or after sending the request. If
|
||||
// you just want the service response, call the UpdateStreamingDistribution method directly
|
||||
// instead.
|
||||
//
|
||||
// Note: You must call the "Send" method on the returned request object in order
|
||||
// to execute the request.
|
||||
//
|
||||
// // Example sending a request using the UpdateStreamingDistributionRequest method.
|
||||
// req, resp := client.UpdateStreamingDistributionRequest(params)
|
||||
//
|
||||
// err := req.Send()
|
||||
// if err == nil { // resp is now filled
|
||||
// fmt.Println(resp)
|
||||
// }
|
||||
//
|
||||
func (c *CloudFront) UpdateStreamingDistributionRequest(input *UpdateStreamingDistributionInput) (req *request.Request, output *UpdateStreamingDistributionOutput) {
|
||||
op := &request.Operation{
|
||||
Name: opUpdateStreamingDistribution,
|
||||
|
|
|
@ -7,8 +7,8 @@ import (
|
|||
"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/restxml"
|
||||
"github.com/aws/aws-sdk-go/private/signer/v4"
|
||||
)
|
||||
|
||||
// CloudFront is a client for CloudFront.
|
||||
|
@ -58,7 +58,7 @@ func newClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegio
|
|||
}
|
||||
|
||||
// Handlers
|
||||
svc.Handlers.Sign.PushBack(v4.Sign)
|
||||
svc.Handlers.Sign.PushBackNamed(v4.SignRequestHandler)
|
||||
svc.Handlers.Build.PushBackNamed(restxml.BuildHandler)
|
||||
svc.Handlers.Unmarshal.PushBackNamed(restxml.UnmarshalHandler)
|
||||
svc.Handlers.UnmarshalMeta.PushBackNamed(restxml.UnmarshalMetaHandler)
|
||||
|
|
|
@ -13,7 +13,28 @@ import (
|
|||
|
||||
const opAddTags = "AddTags"
|
||||
|
||||
// AddTagsRequest generates a request for the AddTags operation.
|
||||
// AddTagsRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the AddTags operation. The "output" return
|
||||
// value can be used to capture response data after the request's "Send" method
|
||||
// is called.
|
||||
//
|
||||
// Creating a request object using this method should be used when you want to inject
|
||||
// custom logic into the request's lifecycle using a custom handler, or if you want to
|
||||
// access properties on the request object before or after sending the request. If
|
||||
// you just want the service response, call the AddTags method directly
|
||||
// instead.
|
||||
//
|
||||
// Note: You must call the "Send" method on the returned request object in order
|
||||
// to execute the request.
|
||||
//
|
||||
// // Example sending a request using the AddTagsRequest method.
|
||||
// req, resp := client.AddTagsRequest(params)
|
||||
//
|
||||
// err := req.Send()
|
||||
// if err == nil { // resp is now filled
|
||||
// fmt.Println(resp)
|
||||
// }
|
||||
//
|
||||
func (c *CloudTrail) AddTagsRequest(input *AddTagsInput) (req *request.Request, output *AddTagsOutput) {
|
||||
op := &request.Operation{
|
||||
Name: opAddTags,
|
||||
|
@ -45,7 +66,28 @@ func (c *CloudTrail) AddTags(input *AddTagsInput) (*AddTagsOutput, error) {
|
|||
|
||||
const opCreateTrail = "CreateTrail"
|
||||
|
||||
// CreateTrailRequest generates a request for the CreateTrail operation.
|
||||
// CreateTrailRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the CreateTrail operation. The "output" return
|
||||
// value can be used to capture response data after the request's "Send" method
|
||||
// is called.
|
||||
//
|
||||
// Creating a request object using this method should be used when you want to inject
|
||||
// custom logic into the request's lifecycle using a custom handler, or if you want to
|
||||
// access properties on the request object before or after sending the request. If
|
||||
// you just want the service response, call the CreateTrail method directly
|
||||
// instead.
|
||||
//
|
||||
// Note: You must call the "Send" method on the returned request object in order
|
||||
// to execute the request.
|
||||
//
|
||||
// // Example sending a request using the CreateTrailRequest method.
|
||||
// req, resp := client.CreateTrailRequest(params)
|
||||
//
|
||||
// err := req.Send()
|
||||
// if err == nil { // resp is now filled
|
||||
// fmt.Println(resp)
|
||||
// }
|
||||
//
|
||||
func (c *CloudTrail) CreateTrailRequest(input *CreateTrailInput) (req *request.Request, output *CreateTrailOutput) {
|
||||
op := &request.Operation{
|
||||
Name: opCreateTrail,
|
||||
|
@ -74,7 +116,28 @@ func (c *CloudTrail) CreateTrail(input *CreateTrailInput) (*CreateTrailOutput, e
|
|||
|
||||
const opDeleteTrail = "DeleteTrail"
|
||||
|
||||
// DeleteTrailRequest generates a request for the DeleteTrail operation.
|
||||
// DeleteTrailRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the DeleteTrail operation. The "output" return
|
||||
// value can be used to capture response data after the request's "Send" method
|
||||
// is called.
|
||||
//
|
||||
// Creating a request object using this method should be used when you want to inject
|
||||
// custom logic into the request's lifecycle using a custom handler, or if you want to
|
||||
// access properties on the request object before or after sending the request. If
|
||||
// you just want the service response, call the DeleteTrail method directly
|
||||
// instead.
|
||||
//
|
||||
// Note: You must call the "Send" method on the returned request object in order
|
||||
// to execute the request.
|
||||
//
|
||||
// // Example sending a request using the DeleteTrailRequest method.
|
||||
// req, resp := client.DeleteTrailRequest(params)
|
||||
//
|
||||
// err := req.Send()
|
||||
// if err == nil { // resp is now filled
|
||||
// fmt.Println(resp)
|
||||
// }
|
||||
//
|
||||
func (c *CloudTrail) DeleteTrailRequest(input *DeleteTrailInput) (req *request.Request, output *DeleteTrailOutput) {
|
||||
op := &request.Operation{
|
||||
Name: opDeleteTrail,
|
||||
|
@ -103,7 +166,28 @@ func (c *CloudTrail) DeleteTrail(input *DeleteTrailInput) (*DeleteTrailOutput, e
|
|||
|
||||
const opDescribeTrails = "DescribeTrails"
|
||||
|
||||
// DescribeTrailsRequest generates a request for the DescribeTrails operation.
|
||||
// DescribeTrailsRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the DescribeTrails operation. The "output" return
|
||||
// value can be used to capture response data after the request's "Send" method
|
||||
// is called.
|
||||
//
|
||||
// Creating a request object using this method should be used when you want to inject
|
||||
// custom logic into the request's lifecycle using a custom handler, or if you want to
|
||||
// access properties on the request object before or after sending the request. If
|
||||
// you just want the service response, call the DescribeTrails method directly
|
||||
// instead.
|
||||
//
|
||||
// Note: You must call the "Send" method on the returned request object in order
|
||||
// to execute the request.
|
||||
//
|
||||
// // Example sending a request using the DescribeTrailsRequest method.
|
||||
// req, resp := client.DescribeTrailsRequest(params)
|
||||
//
|
||||
// err := req.Send()
|
||||
// if err == nil { // resp is now filled
|
||||
// fmt.Println(resp)
|
||||
// }
|
||||
//
|
||||
func (c *CloudTrail) DescribeTrailsRequest(input *DescribeTrailsInput) (req *request.Request, output *DescribeTrailsOutput) {
|
||||
op := &request.Operation{
|
||||
Name: opDescribeTrails,
|
||||
|
@ -131,7 +215,28 @@ func (c *CloudTrail) DescribeTrails(input *DescribeTrailsInput) (*DescribeTrails
|
|||
|
||||
const opGetTrailStatus = "GetTrailStatus"
|
||||
|
||||
// GetTrailStatusRequest generates a request for the GetTrailStatus operation.
|
||||
// GetTrailStatusRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the GetTrailStatus operation. The "output" return
|
||||
// value can be used to capture response data after the request's "Send" method
|
||||
// is called.
|
||||
//
|
||||
// Creating a request object using this method should be used when you want to inject
|
||||
// custom logic into the request's lifecycle using a custom handler, or if you want to
|
||||
// access properties on the request object before or after sending the request. If
|
||||
// you just want the service response, call the GetTrailStatus method directly
|
||||
// instead.
|
||||
//
|
||||
// Note: You must call the "Send" method on the returned request object in order
|
||||
// to execute the request.
|
||||
//
|
||||
// // Example sending a request using the GetTrailStatusRequest method.
|
||||
// req, resp := client.GetTrailStatusRequest(params)
|
||||
//
|
||||
// err := req.Send()
|
||||
// if err == nil { // resp is now filled
|
||||
// fmt.Println(resp)
|
||||
// }
|
||||
//
|
||||
func (c *CloudTrail) GetTrailStatusRequest(input *GetTrailStatusInput) (req *request.Request, output *GetTrailStatusOutput) {
|
||||
op := &request.Operation{
|
||||
Name: opGetTrailStatus,
|
||||
|
@ -162,7 +267,28 @@ func (c *CloudTrail) GetTrailStatus(input *GetTrailStatusInput) (*GetTrailStatus
|
|||
|
||||
const opListPublicKeys = "ListPublicKeys"
|
||||
|
||||
// ListPublicKeysRequest generates a request for the ListPublicKeys operation.
|
||||
// ListPublicKeysRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the ListPublicKeys operation. The "output" return
|
||||
// value can be used to capture response data after the request's "Send" method
|
||||
// is called.
|
||||
//
|
||||
// Creating a request object using this method should be used when you want to inject
|
||||
// custom logic into the request's lifecycle using a custom handler, or if you want to
|
||||
// access properties on the request object before or after sending the request. If
|
||||
// you just want the service response, call the ListPublicKeys method directly
|
||||
// instead.
|
||||
//
|
||||
// Note: You must call the "Send" method on the returned request object in order
|
||||
// to execute the request.
|
||||
//
|
||||
// // Example sending a request using the ListPublicKeysRequest method.
|
||||
// req, resp := client.ListPublicKeysRequest(params)
|
||||
//
|
||||
// err := req.Send()
|
||||
// if err == nil { // resp is now filled
|
||||
// fmt.Println(resp)
|
||||
// }
|
||||
//
|
||||
func (c *CloudTrail) ListPublicKeysRequest(input *ListPublicKeysInput) (req *request.Request, output *ListPublicKeysOutput) {
|
||||
op := &request.Operation{
|
||||
Name: opListPublicKeys,
|
||||
|
@ -196,7 +322,28 @@ func (c *CloudTrail) ListPublicKeys(input *ListPublicKeysInput) (*ListPublicKeys
|
|||
|
||||
const opListTags = "ListTags"
|
||||
|
||||
// ListTagsRequest generates a request for the ListTags operation.
|
||||
// ListTagsRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the ListTags operation. The "output" return
|
||||
// value can be used to capture response data after the request's "Send" method
|
||||
// is called.
|
||||
//
|
||||
// Creating a request object using this method should be used when you want to inject
|
||||
// custom logic into the request's lifecycle using a custom handler, or if you want to
|
||||
// access properties on the request object before or after sending the request. If
|
||||
// you just want the service response, call the ListTags method directly
|
||||
// instead.
|
||||
//
|
||||
// Note: You must call the "Send" method on the returned request object in order
|
||||
// to execute the request.
|
||||
//
|
||||
// // Example sending a request using the ListTagsRequest method.
|
||||
// req, resp := client.ListTagsRequest(params)
|
||||
//
|
||||
// err := req.Send()
|
||||
// if err == nil { // resp is now filled
|
||||
// fmt.Println(resp)
|
||||
// }
|
||||
//
|
||||
func (c *CloudTrail) ListTagsRequest(input *ListTagsInput) (req *request.Request, output *ListTagsOutput) {
|
||||
op := &request.Operation{
|
||||
Name: opListTags,
|
||||
|
@ -214,8 +361,6 @@ func (c *CloudTrail) ListTagsRequest(input *ListTagsInput) (req *request.Request
|
|||
return
|
||||
}
|
||||
|
||||
// Lists the tags for the specified trail or trails in the current region.
|
||||
//
|
||||
// Lists the tags for the trail in the current region.
|
||||
func (c *CloudTrail) ListTags(input *ListTagsInput) (*ListTagsOutput, error) {
|
||||
req, out := c.ListTagsRequest(input)
|
||||
|
@ -225,7 +370,28 @@ func (c *CloudTrail) ListTags(input *ListTagsInput) (*ListTagsOutput, error) {
|
|||
|
||||
const opLookupEvents = "LookupEvents"
|
||||
|
||||
// LookupEventsRequest generates a request for the LookupEvents operation.
|
||||
// LookupEventsRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the LookupEvents operation. The "output" return
|
||||
// value can be used to capture response data after the request's "Send" method
|
||||
// is called.
|
||||
//
|
||||
// Creating a request object using this method should be used when you want to inject
|
||||
// custom logic into the request's lifecycle using a custom handler, or if you want to
|
||||
// access properties on the request object before or after sending the request. If
|
||||
// you just want the service response, call the LookupEvents method directly
|
||||
// instead.
|
||||
//
|
||||
// Note: You must call the "Send" method on the returned request object in order
|
||||
// to execute the request.
|
||||
//
|
||||
// // Example sending a request using the LookupEventsRequest method.
|
||||
// req, resp := client.LookupEventsRequest(params)
|
||||
//
|
||||
// err := req.Send()
|
||||
// if err == nil { // resp is now filled
|
||||
// fmt.Println(resp)
|
||||
// }
|
||||
//
|
||||
func (c *CloudTrail) LookupEventsRequest(input *LookupEventsInput) (req *request.Request, output *LookupEventsOutput) {
|
||||
op := &request.Operation{
|
||||
Name: opLookupEvents,
|
||||
|
@ -255,9 +421,10 @@ func (c *CloudTrail) LookupEventsRequest(input *LookupEventsInput) (req *request
|
|||
// page of results.
|
||||
//
|
||||
// The rate of lookup requests is limited to one per second per account. If
|
||||
// this limit is exceeded, a throttling error occurs. Events that occurred
|
||||
// during the selected time range will not be available for lookup if CloudTrail
|
||||
// logging was not enabled when the events occurred.
|
||||
// this limit is exceeded, a throttling error occurs.
|
||||
//
|
||||
// Events that occurred during the selected time range will not be available
|
||||
// for lookup if CloudTrail logging was not enabled when the events occurred.
|
||||
func (c *CloudTrail) LookupEvents(input *LookupEventsInput) (*LookupEventsOutput, error) {
|
||||
req, out := c.LookupEventsRequest(input)
|
||||
err := req.Send()
|
||||
|
@ -266,7 +433,28 @@ func (c *CloudTrail) LookupEvents(input *LookupEventsInput) (*LookupEventsOutput
|
|||
|
||||
const opRemoveTags = "RemoveTags"
|
||||
|
||||
// RemoveTagsRequest generates a request for the RemoveTags operation.
|
||||
// RemoveTagsRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the RemoveTags operation. The "output" return
|
||||
// value can be used to capture response data after the request's "Send" method
|
||||
// is called.
|
||||
//
|
||||
// Creating a request object using this method should be used when you want to inject
|
||||
// custom logic into the request's lifecycle using a custom handler, or if you want to
|
||||
// access properties on the request object before or after sending the request. If
|
||||
// you just want the service response, call the RemoveTags method directly
|
||||
// instead.
|
||||
//
|
||||
// Note: You must call the "Send" method on the returned request object in order
|
||||
// to execute the request.
|
||||
//
|
||||
// // Example sending a request using the RemoveTagsRequest method.
|
||||
// req, resp := client.RemoveTagsRequest(params)
|
||||
//
|
||||
// err := req.Send()
|
||||
// if err == nil { // resp is now filled
|
||||
// fmt.Println(resp)
|
||||
// }
|
||||
//
|
||||
func (c *CloudTrail) RemoveTagsRequest(input *RemoveTagsInput) (req *request.Request, output *RemoveTagsOutput) {
|
||||
op := &request.Operation{
|
||||
Name: opRemoveTags,
|
||||
|
@ -293,7 +481,28 @@ func (c *CloudTrail) RemoveTags(input *RemoveTagsInput) (*RemoveTagsOutput, erro
|
|||
|
||||
const opStartLogging = "StartLogging"
|
||||
|
||||
// StartLoggingRequest generates a request for the StartLogging operation.
|
||||
// StartLoggingRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the StartLogging operation. The "output" return
|
||||
// value can be used to capture response data after the request's "Send" method
|
||||
// is called.
|
||||
//
|
||||
// Creating a request object using this method should be used when you want to inject
|
||||
// custom logic into the request's lifecycle using a custom handler, or if you want to
|
||||
// access properties on the request object before or after sending the request. If
|
||||
// you just want the service response, call the StartLogging method directly
|
||||
// instead.
|
||||
//
|
||||
// Note: You must call the "Send" method on the returned request object in order
|
||||
// to execute the request.
|
||||
//
|
||||
// // Example sending a request using the StartLoggingRequest method.
|
||||
// req, resp := client.StartLoggingRequest(params)
|
||||
//
|
||||
// err := req.Send()
|
||||
// if err == nil { // resp is now filled
|
||||
// fmt.Println(resp)
|
||||
// }
|
||||
//
|
||||
func (c *CloudTrail) StartLoggingRequest(input *StartLoggingInput) (req *request.Request, output *StartLoggingOutput) {
|
||||
op := &request.Operation{
|
||||
Name: opStartLogging,
|
||||
|
@ -324,7 +533,28 @@ func (c *CloudTrail) StartLogging(input *StartLoggingInput) (*StartLoggingOutput
|
|||
|
||||
const opStopLogging = "StopLogging"
|
||||
|
||||
// StopLoggingRequest generates a request for the StopLogging operation.
|
||||
// StopLoggingRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the StopLogging operation. The "output" return
|
||||
// value can be used to capture response data after the request's "Send" method
|
||||
// is called.
|
||||
//
|
||||
// Creating a request object using this method should be used when you want to inject
|
||||
// custom logic into the request's lifecycle using a custom handler, or if you want to
|
||||
// access properties on the request object before or after sending the request. If
|
||||
// you just want the service response, call the StopLogging method directly
|
||||
// instead.
|
||||
//
|
||||
// Note: You must call the "Send" method on the returned request object in order
|
||||
// to execute the request.
|
||||
//
|
||||
// // Example sending a request using the StopLoggingRequest method.
|
||||
// req, resp := client.StopLoggingRequest(params)
|
||||
//
|
||||
// err := req.Send()
|
||||
// if err == nil { // resp is now filled
|
||||
// fmt.Println(resp)
|
||||
// }
|
||||
//
|
||||
func (c *CloudTrail) StopLoggingRequest(input *StopLoggingInput) (req *request.Request, output *StopLoggingOutput) {
|
||||
op := &request.Operation{
|
||||
Name: opStopLogging,
|
||||
|
@ -357,7 +587,28 @@ func (c *CloudTrail) StopLogging(input *StopLoggingInput) (*StopLoggingOutput, e
|
|||
|
||||
const opUpdateTrail = "UpdateTrail"
|
||||
|
||||
// UpdateTrailRequest generates a request for the UpdateTrail operation.
|
||||
// UpdateTrailRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the UpdateTrail operation. The "output" return
|
||||
// value can be used to capture response data after the request's "Send" method
|
||||
// is called.
|
||||
//
|
||||
// Creating a request object using this method should be used when you want to inject
|
||||
// custom logic into the request's lifecycle using a custom handler, or if you want to
|
||||
// access properties on the request object before or after sending the request. If
|
||||
// you just want the service response, call the UpdateTrail method directly
|
||||
// instead.
|
||||
//
|
||||
// Note: You must call the "Send" method on the returned request object in order
|
||||
// to execute the request.
|
||||
//
|
||||
// // Example sending a request using the UpdateTrailRequest method.
|
||||
// req, resp := client.UpdateTrailRequest(params)
|
||||
//
|
||||
// err := req.Send()
|
||||
// if err == nil { // resp is now filled
|
||||
// fmt.Println(resp)
|
||||
// }
|
||||
//
|
||||
func (c *CloudTrail) UpdateTrailRequest(input *UpdateTrailInput) (req *request.Request, output *UpdateTrailOutput) {
|
||||
op := &request.Operation{
|
||||
Name: opUpdateTrail,
|
||||
|
@ -392,7 +643,9 @@ type AddTagsInput struct {
|
|||
_ struct{} `type:"structure"`
|
||||
|
||||
// Specifies the ARN of the trail to which one or more tags will be added. The
|
||||
// format of a trail ARN is arn:aws:cloudtrail:us-east-1:123456789012:trail/MyTrail.
|
||||
// format of a trail ARN is:
|
||||
//
|
||||
// arn:aws:cloudtrail:us-east-1:123456789012:trail/MyTrail
|
||||
ResourceId *string `type:"string" required:"true"`
|
||||
|
||||
// Contains a list of CloudTrail tags, up to a limit of 10.
|
||||
|
@ -488,18 +741,28 @@ type CreateTrailInput struct {
|
|||
//
|
||||
// Examples:
|
||||
//
|
||||
// alias/MyAliasName arn:aws:kms:us-east-1:123456789012:alias/MyAliasName
|
||||
// alias/MyAliasName
|
||||
//
|
||||
// arn:aws:kms:us-east-1:123456789012:alias/MyAliasName
|
||||
//
|
||||
// arn:aws:kms:us-east-1:123456789012:key/12345678-1234-1234-1234-123456789012
|
||||
//
|
||||
// 12345678-1234-1234-1234-123456789012
|
||||
KmsKeyId *string `type:"string"`
|
||||
|
||||
// Specifies the name of the trail. The name must meet the following requirements:
|
||||
//
|
||||
// Contain only ASCII letters (a-z, A-Z), numbers (0-9), periods (.), underscores
|
||||
// (_), or dashes (-) Start with a letter or number, and end with a letter or
|
||||
// number Be between 3 and 128 characters Have no adjacent periods, underscores
|
||||
// or dashes. Names like my-_namespace and my--namespace are invalid. Not be
|
||||
// in IP address format (for example, 192.168.5.4)
|
||||
// (_), or dashes (-)
|
||||
//
|
||||
// Start with a letter or number, and end with a letter or number
|
||||
//
|
||||
// Be between 3 and 128 characters
|
||||
//
|
||||
// Have no adjacent periods, underscores or dashes. Names like my-_namespace
|
||||
// and my--namespace are invalid.
|
||||
//
|
||||
// Not be in IP address format (for example, 192.168.5.4)
|
||||
Name *string `type:"string" required:"true"`
|
||||
|
||||
// Specifies the name of the Amazon S3 bucket designated for publishing log
|
||||
|
@ -584,11 +847,19 @@ type CreateTrailOutput struct {
|
|||
// Your CloudTrail Log Files (http://docs.aws.amazon.com/awscloudtrail/latest/userguide/cloudtrail-find-log-files.html).
|
||||
S3KeyPrefix *string `type:"string"`
|
||||
|
||||
// Specifies the name of the Amazon SNS topic defined for notification of log
|
||||
// file delivery.
|
||||
SnsTopicName *string `type:"string"`
|
||||
// Specifies the ARN of the Amazon SNS topic that CloudTrail uses to send notifications
|
||||
// when log files are delivered. The format of a topic ARN is:
|
||||
//
|
||||
// arn:aws:sns:us-east-1:123456789012:MyTopic
|
||||
SnsTopicARN *string `type:"string"`
|
||||
|
||||
// Specifies the ARN of the trail that was created.
|
||||
// This field is deprecated. Use SnsTopicARN.
|
||||
SnsTopicName *string `deprecated:"true" type:"string"`
|
||||
|
||||
// Specifies the ARN of the trail that was created. The format of a trail ARN
|
||||
// is:
|
||||
//
|
||||
// arn:aws:cloudtrail:us-east-1:123456789012:trail/MyTrail
|
||||
TrailARN *string `type:"string"`
|
||||
}
|
||||
|
||||
|
@ -607,7 +878,9 @@ type DeleteTrailInput struct {
|
|||
_ struct{} `type:"structure"`
|
||||
|
||||
// Specifies the name or the CloudTrail ARN of the trail to be deleted. The
|
||||
// format of a trail ARN is arn:aws:cloudtrail:us-east-1:123456789012:trail/MyTrail.
|
||||
// format of a trail ARN is:
|
||||
//
|
||||
// arn:aws:cloudtrail:us-east-1:123456789012:trail/MyTrail
|
||||
Name *string `type:"string" required:"true"`
|
||||
}
|
||||
|
||||
|
@ -660,18 +933,24 @@ type DescribeTrailsInput struct {
|
|||
IncludeShadowTrails *bool `locationName:"includeShadowTrails" type:"boolean"`
|
||||
|
||||
// Specifies a list of trail names, trail ARNs, or both, of the trails to describe.
|
||||
// The format of a trail ARN is arn:aws:cloudtrail:us-east-1:123456789012:trail/MyTrail.
|
||||
// If an empty list is specified, information for the trail in the current region
|
||||
// is returned.
|
||||
// The format of a trail ARN is:
|
||||
//
|
||||
// arn:aws:cloudtrail:us-east-1:123456789012:trail/MyTrail
|
||||
//
|
||||
// If an empty list is specified, information for the trail in the current
|
||||
// region is returned.
|
||||
//
|
||||
// If an empty list is specified and IncludeShadowTrails is false, then information
|
||||
// for all trails in the current region is returned. If an empty list is specified
|
||||
// and IncludeShadowTrails is null or true, then information for all trails
|
||||
// in the current region and any associated shadow trails in other regions is
|
||||
// returned. If one or more trail names are specified, information is returned
|
||||
// only if the names match the names of trails belonging only to the current
|
||||
// region. To return information about a trail in another region, you must specify
|
||||
// its trail ARN.
|
||||
// for all trails in the current region is returned.
|
||||
//
|
||||
// If an empty list is specified and IncludeShadowTrails is null or true,
|
||||
// then information for all trails in the current region and any associated
|
||||
// shadow trails in other regions is returned.
|
||||
//
|
||||
// If one or more trail names are specified, information is returned only
|
||||
// if the names match the names of trails belonging only to the current region.
|
||||
// To return information about a trail in another region, you must specify its
|
||||
// trail ARN.
|
||||
TrailNameList []*string `locationName:"trailNameList" type:"list"`
|
||||
}
|
||||
|
||||
|
@ -745,7 +1024,9 @@ type GetTrailStatusInput struct {
|
|||
|
||||
// Specifies the name or the CloudTrail ARN of the trail for which you are requesting
|
||||
// status. To get the status of a shadow trail (a replication of the trail in
|
||||
// another region), you must specify its ARN. The format of a trail ARN is arn:aws:cloudtrail:us-east-1:123456789012:trail/MyTrail.
|
||||
// another region), you must specify its ARN. The format of a trail ARN is:
|
||||
//
|
||||
// arn:aws:cloudtrail:us-east-1:123456789012:trail/MyTrail
|
||||
Name *string `type:"string" required:"true"`
|
||||
}
|
||||
|
||||
|
@ -799,10 +1080,10 @@ type GetTrailStatusOutput struct {
|
|||
// topic Error Responses (http://docs.aws.amazon.com/AmazonS3/latest/API/ErrorResponses.html)
|
||||
// in the Amazon S3 API Reference.
|
||||
//
|
||||
// This error occurs only when there is a problem with the destination S3 bucket
|
||||
// and will not occur for timeouts. To resolve the issue, create a new bucket
|
||||
// and call UpdateTrail to specify the new bucket, or fix the existing objects
|
||||
// so that CloudTrail can again write to the bucket.
|
||||
// This error occurs only when there is a problem with the destination S3
|
||||
// bucket and will not occur for timeouts. To resolve the issue, create a new
|
||||
// bucket and call UpdateTrail to specify the new bucket, or fix the existing
|
||||
// objects so that CloudTrail can again write to the bucket.
|
||||
LatestDeliveryError *string `type:"string"`
|
||||
|
||||
// Specifies the date and time that CloudTrail last delivered log files to an
|
||||
|
@ -814,10 +1095,10 @@ type GetTrailStatusOutput struct {
|
|||
// the topic Error Responses (http://docs.aws.amazon.com/AmazonS3/latest/API/ErrorResponses.html)
|
||||
// in the Amazon S3 API Reference.
|
||||
//
|
||||
// This error occurs only when there is a problem with the destination S3 bucket
|
||||
// and will not occur for timeouts. To resolve the issue, create a new bucket
|
||||
// and call UpdateTrail to specify the new bucket, or fix the existing objects
|
||||
// so that CloudTrail can again write to the bucket.
|
||||
// This error occurs only when there is a problem with the destination S3
|
||||
// bucket and will not occur for timeouts. To resolve the issue, create a new
|
||||
// bucket and call UpdateTrail to specify the new bucket, or fix the existing
|
||||
// objects so that CloudTrail can again write to the bucket.
|
||||
LatestDigestDeliveryError *string `type:"string"`
|
||||
|
||||
// Specifies the date and time that CloudTrail last delivered a digest file
|
||||
|
@ -923,7 +1204,9 @@ type ListTagsInput struct {
|
|||
NextToken *string `type:"string"`
|
||||
|
||||
// Specifies a list of trail ARNs whose tags will be listed. The list has a
|
||||
// limit of 20 ARNs. The format of a trail ARN is arn:aws:cloudtrail:us-east-1:123456789012:trail/MyTrail.
|
||||
// limit of 20 ARNs. The format of a trail ARN is:
|
||||
//
|
||||
// arn:aws:cloudtrail:us-east-1:123456789012:trail/MyTrail
|
||||
ResourceIdList []*string `type:"list" required:"true"`
|
||||
}
|
||||
|
||||
|
@ -1133,7 +1416,9 @@ type RemoveTagsInput struct {
|
|||
_ struct{} `type:"structure"`
|
||||
|
||||
// Specifies the ARN of the trail from which tags should be removed. The format
|
||||
// of a trail ARN is arn:aws:cloudtrail:us-east-1:123456789012:trail/MyTrail.
|
||||
// of a trail ARN is:
|
||||
//
|
||||
// arn:aws:cloudtrail:us-east-1:123456789012:trail/MyTrail
|
||||
ResourceId *string `type:"string" required:"true"`
|
||||
|
||||
// Specifies a list of tags to be removed.
|
||||
|
@ -1243,7 +1528,9 @@ type StartLoggingInput struct {
|
|||
_ struct{} `type:"structure"`
|
||||
|
||||
// Specifies the name or the CloudTrail ARN of the trail for which CloudTrail
|
||||
// logs AWS API calls. The format of a trail ARN is arn:aws:cloudtrail:us-east-1:123456789012:trail/MyTrail.
|
||||
// logs AWS API calls. The format of a trail ARN is:
|
||||
//
|
||||
// arn:aws:cloudtrail:us-east-1:123456789012:trail/MyTrail
|
||||
Name *string `type:"string" required:"true"`
|
||||
}
|
||||
|
||||
|
@ -1292,7 +1579,9 @@ type StopLoggingInput struct {
|
|||
_ struct{} `type:"structure"`
|
||||
|
||||
// Specifies the name or the CloudTrail ARN of the trail for which CloudTrail
|
||||
// will stop logging AWS API calls. The format of a trail ARN is arn:aws:cloudtrail:us-east-1:123456789012:trail/MyTrail.
|
||||
// will stop logging AWS API calls. The format of a trail ARN is:
|
||||
//
|
||||
// arn:aws:cloudtrail:us-east-1:123456789012:trail/MyTrail
|
||||
Name *string `type:"string" required:"true"`
|
||||
}
|
||||
|
||||
|
@ -1415,12 +1704,18 @@ type Trail struct {
|
|||
// maximum length is 200 characters.
|
||||
S3KeyPrefix *string `type:"string"`
|
||||
|
||||
// Name of the existing Amazon SNS topic that CloudTrail uses to notify the
|
||||
// account owner when new CloudTrail log files have been delivered. The maximum
|
||||
// length is 256 characters.
|
||||
SnsTopicName *string `type:"string"`
|
||||
// Specifies the ARN of the Amazon SNS topic that CloudTrail uses to send notifications
|
||||
// when log files are delivered. The format of a topic ARN is:
|
||||
//
|
||||
// arn:aws:sns:us-east-1:123456789012:MyTopic
|
||||
SnsTopicARN *string `type:"string"`
|
||||
|
||||
// The Amazon Resource Name of the trail. The TrailARN format is arn:aws:cloudtrail:us-east-1:123456789012:trail/MyTrail.
|
||||
// This field is deprecated. Use SnsTopicARN.
|
||||
SnsTopicName *string `deprecated:"true" type:"string"`
|
||||
|
||||
// Specifies the ARN of the trail. The format of a trail ARN is:
|
||||
//
|
||||
// arn:aws:cloudtrail:us-east-1:123456789012:trail/MyTrail
|
||||
TrailARN *string `type:"string"`
|
||||
}
|
||||
|
||||
|
@ -1477,8 +1772,12 @@ type UpdateTrailInput struct {
|
|||
//
|
||||
// Examples:
|
||||
//
|
||||
// alias/MyAliasName arn:aws:kms:us-east-1:123456789012:alias/MyAliasName
|
||||
// alias/MyAliasName
|
||||
//
|
||||
// arn:aws:kms:us-east-1:123456789012:alias/MyAliasName
|
||||
//
|
||||
// arn:aws:kms:us-east-1:123456789012:key/12345678-1234-1234-1234-123456789012
|
||||
//
|
||||
// 12345678-1234-1234-1234-123456789012
|
||||
KmsKeyId *string `type:"string"`
|
||||
|
||||
|
@ -1486,11 +1785,20 @@ type UpdateTrailInput struct {
|
|||
// string must meet the following requirements:
|
||||
//
|
||||
// Contain only ASCII letters (a-z, A-Z), numbers (0-9), periods (.), underscores
|
||||
// (_), or dashes (-) Start with a letter or number, and end with a letter or
|
||||
// number Be between 3 and 128 characters Have no adjacent periods, underscores
|
||||
// or dashes. Names like my-_namespace and my--namespace are invalid. Not be
|
||||
// in IP address format (for example, 192.168.5.4) If Name is a trail ARN,
|
||||
// it must be in the format arn:aws:cloudtrail:us-east-1:123456789012:trail/MyTrail.
|
||||
// (_), or dashes (-)
|
||||
//
|
||||
// Start with a letter or number, and end with a letter or number
|
||||
//
|
||||
// Be between 3 and 128 characters
|
||||
//
|
||||
// Have no adjacent periods, underscores or dashes. Names like my-_namespace
|
||||
// and my--namespace are invalid.
|
||||
//
|
||||
// Not be in IP address format (for example, 192.168.5.4)
|
||||
//
|
||||
// If Name is a trail ARN, it must be in the format:
|
||||
//
|
||||
// arn:aws:cloudtrail:us-east-1:123456789012:trail/MyTrail
|
||||
Name *string `type:"string" required:"true"`
|
||||
|
||||
// Specifies the name of the Amazon S3 bucket designated for publishing log
|
||||
|
@ -1572,11 +1880,19 @@ type UpdateTrailOutput struct {
|
|||
// Your CloudTrail Log Files (http://docs.aws.amazon.com/awscloudtrail/latest/userguide/cloudtrail-find-log-files.html).
|
||||
S3KeyPrefix *string `type:"string"`
|
||||
|
||||
// Specifies the name of the Amazon SNS topic defined for notification of log
|
||||
// file delivery.
|
||||
SnsTopicName *string `type:"string"`
|
||||
// Specifies the ARN of the Amazon SNS topic that CloudTrail uses to send notifications
|
||||
// when log files are delivered. The format of a topic ARN is:
|
||||
//
|
||||
// arn:aws:sns:us-east-1:123456789012:MyTopic
|
||||
SnsTopicARN *string `type:"string"`
|
||||
|
||||
// Specifies the ARN of the trail that was updated.
|
||||
// This field is deprecated. Use SnsTopicARN.
|
||||
SnsTopicName *string `deprecated:"true" type:"string"`
|
||||
|
||||
// Specifies the ARN of the trail that was updated. The format of a trail ARN
|
||||
// is:
|
||||
//
|
||||
// arn:aws:cloudtrail:us-east-1:123456789012:trail/MyTrail
|
||||
TrailARN *string `type:"string"`
|
||||
}
|
||||
|
||||
|
|
|
@ -7,8 +7,8 @@ import (
|
|||
"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/jsonrpc"
|
||||
"github.com/aws/aws-sdk-go/private/signer/v4"
|
||||
)
|
||||
|
||||
// This is the CloudTrail API Reference. It provides descriptions of actions,
|
||||
|
@ -20,16 +20,17 @@ import (
|
|||
// IP address, the request parameters, and the response elements returned by
|
||||
// the service.
|
||||
//
|
||||
// As an alternative to using the API, you can use one of the AWS SDKs, which
|
||||
// consist of libraries and sample code for various programming languages and
|
||||
// platforms (Java, Ruby, .NET, iOS, Android, etc.). The SDKs provide a convenient
|
||||
// way to create programmatic access to AWSCloudTrail. For example, the SDKs
|
||||
// take care of cryptographically signing requests, managing errors, and retrying
|
||||
// As an alternative to the API, you can use one of the AWS SDKs, which consist
|
||||
// of libraries and sample code for various programming languages and platforms
|
||||
// (Java, Ruby, .NET, iOS, Android, etc.). The SDKs provide a convenient way
|
||||
// to create programmatic access to AWSCloudTrail. For example, the SDKs take
|
||||
// care of cryptographically signing requests, managing errors, and retrying
|
||||
// requests automatically. For information about the AWS SDKs, including how
|
||||
// to download and install them, see the Tools for Amazon Web Services page
|
||||
// (http://aws.amazon.com/tools/). See the CloudTrail User Guide for information
|
||||
// about the data that is included with each AWS API call listed in the log
|
||||
// files.
|
||||
// (http://aws.amazon.com/tools/).
|
||||
//
|
||||
// See the CloudTrail User Guide for information about the data that is included
|
||||
// with each AWS API call listed in the log files.
|
||||
//The service client's operations are safe to be used concurrently.
|
||||
// It is not safe to mutate any of the client's properties though.
|
||||
type CloudTrail struct {
|
||||
|
@ -78,7 +79,7 @@ func newClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegio
|
|||
}
|
||||
|
||||
// Handlers
|
||||
svc.Handlers.Sign.PushBack(v4.Sign)
|
||||
svc.Handlers.Sign.PushBackNamed(v4.SignRequestHandler)
|
||||
svc.Handlers.Build.PushBackNamed(jsonrpc.BuildHandler)
|
||||
svc.Handlers.Unmarshal.PushBackNamed(jsonrpc.UnmarshalHandler)
|
||||
svc.Handlers.UnmarshalMeta.PushBackNamed(jsonrpc.UnmarshalMetaHandler)
|
||||
|
|
|
@ -15,7 +15,28 @@ import (
|
|||
|
||||
const opDeleteAlarms = "DeleteAlarms"
|
||||
|
||||
// DeleteAlarmsRequest generates a request for the DeleteAlarms operation.
|
||||
// DeleteAlarmsRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the DeleteAlarms operation. The "output" return
|
||||
// value can be used to capture response data after the request's "Send" method
|
||||
// is called.
|
||||
//
|
||||
// Creating a request object using this method should be used when you want to inject
|
||||
// custom logic into the request's lifecycle using a custom handler, or if you want to
|
||||
// access properties on the request object before or after sending the request. If
|
||||
// you just want the service response, call the DeleteAlarms method directly
|
||||
// instead.
|
||||
//
|
||||
// Note: You must call the "Send" method on the returned request object in order
|
||||
// to execute the request.
|
||||
//
|
||||
// // Example sending a request using the DeleteAlarmsRequest method.
|
||||
// req, resp := client.DeleteAlarmsRequest(params)
|
||||
//
|
||||
// err := req.Send()
|
||||
// if err == nil { // resp is now filled
|
||||
// fmt.Println(resp)
|
||||
// }
|
||||
//
|
||||
func (c *CloudWatch) DeleteAlarmsRequest(input *DeleteAlarmsInput) (req *request.Request, output *DeleteAlarmsOutput) {
|
||||
op := &request.Operation{
|
||||
Name: opDeleteAlarms,
|
||||
|
@ -44,7 +65,28 @@ func (c *CloudWatch) DeleteAlarms(input *DeleteAlarmsInput) (*DeleteAlarmsOutput
|
|||
|
||||
const opDescribeAlarmHistory = "DescribeAlarmHistory"
|
||||
|
||||
// DescribeAlarmHistoryRequest generates a request for the DescribeAlarmHistory operation.
|
||||
// DescribeAlarmHistoryRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the DescribeAlarmHistory operation. The "output" return
|
||||
// value can be used to capture response data after the request's "Send" method
|
||||
// is called.
|
||||
//
|
||||
// Creating a request object using this method should be used when you want to inject
|
||||
// custom logic into the request's lifecycle using a custom handler, or if you want to
|
||||
// access properties on the request object before or after sending the request. If
|
||||
// you just want the service response, call the DescribeAlarmHistory method directly
|
||||
// instead.
|
||||
//
|
||||
// Note: You must call the "Send" method on the returned request object in order
|
||||
// to execute the request.
|
||||
//
|
||||
// // Example sending a request using the DescribeAlarmHistoryRequest method.
|
||||
// req, resp := client.DescribeAlarmHistoryRequest(params)
|
||||
//
|
||||
// err := req.Send()
|
||||
// if err == nil { // resp is now filled
|
||||
// fmt.Println(resp)
|
||||
// }
|
||||
//
|
||||
func (c *CloudWatch) DescribeAlarmHistoryRequest(input *DescribeAlarmHistoryInput) (req *request.Request, output *DescribeAlarmHistoryOutput) {
|
||||
op := &request.Operation{
|
||||
Name: opDescribeAlarmHistory,
|
||||
|
@ -80,6 +122,23 @@ func (c *CloudWatch) DescribeAlarmHistory(input *DescribeAlarmHistoryInput) (*De
|
|||
return out, err
|
||||
}
|
||||
|
||||
// DescribeAlarmHistoryPages iterates over the pages of a DescribeAlarmHistory operation,
|
||||
// calling the "fn" function with the response data for each page. To stop
|
||||
// iterating, return false from the fn function.
|
||||
//
|
||||
// See DescribeAlarmHistory 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 DescribeAlarmHistory operation.
|
||||
// pageNum := 0
|
||||
// err := client.DescribeAlarmHistoryPages(params,
|
||||
// func(page *DescribeAlarmHistoryOutput, lastPage bool) bool {
|
||||
// pageNum++
|
||||
// fmt.Println(page)
|
||||
// return pageNum <= 3
|
||||
// })
|
||||
//
|
||||
func (c *CloudWatch) DescribeAlarmHistoryPages(input *DescribeAlarmHistoryInput, fn func(p *DescribeAlarmHistoryOutput, lastPage bool) (shouldContinue bool)) error {
|
||||
page, _ := c.DescribeAlarmHistoryRequest(input)
|
||||
page.Handlers.Build.PushBack(request.MakeAddToUserAgentFreeFormHandler("Paginator"))
|
||||
|
@ -90,7 +149,28 @@ func (c *CloudWatch) DescribeAlarmHistoryPages(input *DescribeAlarmHistoryInput,
|
|||
|
||||
const opDescribeAlarms = "DescribeAlarms"
|
||||
|
||||
// DescribeAlarmsRequest generates a request for the DescribeAlarms operation.
|
||||
// DescribeAlarmsRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the DescribeAlarms operation. The "output" return
|
||||
// value can be used to capture response data after the request's "Send" method
|
||||
// is called.
|
||||
//
|
||||
// Creating a request object using this method should be used when you want to inject
|
||||
// custom logic into the request's lifecycle using a custom handler, or if you want to
|
||||
// access properties on the request object before or after sending the request. If
|
||||
// you just want the service response, call the DescribeAlarms method directly
|
||||
// instead.
|
||||
//
|
||||
// Note: You must call the "Send" method on the returned request object in order
|
||||
// to execute the request.
|
||||
//
|
||||
// // Example sending a request using the DescribeAlarmsRequest method.
|
||||
// req, resp := client.DescribeAlarmsRequest(params)
|
||||
//
|
||||
// err := req.Send()
|
||||
// if err == nil { // resp is now filled
|
||||
// fmt.Println(resp)
|
||||
// }
|
||||
//
|
||||
func (c *CloudWatch) DescribeAlarmsRequest(input *DescribeAlarmsInput) (req *request.Request, output *DescribeAlarmsOutput) {
|
||||
op := &request.Operation{
|
||||
Name: opDescribeAlarms,
|
||||
|
@ -123,6 +203,23 @@ func (c *CloudWatch) DescribeAlarms(input *DescribeAlarmsInput) (*DescribeAlarms
|
|||
return out, err
|
||||
}
|
||||
|
||||
// DescribeAlarmsPages iterates over the pages of a DescribeAlarms operation,
|
||||
// calling the "fn" function with the response data for each page. To stop
|
||||
// iterating, return false from the fn function.
|
||||
//
|
||||
// See DescribeAlarms 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 DescribeAlarms operation.
|
||||
// pageNum := 0
|
||||
// err := client.DescribeAlarmsPages(params,
|
||||
// func(page *DescribeAlarmsOutput, lastPage bool) bool {
|
||||
// pageNum++
|
||||
// fmt.Println(page)
|
||||
// return pageNum <= 3
|
||||
// })
|
||||
//
|
||||
func (c *CloudWatch) DescribeAlarmsPages(input *DescribeAlarmsInput, fn func(p *DescribeAlarmsOutput, lastPage bool) (shouldContinue bool)) error {
|
||||
page, _ := c.DescribeAlarmsRequest(input)
|
||||
page.Handlers.Build.PushBack(request.MakeAddToUserAgentFreeFormHandler("Paginator"))
|
||||
|
@ -133,7 +230,28 @@ func (c *CloudWatch) DescribeAlarmsPages(input *DescribeAlarmsInput, fn func(p *
|
|||
|
||||
const opDescribeAlarmsForMetric = "DescribeAlarmsForMetric"
|
||||
|
||||
// DescribeAlarmsForMetricRequest generates a request for the DescribeAlarmsForMetric operation.
|
||||
// DescribeAlarmsForMetricRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the DescribeAlarmsForMetric operation. The "output" return
|
||||
// value can be used to capture response data after the request's "Send" method
|
||||
// is called.
|
||||
//
|
||||
// Creating a request object using this method should be used when you want to inject
|
||||
// custom logic into the request's lifecycle using a custom handler, or if you want to
|
||||
// access properties on the request object before or after sending the request. If
|
||||
// you just want the service response, call the DescribeAlarmsForMetric method directly
|
||||
// instead.
|
||||
//
|
||||
// Note: You must call the "Send" method on the returned request object in order
|
||||
// to execute the request.
|
||||
//
|
||||
// // Example sending a request using the DescribeAlarmsForMetricRequest method.
|
||||
// req, resp := client.DescribeAlarmsForMetricRequest(params)
|
||||
//
|
||||
// err := req.Send()
|
||||
// if err == nil { // resp is now filled
|
||||
// fmt.Println(resp)
|
||||
// }
|
||||
//
|
||||
func (c *CloudWatch) DescribeAlarmsForMetricRequest(input *DescribeAlarmsForMetricInput) (req *request.Request, output *DescribeAlarmsForMetricOutput) {
|
||||
op := &request.Operation{
|
||||
Name: opDescribeAlarmsForMetric,
|
||||
|
@ -161,7 +279,28 @@ func (c *CloudWatch) DescribeAlarmsForMetric(input *DescribeAlarmsForMetricInput
|
|||
|
||||
const opDisableAlarmActions = "DisableAlarmActions"
|
||||
|
||||
// DisableAlarmActionsRequest generates a request for the DisableAlarmActions operation.
|
||||
// DisableAlarmActionsRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the DisableAlarmActions operation. The "output" return
|
||||
// value can be used to capture response data after the request's "Send" method
|
||||
// is called.
|
||||
//
|
||||
// Creating a request object using this method should be used when you want to inject
|
||||
// custom logic into the request's lifecycle using a custom handler, or if you want to
|
||||
// access properties on the request object before or after sending the request. If
|
||||
// you just want the service response, call the DisableAlarmActions method directly
|
||||
// instead.
|
||||
//
|
||||
// Note: You must call the "Send" method on the returned request object in order
|
||||
// to execute the request.
|
||||
//
|
||||
// // Example sending a request using the DisableAlarmActionsRequest method.
|
||||
// req, resp := client.DisableAlarmActionsRequest(params)
|
||||
//
|
||||
// err := req.Send()
|
||||
// if err == nil { // resp is now filled
|
||||
// fmt.Println(resp)
|
||||
// }
|
||||
//
|
||||
func (c *CloudWatch) DisableAlarmActionsRequest(input *DisableAlarmActionsInput) (req *request.Request, output *DisableAlarmActionsOutput) {
|
||||
op := &request.Operation{
|
||||
Name: opDisableAlarmActions,
|
||||
|
@ -191,7 +330,28 @@ func (c *CloudWatch) DisableAlarmActions(input *DisableAlarmActionsInput) (*Disa
|
|||
|
||||
const opEnableAlarmActions = "EnableAlarmActions"
|
||||
|
||||
// EnableAlarmActionsRequest generates a request for the EnableAlarmActions operation.
|
||||
// EnableAlarmActionsRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the EnableAlarmActions operation. The "output" return
|
||||
// value can be used to capture response data after the request's "Send" method
|
||||
// is called.
|
||||
//
|
||||
// Creating a request object using this method should be used when you want to inject
|
||||
// custom logic into the request's lifecycle using a custom handler, or if you want to
|
||||
// access properties on the request object before or after sending the request. If
|
||||
// you just want the service response, call the EnableAlarmActions method directly
|
||||
// instead.
|
||||
//
|
||||
// Note: You must call the "Send" method on the returned request object in order
|
||||
// to execute the request.
|
||||
//
|
||||
// // Example sending a request using the EnableAlarmActionsRequest method.
|
||||
// req, resp := client.EnableAlarmActionsRequest(params)
|
||||
//
|
||||
// err := req.Send()
|
||||
// if err == nil { // resp is now filled
|
||||
// fmt.Println(resp)
|
||||
// }
|
||||
//
|
||||
func (c *CloudWatch) EnableAlarmActionsRequest(input *EnableAlarmActionsInput) (req *request.Request, output *EnableAlarmActionsOutput) {
|
||||
op := &request.Operation{
|
||||
Name: opEnableAlarmActions,
|
||||
|
@ -220,7 +380,28 @@ func (c *CloudWatch) EnableAlarmActions(input *EnableAlarmActionsInput) (*Enable
|
|||
|
||||
const opGetMetricStatistics = "GetMetricStatistics"
|
||||
|
||||
// GetMetricStatisticsRequest generates a request for the GetMetricStatistics operation.
|
||||
// GetMetricStatisticsRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the GetMetricStatistics operation. The "output" return
|
||||
// value can be used to capture response data after the request's "Send" method
|
||||
// is called.
|
||||
//
|
||||
// Creating a request object using this method should be used when you want to inject
|
||||
// custom logic into the request's lifecycle using a custom handler, or if you want to
|
||||
// access properties on the request object before or after sending the request. If
|
||||
// you just want the service response, call the GetMetricStatistics method directly
|
||||
// instead.
|
||||
//
|
||||
// Note: You must call the "Send" method on the returned request object in order
|
||||
// to execute the request.
|
||||
//
|
||||
// // Example sending a request using the GetMetricStatisticsRequest method.
|
||||
// req, resp := client.GetMetricStatisticsRequest(params)
|
||||
//
|
||||
// err := req.Send()
|
||||
// if err == nil { // resp is now filled
|
||||
// fmt.Println(resp)
|
||||
// }
|
||||
//
|
||||
func (c *CloudWatch) GetMetricStatisticsRequest(input *GetMetricStatisticsInput) (req *request.Request, output *GetMetricStatisticsOutput) {
|
||||
op := &request.Operation{
|
||||
Name: opGetMetricStatistics,
|
||||
|
@ -273,7 +454,28 @@ func (c *CloudWatch) GetMetricStatistics(input *GetMetricStatisticsInput) (*GetM
|
|||
|
||||
const opListMetrics = "ListMetrics"
|
||||
|
||||
// ListMetricsRequest generates a request for the ListMetrics operation.
|
||||
// ListMetricsRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the ListMetrics operation. The "output" return
|
||||
// value can be used to capture response data after the request's "Send" method
|
||||
// is called.
|
||||
//
|
||||
// Creating a request object using this method should be used when you want to inject
|
||||
// custom logic into the request's lifecycle using a custom handler, or if you want to
|
||||
// access properties on the request object before or after sending the request. If
|
||||
// you just want the service response, call the ListMetrics method directly
|
||||
// instead.
|
||||
//
|
||||
// Note: You must call the "Send" method on the returned request object in order
|
||||
// to execute the request.
|
||||
//
|
||||
// // Example sending a request using the ListMetricsRequest method.
|
||||
// req, resp := client.ListMetricsRequest(params)
|
||||
//
|
||||
// err := req.Send()
|
||||
// if err == nil { // resp is now filled
|
||||
// fmt.Println(resp)
|
||||
// }
|
||||
//
|
||||
func (c *CloudWatch) ListMetricsRequest(input *ListMetricsInput) (req *request.Request, output *ListMetricsOutput) {
|
||||
op := &request.Operation{
|
||||
Name: opListMetrics,
|
||||
|
@ -312,6 +514,23 @@ func (c *CloudWatch) ListMetrics(input *ListMetricsInput) (*ListMetricsOutput, e
|
|||
return out, err
|
||||
}
|
||||
|
||||
// ListMetricsPages iterates over the pages of a ListMetrics operation,
|
||||
// calling the "fn" function with the response data for each page. To stop
|
||||
// iterating, return false from the fn function.
|
||||
//
|
||||
// See ListMetrics 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 ListMetrics operation.
|
||||
// pageNum := 0
|
||||
// err := client.ListMetricsPages(params,
|
||||
// func(page *ListMetricsOutput, lastPage bool) bool {
|
||||
// pageNum++
|
||||
// fmt.Println(page)
|
||||
// return pageNum <= 3
|
||||
// })
|
||||
//
|
||||
func (c *CloudWatch) ListMetricsPages(input *ListMetricsInput, fn func(p *ListMetricsOutput, lastPage bool) (shouldContinue bool)) error {
|
||||
page, _ := c.ListMetricsRequest(input)
|
||||
page.Handlers.Build.PushBack(request.MakeAddToUserAgentFreeFormHandler("Paginator"))
|
||||
|
@ -322,7 +541,28 @@ func (c *CloudWatch) ListMetricsPages(input *ListMetricsInput, fn func(p *ListMe
|
|||
|
||||
const opPutMetricAlarm = "PutMetricAlarm"
|
||||
|
||||
// PutMetricAlarmRequest generates a request for the PutMetricAlarm operation.
|
||||
// PutMetricAlarmRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the PutMetricAlarm operation. The "output" return
|
||||
// value can be used to capture response data after the request's "Send" method
|
||||
// is called.
|
||||
//
|
||||
// Creating a request object using this method should be used when you want to inject
|
||||
// custom logic into the request's lifecycle using a custom handler, or if you want to
|
||||
// access properties on the request object before or after sending the request. If
|
||||
// you just want the service response, call the PutMetricAlarm method directly
|
||||
// instead.
|
||||
//
|
||||
// Note: You must call the "Send" method on the returned request object in order
|
||||
// to execute the request.
|
||||
//
|
||||
// // Example sending a request using the PutMetricAlarmRequest method.
|
||||
// req, resp := client.PutMetricAlarmRequest(params)
|
||||
//
|
||||
// err := req.Send()
|
||||
// if err == nil { // resp is now filled
|
||||
// fmt.Println(resp)
|
||||
// }
|
||||
//
|
||||
func (c *CloudWatch) PutMetricAlarmRequest(input *PutMetricAlarmInput) (req *request.Request, output *PutMetricAlarmOutput) {
|
||||
op := &request.Operation{
|
||||
Name: opPutMetricAlarm,
|
||||
|
@ -381,7 +621,28 @@ func (c *CloudWatch) PutMetricAlarm(input *PutMetricAlarmInput) (*PutMetricAlarm
|
|||
|
||||
const opPutMetricData = "PutMetricData"
|
||||
|
||||
// PutMetricDataRequest generates a request for the PutMetricData operation.
|
||||
// PutMetricDataRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the PutMetricData operation. The "output" return
|
||||
// value can be used to capture response data after the request's "Send" method
|
||||
// is called.
|
||||
//
|
||||
// Creating a request object using this method should be used when you want to inject
|
||||
// custom logic into the request's lifecycle using a custom handler, or if you want to
|
||||
// access properties on the request object before or after sending the request. If
|
||||
// you just want the service response, call the PutMetricData method directly
|
||||
// instead.
|
||||
//
|
||||
// Note: You must call the "Send" method on the returned request object in order
|
||||
// to execute the request.
|
||||
//
|
||||
// // Example sending a request using the PutMetricDataRequest method.
|
||||
// req, resp := client.PutMetricDataRequest(params)
|
||||
//
|
||||
// err := req.Send()
|
||||
// if err == nil { // resp is now filled
|
||||
// fmt.Println(resp)
|
||||
// }
|
||||
//
|
||||
func (c *CloudWatch) PutMetricDataRequest(input *PutMetricDataInput) (req *request.Request, output *PutMetricDataOutput) {
|
||||
op := &request.Operation{
|
||||
Name: opPutMetricData,
|
||||
|
@ -425,7 +686,28 @@ func (c *CloudWatch) PutMetricData(input *PutMetricDataInput) (*PutMetricDataOut
|
|||
|
||||
const opSetAlarmState = "SetAlarmState"
|
||||
|
||||
// SetAlarmStateRequest generates a request for the SetAlarmState operation.
|
||||
// SetAlarmStateRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the SetAlarmState operation. The "output" return
|
||||
// value can be used to capture response data after the request's "Send" method
|
||||
// is called.
|
||||
//
|
||||
// Creating a request object using this method should be used when you want to inject
|
||||
// custom logic into the request's lifecycle using a custom handler, or if you want to
|
||||
// access properties on the request object before or after sending the request. If
|
||||
// you just want the service response, call the SetAlarmState method directly
|
||||
// instead.
|
||||
//
|
||||
// Note: You must call the "Send" method on the returned request object in order
|
||||
// to execute the request.
|
||||
//
|
||||
// // Example sending a request using the SetAlarmStateRequest method.
|
||||
// req, resp := client.SetAlarmStateRequest(params)
|
||||
//
|
||||
// err := req.Send()
|
||||
// if err == nil { // resp is now filled
|
||||
// fmt.Println(resp)
|
||||
// }
|
||||
//
|
||||
func (c *CloudWatch) SetAlarmStateRequest(input *SetAlarmStateInput) (req *request.Request, output *SetAlarmStateOutput) {
|
||||
op := &request.Operation{
|
||||
Name: opSetAlarmState,
|
||||
|
|
|
@ -7,8 +7,8 @@ import (
|
|||
"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/query"
|
||||
"github.com/aws/aws-sdk-go/private/signer/v4"
|
||||
)
|
||||
|
||||
// Amazon CloudWatch monitors your Amazon Web Services (AWS) resources and the
|
||||
|
@ -72,7 +72,7 @@ func newClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegio
|
|||
}
|
||||
|
||||
// Handlers
|
||||
svc.Handlers.Sign.PushBack(v4.Sign)
|
||||
svc.Handlers.Sign.PushBackNamed(v4.SignRequestHandler)
|
||||
svc.Handlers.Build.PushBackNamed(query.BuildHandler)
|
||||
svc.Handlers.Unmarshal.PushBackNamed(query.UnmarshalHandler)
|
||||
svc.Handlers.UnmarshalMeta.PushBackNamed(query.UnmarshalMetaHandler)
|
||||
|
|
|
@ -0,0 +1,30 @@
|
|||
// THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT.
|
||||
|
||||
package cloudwatch
|
||||
|
||||
import (
|
||||
"github.com/aws/aws-sdk-go/private/waiter"
|
||||
)
|
||||
|
||||
func (c *CloudWatch) WaitUntilAlarmExists(input *DescribeAlarmsInput) error {
|
||||
waiterCfg := waiter.Config{
|
||||
Operation: "DescribeAlarms",
|
||||
Delay: 5,
|
||||
MaxAttempts: 40,
|
||||
Acceptors: []waiter.WaitAcceptor{
|
||||
{
|
||||
State: "success",
|
||||
Matcher: "path",
|
||||
Argument: "length(MetricAlarms[]) > `0`",
|
||||
Expected: true,
|
||||
},
|
||||
},
|
||||
}
|
||||
|
||||
w := waiter.Waiter{
|
||||
Client: c,
|
||||
Input: input,
|
||||
Config: waiterCfg,
|
||||
}
|
||||
return w.Wait()
|
||||
}
|
|
@ -15,7 +15,28 @@ import (
|
|||
|
||||
const opDeleteRule = "DeleteRule"
|
||||
|
||||
// DeleteRuleRequest generates a request for the DeleteRule operation.
|
||||
// DeleteRuleRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the DeleteRule operation. The "output" return
|
||||
// value can be used to capture response data after the request's "Send" method
|
||||
// is called.
|
||||
//
|
||||
// Creating a request object using this method should be used when you want to inject
|
||||
// custom logic into the request's lifecycle using a custom handler, or if you want to
|
||||
// access properties on the request object before or after sending the request. If
|
||||
// you just want the service response, call the DeleteRule method directly
|
||||
// instead.
|
||||
//
|
||||
// Note: You must call the "Send" method on the returned request object in order
|
||||
// to execute the request.
|
||||
//
|
||||
// // Example sending a request using the DeleteRuleRequest method.
|
||||
// req, resp := client.DeleteRuleRequest(params)
|
||||
//
|
||||
// err := req.Send()
|
||||
// if err == nil { // resp is now filled
|
||||
// fmt.Println(resp)
|
||||
// }
|
||||
//
|
||||
func (c *CloudWatchEvents) DeleteRuleRequest(input *DeleteRuleInput) (req *request.Request, output *DeleteRuleOutput) {
|
||||
op := &request.Operation{
|
||||
Name: opDeleteRule,
|
||||
|
@ -49,7 +70,28 @@ func (c *CloudWatchEvents) DeleteRule(input *DeleteRuleInput) (*DeleteRuleOutput
|
|||
|
||||
const opDescribeRule = "DescribeRule"
|
||||
|
||||
// DescribeRuleRequest generates a request for the DescribeRule operation.
|
||||
// DescribeRuleRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the DescribeRule operation. The "output" return
|
||||
// value can be used to capture response data after the request's "Send" method
|
||||
// is called.
|
||||
//
|
||||
// Creating a request object using this method should be used when you want to inject
|
||||
// custom logic into the request's lifecycle using a custom handler, or if you want to
|
||||
// access properties on the request object before or after sending the request. If
|
||||
// you just want the service response, call the DescribeRule method directly
|
||||
// instead.
|
||||
//
|
||||
// Note: You must call the "Send" method on the returned request object in order
|
||||
// to execute the request.
|
||||
//
|
||||
// // Example sending a request using the DescribeRuleRequest method.
|
||||
// req, resp := client.DescribeRuleRequest(params)
|
||||
//
|
||||
// err := req.Send()
|
||||
// if err == nil { // resp is now filled
|
||||
// fmt.Println(resp)
|
||||
// }
|
||||
//
|
||||
func (c *CloudWatchEvents) DescribeRuleRequest(input *DescribeRuleInput) (req *request.Request, output *DescribeRuleOutput) {
|
||||
op := &request.Operation{
|
||||
Name: opDescribeRule,
|
||||
|
@ -76,7 +118,28 @@ func (c *CloudWatchEvents) DescribeRule(input *DescribeRuleInput) (*DescribeRule
|
|||
|
||||
const opDisableRule = "DisableRule"
|
||||
|
||||
// DisableRuleRequest generates a request for the DisableRule operation.
|
||||
// DisableRuleRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the DisableRule operation. The "output" return
|
||||
// value can be used to capture response data after the request's "Send" method
|
||||
// is called.
|
||||
//
|
||||
// Creating a request object using this method should be used when you want to inject
|
||||
// custom logic into the request's lifecycle using a custom handler, or if you want to
|
||||
// access properties on the request object before or after sending the request. If
|
||||
// you just want the service response, call the DisableRule method directly
|
||||
// instead.
|
||||
//
|
||||
// Note: You must call the "Send" method on the returned request object in order
|
||||
// to execute the request.
|
||||
//
|
||||
// // Example sending a request using the DisableRuleRequest method.
|
||||
// req, resp := client.DisableRuleRequest(params)
|
||||
//
|
||||
// err := req.Send()
|
||||
// if err == nil { // resp is now filled
|
||||
// fmt.Println(resp)
|
||||
// }
|
||||
//
|
||||
func (c *CloudWatchEvents) DisableRuleRequest(input *DisableRuleInput) (req *request.Request, output *DisableRuleOutput) {
|
||||
op := &request.Operation{
|
||||
Name: opDisableRule,
|
||||
|
@ -110,7 +173,28 @@ func (c *CloudWatchEvents) DisableRule(input *DisableRuleInput) (*DisableRuleOut
|
|||
|
||||
const opEnableRule = "EnableRule"
|
||||
|
||||
// EnableRuleRequest generates a request for the EnableRule operation.
|
||||
// EnableRuleRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the EnableRule operation. The "output" return
|
||||
// value can be used to capture response data after the request's "Send" method
|
||||
// is called.
|
||||
//
|
||||
// Creating a request object using this method should be used when you want to inject
|
||||
// custom logic into the request's lifecycle using a custom handler, or if you want to
|
||||
// access properties on the request object before or after sending the request. If
|
||||
// you just want the service response, call the EnableRule method directly
|
||||
// instead.
|
||||
//
|
||||
// Note: You must call the "Send" method on the returned request object in order
|
||||
// to execute the request.
|
||||
//
|
||||
// // Example sending a request using the EnableRuleRequest method.
|
||||
// req, resp := client.EnableRuleRequest(params)
|
||||
//
|
||||
// err := req.Send()
|
||||
// if err == nil { // resp is now filled
|
||||
// fmt.Println(resp)
|
||||
// }
|
||||
//
|
||||
func (c *CloudWatchEvents) EnableRuleRequest(input *EnableRuleInput) (req *request.Request, output *EnableRuleOutput) {
|
||||
op := &request.Operation{
|
||||
Name: opEnableRule,
|
||||
|
@ -143,7 +227,28 @@ func (c *CloudWatchEvents) EnableRule(input *EnableRuleInput) (*EnableRuleOutput
|
|||
|
||||
const opListRuleNamesByTarget = "ListRuleNamesByTarget"
|
||||
|
||||
// ListRuleNamesByTargetRequest generates a request for the ListRuleNamesByTarget operation.
|
||||
// ListRuleNamesByTargetRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the ListRuleNamesByTarget operation. The "output" return
|
||||
// value can be used to capture response data after the request's "Send" method
|
||||
// is called.
|
||||
//
|
||||
// Creating a request object using this method should be used when you want to inject
|
||||
// custom logic into the request's lifecycle using a custom handler, or if you want to
|
||||
// access properties on the request object before or after sending the request. If
|
||||
// you just want the service response, call the ListRuleNamesByTarget method directly
|
||||
// instead.
|
||||
//
|
||||
// Note: You must call the "Send" method on the returned request object in order
|
||||
// to execute the request.
|
||||
//
|
||||
// // Example sending a request using the ListRuleNamesByTargetRequest method.
|
||||
// req, resp := client.ListRuleNamesByTargetRequest(params)
|
||||
//
|
||||
// err := req.Send()
|
||||
// if err == nil { // resp is now filled
|
||||
// fmt.Println(resp)
|
||||
// }
|
||||
//
|
||||
func (c *CloudWatchEvents) ListRuleNamesByTargetRequest(input *ListRuleNamesByTargetInput) (req *request.Request, output *ListRuleNamesByTargetOutput) {
|
||||
op := &request.Operation{
|
||||
Name: opListRuleNamesByTarget,
|
||||
|
@ -175,7 +280,28 @@ func (c *CloudWatchEvents) ListRuleNamesByTarget(input *ListRuleNamesByTargetInp
|
|||
|
||||
const opListRules = "ListRules"
|
||||
|
||||
// ListRulesRequest generates a request for the ListRules operation.
|
||||
// ListRulesRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the ListRules operation. The "output" return
|
||||
// value can be used to capture response data after the request's "Send" method
|
||||
// is called.
|
||||
//
|
||||
// Creating a request object using this method should be used when you want to inject
|
||||
// custom logic into the request's lifecycle using a custom handler, or if you want to
|
||||
// access properties on the request object before or after sending the request. If
|
||||
// you just want the service response, call the ListRules method directly
|
||||
// instead.
|
||||
//
|
||||
// Note: You must call the "Send" method on the returned request object in order
|
||||
// to execute the request.
|
||||
//
|
||||
// // Example sending a request using the ListRulesRequest method.
|
||||
// req, resp := client.ListRulesRequest(params)
|
||||
//
|
||||
// err := req.Send()
|
||||
// if err == nil { // resp is now filled
|
||||
// fmt.Println(resp)
|
||||
// }
|
||||
//
|
||||
func (c *CloudWatchEvents) ListRulesRequest(input *ListRulesInput) (req *request.Request, output *ListRulesOutput) {
|
||||
op := &request.Operation{
|
||||
Name: opListRules,
|
||||
|
@ -206,7 +332,28 @@ func (c *CloudWatchEvents) ListRules(input *ListRulesInput) (*ListRulesOutput, e
|
|||
|
||||
const opListTargetsByRule = "ListTargetsByRule"
|
||||
|
||||
// ListTargetsByRuleRequest generates a request for the ListTargetsByRule operation.
|
||||
// ListTargetsByRuleRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the ListTargetsByRule operation. The "output" return
|
||||
// value can be used to capture response data after the request's "Send" method
|
||||
// is called.
|
||||
//
|
||||
// Creating a request object using this method should be used when you want to inject
|
||||
// custom logic into the request's lifecycle using a custom handler, or if you want to
|
||||
// access properties on the request object before or after sending the request. If
|
||||
// you just want the service response, call the ListTargetsByRule method directly
|
||||
// instead.
|
||||
//
|
||||
// Note: You must call the "Send" method on the returned request object in order
|
||||
// to execute the request.
|
||||
//
|
||||
// // Example sending a request using the ListTargetsByRuleRequest method.
|
||||
// req, resp := client.ListTargetsByRuleRequest(params)
|
||||
//
|
||||
// err := req.Send()
|
||||
// if err == nil { // resp is now filled
|
||||
// fmt.Println(resp)
|
||||
// }
|
||||
//
|
||||
func (c *CloudWatchEvents) ListTargetsByRuleRequest(input *ListTargetsByRuleInput) (req *request.Request, output *ListTargetsByRuleOutput) {
|
||||
op := &request.Operation{
|
||||
Name: opListTargetsByRule,
|
||||
|
@ -233,7 +380,28 @@ func (c *CloudWatchEvents) ListTargetsByRule(input *ListTargetsByRuleInput) (*Li
|
|||
|
||||
const opPutEvents = "PutEvents"
|
||||
|
||||
// PutEventsRequest generates a request for the PutEvents operation.
|
||||
// PutEventsRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the PutEvents operation. The "output" return
|
||||
// value can be used to capture response data after the request's "Send" method
|
||||
// is called.
|
||||
//
|
||||
// Creating a request object using this method should be used when you want to inject
|
||||
// custom logic into the request's lifecycle using a custom handler, or if you want to
|
||||
// access properties on the request object before or after sending the request. If
|
||||
// you just want the service response, call the PutEvents method directly
|
||||
// instead.
|
||||
//
|
||||
// Note: You must call the "Send" method on the returned request object in order
|
||||
// to execute the request.
|
||||
//
|
||||
// // Example sending a request using the PutEventsRequest method.
|
||||
// req, resp := client.PutEventsRequest(params)
|
||||
//
|
||||
// err := req.Send()
|
||||
// if err == nil { // resp is now filled
|
||||
// fmt.Println(resp)
|
||||
// }
|
||||
//
|
||||
func (c *CloudWatchEvents) PutEventsRequest(input *PutEventsInput) (req *request.Request, output *PutEventsOutput) {
|
||||
op := &request.Operation{
|
||||
Name: opPutEvents,
|
||||
|
@ -261,7 +429,28 @@ func (c *CloudWatchEvents) PutEvents(input *PutEventsInput) (*PutEventsOutput, e
|
|||
|
||||
const opPutRule = "PutRule"
|
||||
|
||||
// PutRuleRequest generates a request for the PutRule operation.
|
||||
// PutRuleRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the PutRule operation. The "output" return
|
||||
// value can be used to capture response data after the request's "Send" method
|
||||
// is called.
|
||||
//
|
||||
// Creating a request object using this method should be used when you want to inject
|
||||
// custom logic into the request's lifecycle using a custom handler, or if you want to
|
||||
// access properties on the request object before or after sending the request. If
|
||||
// you just want the service response, call the PutRule method directly
|
||||
// instead.
|
||||
//
|
||||
// Note: You must call the "Send" method on the returned request object in order
|
||||
// to execute the request.
|
||||
//
|
||||
// // Example sending a request using the PutRuleRequest method.
|
||||
// req, resp := client.PutRuleRequest(params)
|
||||
//
|
||||
// err := req.Send()
|
||||
// if err == nil { // resp is now filled
|
||||
// fmt.Println(resp)
|
||||
// }
|
||||
//
|
||||
func (c *CloudWatchEvents) PutRuleRequest(input *PutRuleInput) (req *request.Request, output *PutRuleOutput) {
|
||||
op := &request.Operation{
|
||||
Name: opPutRule,
|
||||
|
@ -305,7 +494,28 @@ func (c *CloudWatchEvents) PutRule(input *PutRuleInput) (*PutRuleOutput, error)
|
|||
|
||||
const opPutTargets = "PutTargets"
|
||||
|
||||
// PutTargetsRequest generates a request for the PutTargets operation.
|
||||
// PutTargetsRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the PutTargets operation. The "output" return
|
||||
// value can be used to capture response data after the request's "Send" method
|
||||
// is called.
|
||||
//
|
||||
// Creating a request object using this method should be used when you want to inject
|
||||
// custom logic into the request's lifecycle using a custom handler, or if you want to
|
||||
// access properties on the request object before or after sending the request. If
|
||||
// you just want the service response, call the PutTargets method directly
|
||||
// instead.
|
||||
//
|
||||
// Note: You must call the "Send" method on the returned request object in order
|
||||
// to execute the request.
|
||||
//
|
||||
// // Example sending a request using the PutTargetsRequest method.
|
||||
// req, resp := client.PutTargetsRequest(params)
|
||||
//
|
||||
// err := req.Send()
|
||||
// if err == nil { // resp is now filled
|
||||
// fmt.Println(resp)
|
||||
// }
|
||||
//
|
||||
func (c *CloudWatchEvents) PutTargetsRequest(input *PutTargetsInput) (req *request.Request, output *PutTargetsOutput) {
|
||||
op := &request.Operation{
|
||||
Name: opPutTargets,
|
||||
|
@ -355,7 +565,28 @@ func (c *CloudWatchEvents) PutTargets(input *PutTargetsInput) (*PutTargetsOutput
|
|||
|
||||
const opRemoveTargets = "RemoveTargets"
|
||||
|
||||
// RemoveTargetsRequest generates a request for the RemoveTargets operation.
|
||||
// RemoveTargetsRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the RemoveTargets operation. The "output" return
|
||||
// value can be used to capture response data after the request's "Send" method
|
||||
// is called.
|
||||
//
|
||||
// Creating a request object using this method should be used when you want to inject
|
||||
// custom logic into the request's lifecycle using a custom handler, or if you want to
|
||||
// access properties on the request object before or after sending the request. If
|
||||
// you just want the service response, call the RemoveTargets method directly
|
||||
// instead.
|
||||
//
|
||||
// Note: You must call the "Send" method on the returned request object in order
|
||||
// to execute the request.
|
||||
//
|
||||
// // Example sending a request using the RemoveTargetsRequest method.
|
||||
// req, resp := client.RemoveTargetsRequest(params)
|
||||
//
|
||||
// err := req.Send()
|
||||
// if err == nil { // resp is now filled
|
||||
// fmt.Println(resp)
|
||||
// }
|
||||
//
|
||||
func (c *CloudWatchEvents) RemoveTargetsRequest(input *RemoveTargetsInput) (req *request.Request, output *RemoveTargetsOutput) {
|
||||
op := &request.Operation{
|
||||
Name: opRemoveTargets,
|
||||
|
@ -387,7 +618,28 @@ func (c *CloudWatchEvents) RemoveTargets(input *RemoveTargetsInput) (*RemoveTarg
|
|||
|
||||
const opTestEventPattern = "TestEventPattern"
|
||||
|
||||
// TestEventPatternRequest generates a request for the TestEventPattern operation.
|
||||
// TestEventPatternRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the TestEventPattern operation. The "output" return
|
||||
// value can be used to capture response data after the request's "Send" method
|
||||
// is called.
|
||||
//
|
||||
// Creating a request object using this method should be used when you want to inject
|
||||
// custom logic into the request's lifecycle using a custom handler, or if you want to
|
||||
// access properties on the request object before or after sending the request. If
|
||||
// you just want the service response, call the TestEventPattern method directly
|
||||
// instead.
|
||||
//
|
||||
// Note: You must call the "Send" method on the returned request object in order
|
||||
// to execute the request.
|
||||
//
|
||||
// // Example sending a request using the TestEventPatternRequest method.
|
||||
// req, resp := client.TestEventPatternRequest(params)
|
||||
//
|
||||
// err := req.Send()
|
||||
// if err == nil { // resp is now filled
|
||||
// fmt.Println(resp)
|
||||
// }
|
||||
//
|
||||
func (c *CloudWatchEvents) TestEventPatternRequest(input *TestEventPatternInput) (req *request.Request, output *TestEventPatternOutput) {
|
||||
op := &request.Operation{
|
||||
Name: opTestEventPattern,
|
||||
|
|
|
@ -7,8 +7,8 @@ import (
|
|||
"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/jsonrpc"
|
||||
"github.com/aws/aws-sdk-go/private/signer/v4"
|
||||
)
|
||||
|
||||
// Amazon CloudWatch Events helps you to respond to state changes in your AWS
|
||||
|
@ -73,7 +73,7 @@ func newClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegio
|
|||
}
|
||||
|
||||
// Handlers
|
||||
svc.Handlers.Sign.PushBack(v4.Sign)
|
||||
svc.Handlers.Sign.PushBackNamed(v4.SignRequestHandler)
|
||||
svc.Handlers.Build.PushBackNamed(jsonrpc.BuildHandler)
|
||||
svc.Handlers.Unmarshal.PushBackNamed(jsonrpc.UnmarshalHandler)
|
||||
svc.Handlers.UnmarshalMeta.PushBackNamed(jsonrpc.UnmarshalMetaHandler)
|
||||
|
|
|
@ -14,7 +14,28 @@ import (
|
|||
|
||||
const opCancelExportTask = "CancelExportTask"
|
||||
|
||||
// CancelExportTaskRequest generates a request for the CancelExportTask operation.
|
||||
// CancelExportTaskRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the CancelExportTask operation. The "output" return
|
||||
// value can be used to capture response data after the request's "Send" method
|
||||
// is called.
|
||||
//
|
||||
// Creating a request object using this method should be used when you want to inject
|
||||
// custom logic into the request's lifecycle using a custom handler, or if you want to
|
||||
// access properties on the request object before or after sending the request. If
|
||||
// you just want the service response, call the CancelExportTask method directly
|
||||
// instead.
|
||||
//
|
||||
// Note: You must call the "Send" method on the returned request object in order
|
||||
// to execute the request.
|
||||
//
|
||||
// // Example sending a request using the CancelExportTaskRequest method.
|
||||
// req, resp := client.CancelExportTaskRequest(params)
|
||||
//
|
||||
// err := req.Send()
|
||||
// if err == nil { // resp is now filled
|
||||
// fmt.Println(resp)
|
||||
// }
|
||||
//
|
||||
func (c *CloudWatchLogs) CancelExportTaskRequest(input *CancelExportTaskInput) (req *request.Request, output *CancelExportTaskOutput) {
|
||||
op := &request.Operation{
|
||||
Name: opCancelExportTask,
|
||||
|
@ -43,7 +64,28 @@ func (c *CloudWatchLogs) CancelExportTask(input *CancelExportTaskInput) (*Cancel
|
|||
|
||||
const opCreateExportTask = "CreateExportTask"
|
||||
|
||||
// CreateExportTaskRequest generates a request for the CreateExportTask operation.
|
||||
// CreateExportTaskRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the CreateExportTask operation. The "output" return
|
||||
// value can be used to capture response data after the request's "Send" method
|
||||
// is called.
|
||||
//
|
||||
// Creating a request object using this method should be used when you want to inject
|
||||
// custom logic into the request's lifecycle using a custom handler, or if you want to
|
||||
// access properties on the request object before or after sending the request. If
|
||||
// you just want the service response, call the CreateExportTask method directly
|
||||
// instead.
|
||||
//
|
||||
// Note: You must call the "Send" method on the returned request object in order
|
||||
// to execute the request.
|
||||
//
|
||||
// // Example sending a request using the CreateExportTaskRequest method.
|
||||
// req, resp := client.CreateExportTaskRequest(params)
|
||||
//
|
||||
// err := req.Send()
|
||||
// if err == nil { // resp is now filled
|
||||
// fmt.Println(resp)
|
||||
// }
|
||||
//
|
||||
func (c *CloudWatchLogs) CreateExportTaskRequest(input *CreateExportTaskInput) (req *request.Request, output *CreateExportTaskOutput) {
|
||||
op := &request.Operation{
|
||||
Name: opCreateExportTask,
|
||||
|
@ -82,7 +124,28 @@ func (c *CloudWatchLogs) CreateExportTask(input *CreateExportTaskInput) (*Create
|
|||
|
||||
const opCreateLogGroup = "CreateLogGroup"
|
||||
|
||||
// CreateLogGroupRequest generates a request for the CreateLogGroup operation.
|
||||
// CreateLogGroupRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the CreateLogGroup operation. The "output" return
|
||||
// value can be used to capture response data after the request's "Send" method
|
||||
// is called.
|
||||
//
|
||||
// Creating a request object using this method should be used when you want to inject
|
||||
// custom logic into the request's lifecycle using a custom handler, or if you want to
|
||||
// access properties on the request object before or after sending the request. If
|
||||
// you just want the service response, call the CreateLogGroup method directly
|
||||
// instead.
|
||||
//
|
||||
// Note: You must call the "Send" method on the returned request object in order
|
||||
// to execute the request.
|
||||
//
|
||||
// // Example sending a request using the CreateLogGroupRequest method.
|
||||
// req, resp := client.CreateLogGroupRequest(params)
|
||||
//
|
||||
// err := req.Send()
|
||||
// if err == nil { // resp is now filled
|
||||
// fmt.Println(resp)
|
||||
// }
|
||||
//
|
||||
func (c *CloudWatchLogs) CreateLogGroupRequest(input *CreateLogGroupInput) (req *request.Request, output *CreateLogGroupOutput) {
|
||||
op := &request.Operation{
|
||||
Name: opCreateLogGroup,
|
||||
|
@ -117,7 +180,28 @@ func (c *CloudWatchLogs) CreateLogGroup(input *CreateLogGroupInput) (*CreateLogG
|
|||
|
||||
const opCreateLogStream = "CreateLogStream"
|
||||
|
||||
// CreateLogStreamRequest generates a request for the CreateLogStream operation.
|
||||
// CreateLogStreamRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the CreateLogStream operation. The "output" return
|
||||
// value can be used to capture response data after the request's "Send" method
|
||||
// is called.
|
||||
//
|
||||
// Creating a request object using this method should be used when you want to inject
|
||||
// custom logic into the request's lifecycle using a custom handler, or if you want to
|
||||
// access properties on the request object before or after sending the request. If
|
||||
// you just want the service response, call the CreateLogStream method directly
|
||||
// instead.
|
||||
//
|
||||
// Note: You must call the "Send" method on the returned request object in order
|
||||
// to execute the request.
|
||||
//
|
||||
// // Example sending a request using the CreateLogStreamRequest method.
|
||||
// req, resp := client.CreateLogStreamRequest(params)
|
||||
//
|
||||
// err := req.Send()
|
||||
// if err == nil { // resp is now filled
|
||||
// fmt.Println(resp)
|
||||
// }
|
||||
//
|
||||
func (c *CloudWatchLogs) CreateLogStreamRequest(input *CreateLogStreamInput) (req *request.Request, output *CreateLogStreamOutput) {
|
||||
op := &request.Operation{
|
||||
Name: opCreateLogStream,
|
||||
|
@ -152,7 +236,28 @@ func (c *CloudWatchLogs) CreateLogStream(input *CreateLogStreamInput) (*CreateLo
|
|||
|
||||
const opDeleteDestination = "DeleteDestination"
|
||||
|
||||
// DeleteDestinationRequest generates a request for the DeleteDestination operation.
|
||||
// DeleteDestinationRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the DeleteDestination operation. The "output" return
|
||||
// value can be used to capture response data after the request's "Send" method
|
||||
// is called.
|
||||
//
|
||||
// Creating a request object using this method should be used when you want to inject
|
||||
// custom logic into the request's lifecycle using a custom handler, or if you want to
|
||||
// access properties on the request object before or after sending the request. If
|
||||
// you just want the service response, call the DeleteDestination method directly
|
||||
// instead.
|
||||
//
|
||||
// Note: You must call the "Send" method on the returned request object in order
|
||||
// to execute the request.
|
||||
//
|
||||
// // Example sending a request using the DeleteDestinationRequest method.
|
||||
// req, resp := client.DeleteDestinationRequest(params)
|
||||
//
|
||||
// err := req.Send()
|
||||
// if err == nil { // resp is now filled
|
||||
// fmt.Println(resp)
|
||||
// }
|
||||
//
|
||||
func (c *CloudWatchLogs) DeleteDestinationRequest(input *DeleteDestinationInput) (req *request.Request, output *DeleteDestinationOutput) {
|
||||
op := &request.Operation{
|
||||
Name: opDeleteDestination,
|
||||
|
@ -183,7 +288,28 @@ func (c *CloudWatchLogs) DeleteDestination(input *DeleteDestinationInput) (*Dele
|
|||
|
||||
const opDeleteLogGroup = "DeleteLogGroup"
|
||||
|
||||
// DeleteLogGroupRequest generates a request for the DeleteLogGroup operation.
|
||||
// DeleteLogGroupRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the DeleteLogGroup operation. The "output" return
|
||||
// value can be used to capture response data after the request's "Send" method
|
||||
// is called.
|
||||
//
|
||||
// Creating a request object using this method should be used when you want to inject
|
||||
// custom logic into the request's lifecycle using a custom handler, or if you want to
|
||||
// access properties on the request object before or after sending the request. If
|
||||
// you just want the service response, call the DeleteLogGroup method directly
|
||||
// instead.
|
||||
//
|
||||
// Note: You must call the "Send" method on the returned request object in order
|
||||
// to execute the request.
|
||||
//
|
||||
// // Example sending a request using the DeleteLogGroupRequest method.
|
||||
// req, resp := client.DeleteLogGroupRequest(params)
|
||||
//
|
||||
// err := req.Send()
|
||||
// if err == nil { // resp is now filled
|
||||
// fmt.Println(resp)
|
||||
// }
|
||||
//
|
||||
func (c *CloudWatchLogs) DeleteLogGroupRequest(input *DeleteLogGroupInput) (req *request.Request, output *DeleteLogGroupOutput) {
|
||||
op := &request.Operation{
|
||||
Name: opDeleteLogGroup,
|
||||
|
@ -213,7 +339,28 @@ func (c *CloudWatchLogs) DeleteLogGroup(input *DeleteLogGroupInput) (*DeleteLogG
|
|||
|
||||
const opDeleteLogStream = "DeleteLogStream"
|
||||
|
||||
// DeleteLogStreamRequest generates a request for the DeleteLogStream operation.
|
||||
// DeleteLogStreamRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the DeleteLogStream operation. The "output" return
|
||||
// value can be used to capture response data after the request's "Send" method
|
||||
// is called.
|
||||
//
|
||||
// Creating a request object using this method should be used when you want to inject
|
||||
// custom logic into the request's lifecycle using a custom handler, or if you want to
|
||||
// access properties on the request object before or after sending the request. If
|
||||
// you just want the service response, call the DeleteLogStream method directly
|
||||
// instead.
|
||||
//
|
||||
// Note: You must call the "Send" method on the returned request object in order
|
||||
// to execute the request.
|
||||
//
|
||||
// // Example sending a request using the DeleteLogStreamRequest method.
|
||||
// req, resp := client.DeleteLogStreamRequest(params)
|
||||
//
|
||||
// err := req.Send()
|
||||
// if err == nil { // resp is now filled
|
||||
// fmt.Println(resp)
|
||||
// }
|
||||
//
|
||||
func (c *CloudWatchLogs) DeleteLogStreamRequest(input *DeleteLogStreamInput) (req *request.Request, output *DeleteLogStreamOutput) {
|
||||
op := &request.Operation{
|
||||
Name: opDeleteLogStream,
|
||||
|
@ -243,7 +390,28 @@ func (c *CloudWatchLogs) DeleteLogStream(input *DeleteLogStreamInput) (*DeleteLo
|
|||
|
||||
const opDeleteMetricFilter = "DeleteMetricFilter"
|
||||
|
||||
// DeleteMetricFilterRequest generates a request for the DeleteMetricFilter operation.
|
||||
// DeleteMetricFilterRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the DeleteMetricFilter operation. The "output" return
|
||||
// value can be used to capture response data after the request's "Send" method
|
||||
// is called.
|
||||
//
|
||||
// Creating a request object using this method should be used when you want to inject
|
||||
// custom logic into the request's lifecycle using a custom handler, or if you want to
|
||||
// access properties on the request object before or after sending the request. If
|
||||
// you just want the service response, call the DeleteMetricFilter method directly
|
||||
// instead.
|
||||
//
|
||||
// Note: You must call the "Send" method on the returned request object in order
|
||||
// to execute the request.
|
||||
//
|
||||
// // Example sending a request using the DeleteMetricFilterRequest method.
|
||||
// req, resp := client.DeleteMetricFilterRequest(params)
|
||||
//
|
||||
// err := req.Send()
|
||||
// if err == nil { // resp is now filled
|
||||
// fmt.Println(resp)
|
||||
// }
|
||||
//
|
||||
func (c *CloudWatchLogs) DeleteMetricFilterRequest(input *DeleteMetricFilterInput) (req *request.Request, output *DeleteMetricFilterOutput) {
|
||||
op := &request.Operation{
|
||||
Name: opDeleteMetricFilter,
|
||||
|
@ -272,7 +440,28 @@ func (c *CloudWatchLogs) DeleteMetricFilter(input *DeleteMetricFilterInput) (*De
|
|||
|
||||
const opDeleteRetentionPolicy = "DeleteRetentionPolicy"
|
||||
|
||||
// DeleteRetentionPolicyRequest generates a request for the DeleteRetentionPolicy operation.
|
||||
// DeleteRetentionPolicyRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the DeleteRetentionPolicy operation. The "output" return
|
||||
// value can be used to capture response data after the request's "Send" method
|
||||
// is called.
|
||||
//
|
||||
// Creating a request object using this method should be used when you want to inject
|
||||
// custom logic into the request's lifecycle using a custom handler, or if you want to
|
||||
// access properties on the request object before or after sending the request. If
|
||||
// you just want the service response, call the DeleteRetentionPolicy method directly
|
||||
// instead.
|
||||
//
|
||||
// Note: You must call the "Send" method on the returned request object in order
|
||||
// to execute the request.
|
||||
//
|
||||
// // Example sending a request using the DeleteRetentionPolicyRequest method.
|
||||
// req, resp := client.DeleteRetentionPolicyRequest(params)
|
||||
//
|
||||
// err := req.Send()
|
||||
// if err == nil { // resp is now filled
|
||||
// fmt.Println(resp)
|
||||
// }
|
||||
//
|
||||
func (c *CloudWatchLogs) DeleteRetentionPolicyRequest(input *DeleteRetentionPolicyInput) (req *request.Request, output *DeleteRetentionPolicyOutput) {
|
||||
op := &request.Operation{
|
||||
Name: opDeleteRetentionPolicy,
|
||||
|
@ -302,7 +491,28 @@ func (c *CloudWatchLogs) DeleteRetentionPolicy(input *DeleteRetentionPolicyInput
|
|||
|
||||
const opDeleteSubscriptionFilter = "DeleteSubscriptionFilter"
|
||||
|
||||
// DeleteSubscriptionFilterRequest generates a request for the DeleteSubscriptionFilter operation.
|
||||
// DeleteSubscriptionFilterRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the DeleteSubscriptionFilter operation. The "output" return
|
||||
// value can be used to capture response data after the request's "Send" method
|
||||
// is called.
|
||||
//
|
||||
// Creating a request object using this method should be used when you want to inject
|
||||
// custom logic into the request's lifecycle using a custom handler, or if you want to
|
||||
// access properties on the request object before or after sending the request. If
|
||||
// you just want the service response, call the DeleteSubscriptionFilter method directly
|
||||
// instead.
|
||||
//
|
||||
// Note: You must call the "Send" method on the returned request object in order
|
||||
// to execute the request.
|
||||
//
|
||||
// // Example sending a request using the DeleteSubscriptionFilterRequest method.
|
||||
// req, resp := client.DeleteSubscriptionFilterRequest(params)
|
||||
//
|
||||
// err := req.Send()
|
||||
// if err == nil { // resp is now filled
|
||||
// fmt.Println(resp)
|
||||
// }
|
||||
//
|
||||
func (c *CloudWatchLogs) DeleteSubscriptionFilterRequest(input *DeleteSubscriptionFilterInput) (req *request.Request, output *DeleteSubscriptionFilterOutput) {
|
||||
op := &request.Operation{
|
||||
Name: opDeleteSubscriptionFilter,
|
||||
|
@ -331,7 +541,28 @@ func (c *CloudWatchLogs) DeleteSubscriptionFilter(input *DeleteSubscriptionFilte
|
|||
|
||||
const opDescribeDestinations = "DescribeDestinations"
|
||||
|
||||
// DescribeDestinationsRequest generates a request for the DescribeDestinations operation.
|
||||
// DescribeDestinationsRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the DescribeDestinations operation. The "output" return
|
||||
// value can be used to capture response data after the request's "Send" method
|
||||
// is called.
|
||||
//
|
||||
// Creating a request object using this method should be used when you want to inject
|
||||
// custom logic into the request's lifecycle using a custom handler, or if you want to
|
||||
// access properties on the request object before or after sending the request. If
|
||||
// you just want the service response, call the DescribeDestinations method directly
|
||||
// instead.
|
||||
//
|
||||
// Note: You must call the "Send" method on the returned request object in order
|
||||
// to execute the request.
|
||||
//
|
||||
// // Example sending a request using the DescribeDestinationsRequest method.
|
||||
// req, resp := client.DescribeDestinationsRequest(params)
|
||||
//
|
||||
// err := req.Send()
|
||||
// if err == nil { // resp is now filled
|
||||
// fmt.Println(resp)
|
||||
// }
|
||||
//
|
||||
func (c *CloudWatchLogs) DescribeDestinationsRequest(input *DescribeDestinationsInput) (req *request.Request, output *DescribeDestinationsOutput) {
|
||||
op := &request.Operation{
|
||||
Name: opDescribeDestinations,
|
||||
|
@ -369,6 +600,23 @@ func (c *CloudWatchLogs) DescribeDestinations(input *DescribeDestinationsInput)
|
|||
return out, err
|
||||
}
|
||||
|
||||
// DescribeDestinationsPages iterates over the pages of a DescribeDestinations operation,
|
||||
// calling the "fn" function with the response data for each page. To stop
|
||||
// iterating, return false from the fn function.
|
||||
//
|
||||
// See DescribeDestinations 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 DescribeDestinations operation.
|
||||
// pageNum := 0
|
||||
// err := client.DescribeDestinationsPages(params,
|
||||
// func(page *DescribeDestinationsOutput, lastPage bool) bool {
|
||||
// pageNum++
|
||||
// fmt.Println(page)
|
||||
// return pageNum <= 3
|
||||
// })
|
||||
//
|
||||
func (c *CloudWatchLogs) DescribeDestinationsPages(input *DescribeDestinationsInput, fn func(p *DescribeDestinationsOutput, lastPage bool) (shouldContinue bool)) error {
|
||||
page, _ := c.DescribeDestinationsRequest(input)
|
||||
page.Handlers.Build.PushBack(request.MakeAddToUserAgentFreeFormHandler("Paginator"))
|
||||
|
@ -379,7 +627,28 @@ func (c *CloudWatchLogs) DescribeDestinationsPages(input *DescribeDestinationsIn
|
|||
|
||||
const opDescribeExportTasks = "DescribeExportTasks"
|
||||
|
||||
// DescribeExportTasksRequest generates a request for the DescribeExportTasks operation.
|
||||
// DescribeExportTasksRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the DescribeExportTasks operation. The "output" return
|
||||
// value can be used to capture response data after the request's "Send" method
|
||||
// is called.
|
||||
//
|
||||
// Creating a request object using this method should be used when you want to inject
|
||||
// custom logic into the request's lifecycle using a custom handler, or if you want to
|
||||
// access properties on the request object before or after sending the request. If
|
||||
// you just want the service response, call the DescribeExportTasks method directly
|
||||
// instead.
|
||||
//
|
||||
// Note: You must call the "Send" method on the returned request object in order
|
||||
// to execute the request.
|
||||
//
|
||||
// // Example sending a request using the DescribeExportTasksRequest method.
|
||||
// req, resp := client.DescribeExportTasksRequest(params)
|
||||
//
|
||||
// err := req.Send()
|
||||
// if err == nil { // resp is now filled
|
||||
// fmt.Println(resp)
|
||||
// }
|
||||
//
|
||||
func (c *CloudWatchLogs) DescribeExportTasksRequest(input *DescribeExportTasksInput) (req *request.Request, output *DescribeExportTasksOutput) {
|
||||
op := &request.Operation{
|
||||
Name: opDescribeExportTasks,
|
||||
|
@ -413,7 +682,28 @@ func (c *CloudWatchLogs) DescribeExportTasks(input *DescribeExportTasksInput) (*
|
|||
|
||||
const opDescribeLogGroups = "DescribeLogGroups"
|
||||
|
||||
// DescribeLogGroupsRequest generates a request for the DescribeLogGroups operation.
|
||||
// DescribeLogGroupsRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the DescribeLogGroups operation. The "output" return
|
||||
// value can be used to capture response data after the request's "Send" method
|
||||
// is called.
|
||||
//
|
||||
// Creating a request object using this method should be used when you want to inject
|
||||
// custom logic into the request's lifecycle using a custom handler, or if you want to
|
||||
// access properties on the request object before or after sending the request. If
|
||||
// you just want the service response, call the DescribeLogGroups method directly
|
||||
// instead.
|
||||
//
|
||||
// Note: You must call the "Send" method on the returned request object in order
|
||||
// to execute the request.
|
||||
//
|
||||
// // Example sending a request using the DescribeLogGroupsRequest method.
|
||||
// req, resp := client.DescribeLogGroupsRequest(params)
|
||||
//
|
||||
// err := req.Send()
|
||||
// if err == nil { // resp is now filled
|
||||
// fmt.Println(resp)
|
||||
// }
|
||||
//
|
||||
func (c *CloudWatchLogs) DescribeLogGroupsRequest(input *DescribeLogGroupsInput) (req *request.Request, output *DescribeLogGroupsOutput) {
|
||||
op := &request.Operation{
|
||||
Name: opDescribeLogGroups,
|
||||
|
@ -451,6 +741,23 @@ func (c *CloudWatchLogs) DescribeLogGroups(input *DescribeLogGroupsInput) (*Desc
|
|||
return out, err
|
||||
}
|
||||
|
||||
// DescribeLogGroupsPages iterates over the pages of a DescribeLogGroups operation,
|
||||
// calling the "fn" function with the response data for each page. To stop
|
||||
// iterating, return false from the fn function.
|
||||
//
|
||||
// See DescribeLogGroups 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 DescribeLogGroups operation.
|
||||
// pageNum := 0
|
||||
// err := client.DescribeLogGroupsPages(params,
|
||||
// func(page *DescribeLogGroupsOutput, lastPage bool) bool {
|
||||
// pageNum++
|
||||
// fmt.Println(page)
|
||||
// return pageNum <= 3
|
||||
// })
|
||||
//
|
||||
func (c *CloudWatchLogs) DescribeLogGroupsPages(input *DescribeLogGroupsInput, fn func(p *DescribeLogGroupsOutput, lastPage bool) (shouldContinue bool)) error {
|
||||
page, _ := c.DescribeLogGroupsRequest(input)
|
||||
page.Handlers.Build.PushBack(request.MakeAddToUserAgentFreeFormHandler("Paginator"))
|
||||
|
@ -461,7 +768,28 @@ func (c *CloudWatchLogs) DescribeLogGroupsPages(input *DescribeLogGroupsInput, f
|
|||
|
||||
const opDescribeLogStreams = "DescribeLogStreams"
|
||||
|
||||
// DescribeLogStreamsRequest generates a request for the DescribeLogStreams operation.
|
||||
// DescribeLogStreamsRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the DescribeLogStreams operation. The "output" return
|
||||
// value can be used to capture response data after the request's "Send" method
|
||||
// is called.
|
||||
//
|
||||
// Creating a request object using this method should be used when you want to inject
|
||||
// custom logic into the request's lifecycle using a custom handler, or if you want to
|
||||
// access properties on the request object before or after sending the request. If
|
||||
// you just want the service response, call the DescribeLogStreams method directly
|
||||
// instead.
|
||||
//
|
||||
// Note: You must call the "Send" method on the returned request object in order
|
||||
// to execute the request.
|
||||
//
|
||||
// // Example sending a request using the DescribeLogStreamsRequest method.
|
||||
// req, resp := client.DescribeLogStreamsRequest(params)
|
||||
//
|
||||
// err := req.Send()
|
||||
// if err == nil { // resp is now filled
|
||||
// fmt.Println(resp)
|
||||
// }
|
||||
//
|
||||
func (c *CloudWatchLogs) DescribeLogStreamsRequest(input *DescribeLogStreamsInput) (req *request.Request, output *DescribeLogStreamsOutput) {
|
||||
op := &request.Operation{
|
||||
Name: opDescribeLogStreams,
|
||||
|
@ -500,6 +828,23 @@ func (c *CloudWatchLogs) DescribeLogStreams(input *DescribeLogStreamsInput) (*De
|
|||
return out, err
|
||||
}
|
||||
|
||||
// DescribeLogStreamsPages iterates over the pages of a DescribeLogStreams operation,
|
||||
// calling the "fn" function with the response data for each page. To stop
|
||||
// iterating, return false from the fn function.
|
||||
//
|
||||
// See DescribeLogStreams 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 DescribeLogStreams operation.
|
||||
// pageNum := 0
|
||||
// err := client.DescribeLogStreamsPages(params,
|
||||
// func(page *DescribeLogStreamsOutput, lastPage bool) bool {
|
||||
// pageNum++
|
||||
// fmt.Println(page)
|
||||
// return pageNum <= 3
|
||||
// })
|
||||
//
|
||||
func (c *CloudWatchLogs) DescribeLogStreamsPages(input *DescribeLogStreamsInput, fn func(p *DescribeLogStreamsOutput, lastPage bool) (shouldContinue bool)) error {
|
||||
page, _ := c.DescribeLogStreamsRequest(input)
|
||||
page.Handlers.Build.PushBack(request.MakeAddToUserAgentFreeFormHandler("Paginator"))
|
||||
|
@ -510,7 +855,28 @@ func (c *CloudWatchLogs) DescribeLogStreamsPages(input *DescribeLogStreamsInput,
|
|||
|
||||
const opDescribeMetricFilters = "DescribeMetricFilters"
|
||||
|
||||
// DescribeMetricFiltersRequest generates a request for the DescribeMetricFilters operation.
|
||||
// DescribeMetricFiltersRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the DescribeMetricFilters operation. The "output" return
|
||||
// value can be used to capture response data after the request's "Send" method
|
||||
// is called.
|
||||
//
|
||||
// Creating a request object using this method should be used when you want to inject
|
||||
// custom logic into the request's lifecycle using a custom handler, or if you want to
|
||||
// access properties on the request object before or after sending the request. If
|
||||
// you just want the service response, call the DescribeMetricFilters method directly
|
||||
// instead.
|
||||
//
|
||||
// Note: You must call the "Send" method on the returned request object in order
|
||||
// to execute the request.
|
||||
//
|
||||
// // Example sending a request using the DescribeMetricFiltersRequest method.
|
||||
// req, resp := client.DescribeMetricFiltersRequest(params)
|
||||
//
|
||||
// err := req.Send()
|
||||
// if err == nil { // resp is now filled
|
||||
// fmt.Println(resp)
|
||||
// }
|
||||
//
|
||||
func (c *CloudWatchLogs) DescribeMetricFiltersRequest(input *DescribeMetricFiltersInput) (req *request.Request, output *DescribeMetricFiltersOutput) {
|
||||
op := &request.Operation{
|
||||
Name: opDescribeMetricFilters,
|
||||
|
@ -547,6 +913,23 @@ func (c *CloudWatchLogs) DescribeMetricFilters(input *DescribeMetricFiltersInput
|
|||
return out, err
|
||||
}
|
||||
|
||||
// DescribeMetricFiltersPages iterates over the pages of a DescribeMetricFilters operation,
|
||||
// calling the "fn" function with the response data for each page. To stop
|
||||
// iterating, return false from the fn function.
|
||||
//
|
||||
// See DescribeMetricFilters 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 DescribeMetricFilters operation.
|
||||
// pageNum := 0
|
||||
// err := client.DescribeMetricFiltersPages(params,
|
||||
// func(page *DescribeMetricFiltersOutput, lastPage bool) bool {
|
||||
// pageNum++
|
||||
// fmt.Println(page)
|
||||
// return pageNum <= 3
|
||||
// })
|
||||
//
|
||||
func (c *CloudWatchLogs) DescribeMetricFiltersPages(input *DescribeMetricFiltersInput, fn func(p *DescribeMetricFiltersOutput, lastPage bool) (shouldContinue bool)) error {
|
||||
page, _ := c.DescribeMetricFiltersRequest(input)
|
||||
page.Handlers.Build.PushBack(request.MakeAddToUserAgentFreeFormHandler("Paginator"))
|
||||
|
@ -557,7 +940,28 @@ func (c *CloudWatchLogs) DescribeMetricFiltersPages(input *DescribeMetricFilters
|
|||
|
||||
const opDescribeSubscriptionFilters = "DescribeSubscriptionFilters"
|
||||
|
||||
// DescribeSubscriptionFiltersRequest generates a request for the DescribeSubscriptionFilters operation.
|
||||
// DescribeSubscriptionFiltersRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the DescribeSubscriptionFilters operation. The "output" return
|
||||
// value can be used to capture response data after the request's "Send" method
|
||||
// is called.
|
||||
//
|
||||
// Creating a request object using this method should be used when you want to inject
|
||||
// custom logic into the request's lifecycle using a custom handler, or if you want to
|
||||
// access properties on the request object before or after sending the request. If
|
||||
// you just want the service response, call the DescribeSubscriptionFilters method directly
|
||||
// instead.
|
||||
//
|
||||
// Note: You must call the "Send" method on the returned request object in order
|
||||
// to execute the request.
|
||||
//
|
||||
// // Example sending a request using the DescribeSubscriptionFiltersRequest method.
|
||||
// req, resp := client.DescribeSubscriptionFiltersRequest(params)
|
||||
//
|
||||
// err := req.Send()
|
||||
// if err == nil { // resp is now filled
|
||||
// fmt.Println(resp)
|
||||
// }
|
||||
//
|
||||
func (c *CloudWatchLogs) DescribeSubscriptionFiltersRequest(input *DescribeSubscriptionFiltersInput) (req *request.Request, output *DescribeSubscriptionFiltersOutput) {
|
||||
op := &request.Operation{
|
||||
Name: opDescribeSubscriptionFilters,
|
||||
|
@ -595,6 +999,23 @@ func (c *CloudWatchLogs) DescribeSubscriptionFilters(input *DescribeSubscription
|
|||
return out, err
|
||||
}
|
||||
|
||||
// DescribeSubscriptionFiltersPages iterates over the pages of a DescribeSubscriptionFilters operation,
|
||||
// calling the "fn" function with the response data for each page. To stop
|
||||
// iterating, return false from the fn function.
|
||||
//
|
||||
// See DescribeSubscriptionFilters 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 DescribeSubscriptionFilters operation.
|
||||
// pageNum := 0
|
||||
// err := client.DescribeSubscriptionFiltersPages(params,
|
||||
// func(page *DescribeSubscriptionFiltersOutput, lastPage bool) bool {
|
||||
// pageNum++
|
||||
// fmt.Println(page)
|
||||
// return pageNum <= 3
|
||||
// })
|
||||
//
|
||||
func (c *CloudWatchLogs) DescribeSubscriptionFiltersPages(input *DescribeSubscriptionFiltersInput, fn func(p *DescribeSubscriptionFiltersOutput, lastPage bool) (shouldContinue bool)) error {
|
||||
page, _ := c.DescribeSubscriptionFiltersRequest(input)
|
||||
page.Handlers.Build.PushBack(request.MakeAddToUserAgentFreeFormHandler("Paginator"))
|
||||
|
@ -605,7 +1026,28 @@ func (c *CloudWatchLogs) DescribeSubscriptionFiltersPages(input *DescribeSubscri
|
|||
|
||||
const opFilterLogEvents = "FilterLogEvents"
|
||||
|
||||
// FilterLogEventsRequest generates a request for the FilterLogEvents operation.
|
||||
// FilterLogEventsRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the FilterLogEvents operation. The "output" return
|
||||
// value can be used to capture response data after the request's "Send" method
|
||||
// is called.
|
||||
//
|
||||
// Creating a request object using this method should be used when you want to inject
|
||||
// custom logic into the request's lifecycle using a custom handler, or if you want to
|
||||
// access properties on the request object before or after sending the request. If
|
||||
// you just want the service response, call the FilterLogEvents method directly
|
||||
// instead.
|
||||
//
|
||||
// Note: You must call the "Send" method on the returned request object in order
|
||||
// to execute the request.
|
||||
//
|
||||
// // Example sending a request using the FilterLogEventsRequest method.
|
||||
// req, resp := client.FilterLogEventsRequest(params)
|
||||
//
|
||||
// err := req.Send()
|
||||
// if err == nil { // resp is now filled
|
||||
// fmt.Println(resp)
|
||||
// }
|
||||
//
|
||||
func (c *CloudWatchLogs) FilterLogEventsRequest(input *FilterLogEventsInput) (req *request.Request, output *FilterLogEventsOutput) {
|
||||
op := &request.Operation{
|
||||
Name: opFilterLogEvents,
|
||||
|
@ -649,6 +1091,23 @@ func (c *CloudWatchLogs) FilterLogEvents(input *FilterLogEventsInput) (*FilterLo
|
|||
return out, err
|
||||
}
|
||||
|
||||
// FilterLogEventsPages iterates over the pages of a FilterLogEvents operation,
|
||||
// calling the "fn" function with the response data for each page. To stop
|
||||
// iterating, return false from the fn function.
|
||||
//
|
||||
// See FilterLogEvents 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 FilterLogEvents operation.
|
||||
// pageNum := 0
|
||||
// err := client.FilterLogEventsPages(params,
|
||||
// func(page *FilterLogEventsOutput, lastPage bool) bool {
|
||||
// pageNum++
|
||||
// fmt.Println(page)
|
||||
// return pageNum <= 3
|
||||
// })
|
||||
//
|
||||
func (c *CloudWatchLogs) FilterLogEventsPages(input *FilterLogEventsInput, fn func(p *FilterLogEventsOutput, lastPage bool) (shouldContinue bool)) error {
|
||||
page, _ := c.FilterLogEventsRequest(input)
|
||||
page.Handlers.Build.PushBack(request.MakeAddToUserAgentFreeFormHandler("Paginator"))
|
||||
|
@ -659,7 +1118,28 @@ func (c *CloudWatchLogs) FilterLogEventsPages(input *FilterLogEventsInput, fn fu
|
|||
|
||||
const opGetLogEvents = "GetLogEvents"
|
||||
|
||||
// GetLogEventsRequest generates a request for the GetLogEvents operation.
|
||||
// GetLogEventsRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the GetLogEvents operation. The "output" return
|
||||
// value can be used to capture response data after the request's "Send" method
|
||||
// is called.
|
||||
//
|
||||
// Creating a request object using this method should be used when you want to inject
|
||||
// custom logic into the request's lifecycle using a custom handler, or if you want to
|
||||
// access properties on the request object before or after sending the request. If
|
||||
// you just want the service response, call the GetLogEvents method directly
|
||||
// instead.
|
||||
//
|
||||
// Note: You must call the "Send" method on the returned request object in order
|
||||
// to execute the request.
|
||||
//
|
||||
// // Example sending a request using the GetLogEventsRequest method.
|
||||
// req, resp := client.GetLogEventsRequest(params)
|
||||
//
|
||||
// err := req.Send()
|
||||
// if err == nil { // resp is now filled
|
||||
// fmt.Println(resp)
|
||||
// }
|
||||
//
|
||||
func (c *CloudWatchLogs) GetLogEventsRequest(input *GetLogEventsInput) (req *request.Request, output *GetLogEventsOutput) {
|
||||
op := &request.Operation{
|
||||
Name: opGetLogEvents,
|
||||
|
@ -699,6 +1179,23 @@ func (c *CloudWatchLogs) GetLogEvents(input *GetLogEventsInput) (*GetLogEventsOu
|
|||
return out, err
|
||||
}
|
||||
|
||||
// GetLogEventsPages iterates over the pages of a GetLogEvents operation,
|
||||
// calling the "fn" function with the response data for each page. To stop
|
||||
// iterating, return false from the fn function.
|
||||
//
|
||||
// See GetLogEvents 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 GetLogEvents operation.
|
||||
// pageNum := 0
|
||||
// err := client.GetLogEventsPages(params,
|
||||
// func(page *GetLogEventsOutput, lastPage bool) bool {
|
||||
// pageNum++
|
||||
// fmt.Println(page)
|
||||
// return pageNum <= 3
|
||||
// })
|
||||
//
|
||||
func (c *CloudWatchLogs) GetLogEventsPages(input *GetLogEventsInput, fn func(p *GetLogEventsOutput, lastPage bool) (shouldContinue bool)) error {
|
||||
page, _ := c.GetLogEventsRequest(input)
|
||||
page.Handlers.Build.PushBack(request.MakeAddToUserAgentFreeFormHandler("Paginator"))
|
||||
|
@ -709,7 +1206,28 @@ func (c *CloudWatchLogs) GetLogEventsPages(input *GetLogEventsInput, fn func(p *
|
|||
|
||||
const opPutDestination = "PutDestination"
|
||||
|
||||
// PutDestinationRequest generates a request for the PutDestination operation.
|
||||
// PutDestinationRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the PutDestination operation. The "output" return
|
||||
// value can be used to capture response data after the request's "Send" method
|
||||
// is called.
|
||||
//
|
||||
// Creating a request object using this method should be used when you want to inject
|
||||
// custom logic into the request's lifecycle using a custom handler, or if you want to
|
||||
// access properties on the request object before or after sending the request. If
|
||||
// you just want the service response, call the PutDestination method directly
|
||||
// instead.
|
||||
//
|
||||
// Note: You must call the "Send" method on the returned request object in order
|
||||
// to execute the request.
|
||||
//
|
||||
// // Example sending a request using the PutDestinationRequest method.
|
||||
// req, resp := client.PutDestinationRequest(params)
|
||||
//
|
||||
// err := req.Send()
|
||||
// if err == nil { // resp is now filled
|
||||
// fmt.Println(resp)
|
||||
// }
|
||||
//
|
||||
func (c *CloudWatchLogs) PutDestinationRequest(input *PutDestinationInput) (req *request.Request, output *PutDestinationOutput) {
|
||||
op := &request.Operation{
|
||||
Name: opPutDestination,
|
||||
|
@ -746,7 +1264,28 @@ func (c *CloudWatchLogs) PutDestination(input *PutDestinationInput) (*PutDestina
|
|||
|
||||
const opPutDestinationPolicy = "PutDestinationPolicy"
|
||||
|
||||
// PutDestinationPolicyRequest generates a request for the PutDestinationPolicy operation.
|
||||
// PutDestinationPolicyRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the PutDestinationPolicy operation. The "output" return
|
||||
// value can be used to capture response data after the request's "Send" method
|
||||
// is called.
|
||||
//
|
||||
// Creating a request object using this method should be used when you want to inject
|
||||
// custom logic into the request's lifecycle using a custom handler, or if you want to
|
||||
// access properties on the request object before or after sending the request. If
|
||||
// you just want the service response, call the PutDestinationPolicy method directly
|
||||
// instead.
|
||||
//
|
||||
// Note: You must call the "Send" method on the returned request object in order
|
||||
// to execute the request.
|
||||
//
|
||||
// // Example sending a request using the PutDestinationPolicyRequest method.
|
||||
// req, resp := client.PutDestinationPolicyRequest(params)
|
||||
//
|
||||
// err := req.Send()
|
||||
// if err == nil { // resp is now filled
|
||||
// fmt.Println(resp)
|
||||
// }
|
||||
//
|
||||
func (c *CloudWatchLogs) PutDestinationPolicyRequest(input *PutDestinationPolicyInput) (req *request.Request, output *PutDestinationPolicyOutput) {
|
||||
op := &request.Operation{
|
||||
Name: opPutDestinationPolicy,
|
||||
|
@ -778,7 +1317,28 @@ func (c *CloudWatchLogs) PutDestinationPolicy(input *PutDestinationPolicyInput)
|
|||
|
||||
const opPutLogEvents = "PutLogEvents"
|
||||
|
||||
// PutLogEventsRequest generates a request for the PutLogEvents operation.
|
||||
// PutLogEventsRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the PutLogEvents operation. The "output" return
|
||||
// value can be used to capture response data after the request's "Send" method
|
||||
// is called.
|
||||
//
|
||||
// Creating a request object using this method should be used when you want to inject
|
||||
// custom logic into the request's lifecycle using a custom handler, or if you want to
|
||||
// access properties on the request object before or after sending the request. If
|
||||
// you just want the service response, call the PutLogEvents method directly
|
||||
// instead.
|
||||
//
|
||||
// Note: You must call the "Send" method on the returned request object in order
|
||||
// to execute the request.
|
||||
//
|
||||
// // Example sending a request using the PutLogEventsRequest method.
|
||||
// req, resp := client.PutLogEventsRequest(params)
|
||||
//
|
||||
// err := req.Send()
|
||||
// if err == nil { // resp is now filled
|
||||
// fmt.Println(resp)
|
||||
// }
|
||||
//
|
||||
func (c *CloudWatchLogs) PutLogEventsRequest(input *PutLogEventsInput) (req *request.Request, output *PutLogEventsOutput) {
|
||||
op := &request.Operation{
|
||||
Name: opPutLogEvents,
|
||||
|
@ -819,7 +1379,28 @@ func (c *CloudWatchLogs) PutLogEvents(input *PutLogEventsInput) (*PutLogEventsOu
|
|||
|
||||
const opPutMetricFilter = "PutMetricFilter"
|
||||
|
||||
// PutMetricFilterRequest generates a request for the PutMetricFilter operation.
|
||||
// PutMetricFilterRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the PutMetricFilter operation. The "output" return
|
||||
// value can be used to capture response data after the request's "Send" method
|
||||
// is called.
|
||||
//
|
||||
// Creating a request object using this method should be used when you want to inject
|
||||
// custom logic into the request's lifecycle using a custom handler, or if you want to
|
||||
// access properties on the request object before or after sending the request. If
|
||||
// you just want the service response, call the PutMetricFilter method directly
|
||||
// instead.
|
||||
//
|
||||
// Note: You must call the "Send" method on the returned request object in order
|
||||
// to execute the request.
|
||||
//
|
||||
// // Example sending a request using the PutMetricFilterRequest method.
|
||||
// req, resp := client.PutMetricFilterRequest(params)
|
||||
//
|
||||
// err := req.Send()
|
||||
// if err == nil { // resp is now filled
|
||||
// fmt.Println(resp)
|
||||
// }
|
||||
//
|
||||
func (c *CloudWatchLogs) PutMetricFilterRequest(input *PutMetricFilterInput) (req *request.Request, output *PutMetricFilterOutput) {
|
||||
op := &request.Operation{
|
||||
Name: opPutMetricFilter,
|
||||
|
@ -853,7 +1434,28 @@ func (c *CloudWatchLogs) PutMetricFilter(input *PutMetricFilterInput) (*PutMetri
|
|||
|
||||
const opPutRetentionPolicy = "PutRetentionPolicy"
|
||||
|
||||
// PutRetentionPolicyRequest generates a request for the PutRetentionPolicy operation.
|
||||
// PutRetentionPolicyRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the PutRetentionPolicy operation. The "output" return
|
||||
// value can be used to capture response data after the request's "Send" method
|
||||
// is called.
|
||||
//
|
||||
// Creating a request object using this method should be used when you want to inject
|
||||
// custom logic into the request's lifecycle using a custom handler, or if you want to
|
||||
// access properties on the request object before or after sending the request. If
|
||||
// you just want the service response, call the PutRetentionPolicy method directly
|
||||
// instead.
|
||||
//
|
||||
// Note: You must call the "Send" method on the returned request object in order
|
||||
// to execute the request.
|
||||
//
|
||||
// // Example sending a request using the PutRetentionPolicyRequest method.
|
||||
// req, resp := client.PutRetentionPolicyRequest(params)
|
||||
//
|
||||
// err := req.Send()
|
||||
// if err == nil { // resp is now filled
|
||||
// fmt.Println(resp)
|
||||
// }
|
||||
//
|
||||
func (c *CloudWatchLogs) PutRetentionPolicyRequest(input *PutRetentionPolicyInput) (req *request.Request, output *PutRetentionPolicyOutput) {
|
||||
op := &request.Operation{
|
||||
Name: opPutRetentionPolicy,
|
||||
|
@ -884,7 +1486,28 @@ func (c *CloudWatchLogs) PutRetentionPolicy(input *PutRetentionPolicyInput) (*Pu
|
|||
|
||||
const opPutSubscriptionFilter = "PutSubscriptionFilter"
|
||||
|
||||
// PutSubscriptionFilterRequest generates a request for the PutSubscriptionFilter operation.
|
||||
// PutSubscriptionFilterRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the PutSubscriptionFilter operation. The "output" return
|
||||
// value can be used to capture response data after the request's "Send" method
|
||||
// is called.
|
||||
//
|
||||
// Creating a request object using this method should be used when you want to inject
|
||||
// custom logic into the request's lifecycle using a custom handler, or if you want to
|
||||
// access properties on the request object before or after sending the request. If
|
||||
// you just want the service response, call the PutSubscriptionFilter method directly
|
||||
// instead.
|
||||
//
|
||||
// Note: You must call the "Send" method on the returned request object in order
|
||||
// to execute the request.
|
||||
//
|
||||
// // Example sending a request using the PutSubscriptionFilterRequest method.
|
||||
// req, resp := client.PutSubscriptionFilterRequest(params)
|
||||
//
|
||||
// err := req.Send()
|
||||
// if err == nil { // resp is now filled
|
||||
// fmt.Println(resp)
|
||||
// }
|
||||
//
|
||||
func (c *CloudWatchLogs) PutSubscriptionFilterRequest(input *PutSubscriptionFilterInput) (req *request.Request, output *PutSubscriptionFilterOutput) {
|
||||
op := &request.Operation{
|
||||
Name: opPutSubscriptionFilter,
|
||||
|
@ -926,7 +1549,28 @@ func (c *CloudWatchLogs) PutSubscriptionFilter(input *PutSubscriptionFilterInput
|
|||
|
||||
const opTestMetricFilter = "TestMetricFilter"
|
||||
|
||||
// TestMetricFilterRequest generates a request for the TestMetricFilter operation.
|
||||
// TestMetricFilterRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the TestMetricFilter operation. The "output" return
|
||||
// value can be used to capture response data after the request's "Send" method
|
||||
// is called.
|
||||
//
|
||||
// Creating a request object using this method should be used when you want to inject
|
||||
// custom logic into the request's lifecycle using a custom handler, or if you want to
|
||||
// access properties on the request object before or after sending the request. If
|
||||
// you just want the service response, call the TestMetricFilter method directly
|
||||
// instead.
|
||||
//
|
||||
// Note: You must call the "Send" method on the returned request object in order
|
||||
// to execute the request.
|
||||
//
|
||||
// // Example sending a request using the TestMetricFilterRequest method.
|
||||
// req, resp := client.TestMetricFilterRequest(params)
|
||||
//
|
||||
// err := req.Send()
|
||||
// if err == nil { // resp is now filled
|
||||
// fmt.Println(resp)
|
||||
// }
|
||||
//
|
||||
func (c *CloudWatchLogs) TestMetricFilterRequest(input *TestMetricFilterInput) (req *request.Request, output *TestMetricFilterOutput) {
|
||||
op := &request.Operation{
|
||||
Name: opTestMetricFilter,
|
||||
|
|
|
@ -7,8 +7,8 @@ import (
|
|||
"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/jsonrpc"
|
||||
"github.com/aws/aws-sdk-go/private/signer/v4"
|
||||
)
|
||||
|
||||
// You can use Amazon CloudWatch Logs to monitor, store, and access your log
|
||||
|
@ -88,7 +88,7 @@ func newClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegio
|
|||
}
|
||||
|
||||
// Handlers
|
||||
svc.Handlers.Sign.PushBack(v4.Sign)
|
||||
svc.Handlers.Sign.PushBackNamed(v4.SignRequestHandler)
|
||||
svc.Handlers.Build.PushBackNamed(jsonrpc.BuildHandler)
|
||||
svc.Handlers.Unmarshal.PushBackNamed(jsonrpc.UnmarshalHandler)
|
||||
svc.Handlers.UnmarshalMeta.PushBackNamed(jsonrpc.UnmarshalMetaHandler)
|
||||
|
|
|
@ -14,7 +14,28 @@ import (
|
|||
|
||||
const opBatchGetRepositories = "BatchGetRepositories"
|
||||
|
||||
// BatchGetRepositoriesRequest generates a request for the BatchGetRepositories operation.
|
||||
// BatchGetRepositoriesRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the BatchGetRepositories operation. The "output" return
|
||||
// value can be used to capture response data after the request's "Send" method
|
||||
// is called.
|
||||
//
|
||||
// Creating a request object using this method should be used when you want to inject
|
||||
// custom logic into the request's lifecycle using a custom handler, or if you want to
|
||||
// access properties on the request object before or after sending the request. If
|
||||
// you just want the service response, call the BatchGetRepositories method directly
|
||||
// instead.
|
||||
//
|
||||
// Note: You must call the "Send" method on the returned request object in order
|
||||
// to execute the request.
|
||||
//
|
||||
// // Example sending a request using the BatchGetRepositoriesRequest method.
|
||||
// req, resp := client.BatchGetRepositoriesRequest(params)
|
||||
//
|
||||
// err := req.Send()
|
||||
// if err == nil { // resp is now filled
|
||||
// fmt.Println(resp)
|
||||
// }
|
||||
//
|
||||
func (c *CodeCommit) BatchGetRepositoriesRequest(input *BatchGetRepositoriesInput) (req *request.Request, output *BatchGetRepositoriesOutput) {
|
||||
op := &request.Operation{
|
||||
Name: opBatchGetRepositories,
|
||||
|
@ -47,7 +68,28 @@ func (c *CodeCommit) BatchGetRepositories(input *BatchGetRepositoriesInput) (*Ba
|
|||
|
||||
const opCreateBranch = "CreateBranch"
|
||||
|
||||
// CreateBranchRequest generates a request for the CreateBranch operation.
|
||||
// CreateBranchRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the CreateBranch operation. The "output" return
|
||||
// value can be used to capture response data after the request's "Send" method
|
||||
// is called.
|
||||
//
|
||||
// Creating a request object using this method should be used when you want to inject
|
||||
// custom logic into the request's lifecycle using a custom handler, or if you want to
|
||||
// access properties on the request object before or after sending the request. If
|
||||
// you just want the service response, call the CreateBranch method directly
|
||||
// instead.
|
||||
//
|
||||
// Note: You must call the "Send" method on the returned request object in order
|
||||
// to execute the request.
|
||||
//
|
||||
// // 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)
|
||||
// }
|
||||
//
|
||||
func (c *CodeCommit) CreateBranchRequest(input *CreateBranchInput) (req *request.Request, output *CreateBranchOutput) {
|
||||
op := &request.Operation{
|
||||
Name: opCreateBranch,
|
||||
|
@ -79,7 +121,28 @@ func (c *CodeCommit) CreateBranch(input *CreateBranchInput) (*CreateBranchOutput
|
|||
|
||||
const opCreateRepository = "CreateRepository"
|
||||
|
||||
// CreateRepositoryRequest generates a request for the CreateRepository operation.
|
||||
// CreateRepositoryRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the CreateRepository operation. The "output" return
|
||||
// value can be used to capture response data after the request's "Send" method
|
||||
// is called.
|
||||
//
|
||||
// Creating a request object using this method should be used when you want to inject
|
||||
// custom logic into the request's lifecycle using a custom handler, or if you want to
|
||||
// access properties on the request object before or after sending the request. If
|
||||
// you just want the service response, call the CreateRepository method directly
|
||||
// instead.
|
||||
//
|
||||
// Note: You must call the "Send" method on the returned request object in order
|
||||
// to execute the request.
|
||||
//
|
||||
// // Example sending a request using the CreateRepositoryRequest method.
|
||||
// req, resp := client.CreateRepositoryRequest(params)
|
||||
//
|
||||
// err := req.Send()
|
||||
// if err == nil { // resp is now filled
|
||||
// fmt.Println(resp)
|
||||
// }
|
||||
//
|
||||
func (c *CodeCommit) CreateRepositoryRequest(input *CreateRepositoryInput) (req *request.Request, output *CreateRepositoryOutput) {
|
||||
op := &request.Operation{
|
||||
Name: opCreateRepository,
|
||||
|
@ -106,7 +169,28 @@ func (c *CodeCommit) CreateRepository(input *CreateRepositoryInput) (*CreateRepo
|
|||
|
||||
const opDeleteRepository = "DeleteRepository"
|
||||
|
||||
// DeleteRepositoryRequest generates a request for the DeleteRepository operation.
|
||||
// DeleteRepositoryRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the DeleteRepository operation. The "output" return
|
||||
// value can be used to capture response data after the request's "Send" method
|
||||
// is called.
|
||||
//
|
||||
// Creating a request object using this method should be used when you want to inject
|
||||
// custom logic into the request's lifecycle using a custom handler, or if you want to
|
||||
// access properties on the request object before or after sending the request. If
|
||||
// you just want the service response, call the DeleteRepository method directly
|
||||
// instead.
|
||||
//
|
||||
// Note: You must call the "Send" method on the returned request object in order
|
||||
// to execute the request.
|
||||
//
|
||||
// // Example sending a request using the DeleteRepositoryRequest method.
|
||||
// req, resp := client.DeleteRepositoryRequest(params)
|
||||
//
|
||||
// err := req.Send()
|
||||
// if err == nil { // resp is now filled
|
||||
// fmt.Println(resp)
|
||||
// }
|
||||
//
|
||||
func (c *CodeCommit) DeleteRepositoryRequest(input *DeleteRepositoryInput) (req *request.Request, output *DeleteRepositoryOutput) {
|
||||
op := &request.Operation{
|
||||
Name: opDeleteRepository,
|
||||
|
@ -138,7 +222,28 @@ func (c *CodeCommit) DeleteRepository(input *DeleteRepositoryInput) (*DeleteRepo
|
|||
|
||||
const opGetBranch = "GetBranch"
|
||||
|
||||
// GetBranchRequest generates a request for the GetBranch operation.
|
||||
// GetBranchRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the GetBranch operation. The "output" return
|
||||
// value can be used to capture response data after the request's "Send" method
|
||||
// is called.
|
||||
//
|
||||
// Creating a request object using this method should be used when you want to inject
|
||||
// custom logic into the request's lifecycle using a custom handler, or if you want to
|
||||
// access properties on the request object before or after sending the request. If
|
||||
// you just want the service response, call the GetBranch method directly
|
||||
// instead.
|
||||
//
|
||||
// Note: You must call the "Send" method on the returned request object in order
|
||||
// to execute the request.
|
||||
//
|
||||
// // 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)
|
||||
// }
|
||||
//
|
||||
func (c *CodeCommit) GetBranchRequest(input *GetBranchInput) (req *request.Request, output *GetBranchOutput) {
|
||||
op := &request.Operation{
|
||||
Name: opGetBranch,
|
||||
|
@ -166,7 +271,28 @@ func (c *CodeCommit) GetBranch(input *GetBranchInput) (*GetBranchOutput, error)
|
|||
|
||||
const opGetCommit = "GetCommit"
|
||||
|
||||
// GetCommitRequest generates a request for the GetCommit operation.
|
||||
// GetCommitRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the GetCommit operation. The "output" return
|
||||
// value can be used to capture response data after the request's "Send" method
|
||||
// is called.
|
||||
//
|
||||
// Creating a request object using this method should be used when you want to inject
|
||||
// custom logic into the request's lifecycle using a custom handler, or if you want to
|
||||
// access properties on the request object before or after sending the request. If
|
||||
// you just want the service response, call the GetCommit method directly
|
||||
// instead.
|
||||
//
|
||||
// Note: You must call the "Send" method on the returned request object in order
|
||||
// to execute the request.
|
||||
//
|
||||
// // Example sending a request using the GetCommitRequest method.
|
||||
// req, resp := client.GetCommitRequest(params)
|
||||
//
|
||||
// err := req.Send()
|
||||
// if err == nil { // resp is now filled
|
||||
// fmt.Println(resp)
|
||||
// }
|
||||
//
|
||||
func (c *CodeCommit) GetCommitRequest(input *GetCommitInput) (req *request.Request, output *GetCommitOutput) {
|
||||
op := &request.Operation{
|
||||
Name: opGetCommit,
|
||||
|
@ -194,7 +320,28 @@ func (c *CodeCommit) GetCommit(input *GetCommitInput) (*GetCommitOutput, error)
|
|||
|
||||
const opGetRepository = "GetRepository"
|
||||
|
||||
// GetRepositoryRequest generates a request for the GetRepository operation.
|
||||
// GetRepositoryRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the GetRepository operation. The "output" return
|
||||
// value can be used to capture response data after the request's "Send" method
|
||||
// is called.
|
||||
//
|
||||
// Creating a request object using this method should be used when you want to inject
|
||||
// custom logic into the request's lifecycle using a custom handler, or if you want to
|
||||
// access properties on the request object before or after sending the request. If
|
||||
// you just want the service response, call the GetRepository method directly
|
||||
// instead.
|
||||
//
|
||||
// Note: You must call the "Send" method on the returned request object in order
|
||||
// to execute the request.
|
||||
//
|
||||
// // Example sending a request using the GetRepositoryRequest method.
|
||||
// req, resp := client.GetRepositoryRequest(params)
|
||||
//
|
||||
// err := req.Send()
|
||||
// if err == nil { // resp is now filled
|
||||
// fmt.Println(resp)
|
||||
// }
|
||||
//
|
||||
func (c *CodeCommit) GetRepositoryRequest(input *GetRepositoryInput) (req *request.Request, output *GetRepositoryOutput) {
|
||||
op := &request.Operation{
|
||||
Name: opGetRepository,
|
||||
|
@ -227,7 +374,28 @@ func (c *CodeCommit) GetRepository(input *GetRepositoryInput) (*GetRepositoryOut
|
|||
|
||||
const opGetRepositoryTriggers = "GetRepositoryTriggers"
|
||||
|
||||
// GetRepositoryTriggersRequest generates a request for the GetRepositoryTriggers operation.
|
||||
// GetRepositoryTriggersRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the GetRepositoryTriggers operation. The "output" return
|
||||
// value can be used to capture response data after the request's "Send" method
|
||||
// is called.
|
||||
//
|
||||
// Creating a request object using this method should be used when you want to inject
|
||||
// custom logic into the request's lifecycle using a custom handler, or if you want to
|
||||
// access properties on the request object before or after sending the request. If
|
||||
// you just want the service response, call the GetRepositoryTriggers method directly
|
||||
// instead.
|
||||
//
|
||||
// Note: You must call the "Send" method on the returned request object in order
|
||||
// to execute the request.
|
||||
//
|
||||
// // Example sending a request using the GetRepositoryTriggersRequest method.
|
||||
// req, resp := client.GetRepositoryTriggersRequest(params)
|
||||
//
|
||||
// err := req.Send()
|
||||
// if err == nil { // resp is now filled
|
||||
// fmt.Println(resp)
|
||||
// }
|
||||
//
|
||||
func (c *CodeCommit) GetRepositoryTriggersRequest(input *GetRepositoryTriggersInput) (req *request.Request, output *GetRepositoryTriggersOutput) {
|
||||
op := &request.Operation{
|
||||
Name: opGetRepositoryTriggers,
|
||||
|
@ -254,7 +422,28 @@ func (c *CodeCommit) GetRepositoryTriggers(input *GetRepositoryTriggersInput) (*
|
|||
|
||||
const opListBranches = "ListBranches"
|
||||
|
||||
// ListBranchesRequest generates a request for the ListBranches operation.
|
||||
// ListBranchesRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the ListBranches operation. The "output" return
|
||||
// value can be used to capture response data after the request's "Send" method
|
||||
// is called.
|
||||
//
|
||||
// Creating a request object using this method should be used when you want to inject
|
||||
// custom logic into the request's lifecycle using a custom handler, or if you want to
|
||||
// access properties on the request object before or after sending the request. If
|
||||
// you just want the service response, call the ListBranches method directly
|
||||
// instead.
|
||||
//
|
||||
// Note: You must call the "Send" method on the returned request object in order
|
||||
// to execute the request.
|
||||
//
|
||||
// // 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)
|
||||
// }
|
||||
//
|
||||
func (c *CodeCommit) ListBranchesRequest(input *ListBranchesInput) (req *request.Request, output *ListBranchesOutput) {
|
||||
op := &request.Operation{
|
||||
Name: opListBranches,
|
||||
|
@ -285,6 +474,23 @@ func (c *CodeCommit) ListBranches(input *ListBranchesInput) (*ListBranchesOutput
|
|||
return out, err
|
||||
}
|
||||
|
||||
// ListBranchesPages iterates over the pages of a ListBranches operation,
|
||||
// calling the "fn" function with the response data for each page. To stop
|
||||
// iterating, return false from the fn function.
|
||||
//
|
||||
// See ListBranches 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 ListBranches operation.
|
||||
// pageNum := 0
|
||||
// err := client.ListBranchesPages(params,
|
||||
// func(page *ListBranchesOutput, lastPage bool) bool {
|
||||
// pageNum++
|
||||
// fmt.Println(page)
|
||||
// return pageNum <= 3
|
||||
// })
|
||||
//
|
||||
func (c *CodeCommit) ListBranchesPages(input *ListBranchesInput, fn func(p *ListBranchesOutput, lastPage bool) (shouldContinue bool)) error {
|
||||
page, _ := c.ListBranchesRequest(input)
|
||||
page.Handlers.Build.PushBack(request.MakeAddToUserAgentFreeFormHandler("Paginator"))
|
||||
|
@ -295,7 +501,28 @@ func (c *CodeCommit) ListBranchesPages(input *ListBranchesInput, fn func(p *List
|
|||
|
||||
const opListRepositories = "ListRepositories"
|
||||
|
||||
// ListRepositoriesRequest generates a request for the ListRepositories operation.
|
||||
// ListRepositoriesRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the ListRepositories operation. The "output" return
|
||||
// value can be used to capture response data after the request's "Send" method
|
||||
// is called.
|
||||
//
|
||||
// Creating a request object using this method should be used when you want to inject
|
||||
// custom logic into the request's lifecycle using a custom handler, or if you want to
|
||||
// access properties on the request object before or after sending the request. If
|
||||
// you just want the service response, call the ListRepositories method directly
|
||||
// instead.
|
||||
//
|
||||
// Note: You must call the "Send" method on the returned request object in order
|
||||
// to execute the request.
|
||||
//
|
||||
// // Example sending a request using the ListRepositoriesRequest method.
|
||||
// req, resp := client.ListRepositoriesRequest(params)
|
||||
//
|
||||
// err := req.Send()
|
||||
// if err == nil { // resp is now filled
|
||||
// fmt.Println(resp)
|
||||
// }
|
||||
//
|
||||
func (c *CodeCommit) ListRepositoriesRequest(input *ListRepositoriesInput) (req *request.Request, output *ListRepositoriesOutput) {
|
||||
op := &request.Operation{
|
||||
Name: opListRepositories,
|
||||
|
@ -326,6 +553,23 @@ func (c *CodeCommit) ListRepositories(input *ListRepositoriesInput) (*ListReposi
|
|||
return out, err
|
||||
}
|
||||
|
||||
// ListRepositoriesPages iterates over the pages of a ListRepositories operation,
|
||||
// calling the "fn" function with the response data for each page. To stop
|
||||
// iterating, return false from the fn function.
|
||||
//
|
||||
// See ListRepositories 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 ListRepositories operation.
|
||||
// pageNum := 0
|
||||
// err := client.ListRepositoriesPages(params,
|
||||
// func(page *ListRepositoriesOutput, lastPage bool) bool {
|
||||
// pageNum++
|
||||
// fmt.Println(page)
|
||||
// return pageNum <= 3
|
||||
// })
|
||||
//
|
||||
func (c *CodeCommit) ListRepositoriesPages(input *ListRepositoriesInput, fn func(p *ListRepositoriesOutput, lastPage bool) (shouldContinue bool)) error {
|
||||
page, _ := c.ListRepositoriesRequest(input)
|
||||
page.Handlers.Build.PushBack(request.MakeAddToUserAgentFreeFormHandler("Paginator"))
|
||||
|
@ -336,7 +580,28 @@ func (c *CodeCommit) ListRepositoriesPages(input *ListRepositoriesInput, fn func
|
|||
|
||||
const opPutRepositoryTriggers = "PutRepositoryTriggers"
|
||||
|
||||
// PutRepositoryTriggersRequest generates a request for the PutRepositoryTriggers operation.
|
||||
// PutRepositoryTriggersRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the PutRepositoryTriggers operation. The "output" return
|
||||
// value can be used to capture response data after the request's "Send" method
|
||||
// is called.
|
||||
//
|
||||
// Creating a request object using this method should be used when you want to inject
|
||||
// custom logic into the request's lifecycle using a custom handler, or if you want to
|
||||
// access properties on the request object before or after sending the request. If
|
||||
// you just want the service response, call the PutRepositoryTriggers method directly
|
||||
// instead.
|
||||
//
|
||||
// Note: You must call the "Send" method on the returned request object in order
|
||||
// to execute the request.
|
||||
//
|
||||
// // Example sending a request using the PutRepositoryTriggersRequest method.
|
||||
// req, resp := client.PutRepositoryTriggersRequest(params)
|
||||
//
|
||||
// err := req.Send()
|
||||
// if err == nil { // resp is now filled
|
||||
// fmt.Println(resp)
|
||||
// }
|
||||
//
|
||||
func (c *CodeCommit) PutRepositoryTriggersRequest(input *PutRepositoryTriggersInput) (req *request.Request, output *PutRepositoryTriggersOutput) {
|
||||
op := &request.Operation{
|
||||
Name: opPutRepositoryTriggers,
|
||||
|
@ -364,7 +629,28 @@ func (c *CodeCommit) PutRepositoryTriggers(input *PutRepositoryTriggersInput) (*
|
|||
|
||||
const opTestRepositoryTriggers = "TestRepositoryTriggers"
|
||||
|
||||
// TestRepositoryTriggersRequest generates a request for the TestRepositoryTriggers operation.
|
||||
// TestRepositoryTriggersRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the TestRepositoryTriggers operation. The "output" return
|
||||
// value can be used to capture response data after the request's "Send" method
|
||||
// is called.
|
||||
//
|
||||
// Creating a request object using this method should be used when you want to inject
|
||||
// custom logic into the request's lifecycle using a custom handler, or if you want to
|
||||
// access properties on the request object before or after sending the request. If
|
||||
// you just want the service response, call the TestRepositoryTriggers method directly
|
||||
// instead.
|
||||
//
|
||||
// Note: You must call the "Send" method on the returned request object in order
|
||||
// to execute the request.
|
||||
//
|
||||
// // Example sending a request using the TestRepositoryTriggersRequest method.
|
||||
// req, resp := client.TestRepositoryTriggersRequest(params)
|
||||
//
|
||||
// err := req.Send()
|
||||
// if err == nil { // resp is now filled
|
||||
// fmt.Println(resp)
|
||||
// }
|
||||
//
|
||||
func (c *CodeCommit) TestRepositoryTriggersRequest(input *TestRepositoryTriggersInput) (req *request.Request, output *TestRepositoryTriggersOutput) {
|
||||
op := &request.Operation{
|
||||
Name: opTestRepositoryTriggers,
|
||||
|
@ -394,7 +680,28 @@ func (c *CodeCommit) TestRepositoryTriggers(input *TestRepositoryTriggersInput)
|
|||
|
||||
const opUpdateDefaultBranch = "UpdateDefaultBranch"
|
||||
|
||||
// UpdateDefaultBranchRequest generates a request for the UpdateDefaultBranch operation.
|
||||
// UpdateDefaultBranchRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the UpdateDefaultBranch operation. The "output" return
|
||||
// value can be used to capture response data after the request's "Send" method
|
||||
// is called.
|
||||
//
|
||||
// Creating a request object using this method should be used when you want to inject
|
||||
// custom logic into the request's lifecycle using a custom handler, or if you want to
|
||||
// access properties on the request object before or after sending the request. If
|
||||
// you just want the service response, call the UpdateDefaultBranch method directly
|
||||
// instead.
|
||||
//
|
||||
// Note: You must call the "Send" method on the returned request object in order
|
||||
// to execute the request.
|
||||
//
|
||||
// // Example sending a request using the UpdateDefaultBranchRequest method.
|
||||
// req, resp := client.UpdateDefaultBranchRequest(params)
|
||||
//
|
||||
// err := req.Send()
|
||||
// if err == nil { // resp is now filled
|
||||
// fmt.Println(resp)
|
||||
// }
|
||||
//
|
||||
func (c *CodeCommit) UpdateDefaultBranchRequest(input *UpdateDefaultBranchInput) (req *request.Request, output *UpdateDefaultBranchOutput) {
|
||||
op := &request.Operation{
|
||||
Name: opUpdateDefaultBranch,
|
||||
|
@ -427,7 +734,28 @@ func (c *CodeCommit) UpdateDefaultBranch(input *UpdateDefaultBranchInput) (*Upda
|
|||
|
||||
const opUpdateRepositoryDescription = "UpdateRepositoryDescription"
|
||||
|
||||
// UpdateRepositoryDescriptionRequest generates a request for the UpdateRepositoryDescription operation.
|
||||
// UpdateRepositoryDescriptionRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the UpdateRepositoryDescription operation. The "output" return
|
||||
// value can be used to capture response data after the request's "Send" method
|
||||
// is called.
|
||||
//
|
||||
// Creating a request object using this method should be used when you want to inject
|
||||
// custom logic into the request's lifecycle using a custom handler, or if you want to
|
||||
// access properties on the request object before or after sending the request. If
|
||||
// you just want the service response, call the UpdateRepositoryDescription method directly
|
||||
// instead.
|
||||
//
|
||||
// Note: You must call the "Send" method on the returned request object in order
|
||||
// to execute the request.
|
||||
//
|
||||
// // Example sending a request using the UpdateRepositoryDescriptionRequest method.
|
||||
// req, resp := client.UpdateRepositoryDescriptionRequest(params)
|
||||
//
|
||||
// err := req.Send()
|
||||
// if err == nil { // resp is now filled
|
||||
// fmt.Println(resp)
|
||||
// }
|
||||
//
|
||||
func (c *CodeCommit) UpdateRepositoryDescriptionRequest(input *UpdateRepositoryDescriptionInput) (req *request.Request, output *UpdateRepositoryDescriptionOutput) {
|
||||
op := &request.Operation{
|
||||
Name: opUpdateRepositoryDescription,
|
||||
|
@ -462,7 +790,28 @@ func (c *CodeCommit) UpdateRepositoryDescription(input *UpdateRepositoryDescript
|
|||
|
||||
const opUpdateRepositoryName = "UpdateRepositoryName"
|
||||
|
||||
// UpdateRepositoryNameRequest generates a request for the UpdateRepositoryName operation.
|
||||
// UpdateRepositoryNameRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the UpdateRepositoryName operation. The "output" return
|
||||
// value can be used to capture response data after the request's "Send" method
|
||||
// is called.
|
||||
//
|
||||
// Creating a request object using this method should be used when you want to inject
|
||||
// custom logic into the request's lifecycle using a custom handler, or if you want to
|
||||
// access properties on the request object before or after sending the request. If
|
||||
// you just want the service response, call the UpdateRepositoryName method directly
|
||||
// instead.
|
||||
//
|
||||
// Note: You must call the "Send" method on the returned request object in order
|
||||
// to execute the request.
|
||||
//
|
||||
// // Example sending a request using the UpdateRepositoryNameRequest method.
|
||||
// req, resp := client.UpdateRepositoryNameRequest(params)
|
||||
//
|
||||
// err := req.Send()
|
||||
// if err == nil { // resp is now filled
|
||||
// fmt.Println(resp)
|
||||
// }
|
||||
//
|
||||
func (c *CodeCommit) UpdateRepositoryNameRequest(input *UpdateRepositoryNameInput) (req *request.Request, output *UpdateRepositoryNameOutput) {
|
||||
op := &request.Operation{
|
||||
Name: opUpdateRepositoryName,
|
||||
|
|
|
@ -7,8 +7,8 @@ import (
|
|||
"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/jsonrpc"
|
||||
"github.com/aws/aws-sdk-go/private/signer/v4"
|
||||
)
|
||||
|
||||
// This is the AWS CodeCommit API Reference. This reference provides descriptions
|
||||
|
@ -86,7 +86,7 @@ func newClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegio
|
|||
}
|
||||
|
||||
// Handlers
|
||||
svc.Handlers.Sign.PushBack(v4.Sign)
|
||||
svc.Handlers.Sign.PushBackNamed(v4.SignRequestHandler)
|
||||
svc.Handlers.Build.PushBackNamed(jsonrpc.BuildHandler)
|
||||
svc.Handlers.Unmarshal.PushBackNamed(jsonrpc.UnmarshalHandler)
|
||||
svc.Handlers.UnmarshalMeta.PushBackNamed(jsonrpc.UnmarshalMetaHandler)
|
||||
|
|
File diff suppressed because it is too large
Load Diff
|
@ -7,8 +7,8 @@ import (
|
|||
"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/jsonrpc"
|
||||
"github.com/aws/aws-sdk-go/private/signer/v4"
|
||||
)
|
||||
|
||||
// Overview This reference guide provides descriptions of the AWS CodeDeploy
|
||||
|
@ -107,7 +107,7 @@ func newClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegio
|
|||
}
|
||||
|
||||
// Handlers
|
||||
svc.Handlers.Sign.PushBack(v4.Sign)
|
||||
svc.Handlers.Sign.PushBackNamed(v4.SignRequestHandler)
|
||||
svc.Handlers.Build.PushBackNamed(jsonrpc.BuildHandler)
|
||||
svc.Handlers.Unmarshal.PushBackNamed(jsonrpc.UnmarshalHandler)
|
||||
svc.Handlers.UnmarshalMeta.PushBackNamed(jsonrpc.UnmarshalMetaHandler)
|
||||
|
|
File diff suppressed because it is too large
Load Diff
|
@ -7,8 +7,8 @@ import (
|
|||
"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/jsonrpc"
|
||||
"github.com/aws/aws-sdk-go/private/signer/v4"
|
||||
)
|
||||
|
||||
// This is the AWS Directory Service API Reference. This guide provides detailed
|
||||
|
@ -62,7 +62,7 @@ func newClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegio
|
|||
}
|
||||
|
||||
// Handlers
|
||||
svc.Handlers.Sign.PushBack(v4.Sign)
|
||||
svc.Handlers.Sign.PushBackNamed(v4.SignRequestHandler)
|
||||
svc.Handlers.Build.PushBackNamed(jsonrpc.BuildHandler)
|
||||
svc.Handlers.Unmarshal.PushBackNamed(jsonrpc.UnmarshalHandler)
|
||||
svc.Handlers.UnmarshalMeta.PushBackNamed(jsonrpc.UnmarshalMetaHandler)
|
||||
|
|
File diff suppressed because it is too large
Load Diff
|
@ -7,8 +7,8 @@ import (
|
|||
"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/jsonrpc"
|
||||
"github.com/aws/aws-sdk-go/private/signer/v4"
|
||||
)
|
||||
|
||||
// This is the Amazon DynamoDB API Reference. This guide provides descriptions
|
||||
|
@ -81,11 +81,11 @@ import (
|
|||
// BatchGetItem has a size limit of 16 MB and returns a maximum of 100 items.
|
||||
// Both eventually consistent and strongly consistent reads can be used.
|
||||
//
|
||||
// Query - Returns one or more items from a table or a secondary index. You
|
||||
// must provide a specific value for the partition key. You can narrow the scope
|
||||
// of the query using comparison operators against a sort key value, or on the
|
||||
// index key. Query supports either eventual or strong consistency. A single
|
||||
// response has a size limit of 1 MB.
|
||||
// Query - Returns one or more items from a table or a secondary index.
|
||||
// You must provide a specific value for the partition key. You can narrow the
|
||||
// scope of the query using comparison operators against a sort key value, or
|
||||
// on the index key. Query supports either eventual or strong consistency. A
|
||||
// single response has a size limit of 1 MB.
|
||||
//
|
||||
// Scan - Reads every item in a table; the result set is eventually consistent.
|
||||
// You can limit the number of items returned by filtering the data attributes,
|
||||
|
@ -174,7 +174,7 @@ func newClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegio
|
|||
}
|
||||
|
||||
// Handlers
|
||||
svc.Handlers.Sign.PushBack(v4.Sign)
|
||||
svc.Handlers.Sign.PushBackNamed(v4.SignRequestHandler)
|
||||
svc.Handlers.Build.PushBackNamed(jsonrpc.BuildHandler)
|
||||
svc.Handlers.Unmarshal.PushBackNamed(jsonrpc.UnmarshalHandler)
|
||||
svc.Handlers.UnmarshalMeta.PushBackNamed(jsonrpc.UnmarshalMetaHandler)
|
||||
|
|
File diff suppressed because it is too large
Load Diff
|
@ -7,8 +7,8 @@ import (
|
|||
"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/ec2query"
|
||||
"github.com/aws/aws-sdk-go/private/signer/v4"
|
||||
)
|
||||
|
||||
// Amazon Elastic Compute Cloud (Amazon EC2) provides resizable computing capacity
|
||||
|
@ -54,14 +54,14 @@ func newClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegio
|
|||
ServiceName: ServiceName,
|
||||
SigningRegion: signingRegion,
|
||||
Endpoint: endpoint,
|
||||
APIVersion: "2015-10-01",
|
||||
APIVersion: "2016-04-01",
|
||||
},
|
||||
handlers,
|
||||
),
|
||||
}
|
||||
|
||||
// Handlers
|
||||
svc.Handlers.Sign.PushBack(v4.Sign)
|
||||
svc.Handlers.Sign.PushBackNamed(v4.SignRequestHandler)
|
||||
svc.Handlers.Build.PushBackNamed(ec2query.BuildHandler)
|
||||
svc.Handlers.Unmarshal.PushBackNamed(ec2query.UnmarshalHandler)
|
||||
svc.Handlers.UnmarshalMeta.PushBackNamed(ec2query.UnmarshalMetaHandler)
|
||||
|
|
|
@ -784,6 +784,35 @@ func (c *EC2) WaitUntilVpcAvailable(input *DescribeVpcsInput) error {
|
|||
return w.Wait()
|
||||
}
|
||||
|
||||
func (c *EC2) WaitUntilVpcExists(input *DescribeVpcsInput) error {
|
||||
waiterCfg := waiter.Config{
|
||||
Operation: "DescribeVpcs",
|
||||
Delay: 1,
|
||||
MaxAttempts: 5,
|
||||
Acceptors: []waiter.WaitAcceptor{
|
||||
{
|
||||
State: "success",
|
||||
Matcher: "status",
|
||||
Argument: "",
|
||||
Expected: 200,
|
||||
},
|
||||
{
|
||||
State: "retry",
|
||||
Matcher: "error",
|
||||
Argument: "",
|
||||
Expected: "InvalidVpcID.NotFound",
|
||||
},
|
||||
},
|
||||
}
|
||||
|
||||
w := waiter.Waiter{
|
||||
Client: c,
|
||||
Input: input,
|
||||
Config: waiterCfg,
|
||||
}
|
||||
return w.Wait()
|
||||
}
|
||||
|
||||
func (c *EC2) WaitUntilVpcPeeringConnectionExists(input *DescribeVpcPeeringConnectionsInput) error {
|
||||
waiterCfg := waiter.Config{
|
||||
Operation: "DescribeVpcPeeringConnections",
|
||||
|
|
|
@ -12,7 +12,28 @@ import (
|
|||
|
||||
const opBatchCheckLayerAvailability = "BatchCheckLayerAvailability"
|
||||
|
||||
// BatchCheckLayerAvailabilityRequest generates a request for the BatchCheckLayerAvailability operation.
|
||||
// BatchCheckLayerAvailabilityRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the BatchCheckLayerAvailability operation. The "output" return
|
||||
// value can be used to capture response data after the request's "Send" method
|
||||
// is called.
|
||||
//
|
||||
// Creating a request object using this method should be used when you want to inject
|
||||
// custom logic into the request's lifecycle using a custom handler, or if you want to
|
||||
// access properties on the request object before or after sending the request. If
|
||||
// you just want the service response, call the BatchCheckLayerAvailability method directly
|
||||
// instead.
|
||||
//
|
||||
// Note: You must call the "Send" method on the returned request object in order
|
||||
// to execute the request.
|
||||
//
|
||||
// // Example sending a request using the BatchCheckLayerAvailabilityRequest method.
|
||||
// req, resp := client.BatchCheckLayerAvailabilityRequest(params)
|
||||
//
|
||||
// err := req.Send()
|
||||
// if err == nil { // resp is now filled
|
||||
// fmt.Println(resp)
|
||||
// }
|
||||
//
|
||||
func (c *ECR) BatchCheckLayerAvailabilityRequest(input *BatchCheckLayerAvailabilityInput) (req *request.Request, output *BatchCheckLayerAvailabilityOutput) {
|
||||
op := &request.Operation{
|
||||
Name: opBatchCheckLayerAvailability,
|
||||
|
@ -43,7 +64,28 @@ func (c *ECR) BatchCheckLayerAvailability(input *BatchCheckLayerAvailabilityInpu
|
|||
|
||||
const opBatchDeleteImage = "BatchDeleteImage"
|
||||
|
||||
// BatchDeleteImageRequest generates a request for the BatchDeleteImage operation.
|
||||
// BatchDeleteImageRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the BatchDeleteImage operation. The "output" return
|
||||
// value can be used to capture response data after the request's "Send" method
|
||||
// is called.
|
||||
//
|
||||
// Creating a request object using this method should be used when you want to inject
|
||||
// custom logic into the request's lifecycle using a custom handler, or if you want to
|
||||
// access properties on the request object before or after sending the request. If
|
||||
// you just want the service response, call the BatchDeleteImage method directly
|
||||
// instead.
|
||||
//
|
||||
// Note: You must call the "Send" method on the returned request object in order
|
||||
// to execute the request.
|
||||
//
|
||||
// // Example sending a request using the BatchDeleteImageRequest method.
|
||||
// req, resp := client.BatchDeleteImageRequest(params)
|
||||
//
|
||||
// err := req.Send()
|
||||
// if err == nil { // resp is now filled
|
||||
// fmt.Println(resp)
|
||||
// }
|
||||
//
|
||||
func (c *ECR) BatchDeleteImageRequest(input *BatchDeleteImageInput) (req *request.Request, output *BatchDeleteImageOutput) {
|
||||
op := &request.Operation{
|
||||
Name: opBatchDeleteImage,
|
||||
|
@ -71,7 +113,28 @@ func (c *ECR) BatchDeleteImage(input *BatchDeleteImageInput) (*BatchDeleteImageO
|
|||
|
||||
const opBatchGetImage = "BatchGetImage"
|
||||
|
||||
// BatchGetImageRequest generates a request for the BatchGetImage operation.
|
||||
// BatchGetImageRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the BatchGetImage operation. The "output" return
|
||||
// value can be used to capture response data after the request's "Send" method
|
||||
// is called.
|
||||
//
|
||||
// Creating a request object using this method should be used when you want to inject
|
||||
// custom logic into the request's lifecycle using a custom handler, or if you want to
|
||||
// access properties on the request object before or after sending the request. If
|
||||
// you just want the service response, call the BatchGetImage method directly
|
||||
// instead.
|
||||
//
|
||||
// Note: You must call the "Send" method on the returned request object in order
|
||||
// to execute the request.
|
||||
//
|
||||
// // Example sending a request using the BatchGetImageRequest method.
|
||||
// req, resp := client.BatchGetImageRequest(params)
|
||||
//
|
||||
// err := req.Send()
|
||||
// if err == nil { // resp is now filled
|
||||
// fmt.Println(resp)
|
||||
// }
|
||||
//
|
||||
func (c *ECR) BatchGetImageRequest(input *BatchGetImageInput) (req *request.Request, output *BatchGetImageOutput) {
|
||||
op := &request.Operation{
|
||||
Name: opBatchGetImage,
|
||||
|
@ -99,7 +162,28 @@ func (c *ECR) BatchGetImage(input *BatchGetImageInput) (*BatchGetImageOutput, er
|
|||
|
||||
const opCompleteLayerUpload = "CompleteLayerUpload"
|
||||
|
||||
// CompleteLayerUploadRequest generates a request for the CompleteLayerUpload operation.
|
||||
// CompleteLayerUploadRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the CompleteLayerUpload operation. The "output" return
|
||||
// value can be used to capture response data after the request's "Send" method
|
||||
// is called.
|
||||
//
|
||||
// Creating a request object using this method should be used when you want to inject
|
||||
// custom logic into the request's lifecycle using a custom handler, or if you want to
|
||||
// access properties on the request object before or after sending the request. If
|
||||
// you just want the service response, call the CompleteLayerUpload method directly
|
||||
// instead.
|
||||
//
|
||||
// Note: You must call the "Send" method on the returned request object in order
|
||||
// to execute the request.
|
||||
//
|
||||
// // Example sending a request using the CompleteLayerUploadRequest method.
|
||||
// req, resp := client.CompleteLayerUploadRequest(params)
|
||||
//
|
||||
// err := req.Send()
|
||||
// if err == nil { // resp is now filled
|
||||
// fmt.Println(resp)
|
||||
// }
|
||||
//
|
||||
func (c *ECR) CompleteLayerUploadRequest(input *CompleteLayerUploadInput) (req *request.Request, output *CompleteLayerUploadOutput) {
|
||||
op := &request.Operation{
|
||||
Name: opCompleteLayerUpload,
|
||||
|
@ -131,7 +215,28 @@ func (c *ECR) CompleteLayerUpload(input *CompleteLayerUploadInput) (*CompleteLay
|
|||
|
||||
const opCreateRepository = "CreateRepository"
|
||||
|
||||
// CreateRepositoryRequest generates a request for the CreateRepository operation.
|
||||
// CreateRepositoryRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the CreateRepository operation. The "output" return
|
||||
// value can be used to capture response data after the request's "Send" method
|
||||
// is called.
|
||||
//
|
||||
// Creating a request object using this method should be used when you want to inject
|
||||
// custom logic into the request's lifecycle using a custom handler, or if you want to
|
||||
// access properties on the request object before or after sending the request. If
|
||||
// you just want the service response, call the CreateRepository method directly
|
||||
// instead.
|
||||
//
|
||||
// Note: You must call the "Send" method on the returned request object in order
|
||||
// to execute the request.
|
||||
//
|
||||
// // Example sending a request using the CreateRepositoryRequest method.
|
||||
// req, resp := client.CreateRepositoryRequest(params)
|
||||
//
|
||||
// err := req.Send()
|
||||
// if err == nil { // resp is now filled
|
||||
// fmt.Println(resp)
|
||||
// }
|
||||
//
|
||||
func (c *ECR) CreateRepositoryRequest(input *CreateRepositoryInput) (req *request.Request, output *CreateRepositoryOutput) {
|
||||
op := &request.Operation{
|
||||
Name: opCreateRepository,
|
||||
|
@ -158,7 +263,28 @@ func (c *ECR) CreateRepository(input *CreateRepositoryInput) (*CreateRepositoryO
|
|||
|
||||
const opDeleteRepository = "DeleteRepository"
|
||||
|
||||
// DeleteRepositoryRequest generates a request for the DeleteRepository operation.
|
||||
// DeleteRepositoryRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the DeleteRepository operation. The "output" return
|
||||
// value can be used to capture response data after the request's "Send" method
|
||||
// is called.
|
||||
//
|
||||
// Creating a request object using this method should be used when you want to inject
|
||||
// custom logic into the request's lifecycle using a custom handler, or if you want to
|
||||
// access properties on the request object before or after sending the request. If
|
||||
// you just want the service response, call the DeleteRepository method directly
|
||||
// instead.
|
||||
//
|
||||
// Note: You must call the "Send" method on the returned request object in order
|
||||
// to execute the request.
|
||||
//
|
||||
// // Example sending a request using the DeleteRepositoryRequest method.
|
||||
// req, resp := client.DeleteRepositoryRequest(params)
|
||||
//
|
||||
// err := req.Send()
|
||||
// if err == nil { // resp is now filled
|
||||
// fmt.Println(resp)
|
||||
// }
|
||||
//
|
||||
func (c *ECR) DeleteRepositoryRequest(input *DeleteRepositoryInput) (req *request.Request, output *DeleteRepositoryOutput) {
|
||||
op := &request.Operation{
|
||||
Name: opDeleteRepository,
|
||||
|
@ -186,7 +312,28 @@ func (c *ECR) DeleteRepository(input *DeleteRepositoryInput) (*DeleteRepositoryO
|
|||
|
||||
const opDeleteRepositoryPolicy = "DeleteRepositoryPolicy"
|
||||
|
||||
// DeleteRepositoryPolicyRequest generates a request for the DeleteRepositoryPolicy operation.
|
||||
// DeleteRepositoryPolicyRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the DeleteRepositoryPolicy operation. The "output" return
|
||||
// value can be used to capture response data after the request's "Send" method
|
||||
// is called.
|
||||
//
|
||||
// Creating a request object using this method should be used when you want to inject
|
||||
// custom logic into the request's lifecycle using a custom handler, or if you want to
|
||||
// access properties on the request object before or after sending the request. If
|
||||
// you just want the service response, call the DeleteRepositoryPolicy method directly
|
||||
// instead.
|
||||
//
|
||||
// Note: You must call the "Send" method on the returned request object in order
|
||||
// to execute the request.
|
||||
//
|
||||
// // Example sending a request using the DeleteRepositoryPolicyRequest method.
|
||||
// req, resp := client.DeleteRepositoryPolicyRequest(params)
|
||||
//
|
||||
// err := req.Send()
|
||||
// if err == nil { // resp is now filled
|
||||
// fmt.Println(resp)
|
||||
// }
|
||||
//
|
||||
func (c *ECR) DeleteRepositoryPolicyRequest(input *DeleteRepositoryPolicyInput) (req *request.Request, output *DeleteRepositoryPolicyOutput) {
|
||||
op := &request.Operation{
|
||||
Name: opDeleteRepositoryPolicy,
|
||||
|
@ -213,7 +360,28 @@ func (c *ECR) DeleteRepositoryPolicy(input *DeleteRepositoryPolicyInput) (*Delet
|
|||
|
||||
const opDescribeRepositories = "DescribeRepositories"
|
||||
|
||||
// DescribeRepositoriesRequest generates a request for the DescribeRepositories operation.
|
||||
// DescribeRepositoriesRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the DescribeRepositories operation. The "output" return
|
||||
// value can be used to capture response data after the request's "Send" method
|
||||
// is called.
|
||||
//
|
||||
// Creating a request object using this method should be used when you want to inject
|
||||
// custom logic into the request's lifecycle using a custom handler, or if you want to
|
||||
// access properties on the request object before or after sending the request. If
|
||||
// you just want the service response, call the DescribeRepositories method directly
|
||||
// instead.
|
||||
//
|
||||
// Note: You must call the "Send" method on the returned request object in order
|
||||
// to execute the request.
|
||||
//
|
||||
// // Example sending a request using the DescribeRepositoriesRequest method.
|
||||
// req, resp := client.DescribeRepositoriesRequest(params)
|
||||
//
|
||||
// err := req.Send()
|
||||
// if err == nil { // resp is now filled
|
||||
// fmt.Println(resp)
|
||||
// }
|
||||
//
|
||||
func (c *ECR) DescribeRepositoriesRequest(input *DescribeRepositoriesInput) (req *request.Request, output *DescribeRepositoriesOutput) {
|
||||
op := &request.Operation{
|
||||
Name: opDescribeRepositories,
|
||||
|
@ -240,7 +408,28 @@ func (c *ECR) DescribeRepositories(input *DescribeRepositoriesInput) (*DescribeR
|
|||
|
||||
const opGetAuthorizationToken = "GetAuthorizationToken"
|
||||
|
||||
// GetAuthorizationTokenRequest generates a request for the GetAuthorizationToken operation.
|
||||
// GetAuthorizationTokenRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the GetAuthorizationToken operation. The "output" return
|
||||
// value can be used to capture response data after the request's "Send" method
|
||||
// is called.
|
||||
//
|
||||
// Creating a request object using this method should be used when you want to inject
|
||||
// custom logic into the request's lifecycle using a custom handler, or if you want to
|
||||
// access properties on the request object before or after sending the request. If
|
||||
// you just want the service response, call the GetAuthorizationToken method directly
|
||||
// instead.
|
||||
//
|
||||
// Note: You must call the "Send" method on the returned request object in order
|
||||
// to execute the request.
|
||||
//
|
||||
// // Example sending a request using the GetAuthorizationTokenRequest method.
|
||||
// req, resp := client.GetAuthorizationTokenRequest(params)
|
||||
//
|
||||
// err := req.Send()
|
||||
// if err == nil { // resp is now filled
|
||||
// fmt.Println(resp)
|
||||
// }
|
||||
//
|
||||
func (c *ECR) GetAuthorizationTokenRequest(input *GetAuthorizationTokenInput) (req *request.Request, output *GetAuthorizationTokenOutput) {
|
||||
op := &request.Operation{
|
||||
Name: opGetAuthorizationToken,
|
||||
|
@ -274,7 +463,28 @@ func (c *ECR) GetAuthorizationToken(input *GetAuthorizationTokenInput) (*GetAuth
|
|||
|
||||
const opGetDownloadUrlForLayer = "GetDownloadUrlForLayer"
|
||||
|
||||
// GetDownloadUrlForLayerRequest generates a request for the GetDownloadUrlForLayer operation.
|
||||
// GetDownloadUrlForLayerRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the GetDownloadUrlForLayer operation. The "output" return
|
||||
// value can be used to capture response data after the request's "Send" method
|
||||
// is called.
|
||||
//
|
||||
// Creating a request object using this method should be used when you want to inject
|
||||
// custom logic into the request's lifecycle using a custom handler, or if you want to
|
||||
// access properties on the request object before or after sending the request. If
|
||||
// you just want the service response, call the GetDownloadUrlForLayer method directly
|
||||
// instead.
|
||||
//
|
||||
// Note: You must call the "Send" method on the returned request object in order
|
||||
// to execute the request.
|
||||
//
|
||||
// // Example sending a request using the GetDownloadUrlForLayerRequest method.
|
||||
// req, resp := client.GetDownloadUrlForLayerRequest(params)
|
||||
//
|
||||
// err := req.Send()
|
||||
// if err == nil { // resp is now filled
|
||||
// fmt.Println(resp)
|
||||
// }
|
||||
//
|
||||
func (c *ECR) GetDownloadUrlForLayerRequest(input *GetDownloadUrlForLayerInput) (req *request.Request, output *GetDownloadUrlForLayerOutput) {
|
||||
op := &request.Operation{
|
||||
Name: opGetDownloadUrlForLayer,
|
||||
|
@ -305,7 +515,28 @@ func (c *ECR) GetDownloadUrlForLayer(input *GetDownloadUrlForLayerInput) (*GetDo
|
|||
|
||||
const opGetRepositoryPolicy = "GetRepositoryPolicy"
|
||||
|
||||
// GetRepositoryPolicyRequest generates a request for the GetRepositoryPolicy operation.
|
||||
// GetRepositoryPolicyRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the GetRepositoryPolicy operation. The "output" return
|
||||
// value can be used to capture response data after the request's "Send" method
|
||||
// is called.
|
||||
//
|
||||
// Creating a request object using this method should be used when you want to inject
|
||||
// custom logic into the request's lifecycle using a custom handler, or if you want to
|
||||
// access properties on the request object before or after sending the request. If
|
||||
// you just want the service response, call the GetRepositoryPolicy method directly
|
||||
// instead.
|
||||
//
|
||||
// Note: You must call the "Send" method on the returned request object in order
|
||||
// to execute the request.
|
||||
//
|
||||
// // Example sending a request using the GetRepositoryPolicyRequest method.
|
||||
// req, resp := client.GetRepositoryPolicyRequest(params)
|
||||
//
|
||||
// err := req.Send()
|
||||
// if err == nil { // resp is now filled
|
||||
// fmt.Println(resp)
|
||||
// }
|
||||
//
|
||||
func (c *ECR) GetRepositoryPolicyRequest(input *GetRepositoryPolicyInput) (req *request.Request, output *GetRepositoryPolicyOutput) {
|
||||
op := &request.Operation{
|
||||
Name: opGetRepositoryPolicy,
|
||||
|
@ -332,7 +563,28 @@ func (c *ECR) GetRepositoryPolicy(input *GetRepositoryPolicyInput) (*GetReposito
|
|||
|
||||
const opInitiateLayerUpload = "InitiateLayerUpload"
|
||||
|
||||
// InitiateLayerUploadRequest generates a request for the InitiateLayerUpload operation.
|
||||
// InitiateLayerUploadRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the InitiateLayerUpload operation. The "output" return
|
||||
// value can be used to capture response data after the request's "Send" method
|
||||
// is called.
|
||||
//
|
||||
// Creating a request object using this method should be used when you want to inject
|
||||
// custom logic into the request's lifecycle using a custom handler, or if you want to
|
||||
// access properties on the request object before or after sending the request. If
|
||||
// you just want the service response, call the InitiateLayerUpload method directly
|
||||
// instead.
|
||||
//
|
||||
// Note: You must call the "Send" method on the returned request object in order
|
||||
// to execute the request.
|
||||
//
|
||||
// // Example sending a request using the InitiateLayerUploadRequest method.
|
||||
// req, resp := client.InitiateLayerUploadRequest(params)
|
||||
//
|
||||
// err := req.Send()
|
||||
// if err == nil { // resp is now filled
|
||||
// fmt.Println(resp)
|
||||
// }
|
||||
//
|
||||
func (c *ECR) InitiateLayerUploadRequest(input *InitiateLayerUploadInput) (req *request.Request, output *InitiateLayerUploadOutput) {
|
||||
op := &request.Operation{
|
||||
Name: opInitiateLayerUpload,
|
||||
|
@ -362,7 +614,28 @@ func (c *ECR) InitiateLayerUpload(input *InitiateLayerUploadInput) (*InitiateLay
|
|||
|
||||
const opListImages = "ListImages"
|
||||
|
||||
// ListImagesRequest generates a request for the ListImages operation.
|
||||
// ListImagesRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the ListImages operation. The "output" return
|
||||
// value can be used to capture response data after the request's "Send" method
|
||||
// is called.
|
||||
//
|
||||
// Creating a request object using this method should be used when you want to inject
|
||||
// custom logic into the request's lifecycle using a custom handler, or if you want to
|
||||
// access properties on the request object before or after sending the request. If
|
||||
// you just want the service response, call the ListImages method directly
|
||||
// instead.
|
||||
//
|
||||
// Note: You must call the "Send" method on the returned request object in order
|
||||
// to execute the request.
|
||||
//
|
||||
// // Example sending a request using the ListImagesRequest method.
|
||||
// req, resp := client.ListImagesRequest(params)
|
||||
//
|
||||
// err := req.Send()
|
||||
// if err == nil { // resp is now filled
|
||||
// fmt.Println(resp)
|
||||
// }
|
||||
//
|
||||
func (c *ECR) ListImagesRequest(input *ListImagesInput) (req *request.Request, output *ListImagesOutput) {
|
||||
op := &request.Operation{
|
||||
Name: opListImages,
|
||||
|
@ -389,7 +662,28 @@ func (c *ECR) ListImages(input *ListImagesInput) (*ListImagesOutput, error) {
|
|||
|
||||
const opPutImage = "PutImage"
|
||||
|
||||
// PutImageRequest generates a request for the PutImage operation.
|
||||
// PutImageRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the PutImage operation. The "output" return
|
||||
// value can be used to capture response data after the request's "Send" method
|
||||
// is called.
|
||||
//
|
||||
// Creating a request object using this method should be used when you want to inject
|
||||
// custom logic into the request's lifecycle using a custom handler, or if you want to
|
||||
// access properties on the request object before or after sending the request. If
|
||||
// you just want the service response, call the PutImage method directly
|
||||
// instead.
|
||||
//
|
||||
// Note: You must call the "Send" method on the returned request object in order
|
||||
// to execute the request.
|
||||
//
|
||||
// // Example sending a request using the PutImageRequest method.
|
||||
// req, resp := client.PutImageRequest(params)
|
||||
//
|
||||
// err := req.Send()
|
||||
// if err == nil { // resp is now filled
|
||||
// fmt.Println(resp)
|
||||
// }
|
||||
//
|
||||
func (c *ECR) PutImageRequest(input *PutImageInput) (req *request.Request, output *PutImageOutput) {
|
||||
op := &request.Operation{
|
||||
Name: opPutImage,
|
||||
|
@ -419,7 +713,28 @@ func (c *ECR) PutImage(input *PutImageInput) (*PutImageOutput, error) {
|
|||
|
||||
const opSetRepositoryPolicy = "SetRepositoryPolicy"
|
||||
|
||||
// SetRepositoryPolicyRequest generates a request for the SetRepositoryPolicy operation.
|
||||
// SetRepositoryPolicyRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the SetRepositoryPolicy operation. The "output" return
|
||||
// value can be used to capture response data after the request's "Send" method
|
||||
// is called.
|
||||
//
|
||||
// Creating a request object using this method should be used when you want to inject
|
||||
// custom logic into the request's lifecycle using a custom handler, or if you want to
|
||||
// access properties on the request object before or after sending the request. If
|
||||
// you just want the service response, call the SetRepositoryPolicy method directly
|
||||
// instead.
|
||||
//
|
||||
// Note: You must call the "Send" method on the returned request object in order
|
||||
// to execute the request.
|
||||
//
|
||||
// // Example sending a request using the SetRepositoryPolicyRequest method.
|
||||
// req, resp := client.SetRepositoryPolicyRequest(params)
|
||||
//
|
||||
// err := req.Send()
|
||||
// if err == nil { // resp is now filled
|
||||
// fmt.Println(resp)
|
||||
// }
|
||||
//
|
||||
func (c *ECR) SetRepositoryPolicyRequest(input *SetRepositoryPolicyInput) (req *request.Request, output *SetRepositoryPolicyOutput) {
|
||||
op := &request.Operation{
|
||||
Name: opSetRepositoryPolicy,
|
||||
|
@ -446,7 +761,28 @@ func (c *ECR) SetRepositoryPolicy(input *SetRepositoryPolicyInput) (*SetReposito
|
|||
|
||||
const opUploadLayerPart = "UploadLayerPart"
|
||||
|
||||
// UploadLayerPartRequest generates a request for the UploadLayerPart operation.
|
||||
// UploadLayerPartRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the UploadLayerPart operation. The "output" return
|
||||
// value can be used to capture response data after the request's "Send" method
|
||||
// is called.
|
||||
//
|
||||
// Creating a request object using this method should be used when you want to inject
|
||||
// custom logic into the request's lifecycle using a custom handler, or if you want to
|
||||
// access properties on the request object before or after sending the request. If
|
||||
// you just want the service response, call the UploadLayerPart method directly
|
||||
// instead.
|
||||
//
|
||||
// Note: You must call the "Send" method on the returned request object in order
|
||||
// to execute the request.
|
||||
//
|
||||
// // Example sending a request using the UploadLayerPartRequest method.
|
||||
// req, resp := client.UploadLayerPartRequest(params)
|
||||
//
|
||||
// err := req.Send()
|
||||
// if err == nil { // resp is now filled
|
||||
// fmt.Println(resp)
|
||||
// }
|
||||
//
|
||||
func (c *ECR) UploadLayerPartRequest(input *UploadLayerPartInput) (req *request.Request, output *UploadLayerPartOutput) {
|
||||
op := &request.Operation{
|
||||
Name: opUploadLayerPart,
|
||||
|
|
|
@ -7,8 +7,8 @@ import (
|
|||
"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/jsonrpc"
|
||||
"github.com/aws/aws-sdk-go/private/signer/v4"
|
||||
)
|
||||
|
||||
// Amazon EC2 Container Registry (Amazon ECR) is a managed AWS Docker registry
|
||||
|
@ -65,7 +65,7 @@ func newClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegio
|
|||
}
|
||||
|
||||
// Handlers
|
||||
svc.Handlers.Sign.PushBack(v4.Sign)
|
||||
svc.Handlers.Sign.PushBackNamed(v4.SignRequestHandler)
|
||||
svc.Handlers.Build.PushBackNamed(jsonrpc.BuildHandler)
|
||||
svc.Handlers.Unmarshal.PushBackNamed(jsonrpc.UnmarshalHandler)
|
||||
svc.Handlers.UnmarshalMeta.PushBackNamed(jsonrpc.UnmarshalMetaHandler)
|
||||
|
|
File diff suppressed because it is too large
Load Diff
|
@ -7,8 +7,8 @@ import (
|
|||
"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/jsonrpc"
|
||||
"github.com/aws/aws-sdk-go/private/signer/v4"
|
||||
)
|
||||
|
||||
// Amazon EC2 Container Service (Amazon ECS) is a highly scalable, fast, container
|
||||
|
@ -71,7 +71,7 @@ func newClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegio
|
|||
}
|
||||
|
||||
// Handlers
|
||||
svc.Handlers.Sign.PushBack(v4.Sign)
|
||||
svc.Handlers.Sign.PushBackNamed(v4.SignRequestHandler)
|
||||
svc.Handlers.Build.PushBackNamed(jsonrpc.BuildHandler)
|
||||
svc.Handlers.Unmarshal.PushBackNamed(jsonrpc.UnmarshalHandler)
|
||||
svc.Handlers.UnmarshalMeta.PushBackNamed(jsonrpc.UnmarshalMetaHandler)
|
||||
|
|
File diff suppressed because it is too large
Load Diff
|
@ -7,8 +7,8 @@ import (
|
|||
"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/restjson"
|
||||
"github.com/aws/aws-sdk-go/private/signer/v4"
|
||||
)
|
||||
|
||||
//The service client's operations are safe to be used concurrently.
|
||||
|
@ -57,7 +57,7 @@ func newClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegio
|
|||
}
|
||||
|
||||
// Handlers
|
||||
svc.Handlers.Sign.PushBack(v4.Sign)
|
||||
svc.Handlers.Sign.PushBackNamed(v4.SignRequestHandler)
|
||||
svc.Handlers.Build.PushBackNamed(restjson.BuildHandler)
|
||||
svc.Handlers.Unmarshal.PushBackNamed(restjson.UnmarshalHandler)
|
||||
svc.Handlers.UnmarshalMeta.PushBackNamed(restjson.UnmarshalMetaHandler)
|
||||
|
|
File diff suppressed because it is too large
Load Diff
|
@ -7,8 +7,8 @@ import (
|
|||
"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/query"
|
||||
"github.com/aws/aws-sdk-go/private/signer/v4"
|
||||
)
|
||||
|
||||
// Amazon ElastiCache is a web service that makes it easier to set up, operate,
|
||||
|
@ -68,7 +68,7 @@ func newClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegio
|
|||
}
|
||||
|
||||
// Handlers
|
||||
svc.Handlers.Sign.PushBack(v4.Sign)
|
||||
svc.Handlers.Sign.PushBackNamed(v4.SignRequestHandler)
|
||||
svc.Handlers.Build.PushBackNamed(query.BuildHandler)
|
||||
svc.Handlers.Unmarshal.PushBackNamed(query.UnmarshalHandler)
|
||||
svc.Handlers.UnmarshalMeta.PushBackNamed(query.UnmarshalMetaHandler)
|
||||
|
|
File diff suppressed because it is too large
Load Diff
|
@ -7,8 +7,8 @@ import (
|
|||
"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/query"
|
||||
"github.com/aws/aws-sdk-go/private/signer/v4"
|
||||
)
|
||||
|
||||
// AWS Elastic Beanstalk makes it easy for you to create, deploy, and manage
|
||||
|
@ -74,7 +74,7 @@ func newClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegio
|
|||
}
|
||||
|
||||
// Handlers
|
||||
svc.Handlers.Sign.PushBack(v4.Sign)
|
||||
svc.Handlers.Sign.PushBackNamed(v4.SignRequestHandler)
|
||||
svc.Handlers.Build.PushBackNamed(query.BuildHandler)
|
||||
svc.Handlers.Unmarshal.PushBackNamed(query.UnmarshalHandler)
|
||||
svc.Handlers.UnmarshalMeta.PushBackNamed(query.UnmarshalMetaHandler)
|
||||
|
|
|
@ -15,7 +15,28 @@ import (
|
|||
|
||||
const opAddTags = "AddTags"
|
||||
|
||||
// AddTagsRequest generates a request for the AddTags operation.
|
||||
// AddTagsRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the AddTags operation. The "output" return
|
||||
// value can be used to capture response data after the request's "Send" method
|
||||
// is called.
|
||||
//
|
||||
// Creating a request object using this method should be used when you want to inject
|
||||
// custom logic into the request's lifecycle using a custom handler, or if you want to
|
||||
// access properties on the request object before or after sending the request. If
|
||||
// you just want the service response, call the AddTags method directly
|
||||
// instead.
|
||||
//
|
||||
// Note: You must call the "Send" method on the returned request object in order
|
||||
// to execute the request.
|
||||
//
|
||||
// // Example sending a request using the AddTagsRequest method.
|
||||
// req, resp := client.AddTagsRequest(params)
|
||||
//
|
||||
// err := req.Send()
|
||||
// if err == nil { // resp is now filled
|
||||
// fmt.Println(resp)
|
||||
// }
|
||||
//
|
||||
func (c *ElasticsearchService) AddTagsRequest(input *AddTagsInput) (req *request.Request, output *AddTagsOutput) {
|
||||
op := &request.Operation{
|
||||
Name: opAddTags,
|
||||
|
@ -47,7 +68,28 @@ func (c *ElasticsearchService) AddTags(input *AddTagsInput) (*AddTagsOutput, err
|
|||
|
||||
const opCreateElasticsearchDomain = "CreateElasticsearchDomain"
|
||||
|
||||
// CreateElasticsearchDomainRequest generates a request for the CreateElasticsearchDomain operation.
|
||||
// CreateElasticsearchDomainRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the CreateElasticsearchDomain operation. The "output" return
|
||||
// value can be used to capture response data after the request's "Send" method
|
||||
// is called.
|
||||
//
|
||||
// Creating a request object using this method should be used when you want to inject
|
||||
// custom logic into the request's lifecycle using a custom handler, or if you want to
|
||||
// access properties on the request object before or after sending the request. If
|
||||
// you just want the service response, call the CreateElasticsearchDomain method directly
|
||||
// instead.
|
||||
//
|
||||
// Note: You must call the "Send" method on the returned request object in order
|
||||
// to execute the request.
|
||||
//
|
||||
// // Example sending a request using the CreateElasticsearchDomainRequest method.
|
||||
// req, resp := client.CreateElasticsearchDomainRequest(params)
|
||||
//
|
||||
// err := req.Send()
|
||||
// if err == nil { // resp is now filled
|
||||
// fmt.Println(resp)
|
||||
// }
|
||||
//
|
||||
func (c *ElasticsearchService) CreateElasticsearchDomainRequest(input *CreateElasticsearchDomainInput) (req *request.Request, output *CreateElasticsearchDomainOutput) {
|
||||
op := &request.Operation{
|
||||
Name: opCreateElasticsearchDomain,
|
||||
|
@ -76,7 +118,28 @@ func (c *ElasticsearchService) CreateElasticsearchDomain(input *CreateElasticsea
|
|||
|
||||
const opDeleteElasticsearchDomain = "DeleteElasticsearchDomain"
|
||||
|
||||
// DeleteElasticsearchDomainRequest generates a request for the DeleteElasticsearchDomain operation.
|
||||
// DeleteElasticsearchDomainRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the DeleteElasticsearchDomain operation. The "output" return
|
||||
// value can be used to capture response data after the request's "Send" method
|
||||
// is called.
|
||||
//
|
||||
// Creating a request object using this method should be used when you want to inject
|
||||
// custom logic into the request's lifecycle using a custom handler, or if you want to
|
||||
// access properties on the request object before or after sending the request. If
|
||||
// you just want the service response, call the DeleteElasticsearchDomain method directly
|
||||
// instead.
|
||||
//
|
||||
// Note: You must call the "Send" method on the returned request object in order
|
||||
// to execute the request.
|
||||
//
|
||||
// // Example sending a request using the DeleteElasticsearchDomainRequest method.
|
||||
// req, resp := client.DeleteElasticsearchDomainRequest(params)
|
||||
//
|
||||
// err := req.Send()
|
||||
// if err == nil { // resp is now filled
|
||||
// fmt.Println(resp)
|
||||
// }
|
||||
//
|
||||
func (c *ElasticsearchService) DeleteElasticsearchDomainRequest(input *DeleteElasticsearchDomainInput) (req *request.Request, output *DeleteElasticsearchDomainOutput) {
|
||||
op := &request.Operation{
|
||||
Name: opDeleteElasticsearchDomain,
|
||||
|
@ -104,7 +167,28 @@ func (c *ElasticsearchService) DeleteElasticsearchDomain(input *DeleteElasticsea
|
|||
|
||||
const opDescribeElasticsearchDomain = "DescribeElasticsearchDomain"
|
||||
|
||||
// DescribeElasticsearchDomainRequest generates a request for the DescribeElasticsearchDomain operation.
|
||||
// DescribeElasticsearchDomainRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the DescribeElasticsearchDomain operation. The "output" return
|
||||
// value can be used to capture response data after the request's "Send" method
|
||||
// is called.
|
||||
//
|
||||
// Creating a request object using this method should be used when you want to inject
|
||||
// custom logic into the request's lifecycle using a custom handler, or if you want to
|
||||
// access properties on the request object before or after sending the request. If
|
||||
// you just want the service response, call the DescribeElasticsearchDomain method directly
|
||||
// instead.
|
||||
//
|
||||
// Note: You must call the "Send" method on the returned request object in order
|
||||
// to execute the request.
|
||||
//
|
||||
// // Example sending a request using the DescribeElasticsearchDomainRequest method.
|
||||
// req, resp := client.DescribeElasticsearchDomainRequest(params)
|
||||
//
|
||||
// err := req.Send()
|
||||
// if err == nil { // resp is now filled
|
||||
// fmt.Println(resp)
|
||||
// }
|
||||
//
|
||||
func (c *ElasticsearchService) DescribeElasticsearchDomainRequest(input *DescribeElasticsearchDomainInput) (req *request.Request, output *DescribeElasticsearchDomainOutput) {
|
||||
op := &request.Operation{
|
||||
Name: opDescribeElasticsearchDomain,
|
||||
|
@ -132,7 +216,28 @@ func (c *ElasticsearchService) DescribeElasticsearchDomain(input *DescribeElasti
|
|||
|
||||
const opDescribeElasticsearchDomainConfig = "DescribeElasticsearchDomainConfig"
|
||||
|
||||
// DescribeElasticsearchDomainConfigRequest generates a request for the DescribeElasticsearchDomainConfig operation.
|
||||
// DescribeElasticsearchDomainConfigRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the DescribeElasticsearchDomainConfig operation. The "output" return
|
||||
// value can be used to capture response data after the request's "Send" method
|
||||
// is called.
|
||||
//
|
||||
// Creating a request object using this method should be used when you want to inject
|
||||
// custom logic into the request's lifecycle using a custom handler, or if you want to
|
||||
// access properties on the request object before or after sending the request. If
|
||||
// you just want the service response, call the DescribeElasticsearchDomainConfig method directly
|
||||
// instead.
|
||||
//
|
||||
// Note: You must call the "Send" method on the returned request object in order
|
||||
// to execute the request.
|
||||
//
|
||||
// // Example sending a request using the DescribeElasticsearchDomainConfigRequest method.
|
||||
// req, resp := client.DescribeElasticsearchDomainConfigRequest(params)
|
||||
//
|
||||
// err := req.Send()
|
||||
// if err == nil { // resp is now filled
|
||||
// fmt.Println(resp)
|
||||
// }
|
||||
//
|
||||
func (c *ElasticsearchService) DescribeElasticsearchDomainConfigRequest(input *DescribeElasticsearchDomainConfigInput) (req *request.Request, output *DescribeElasticsearchDomainConfigOutput) {
|
||||
op := &request.Operation{
|
||||
Name: opDescribeElasticsearchDomainConfig,
|
||||
|
@ -161,7 +266,28 @@ func (c *ElasticsearchService) DescribeElasticsearchDomainConfig(input *Describe
|
|||
|
||||
const opDescribeElasticsearchDomains = "DescribeElasticsearchDomains"
|
||||
|
||||
// DescribeElasticsearchDomainsRequest generates a request for the DescribeElasticsearchDomains operation.
|
||||
// DescribeElasticsearchDomainsRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the DescribeElasticsearchDomains operation. The "output" return
|
||||
// value can be used to capture response data after the request's "Send" method
|
||||
// is called.
|
||||
//
|
||||
// Creating a request object using this method should be used when you want to inject
|
||||
// custom logic into the request's lifecycle using a custom handler, or if you want to
|
||||
// access properties on the request object before or after sending the request. If
|
||||
// you just want the service response, call the DescribeElasticsearchDomains method directly
|
||||
// instead.
|
||||
//
|
||||
// Note: You must call the "Send" method on the returned request object in order
|
||||
// to execute the request.
|
||||
//
|
||||
// // Example sending a request using the DescribeElasticsearchDomainsRequest method.
|
||||
// req, resp := client.DescribeElasticsearchDomainsRequest(params)
|
||||
//
|
||||
// err := req.Send()
|
||||
// if err == nil { // resp is now filled
|
||||
// fmt.Println(resp)
|
||||
// }
|
||||
//
|
||||
func (c *ElasticsearchService) DescribeElasticsearchDomainsRequest(input *DescribeElasticsearchDomainsInput) (req *request.Request, output *DescribeElasticsearchDomainsOutput) {
|
||||
op := &request.Operation{
|
||||
Name: opDescribeElasticsearchDomains,
|
||||
|
@ -189,7 +315,28 @@ func (c *ElasticsearchService) DescribeElasticsearchDomains(input *DescribeElast
|
|||
|
||||
const opListDomainNames = "ListDomainNames"
|
||||
|
||||
// ListDomainNamesRequest generates a request for the ListDomainNames operation.
|
||||
// ListDomainNamesRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the ListDomainNames operation. The "output" return
|
||||
// value can be used to capture response data after the request's "Send" method
|
||||
// is called.
|
||||
//
|
||||
// Creating a request object using this method should be used when you want to inject
|
||||
// custom logic into the request's lifecycle using a custom handler, or if you want to
|
||||
// access properties on the request object before or after sending the request. If
|
||||
// you just want the service response, call the ListDomainNames method directly
|
||||
// instead.
|
||||
//
|
||||
// Note: You must call the "Send" method on the returned request object in order
|
||||
// to execute the request.
|
||||
//
|
||||
// // Example sending a request using the ListDomainNamesRequest method.
|
||||
// req, resp := client.ListDomainNamesRequest(params)
|
||||
//
|
||||
// err := req.Send()
|
||||
// if err == nil { // resp is now filled
|
||||
// fmt.Println(resp)
|
||||
// }
|
||||
//
|
||||
func (c *ElasticsearchService) ListDomainNamesRequest(input *ListDomainNamesInput) (req *request.Request, output *ListDomainNamesOutput) {
|
||||
op := &request.Operation{
|
||||
Name: opListDomainNames,
|
||||
|
@ -217,7 +364,28 @@ func (c *ElasticsearchService) ListDomainNames(input *ListDomainNamesInput) (*Li
|
|||
|
||||
const opListTags = "ListTags"
|
||||
|
||||
// ListTagsRequest generates a request for the ListTags operation.
|
||||
// ListTagsRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the ListTags operation. The "output" return
|
||||
// value can be used to capture response data after the request's "Send" method
|
||||
// is called.
|
||||
//
|
||||
// Creating a request object using this method should be used when you want to inject
|
||||
// custom logic into the request's lifecycle using a custom handler, or if you want to
|
||||
// access properties on the request object before or after sending the request. If
|
||||
// you just want the service response, call the ListTags method directly
|
||||
// instead.
|
||||
//
|
||||
// Note: You must call the "Send" method on the returned request object in order
|
||||
// to execute the request.
|
||||
//
|
||||
// // Example sending a request using the ListTagsRequest method.
|
||||
// req, resp := client.ListTagsRequest(params)
|
||||
//
|
||||
// err := req.Send()
|
||||
// if err == nil { // resp is now filled
|
||||
// fmt.Println(resp)
|
||||
// }
|
||||
//
|
||||
func (c *ElasticsearchService) ListTagsRequest(input *ListTagsInput) (req *request.Request, output *ListTagsOutput) {
|
||||
op := &request.Operation{
|
||||
Name: opListTags,
|
||||
|
@ -244,7 +412,28 @@ func (c *ElasticsearchService) ListTags(input *ListTagsInput) (*ListTagsOutput,
|
|||
|
||||
const opRemoveTags = "RemoveTags"
|
||||
|
||||
// RemoveTagsRequest generates a request for the RemoveTags operation.
|
||||
// RemoveTagsRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the RemoveTags operation. The "output" return
|
||||
// value can be used to capture response data after the request's "Send" method
|
||||
// is called.
|
||||
//
|
||||
// Creating a request object using this method should be used when you want to inject
|
||||
// custom logic into the request's lifecycle using a custom handler, or if you want to
|
||||
// access properties on the request object before or after sending the request. If
|
||||
// you just want the service response, call the RemoveTags method directly
|
||||
// instead.
|
||||
//
|
||||
// Note: You must call the "Send" method on the returned request object in order
|
||||
// to execute the request.
|
||||
//
|
||||
// // Example sending a request using the RemoveTagsRequest method.
|
||||
// req, resp := client.RemoveTagsRequest(params)
|
||||
//
|
||||
// err := req.Send()
|
||||
// if err == nil { // resp is now filled
|
||||
// fmt.Println(resp)
|
||||
// }
|
||||
//
|
||||
func (c *ElasticsearchService) RemoveTagsRequest(input *RemoveTagsInput) (req *request.Request, output *RemoveTagsOutput) {
|
||||
op := &request.Operation{
|
||||
Name: opRemoveTags,
|
||||
|
@ -273,7 +462,28 @@ func (c *ElasticsearchService) RemoveTags(input *RemoveTagsInput) (*RemoveTagsOu
|
|||
|
||||
const opUpdateElasticsearchDomainConfig = "UpdateElasticsearchDomainConfig"
|
||||
|
||||
// UpdateElasticsearchDomainConfigRequest generates a request for the UpdateElasticsearchDomainConfig operation.
|
||||
// UpdateElasticsearchDomainConfigRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the UpdateElasticsearchDomainConfig operation. The "output" return
|
||||
// value can be used to capture response data after the request's "Send" method
|
||||
// is called.
|
||||
//
|
||||
// Creating a request object using this method should be used when you want to inject
|
||||
// custom logic into the request's lifecycle using a custom handler, or if you want to
|
||||
// access properties on the request object before or after sending the request. If
|
||||
// you just want the service response, call the UpdateElasticsearchDomainConfig method directly
|
||||
// instead.
|
||||
//
|
||||
// Note: You must call the "Send" method on the returned request object in order
|
||||
// to execute the request.
|
||||
//
|
||||
// // Example sending a request using the UpdateElasticsearchDomainConfigRequest method.
|
||||
// req, resp := client.UpdateElasticsearchDomainConfigRequest(params)
|
||||
//
|
||||
// err := req.Send()
|
||||
// if err == nil { // resp is now filled
|
||||
// fmt.Println(resp)
|
||||
// }
|
||||
//
|
||||
func (c *ElasticsearchService) UpdateElasticsearchDomainConfigRequest(input *UpdateElasticsearchDomainConfigInput) (req *request.Request, output *UpdateElasticsearchDomainConfigOutput) {
|
||||
op := &request.Operation{
|
||||
Name: opUpdateElasticsearchDomainConfig,
|
||||
|
|
|
@ -7,8 +7,8 @@ import (
|
|||
"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/restjson"
|
||||
"github.com/aws/aws-sdk-go/private/signer/v4"
|
||||
)
|
||||
|
||||
// Use the Amazon Elasticsearch configuration API to create, configure, and
|
||||
|
@ -64,7 +64,7 @@ func newClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegio
|
|||
}
|
||||
|
||||
// Handlers
|
||||
svc.Handlers.Sign.PushBack(v4.Sign)
|
||||
svc.Handlers.Sign.PushBackNamed(v4.SignRequestHandler)
|
||||
svc.Handlers.Build.PushBackNamed(restjson.BuildHandler)
|
||||
svc.Handlers.Unmarshal.PushBackNamed(restjson.UnmarshalHandler)
|
||||
svc.Handlers.UnmarshalMeta.PushBackNamed(restjson.UnmarshalMetaHandler)
|
||||
|
|
|
@ -12,7 +12,28 @@ import (
|
|||
|
||||
const opCancelJob = "CancelJob"
|
||||
|
||||
// CancelJobRequest generates a request for the CancelJob operation.
|
||||
// CancelJobRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the CancelJob operation. The "output" return
|
||||
// value can be used to capture response data after the request's "Send" method
|
||||
// is called.
|
||||
//
|
||||
// Creating a request object using this method should be used when you want to inject
|
||||
// custom logic into the request's lifecycle using a custom handler, or if you want to
|
||||
// access properties on the request object before or after sending the request. If
|
||||
// you just want the service response, call the CancelJob method directly
|
||||
// instead.
|
||||
//
|
||||
// Note: You must call the "Send" method on the returned request object in order
|
||||
// to execute the request.
|
||||
//
|
||||
// // Example sending a request using the CancelJobRequest method.
|
||||
// req, resp := client.CancelJobRequest(params)
|
||||
//
|
||||
// err := req.Send()
|
||||
// if err == nil { // resp is now filled
|
||||
// fmt.Println(resp)
|
||||
// }
|
||||
//
|
||||
func (c *ElasticTranscoder) CancelJobRequest(input *CancelJobInput) (req *request.Request, output *CancelJobOutput) {
|
||||
op := &request.Operation{
|
||||
Name: opCancelJob,
|
||||
|
@ -43,7 +64,28 @@ func (c *ElasticTranscoder) CancelJob(input *CancelJobInput) (*CancelJobOutput,
|
|||
|
||||
const opCreateJob = "CreateJob"
|
||||
|
||||
// CreateJobRequest generates a request for the CreateJob operation.
|
||||
// CreateJobRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the CreateJob operation. The "output" return
|
||||
// value can be used to capture response data after the request's "Send" method
|
||||
// is called.
|
||||
//
|
||||
// Creating a request object using this method should be used when you want to inject
|
||||
// custom logic into the request's lifecycle using a custom handler, or if you want to
|
||||
// access properties on the request object before or after sending the request. If
|
||||
// you just want the service response, call the CreateJob method directly
|
||||
// instead.
|
||||
//
|
||||
// Note: You must call the "Send" method on the returned request object in order
|
||||
// to execute the request.
|
||||
//
|
||||
// // Example sending a request using the CreateJobRequest method.
|
||||
// req, resp := client.CreateJobRequest(params)
|
||||
//
|
||||
// err := req.Send()
|
||||
// if err == nil { // resp is now filled
|
||||
// fmt.Println(resp)
|
||||
// }
|
||||
//
|
||||
func (c *ElasticTranscoder) CreateJobRequest(input *CreateJobInput) (req *request.Request, output *CreateJobResponse) {
|
||||
op := &request.Operation{
|
||||
Name: opCreateJob,
|
||||
|
@ -76,7 +118,28 @@ func (c *ElasticTranscoder) CreateJob(input *CreateJobInput) (*CreateJobResponse
|
|||
|
||||
const opCreatePipeline = "CreatePipeline"
|
||||
|
||||
// CreatePipelineRequest generates a request for the CreatePipeline operation.
|
||||
// CreatePipelineRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the CreatePipeline operation. The "output" return
|
||||
// value can be used to capture response data after the request's "Send" method
|
||||
// is called.
|
||||
//
|
||||
// Creating a request object using this method should be used when you want to inject
|
||||
// custom logic into the request's lifecycle using a custom handler, or if you want to
|
||||
// access properties on the request object before or after sending the request. If
|
||||
// you just want the service response, call the CreatePipeline method directly
|
||||
// instead.
|
||||
//
|
||||
// Note: You must call the "Send" method on the returned request object in order
|
||||
// to execute the request.
|
||||
//
|
||||
// // Example sending a request using the CreatePipelineRequest method.
|
||||
// req, resp := client.CreatePipelineRequest(params)
|
||||
//
|
||||
// err := req.Send()
|
||||
// if err == nil { // resp is now filled
|
||||
// fmt.Println(resp)
|
||||
// }
|
||||
//
|
||||
func (c *ElasticTranscoder) CreatePipelineRequest(input *CreatePipelineInput) (req *request.Request, output *CreatePipelineOutput) {
|
||||
op := &request.Operation{
|
||||
Name: opCreatePipeline,
|
||||
|
@ -103,7 +166,28 @@ func (c *ElasticTranscoder) CreatePipeline(input *CreatePipelineInput) (*CreateP
|
|||
|
||||
const opCreatePreset = "CreatePreset"
|
||||
|
||||
// CreatePresetRequest generates a request for the CreatePreset operation.
|
||||
// CreatePresetRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the CreatePreset operation. The "output" return
|
||||
// value can be used to capture response data after the request's "Send" method
|
||||
// is called.
|
||||
//
|
||||
// Creating a request object using this method should be used when you want to inject
|
||||
// custom logic into the request's lifecycle using a custom handler, or if you want to
|
||||
// access properties on the request object before or after sending the request. If
|
||||
// you just want the service response, call the CreatePreset method directly
|
||||
// instead.
|
||||
//
|
||||
// Note: You must call the "Send" method on the returned request object in order
|
||||
// to execute the request.
|
||||
//
|
||||
// // Example sending a request using the CreatePresetRequest method.
|
||||
// req, resp := client.CreatePresetRequest(params)
|
||||
//
|
||||
// err := req.Send()
|
||||
// if err == nil { // resp is now filled
|
||||
// fmt.Println(resp)
|
||||
// }
|
||||
//
|
||||
func (c *ElasticTranscoder) CreatePresetRequest(input *CreatePresetInput) (req *request.Request, output *CreatePresetOutput) {
|
||||
op := &request.Operation{
|
||||
Name: opCreatePreset,
|
||||
|
@ -144,7 +228,28 @@ func (c *ElasticTranscoder) CreatePreset(input *CreatePresetInput) (*CreatePrese
|
|||
|
||||
const opDeletePipeline = "DeletePipeline"
|
||||
|
||||
// DeletePipelineRequest generates a request for the DeletePipeline operation.
|
||||
// DeletePipelineRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the DeletePipeline operation. The "output" return
|
||||
// value can be used to capture response data after the request's "Send" method
|
||||
// is called.
|
||||
//
|
||||
// Creating a request object using this method should be used when you want to inject
|
||||
// custom logic into the request's lifecycle using a custom handler, or if you want to
|
||||
// access properties on the request object before or after sending the request. If
|
||||
// you just want the service response, call the DeletePipeline method directly
|
||||
// instead.
|
||||
//
|
||||
// Note: You must call the "Send" method on the returned request object in order
|
||||
// to execute the request.
|
||||
//
|
||||
// // Example sending a request using the DeletePipelineRequest method.
|
||||
// req, resp := client.DeletePipelineRequest(params)
|
||||
//
|
||||
// err := req.Send()
|
||||
// if err == nil { // resp is now filled
|
||||
// fmt.Println(resp)
|
||||
// }
|
||||
//
|
||||
func (c *ElasticTranscoder) DeletePipelineRequest(input *DeletePipelineInput) (req *request.Request, output *DeletePipelineOutput) {
|
||||
op := &request.Operation{
|
||||
Name: opDeletePipeline,
|
||||
|
@ -175,7 +280,28 @@ func (c *ElasticTranscoder) DeletePipeline(input *DeletePipelineInput) (*DeleteP
|
|||
|
||||
const opDeletePreset = "DeletePreset"
|
||||
|
||||
// DeletePresetRequest generates a request for the DeletePreset operation.
|
||||
// DeletePresetRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the DeletePreset operation. The "output" return
|
||||
// value can be used to capture response data after the request's "Send" method
|
||||
// is called.
|
||||
//
|
||||
// Creating a request object using this method should be used when you want to inject
|
||||
// custom logic into the request's lifecycle using a custom handler, or if you want to
|
||||
// access properties on the request object before or after sending the request. If
|
||||
// you just want the service response, call the DeletePreset method directly
|
||||
// instead.
|
||||
//
|
||||
// Note: You must call the "Send" method on the returned request object in order
|
||||
// to execute the request.
|
||||
//
|
||||
// // Example sending a request using the DeletePresetRequest method.
|
||||
// req, resp := client.DeletePresetRequest(params)
|
||||
//
|
||||
// err := req.Send()
|
||||
// if err == nil { // resp is now filled
|
||||
// fmt.Println(resp)
|
||||
// }
|
||||
//
|
||||
func (c *ElasticTranscoder) DeletePresetRequest(input *DeletePresetInput) (req *request.Request, output *DeletePresetOutput) {
|
||||
op := &request.Operation{
|
||||
Name: opDeletePreset,
|
||||
|
@ -204,7 +330,28 @@ func (c *ElasticTranscoder) DeletePreset(input *DeletePresetInput) (*DeletePrese
|
|||
|
||||
const opListJobsByPipeline = "ListJobsByPipeline"
|
||||
|
||||
// ListJobsByPipelineRequest generates a request for the ListJobsByPipeline operation.
|
||||
// ListJobsByPipelineRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the ListJobsByPipeline operation. The "output" return
|
||||
// value can be used to capture response data after the request's "Send" method
|
||||
// is called.
|
||||
//
|
||||
// Creating a request object using this method should be used when you want to inject
|
||||
// custom logic into the request's lifecycle using a custom handler, or if you want to
|
||||
// access properties on the request object before or after sending the request. If
|
||||
// you just want the service response, call the ListJobsByPipeline method directly
|
||||
// instead.
|
||||
//
|
||||
// Note: You must call the "Send" method on the returned request object in order
|
||||
// to execute the request.
|
||||
//
|
||||
// // Example sending a request using the ListJobsByPipelineRequest method.
|
||||
// req, resp := client.ListJobsByPipelineRequest(params)
|
||||
//
|
||||
// err := req.Send()
|
||||
// if err == nil { // resp is now filled
|
||||
// fmt.Println(resp)
|
||||
// }
|
||||
//
|
||||
func (c *ElasticTranscoder) ListJobsByPipelineRequest(input *ListJobsByPipelineInput) (req *request.Request, output *ListJobsByPipelineOutput) {
|
||||
op := &request.Operation{
|
||||
Name: opListJobsByPipeline,
|
||||
|
@ -239,6 +386,23 @@ func (c *ElasticTranscoder) ListJobsByPipeline(input *ListJobsByPipelineInput) (
|
|||
return out, err
|
||||
}
|
||||
|
||||
// ListJobsByPipelinePages iterates over the pages of a ListJobsByPipeline operation,
|
||||
// calling the "fn" function with the response data for each page. To stop
|
||||
// iterating, return false from the fn function.
|
||||
//
|
||||
// See ListJobsByPipeline 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 ListJobsByPipeline operation.
|
||||
// pageNum := 0
|
||||
// err := client.ListJobsByPipelinePages(params,
|
||||
// func(page *ListJobsByPipelineOutput, lastPage bool) bool {
|
||||
// pageNum++
|
||||
// fmt.Println(page)
|
||||
// return pageNum <= 3
|
||||
// })
|
||||
//
|
||||
func (c *ElasticTranscoder) ListJobsByPipelinePages(input *ListJobsByPipelineInput, fn func(p *ListJobsByPipelineOutput, lastPage bool) (shouldContinue bool)) error {
|
||||
page, _ := c.ListJobsByPipelineRequest(input)
|
||||
page.Handlers.Build.PushBack(request.MakeAddToUserAgentFreeFormHandler("Paginator"))
|
||||
|
@ -249,7 +413,28 @@ func (c *ElasticTranscoder) ListJobsByPipelinePages(input *ListJobsByPipelineInp
|
|||
|
||||
const opListJobsByStatus = "ListJobsByStatus"
|
||||
|
||||
// ListJobsByStatusRequest generates a request for the ListJobsByStatus operation.
|
||||
// ListJobsByStatusRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the ListJobsByStatus operation. The "output" return
|
||||
// value can be used to capture response data after the request's "Send" method
|
||||
// is called.
|
||||
//
|
||||
// Creating a request object using this method should be used when you want to inject
|
||||
// custom logic into the request's lifecycle using a custom handler, or if you want to
|
||||
// access properties on the request object before or after sending the request. If
|
||||
// you just want the service response, call the ListJobsByStatus method directly
|
||||
// instead.
|
||||
//
|
||||
// Note: You must call the "Send" method on the returned request object in order
|
||||
// to execute the request.
|
||||
//
|
||||
// // Example sending a request using the ListJobsByStatusRequest method.
|
||||
// req, resp := client.ListJobsByStatusRequest(params)
|
||||
//
|
||||
// err := req.Send()
|
||||
// if err == nil { // resp is now filled
|
||||
// fmt.Println(resp)
|
||||
// }
|
||||
//
|
||||
func (c *ElasticTranscoder) ListJobsByStatusRequest(input *ListJobsByStatusInput) (req *request.Request, output *ListJobsByStatusOutput) {
|
||||
op := &request.Operation{
|
||||
Name: opListJobsByStatus,
|
||||
|
@ -282,6 +467,23 @@ func (c *ElasticTranscoder) ListJobsByStatus(input *ListJobsByStatusInput) (*Lis
|
|||
return out, err
|
||||
}
|
||||
|
||||
// ListJobsByStatusPages iterates over the pages of a ListJobsByStatus operation,
|
||||
// calling the "fn" function with the response data for each page. To stop
|
||||
// iterating, return false from the fn function.
|
||||
//
|
||||
// See ListJobsByStatus 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 ListJobsByStatus operation.
|
||||
// pageNum := 0
|
||||
// err := client.ListJobsByStatusPages(params,
|
||||
// func(page *ListJobsByStatusOutput, lastPage bool) bool {
|
||||
// pageNum++
|
||||
// fmt.Println(page)
|
||||
// return pageNum <= 3
|
||||
// })
|
||||
//
|
||||
func (c *ElasticTranscoder) ListJobsByStatusPages(input *ListJobsByStatusInput, fn func(p *ListJobsByStatusOutput, lastPage bool) (shouldContinue bool)) error {
|
||||
page, _ := c.ListJobsByStatusRequest(input)
|
||||
page.Handlers.Build.PushBack(request.MakeAddToUserAgentFreeFormHandler("Paginator"))
|
||||
|
@ -292,7 +494,28 @@ func (c *ElasticTranscoder) ListJobsByStatusPages(input *ListJobsByStatusInput,
|
|||
|
||||
const opListPipelines = "ListPipelines"
|
||||
|
||||
// ListPipelinesRequest generates a request for the ListPipelines operation.
|
||||
// ListPipelinesRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the ListPipelines operation. The "output" return
|
||||
// value can be used to capture response data after the request's "Send" method
|
||||
// is called.
|
||||
//
|
||||
// Creating a request object using this method should be used when you want to inject
|
||||
// custom logic into the request's lifecycle using a custom handler, or if you want to
|
||||
// access properties on the request object before or after sending the request. If
|
||||
// you just want the service response, call the ListPipelines method directly
|
||||
// instead.
|
||||
//
|
||||
// Note: You must call the "Send" method on the returned request object in order
|
||||
// to execute the request.
|
||||
//
|
||||
// // Example sending a request using the ListPipelinesRequest method.
|
||||
// req, resp := client.ListPipelinesRequest(params)
|
||||
//
|
||||
// err := req.Send()
|
||||
// if err == nil { // resp is now filled
|
||||
// fmt.Println(resp)
|
||||
// }
|
||||
//
|
||||
func (c *ElasticTranscoder) ListPipelinesRequest(input *ListPipelinesInput) (req *request.Request, output *ListPipelinesOutput) {
|
||||
op := &request.Operation{
|
||||
Name: opListPipelines,
|
||||
|
@ -324,6 +547,23 @@ func (c *ElasticTranscoder) ListPipelines(input *ListPipelinesInput) (*ListPipel
|
|||
return out, err
|
||||
}
|
||||
|
||||
// ListPipelinesPages iterates over the pages of a ListPipelines operation,
|
||||
// calling the "fn" function with the response data for each page. To stop
|
||||
// iterating, return false from the fn function.
|
||||
//
|
||||
// See ListPipelines 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 ListPipelines operation.
|
||||
// pageNum := 0
|
||||
// err := client.ListPipelinesPages(params,
|
||||
// func(page *ListPipelinesOutput, lastPage bool) bool {
|
||||
// pageNum++
|
||||
// fmt.Println(page)
|
||||
// return pageNum <= 3
|
||||
// })
|
||||
//
|
||||
func (c *ElasticTranscoder) ListPipelinesPages(input *ListPipelinesInput, fn func(p *ListPipelinesOutput, lastPage bool) (shouldContinue bool)) error {
|
||||
page, _ := c.ListPipelinesRequest(input)
|
||||
page.Handlers.Build.PushBack(request.MakeAddToUserAgentFreeFormHandler("Paginator"))
|
||||
|
@ -334,7 +574,28 @@ func (c *ElasticTranscoder) ListPipelinesPages(input *ListPipelinesInput, fn fun
|
|||
|
||||
const opListPresets = "ListPresets"
|
||||
|
||||
// ListPresetsRequest generates a request for the ListPresets operation.
|
||||
// ListPresetsRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the ListPresets operation. The "output" return
|
||||
// value can be used to capture response data after the request's "Send" method
|
||||
// is called.
|
||||
//
|
||||
// Creating a request object using this method should be used when you want to inject
|
||||
// custom logic into the request's lifecycle using a custom handler, or if you want to
|
||||
// access properties on the request object before or after sending the request. If
|
||||
// you just want the service response, call the ListPresets method directly
|
||||
// instead.
|
||||
//
|
||||
// Note: You must call the "Send" method on the returned request object in order
|
||||
// to execute the request.
|
||||
//
|
||||
// // Example sending a request using the ListPresetsRequest method.
|
||||
// req, resp := client.ListPresetsRequest(params)
|
||||
//
|
||||
// err := req.Send()
|
||||
// if err == nil { // resp is now filled
|
||||
// fmt.Println(resp)
|
||||
// }
|
||||
//
|
||||
func (c *ElasticTranscoder) ListPresetsRequest(input *ListPresetsInput) (req *request.Request, output *ListPresetsOutput) {
|
||||
op := &request.Operation{
|
||||
Name: opListPresets,
|
||||
|
@ -366,6 +627,23 @@ func (c *ElasticTranscoder) ListPresets(input *ListPresetsInput) (*ListPresetsOu
|
|||
return out, err
|
||||
}
|
||||
|
||||
// ListPresetsPages iterates over the pages of a ListPresets operation,
|
||||
// calling the "fn" function with the response data for each page. To stop
|
||||
// iterating, return false from the fn function.
|
||||
//
|
||||
// See ListPresets 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 ListPresets operation.
|
||||
// pageNum := 0
|
||||
// err := client.ListPresetsPages(params,
|
||||
// func(page *ListPresetsOutput, lastPage bool) bool {
|
||||
// pageNum++
|
||||
// fmt.Println(page)
|
||||
// return pageNum <= 3
|
||||
// })
|
||||
//
|
||||
func (c *ElasticTranscoder) ListPresetsPages(input *ListPresetsInput, fn func(p *ListPresetsOutput, lastPage bool) (shouldContinue bool)) error {
|
||||
page, _ := c.ListPresetsRequest(input)
|
||||
page.Handlers.Build.PushBack(request.MakeAddToUserAgentFreeFormHandler("Paginator"))
|
||||
|
@ -376,7 +654,28 @@ func (c *ElasticTranscoder) ListPresetsPages(input *ListPresetsInput, fn func(p
|
|||
|
||||
const opReadJob = "ReadJob"
|
||||
|
||||
// ReadJobRequest generates a request for the ReadJob operation.
|
||||
// ReadJobRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the ReadJob operation. The "output" return
|
||||
// value can be used to capture response data after the request's "Send" method
|
||||
// is called.
|
||||
//
|
||||
// Creating a request object using this method should be used when you want to inject
|
||||
// custom logic into the request's lifecycle using a custom handler, or if you want to
|
||||
// access properties on the request object before or after sending the request. If
|
||||
// you just want the service response, call the ReadJob method directly
|
||||
// instead.
|
||||
//
|
||||
// Note: You must call the "Send" method on the returned request object in order
|
||||
// to execute the request.
|
||||
//
|
||||
// // Example sending a request using the ReadJobRequest method.
|
||||
// req, resp := client.ReadJobRequest(params)
|
||||
//
|
||||
// err := req.Send()
|
||||
// if err == nil { // resp is now filled
|
||||
// fmt.Println(resp)
|
||||
// }
|
||||
//
|
||||
func (c *ElasticTranscoder) ReadJobRequest(input *ReadJobInput) (req *request.Request, output *ReadJobOutput) {
|
||||
op := &request.Operation{
|
||||
Name: opReadJob,
|
||||
|
@ -403,7 +702,28 @@ func (c *ElasticTranscoder) ReadJob(input *ReadJobInput) (*ReadJobOutput, error)
|
|||
|
||||
const opReadPipeline = "ReadPipeline"
|
||||
|
||||
// ReadPipelineRequest generates a request for the ReadPipeline operation.
|
||||
// ReadPipelineRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the ReadPipeline operation. The "output" return
|
||||
// value can be used to capture response data after the request's "Send" method
|
||||
// is called.
|
||||
//
|
||||
// Creating a request object using this method should be used when you want to inject
|
||||
// custom logic into the request's lifecycle using a custom handler, or if you want to
|
||||
// access properties on the request object before or after sending the request. If
|
||||
// you just want the service response, call the ReadPipeline method directly
|
||||
// instead.
|
||||
//
|
||||
// Note: You must call the "Send" method on the returned request object in order
|
||||
// to execute the request.
|
||||
//
|
||||
// // Example sending a request using the ReadPipelineRequest method.
|
||||
// req, resp := client.ReadPipelineRequest(params)
|
||||
//
|
||||
// err := req.Send()
|
||||
// if err == nil { // resp is now filled
|
||||
// fmt.Println(resp)
|
||||
// }
|
||||
//
|
||||
func (c *ElasticTranscoder) ReadPipelineRequest(input *ReadPipelineInput) (req *request.Request, output *ReadPipelineOutput) {
|
||||
op := &request.Operation{
|
||||
Name: opReadPipeline,
|
||||
|
@ -430,7 +750,28 @@ func (c *ElasticTranscoder) ReadPipeline(input *ReadPipelineInput) (*ReadPipelin
|
|||
|
||||
const opReadPreset = "ReadPreset"
|
||||
|
||||
// ReadPresetRequest generates a request for the ReadPreset operation.
|
||||
// ReadPresetRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the ReadPreset operation. The "output" return
|
||||
// value can be used to capture response data after the request's "Send" method
|
||||
// is called.
|
||||
//
|
||||
// Creating a request object using this method should be used when you want to inject
|
||||
// custom logic into the request's lifecycle using a custom handler, or if you want to
|
||||
// access properties on the request object before or after sending the request. If
|
||||
// you just want the service response, call the ReadPreset method directly
|
||||
// instead.
|
||||
//
|
||||
// Note: You must call the "Send" method on the returned request object in order
|
||||
// to execute the request.
|
||||
//
|
||||
// // Example sending a request using the ReadPresetRequest method.
|
||||
// req, resp := client.ReadPresetRequest(params)
|
||||
//
|
||||
// err := req.Send()
|
||||
// if err == nil { // resp is now filled
|
||||
// fmt.Println(resp)
|
||||
// }
|
||||
//
|
||||
func (c *ElasticTranscoder) ReadPresetRequest(input *ReadPresetInput) (req *request.Request, output *ReadPresetOutput) {
|
||||
op := &request.Operation{
|
||||
Name: opReadPreset,
|
||||
|
@ -457,7 +798,28 @@ func (c *ElasticTranscoder) ReadPreset(input *ReadPresetInput) (*ReadPresetOutpu
|
|||
|
||||
const opTestRole = "TestRole"
|
||||
|
||||
// TestRoleRequest generates a request for the TestRole operation.
|
||||
// TestRoleRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the TestRole operation. The "output" return
|
||||
// value can be used to capture response data after the request's "Send" method
|
||||
// is called.
|
||||
//
|
||||
// Creating a request object using this method should be used when you want to inject
|
||||
// custom logic into the request's lifecycle using a custom handler, or if you want to
|
||||
// access properties on the request object before or after sending the request. If
|
||||
// you just want the service response, call the TestRole method directly
|
||||
// instead.
|
||||
//
|
||||
// Note: You must call the "Send" method on the returned request object in order
|
||||
// to execute the request.
|
||||
//
|
||||
// // Example sending a request using the TestRoleRequest method.
|
||||
// req, resp := client.TestRoleRequest(params)
|
||||
//
|
||||
// err := req.Send()
|
||||
// if err == nil { // resp is now filled
|
||||
// fmt.Println(resp)
|
||||
// }
|
||||
//
|
||||
func (c *ElasticTranscoder) TestRoleRequest(input *TestRoleInput) (req *request.Request, output *TestRoleOutput) {
|
||||
op := &request.Operation{
|
||||
Name: opTestRole,
|
||||
|
@ -490,7 +852,28 @@ func (c *ElasticTranscoder) TestRole(input *TestRoleInput) (*TestRoleOutput, err
|
|||
|
||||
const opUpdatePipeline = "UpdatePipeline"
|
||||
|
||||
// UpdatePipelineRequest generates a request for the UpdatePipeline operation.
|
||||
// UpdatePipelineRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the UpdatePipeline operation. The "output" return
|
||||
// value can be used to capture response data after the request's "Send" method
|
||||
// is called.
|
||||
//
|
||||
// Creating a request object using this method should be used when you want to inject
|
||||
// custom logic into the request's lifecycle using a custom handler, or if you want to
|
||||
// access properties on the request object before or after sending the request. If
|
||||
// you just want the service response, call the UpdatePipeline method directly
|
||||
// instead.
|
||||
//
|
||||
// Note: You must call the "Send" method on the returned request object in order
|
||||
// to execute the request.
|
||||
//
|
||||
// // Example sending a request using the UpdatePipelineRequest method.
|
||||
// req, resp := client.UpdatePipelineRequest(params)
|
||||
//
|
||||
// err := req.Send()
|
||||
// if err == nil { // resp is now filled
|
||||
// fmt.Println(resp)
|
||||
// }
|
||||
//
|
||||
func (c *ElasticTranscoder) UpdatePipelineRequest(input *UpdatePipelineInput) (req *request.Request, output *UpdatePipelineOutput) {
|
||||
op := &request.Operation{
|
||||
Name: opUpdatePipeline,
|
||||
|
@ -521,7 +904,28 @@ func (c *ElasticTranscoder) UpdatePipeline(input *UpdatePipelineInput) (*UpdateP
|
|||
|
||||
const opUpdatePipelineNotifications = "UpdatePipelineNotifications"
|
||||
|
||||
// UpdatePipelineNotificationsRequest generates a request for the UpdatePipelineNotifications operation.
|
||||
// UpdatePipelineNotificationsRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the UpdatePipelineNotifications operation. The "output" return
|
||||
// value can be used to capture response data after the request's "Send" method
|
||||
// is called.
|
||||
//
|
||||
// Creating a request object using this method should be used when you want to inject
|
||||
// custom logic into the request's lifecycle using a custom handler, or if you want to
|
||||
// access properties on the request object before or after sending the request. If
|
||||
// you just want the service response, call the UpdatePipelineNotifications method directly
|
||||
// instead.
|
||||
//
|
||||
// Note: You must call the "Send" method on the returned request object in order
|
||||
// to execute the request.
|
||||
//
|
||||
// // Example sending a request using the UpdatePipelineNotificationsRequest method.
|
||||
// req, resp := client.UpdatePipelineNotificationsRequest(params)
|
||||
//
|
||||
// err := req.Send()
|
||||
// if err == nil { // resp is now filled
|
||||
// fmt.Println(resp)
|
||||
// }
|
||||
//
|
||||
func (c *ElasticTranscoder) UpdatePipelineNotificationsRequest(input *UpdatePipelineNotificationsInput) (req *request.Request, output *UpdatePipelineNotificationsOutput) {
|
||||
op := &request.Operation{
|
||||
Name: opUpdatePipelineNotifications,
|
||||
|
@ -552,7 +956,28 @@ func (c *ElasticTranscoder) UpdatePipelineNotifications(input *UpdatePipelineNot
|
|||
|
||||
const opUpdatePipelineStatus = "UpdatePipelineStatus"
|
||||
|
||||
// UpdatePipelineStatusRequest generates a request for the UpdatePipelineStatus operation.
|
||||
// UpdatePipelineStatusRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the UpdatePipelineStatus operation. The "output" return
|
||||
// value can be used to capture response data after the request's "Send" method
|
||||
// is called.
|
||||
//
|
||||
// Creating a request object using this method should be used when you want to inject
|
||||
// custom logic into the request's lifecycle using a custom handler, or if you want to
|
||||
// access properties on the request object before or after sending the request. If
|
||||
// you just want the service response, call the UpdatePipelineStatus method directly
|
||||
// instead.
|
||||
//
|
||||
// Note: You must call the "Send" method on the returned request object in order
|
||||
// to execute the request.
|
||||
//
|
||||
// // Example sending a request using the UpdatePipelineStatusRequest method.
|
||||
// req, resp := client.UpdatePipelineStatusRequest(params)
|
||||
//
|
||||
// err := req.Send()
|
||||
// if err == nil { // resp is now filled
|
||||
// fmt.Println(resp)
|
||||
// }
|
||||
//
|
||||
func (c *ElasticTranscoder) UpdatePipelineStatusRequest(input *UpdatePipelineStatusInput) (req *request.Request, output *UpdatePipelineStatusOutput) {
|
||||
op := &request.Operation{
|
||||
Name: opUpdatePipelineStatus,
|
||||
|
|
|
@ -7,8 +7,8 @@ import (
|
|||
"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/restjson"
|
||||
"github.com/aws/aws-sdk-go/private/signer/v4"
|
||||
)
|
||||
|
||||
// The AWS Elastic Transcoder Service.
|
||||
|
@ -58,7 +58,7 @@ func newClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegio
|
|||
}
|
||||
|
||||
// Handlers
|
||||
svc.Handlers.Sign.PushBack(v4.Sign)
|
||||
svc.Handlers.Sign.PushBackNamed(v4.SignRequestHandler)
|
||||
svc.Handlers.Build.PushBackNamed(restjson.BuildHandler)
|
||||
svc.Handlers.Unmarshal.PushBackNamed(restjson.UnmarshalHandler)
|
||||
svc.Handlers.UnmarshalMeta.PushBackNamed(restjson.UnmarshalMetaHandler)
|
||||
|
|
|
@ -13,7 +13,28 @@ import (
|
|||
|
||||
const opAddTags = "AddTags"
|
||||
|
||||
// AddTagsRequest generates a request for the AddTags operation.
|
||||
// AddTagsRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the AddTags operation. The "output" return
|
||||
// value can be used to capture response data after the request's "Send" method
|
||||
// is called.
|
||||
//
|
||||
// Creating a request object using this method should be used when you want to inject
|
||||
// custom logic into the request's lifecycle using a custom handler, or if you want to
|
||||
// access properties on the request object before or after sending the request. If
|
||||
// you just want the service response, call the AddTags method directly
|
||||
// instead.
|
||||
//
|
||||
// Note: You must call the "Send" method on the returned request object in order
|
||||
// to execute the request.
|
||||
//
|
||||
// // Example sending a request using the AddTagsRequest method.
|
||||
// req, resp := client.AddTagsRequest(params)
|
||||
//
|
||||
// err := req.Send()
|
||||
// if err == nil { // resp is now filled
|
||||
// fmt.Println(resp)
|
||||
// }
|
||||
//
|
||||
func (c *ELB) AddTagsRequest(input *AddTagsInput) (req *request.Request, output *AddTagsOutput) {
|
||||
op := &request.Operation{
|
||||
Name: opAddTags,
|
||||
|
@ -47,7 +68,28 @@ func (c *ELB) AddTags(input *AddTagsInput) (*AddTagsOutput, error) {
|
|||
|
||||
const opApplySecurityGroupsToLoadBalancer = "ApplySecurityGroupsToLoadBalancer"
|
||||
|
||||
// ApplySecurityGroupsToLoadBalancerRequest generates a request for the ApplySecurityGroupsToLoadBalancer operation.
|
||||
// ApplySecurityGroupsToLoadBalancerRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the ApplySecurityGroupsToLoadBalancer operation. The "output" return
|
||||
// value can be used to capture response data after the request's "Send" method
|
||||
// is called.
|
||||
//
|
||||
// Creating a request object using this method should be used when you want to inject
|
||||
// custom logic into the request's lifecycle using a custom handler, or if you want to
|
||||
// access properties on the request object before or after sending the request. If
|
||||
// you just want the service response, call the ApplySecurityGroupsToLoadBalancer method directly
|
||||
// instead.
|
||||
//
|
||||
// Note: You must call the "Send" method on the returned request object in order
|
||||
// to execute the request.
|
||||
//
|
||||
// // Example sending a request using the ApplySecurityGroupsToLoadBalancerRequest method.
|
||||
// req, resp := client.ApplySecurityGroupsToLoadBalancerRequest(params)
|
||||
//
|
||||
// err := req.Send()
|
||||
// if err == nil { // resp is now filled
|
||||
// fmt.Println(resp)
|
||||
// }
|
||||
//
|
||||
func (c *ELB) ApplySecurityGroupsToLoadBalancerRequest(input *ApplySecurityGroupsToLoadBalancerInput) (req *request.Request, output *ApplySecurityGroupsToLoadBalancerOutput) {
|
||||
op := &request.Operation{
|
||||
Name: opApplySecurityGroupsToLoadBalancer,
|
||||
|
@ -79,7 +121,28 @@ func (c *ELB) ApplySecurityGroupsToLoadBalancer(input *ApplySecurityGroupsToLoad
|
|||
|
||||
const opAttachLoadBalancerToSubnets = "AttachLoadBalancerToSubnets"
|
||||
|
||||
// AttachLoadBalancerToSubnetsRequest generates a request for the AttachLoadBalancerToSubnets operation.
|
||||
// AttachLoadBalancerToSubnetsRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the AttachLoadBalancerToSubnets operation. The "output" return
|
||||
// value can be used to capture response data after the request's "Send" method
|
||||
// is called.
|
||||
//
|
||||
// Creating a request object using this method should be used when you want to inject
|
||||
// custom logic into the request's lifecycle using a custom handler, or if you want to
|
||||
// access properties on the request object before or after sending the request. If
|
||||
// you just want the service response, call the AttachLoadBalancerToSubnets method directly
|
||||
// instead.
|
||||
//
|
||||
// Note: You must call the "Send" method on the returned request object in order
|
||||
// to execute the request.
|
||||
//
|
||||
// // Example sending a request using the AttachLoadBalancerToSubnetsRequest method.
|
||||
// req, resp := client.AttachLoadBalancerToSubnetsRequest(params)
|
||||
//
|
||||
// err := req.Send()
|
||||
// if err == nil { // resp is now filled
|
||||
// fmt.Println(resp)
|
||||
// }
|
||||
//
|
||||
func (c *ELB) AttachLoadBalancerToSubnetsRequest(input *AttachLoadBalancerToSubnetsInput) (req *request.Request, output *AttachLoadBalancerToSubnetsOutput) {
|
||||
op := &request.Operation{
|
||||
Name: opAttachLoadBalancerToSubnets,
|
||||
|
@ -112,7 +175,28 @@ func (c *ELB) AttachLoadBalancerToSubnets(input *AttachLoadBalancerToSubnetsInpu
|
|||
|
||||
const opConfigureHealthCheck = "ConfigureHealthCheck"
|
||||
|
||||
// ConfigureHealthCheckRequest generates a request for the ConfigureHealthCheck operation.
|
||||
// ConfigureHealthCheckRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the ConfigureHealthCheck operation. The "output" return
|
||||
// value can be used to capture response data after the request's "Send" method
|
||||
// is called.
|
||||
//
|
||||
// Creating a request object using this method should be used when you want to inject
|
||||
// custom logic into the request's lifecycle using a custom handler, or if you want to
|
||||
// access properties on the request object before or after sending the request. If
|
||||
// you just want the service response, call the ConfigureHealthCheck method directly
|
||||
// instead.
|
||||
//
|
||||
// Note: You must call the "Send" method on the returned request object in order
|
||||
// to execute the request.
|
||||
//
|
||||
// // Example sending a request using the ConfigureHealthCheckRequest method.
|
||||
// req, resp := client.ConfigureHealthCheckRequest(params)
|
||||
//
|
||||
// err := req.Send()
|
||||
// if err == nil { // resp is now filled
|
||||
// fmt.Println(resp)
|
||||
// }
|
||||
//
|
||||
func (c *ELB) ConfigureHealthCheckRequest(input *ConfigureHealthCheckInput) (req *request.Request, output *ConfigureHealthCheckOutput) {
|
||||
op := &request.Operation{
|
||||
Name: opConfigureHealthCheck,
|
||||
|
@ -143,7 +227,28 @@ func (c *ELB) ConfigureHealthCheck(input *ConfigureHealthCheckInput) (*Configure
|
|||
|
||||
const opCreateAppCookieStickinessPolicy = "CreateAppCookieStickinessPolicy"
|
||||
|
||||
// CreateAppCookieStickinessPolicyRequest generates a request for the CreateAppCookieStickinessPolicy operation.
|
||||
// CreateAppCookieStickinessPolicyRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the CreateAppCookieStickinessPolicy operation. The "output" return
|
||||
// value can be used to capture response data after the request's "Send" method
|
||||
// is called.
|
||||
//
|
||||
// Creating a request object using this method should be used when you want to inject
|
||||
// custom logic into the request's lifecycle using a custom handler, or if you want to
|
||||
// access properties on the request object before or after sending the request. If
|
||||
// you just want the service response, call the CreateAppCookieStickinessPolicy method directly
|
||||
// instead.
|
||||
//
|
||||
// Note: You must call the "Send" method on the returned request object in order
|
||||
// to execute the request.
|
||||
//
|
||||
// // Example sending a request using the CreateAppCookieStickinessPolicyRequest method.
|
||||
// req, resp := client.CreateAppCookieStickinessPolicyRequest(params)
|
||||
//
|
||||
// err := req.Send()
|
||||
// if err == nil { // resp is now filled
|
||||
// fmt.Println(resp)
|
||||
// }
|
||||
//
|
||||
func (c *ELB) CreateAppCookieStickinessPolicyRequest(input *CreateAppCookieStickinessPolicyInput) (req *request.Request, output *CreateAppCookieStickinessPolicyOutput) {
|
||||
op := &request.Operation{
|
||||
Name: opCreateAppCookieStickinessPolicy,
|
||||
|
@ -184,7 +289,28 @@ func (c *ELB) CreateAppCookieStickinessPolicy(input *CreateAppCookieStickinessPo
|
|||
|
||||
const opCreateLBCookieStickinessPolicy = "CreateLBCookieStickinessPolicy"
|
||||
|
||||
// CreateLBCookieStickinessPolicyRequest generates a request for the CreateLBCookieStickinessPolicy operation.
|
||||
// CreateLBCookieStickinessPolicyRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the CreateLBCookieStickinessPolicy operation. The "output" return
|
||||
// value can be used to capture response data after the request's "Send" method
|
||||
// is called.
|
||||
//
|
||||
// Creating a request object using this method should be used when you want to inject
|
||||
// custom logic into the request's lifecycle using a custom handler, or if you want to
|
||||
// access properties on the request object before or after sending the request. If
|
||||
// you just want the service response, call the CreateLBCookieStickinessPolicy method directly
|
||||
// instead.
|
||||
//
|
||||
// Note: You must call the "Send" method on the returned request object in order
|
||||
// to execute the request.
|
||||
//
|
||||
// // Example sending a request using the CreateLBCookieStickinessPolicyRequest method.
|
||||
// req, resp := client.CreateLBCookieStickinessPolicyRequest(params)
|
||||
//
|
||||
// err := req.Send()
|
||||
// if err == nil { // resp is now filled
|
||||
// fmt.Println(resp)
|
||||
// }
|
||||
//
|
||||
func (c *ELB) CreateLBCookieStickinessPolicyRequest(input *CreateLBCookieStickinessPolicyInput) (req *request.Request, output *CreateLBCookieStickinessPolicyOutput) {
|
||||
op := &request.Operation{
|
||||
Name: opCreateLBCookieStickinessPolicy,
|
||||
|
@ -227,7 +353,28 @@ func (c *ELB) CreateLBCookieStickinessPolicy(input *CreateLBCookieStickinessPoli
|
|||
|
||||
const opCreateLoadBalancer = "CreateLoadBalancer"
|
||||
|
||||
// CreateLoadBalancerRequest generates a request for the CreateLoadBalancer operation.
|
||||
// CreateLoadBalancerRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the CreateLoadBalancer operation. The "output" return
|
||||
// value can be used to capture response data after the request's "Send" method
|
||||
// is called.
|
||||
//
|
||||
// Creating a request object using this method should be used when you want to inject
|
||||
// custom logic into the request's lifecycle using a custom handler, or if you want to
|
||||
// access properties on the request object before or after sending the request. If
|
||||
// you just want the service response, call the CreateLoadBalancer method directly
|
||||
// instead.
|
||||
//
|
||||
// Note: You must call the "Send" method on the returned request object in order
|
||||
// to execute the request.
|
||||
//
|
||||
// // Example sending a request using the CreateLoadBalancerRequest method.
|
||||
// req, resp := client.CreateLoadBalancerRequest(params)
|
||||
//
|
||||
// err := req.Send()
|
||||
// if err == nil { // resp is now filled
|
||||
// fmt.Println(resp)
|
||||
// }
|
||||
//
|
||||
func (c *ELB) CreateLoadBalancerRequest(input *CreateLoadBalancerInput) (req *request.Request, output *CreateLoadBalancerOutput) {
|
||||
op := &request.Operation{
|
||||
Name: opCreateLoadBalancer,
|
||||
|
@ -265,7 +412,28 @@ func (c *ELB) CreateLoadBalancer(input *CreateLoadBalancerInput) (*CreateLoadBal
|
|||
|
||||
const opCreateLoadBalancerListeners = "CreateLoadBalancerListeners"
|
||||
|
||||
// CreateLoadBalancerListenersRequest generates a request for the CreateLoadBalancerListeners operation.
|
||||
// CreateLoadBalancerListenersRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the CreateLoadBalancerListeners operation. The "output" return
|
||||
// value can be used to capture response data after the request's "Send" method
|
||||
// is called.
|
||||
//
|
||||
// Creating a request object using this method should be used when you want to inject
|
||||
// custom logic into the request's lifecycle using a custom handler, or if you want to
|
||||
// access properties on the request object before or after sending the request. If
|
||||
// you just want the service response, call the CreateLoadBalancerListeners method directly
|
||||
// instead.
|
||||
//
|
||||
// Note: You must call the "Send" method on the returned request object in order
|
||||
// to execute the request.
|
||||
//
|
||||
// // Example sending a request using the CreateLoadBalancerListenersRequest method.
|
||||
// req, resp := client.CreateLoadBalancerListenersRequest(params)
|
||||
//
|
||||
// err := req.Send()
|
||||
// if err == nil { // resp is now filled
|
||||
// fmt.Println(resp)
|
||||
// }
|
||||
//
|
||||
func (c *ELB) CreateLoadBalancerListenersRequest(input *CreateLoadBalancerListenersInput) (req *request.Request, output *CreateLoadBalancerListenersOutput) {
|
||||
op := &request.Operation{
|
||||
Name: opCreateLoadBalancerListeners,
|
||||
|
@ -298,7 +466,28 @@ func (c *ELB) CreateLoadBalancerListeners(input *CreateLoadBalancerListenersInpu
|
|||
|
||||
const opCreateLoadBalancerPolicy = "CreateLoadBalancerPolicy"
|
||||
|
||||
// CreateLoadBalancerPolicyRequest generates a request for the CreateLoadBalancerPolicy operation.
|
||||
// CreateLoadBalancerPolicyRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the CreateLoadBalancerPolicy operation. The "output" return
|
||||
// value can be used to capture response data after the request's "Send" method
|
||||
// is called.
|
||||
//
|
||||
// Creating a request object using this method should be used when you want to inject
|
||||
// custom logic into the request's lifecycle using a custom handler, or if you want to
|
||||
// access properties on the request object before or after sending the request. If
|
||||
// you just want the service response, call the CreateLoadBalancerPolicy method directly
|
||||
// instead.
|
||||
//
|
||||
// Note: You must call the "Send" method on the returned request object in order
|
||||
// to execute the request.
|
||||
//
|
||||
// // Example sending a request using the CreateLoadBalancerPolicyRequest method.
|
||||
// req, resp := client.CreateLoadBalancerPolicyRequest(params)
|
||||
//
|
||||
// err := req.Send()
|
||||
// if err == nil { // resp is now filled
|
||||
// fmt.Println(resp)
|
||||
// }
|
||||
//
|
||||
func (c *ELB) CreateLoadBalancerPolicyRequest(input *CreateLoadBalancerPolicyInput) (req *request.Request, output *CreateLoadBalancerPolicyOutput) {
|
||||
op := &request.Operation{
|
||||
Name: opCreateLoadBalancerPolicy,
|
||||
|
@ -329,7 +518,28 @@ func (c *ELB) CreateLoadBalancerPolicy(input *CreateLoadBalancerPolicyInput) (*C
|
|||
|
||||
const opDeleteLoadBalancer = "DeleteLoadBalancer"
|
||||
|
||||
// DeleteLoadBalancerRequest generates a request for the DeleteLoadBalancer operation.
|
||||
// DeleteLoadBalancerRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the DeleteLoadBalancer operation. The "output" return
|
||||
// value can be used to capture response data after the request's "Send" method
|
||||
// is called.
|
||||
//
|
||||
// Creating a request object using this method should be used when you want to inject
|
||||
// custom logic into the request's lifecycle using a custom handler, or if you want to
|
||||
// access properties on the request object before or after sending the request. If
|
||||
// you just want the service response, call the DeleteLoadBalancer method directly
|
||||
// instead.
|
||||
//
|
||||
// Note: You must call the "Send" method on the returned request object in order
|
||||
// to execute the request.
|
||||
//
|
||||
// // Example sending a request using the DeleteLoadBalancerRequest method.
|
||||
// req, resp := client.DeleteLoadBalancerRequest(params)
|
||||
//
|
||||
// err := req.Send()
|
||||
// if err == nil { // resp is now filled
|
||||
// fmt.Println(resp)
|
||||
// }
|
||||
//
|
||||
func (c *ELB) DeleteLoadBalancerRequest(input *DeleteLoadBalancerInput) (req *request.Request, output *DeleteLoadBalancerOutput) {
|
||||
op := &request.Operation{
|
||||
Name: opDeleteLoadBalancer,
|
||||
|
@ -365,7 +575,28 @@ func (c *ELB) DeleteLoadBalancer(input *DeleteLoadBalancerInput) (*DeleteLoadBal
|
|||
|
||||
const opDeleteLoadBalancerListeners = "DeleteLoadBalancerListeners"
|
||||
|
||||
// DeleteLoadBalancerListenersRequest generates a request for the DeleteLoadBalancerListeners operation.
|
||||
// DeleteLoadBalancerListenersRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the DeleteLoadBalancerListeners operation. The "output" return
|
||||
// value can be used to capture response data after the request's "Send" method
|
||||
// is called.
|
||||
//
|
||||
// Creating a request object using this method should be used when you want to inject
|
||||
// custom logic into the request's lifecycle using a custom handler, or if you want to
|
||||
// access properties on the request object before or after sending the request. If
|
||||
// you just want the service response, call the DeleteLoadBalancerListeners method directly
|
||||
// instead.
|
||||
//
|
||||
// Note: You must call the "Send" method on the returned request object in order
|
||||
// to execute the request.
|
||||
//
|
||||
// // Example sending a request using the DeleteLoadBalancerListenersRequest method.
|
||||
// req, resp := client.DeleteLoadBalancerListenersRequest(params)
|
||||
//
|
||||
// err := req.Send()
|
||||
// if err == nil { // resp is now filled
|
||||
// fmt.Println(resp)
|
||||
// }
|
||||
//
|
||||
func (c *ELB) DeleteLoadBalancerListenersRequest(input *DeleteLoadBalancerListenersInput) (req *request.Request, output *DeleteLoadBalancerListenersOutput) {
|
||||
op := &request.Operation{
|
||||
Name: opDeleteLoadBalancerListeners,
|
||||
|
@ -392,7 +623,28 @@ func (c *ELB) DeleteLoadBalancerListeners(input *DeleteLoadBalancerListenersInpu
|
|||
|
||||
const opDeleteLoadBalancerPolicy = "DeleteLoadBalancerPolicy"
|
||||
|
||||
// DeleteLoadBalancerPolicyRequest generates a request for the DeleteLoadBalancerPolicy operation.
|
||||
// DeleteLoadBalancerPolicyRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the DeleteLoadBalancerPolicy operation. The "output" return
|
||||
// value can be used to capture response data after the request's "Send" method
|
||||
// is called.
|
||||
//
|
||||
// Creating a request object using this method should be used when you want to inject
|
||||
// custom logic into the request's lifecycle using a custom handler, or if you want to
|
||||
// access properties on the request object before or after sending the request. If
|
||||
// you just want the service response, call the DeleteLoadBalancerPolicy method directly
|
||||
// instead.
|
||||
//
|
||||
// Note: You must call the "Send" method on the returned request object in order
|
||||
// to execute the request.
|
||||
//
|
||||
// // Example sending a request using the DeleteLoadBalancerPolicyRequest method.
|
||||
// req, resp := client.DeleteLoadBalancerPolicyRequest(params)
|
||||
//
|
||||
// err := req.Send()
|
||||
// if err == nil { // resp is now filled
|
||||
// fmt.Println(resp)
|
||||
// }
|
||||
//
|
||||
func (c *ELB) DeleteLoadBalancerPolicyRequest(input *DeleteLoadBalancerPolicyInput) (req *request.Request, output *DeleteLoadBalancerPolicyOutput) {
|
||||
op := &request.Operation{
|
||||
Name: opDeleteLoadBalancerPolicy,
|
||||
|
@ -420,7 +672,28 @@ func (c *ELB) DeleteLoadBalancerPolicy(input *DeleteLoadBalancerPolicyInput) (*D
|
|||
|
||||
const opDeregisterInstancesFromLoadBalancer = "DeregisterInstancesFromLoadBalancer"
|
||||
|
||||
// DeregisterInstancesFromLoadBalancerRequest generates a request for the DeregisterInstancesFromLoadBalancer operation.
|
||||
// DeregisterInstancesFromLoadBalancerRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the DeregisterInstancesFromLoadBalancer operation. The "output" return
|
||||
// value can be used to capture response data after the request's "Send" method
|
||||
// is called.
|
||||
//
|
||||
// Creating a request object using this method should be used when you want to inject
|
||||
// custom logic into the request's lifecycle using a custom handler, or if you want to
|
||||
// access properties on the request object before or after sending the request. If
|
||||
// you just want the service response, call the DeregisterInstancesFromLoadBalancer method directly
|
||||
// instead.
|
||||
//
|
||||
// Note: You must call the "Send" method on the returned request object in order
|
||||
// to execute the request.
|
||||
//
|
||||
// // Example sending a request using the DeregisterInstancesFromLoadBalancerRequest method.
|
||||
// req, resp := client.DeregisterInstancesFromLoadBalancerRequest(params)
|
||||
//
|
||||
// err := req.Send()
|
||||
// if err == nil { // resp is now filled
|
||||
// fmt.Println(resp)
|
||||
// }
|
||||
//
|
||||
func (c *ELB) DeregisterInstancesFromLoadBalancerRequest(input *DeregisterInstancesFromLoadBalancerInput) (req *request.Request, output *DeregisterInstancesFromLoadBalancerOutput) {
|
||||
op := &request.Operation{
|
||||
Name: opDeregisterInstancesFromLoadBalancer,
|
||||
|
@ -455,7 +728,28 @@ func (c *ELB) DeregisterInstancesFromLoadBalancer(input *DeregisterInstancesFrom
|
|||
|
||||
const opDescribeInstanceHealth = "DescribeInstanceHealth"
|
||||
|
||||
// DescribeInstanceHealthRequest generates a request for the DescribeInstanceHealth operation.
|
||||
// DescribeInstanceHealthRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the DescribeInstanceHealth operation. The "output" return
|
||||
// value can be used to capture response data after the request's "Send" method
|
||||
// is called.
|
||||
//
|
||||
// Creating a request object using this method should be used when you want to inject
|
||||
// custom logic into the request's lifecycle using a custom handler, or if you want to
|
||||
// access properties on the request object before or after sending the request. If
|
||||
// you just want the service response, call the DescribeInstanceHealth method directly
|
||||
// instead.
|
||||
//
|
||||
// Note: You must call the "Send" method on the returned request object in order
|
||||
// to execute the request.
|
||||
//
|
||||
// // Example sending a request using the DescribeInstanceHealthRequest method.
|
||||
// req, resp := client.DescribeInstanceHealthRequest(params)
|
||||
//
|
||||
// err := req.Send()
|
||||
// if err == nil { // resp is now filled
|
||||
// fmt.Println(resp)
|
||||
// }
|
||||
//
|
||||
func (c *ELB) DescribeInstanceHealthRequest(input *DescribeInstanceHealthInput) (req *request.Request, output *DescribeInstanceHealthOutput) {
|
||||
op := &request.Operation{
|
||||
Name: opDescribeInstanceHealth,
|
||||
|
@ -487,7 +781,28 @@ func (c *ELB) DescribeInstanceHealth(input *DescribeInstanceHealthInput) (*Descr
|
|||
|
||||
const opDescribeLoadBalancerAttributes = "DescribeLoadBalancerAttributes"
|
||||
|
||||
// DescribeLoadBalancerAttributesRequest generates a request for the DescribeLoadBalancerAttributes operation.
|
||||
// DescribeLoadBalancerAttributesRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the DescribeLoadBalancerAttributes operation. The "output" return
|
||||
// value can be used to capture response data after the request's "Send" method
|
||||
// is called.
|
||||
//
|
||||
// Creating a request object using this method should be used when you want to inject
|
||||
// custom logic into the request's lifecycle using a custom handler, or if you want to
|
||||
// access properties on the request object before or after sending the request. If
|
||||
// you just want the service response, call the DescribeLoadBalancerAttributes method directly
|
||||
// instead.
|
||||
//
|
||||
// Note: You must call the "Send" method on the returned request object in order
|
||||
// to execute the request.
|
||||
//
|
||||
// // Example sending a request using the DescribeLoadBalancerAttributesRequest method.
|
||||
// req, resp := client.DescribeLoadBalancerAttributesRequest(params)
|
||||
//
|
||||
// err := req.Send()
|
||||
// if err == nil { // resp is now filled
|
||||
// fmt.Println(resp)
|
||||
// }
|
||||
//
|
||||
func (c *ELB) DescribeLoadBalancerAttributesRequest(input *DescribeLoadBalancerAttributesInput) (req *request.Request, output *DescribeLoadBalancerAttributesOutput) {
|
||||
op := &request.Operation{
|
||||
Name: opDescribeLoadBalancerAttributes,
|
||||
|
@ -514,7 +829,28 @@ func (c *ELB) DescribeLoadBalancerAttributes(input *DescribeLoadBalancerAttribut
|
|||
|
||||
const opDescribeLoadBalancerPolicies = "DescribeLoadBalancerPolicies"
|
||||
|
||||
// DescribeLoadBalancerPoliciesRequest generates a request for the DescribeLoadBalancerPolicies operation.
|
||||
// DescribeLoadBalancerPoliciesRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the DescribeLoadBalancerPolicies operation. The "output" return
|
||||
// value can be used to capture response data after the request's "Send" method
|
||||
// is called.
|
||||
//
|
||||
// Creating a request object using this method should be used when you want to inject
|
||||
// custom logic into the request's lifecycle using a custom handler, or if you want to
|
||||
// access properties on the request object before or after sending the request. If
|
||||
// you just want the service response, call the DescribeLoadBalancerPolicies method directly
|
||||
// instead.
|
||||
//
|
||||
// Note: You must call the "Send" method on the returned request object in order
|
||||
// to execute the request.
|
||||
//
|
||||
// // Example sending a request using the DescribeLoadBalancerPoliciesRequest method.
|
||||
// req, resp := client.DescribeLoadBalancerPoliciesRequest(params)
|
||||
//
|
||||
// err := req.Send()
|
||||
// if err == nil { // resp is now filled
|
||||
// fmt.Println(resp)
|
||||
// }
|
||||
//
|
||||
func (c *ELB) DescribeLoadBalancerPoliciesRequest(input *DescribeLoadBalancerPoliciesInput) (req *request.Request, output *DescribeLoadBalancerPoliciesOutput) {
|
||||
op := &request.Operation{
|
||||
Name: opDescribeLoadBalancerPolicies,
|
||||
|
@ -548,7 +884,28 @@ func (c *ELB) DescribeLoadBalancerPolicies(input *DescribeLoadBalancerPoliciesIn
|
|||
|
||||
const opDescribeLoadBalancerPolicyTypes = "DescribeLoadBalancerPolicyTypes"
|
||||
|
||||
// DescribeLoadBalancerPolicyTypesRequest generates a request for the DescribeLoadBalancerPolicyTypes operation.
|
||||
// DescribeLoadBalancerPolicyTypesRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the DescribeLoadBalancerPolicyTypes operation. The "output" return
|
||||
// value can be used to capture response data after the request's "Send" method
|
||||
// is called.
|
||||
//
|
||||
// Creating a request object using this method should be used when you want to inject
|
||||
// custom logic into the request's lifecycle using a custom handler, or if you want to
|
||||
// access properties on the request object before or after sending the request. If
|
||||
// you just want the service response, call the DescribeLoadBalancerPolicyTypes method directly
|
||||
// instead.
|
||||
//
|
||||
// Note: You must call the "Send" method on the returned request object in order
|
||||
// to execute the request.
|
||||
//
|
||||
// // Example sending a request using the DescribeLoadBalancerPolicyTypesRequest method.
|
||||
// req, resp := client.DescribeLoadBalancerPolicyTypesRequest(params)
|
||||
//
|
||||
// err := req.Send()
|
||||
// if err == nil { // resp is now filled
|
||||
// fmt.Println(resp)
|
||||
// }
|
||||
//
|
||||
func (c *ELB) DescribeLoadBalancerPolicyTypesRequest(input *DescribeLoadBalancerPolicyTypesInput) (req *request.Request, output *DescribeLoadBalancerPolicyTypesOutput) {
|
||||
op := &request.Operation{
|
||||
Name: opDescribeLoadBalancerPolicyTypes,
|
||||
|
@ -578,7 +935,28 @@ func (c *ELB) DescribeLoadBalancerPolicyTypes(input *DescribeLoadBalancerPolicyT
|
|||
|
||||
const opDescribeLoadBalancers = "DescribeLoadBalancers"
|
||||
|
||||
// DescribeLoadBalancersRequest generates a request for the DescribeLoadBalancers operation.
|
||||
// DescribeLoadBalancersRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the DescribeLoadBalancers operation. The "output" return
|
||||
// value can be used to capture response data after the request's "Send" method
|
||||
// is called.
|
||||
//
|
||||
// Creating a request object using this method should be used when you want to inject
|
||||
// custom logic into the request's lifecycle using a custom handler, or if you want to
|
||||
// access properties on the request object before or after sending the request. If
|
||||
// you just want the service response, call the DescribeLoadBalancers method directly
|
||||
// instead.
|
||||
//
|
||||
// Note: You must call the "Send" method on the returned request object in order
|
||||
// to execute the request.
|
||||
//
|
||||
// // Example sending a request using the DescribeLoadBalancersRequest method.
|
||||
// req, resp := client.DescribeLoadBalancersRequest(params)
|
||||
//
|
||||
// err := req.Send()
|
||||
// if err == nil { // resp is now filled
|
||||
// fmt.Println(resp)
|
||||
// }
|
||||
//
|
||||
func (c *ELB) DescribeLoadBalancersRequest(input *DescribeLoadBalancersInput) (req *request.Request, output *DescribeLoadBalancersOutput) {
|
||||
op := &request.Operation{
|
||||
Name: opDescribeLoadBalancers,
|
||||
|
@ -610,6 +988,23 @@ func (c *ELB) DescribeLoadBalancers(input *DescribeLoadBalancersInput) (*Describ
|
|||
return out, err
|
||||
}
|
||||
|
||||
// DescribeLoadBalancersPages iterates over the pages of a DescribeLoadBalancers operation,
|
||||
// calling the "fn" function with the response data for each page. To stop
|
||||
// iterating, return false from the fn function.
|
||||
//
|
||||
// See DescribeLoadBalancers 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 DescribeLoadBalancers operation.
|
||||
// pageNum := 0
|
||||
// err := client.DescribeLoadBalancersPages(params,
|
||||
// func(page *DescribeLoadBalancersOutput, lastPage bool) bool {
|
||||
// pageNum++
|
||||
// fmt.Println(page)
|
||||
// return pageNum <= 3
|
||||
// })
|
||||
//
|
||||
func (c *ELB) DescribeLoadBalancersPages(input *DescribeLoadBalancersInput, fn func(p *DescribeLoadBalancersOutput, lastPage bool) (shouldContinue bool)) error {
|
||||
page, _ := c.DescribeLoadBalancersRequest(input)
|
||||
page.Handlers.Build.PushBack(request.MakeAddToUserAgentFreeFormHandler("Paginator"))
|
||||
|
@ -620,7 +1015,28 @@ func (c *ELB) DescribeLoadBalancersPages(input *DescribeLoadBalancersInput, fn f
|
|||
|
||||
const opDescribeTags = "DescribeTags"
|
||||
|
||||
// DescribeTagsRequest generates a request for the DescribeTags operation.
|
||||
// DescribeTagsRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the DescribeTags operation. The "output" return
|
||||
// value can be used to capture response data after the request's "Send" method
|
||||
// is called.
|
||||
//
|
||||
// Creating a request object using this method should be used when you want to inject
|
||||
// custom logic into the request's lifecycle using a custom handler, or if you want to
|
||||
// access properties on the request object before or after sending the request. If
|
||||
// you just want the service response, call the DescribeTags method directly
|
||||
// instead.
|
||||
//
|
||||
// Note: You must call the "Send" method on the returned request object in order
|
||||
// to execute the request.
|
||||
//
|
||||
// // Example sending a request using the DescribeTagsRequest method.
|
||||
// req, resp := client.DescribeTagsRequest(params)
|
||||
//
|
||||
// err := req.Send()
|
||||
// if err == nil { // resp is now filled
|
||||
// fmt.Println(resp)
|
||||
// }
|
||||
//
|
||||
func (c *ELB) DescribeTagsRequest(input *DescribeTagsInput) (req *request.Request, output *DescribeTagsOutput) {
|
||||
op := &request.Operation{
|
||||
Name: opDescribeTags,
|
||||
|
@ -647,7 +1063,28 @@ func (c *ELB) DescribeTags(input *DescribeTagsInput) (*DescribeTagsOutput, error
|
|||
|
||||
const opDetachLoadBalancerFromSubnets = "DetachLoadBalancerFromSubnets"
|
||||
|
||||
// DetachLoadBalancerFromSubnetsRequest generates a request for the DetachLoadBalancerFromSubnets operation.
|
||||
// DetachLoadBalancerFromSubnetsRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the DetachLoadBalancerFromSubnets operation. The "output" return
|
||||
// value can be used to capture response data after the request's "Send" method
|
||||
// is called.
|
||||
//
|
||||
// Creating a request object using this method should be used when you want to inject
|
||||
// custom logic into the request's lifecycle using a custom handler, or if you want to
|
||||
// access properties on the request object before or after sending the request. If
|
||||
// you just want the service response, call the DetachLoadBalancerFromSubnets method directly
|
||||
// instead.
|
||||
//
|
||||
// Note: You must call the "Send" method on the returned request object in order
|
||||
// to execute the request.
|
||||
//
|
||||
// // Example sending a request using the DetachLoadBalancerFromSubnetsRequest method.
|
||||
// req, resp := client.DetachLoadBalancerFromSubnetsRequest(params)
|
||||
//
|
||||
// err := req.Send()
|
||||
// if err == nil { // resp is now filled
|
||||
// fmt.Println(resp)
|
||||
// }
|
||||
//
|
||||
func (c *ELB) DetachLoadBalancerFromSubnetsRequest(input *DetachLoadBalancerFromSubnetsInput) (req *request.Request, output *DetachLoadBalancerFromSubnetsOutput) {
|
||||
op := &request.Operation{
|
||||
Name: opDetachLoadBalancerFromSubnets,
|
||||
|
@ -679,7 +1116,28 @@ func (c *ELB) DetachLoadBalancerFromSubnets(input *DetachLoadBalancerFromSubnets
|
|||
|
||||
const opDisableAvailabilityZonesForLoadBalancer = "DisableAvailabilityZonesForLoadBalancer"
|
||||
|
||||
// DisableAvailabilityZonesForLoadBalancerRequest generates a request for the DisableAvailabilityZonesForLoadBalancer operation.
|
||||
// DisableAvailabilityZonesForLoadBalancerRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the DisableAvailabilityZonesForLoadBalancer operation. The "output" return
|
||||
// value can be used to capture response data after the request's "Send" method
|
||||
// is called.
|
||||
//
|
||||
// Creating a request object using this method should be used when you want to inject
|
||||
// custom logic into the request's lifecycle using a custom handler, or if you want to
|
||||
// access properties on the request object before or after sending the request. If
|
||||
// you just want the service response, call the DisableAvailabilityZonesForLoadBalancer method directly
|
||||
// instead.
|
||||
//
|
||||
// Note: You must call the "Send" method on the returned request object in order
|
||||
// to execute the request.
|
||||
//
|
||||
// // Example sending a request using the DisableAvailabilityZonesForLoadBalancerRequest method.
|
||||
// req, resp := client.DisableAvailabilityZonesForLoadBalancerRequest(params)
|
||||
//
|
||||
// err := req.Send()
|
||||
// if err == nil { // resp is now filled
|
||||
// fmt.Println(resp)
|
||||
// }
|
||||
//
|
||||
func (c *ELB) DisableAvailabilityZonesForLoadBalancerRequest(input *DisableAvailabilityZonesForLoadBalancerInput) (req *request.Request, output *DisableAvailabilityZonesForLoadBalancerOutput) {
|
||||
op := &request.Operation{
|
||||
Name: opDisableAvailabilityZonesForLoadBalancer,
|
||||
|
@ -717,7 +1175,28 @@ func (c *ELB) DisableAvailabilityZonesForLoadBalancer(input *DisableAvailability
|
|||
|
||||
const opEnableAvailabilityZonesForLoadBalancer = "EnableAvailabilityZonesForLoadBalancer"
|
||||
|
||||
// EnableAvailabilityZonesForLoadBalancerRequest generates a request for the EnableAvailabilityZonesForLoadBalancer operation.
|
||||
// EnableAvailabilityZonesForLoadBalancerRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the EnableAvailabilityZonesForLoadBalancer operation. The "output" return
|
||||
// value can be used to capture response data after the request's "Send" method
|
||||
// is called.
|
||||
//
|
||||
// Creating a request object using this method should be used when you want to inject
|
||||
// custom logic into the request's lifecycle using a custom handler, or if you want to
|
||||
// access properties on the request object before or after sending the request. If
|
||||
// you just want the service response, call the EnableAvailabilityZonesForLoadBalancer method directly
|
||||
// instead.
|
||||
//
|
||||
// Note: You must call the "Send" method on the returned request object in order
|
||||
// to execute the request.
|
||||
//
|
||||
// // Example sending a request using the EnableAvailabilityZonesForLoadBalancerRequest method.
|
||||
// req, resp := client.EnableAvailabilityZonesForLoadBalancerRequest(params)
|
||||
//
|
||||
// err := req.Send()
|
||||
// if err == nil { // resp is now filled
|
||||
// fmt.Println(resp)
|
||||
// }
|
||||
//
|
||||
func (c *ELB) EnableAvailabilityZonesForLoadBalancerRequest(input *EnableAvailabilityZonesForLoadBalancerInput) (req *request.Request, output *EnableAvailabilityZonesForLoadBalancerOutput) {
|
||||
op := &request.Operation{
|
||||
Name: opEnableAvailabilityZonesForLoadBalancer,
|
||||
|
@ -751,7 +1230,28 @@ func (c *ELB) EnableAvailabilityZonesForLoadBalancer(input *EnableAvailabilityZo
|
|||
|
||||
const opModifyLoadBalancerAttributes = "ModifyLoadBalancerAttributes"
|
||||
|
||||
// ModifyLoadBalancerAttributesRequest generates a request for the ModifyLoadBalancerAttributes operation.
|
||||
// ModifyLoadBalancerAttributesRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the ModifyLoadBalancerAttributes operation. The "output" return
|
||||
// value can be used to capture response data after the request's "Send" method
|
||||
// is called.
|
||||
//
|
||||
// Creating a request object using this method should be used when you want to inject
|
||||
// custom logic into the request's lifecycle using a custom handler, or if you want to
|
||||
// access properties on the request object before or after sending the request. If
|
||||
// you just want the service response, call the ModifyLoadBalancerAttributes method directly
|
||||
// instead.
|
||||
//
|
||||
// Note: You must call the "Send" method on the returned request object in order
|
||||
// to execute the request.
|
||||
//
|
||||
// // Example sending a request using the ModifyLoadBalancerAttributesRequest method.
|
||||
// req, resp := client.ModifyLoadBalancerAttributesRequest(params)
|
||||
//
|
||||
// err := req.Send()
|
||||
// if err == nil { // resp is now filled
|
||||
// fmt.Println(resp)
|
||||
// }
|
||||
//
|
||||
func (c *ELB) ModifyLoadBalancerAttributesRequest(input *ModifyLoadBalancerAttributesInput) (req *request.Request, output *ModifyLoadBalancerAttributesOutput) {
|
||||
op := &request.Operation{
|
||||
Name: opModifyLoadBalancerAttributes,
|
||||
|
@ -791,7 +1291,28 @@ func (c *ELB) ModifyLoadBalancerAttributes(input *ModifyLoadBalancerAttributesIn
|
|||
|
||||
const opRegisterInstancesWithLoadBalancer = "RegisterInstancesWithLoadBalancer"
|
||||
|
||||
// RegisterInstancesWithLoadBalancerRequest generates a request for the RegisterInstancesWithLoadBalancer operation.
|
||||
// RegisterInstancesWithLoadBalancerRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the RegisterInstancesWithLoadBalancer operation. The "output" return
|
||||
// value can be used to capture response data after the request's "Send" method
|
||||
// is called.
|
||||
//
|
||||
// Creating a request object using this method should be used when you want to inject
|
||||
// custom logic into the request's lifecycle using a custom handler, or if you want to
|
||||
// access properties on the request object before or after sending the request. If
|
||||
// you just want the service response, call the RegisterInstancesWithLoadBalancer method directly
|
||||
// instead.
|
||||
//
|
||||
// Note: You must call the "Send" method on the returned request object in order
|
||||
// to execute the request.
|
||||
//
|
||||
// // Example sending a request using the RegisterInstancesWithLoadBalancerRequest method.
|
||||
// req, resp := client.RegisterInstancesWithLoadBalancerRequest(params)
|
||||
//
|
||||
// err := req.Send()
|
||||
// if err == nil { // resp is now filled
|
||||
// fmt.Println(resp)
|
||||
// }
|
||||
//
|
||||
func (c *ELB) RegisterInstancesWithLoadBalancerRequest(input *RegisterInstancesWithLoadBalancerInput) (req *request.Request, output *RegisterInstancesWithLoadBalancerOutput) {
|
||||
op := &request.Operation{
|
||||
Name: opRegisterInstancesWithLoadBalancer,
|
||||
|
@ -845,7 +1366,28 @@ func (c *ELB) RegisterInstancesWithLoadBalancer(input *RegisterInstancesWithLoad
|
|||
|
||||
const opRemoveTags = "RemoveTags"
|
||||
|
||||
// RemoveTagsRequest generates a request for the RemoveTags operation.
|
||||
// RemoveTagsRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the RemoveTags operation. The "output" return
|
||||
// value can be used to capture response data after the request's "Send" method
|
||||
// is called.
|
||||
//
|
||||
// Creating a request object using this method should be used when you want to inject
|
||||
// custom logic into the request's lifecycle using a custom handler, or if you want to
|
||||
// access properties on the request object before or after sending the request. If
|
||||
// you just want the service response, call the RemoveTags method directly
|
||||
// instead.
|
||||
//
|
||||
// Note: You must call the "Send" method on the returned request object in order
|
||||
// to execute the request.
|
||||
//
|
||||
// // Example sending a request using the RemoveTagsRequest method.
|
||||
// req, resp := client.RemoveTagsRequest(params)
|
||||
//
|
||||
// err := req.Send()
|
||||
// if err == nil { // resp is now filled
|
||||
// fmt.Println(resp)
|
||||
// }
|
||||
//
|
||||
func (c *ELB) RemoveTagsRequest(input *RemoveTagsInput) (req *request.Request, output *RemoveTagsOutput) {
|
||||
op := &request.Operation{
|
||||
Name: opRemoveTags,
|
||||
|
@ -872,7 +1414,28 @@ func (c *ELB) RemoveTags(input *RemoveTagsInput) (*RemoveTagsOutput, error) {
|
|||
|
||||
const opSetLoadBalancerListenerSSLCertificate = "SetLoadBalancerListenerSSLCertificate"
|
||||
|
||||
// SetLoadBalancerListenerSSLCertificateRequest generates a request for the SetLoadBalancerListenerSSLCertificate operation.
|
||||
// SetLoadBalancerListenerSSLCertificateRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the SetLoadBalancerListenerSSLCertificate operation. The "output" return
|
||||
// value can be used to capture response data after the request's "Send" method
|
||||
// is called.
|
||||
//
|
||||
// Creating a request object using this method should be used when you want to inject
|
||||
// custom logic into the request's lifecycle using a custom handler, or if you want to
|
||||
// access properties on the request object before or after sending the request. If
|
||||
// you just want the service response, call the SetLoadBalancerListenerSSLCertificate method directly
|
||||
// instead.
|
||||
//
|
||||
// Note: You must call the "Send" method on the returned request object in order
|
||||
// to execute the request.
|
||||
//
|
||||
// // Example sending a request using the SetLoadBalancerListenerSSLCertificateRequest method.
|
||||
// req, resp := client.SetLoadBalancerListenerSSLCertificateRequest(params)
|
||||
//
|
||||
// err := req.Send()
|
||||
// if err == nil { // resp is now filled
|
||||
// fmt.Println(resp)
|
||||
// }
|
||||
//
|
||||
func (c *ELB) SetLoadBalancerListenerSSLCertificateRequest(input *SetLoadBalancerListenerSSLCertificateInput) (req *request.Request, output *SetLoadBalancerListenerSSLCertificateOutput) {
|
||||
op := &request.Operation{
|
||||
Name: opSetLoadBalancerListenerSSLCertificate,
|
||||
|
@ -905,7 +1468,28 @@ func (c *ELB) SetLoadBalancerListenerSSLCertificate(input *SetLoadBalancerListen
|
|||
|
||||
const opSetLoadBalancerPoliciesForBackendServer = "SetLoadBalancerPoliciesForBackendServer"
|
||||
|
||||
// SetLoadBalancerPoliciesForBackendServerRequest generates a request for the SetLoadBalancerPoliciesForBackendServer operation.
|
||||
// SetLoadBalancerPoliciesForBackendServerRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the SetLoadBalancerPoliciesForBackendServer operation. The "output" return
|
||||
// value can be used to capture response data after the request's "Send" method
|
||||
// is called.
|
||||
//
|
||||
// Creating a request object using this method should be used when you want to inject
|
||||
// custom logic into the request's lifecycle using a custom handler, or if you want to
|
||||
// access properties on the request object before or after sending the request. If
|
||||
// you just want the service response, call the SetLoadBalancerPoliciesForBackendServer method directly
|
||||
// instead.
|
||||
//
|
||||
// Note: You must call the "Send" method on the returned request object in order
|
||||
// to execute the request.
|
||||
//
|
||||
// // Example sending a request using the SetLoadBalancerPoliciesForBackendServerRequest method.
|
||||
// req, resp := client.SetLoadBalancerPoliciesForBackendServerRequest(params)
|
||||
//
|
||||
// err := req.Send()
|
||||
// if err == nil { // resp is now filled
|
||||
// fmt.Println(resp)
|
||||
// }
|
||||
//
|
||||
func (c *ELB) SetLoadBalancerPoliciesForBackendServerRequest(input *SetLoadBalancerPoliciesForBackendServerInput) (req *request.Request, output *SetLoadBalancerPoliciesForBackendServerOutput) {
|
||||
op := &request.Operation{
|
||||
Name: opSetLoadBalancerPoliciesForBackendServer,
|
||||
|
@ -942,7 +1526,28 @@ func (c *ELB) SetLoadBalancerPoliciesForBackendServer(input *SetLoadBalancerPoli
|
|||
|
||||
const opSetLoadBalancerPoliciesOfListener = "SetLoadBalancerPoliciesOfListener"
|
||||
|
||||
// SetLoadBalancerPoliciesOfListenerRequest generates a request for the SetLoadBalancerPoliciesOfListener operation.
|
||||
// SetLoadBalancerPoliciesOfListenerRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the SetLoadBalancerPoliciesOfListener operation. The "output" return
|
||||
// value can be used to capture response data after the request's "Send" method
|
||||
// is called.
|
||||
//
|
||||
// Creating a request object using this method should be used when you want to inject
|
||||
// custom logic into the request's lifecycle using a custom handler, or if you want to
|
||||
// access properties on the request object before or after sending the request. If
|
||||
// you just want the service response, call the SetLoadBalancerPoliciesOfListener method directly
|
||||
// instead.
|
||||
//
|
||||
// Note: You must call the "Send" method on the returned request object in order
|
||||
// to execute the request.
|
||||
//
|
||||
// // Example sending a request using the SetLoadBalancerPoliciesOfListenerRequest method.
|
||||
// req, resp := client.SetLoadBalancerPoliciesOfListenerRequest(params)
|
||||
//
|
||||
// err := req.Send()
|
||||
// if err == nil { // resp is now filled
|
||||
// fmt.Println(resp)
|
||||
// }
|
||||
//
|
||||
func (c *ELB) SetLoadBalancerPoliciesOfListenerRequest(input *SetLoadBalancerPoliciesOfListenerInput) (req *request.Request, output *SetLoadBalancerPoliciesOfListenerOutput) {
|
||||
op := &request.Operation{
|
||||
Name: opSetLoadBalancerPoliciesOfListener,
|
||||
|
|
|
@ -7,8 +7,8 @@ import (
|
|||
"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/query"
|
||||
"github.com/aws/aws-sdk-go/private/signer/v4"
|
||||
)
|
||||
|
||||
// Elastic Load Balancing distributes incoming traffic across your EC2 instances.
|
||||
|
@ -70,7 +70,7 @@ func newClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegio
|
|||
}
|
||||
|
||||
// Handlers
|
||||
svc.Handlers.Sign.PushBack(v4.Sign)
|
||||
svc.Handlers.Sign.PushBackNamed(v4.SignRequestHandler)
|
||||
svc.Handlers.Build.PushBackNamed(query.BuildHandler)
|
||||
svc.Handlers.Unmarshal.PushBackNamed(query.UnmarshalHandler)
|
||||
svc.Handlers.UnmarshalMeta.PushBackNamed(query.UnmarshalMetaHandler)
|
||||
|
|
File diff suppressed because it is too large
Load Diff
|
@ -1,617 +0,0 @@
|
|||
// THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT.
|
||||
|
||||
package emr_test
|
||||
|
||||
import (
|
||||
"bytes"
|
||||
"fmt"
|
||||
"time"
|
||||
|
||||
"github.com/aws/aws-sdk-go/aws"
|
||||
"github.com/aws/aws-sdk-go/aws/session"
|
||||
"github.com/aws/aws-sdk-go/service/emr"
|
||||
)
|
||||
|
||||
var _ time.Duration
|
||||
var _ bytes.Buffer
|
||||
|
||||
func ExampleEMR_AddInstanceGroups() {
|
||||
svc := emr.New(session.New())
|
||||
|
||||
params := &emr.AddInstanceGroupsInput{
|
||||
InstanceGroups: []*emr.InstanceGroupConfig{ // Required
|
||||
{ // Required
|
||||
InstanceCount: aws.Int64(1), // Required
|
||||
InstanceRole: aws.String("InstanceRoleType"), // Required
|
||||
InstanceType: aws.String("InstanceType"), // Required
|
||||
BidPrice: aws.String("XmlStringMaxLen256"),
|
||||
Configurations: []*emr.Configuration{
|
||||
{ // Required
|
||||
Classification: aws.String("String"),
|
||||
Configurations: []*emr.Configuration{
|
||||
// Recursive values...
|
||||
},
|
||||
Properties: map[string]*string{
|
||||
"Key": aws.String("String"), // Required
|
||||
// More values...
|
||||
},
|
||||
},
|
||||
// More values...
|
||||
},
|
||||
EbsConfiguration: &emr.EbsConfiguration{
|
||||
EbsBlockDeviceConfigs: []*emr.EbsBlockDeviceConfig{
|
||||
{ // Required
|
||||
VolumeSpecification: &emr.VolumeSpecification{ // Required
|
||||
SizeInGB: aws.Int64(1), // Required
|
||||
VolumeType: aws.String("String"), // Required
|
||||
Iops: aws.Int64(1),
|
||||
},
|
||||
VolumesPerInstance: aws.Int64(1),
|
||||
},
|
||||
// More values...
|
||||
},
|
||||
EbsOptimized: aws.Bool(true),
|
||||
},
|
||||
Market: aws.String("MarketType"),
|
||||
Name: aws.String("XmlStringMaxLen256"),
|
||||
},
|
||||
// More values...
|
||||
},
|
||||
JobFlowId: aws.String("XmlStringMaxLen256"), // Required
|
||||
}
|
||||
resp, err := svc.AddInstanceGroups(params)
|
||||
|
||||
if err != nil {
|
||||
// Print the error, cast err to awserr.Error to get the Code and
|
||||
// Message from an error.
|
||||
fmt.Println(err.Error())
|
||||
return
|
||||
}
|
||||
|
||||
// Pretty-print the response data.
|
||||
fmt.Println(resp)
|
||||
}
|
||||
|
||||
func ExampleEMR_AddJobFlowSteps() {
|
||||
svc := emr.New(session.New())
|
||||
|
||||
params := &emr.AddJobFlowStepsInput{
|
||||
JobFlowId: aws.String("XmlStringMaxLen256"), // Required
|
||||
Steps: []*emr.StepConfig{ // Required
|
||||
{ // Required
|
||||
HadoopJarStep: &emr.HadoopJarStepConfig{ // Required
|
||||
Jar: aws.String("XmlString"), // Required
|
||||
Args: []*string{
|
||||
aws.String("XmlString"), // Required
|
||||
// More values...
|
||||
},
|
||||
MainClass: aws.String("XmlString"),
|
||||
Properties: []*emr.KeyValue{
|
||||
{ // Required
|
||||
Key: aws.String("XmlString"),
|
||||
Value: aws.String("XmlString"),
|
||||
},
|
||||
// More values...
|
||||
},
|
||||
},
|
||||
Name: aws.String("XmlStringMaxLen256"), // Required
|
||||
ActionOnFailure: aws.String("ActionOnFailure"),
|
||||
},
|
||||
// More values...
|
||||
},
|
||||
}
|
||||
resp, err := svc.AddJobFlowSteps(params)
|
||||
|
||||
if err != nil {
|
||||
// Print the error, cast err to awserr.Error to get the Code and
|
||||
// Message from an error.
|
||||
fmt.Println(err.Error())
|
||||
return
|
||||
}
|
||||
|
||||
// Pretty-print the response data.
|
||||
fmt.Println(resp)
|
||||
}
|
||||
|
||||
func ExampleEMR_AddTags() {
|
||||
svc := emr.New(session.New())
|
||||
|
||||
params := &emr.AddTagsInput{
|
||||
ResourceId: aws.String("ResourceId"), // Required
|
||||
Tags: []*emr.Tag{ // Required
|
||||
{ // Required
|
||||
Key: aws.String("String"),
|
||||
Value: aws.String("String"),
|
||||
},
|
||||
// More values...
|
||||
},
|
||||
}
|
||||
resp, err := svc.AddTags(params)
|
||||
|
||||
if err != nil {
|
||||
// Print the error, cast err to awserr.Error to get the Code and
|
||||
// Message from an error.
|
||||
fmt.Println(err.Error())
|
||||
return
|
||||
}
|
||||
|
||||
// Pretty-print the response data.
|
||||
fmt.Println(resp)
|
||||
}
|
||||
|
||||
func ExampleEMR_DescribeCluster() {
|
||||
svc := emr.New(session.New())
|
||||
|
||||
params := &emr.DescribeClusterInput{
|
||||
ClusterId: aws.String("ClusterId"), // Required
|
||||
}
|
||||
resp, err := svc.DescribeCluster(params)
|
||||
|
||||
if err != nil {
|
||||
// Print the error, cast err to awserr.Error to get the Code and
|
||||
// Message from an error.
|
||||
fmt.Println(err.Error())
|
||||
return
|
||||
}
|
||||
|
||||
// Pretty-print the response data.
|
||||
fmt.Println(resp)
|
||||
}
|
||||
|
||||
func ExampleEMR_DescribeJobFlows() {
|
||||
svc := emr.New(session.New())
|
||||
|
||||
params := &emr.DescribeJobFlowsInput{
|
||||
CreatedAfter: aws.Time(time.Now()),
|
||||
CreatedBefore: aws.Time(time.Now()),
|
||||
JobFlowIds: []*string{
|
||||
aws.String("XmlString"), // Required
|
||||
// More values...
|
||||
},
|
||||
JobFlowStates: []*string{
|
||||
aws.String("JobFlowExecutionState"), // Required
|
||||
// More values...
|
||||
},
|
||||
}
|
||||
resp, err := svc.DescribeJobFlows(params)
|
||||
|
||||
if err != nil {
|
||||
// Print the error, cast err to awserr.Error to get the Code and
|
||||
// Message from an error.
|
||||
fmt.Println(err.Error())
|
||||
return
|
||||
}
|
||||
|
||||
// Pretty-print the response data.
|
||||
fmt.Println(resp)
|
||||
}
|
||||
|
||||
func ExampleEMR_DescribeStep() {
|
||||
svc := emr.New(session.New())
|
||||
|
||||
params := &emr.DescribeStepInput{
|
||||
ClusterId: aws.String("ClusterId"), // Required
|
||||
StepId: aws.String("StepId"), // Required
|
||||
}
|
||||
resp, err := svc.DescribeStep(params)
|
||||
|
||||
if err != nil {
|
||||
// Print the error, cast err to awserr.Error to get the Code and
|
||||
// Message from an error.
|
||||
fmt.Println(err.Error())
|
||||
return
|
||||
}
|
||||
|
||||
// Pretty-print the response data.
|
||||
fmt.Println(resp)
|
||||
}
|
||||
|
||||
func ExampleEMR_ListBootstrapActions() {
|
||||
svc := emr.New(session.New())
|
||||
|
||||
params := &emr.ListBootstrapActionsInput{
|
||||
ClusterId: aws.String("ClusterId"), // Required
|
||||
Marker: aws.String("Marker"),
|
||||
}
|
||||
resp, err := svc.ListBootstrapActions(params)
|
||||
|
||||
if err != nil {
|
||||
// Print the error, cast err to awserr.Error to get the Code and
|
||||
// Message from an error.
|
||||
fmt.Println(err.Error())
|
||||
return
|
||||
}
|
||||
|
||||
// Pretty-print the response data.
|
||||
fmt.Println(resp)
|
||||
}
|
||||
|
||||
func ExampleEMR_ListClusters() {
|
||||
svc := emr.New(session.New())
|
||||
|
||||
params := &emr.ListClustersInput{
|
||||
ClusterStates: []*string{
|
||||
aws.String("ClusterState"), // Required
|
||||
// More values...
|
||||
},
|
||||
CreatedAfter: aws.Time(time.Now()),
|
||||
CreatedBefore: aws.Time(time.Now()),
|
||||
Marker: aws.String("Marker"),
|
||||
}
|
||||
resp, err := svc.ListClusters(params)
|
||||
|
||||
if err != nil {
|
||||
// Print the error, cast err to awserr.Error to get the Code and
|
||||
// Message from an error.
|
||||
fmt.Println(err.Error())
|
||||
return
|
||||
}
|
||||
|
||||
// Pretty-print the response data.
|
||||
fmt.Println(resp)
|
||||
}
|
||||
|
||||
func ExampleEMR_ListInstanceGroups() {
|
||||
svc := emr.New(session.New())
|
||||
|
||||
params := &emr.ListInstanceGroupsInput{
|
||||
ClusterId: aws.String("ClusterId"), // Required
|
||||
Marker: aws.String("Marker"),
|
||||
}
|
||||
resp, err := svc.ListInstanceGroups(params)
|
||||
|
||||
if err != nil {
|
||||
// Print the error, cast err to awserr.Error to get the Code and
|
||||
// Message from an error.
|
||||
fmt.Println(err.Error())
|
||||
return
|
||||
}
|
||||
|
||||
// Pretty-print the response data.
|
||||
fmt.Println(resp)
|
||||
}
|
||||
|
||||
func ExampleEMR_ListInstances() {
|
||||
svc := emr.New(session.New())
|
||||
|
||||
params := &emr.ListInstancesInput{
|
||||
ClusterId: aws.String("ClusterId"), // Required
|
||||
InstanceGroupId: aws.String("InstanceGroupId"),
|
||||
InstanceGroupTypes: []*string{
|
||||
aws.String("InstanceGroupType"), // Required
|
||||
// More values...
|
||||
},
|
||||
Marker: aws.String("Marker"),
|
||||
}
|
||||
resp, err := svc.ListInstances(params)
|
||||
|
||||
if err != nil {
|
||||
// Print the error, cast err to awserr.Error to get the Code and
|
||||
// Message from an error.
|
||||
fmt.Println(err.Error())
|
||||
return
|
||||
}
|
||||
|
||||
// Pretty-print the response data.
|
||||
fmt.Println(resp)
|
||||
}
|
||||
|
||||
func ExampleEMR_ListSteps() {
|
||||
svc := emr.New(session.New())
|
||||
|
||||
params := &emr.ListStepsInput{
|
||||
ClusterId: aws.String("ClusterId"), // Required
|
||||
Marker: aws.String("Marker"),
|
||||
StepIds: []*string{
|
||||
aws.String("XmlString"), // Required
|
||||
// More values...
|
||||
},
|
||||
StepStates: []*string{
|
||||
aws.String("StepState"), // Required
|
||||
// More values...
|
||||
},
|
||||
}
|
||||
resp, err := svc.ListSteps(params)
|
||||
|
||||
if err != nil {
|
||||
// Print the error, cast err to awserr.Error to get the Code and
|
||||
// Message from an error.
|
||||
fmt.Println(err.Error())
|
||||
return
|
||||
}
|
||||
|
||||
// Pretty-print the response data.
|
||||
fmt.Println(resp)
|
||||
}
|
||||
|
||||
func ExampleEMR_ModifyInstanceGroups() {
|
||||
svc := emr.New(session.New())
|
||||
|
||||
params := &emr.ModifyInstanceGroupsInput{
|
||||
InstanceGroups: []*emr.InstanceGroupModifyConfig{
|
||||
{ // Required
|
||||
InstanceGroupId: aws.String("XmlStringMaxLen256"), // Required
|
||||
EC2InstanceIdsToTerminate: []*string{
|
||||
aws.String("InstanceId"), // Required
|
||||
// More values...
|
||||
},
|
||||
InstanceCount: aws.Int64(1),
|
||||
},
|
||||
// More values...
|
||||
},
|
||||
}
|
||||
resp, err := svc.ModifyInstanceGroups(params)
|
||||
|
||||
if err != nil {
|
||||
// Print the error, cast err to awserr.Error to get the Code and
|
||||
// Message from an error.
|
||||
fmt.Println(err.Error())
|
||||
return
|
||||
}
|
||||
|
||||
// Pretty-print the response data.
|
||||
fmt.Println(resp)
|
||||
}
|
||||
|
||||
func ExampleEMR_RemoveTags() {
|
||||
svc := emr.New(session.New())
|
||||
|
||||
params := &emr.RemoveTagsInput{
|
||||
ResourceId: aws.String("ResourceId"), // Required
|
||||
TagKeys: []*string{ // Required
|
||||
aws.String("String"), // Required
|
||||
// More values...
|
||||
},
|
||||
}
|
||||
resp, err := svc.RemoveTags(params)
|
||||
|
||||
if err != nil {
|
||||
// Print the error, cast err to awserr.Error to get the Code and
|
||||
// Message from an error.
|
||||
fmt.Println(err.Error())
|
||||
return
|
||||
}
|
||||
|
||||
// Pretty-print the response data.
|
||||
fmt.Println(resp)
|
||||
}
|
||||
|
||||
func ExampleEMR_RunJobFlow() {
|
||||
svc := emr.New(session.New())
|
||||
|
||||
params := &emr.RunJobFlowInput{
|
||||
Instances: &emr.JobFlowInstancesConfig{ // Required
|
||||
AdditionalMasterSecurityGroups: []*string{
|
||||
aws.String("XmlStringMaxLen256"), // Required
|
||||
// More values...
|
||||
},
|
||||
AdditionalSlaveSecurityGroups: []*string{
|
||||
aws.String("XmlStringMaxLen256"), // Required
|
||||
// More values...
|
||||
},
|
||||
Ec2KeyName: aws.String("XmlStringMaxLen256"),
|
||||
Ec2SubnetId: aws.String("XmlStringMaxLen256"),
|
||||
EmrManagedMasterSecurityGroup: aws.String("XmlStringMaxLen256"),
|
||||
EmrManagedSlaveSecurityGroup: aws.String("XmlStringMaxLen256"),
|
||||
HadoopVersion: aws.String("XmlStringMaxLen256"),
|
||||
InstanceCount: aws.Int64(1),
|
||||
InstanceGroups: []*emr.InstanceGroupConfig{
|
||||
{ // Required
|
||||
InstanceCount: aws.Int64(1), // Required
|
||||
InstanceRole: aws.String("InstanceRoleType"), // Required
|
||||
InstanceType: aws.String("InstanceType"), // Required
|
||||
BidPrice: aws.String("XmlStringMaxLen256"),
|
||||
Configurations: []*emr.Configuration{
|
||||
{ // Required
|
||||
Classification: aws.String("String"),
|
||||
Configurations: []*emr.Configuration{
|
||||
// Recursive values...
|
||||
},
|
||||
Properties: map[string]*string{
|
||||
"Key": aws.String("String"), // Required
|
||||
// More values...
|
||||
},
|
||||
},
|
||||
// More values...
|
||||
},
|
||||
EbsConfiguration: &emr.EbsConfiguration{
|
||||
EbsBlockDeviceConfigs: []*emr.EbsBlockDeviceConfig{
|
||||
{ // Required
|
||||
VolumeSpecification: &emr.VolumeSpecification{ // Required
|
||||
SizeInGB: aws.Int64(1), // Required
|
||||
VolumeType: aws.String("String"), // Required
|
||||
Iops: aws.Int64(1),
|
||||
},
|
||||
VolumesPerInstance: aws.Int64(1),
|
||||
},
|
||||
// More values...
|
||||
},
|
||||
EbsOptimized: aws.Bool(true),
|
||||
},
|
||||
Market: aws.String("MarketType"),
|
||||
Name: aws.String("XmlStringMaxLen256"),
|
||||
},
|
||||
// More values...
|
||||
},
|
||||
KeepJobFlowAliveWhenNoSteps: aws.Bool(true),
|
||||
MasterInstanceType: aws.String("InstanceType"),
|
||||
Placement: &emr.PlacementType{
|
||||
AvailabilityZone: aws.String("XmlString"), // Required
|
||||
},
|
||||
ServiceAccessSecurityGroup: aws.String("XmlStringMaxLen256"),
|
||||
SlaveInstanceType: aws.String("InstanceType"),
|
||||
TerminationProtected: aws.Bool(true),
|
||||
},
|
||||
Name: aws.String("XmlStringMaxLen256"), // Required
|
||||
AdditionalInfo: aws.String("XmlString"),
|
||||
AmiVersion: aws.String("XmlStringMaxLen256"),
|
||||
Applications: []*emr.Application{
|
||||
{ // Required
|
||||
AdditionalInfo: map[string]*string{
|
||||
"Key": aws.String("String"), // Required
|
||||
// More values...
|
||||
},
|
||||
Args: []*string{
|
||||
aws.String("String"), // Required
|
||||
// More values...
|
||||
},
|
||||
Name: aws.String("String"),
|
||||
Version: aws.String("String"),
|
||||
},
|
||||
// More values...
|
||||
},
|
||||
BootstrapActions: []*emr.BootstrapActionConfig{
|
||||
{ // Required
|
||||
Name: aws.String("XmlStringMaxLen256"), // Required
|
||||
ScriptBootstrapAction: &emr.ScriptBootstrapActionConfig{ // Required
|
||||
Path: aws.String("XmlString"), // Required
|
||||
Args: []*string{
|
||||
aws.String("XmlString"), // Required
|
||||
// More values...
|
||||
},
|
||||
},
|
||||
},
|
||||
// More values...
|
||||
},
|
||||
Configurations: []*emr.Configuration{
|
||||
{ // Required
|
||||
Classification: aws.String("String"),
|
||||
Configurations: []*emr.Configuration{
|
||||
// Recursive values...
|
||||
},
|
||||
Properties: map[string]*string{
|
||||
"Key": aws.String("String"), // Required
|
||||
// More values...
|
||||
},
|
||||
},
|
||||
// More values...
|
||||
},
|
||||
JobFlowRole: aws.String("XmlString"),
|
||||
LogUri: aws.String("XmlString"),
|
||||
NewSupportedProducts: []*emr.SupportedProductConfig{
|
||||
{ // Required
|
||||
Args: []*string{
|
||||
aws.String("XmlString"), // Required
|
||||
// More values...
|
||||
},
|
||||
Name: aws.String("XmlStringMaxLen256"),
|
||||
},
|
||||
// More values...
|
||||
},
|
||||
ReleaseLabel: aws.String("XmlStringMaxLen256"),
|
||||
ServiceRole: aws.String("XmlString"),
|
||||
Steps: []*emr.StepConfig{
|
||||
{ // Required
|
||||
HadoopJarStep: &emr.HadoopJarStepConfig{ // Required
|
||||
Jar: aws.String("XmlString"), // Required
|
||||
Args: []*string{
|
||||
aws.String("XmlString"), // Required
|
||||
// More values...
|
||||
},
|
||||
MainClass: aws.String("XmlString"),
|
||||
Properties: []*emr.KeyValue{
|
||||
{ // Required
|
||||
Key: aws.String("XmlString"),
|
||||
Value: aws.String("XmlString"),
|
||||
},
|
||||
// More values...
|
||||
},
|
||||
},
|
||||
Name: aws.String("XmlStringMaxLen256"), // Required
|
||||
ActionOnFailure: aws.String("ActionOnFailure"),
|
||||
},
|
||||
// More values...
|
||||
},
|
||||
SupportedProducts: []*string{
|
||||
aws.String("XmlStringMaxLen256"), // Required
|
||||
// More values...
|
||||
},
|
||||
Tags: []*emr.Tag{
|
||||
{ // Required
|
||||
Key: aws.String("String"),
|
||||
Value: aws.String("String"),
|
||||
},
|
||||
// More values...
|
||||
},
|
||||
VisibleToAllUsers: aws.Bool(true),
|
||||
}
|
||||
resp, err := svc.RunJobFlow(params)
|
||||
|
||||
if err != nil {
|
||||
// Print the error, cast err to awserr.Error to get the Code and
|
||||
// Message from an error.
|
||||
fmt.Println(err.Error())
|
||||
return
|
||||
}
|
||||
|
||||
// Pretty-print the response data.
|
||||
fmt.Println(resp)
|
||||
}
|
||||
|
||||
func ExampleEMR_SetTerminationProtection() {
|
||||
svc := emr.New(session.New())
|
||||
|
||||
params := &emr.SetTerminationProtectionInput{
|
||||
JobFlowIds: []*string{ // Required
|
||||
aws.String("XmlString"), // Required
|
||||
// More values...
|
||||
},
|
||||
TerminationProtected: aws.Bool(true), // Required
|
||||
}
|
||||
resp, err := svc.SetTerminationProtection(params)
|
||||
|
||||
if err != nil {
|
||||
// Print the error, cast err to awserr.Error to get the Code and
|
||||
// Message from an error.
|
||||
fmt.Println(err.Error())
|
||||
return
|
||||
}
|
||||
|
||||
// Pretty-print the response data.
|
||||
fmt.Println(resp)
|
||||
}
|
||||
|
||||
func ExampleEMR_SetVisibleToAllUsers() {
|
||||
svc := emr.New(session.New())
|
||||
|
||||
params := &emr.SetVisibleToAllUsersInput{
|
||||
JobFlowIds: []*string{ // Required
|
||||
aws.String("XmlString"), // Required
|
||||
// More values...
|
||||
},
|
||||
VisibleToAllUsers: aws.Bool(true), // Required
|
||||
}
|
||||
resp, err := svc.SetVisibleToAllUsers(params)
|
||||
|
||||
if err != nil {
|
||||
// Print the error, cast err to awserr.Error to get the Code and
|
||||
// Message from an error.
|
||||
fmt.Println(err.Error())
|
||||
return
|
||||
}
|
||||
|
||||
// Pretty-print the response data.
|
||||
fmt.Println(resp)
|
||||
}
|
||||
|
||||
func ExampleEMR_TerminateJobFlows() {
|
||||
svc := emr.New(session.New())
|
||||
|
||||
params := &emr.TerminateJobFlowsInput{
|
||||
JobFlowIds: []*string{ // Required
|
||||
aws.String("XmlString"), // Required
|
||||
// More values...
|
||||
},
|
||||
}
|
||||
resp, err := svc.TerminateJobFlows(params)
|
||||
|
||||
if err != nil {
|
||||
// Print the error, cast err to awserr.Error to get the Code and
|
||||
// Message from an error.
|
||||
fmt.Println(err.Error())
|
||||
return
|
||||
}
|
||||
|
||||
// Pretty-print the response data.
|
||||
fmt.Println(resp)
|
||||
}
|
|
@ -7,8 +7,8 @@ import (
|
|||
"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/jsonrpc"
|
||||
"github.com/aws/aws-sdk-go/private/signer/v4"
|
||||
)
|
||||
|
||||
// Amazon Elastic MapReduce (Amazon EMR) is a web service that makes it easy
|
||||
|
@ -64,7 +64,7 @@ func newClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegio
|
|||
}
|
||||
|
||||
// Handlers
|
||||
svc.Handlers.Sign.PushBack(v4.Sign)
|
||||
svc.Handlers.Sign.PushBackNamed(v4.SignRequestHandler)
|
||||
svc.Handlers.Build.PushBackNamed(jsonrpc.BuildHandler)
|
||||
svc.Handlers.Unmarshal.PushBackNamed(jsonrpc.UnmarshalHandler)
|
||||
svc.Handlers.UnmarshalMeta.PushBackNamed(jsonrpc.UnmarshalMetaHandler)
|
||||
|
|
|
@ -13,7 +13,28 @@ import (
|
|||
|
||||
const opCreateDeliveryStream = "CreateDeliveryStream"
|
||||
|
||||
// CreateDeliveryStreamRequest generates a request for the CreateDeliveryStream operation.
|
||||
// CreateDeliveryStreamRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the CreateDeliveryStream operation. The "output" return
|
||||
// value can be used to capture response data after the request's "Send" method
|
||||
// is called.
|
||||
//
|
||||
// Creating a request object using this method should be used when you want to inject
|
||||
// custom logic into the request's lifecycle using a custom handler, or if you want to
|
||||
// access properties on the request object before or after sending the request. If
|
||||
// you just want the service response, call the CreateDeliveryStream method directly
|
||||
// instead.
|
||||
//
|
||||
// Note: You must call the "Send" method on the returned request object in order
|
||||
// to execute the request.
|
||||
//
|
||||
// // Example sending a request using the CreateDeliveryStreamRequest method.
|
||||
// req, resp := client.CreateDeliveryStreamRequest(params)
|
||||
//
|
||||
// err := req.Send()
|
||||
// if err == nil { // resp is now filled
|
||||
// fmt.Println(resp)
|
||||
// }
|
||||
//
|
||||
func (c *Firehose) CreateDeliveryStreamRequest(input *CreateDeliveryStreamInput) (req *request.Request, output *CreateDeliveryStreamOutput) {
|
||||
op := &request.Operation{
|
||||
Name: opCreateDeliveryStream,
|
||||
|
@ -47,9 +68,9 @@ func (c *Firehose) CreateDeliveryStreamRequest(input *CreateDeliveryStreamInput)
|
|||
// By default, you can create up to 20 delivery streams per region.
|
||||
//
|
||||
// A delivery stream can only be configured with a single destination, Amazon
|
||||
// S3 or Amazon Redshift. For correct CreateDeliveryStream request syntax, specify
|
||||
// only one destination configuration parameter: either ElasticsearchDestinationConfiguration,
|
||||
// RedshiftDestinationConfiguration or S3DestinationConfiguration
|
||||
// S3, Amazon Elasticsearch Service, or Amazon Redshift. For correct CreateDeliveryStream
|
||||
// request syntax, specify only one destination configuration parameter: either
|
||||
// S3DestinationConfiguration, ElasticsearchDestinationConfiguration, or RedshiftDestinationConfiguration.
|
||||
//
|
||||
// As part of S3DestinationConfiguration, optional values BufferingHints, EncryptionConfiguration,
|
||||
// and CompressionFormat can be provided. By default, if no BufferingHints value
|
||||
|
@ -66,16 +87,20 @@ func (c *Firehose) CreateDeliveryStreamRequest(input *CreateDeliveryStreamInput)
|
|||
// An Amazon Redshift destination requires an S3 bucket as intermediate location,
|
||||
// as Firehose first delivers data to S3 and then uses COPY syntax to load data
|
||||
// into an Amazon Redshift table. This is specified in the RedshiftDestinationConfiguration.S3Configuration
|
||||
// parameter element. The compression formats SNAPPY or ZIP cannot be specified
|
||||
// in RedshiftDestinationConfiguration.S3Configuration because the Amazon Redshift
|
||||
// COPY operation that reads from the S3 bucket doesn't support these compression
|
||||
// formats. We strongly recommend that the username and password provided is
|
||||
// used exclusively for Firehose purposes, and that the permissions for the
|
||||
// account are restricted for Amazon Redshift INSERT permissions. Firehose
|
||||
// assumes the IAM role that is configured as part of destinations. The IAM
|
||||
// role should allow the Firehose principal to assume the role, and the role
|
||||
// should have permissions that allows the service to deliver the data. For
|
||||
// more information, see Amazon S3 Bucket Access (http://docs.aws.amazon.com/firehose/latest/dev/controlling-access.html#using-iam-s3)
|
||||
// parameter element.
|
||||
//
|
||||
// The compression formats SNAPPY or ZIP cannot be specified in RedshiftDestinationConfiguration.S3Configuration
|
||||
// because the Amazon Redshift COPY operation that reads from the S3 bucket
|
||||
// doesn't support these compression formats.
|
||||
//
|
||||
// We strongly recommend that the username and password provided is used
|
||||
// exclusively for Firehose purposes, and that the permissions for the account
|
||||
// are restricted for Amazon Redshift INSERT permissions.
|
||||
//
|
||||
// Firehose assumes the IAM role that is configured as part of destinations.
|
||||
// The IAM role should allow the Firehose principal to assume the role, and
|
||||
// the role should have permissions that allows the service to deliver the data.
|
||||
// For more information, see Amazon S3 Bucket Access (http://docs.aws.amazon.com/firehose/latest/dev/controlling-access.html#using-iam-s3)
|
||||
// in the Amazon Kinesis Firehose Developer Guide.
|
||||
func (c *Firehose) CreateDeliveryStream(input *CreateDeliveryStreamInput) (*CreateDeliveryStreamOutput, error) {
|
||||
req, out := c.CreateDeliveryStreamRequest(input)
|
||||
|
@ -85,7 +110,28 @@ func (c *Firehose) CreateDeliveryStream(input *CreateDeliveryStreamInput) (*Crea
|
|||
|
||||
const opDeleteDeliveryStream = "DeleteDeliveryStream"
|
||||
|
||||
// DeleteDeliveryStreamRequest generates a request for the DeleteDeliveryStream operation.
|
||||
// DeleteDeliveryStreamRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the DeleteDeliveryStream operation. The "output" return
|
||||
// value can be used to capture response data after the request's "Send" method
|
||||
// is called.
|
||||
//
|
||||
// Creating a request object using this method should be used when you want to inject
|
||||
// custom logic into the request's lifecycle using a custom handler, or if you want to
|
||||
// access properties on the request object before or after sending the request. If
|
||||
// you just want the service response, call the DeleteDeliveryStream method directly
|
||||
// instead.
|
||||
//
|
||||
// Note: You must call the "Send" method on the returned request object in order
|
||||
// to execute the request.
|
||||
//
|
||||
// // Example sending a request using the DeleteDeliveryStreamRequest method.
|
||||
// req, resp := client.DeleteDeliveryStreamRequest(params)
|
||||
//
|
||||
// err := req.Send()
|
||||
// if err == nil { // resp is now filled
|
||||
// fmt.Println(resp)
|
||||
// }
|
||||
//
|
||||
func (c *Firehose) DeleteDeliveryStreamRequest(input *DeleteDeliveryStreamInput) (req *request.Request, output *DeleteDeliveryStreamOutput) {
|
||||
op := &request.Operation{
|
||||
Name: opDeleteDeliveryStream,
|
||||
|
@ -123,7 +169,28 @@ func (c *Firehose) DeleteDeliveryStream(input *DeleteDeliveryStreamInput) (*Dele
|
|||
|
||||
const opDescribeDeliveryStream = "DescribeDeliveryStream"
|
||||
|
||||
// DescribeDeliveryStreamRequest generates a request for the DescribeDeliveryStream operation.
|
||||
// DescribeDeliveryStreamRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the DescribeDeliveryStream operation. The "output" return
|
||||
// value can be used to capture response data after the request's "Send" method
|
||||
// is called.
|
||||
//
|
||||
// Creating a request object using this method should be used when you want to inject
|
||||
// custom logic into the request's lifecycle using a custom handler, or if you want to
|
||||
// access properties on the request object before or after sending the request. If
|
||||
// you just want the service response, call the DescribeDeliveryStream method directly
|
||||
// instead.
|
||||
//
|
||||
// Note: You must call the "Send" method on the returned request object in order
|
||||
// to execute the request.
|
||||
//
|
||||
// // Example sending a request using the DescribeDeliveryStreamRequest method.
|
||||
// req, resp := client.DescribeDeliveryStreamRequest(params)
|
||||
//
|
||||
// err := req.Send()
|
||||
// if err == nil { // resp is now filled
|
||||
// fmt.Println(resp)
|
||||
// }
|
||||
//
|
||||
func (c *Firehose) DescribeDeliveryStreamRequest(input *DescribeDeliveryStreamInput) (req *request.Request, output *DescribeDeliveryStreamOutput) {
|
||||
op := &request.Operation{
|
||||
Name: opDescribeDeliveryStream,
|
||||
|
@ -153,7 +220,28 @@ func (c *Firehose) DescribeDeliveryStream(input *DescribeDeliveryStreamInput) (*
|
|||
|
||||
const opListDeliveryStreams = "ListDeliveryStreams"
|
||||
|
||||
// ListDeliveryStreamsRequest generates a request for the ListDeliveryStreams operation.
|
||||
// ListDeliveryStreamsRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the ListDeliveryStreams operation. The "output" return
|
||||
// value can be used to capture response data after the request's "Send" method
|
||||
// is called.
|
||||
//
|
||||
// Creating a request object using this method should be used when you want to inject
|
||||
// custom logic into the request's lifecycle using a custom handler, or if you want to
|
||||
// access properties on the request object before or after sending the request. If
|
||||
// you just want the service response, call the ListDeliveryStreams method directly
|
||||
// instead.
|
||||
//
|
||||
// Note: You must call the "Send" method on the returned request object in order
|
||||
// to execute the request.
|
||||
//
|
||||
// // Example sending a request using the ListDeliveryStreamsRequest method.
|
||||
// req, resp := client.ListDeliveryStreamsRequest(params)
|
||||
//
|
||||
// err := req.Send()
|
||||
// if err == nil { // resp is now filled
|
||||
// fmt.Println(resp)
|
||||
// }
|
||||
//
|
||||
func (c *Firehose) ListDeliveryStreamsRequest(input *ListDeliveryStreamsInput) (req *request.Request, output *ListDeliveryStreamsOutput) {
|
||||
op := &request.Operation{
|
||||
Name: opListDeliveryStreams,
|
||||
|
@ -188,7 +276,28 @@ func (c *Firehose) ListDeliveryStreams(input *ListDeliveryStreamsInput) (*ListDe
|
|||
|
||||
const opPutRecord = "PutRecord"
|
||||
|
||||
// PutRecordRequest generates a request for the PutRecord operation.
|
||||
// PutRecordRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the PutRecord operation. The "output" return
|
||||
// value can be used to capture response data after the request's "Send" method
|
||||
// is called.
|
||||
//
|
||||
// Creating a request object using this method should be used when you want to inject
|
||||
// custom logic into the request's lifecycle using a custom handler, or if you want to
|
||||
// access properties on the request object before or after sending the request. If
|
||||
// you just want the service response, call the PutRecord method directly
|
||||
// instead.
|
||||
//
|
||||
// Note: You must call the "Send" method on the returned request object in order
|
||||
// to execute the request.
|
||||
//
|
||||
// // Example sending a request using the PutRecordRequest method.
|
||||
// req, resp := client.PutRecordRequest(params)
|
||||
//
|
||||
// err := req.Send()
|
||||
// if err == nil { // resp is now filled
|
||||
// fmt.Println(resp)
|
||||
// }
|
||||
//
|
||||
func (c *Firehose) PutRecordRequest(input *PutRecordInput) (req *request.Request, output *PutRecordOutput) {
|
||||
op := &request.Operation{
|
||||
Name: opPutRecord,
|
||||
|
@ -247,7 +356,28 @@ func (c *Firehose) PutRecord(input *PutRecordInput) (*PutRecordOutput, error) {
|
|||
|
||||
const opPutRecordBatch = "PutRecordBatch"
|
||||
|
||||
// PutRecordBatchRequest generates a request for the PutRecordBatch operation.
|
||||
// PutRecordBatchRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the PutRecordBatch operation. The "output" return
|
||||
// value can be used to capture response data after the request's "Send" method
|
||||
// is called.
|
||||
//
|
||||
// Creating a request object using this method should be used when you want to inject
|
||||
// custom logic into the request's lifecycle using a custom handler, or if you want to
|
||||
// access properties on the request object before or after sending the request. If
|
||||
// you just want the service response, call the PutRecordBatch method directly
|
||||
// instead.
|
||||
//
|
||||
// Note: You must call the "Send" method on the returned request object in order
|
||||
// to execute the request.
|
||||
//
|
||||
// // Example sending a request using the PutRecordBatchRequest method.
|
||||
// req, resp := client.PutRecordBatchRequest(params)
|
||||
//
|
||||
// err := req.Send()
|
||||
// if err == nil { // resp is now filled
|
||||
// fmt.Println(resp)
|
||||
// }
|
||||
//
|
||||
func (c *Firehose) PutRecordBatchRequest(input *PutRecordBatchInput) (req *request.Request, output *PutRecordBatchOutput) {
|
||||
op := &request.Operation{
|
||||
Name: opPutRecordBatch,
|
||||
|
@ -329,7 +459,28 @@ func (c *Firehose) PutRecordBatch(input *PutRecordBatchInput) (*PutRecordBatchOu
|
|||
|
||||
const opUpdateDestination = "UpdateDestination"
|
||||
|
||||
// UpdateDestinationRequest generates a request for the UpdateDestination operation.
|
||||
// UpdateDestinationRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the UpdateDestination operation. The "output" return
|
||||
// value can be used to capture response data after the request's "Send" method
|
||||
// is called.
|
||||
//
|
||||
// Creating a request object using this method should be used when you want to inject
|
||||
// custom logic into the request's lifecycle using a custom handler, or if you want to
|
||||
// access properties on the request object before or after sending the request. If
|
||||
// you just want the service response, call the UpdateDestination method directly
|
||||
// instead.
|
||||
//
|
||||
// Note: You must call the "Send" method on the returned request object in order
|
||||
// to execute the request.
|
||||
//
|
||||
// // Example sending a request using the UpdateDestinationRequest method.
|
||||
// req, resp := client.UpdateDestinationRequest(params)
|
||||
//
|
||||
// err := req.Send()
|
||||
// if err == nil { // resp is now filled
|
||||
// fmt.Println(resp)
|
||||
// }
|
||||
//
|
||||
func (c *Firehose) UpdateDestinationRequest(input *UpdateDestinationInput) (req *request.Request, output *UpdateDestinationOutput) {
|
||||
op := &request.Operation{
|
||||
Name: opUpdateDestination,
|
||||
|
@ -1067,9 +1218,10 @@ type ElasticsearchRetryOptions struct {
|
|||
_ struct{} `type:"structure"`
|
||||
|
||||
// After an initial failure to deliver to Amazon ES, the total amount of time
|
||||
// during which Firehose re-attempts delivery. After this time has elapsed,
|
||||
// the failed documents are written to Amazon S3. Default value is 300 seconds.
|
||||
// A value of 0 (zero) results in no retries.
|
||||
// during which Firehose re-attempts delivery (including the first attempt).
|
||||
// After this time has elapsed, the failed documents are written to Amazon S3.
|
||||
// Default value is 300 seconds (5 minutes). A value of 0 (zero) results in
|
||||
// no retries.
|
||||
DurationInSeconds *int64 `type:"integer"`
|
||||
}
|
||||
|
||||
|
@ -1428,6 +1580,10 @@ type RedshiftDestinationConfiguration struct {
|
|||
// The user password.
|
||||
Password *string `min:"6" type:"string" required:"true"`
|
||||
|
||||
// Configures retry behavior in the event that Firehose is unable to deliver
|
||||
// documents to Amazon Redshift. Default value is 3600 (60 minutes).
|
||||
RetryOptions *RedshiftRetryOptions `type:"structure"`
|
||||
|
||||
// The ARN of the AWS credentials.
|
||||
RoleARN *string `min:"1" type:"string" required:"true"`
|
||||
|
||||
|
@ -1516,6 +1672,10 @@ type RedshiftDestinationDescription struct {
|
|||
// The COPY command.
|
||||
CopyCommand *CopyCommand `type:"structure" required:"true"`
|
||||
|
||||
// Configures retry behavior in the event that Firehose is unable to deliver
|
||||
// documents to Amazon Redshift. Default value is 3600 (60 minutes).
|
||||
RetryOptions *RedshiftRetryOptions `type:"structure"`
|
||||
|
||||
// The ARN of the AWS credentials.
|
||||
RoleARN *string `min:"1" type:"string" required:"true"`
|
||||
|
||||
|
@ -1552,6 +1712,10 @@ type RedshiftDestinationUpdate struct {
|
|||
// The user password.
|
||||
Password *string `min:"6" type:"string"`
|
||||
|
||||
// Configures retry behavior in the event that Firehose is unable to deliver
|
||||
// documents to Amazon Redshift. Default value is 3600 (60 minutes).
|
||||
RetryOptions *RedshiftRetryOptions `type:"structure"`
|
||||
|
||||
// The ARN of the AWS credentials.
|
||||
RoleARN *string `min:"1" type:"string"`
|
||||
|
||||
|
@ -1608,6 +1772,29 @@ func (s *RedshiftDestinationUpdate) Validate() error {
|
|||
return nil
|
||||
}
|
||||
|
||||
// Configures retry behavior in the event that Firehose is unable to deliver
|
||||
// documents to Amazon Redshift.
|
||||
type RedshiftRetryOptions struct {
|
||||
_ struct{} `type:"structure"`
|
||||
|
||||
// The length of time during which Firehose retries delivery after a failure,
|
||||
// starting from the initial request and including the first attempt. The default
|
||||
// value is 3600 seconds (60 minutes). Firehose does not retry if the value
|
||||
// of DurationInSeconds is 0 (zero) or if the first delivery attempt takes longer
|
||||
// than the current value.
|
||||
DurationInSeconds *int64 `type:"integer"`
|
||||
}
|
||||
|
||||
// String returns the string representation
|
||||
func (s RedshiftRetryOptions) String() string {
|
||||
return awsutil.Prettify(s)
|
||||
}
|
||||
|
||||
// GoString returns the string representation
|
||||
func (s RedshiftRetryOptions) GoString() string {
|
||||
return s.String()
|
||||
}
|
||||
|
||||
// Describes the configuration of a destination in Amazon S3.
|
||||
type S3DestinationConfiguration struct {
|
||||
_ struct{} `type:"structure"`
|
||||
|
@ -1638,7 +1825,7 @@ type S3DestinationConfiguration struct {
|
|||
// format prefix. Note that if the prefix ends with a slash, it appears as a
|
||||
// folder in the S3 bucket. For more information, see Amazon S3 Object Name
|
||||
// Format (http://docs.aws.amazon.com/firehose/latest/dev/basic-deliver.html)
|
||||
// in the guide-fh-dev (http://docs.aws.amazon.com/firehose/latest/dev/).
|
||||
// in the Amazon Kinesis Firehose Developer Guide (http://docs.aws.amazon.com/firehose/latest/dev/).
|
||||
Prefix *string `type:"string"`
|
||||
|
||||
// The ARN of the AWS credentials.
|
||||
|
@ -1713,7 +1900,7 @@ type S3DestinationDescription struct {
|
|||
// format prefix. Note that if the prefix ends with a slash, it appears as a
|
||||
// folder in the S3 bucket. For more information, see Amazon S3 Object Name
|
||||
// Format (http://docs.aws.amazon.com/firehose/latest/dev/basic-deliver.html)
|
||||
// in the guide-fh-dev (http://docs.aws.amazon.com/firehose/latest/dev/).
|
||||
// in the Amazon Kinesis Firehose Developer Guide (http://docs.aws.amazon.com/firehose/latest/dev/).
|
||||
Prefix *string `type:"string"`
|
||||
|
||||
// The ARN of the AWS credentials.
|
||||
|
@ -1760,7 +1947,7 @@ type S3DestinationUpdate struct {
|
|||
// format prefix. Note that if the prefix ends with a slash, it appears as a
|
||||
// folder in the S3 bucket. For more information, see Amazon S3 Object Name
|
||||
// Format (http://docs.aws.amazon.com/firehose/latest/dev/basic-deliver.html)
|
||||
// in the guide-fh-dev (http://docs.aws.amazon.com/firehose/latest/dev/).
|
||||
// in the Amazon Kinesis Firehose Developer Guide (http://docs.aws.amazon.com/firehose/latest/dev/).
|
||||
Prefix *string `type:"string"`
|
||||
|
||||
// The ARN of the AWS credentials.
|
||||
|
|
|
@ -7,8 +7,8 @@ import (
|
|||
"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/jsonrpc"
|
||||
"github.com/aws/aws-sdk-go/private/signer/v4"
|
||||
)
|
||||
|
||||
// Amazon Kinesis Firehose is a fully-managed service that delivers real-time
|
||||
|
@ -62,7 +62,7 @@ func newClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegio
|
|||
}
|
||||
|
||||
// Handlers
|
||||
svc.Handlers.Sign.PushBack(v4.Sign)
|
||||
svc.Handlers.Sign.PushBackNamed(v4.SignRequestHandler)
|
||||
svc.Handlers.Build.PushBackNamed(jsonrpc.BuildHandler)
|
||||
svc.Handlers.Unmarshal.PushBackNamed(jsonrpc.UnmarshalHandler)
|
||||
svc.Handlers.UnmarshalMeta.PushBackNamed(jsonrpc.UnmarshalMetaHandler)
|
||||
|
|
|
@ -14,7 +14,28 @@ import (
|
|||
|
||||
const opAbortMultipartUpload = "AbortMultipartUpload"
|
||||
|
||||
// AbortMultipartUploadRequest generates a request for the AbortMultipartUpload operation.
|
||||
// AbortMultipartUploadRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the AbortMultipartUpload operation. The "output" return
|
||||
// value can be used to capture response data after the request's "Send" method
|
||||
// is called.
|
||||
//
|
||||
// Creating a request object using this method should be used when you want to inject
|
||||
// custom logic into the request's lifecycle using a custom handler, or if you want to
|
||||
// access properties on the request object before or after sending the request. If
|
||||
// you just want the service response, call the AbortMultipartUpload method directly
|
||||
// instead.
|
||||
//
|
||||
// Note: You must call the "Send" method on the returned request object in order
|
||||
// to execute the request.
|
||||
//
|
||||
// // Example sending a request using the AbortMultipartUploadRequest method.
|
||||
// req, resp := client.AbortMultipartUploadRequest(params)
|
||||
//
|
||||
// err := req.Send()
|
||||
// if err == nil { // resp is now filled
|
||||
// fmt.Println(resp)
|
||||
// }
|
||||
//
|
||||
func (c *Glacier) AbortMultipartUploadRequest(input *AbortMultipartUploadInput) (req *request.Request, output *AbortMultipartUploadOutput) {
|
||||
op := &request.Operation{
|
||||
Name: opAbortMultipartUpload,
|
||||
|
@ -62,7 +83,28 @@ func (c *Glacier) AbortMultipartUpload(input *AbortMultipartUploadInput) (*Abort
|
|||
|
||||
const opAbortVaultLock = "AbortVaultLock"
|
||||
|
||||
// AbortVaultLockRequest generates a request for the AbortVaultLock operation.
|
||||
// AbortVaultLockRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the AbortVaultLock operation. The "output" return
|
||||
// value can be used to capture response data after the request's "Send" method
|
||||
// is called.
|
||||
//
|
||||
// Creating a request object using this method should be used when you want to inject
|
||||
// custom logic into the request's lifecycle using a custom handler, or if you want to
|
||||
// access properties on the request object before or after sending the request. If
|
||||
// you just want the service response, call the AbortVaultLock method directly
|
||||
// instead.
|
||||
//
|
||||
// Note: You must call the "Send" method on the returned request object in order
|
||||
// to execute the request.
|
||||
//
|
||||
// // Example sending a request using the AbortVaultLockRequest method.
|
||||
// req, resp := client.AbortVaultLockRequest(params)
|
||||
//
|
||||
// err := req.Send()
|
||||
// if err == nil { // resp is now filled
|
||||
// fmt.Println(resp)
|
||||
// }
|
||||
//
|
||||
func (c *Glacier) AbortVaultLockRequest(input *AbortVaultLockInput) (req *request.Request, output *AbortVaultLockOutput) {
|
||||
op := &request.Operation{
|
||||
Name: opAbortVaultLock,
|
||||
|
@ -106,7 +148,28 @@ func (c *Glacier) AbortVaultLock(input *AbortVaultLockInput) (*AbortVaultLockOut
|
|||
|
||||
const opAddTagsToVault = "AddTagsToVault"
|
||||
|
||||
// AddTagsToVaultRequest generates a request for the AddTagsToVault operation.
|
||||
// AddTagsToVaultRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the AddTagsToVault operation. The "output" return
|
||||
// value can be used to capture response data after the request's "Send" method
|
||||
// is called.
|
||||
//
|
||||
// Creating a request object using this method should be used when you want to inject
|
||||
// custom logic into the request's lifecycle using a custom handler, or if you want to
|
||||
// access properties on the request object before or after sending the request. If
|
||||
// you just want the service response, call the AddTagsToVault method directly
|
||||
// instead.
|
||||
//
|
||||
// Note: You must call the "Send" method on the returned request object in order
|
||||
// to execute the request.
|
||||
//
|
||||
// // Example sending a request using the AddTagsToVaultRequest method.
|
||||
// req, resp := client.AddTagsToVaultRequest(params)
|
||||
//
|
||||
// err := req.Send()
|
||||
// if err == nil { // resp is now filled
|
||||
// fmt.Println(resp)
|
||||
// }
|
||||
//
|
||||
func (c *Glacier) AddTagsToVaultRequest(input *AddTagsToVaultInput) (req *request.Request, output *AddTagsToVaultOutput) {
|
||||
op := &request.Operation{
|
||||
Name: opAddTagsToVault,
|
||||
|
@ -140,7 +203,28 @@ func (c *Glacier) AddTagsToVault(input *AddTagsToVaultInput) (*AddTagsToVaultOut
|
|||
|
||||
const opCompleteMultipartUpload = "CompleteMultipartUpload"
|
||||
|
||||
// CompleteMultipartUploadRequest generates a request for the CompleteMultipartUpload operation.
|
||||
// CompleteMultipartUploadRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the CompleteMultipartUpload operation. The "output" return
|
||||
// value can be used to capture response data after the request's "Send" method
|
||||
// is called.
|
||||
//
|
||||
// Creating a request object using this method should be used when you want to inject
|
||||
// custom logic into the request's lifecycle using a custom handler, or if you want to
|
||||
// access properties on the request object before or after sending the request. If
|
||||
// you just want the service response, call the CompleteMultipartUpload method directly
|
||||
// instead.
|
||||
//
|
||||
// Note: You must call the "Send" method on the returned request object in order
|
||||
// to execute the request.
|
||||
//
|
||||
// // Example sending a request using the CompleteMultipartUploadRequest method.
|
||||
// req, resp := client.CompleteMultipartUploadRequest(params)
|
||||
//
|
||||
// err := req.Send()
|
||||
// if err == nil { // resp is now filled
|
||||
// fmt.Println(resp)
|
||||
// }
|
||||
//
|
||||
func (c *Glacier) CompleteMultipartUploadRequest(input *CompleteMultipartUploadInput) (req *request.Request, output *ArchiveCreationOutput) {
|
||||
op := &request.Operation{
|
||||
Name: opCompleteMultipartUpload,
|
||||
|
@ -210,7 +294,28 @@ func (c *Glacier) CompleteMultipartUpload(input *CompleteMultipartUploadInput) (
|
|||
|
||||
const opCompleteVaultLock = "CompleteVaultLock"
|
||||
|
||||
// CompleteVaultLockRequest generates a request for the CompleteVaultLock operation.
|
||||
// CompleteVaultLockRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the CompleteVaultLock operation. The "output" return
|
||||
// value can be used to capture response data after the request's "Send" method
|
||||
// is called.
|
||||
//
|
||||
// Creating a request object using this method should be used when you want to inject
|
||||
// custom logic into the request's lifecycle using a custom handler, or if you want to
|
||||
// access properties on the request object before or after sending the request. If
|
||||
// you just want the service response, call the CompleteVaultLock method directly
|
||||
// instead.
|
||||
//
|
||||
// Note: You must call the "Send" method on the returned request object in order
|
||||
// to execute the request.
|
||||
//
|
||||
// // Example sending a request using the CompleteVaultLockRequest method.
|
||||
// req, resp := client.CompleteVaultLockRequest(params)
|
||||
//
|
||||
// err := req.Send()
|
||||
// if err == nil { // resp is now filled
|
||||
// fmt.Println(resp)
|
||||
// }
|
||||
//
|
||||
func (c *Glacier) CompleteVaultLockRequest(input *CompleteVaultLockInput) (req *request.Request, output *CompleteVaultLockOutput) {
|
||||
op := &request.Operation{
|
||||
Name: opCompleteVaultLock,
|
||||
|
@ -253,7 +358,28 @@ func (c *Glacier) CompleteVaultLock(input *CompleteVaultLockInput) (*CompleteVau
|
|||
|
||||
const opCreateVault = "CreateVault"
|
||||
|
||||
// CreateVaultRequest generates a request for the CreateVault operation.
|
||||
// CreateVaultRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the CreateVault operation. The "output" return
|
||||
// value can be used to capture response data after the request's "Send" method
|
||||
// is called.
|
||||
//
|
||||
// Creating a request object using this method should be used when you want to inject
|
||||
// custom logic into the request's lifecycle using a custom handler, or if you want to
|
||||
// access properties on the request object before or after sending the request. If
|
||||
// you just want the service response, call the CreateVault method directly
|
||||
// instead.
|
||||
//
|
||||
// Note: You must call the "Send" method on the returned request object in order
|
||||
// to execute the request.
|
||||
//
|
||||
// // Example sending a request using the CreateVaultRequest method.
|
||||
// req, resp := client.CreateVaultRequest(params)
|
||||
//
|
||||
// err := req.Send()
|
||||
// if err == nil { // resp is now filled
|
||||
// fmt.Println(resp)
|
||||
// }
|
||||
//
|
||||
func (c *Glacier) CreateVaultRequest(input *CreateVaultInput) (req *request.Request, output *CreateVaultOutput) {
|
||||
op := &request.Operation{
|
||||
Name: opCreateVault,
|
||||
|
@ -303,7 +429,28 @@ func (c *Glacier) CreateVault(input *CreateVaultInput) (*CreateVaultOutput, erro
|
|||
|
||||
const opDeleteArchive = "DeleteArchive"
|
||||
|
||||
// DeleteArchiveRequest generates a request for the DeleteArchive operation.
|
||||
// DeleteArchiveRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the DeleteArchive operation. The "output" return
|
||||
// value can be used to capture response data after the request's "Send" method
|
||||
// is called.
|
||||
//
|
||||
// Creating a request object using this method should be used when you want to inject
|
||||
// custom logic into the request's lifecycle using a custom handler, or if you want to
|
||||
// access properties on the request object before or after sending the request. If
|
||||
// you just want the service response, call the DeleteArchive method directly
|
||||
// instead.
|
||||
//
|
||||
// Note: You must call the "Send" method on the returned request object in order
|
||||
// to execute the request.
|
||||
//
|
||||
// // Example sending a request using the DeleteArchiveRequest method.
|
||||
// req, resp := client.DeleteArchiveRequest(params)
|
||||
//
|
||||
// err := req.Send()
|
||||
// if err == nil { // resp is now filled
|
||||
// fmt.Println(resp)
|
||||
// }
|
||||
//
|
||||
func (c *Glacier) DeleteArchiveRequest(input *DeleteArchiveInput) (req *request.Request, output *DeleteArchiveOutput) {
|
||||
op := &request.Operation{
|
||||
Name: opDeleteArchive,
|
||||
|
@ -352,7 +499,28 @@ func (c *Glacier) DeleteArchive(input *DeleteArchiveInput) (*DeleteArchiveOutput
|
|||
|
||||
const opDeleteVault = "DeleteVault"
|
||||
|
||||
// DeleteVaultRequest generates a request for the DeleteVault operation.
|
||||
// DeleteVaultRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the DeleteVault operation. The "output" return
|
||||
// value can be used to capture response data after the request's "Send" method
|
||||
// is called.
|
||||
//
|
||||
// Creating a request object using this method should be used when you want to inject
|
||||
// custom logic into the request's lifecycle using a custom handler, or if you want to
|
||||
// access properties on the request object before or after sending the request. If
|
||||
// you just want the service response, call the DeleteVault method directly
|
||||
// instead.
|
||||
//
|
||||
// Note: You must call the "Send" method on the returned request object in order
|
||||
// to execute the request.
|
||||
//
|
||||
// // Example sending a request using the DeleteVaultRequest method.
|
||||
// req, resp := client.DeleteVaultRequest(params)
|
||||
//
|
||||
// err := req.Send()
|
||||
// if err == nil { // resp is now filled
|
||||
// fmt.Println(resp)
|
||||
// }
|
||||
//
|
||||
func (c *Glacier) DeleteVaultRequest(input *DeleteVaultInput) (req *request.Request, output *DeleteVaultOutput) {
|
||||
op := &request.Operation{
|
||||
Name: opDeleteVault,
|
||||
|
@ -403,7 +571,28 @@ func (c *Glacier) DeleteVault(input *DeleteVaultInput) (*DeleteVaultOutput, erro
|
|||
|
||||
const opDeleteVaultAccessPolicy = "DeleteVaultAccessPolicy"
|
||||
|
||||
// DeleteVaultAccessPolicyRequest generates a request for the DeleteVaultAccessPolicy operation.
|
||||
// DeleteVaultAccessPolicyRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the DeleteVaultAccessPolicy operation. The "output" return
|
||||
// value can be used to capture response data after the request's "Send" method
|
||||
// is called.
|
||||
//
|
||||
// Creating a request object using this method should be used when you want to inject
|
||||
// custom logic into the request's lifecycle using a custom handler, or if you want to
|
||||
// access properties on the request object before or after sending the request. If
|
||||
// you just want the service response, call the DeleteVaultAccessPolicy method directly
|
||||
// instead.
|
||||
//
|
||||
// Note: You must call the "Send" method on the returned request object in order
|
||||
// to execute the request.
|
||||
//
|
||||
// // Example sending a request using the DeleteVaultAccessPolicyRequest method.
|
||||
// req, resp := client.DeleteVaultAccessPolicyRequest(params)
|
||||
//
|
||||
// err := req.Send()
|
||||
// if err == nil { // resp is now filled
|
||||
// fmt.Println(resp)
|
||||
// }
|
||||
//
|
||||
func (c *Glacier) DeleteVaultAccessPolicyRequest(input *DeleteVaultAccessPolicyInput) (req *request.Request, output *DeleteVaultAccessPolicyOutput) {
|
||||
op := &request.Operation{
|
||||
Name: opDeleteVaultAccessPolicy,
|
||||
|
@ -441,7 +630,28 @@ func (c *Glacier) DeleteVaultAccessPolicy(input *DeleteVaultAccessPolicyInput) (
|
|||
|
||||
const opDeleteVaultNotifications = "DeleteVaultNotifications"
|
||||
|
||||
// DeleteVaultNotificationsRequest generates a request for the DeleteVaultNotifications operation.
|
||||
// DeleteVaultNotificationsRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the DeleteVaultNotifications operation. The "output" return
|
||||
// value can be used to capture response data after the request's "Send" method
|
||||
// is called.
|
||||
//
|
||||
// Creating a request object using this method should be used when you want to inject
|
||||
// custom logic into the request's lifecycle using a custom handler, or if you want to
|
||||
// access properties on the request object before or after sending the request. If
|
||||
// you just want the service response, call the DeleteVaultNotifications method directly
|
||||
// instead.
|
||||
//
|
||||
// Note: You must call the "Send" method on the returned request object in order
|
||||
// to execute the request.
|
||||
//
|
||||
// // Example sending a request using the DeleteVaultNotificationsRequest method.
|
||||
// req, resp := client.DeleteVaultNotificationsRequest(params)
|
||||
//
|
||||
// err := req.Send()
|
||||
// if err == nil { // resp is now filled
|
||||
// fmt.Println(resp)
|
||||
// }
|
||||
//
|
||||
func (c *Glacier) DeleteVaultNotificationsRequest(input *DeleteVaultNotificationsInput) (req *request.Request, output *DeleteVaultNotificationsOutput) {
|
||||
op := &request.Operation{
|
||||
Name: opDeleteVaultNotifications,
|
||||
|
@ -484,7 +694,28 @@ func (c *Glacier) DeleteVaultNotifications(input *DeleteVaultNotificationsInput)
|
|||
|
||||
const opDescribeJob = "DescribeJob"
|
||||
|
||||
// DescribeJobRequest generates a request for the DescribeJob operation.
|
||||
// DescribeJobRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the DescribeJob operation. The "output" return
|
||||
// value can be used to capture response data after the request's "Send" method
|
||||
// is called.
|
||||
//
|
||||
// Creating a request object using this method should be used when you want to inject
|
||||
// custom logic into the request's lifecycle using a custom handler, or if you want to
|
||||
// access properties on the request object before or after sending the request. If
|
||||
// you just want the service response, call the DescribeJob method directly
|
||||
// instead.
|
||||
//
|
||||
// Note: You must call the "Send" method on the returned request object in order
|
||||
// to execute the request.
|
||||
//
|
||||
// // Example sending a request using the DescribeJobRequest method.
|
||||
// req, resp := client.DescribeJobRequest(params)
|
||||
//
|
||||
// err := req.Send()
|
||||
// if err == nil { // resp is now filled
|
||||
// fmt.Println(resp)
|
||||
// }
|
||||
//
|
||||
func (c *Glacier) DescribeJobRequest(input *DescribeJobInput) (req *request.Request, output *JobDescription) {
|
||||
op := &request.Operation{
|
||||
Name: opDescribeJob,
|
||||
|
@ -532,7 +763,28 @@ func (c *Glacier) DescribeJob(input *DescribeJobInput) (*JobDescription, error)
|
|||
|
||||
const opDescribeVault = "DescribeVault"
|
||||
|
||||
// DescribeVaultRequest generates a request for the DescribeVault operation.
|
||||
// DescribeVaultRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the DescribeVault operation. The "output" return
|
||||
// value can be used to capture response data after the request's "Send" method
|
||||
// is called.
|
||||
//
|
||||
// Creating a request object using this method should be used when you want to inject
|
||||
// custom logic into the request's lifecycle using a custom handler, or if you want to
|
||||
// access properties on the request object before or after sending the request. If
|
||||
// you just want the service response, call the DescribeVault method directly
|
||||
// instead.
|
||||
//
|
||||
// Note: You must call the "Send" method on the returned request object in order
|
||||
// to execute the request.
|
||||
//
|
||||
// // Example sending a request using the DescribeVaultRequest method.
|
||||
// req, resp := client.DescribeVaultRequest(params)
|
||||
//
|
||||
// err := req.Send()
|
||||
// if err == nil { // resp is now filled
|
||||
// fmt.Println(resp)
|
||||
// }
|
||||
//
|
||||
func (c *Glacier) DescribeVaultRequest(input *DescribeVaultInput) (req *request.Request, output *DescribeVaultOutput) {
|
||||
op := &request.Operation{
|
||||
Name: opDescribeVault,
|
||||
|
@ -578,7 +830,28 @@ func (c *Glacier) DescribeVault(input *DescribeVaultInput) (*DescribeVaultOutput
|
|||
|
||||
const opGetDataRetrievalPolicy = "GetDataRetrievalPolicy"
|
||||
|
||||
// GetDataRetrievalPolicyRequest generates a request for the GetDataRetrievalPolicy operation.
|
||||
// GetDataRetrievalPolicyRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the GetDataRetrievalPolicy operation. The "output" return
|
||||
// value can be used to capture response data after the request's "Send" method
|
||||
// is called.
|
||||
//
|
||||
// Creating a request object using this method should be used when you want to inject
|
||||
// custom logic into the request's lifecycle using a custom handler, or if you want to
|
||||
// access properties on the request object before or after sending the request. If
|
||||
// you just want the service response, call the GetDataRetrievalPolicy method directly
|
||||
// instead.
|
||||
//
|
||||
// Note: You must call the "Send" method on the returned request object in order
|
||||
// to execute the request.
|
||||
//
|
||||
// // Example sending a request using the GetDataRetrievalPolicyRequest method.
|
||||
// req, resp := client.GetDataRetrievalPolicyRequest(params)
|
||||
//
|
||||
// err := req.Send()
|
||||
// if err == nil { // resp is now filled
|
||||
// fmt.Println(resp)
|
||||
// }
|
||||
//
|
||||
func (c *Glacier) GetDataRetrievalPolicyRequest(input *GetDataRetrievalPolicyInput) (req *request.Request, output *GetDataRetrievalPolicyOutput) {
|
||||
op := &request.Operation{
|
||||
Name: opGetDataRetrievalPolicy,
|
||||
|
@ -607,7 +880,28 @@ func (c *Glacier) GetDataRetrievalPolicy(input *GetDataRetrievalPolicyInput) (*G
|
|||
|
||||
const opGetJobOutput = "GetJobOutput"
|
||||
|
||||
// GetJobOutputRequest generates a request for the GetJobOutput operation.
|
||||
// GetJobOutputRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the GetJobOutput operation. The "output" return
|
||||
// value can be used to capture response data after the request's "Send" method
|
||||
// is called.
|
||||
//
|
||||
// Creating a request object using this method should be used when you want to inject
|
||||
// custom logic into the request's lifecycle using a custom handler, or if you want to
|
||||
// access properties on the request object before or after sending the request. If
|
||||
// you just want the service response, call the GetJobOutput method directly
|
||||
// instead.
|
||||
//
|
||||
// Note: You must call the "Send" method on the returned request object in order
|
||||
// to execute the request.
|
||||
//
|
||||
// // Example sending a request using the GetJobOutputRequest method.
|
||||
// req, resp := client.GetJobOutputRequest(params)
|
||||
//
|
||||
// err := req.Send()
|
||||
// if err == nil { // resp is now filled
|
||||
// fmt.Println(resp)
|
||||
// }
|
||||
//
|
||||
func (c *Glacier) GetJobOutputRequest(input *GetJobOutputInput) (req *request.Request, output *GetJobOutputOutput) {
|
||||
op := &request.Operation{
|
||||
Name: opGetJobOutput,
|
||||
|
@ -677,7 +971,28 @@ func (c *Glacier) GetJobOutput(input *GetJobOutputInput) (*GetJobOutputOutput, e
|
|||
|
||||
const opGetVaultAccessPolicy = "GetVaultAccessPolicy"
|
||||
|
||||
// GetVaultAccessPolicyRequest generates a request for the GetVaultAccessPolicy operation.
|
||||
// GetVaultAccessPolicyRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the GetVaultAccessPolicy operation. The "output" return
|
||||
// value can be used to capture response data after the request's "Send" method
|
||||
// is called.
|
||||
//
|
||||
// Creating a request object using this method should be used when you want to inject
|
||||
// custom logic into the request's lifecycle using a custom handler, or if you want to
|
||||
// access properties on the request object before or after sending the request. If
|
||||
// you just want the service response, call the GetVaultAccessPolicy method directly
|
||||
// instead.
|
||||
//
|
||||
// Note: You must call the "Send" method on the returned request object in order
|
||||
// to execute the request.
|
||||
//
|
||||
// // Example sending a request using the GetVaultAccessPolicyRequest method.
|
||||
// req, resp := client.GetVaultAccessPolicyRequest(params)
|
||||
//
|
||||
// err := req.Send()
|
||||
// if err == nil { // resp is now filled
|
||||
// fmt.Println(resp)
|
||||
// }
|
||||
//
|
||||
func (c *Glacier) GetVaultAccessPolicyRequest(input *GetVaultAccessPolicyInput) (req *request.Request, output *GetVaultAccessPolicyOutput) {
|
||||
op := &request.Operation{
|
||||
Name: opGetVaultAccessPolicy,
|
||||
|
@ -709,7 +1024,28 @@ func (c *Glacier) GetVaultAccessPolicy(input *GetVaultAccessPolicyInput) (*GetVa
|
|||
|
||||
const opGetVaultLock = "GetVaultLock"
|
||||
|
||||
// GetVaultLockRequest generates a request for the GetVaultLock operation.
|
||||
// GetVaultLockRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the GetVaultLock operation. The "output" return
|
||||
// value can be used to capture response data after the request's "Send" method
|
||||
// is called.
|
||||
//
|
||||
// Creating a request object using this method should be used when you want to inject
|
||||
// custom logic into the request's lifecycle using a custom handler, or if you want to
|
||||
// access properties on the request object before or after sending the request. If
|
||||
// you just want the service response, call the GetVaultLock method directly
|
||||
// instead.
|
||||
//
|
||||
// Note: You must call the "Send" method on the returned request object in order
|
||||
// to execute the request.
|
||||
//
|
||||
// // Example sending a request using the GetVaultLockRequest method.
|
||||
// req, resp := client.GetVaultLockRequest(params)
|
||||
//
|
||||
// err := req.Send()
|
||||
// if err == nil { // resp is now filled
|
||||
// fmt.Println(resp)
|
||||
// }
|
||||
//
|
||||
func (c *Glacier) GetVaultLockRequest(input *GetVaultLockInput) (req *request.Request, output *GetVaultLockOutput) {
|
||||
op := &request.Operation{
|
||||
Name: opGetVaultLock,
|
||||
|
@ -753,7 +1089,28 @@ func (c *Glacier) GetVaultLock(input *GetVaultLockInput) (*GetVaultLockOutput, e
|
|||
|
||||
const opGetVaultNotifications = "GetVaultNotifications"
|
||||
|
||||
// GetVaultNotificationsRequest generates a request for the GetVaultNotifications operation.
|
||||
// GetVaultNotificationsRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the GetVaultNotifications operation. The "output" return
|
||||
// value can be used to capture response data after the request's "Send" method
|
||||
// is called.
|
||||
//
|
||||
// Creating a request object using this method should be used when you want to inject
|
||||
// custom logic into the request's lifecycle using a custom handler, or if you want to
|
||||
// access properties on the request object before or after sending the request. If
|
||||
// you just want the service response, call the GetVaultNotifications method directly
|
||||
// instead.
|
||||
//
|
||||
// Note: You must call the "Send" method on the returned request object in order
|
||||
// to execute the request.
|
||||
//
|
||||
// // Example sending a request using the GetVaultNotificationsRequest method.
|
||||
// req, resp := client.GetVaultNotificationsRequest(params)
|
||||
//
|
||||
// err := req.Send()
|
||||
// if err == nil { // resp is now filled
|
||||
// fmt.Println(resp)
|
||||
// }
|
||||
//
|
||||
func (c *Glacier) GetVaultNotificationsRequest(input *GetVaultNotificationsInput) (req *request.Request, output *GetVaultNotificationsOutput) {
|
||||
op := &request.Operation{
|
||||
Name: opGetVaultNotifications,
|
||||
|
@ -798,7 +1155,28 @@ func (c *Glacier) GetVaultNotifications(input *GetVaultNotificationsInput) (*Get
|
|||
|
||||
const opInitiateJob = "InitiateJob"
|
||||
|
||||
// InitiateJobRequest generates a request for the InitiateJob operation.
|
||||
// InitiateJobRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the InitiateJob operation. The "output" return
|
||||
// value can be used to capture response data after the request's "Send" method
|
||||
// is called.
|
||||
//
|
||||
// Creating a request object using this method should be used when you want to inject
|
||||
// custom logic into the request's lifecycle using a custom handler, or if you want to
|
||||
// access properties on the request object before or after sending the request. If
|
||||
// you just want the service response, call the InitiateJob method directly
|
||||
// instead.
|
||||
//
|
||||
// Note: You must call the "Send" method on the returned request object in order
|
||||
// to execute the request.
|
||||
//
|
||||
// // Example sending a request using the InitiateJobRequest method.
|
||||
// req, resp := client.InitiateJobRequest(params)
|
||||
//
|
||||
// err := req.Send()
|
||||
// if err == nil { // resp is now filled
|
||||
// fmt.Println(resp)
|
||||
// }
|
||||
//
|
||||
func (c *Glacier) InitiateJobRequest(input *InitiateJobInput) (req *request.Request, output *InitiateJobOutput) {
|
||||
op := &request.Operation{
|
||||
Name: opInitiateJob,
|
||||
|
@ -940,7 +1318,28 @@ func (c *Glacier) InitiateJob(input *InitiateJobInput) (*InitiateJobOutput, erro
|
|||
|
||||
const opInitiateMultipartUpload = "InitiateMultipartUpload"
|
||||
|
||||
// InitiateMultipartUploadRequest generates a request for the InitiateMultipartUpload operation.
|
||||
// InitiateMultipartUploadRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the InitiateMultipartUpload operation. The "output" return
|
||||
// value can be used to capture response data after the request's "Send" method
|
||||
// is called.
|
||||
//
|
||||
// Creating a request object using this method should be used when you want to inject
|
||||
// custom logic into the request's lifecycle using a custom handler, or if you want to
|
||||
// access properties on the request object before or after sending the request. If
|
||||
// you just want the service response, call the InitiateMultipartUpload method directly
|
||||
// instead.
|
||||
//
|
||||
// Note: You must call the "Send" method on the returned request object in order
|
||||
// to execute the request.
|
||||
//
|
||||
// // Example sending a request using the InitiateMultipartUploadRequest method.
|
||||
// req, resp := client.InitiateMultipartUploadRequest(params)
|
||||
//
|
||||
// err := req.Send()
|
||||
// if err == nil { // resp is now filled
|
||||
// fmt.Println(resp)
|
||||
// }
|
||||
//
|
||||
func (c *Glacier) InitiateMultipartUploadRequest(input *InitiateMultipartUploadInput) (req *request.Request, output *InitiateMultipartUploadOutput) {
|
||||
op := &request.Operation{
|
||||
Name: opInitiateMultipartUpload,
|
||||
|
@ -1001,7 +1400,28 @@ func (c *Glacier) InitiateMultipartUpload(input *InitiateMultipartUploadInput) (
|
|||
|
||||
const opInitiateVaultLock = "InitiateVaultLock"
|
||||
|
||||
// InitiateVaultLockRequest generates a request for the InitiateVaultLock operation.
|
||||
// InitiateVaultLockRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the InitiateVaultLock operation. The "output" return
|
||||
// value can be used to capture response data after the request's "Send" method
|
||||
// is called.
|
||||
//
|
||||
// Creating a request object using this method should be used when you want to inject
|
||||
// custom logic into the request's lifecycle using a custom handler, or if you want to
|
||||
// access properties on the request object before or after sending the request. If
|
||||
// you just want the service response, call the InitiateVaultLock method directly
|
||||
// instead.
|
||||
//
|
||||
// Note: You must call the "Send" method on the returned request object in order
|
||||
// to execute the request.
|
||||
//
|
||||
// // Example sending a request using the InitiateVaultLockRequest method.
|
||||
// req, resp := client.InitiateVaultLockRequest(params)
|
||||
//
|
||||
// err := req.Send()
|
||||
// if err == nil { // resp is now filled
|
||||
// fmt.Println(resp)
|
||||
// }
|
||||
//
|
||||
func (c *Glacier) InitiateVaultLockRequest(input *InitiateVaultLockInput) (req *request.Request, output *InitiateVaultLockOutput) {
|
||||
op := &request.Operation{
|
||||
Name: opInitiateVaultLock,
|
||||
|
@ -1055,7 +1475,28 @@ func (c *Glacier) InitiateVaultLock(input *InitiateVaultLockInput) (*InitiateVau
|
|||
|
||||
const opListJobs = "ListJobs"
|
||||
|
||||
// ListJobsRequest generates a request for the ListJobs operation.
|
||||
// ListJobsRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the ListJobs operation. The "output" return
|
||||
// value can be used to capture response data after the request's "Send" method
|
||||
// is called.
|
||||
//
|
||||
// Creating a request object using this method should be used when you want to inject
|
||||
// custom logic into the request's lifecycle using a custom handler, or if you want to
|
||||
// access properties on the request object before or after sending the request. If
|
||||
// you just want the service response, call the ListJobs method directly
|
||||
// instead.
|
||||
//
|
||||
// Note: You must call the "Send" method on the returned request object in order
|
||||
// to execute the request.
|
||||
//
|
||||
// // 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)
|
||||
// }
|
||||
//
|
||||
func (c *Glacier) ListJobsRequest(input *ListJobsInput) (req *request.Request, output *ListJobsOutput) {
|
||||
op := &request.Operation{
|
||||
Name: opListJobs,
|
||||
|
@ -1125,6 +1566,23 @@ func (c *Glacier) ListJobs(input *ListJobsInput) (*ListJobsOutput, error) {
|
|||
return out, err
|
||||
}
|
||||
|
||||
// ListJobsPages iterates over the pages of a ListJobs operation,
|
||||
// calling the "fn" function with the response data for each page. To stop
|
||||
// iterating, return false from the fn function.
|
||||
//
|
||||
// See ListJobs 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 ListJobs operation.
|
||||
// pageNum := 0
|
||||
// err := client.ListJobsPages(params,
|
||||
// func(page *ListJobsOutput, lastPage bool) bool {
|
||||
// pageNum++
|
||||
// fmt.Println(page)
|
||||
// return pageNum <= 3
|
||||
// })
|
||||
//
|
||||
func (c *Glacier) ListJobsPages(input *ListJobsInput, fn func(p *ListJobsOutput, lastPage bool) (shouldContinue bool)) error {
|
||||
page, _ := c.ListJobsRequest(input)
|
||||
page.Handlers.Build.PushBack(request.MakeAddToUserAgentFreeFormHandler("Paginator"))
|
||||
|
@ -1135,7 +1593,28 @@ func (c *Glacier) ListJobsPages(input *ListJobsInput, fn func(p *ListJobsOutput,
|
|||
|
||||
const opListMultipartUploads = "ListMultipartUploads"
|
||||
|
||||
// ListMultipartUploadsRequest generates a request for the ListMultipartUploads operation.
|
||||
// ListMultipartUploadsRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the ListMultipartUploads operation. The "output" return
|
||||
// value can be used to capture response data after the request's "Send" method
|
||||
// is called.
|
||||
//
|
||||
// Creating a request object using this method should be used when you want to inject
|
||||
// custom logic into the request's lifecycle using a custom handler, or if you want to
|
||||
// access properties on the request object before or after sending the request. If
|
||||
// you just want the service response, call the ListMultipartUploads method directly
|
||||
// instead.
|
||||
//
|
||||
// Note: You must call the "Send" method on the returned request object in order
|
||||
// to execute the request.
|
||||
//
|
||||
// // Example sending a request using the ListMultipartUploadsRequest method.
|
||||
// req, resp := client.ListMultipartUploadsRequest(params)
|
||||
//
|
||||
// err := req.Send()
|
||||
// if err == nil { // resp is now filled
|
||||
// fmt.Println(resp)
|
||||
// }
|
||||
//
|
||||
func (c *Glacier) ListMultipartUploadsRequest(input *ListMultipartUploadsInput) (req *request.Request, output *ListMultipartUploadsOutput) {
|
||||
op := &request.Operation{
|
||||
Name: opListMultipartUploads,
|
||||
|
@ -1195,6 +1674,23 @@ func (c *Glacier) ListMultipartUploads(input *ListMultipartUploadsInput) (*ListM
|
|||
return out, err
|
||||
}
|
||||
|
||||
// ListMultipartUploadsPages iterates over the pages of a ListMultipartUploads operation,
|
||||
// calling the "fn" function with the response data for each page. To stop
|
||||
// iterating, return false from the fn function.
|
||||
//
|
||||
// See ListMultipartUploads 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 ListMultipartUploads operation.
|
||||
// pageNum := 0
|
||||
// err := client.ListMultipartUploadsPages(params,
|
||||
// func(page *ListMultipartUploadsOutput, lastPage bool) bool {
|
||||
// pageNum++
|
||||
// fmt.Println(page)
|
||||
// return pageNum <= 3
|
||||
// })
|
||||
//
|
||||
func (c *Glacier) ListMultipartUploadsPages(input *ListMultipartUploadsInput, fn func(p *ListMultipartUploadsOutput, lastPage bool) (shouldContinue bool)) error {
|
||||
page, _ := c.ListMultipartUploadsRequest(input)
|
||||
page.Handlers.Build.PushBack(request.MakeAddToUserAgentFreeFormHandler("Paginator"))
|
||||
|
@ -1205,7 +1701,28 @@ func (c *Glacier) ListMultipartUploadsPages(input *ListMultipartUploadsInput, fn
|
|||
|
||||
const opListParts = "ListParts"
|
||||
|
||||
// ListPartsRequest generates a request for the ListParts operation.
|
||||
// ListPartsRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the ListParts operation. The "output" return
|
||||
// value can be used to capture response data after the request's "Send" method
|
||||
// is called.
|
||||
//
|
||||
// Creating a request object using this method should be used when you want to inject
|
||||
// custom logic into the request's lifecycle using a custom handler, or if you want to
|
||||
// access properties on the request object before or after sending the request. If
|
||||
// you just want the service response, call the ListParts method directly
|
||||
// instead.
|
||||
//
|
||||
// Note: You must call the "Send" method on the returned request object in order
|
||||
// to execute the request.
|
||||
//
|
||||
// // Example sending a request using the ListPartsRequest method.
|
||||
// req, resp := client.ListPartsRequest(params)
|
||||
//
|
||||
// err := req.Send()
|
||||
// if err == nil { // resp is now filled
|
||||
// fmt.Println(resp)
|
||||
// }
|
||||
//
|
||||
func (c *Glacier) ListPartsRequest(input *ListPartsInput) (req *request.Request, output *ListPartsOutput) {
|
||||
op := &request.Operation{
|
||||
Name: opListParts,
|
||||
|
@ -1259,6 +1776,23 @@ func (c *Glacier) ListParts(input *ListPartsInput) (*ListPartsOutput, error) {
|
|||
return out, err
|
||||
}
|
||||
|
||||
// ListPartsPages iterates over the pages of a ListParts operation,
|
||||
// calling the "fn" function with the response data for each page. To stop
|
||||
// iterating, return false from the fn function.
|
||||
//
|
||||
// See ListParts 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 ListParts operation.
|
||||
// pageNum := 0
|
||||
// err := client.ListPartsPages(params,
|
||||
// func(page *ListPartsOutput, lastPage bool) bool {
|
||||
// pageNum++
|
||||
// fmt.Println(page)
|
||||
// return pageNum <= 3
|
||||
// })
|
||||
//
|
||||
func (c *Glacier) ListPartsPages(input *ListPartsInput, fn func(p *ListPartsOutput, lastPage bool) (shouldContinue bool)) error {
|
||||
page, _ := c.ListPartsRequest(input)
|
||||
page.Handlers.Build.PushBack(request.MakeAddToUserAgentFreeFormHandler("Paginator"))
|
||||
|
@ -1269,7 +1803,28 @@ func (c *Glacier) ListPartsPages(input *ListPartsInput, fn func(p *ListPartsOutp
|
|||
|
||||
const opListTagsForVault = "ListTagsForVault"
|
||||
|
||||
// ListTagsForVaultRequest generates a request for the ListTagsForVault operation.
|
||||
// ListTagsForVaultRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the ListTagsForVault operation. The "output" return
|
||||
// value can be used to capture response data after the request's "Send" method
|
||||
// is called.
|
||||
//
|
||||
// Creating a request object using this method should be used when you want to inject
|
||||
// custom logic into the request's lifecycle using a custom handler, or if you want to
|
||||
// access properties on the request object before or after sending the request. If
|
||||
// you just want the service response, call the ListTagsForVault method directly
|
||||
// instead.
|
||||
//
|
||||
// Note: You must call the "Send" method on the returned request object in order
|
||||
// to execute the request.
|
||||
//
|
||||
// // Example sending a request using the ListTagsForVaultRequest method.
|
||||
// req, resp := client.ListTagsForVaultRequest(params)
|
||||
//
|
||||
// err := req.Send()
|
||||
// if err == nil { // resp is now filled
|
||||
// fmt.Println(resp)
|
||||
// }
|
||||
//
|
||||
func (c *Glacier) ListTagsForVaultRequest(input *ListTagsForVaultInput) (req *request.Request, output *ListTagsForVaultOutput) {
|
||||
op := &request.Operation{
|
||||
Name: opListTagsForVault,
|
||||
|
@ -1298,7 +1853,28 @@ func (c *Glacier) ListTagsForVault(input *ListTagsForVaultInput) (*ListTagsForVa
|
|||
|
||||
const opListVaults = "ListVaults"
|
||||
|
||||
// ListVaultsRequest generates a request for the ListVaults operation.
|
||||
// ListVaultsRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the ListVaults operation. The "output" return
|
||||
// value can be used to capture response data after the request's "Send" method
|
||||
// is called.
|
||||
//
|
||||
// Creating a request object using this method should be used when you want to inject
|
||||
// custom logic into the request's lifecycle using a custom handler, or if you want to
|
||||
// access properties on the request object before or after sending the request. If
|
||||
// you just want the service response, call the ListVaults method directly
|
||||
// instead.
|
||||
//
|
||||
// Note: You must call the "Send" method on the returned request object in order
|
||||
// to execute the request.
|
||||
//
|
||||
// // Example sending a request using the ListVaultsRequest method.
|
||||
// req, resp := client.ListVaultsRequest(params)
|
||||
//
|
||||
// err := req.Send()
|
||||
// if err == nil { // resp is now filled
|
||||
// fmt.Println(resp)
|
||||
// }
|
||||
//
|
||||
func (c *Glacier) ListVaultsRequest(input *ListVaultsInput) (req *request.Request, output *ListVaultsOutput) {
|
||||
op := &request.Operation{
|
||||
Name: opListVaults,
|
||||
|
@ -1350,6 +1926,23 @@ func (c *Glacier) ListVaults(input *ListVaultsInput) (*ListVaultsOutput, error)
|
|||
return out, err
|
||||
}
|
||||
|
||||
// ListVaultsPages iterates over the pages of a ListVaults operation,
|
||||
// calling the "fn" function with the response data for each page. To stop
|
||||
// iterating, return false from the fn function.
|
||||
//
|
||||
// See ListVaults 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 ListVaults operation.
|
||||
// pageNum := 0
|
||||
// err := client.ListVaultsPages(params,
|
||||
// func(page *ListVaultsOutput, lastPage bool) bool {
|
||||
// pageNum++
|
||||
// fmt.Println(page)
|
||||
// return pageNum <= 3
|
||||
// })
|
||||
//
|
||||
func (c *Glacier) ListVaultsPages(input *ListVaultsInput, fn func(p *ListVaultsOutput, lastPage bool) (shouldContinue bool)) error {
|
||||
page, _ := c.ListVaultsRequest(input)
|
||||
page.Handlers.Build.PushBack(request.MakeAddToUserAgentFreeFormHandler("Paginator"))
|
||||
|
@ -1360,7 +1953,28 @@ func (c *Glacier) ListVaultsPages(input *ListVaultsInput, fn func(p *ListVaultsO
|
|||
|
||||
const opRemoveTagsFromVault = "RemoveTagsFromVault"
|
||||
|
||||
// RemoveTagsFromVaultRequest generates a request for the RemoveTagsFromVault operation.
|
||||
// RemoveTagsFromVaultRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the RemoveTagsFromVault operation. The "output" return
|
||||
// value can be used to capture response data after the request's "Send" method
|
||||
// is called.
|
||||
//
|
||||
// Creating a request object using this method should be used when you want to inject
|
||||
// custom logic into the request's lifecycle using a custom handler, or if you want to
|
||||
// access properties on the request object before or after sending the request. If
|
||||
// you just want the service response, call the RemoveTagsFromVault method directly
|
||||
// instead.
|
||||
//
|
||||
// Note: You must call the "Send" method on the returned request object in order
|
||||
// to execute the request.
|
||||
//
|
||||
// // Example sending a request using the RemoveTagsFromVaultRequest method.
|
||||
// req, resp := client.RemoveTagsFromVaultRequest(params)
|
||||
//
|
||||
// err := req.Send()
|
||||
// if err == nil { // resp is now filled
|
||||
// fmt.Println(resp)
|
||||
// }
|
||||
//
|
||||
func (c *Glacier) RemoveTagsFromVaultRequest(input *RemoveTagsFromVaultInput) (req *request.Request, output *RemoveTagsFromVaultOutput) {
|
||||
op := &request.Operation{
|
||||
Name: opRemoveTagsFromVault,
|
||||
|
@ -1393,7 +2007,28 @@ func (c *Glacier) RemoveTagsFromVault(input *RemoveTagsFromVaultInput) (*RemoveT
|
|||
|
||||
const opSetDataRetrievalPolicy = "SetDataRetrievalPolicy"
|
||||
|
||||
// SetDataRetrievalPolicyRequest generates a request for the SetDataRetrievalPolicy operation.
|
||||
// SetDataRetrievalPolicyRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the SetDataRetrievalPolicy operation. The "output" return
|
||||
// value can be used to capture response data after the request's "Send" method
|
||||
// is called.
|
||||
//
|
||||
// Creating a request object using this method should be used when you want to inject
|
||||
// custom logic into the request's lifecycle using a custom handler, or if you want to
|
||||
// access properties on the request object before or after sending the request. If
|
||||
// you just want the service response, call the SetDataRetrievalPolicy method directly
|
||||
// instead.
|
||||
//
|
||||
// Note: You must call the "Send" method on the returned request object in order
|
||||
// to execute the request.
|
||||
//
|
||||
// // Example sending a request using the SetDataRetrievalPolicyRequest method.
|
||||
// req, resp := client.SetDataRetrievalPolicyRequest(params)
|
||||
//
|
||||
// err := req.Send()
|
||||
// if err == nil { // resp is now filled
|
||||
// fmt.Println(resp)
|
||||
// }
|
||||
//
|
||||
func (c *Glacier) SetDataRetrievalPolicyRequest(input *SetDataRetrievalPolicyInput) (req *request.Request, output *SetDataRetrievalPolicyOutput) {
|
||||
op := &request.Operation{
|
||||
Name: opSetDataRetrievalPolicy,
|
||||
|
@ -1428,7 +2063,28 @@ func (c *Glacier) SetDataRetrievalPolicy(input *SetDataRetrievalPolicyInput) (*S
|
|||
|
||||
const opSetVaultAccessPolicy = "SetVaultAccessPolicy"
|
||||
|
||||
// SetVaultAccessPolicyRequest generates a request for the SetVaultAccessPolicy operation.
|
||||
// SetVaultAccessPolicyRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the SetVaultAccessPolicy operation. The "output" return
|
||||
// value can be used to capture response data after the request's "Send" method
|
||||
// is called.
|
||||
//
|
||||
// Creating a request object using this method should be used when you want to inject
|
||||
// custom logic into the request's lifecycle using a custom handler, or if you want to
|
||||
// access properties on the request object before or after sending the request. If
|
||||
// you just want the service response, call the SetVaultAccessPolicy method directly
|
||||
// instead.
|
||||
//
|
||||
// Note: You must call the "Send" method on the returned request object in order
|
||||
// to execute the request.
|
||||
//
|
||||
// // Example sending a request using the SetVaultAccessPolicyRequest method.
|
||||
// req, resp := client.SetVaultAccessPolicyRequest(params)
|
||||
//
|
||||
// err := req.Send()
|
||||
// if err == nil { // resp is now filled
|
||||
// fmt.Println(resp)
|
||||
// }
|
||||
//
|
||||
func (c *Glacier) SetVaultAccessPolicyRequest(input *SetVaultAccessPolicyInput) (req *request.Request, output *SetVaultAccessPolicyOutput) {
|
||||
op := &request.Operation{
|
||||
Name: opSetVaultAccessPolicy,
|
||||
|
@ -1463,7 +2119,28 @@ func (c *Glacier) SetVaultAccessPolicy(input *SetVaultAccessPolicyInput) (*SetVa
|
|||
|
||||
const opSetVaultNotifications = "SetVaultNotifications"
|
||||
|
||||
// SetVaultNotificationsRequest generates a request for the SetVaultNotifications operation.
|
||||
// SetVaultNotificationsRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the SetVaultNotifications operation. The "output" return
|
||||
// value can be used to capture response data after the request's "Send" method
|
||||
// is called.
|
||||
//
|
||||
// Creating a request object using this method should be used when you want to inject
|
||||
// custom logic into the request's lifecycle using a custom handler, or if you want to
|
||||
// access properties on the request object before or after sending the request. If
|
||||
// you just want the service response, call the SetVaultNotifications method directly
|
||||
// instead.
|
||||
//
|
||||
// Note: You must call the "Send" method on the returned request object in order
|
||||
// to execute the request.
|
||||
//
|
||||
// // Example sending a request using the SetVaultNotificationsRequest method.
|
||||
// req, resp := client.SetVaultNotificationsRequest(params)
|
||||
//
|
||||
// err := req.Send()
|
||||
// if err == nil { // resp is now filled
|
||||
// fmt.Println(resp)
|
||||
// }
|
||||
//
|
||||
func (c *Glacier) SetVaultNotificationsRequest(input *SetVaultNotificationsInput) (req *request.Request, output *SetVaultNotificationsOutput) {
|
||||
op := &request.Operation{
|
||||
Name: opSetVaultNotifications,
|
||||
|
@ -1520,7 +2197,28 @@ func (c *Glacier) SetVaultNotifications(input *SetVaultNotificationsInput) (*Set
|
|||
|
||||
const opUploadArchive = "UploadArchive"
|
||||
|
||||
// UploadArchiveRequest generates a request for the UploadArchive operation.
|
||||
// UploadArchiveRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the UploadArchive operation. The "output" return
|
||||
// value can be used to capture response data after the request's "Send" method
|
||||
// is called.
|
||||
//
|
||||
// Creating a request object using this method should be used when you want to inject
|
||||
// custom logic into the request's lifecycle using a custom handler, or if you want to
|
||||
// access properties on the request object before or after sending the request. If
|
||||
// you just want the service response, call the UploadArchive method directly
|
||||
// instead.
|
||||
//
|
||||
// Note: You must call the "Send" method on the returned request object in order
|
||||
// to execute the request.
|
||||
//
|
||||
// // Example sending a request using the UploadArchiveRequest method.
|
||||
// req, resp := client.UploadArchiveRequest(params)
|
||||
//
|
||||
// err := req.Send()
|
||||
// if err == nil { // resp is now filled
|
||||
// fmt.Println(resp)
|
||||
// }
|
||||
//
|
||||
func (c *Glacier) UploadArchiveRequest(input *UploadArchiveInput) (req *request.Request, output *ArchiveCreationOutput) {
|
||||
op := &request.Operation{
|
||||
Name: opUploadArchive,
|
||||
|
@ -1582,7 +2280,28 @@ func (c *Glacier) UploadArchive(input *UploadArchiveInput) (*ArchiveCreationOutp
|
|||
|
||||
const opUploadMultipartPart = "UploadMultipartPart"
|
||||
|
||||
// UploadMultipartPartRequest generates a request for the UploadMultipartPart operation.
|
||||
// UploadMultipartPartRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the UploadMultipartPart operation. The "output" return
|
||||
// value can be used to capture response data after the request's "Send" method
|
||||
// is called.
|
||||
//
|
||||
// Creating a request object using this method should be used when you want to inject
|
||||
// custom logic into the request's lifecycle using a custom handler, or if you want to
|
||||
// access properties on the request object before or after sending the request. If
|
||||
// you just want the service response, call the UploadMultipartPart method directly
|
||||
// instead.
|
||||
//
|
||||
// Note: You must call the "Send" method on the returned request object in order
|
||||
// to execute the request.
|
||||
//
|
||||
// // Example sending a request using the UploadMultipartPartRequest method.
|
||||
// req, resp := client.UploadMultipartPartRequest(params)
|
||||
//
|
||||
// err := req.Send()
|
||||
// if err == nil { // resp is now filled
|
||||
// fmt.Println(resp)
|
||||
// }
|
||||
//
|
||||
func (c *Glacier) UploadMultipartPartRequest(input *UploadMultipartPartInput) (req *request.Request, output *UploadMultipartPartOutput) {
|
||||
op := &request.Operation{
|
||||
Name: opUploadMultipartPart,
|
||||
|
|
|
@ -7,8 +7,8 @@ import (
|
|||
"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/restjson"
|
||||
"github.com/aws/aws-sdk-go/private/signer/v4"
|
||||
)
|
||||
|
||||
// Amazon Glacier is a storage solution for "cold data."
|
||||
|
@ -88,7 +88,7 @@ func newClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegio
|
|||
}
|
||||
|
||||
// Handlers
|
||||
svc.Handlers.Sign.PushBack(v4.Sign)
|
||||
svc.Handlers.Sign.PushBackNamed(v4.SignRequestHandler)
|
||||
svc.Handlers.Build.PushBackNamed(restjson.BuildHandler)
|
||||
svc.Handlers.Unmarshal.PushBackNamed(restjson.UnmarshalHandler)
|
||||
svc.Handlers.UnmarshalMeta.PushBackNamed(restjson.UnmarshalMetaHandler)
|
||||
|
|
File diff suppressed because it is too large
Load Diff
|
@ -7,8 +7,8 @@ import (
|
|||
"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/query"
|
||||
"github.com/aws/aws-sdk-go/private/signer/v4"
|
||||
)
|
||||
|
||||
// AWS Identity and Access Management (IAM) is a web service that you can use
|
||||
|
@ -24,10 +24,12 @@ import (
|
|||
// requests (see below), managing errors, and retrying requests automatically.
|
||||
// For information about the AWS SDKs, including how to download and install
|
||||
// them, see the Tools for Amazon Web Services (http://aws.amazon.com/tools/)
|
||||
// page. We recommend that you use the AWS SDKs to make programmatic API calls
|
||||
// to IAM. However, you can also use the IAM Query API to make direct calls
|
||||
// to the IAM web service. To learn more about the IAM Query API, see Making
|
||||
// Query Requests (http://docs.aws.amazon.com/IAM/latest/UserGuide/IAM_UsingQueryAPI.html)
|
||||
// page.
|
||||
//
|
||||
// We recommend that you use the AWS SDKs to make programmatic API calls to
|
||||
// IAM. However, you can also use the IAM Query API to make direct calls to
|
||||
// the IAM web service. To learn more about the IAM Query API, see Making Query
|
||||
// Requests (http://docs.aws.amazon.com/IAM/latest/UserGuide/IAM_UsingQueryAPI.html)
|
||||
// in the Using IAM guide. IAM supports GET and POST requests for all actions.
|
||||
// That is, the API does not require you to use GET for some actions and POST
|
||||
// for others. However, GET requests are subject to the limitation size of a
|
||||
|
@ -54,9 +56,13 @@ import (
|
|||
//
|
||||
// AWS Security Credentials (http://docs.aws.amazon.com/general/latest/gr/aws-security-credentials.html).
|
||||
// This topic provides general information about the types of credentials used
|
||||
// for accessing AWS. IAM Best Practices (http://docs.aws.amazon.com/IAM/latest/UserGuide/IAMBestPractices.html).
|
||||
// for accessing AWS.
|
||||
//
|
||||
// IAM Best Practices (http://docs.aws.amazon.com/IAM/latest/UserGuide/IAMBestPractices.html).
|
||||
// This topic presents a list of suggestions for using the IAM service to help
|
||||
// secure your AWS resources. Signing AWS API Requests (http://docs.aws.amazon.com/general/latest/gr/signing_aws_api_requests.html).
|
||||
// secure your AWS resources.
|
||||
//
|
||||
// Signing AWS API Requests (http://docs.aws.amazon.com/general/latest/gr/signing_aws_api_requests.html).
|
||||
// This set of topics walk you through the process of signing a request using
|
||||
// an access key ID and secret access key.
|
||||
//The service client's operations are safe to be used concurrently.
|
||||
|
@ -105,7 +111,7 @@ func newClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegio
|
|||
}
|
||||
|
||||
// Handlers
|
||||
svc.Handlers.Sign.PushBack(v4.Sign)
|
||||
svc.Handlers.Sign.PushBackNamed(v4.SignRequestHandler)
|
||||
svc.Handlers.Build.PushBackNamed(query.BuildHandler)
|
||||
svc.Handlers.Unmarshal.PushBackNamed(query.UnmarshalHandler)
|
||||
svc.Handlers.UnmarshalMeta.PushBackNamed(query.UnmarshalMetaHandler)
|
||||
|
|
|
@ -15,7 +15,28 @@ import (
|
|||
|
||||
const opAddTagsToStream = "AddTagsToStream"
|
||||
|
||||
// AddTagsToStreamRequest generates a request for the AddTagsToStream operation.
|
||||
// AddTagsToStreamRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the AddTagsToStream operation. The "output" return
|
||||
// value can be used to capture response data after the request's "Send" method
|
||||
// is called.
|
||||
//
|
||||
// Creating a request object using this method should be used when you want to inject
|
||||
// custom logic into the request's lifecycle using a custom handler, or if you want to
|
||||
// access properties on the request object before or after sending the request. If
|
||||
// you just want the service response, call the AddTagsToStream method directly
|
||||
// instead.
|
||||
//
|
||||
// Note: You must call the "Send" method on the returned request object in order
|
||||
// to execute the request.
|
||||
//
|
||||
// // Example sending a request using the AddTagsToStreamRequest method.
|
||||
// req, resp := client.AddTagsToStreamRequest(params)
|
||||
//
|
||||
// err := req.Send()
|
||||
// if err == nil { // resp is now filled
|
||||
// fmt.Println(resp)
|
||||
// }
|
||||
//
|
||||
func (c *Kinesis) AddTagsToStreamRequest(input *AddTagsToStreamInput) (req *request.Request, output *AddTagsToStreamOutput) {
|
||||
op := &request.Operation{
|
||||
Name: opAddTagsToStream,
|
||||
|
@ -48,7 +69,28 @@ func (c *Kinesis) AddTagsToStream(input *AddTagsToStreamInput) (*AddTagsToStream
|
|||
|
||||
const opCreateStream = "CreateStream"
|
||||
|
||||
// CreateStreamRequest generates a request for the CreateStream operation.
|
||||
// CreateStreamRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the CreateStream operation. The "output" return
|
||||
// value can be used to capture response data after the request's "Send" method
|
||||
// is called.
|
||||
//
|
||||
// Creating a request object using this method should be used when you want to inject
|
||||
// custom logic into the request's lifecycle using a custom handler, or if you want to
|
||||
// access properties on the request object before or after sending the request. If
|
||||
// you just want the service response, call the CreateStream method directly
|
||||
// instead.
|
||||
//
|
||||
// Note: You must call the "Send" method on the returned request object in order
|
||||
// to execute the request.
|
||||
//
|
||||
// // Example sending a request using the CreateStreamRequest method.
|
||||
// req, resp := client.CreateStreamRequest(params)
|
||||
//
|
||||
// err := req.Send()
|
||||
// if err == nil { // resp is now filled
|
||||
// fmt.Println(resp)
|
||||
// }
|
||||
//
|
||||
func (c *Kinesis) CreateStreamRequest(input *CreateStreamInput) (req *request.Request, output *CreateStreamOutput) {
|
||||
op := &request.Operation{
|
||||
Name: opCreateStream,
|
||||
|
@ -112,7 +154,28 @@ func (c *Kinesis) CreateStream(input *CreateStreamInput) (*CreateStreamOutput, e
|
|||
|
||||
const opDecreaseStreamRetentionPeriod = "DecreaseStreamRetentionPeriod"
|
||||
|
||||
// DecreaseStreamRetentionPeriodRequest generates a request for the DecreaseStreamRetentionPeriod operation.
|
||||
// DecreaseStreamRetentionPeriodRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the DecreaseStreamRetentionPeriod operation. The "output" return
|
||||
// value can be used to capture response data after the request's "Send" method
|
||||
// is called.
|
||||
//
|
||||
// Creating a request object using this method should be used when you want to inject
|
||||
// custom logic into the request's lifecycle using a custom handler, or if you want to
|
||||
// access properties on the request object before or after sending the request. If
|
||||
// you just want the service response, call the DecreaseStreamRetentionPeriod method directly
|
||||
// instead.
|
||||
//
|
||||
// Note: You must call the "Send" method on the returned request object in order
|
||||
// to execute the request.
|
||||
//
|
||||
// // Example sending a request using the DecreaseStreamRetentionPeriodRequest method.
|
||||
// req, resp := client.DecreaseStreamRetentionPeriodRequest(params)
|
||||
//
|
||||
// err := req.Send()
|
||||
// if err == nil { // resp is now filled
|
||||
// fmt.Println(resp)
|
||||
// }
|
||||
//
|
||||
func (c *Kinesis) DecreaseStreamRetentionPeriodRequest(input *DecreaseStreamRetentionPeriodInput) (req *request.Request, output *DecreaseStreamRetentionPeriodOutput) {
|
||||
op := &request.Operation{
|
||||
Name: opDecreaseStreamRetentionPeriod,
|
||||
|
@ -147,7 +210,28 @@ func (c *Kinesis) DecreaseStreamRetentionPeriod(input *DecreaseStreamRetentionPe
|
|||
|
||||
const opDeleteStream = "DeleteStream"
|
||||
|
||||
// DeleteStreamRequest generates a request for the DeleteStream operation.
|
||||
// DeleteStreamRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the DeleteStream operation. The "output" return
|
||||
// value can be used to capture response data after the request's "Send" method
|
||||
// is called.
|
||||
//
|
||||
// Creating a request object using this method should be used when you want to inject
|
||||
// custom logic into the request's lifecycle using a custom handler, or if you want to
|
||||
// access properties on the request object before or after sending the request. If
|
||||
// you just want the service response, call the DeleteStream method directly
|
||||
// instead.
|
||||
//
|
||||
// Note: You must call the "Send" method on the returned request object in order
|
||||
// to execute the request.
|
||||
//
|
||||
// // Example sending a request using the DeleteStreamRequest method.
|
||||
// req, resp := client.DeleteStreamRequest(params)
|
||||
//
|
||||
// err := req.Send()
|
||||
// if err == nil { // resp is now filled
|
||||
// fmt.Println(resp)
|
||||
// }
|
||||
//
|
||||
func (c *Kinesis) DeleteStreamRequest(input *DeleteStreamInput) (req *request.Request, output *DeleteStreamOutput) {
|
||||
op := &request.Operation{
|
||||
Name: opDeleteStream,
|
||||
|
@ -195,7 +279,28 @@ func (c *Kinesis) DeleteStream(input *DeleteStreamInput) (*DeleteStreamOutput, e
|
|||
|
||||
const opDescribeStream = "DescribeStream"
|
||||
|
||||
// DescribeStreamRequest generates a request for the DescribeStream operation.
|
||||
// DescribeStreamRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the DescribeStream operation. The "output" return
|
||||
// value can be used to capture response data after the request's "Send" method
|
||||
// is called.
|
||||
//
|
||||
// Creating a request object using this method should be used when you want to inject
|
||||
// custom logic into the request's lifecycle using a custom handler, or if you want to
|
||||
// access properties on the request object before or after sending the request. If
|
||||
// you just want the service response, call the DescribeStream method directly
|
||||
// instead.
|
||||
//
|
||||
// Note: You must call the "Send" method on the returned request object in order
|
||||
// to execute the request.
|
||||
//
|
||||
// // Example sending a request using the DescribeStreamRequest method.
|
||||
// req, resp := client.DescribeStreamRequest(params)
|
||||
//
|
||||
// err := req.Send()
|
||||
// if err == nil { // resp is now filled
|
||||
// fmt.Println(resp)
|
||||
// }
|
||||
//
|
||||
func (c *Kinesis) DescribeStreamRequest(input *DescribeStreamInput) (req *request.Request, output *DescribeStreamOutput) {
|
||||
op := &request.Operation{
|
||||
Name: opDescribeStream,
|
||||
|
@ -251,6 +356,23 @@ func (c *Kinesis) DescribeStream(input *DescribeStreamInput) (*DescribeStreamOut
|
|||
return out, err
|
||||
}
|
||||
|
||||
// DescribeStreamPages iterates over the pages of a DescribeStream operation,
|
||||
// calling the "fn" function with the response data for each page. To stop
|
||||
// iterating, return false from the fn function.
|
||||
//
|
||||
// See DescribeStream 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 DescribeStream operation.
|
||||
// pageNum := 0
|
||||
// err := client.DescribeStreamPages(params,
|
||||
// func(page *DescribeStreamOutput, lastPage bool) bool {
|
||||
// pageNum++
|
||||
// fmt.Println(page)
|
||||
// return pageNum <= 3
|
||||
// })
|
||||
//
|
||||
func (c *Kinesis) DescribeStreamPages(input *DescribeStreamInput, fn func(p *DescribeStreamOutput, lastPage bool) (shouldContinue bool)) error {
|
||||
page, _ := c.DescribeStreamRequest(input)
|
||||
page.Handlers.Build.PushBack(request.MakeAddToUserAgentFreeFormHandler("Paginator"))
|
||||
|
@ -261,7 +383,28 @@ func (c *Kinesis) DescribeStreamPages(input *DescribeStreamInput, fn func(p *Des
|
|||
|
||||
const opDisableEnhancedMonitoring = "DisableEnhancedMonitoring"
|
||||
|
||||
// DisableEnhancedMonitoringRequest generates a request for the DisableEnhancedMonitoring operation.
|
||||
// DisableEnhancedMonitoringRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the DisableEnhancedMonitoring operation. The "output" return
|
||||
// value can be used to capture response data after the request's "Send" method
|
||||
// is called.
|
||||
//
|
||||
// Creating a request object using this method should be used when you want to inject
|
||||
// custom logic into the request's lifecycle using a custom handler, or if you want to
|
||||
// access properties on the request object before or after sending the request. If
|
||||
// you just want the service response, call the DisableEnhancedMonitoring method directly
|
||||
// instead.
|
||||
//
|
||||
// Note: You must call the "Send" method on the returned request object in order
|
||||
// to execute the request.
|
||||
//
|
||||
// // Example sending a request using the DisableEnhancedMonitoringRequest method.
|
||||
// req, resp := client.DisableEnhancedMonitoringRequest(params)
|
||||
//
|
||||
// err := req.Send()
|
||||
// if err == nil { // resp is now filled
|
||||
// fmt.Println(resp)
|
||||
// }
|
||||
//
|
||||
func (c *Kinesis) DisableEnhancedMonitoringRequest(input *DisableEnhancedMonitoringInput) (req *request.Request, output *EnhancedMonitoringOutput) {
|
||||
op := &request.Operation{
|
||||
Name: opDisableEnhancedMonitoring,
|
||||
|
@ -288,7 +431,28 @@ func (c *Kinesis) DisableEnhancedMonitoring(input *DisableEnhancedMonitoringInpu
|
|||
|
||||
const opEnableEnhancedMonitoring = "EnableEnhancedMonitoring"
|
||||
|
||||
// EnableEnhancedMonitoringRequest generates a request for the EnableEnhancedMonitoring operation.
|
||||
// EnableEnhancedMonitoringRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the EnableEnhancedMonitoring operation. The "output" return
|
||||
// value can be used to capture response data after the request's "Send" method
|
||||
// is called.
|
||||
//
|
||||
// Creating a request object using this method should be used when you want to inject
|
||||
// custom logic into the request's lifecycle using a custom handler, or if you want to
|
||||
// access properties on the request object before or after sending the request. If
|
||||
// you just want the service response, call the EnableEnhancedMonitoring method directly
|
||||
// instead.
|
||||
//
|
||||
// Note: You must call the "Send" method on the returned request object in order
|
||||
// to execute the request.
|
||||
//
|
||||
// // Example sending a request using the EnableEnhancedMonitoringRequest method.
|
||||
// req, resp := client.EnableEnhancedMonitoringRequest(params)
|
||||
//
|
||||
// err := req.Send()
|
||||
// if err == nil { // resp is now filled
|
||||
// fmt.Println(resp)
|
||||
// }
|
||||
//
|
||||
func (c *Kinesis) EnableEnhancedMonitoringRequest(input *EnableEnhancedMonitoringInput) (req *request.Request, output *EnhancedMonitoringOutput) {
|
||||
op := &request.Operation{
|
||||
Name: opEnableEnhancedMonitoring,
|
||||
|
@ -315,7 +479,28 @@ func (c *Kinesis) EnableEnhancedMonitoring(input *EnableEnhancedMonitoringInput)
|
|||
|
||||
const opGetRecords = "GetRecords"
|
||||
|
||||
// GetRecordsRequest generates a request for the GetRecords operation.
|
||||
// GetRecordsRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the GetRecords operation. The "output" return
|
||||
// value can be used to capture response data after the request's "Send" method
|
||||
// is called.
|
||||
//
|
||||
// Creating a request object using this method should be used when you want to inject
|
||||
// custom logic into the request's lifecycle using a custom handler, or if you want to
|
||||
// access properties on the request object before or after sending the request. If
|
||||
// you just want the service response, call the GetRecords method directly
|
||||
// instead.
|
||||
//
|
||||
// Note: You must call the "Send" method on the returned request object in order
|
||||
// to execute the request.
|
||||
//
|
||||
// // Example sending a request using the GetRecordsRequest method.
|
||||
// req, resp := client.GetRecordsRequest(params)
|
||||
//
|
||||
// err := req.Send()
|
||||
// if err == nil { // resp is now filled
|
||||
// fmt.Println(resp)
|
||||
// }
|
||||
//
|
||||
func (c *Kinesis) GetRecordsRequest(input *GetRecordsInput) (req *request.Request, output *GetRecordsOutput) {
|
||||
op := &request.Operation{
|
||||
Name: opGetRecords,
|
||||
|
@ -394,7 +579,28 @@ func (c *Kinesis) GetRecords(input *GetRecordsInput) (*GetRecordsOutput, error)
|
|||
|
||||
const opGetShardIterator = "GetShardIterator"
|
||||
|
||||
// GetShardIteratorRequest generates a request for the GetShardIterator operation.
|
||||
// GetShardIteratorRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the GetShardIterator operation. The "output" return
|
||||
// value can be used to capture response data after the request's "Send" method
|
||||
// is called.
|
||||
//
|
||||
// Creating a request object using this method should be used when you want to inject
|
||||
// custom logic into the request's lifecycle using a custom handler, or if you want to
|
||||
// access properties on the request object before or after sending the request. If
|
||||
// you just want the service response, call the GetShardIterator method directly
|
||||
// instead.
|
||||
//
|
||||
// Note: You must call the "Send" method on the returned request object in order
|
||||
// to execute the request.
|
||||
//
|
||||
// // Example sending a request using the GetShardIteratorRequest method.
|
||||
// req, resp := client.GetShardIteratorRequest(params)
|
||||
//
|
||||
// err := req.Send()
|
||||
// if err == nil { // resp is now filled
|
||||
// fmt.Println(resp)
|
||||
// }
|
||||
//
|
||||
func (c *Kinesis) GetShardIteratorRequest(input *GetShardIteratorInput) (req *request.Request, output *GetShardIteratorOutput) {
|
||||
op := &request.Operation{
|
||||
Name: opGetShardIterator,
|
||||
|
@ -458,7 +664,28 @@ func (c *Kinesis) GetShardIterator(input *GetShardIteratorInput) (*GetShardItera
|
|||
|
||||
const opIncreaseStreamRetentionPeriod = "IncreaseStreamRetentionPeriod"
|
||||
|
||||
// IncreaseStreamRetentionPeriodRequest generates a request for the IncreaseStreamRetentionPeriod operation.
|
||||
// IncreaseStreamRetentionPeriodRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the IncreaseStreamRetentionPeriod operation. The "output" return
|
||||
// value can be used to capture response data after the request's "Send" method
|
||||
// is called.
|
||||
//
|
||||
// Creating a request object using this method should be used when you want to inject
|
||||
// custom logic into the request's lifecycle using a custom handler, or if you want to
|
||||
// access properties on the request object before or after sending the request. If
|
||||
// you just want the service response, call the IncreaseStreamRetentionPeriod method directly
|
||||
// instead.
|
||||
//
|
||||
// Note: You must call the "Send" method on the returned request object in order
|
||||
// to execute the request.
|
||||
//
|
||||
// // Example sending a request using the IncreaseStreamRetentionPeriodRequest method.
|
||||
// req, resp := client.IncreaseStreamRetentionPeriodRequest(params)
|
||||
//
|
||||
// err := req.Send()
|
||||
// if err == nil { // resp is now filled
|
||||
// fmt.Println(resp)
|
||||
// }
|
||||
//
|
||||
func (c *Kinesis) IncreaseStreamRetentionPeriodRequest(input *IncreaseStreamRetentionPeriodInput) (req *request.Request, output *IncreaseStreamRetentionPeriodOutput) {
|
||||
op := &request.Operation{
|
||||
Name: opIncreaseStreamRetentionPeriod,
|
||||
|
@ -497,7 +724,28 @@ func (c *Kinesis) IncreaseStreamRetentionPeriod(input *IncreaseStreamRetentionPe
|
|||
|
||||
const opListStreams = "ListStreams"
|
||||
|
||||
// ListStreamsRequest generates a request for the ListStreams operation.
|
||||
// ListStreamsRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the ListStreams operation. The "output" return
|
||||
// value can be used to capture response data after the request's "Send" method
|
||||
// is called.
|
||||
//
|
||||
// Creating a request object using this method should be used when you want to inject
|
||||
// custom logic into the request's lifecycle using a custom handler, or if you want to
|
||||
// access properties on the request object before or after sending the request. If
|
||||
// you just want the service response, call the ListStreams method directly
|
||||
// instead.
|
||||
//
|
||||
// Note: You must call the "Send" method on the returned request object in order
|
||||
// to execute the request.
|
||||
//
|
||||
// // Example sending a request using the ListStreamsRequest method.
|
||||
// req, resp := client.ListStreamsRequest(params)
|
||||
//
|
||||
// err := req.Send()
|
||||
// if err == nil { // resp is now filled
|
||||
// fmt.Println(resp)
|
||||
// }
|
||||
//
|
||||
func (c *Kinesis) ListStreamsRequest(input *ListStreamsInput) (req *request.Request, output *ListStreamsOutput) {
|
||||
op := &request.Operation{
|
||||
Name: opListStreams,
|
||||
|
@ -543,6 +791,23 @@ func (c *Kinesis) ListStreams(input *ListStreamsInput) (*ListStreamsOutput, erro
|
|||
return out, err
|
||||
}
|
||||
|
||||
// ListStreamsPages iterates over the pages of a ListStreams operation,
|
||||
// calling the "fn" function with the response data for each page. To stop
|
||||
// iterating, return false from the fn function.
|
||||
//
|
||||
// See ListStreams 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 ListStreams operation.
|
||||
// pageNum := 0
|
||||
// err := client.ListStreamsPages(params,
|
||||
// func(page *ListStreamsOutput, lastPage bool) bool {
|
||||
// pageNum++
|
||||
// fmt.Println(page)
|
||||
// return pageNum <= 3
|
||||
// })
|
||||
//
|
||||
func (c *Kinesis) ListStreamsPages(input *ListStreamsInput, fn func(p *ListStreamsOutput, lastPage bool) (shouldContinue bool)) error {
|
||||
page, _ := c.ListStreamsRequest(input)
|
||||
page.Handlers.Build.PushBack(request.MakeAddToUserAgentFreeFormHandler("Paginator"))
|
||||
|
@ -553,7 +818,28 @@ func (c *Kinesis) ListStreamsPages(input *ListStreamsInput, fn func(p *ListStrea
|
|||
|
||||
const opListTagsForStream = "ListTagsForStream"
|
||||
|
||||
// ListTagsForStreamRequest generates a request for the ListTagsForStream operation.
|
||||
// ListTagsForStreamRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the ListTagsForStream operation. The "output" return
|
||||
// value can be used to capture response data after the request's "Send" method
|
||||
// is called.
|
||||
//
|
||||
// Creating a request object using this method should be used when you want to inject
|
||||
// custom logic into the request's lifecycle using a custom handler, or if you want to
|
||||
// access properties on the request object before or after sending the request. If
|
||||
// you just want the service response, call the ListTagsForStream method directly
|
||||
// instead.
|
||||
//
|
||||
// Note: You must call the "Send" method on the returned request object in order
|
||||
// to execute the request.
|
||||
//
|
||||
// // Example sending a request using the ListTagsForStreamRequest method.
|
||||
// req, resp := client.ListTagsForStreamRequest(params)
|
||||
//
|
||||
// err := req.Send()
|
||||
// if err == nil { // resp is now filled
|
||||
// fmt.Println(resp)
|
||||
// }
|
||||
//
|
||||
func (c *Kinesis) ListTagsForStreamRequest(input *ListTagsForStreamInput) (req *request.Request, output *ListTagsForStreamOutput) {
|
||||
op := &request.Operation{
|
||||
Name: opListTagsForStream,
|
||||
|
@ -580,7 +866,28 @@ func (c *Kinesis) ListTagsForStream(input *ListTagsForStreamInput) (*ListTagsFor
|
|||
|
||||
const opMergeShards = "MergeShards"
|
||||
|
||||
// MergeShardsRequest generates a request for the MergeShards operation.
|
||||
// MergeShardsRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the MergeShards operation. The "output" return
|
||||
// value can be used to capture response data after the request's "Send" method
|
||||
// is called.
|
||||
//
|
||||
// Creating a request object using this method should be used when you want to inject
|
||||
// custom logic into the request's lifecycle using a custom handler, or if you want to
|
||||
// access properties on the request object before or after sending the request. If
|
||||
// you just want the service response, call the MergeShards method directly
|
||||
// instead.
|
||||
//
|
||||
// Note: You must call the "Send" method on the returned request object in order
|
||||
// to execute the request.
|
||||
//
|
||||
// // Example sending a request using the MergeShardsRequest method.
|
||||
// req, resp := client.MergeShardsRequest(params)
|
||||
//
|
||||
// err := req.Send()
|
||||
// if err == nil { // resp is now filled
|
||||
// fmt.Println(resp)
|
||||
// }
|
||||
//
|
||||
func (c *Kinesis) MergeShardsRequest(input *MergeShardsInput) (req *request.Request, output *MergeShardsOutput) {
|
||||
op := &request.Operation{
|
||||
Name: opMergeShards,
|
||||
|
@ -644,7 +951,28 @@ func (c *Kinesis) MergeShards(input *MergeShardsInput) (*MergeShardsOutput, erro
|
|||
|
||||
const opPutRecord = "PutRecord"
|
||||
|
||||
// PutRecordRequest generates a request for the PutRecord operation.
|
||||
// PutRecordRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the PutRecord operation. The "output" return
|
||||
// value can be used to capture response data after the request's "Send" method
|
||||
// is called.
|
||||
//
|
||||
// Creating a request object using this method should be used when you want to inject
|
||||
// custom logic into the request's lifecycle using a custom handler, or if you want to
|
||||
// access properties on the request object before or after sending the request. If
|
||||
// you just want the service response, call the PutRecord method directly
|
||||
// instead.
|
||||
//
|
||||
// Note: You must call the "Send" method on the returned request object in order
|
||||
// to execute the request.
|
||||
//
|
||||
// // Example sending a request using the PutRecordRequest method.
|
||||
// req, resp := client.PutRecordRequest(params)
|
||||
//
|
||||
// err := req.Send()
|
||||
// if err == nil { // resp is now filled
|
||||
// fmt.Println(resp)
|
||||
// }
|
||||
//
|
||||
func (c *Kinesis) PutRecordRequest(input *PutRecordInput) (req *request.Request, output *PutRecordOutput) {
|
||||
op := &request.Operation{
|
||||
Name: opPutRecord,
|
||||
|
@ -708,7 +1036,28 @@ func (c *Kinesis) PutRecord(input *PutRecordInput) (*PutRecordOutput, error) {
|
|||
|
||||
const opPutRecords = "PutRecords"
|
||||
|
||||
// PutRecordsRequest generates a request for the PutRecords operation.
|
||||
// PutRecordsRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the PutRecords operation. The "output" return
|
||||
// value can be used to capture response data after the request's "Send" method
|
||||
// is called.
|
||||
//
|
||||
// Creating a request object using this method should be used when you want to inject
|
||||
// custom logic into the request's lifecycle using a custom handler, or if you want to
|
||||
// access properties on the request object before or after sending the request. If
|
||||
// you just want the service response, call the PutRecords method directly
|
||||
// instead.
|
||||
//
|
||||
// Note: You must call the "Send" method on the returned request object in order
|
||||
// to execute the request.
|
||||
//
|
||||
// // Example sending a request using the PutRecordsRequest method.
|
||||
// req, resp := client.PutRecordsRequest(params)
|
||||
//
|
||||
// err := req.Send()
|
||||
// if err == nil { // resp is now filled
|
||||
// fmt.Println(resp)
|
||||
// }
|
||||
//
|
||||
func (c *Kinesis) PutRecordsRequest(input *PutRecordsInput) (req *request.Request, output *PutRecordsOutput) {
|
||||
op := &request.Operation{
|
||||
Name: opPutRecords,
|
||||
|
@ -794,7 +1143,28 @@ func (c *Kinesis) PutRecords(input *PutRecordsInput) (*PutRecordsOutput, error)
|
|||
|
||||
const opRemoveTagsFromStream = "RemoveTagsFromStream"
|
||||
|
||||
// RemoveTagsFromStreamRequest generates a request for the RemoveTagsFromStream operation.
|
||||
// RemoveTagsFromStreamRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the RemoveTagsFromStream operation. The "output" return
|
||||
// value can be used to capture response data after the request's "Send" method
|
||||
// is called.
|
||||
//
|
||||
// Creating a request object using this method should be used when you want to inject
|
||||
// custom logic into the request's lifecycle using a custom handler, or if you want to
|
||||
// access properties on the request object before or after sending the request. If
|
||||
// you just want the service response, call the RemoveTagsFromStream method directly
|
||||
// instead.
|
||||
//
|
||||
// Note: You must call the "Send" method on the returned request object in order
|
||||
// to execute the request.
|
||||
//
|
||||
// // Example sending a request using the RemoveTagsFromStreamRequest method.
|
||||
// req, resp := client.RemoveTagsFromStreamRequest(params)
|
||||
//
|
||||
// err := req.Send()
|
||||
// if err == nil { // resp is now filled
|
||||
// fmt.Println(resp)
|
||||
// }
|
||||
//
|
||||
func (c *Kinesis) RemoveTagsFromStreamRequest(input *RemoveTagsFromStreamInput) (req *request.Request, output *RemoveTagsFromStreamOutput) {
|
||||
op := &request.Operation{
|
||||
Name: opRemoveTagsFromStream,
|
||||
|
@ -826,7 +1196,28 @@ func (c *Kinesis) RemoveTagsFromStream(input *RemoveTagsFromStreamInput) (*Remov
|
|||
|
||||
const opSplitShard = "SplitShard"
|
||||
|
||||
// SplitShardRequest generates a request for the SplitShard operation.
|
||||
// SplitShardRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the SplitShard operation. The "output" return
|
||||
// value can be used to capture response data after the request's "Send" method
|
||||
// is called.
|
||||
//
|
||||
// Creating a request object using this method should be used when you want to inject
|
||||
// custom logic into the request's lifecycle using a custom handler, or if you want to
|
||||
// access properties on the request object before or after sending the request. If
|
||||
// you just want the service response, call the SplitShard method directly
|
||||
// instead.
|
||||
//
|
||||
// Note: You must call the "Send" method on the returned request object in order
|
||||
// to execute the request.
|
||||
//
|
||||
// // Example sending a request using the SplitShardRequest method.
|
||||
// req, resp := client.SplitShardRequest(params)
|
||||
//
|
||||
// err := req.Send()
|
||||
// if err == nil { // resp is now filled
|
||||
// fmt.Println(resp)
|
||||
// }
|
||||
//
|
||||
func (c *Kinesis) SplitShardRequest(input *SplitShardInput) (req *request.Request, output *SplitShardOutput) {
|
||||
op := &request.Operation{
|
||||
Name: opSplitShard,
|
||||
|
|
|
@ -7,8 +7,8 @@ import (
|
|||
"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/jsonrpc"
|
||||
"github.com/aws/aws-sdk-go/private/signer/v4"
|
||||
)
|
||||
|
||||
// Amazon Kinesis Streams is a managed service that scales elastically for real
|
||||
|
@ -61,7 +61,7 @@ func newClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegio
|
|||
}
|
||||
|
||||
// Handlers
|
||||
svc.Handlers.Sign.PushBack(v4.Sign)
|
||||
svc.Handlers.Sign.PushBackNamed(v4.SignRequestHandler)
|
||||
svc.Handlers.Build.PushBackNamed(jsonrpc.BuildHandler)
|
||||
svc.Handlers.Unmarshal.PushBackNamed(jsonrpc.UnmarshalHandler)
|
||||
svc.Handlers.UnmarshalMeta.PushBackNamed(jsonrpc.UnmarshalMetaHandler)
|
||||
|
|
File diff suppressed because it is too large
Load Diff
|
@ -7,8 +7,8 @@ import (
|
|||
"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/jsonrpc"
|
||||
"github.com/aws/aws-sdk-go/private/signer/v4"
|
||||
)
|
||||
|
||||
// AWS Key Management Service (AWS KMS) is an encryption and key management
|
||||
|
@ -36,9 +36,9 @@ import (
|
|||
// Signing Requests
|
||||
//
|
||||
// Requests must be signed by using an access key ID and a secret access key.
|
||||
// We strongly recommend that you do not use your AWS account access key ID
|
||||
// and secret key for everyday work with AWS KMS. Instead, use the access key
|
||||
// ID and secret access key for an IAM user, or you can use the AWS Security
|
||||
// We strongly recommend that you do not use your AWS account (root) access
|
||||
// key ID and secret key for everyday work with AWS KMS. Instead, use the access
|
||||
// key ID and secret access key for an IAM user, or you can use the AWS Security
|
||||
// Token Service to generate temporary security credentials that you can use
|
||||
// to sign requests.
|
||||
//
|
||||
|
@ -59,17 +59,29 @@ import (
|
|||
//
|
||||
// AWS Security Credentials (http://docs.aws.amazon.com/general/latest/gr/aws-security-credentials.html)
|
||||
// - This topic provides general information about the types of credentials
|
||||
// used for accessing AWS. AWS Security Token Service (http://docs.aws.amazon.com/STS/latest/UsingSTS/)
|
||||
// - This guide describes how to create and use temporary security credentials.
|
||||
// Signing AWS API Requests (http://docs.aws.amazon.com/general/latest/gr/signing_aws_api_requests.html)
|
||||
// used for accessing AWS.
|
||||
//
|
||||
// Temporary Security Credentials (http://docs.aws.amazon.com/IAM/latest/UserGuide/id_credentials_temp.html)
|
||||
// - This section of the IAM User Guide describes how to create and use temporary
|
||||
// security credentials.
|
||||
//
|
||||
// Signature Version 4 Signing Process (http://docs.aws.amazon.com/general/latest/gr/signature-version-4.html)
|
||||
// - This set of topics walks you through the process of signing a request using
|
||||
// an access key ID and a secret access key. Commonly Used APIs
|
||||
// an access key ID and a secret access key.
|
||||
//
|
||||
// Of the APIs discussed in this guide, the following will prove the most
|
||||
// useful for most applications. You will likely perform actions other than
|
||||
// these, such as creating keys and assigning policies, by using the console.
|
||||
// Commonly Used APIs
|
||||
//
|
||||
// Encrypt Decrypt GenerateDataKey GenerateDataKeyWithoutPlaintext
|
||||
// Of the APIs discussed in this guide, the following will prove the most useful
|
||||
// for most applications. You will likely perform actions other than these,
|
||||
// such as creating keys and assigning policies, by using the console.
|
||||
//
|
||||
// Encrypt
|
||||
//
|
||||
// Decrypt
|
||||
//
|
||||
// GenerateDataKey
|
||||
//
|
||||
// GenerateDataKeyWithoutPlaintext
|
||||
//The service client's operations are safe to be used concurrently.
|
||||
// It is not safe to mutate any of the client's properties though.
|
||||
type KMS struct {
|
||||
|
@ -118,7 +130,7 @@ func newClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegio
|
|||
}
|
||||
|
||||
// Handlers
|
||||
svc.Handlers.Sign.PushBack(v4.Sign)
|
||||
svc.Handlers.Sign.PushBackNamed(v4.SignRequestHandler)
|
||||
svc.Handlers.Build.PushBackNamed(jsonrpc.BuildHandler)
|
||||
svc.Handlers.Unmarshal.PushBackNamed(jsonrpc.UnmarshalHandler)
|
||||
svc.Handlers.UnmarshalMeta.PushBackNamed(jsonrpc.UnmarshalMetaHandler)
|
||||
|
|
|
@ -15,7 +15,28 @@ import (
|
|||
|
||||
const opAddPermission = "AddPermission"
|
||||
|
||||
// AddPermissionRequest generates a request for the AddPermission operation.
|
||||
// AddPermissionRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the AddPermission operation. The "output" return
|
||||
// value can be used to capture response data after the request's "Send" method
|
||||
// is called.
|
||||
//
|
||||
// Creating a request object using this method should be used when you want to inject
|
||||
// custom logic into the request's lifecycle using a custom handler, or if you want to
|
||||
// access properties on the request object before or after sending the request. If
|
||||
// you just want the service response, call the AddPermission method directly
|
||||
// instead.
|
||||
//
|
||||
// Note: You must call the "Send" method on the returned request object in order
|
||||
// to execute the request.
|
||||
//
|
||||
// // Example sending a request using the AddPermissionRequest method.
|
||||
// req, resp := client.AddPermissionRequest(params)
|
||||
//
|
||||
// err := req.Send()
|
||||
// if err == nil { // resp is now filled
|
||||
// fmt.Println(resp)
|
||||
// }
|
||||
//
|
||||
func (c *Lambda) AddPermissionRequest(input *AddPermissionInput) (req *request.Request, output *AddPermissionOutput) {
|
||||
op := &request.Operation{
|
||||
Name: opAddPermission,
|
||||
|
@ -56,7 +77,28 @@ func (c *Lambda) AddPermission(input *AddPermissionInput) (*AddPermissionOutput,
|
|||
|
||||
const opCreateAlias = "CreateAlias"
|
||||
|
||||
// CreateAliasRequest generates a request for the CreateAlias operation.
|
||||
// CreateAliasRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the CreateAlias operation. The "output" return
|
||||
// value can be used to capture response data after the request's "Send" method
|
||||
// is called.
|
||||
//
|
||||
// Creating a request object using this method should be used when you want to inject
|
||||
// custom logic into the request's lifecycle using a custom handler, or if you want to
|
||||
// access properties on the request object before or after sending the request. If
|
||||
// you just want the service response, call the CreateAlias method directly
|
||||
// instead.
|
||||
//
|
||||
// Note: You must call the "Send" method on the returned request object in order
|
||||
// to execute the request.
|
||||
//
|
||||
// // Example sending a request using the CreateAliasRequest method.
|
||||
// req, resp := client.CreateAliasRequest(params)
|
||||
//
|
||||
// err := req.Send()
|
||||
// if err == nil { // resp is now filled
|
||||
// fmt.Println(resp)
|
||||
// }
|
||||
//
|
||||
func (c *Lambda) CreateAliasRequest(input *CreateAliasInput) (req *request.Request, output *AliasConfiguration) {
|
||||
op := &request.Operation{
|
||||
Name: opCreateAlias,
|
||||
|
@ -87,7 +129,28 @@ func (c *Lambda) CreateAlias(input *CreateAliasInput) (*AliasConfiguration, erro
|
|||
|
||||
const opCreateEventSourceMapping = "CreateEventSourceMapping"
|
||||
|
||||
// CreateEventSourceMappingRequest generates a request for the CreateEventSourceMapping operation.
|
||||
// CreateEventSourceMappingRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the CreateEventSourceMapping operation. The "output" return
|
||||
// value can be used to capture response data after the request's "Send" method
|
||||
// is called.
|
||||
//
|
||||
// Creating a request object using this method should be used when you want to inject
|
||||
// custom logic into the request's lifecycle using a custom handler, or if you want to
|
||||
// access properties on the request object before or after sending the request. If
|
||||
// you just want the service response, call the CreateEventSourceMapping method directly
|
||||
// instead.
|
||||
//
|
||||
// Note: You must call the "Send" method on the returned request object in order
|
||||
// to execute the request.
|
||||
//
|
||||
// // Example sending a request using the CreateEventSourceMappingRequest method.
|
||||
// req, resp := client.CreateEventSourceMappingRequest(params)
|
||||
//
|
||||
// err := req.Send()
|
||||
// if err == nil { // resp is now filled
|
||||
// fmt.Println(resp)
|
||||
// }
|
||||
//
|
||||
func (c *Lambda) CreateEventSourceMappingRequest(input *CreateEventSourceMappingInput) (req *request.Request, output *EventSourceMappingConfiguration) {
|
||||
op := &request.Operation{
|
||||
Name: opCreateEventSourceMapping,
|
||||
|
@ -137,7 +200,28 @@ func (c *Lambda) CreateEventSourceMapping(input *CreateEventSourceMappingInput)
|
|||
|
||||
const opCreateFunction = "CreateFunction"
|
||||
|
||||
// CreateFunctionRequest generates a request for the CreateFunction operation.
|
||||
// CreateFunctionRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the CreateFunction operation. The "output" return
|
||||
// value can be used to capture response data after the request's "Send" method
|
||||
// is called.
|
||||
//
|
||||
// Creating a request object using this method should be used when you want to inject
|
||||
// custom logic into the request's lifecycle using a custom handler, or if you want to
|
||||
// access properties on the request object before or after sending the request. If
|
||||
// you just want the service response, call the CreateFunction method directly
|
||||
// instead.
|
||||
//
|
||||
// Note: You must call the "Send" method on the returned request object in order
|
||||
// to execute the request.
|
||||
//
|
||||
// // Example sending a request using the CreateFunctionRequest method.
|
||||
// req, resp := client.CreateFunctionRequest(params)
|
||||
//
|
||||
// err := req.Send()
|
||||
// if err == nil { // resp is now filled
|
||||
// fmt.Println(resp)
|
||||
// }
|
||||
//
|
||||
func (c *Lambda) CreateFunctionRequest(input *CreateFunctionInput) (req *request.Request, output *FunctionConfiguration) {
|
||||
op := &request.Operation{
|
||||
Name: opCreateFunction,
|
||||
|
@ -173,7 +257,28 @@ func (c *Lambda) CreateFunction(input *CreateFunctionInput) (*FunctionConfigurat
|
|||
|
||||
const opDeleteAlias = "DeleteAlias"
|
||||
|
||||
// DeleteAliasRequest generates a request for the DeleteAlias operation.
|
||||
// DeleteAliasRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the DeleteAlias operation. The "output" return
|
||||
// value can be used to capture response data after the request's "Send" method
|
||||
// is called.
|
||||
//
|
||||
// Creating a request object using this method should be used when you want to inject
|
||||
// custom logic into the request's lifecycle using a custom handler, or if you want to
|
||||
// access properties on the request object before or after sending the request. If
|
||||
// you just want the service response, call the DeleteAlias method directly
|
||||
// instead.
|
||||
//
|
||||
// Note: You must call the "Send" method on the returned request object in order
|
||||
// to execute the request.
|
||||
//
|
||||
// // Example sending a request using the DeleteAliasRequest method.
|
||||
// req, resp := client.DeleteAliasRequest(params)
|
||||
//
|
||||
// err := req.Send()
|
||||
// if err == nil { // resp is now filled
|
||||
// fmt.Println(resp)
|
||||
// }
|
||||
//
|
||||
func (c *Lambda) DeleteAliasRequest(input *DeleteAliasInput) (req *request.Request, output *DeleteAliasOutput) {
|
||||
op := &request.Operation{
|
||||
Name: opDeleteAlias,
|
||||
|
@ -205,7 +310,28 @@ func (c *Lambda) DeleteAlias(input *DeleteAliasInput) (*DeleteAliasOutput, error
|
|||
|
||||
const opDeleteEventSourceMapping = "DeleteEventSourceMapping"
|
||||
|
||||
// DeleteEventSourceMappingRequest generates a request for the DeleteEventSourceMapping operation.
|
||||
// DeleteEventSourceMappingRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the DeleteEventSourceMapping operation. The "output" return
|
||||
// value can be used to capture response data after the request's "Send" method
|
||||
// is called.
|
||||
//
|
||||
// Creating a request object using this method should be used when you want to inject
|
||||
// custom logic into the request's lifecycle using a custom handler, or if you want to
|
||||
// access properties on the request object before or after sending the request. If
|
||||
// you just want the service response, call the DeleteEventSourceMapping method directly
|
||||
// instead.
|
||||
//
|
||||
// Note: You must call the "Send" method on the returned request object in order
|
||||
// to execute the request.
|
||||
//
|
||||
// // Example sending a request using the DeleteEventSourceMappingRequest method.
|
||||
// req, resp := client.DeleteEventSourceMappingRequest(params)
|
||||
//
|
||||
// err := req.Send()
|
||||
// if err == nil { // resp is now filled
|
||||
// fmt.Println(resp)
|
||||
// }
|
||||
//
|
||||
func (c *Lambda) DeleteEventSourceMappingRequest(input *DeleteEventSourceMappingInput) (req *request.Request, output *EventSourceMappingConfiguration) {
|
||||
op := &request.Operation{
|
||||
Name: opDeleteEventSourceMapping,
|
||||
|
@ -236,7 +362,28 @@ func (c *Lambda) DeleteEventSourceMapping(input *DeleteEventSourceMappingInput)
|
|||
|
||||
const opDeleteFunction = "DeleteFunction"
|
||||
|
||||
// DeleteFunctionRequest generates a request for the DeleteFunction operation.
|
||||
// DeleteFunctionRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the DeleteFunction operation. The "output" return
|
||||
// value can be used to capture response data after the request's "Send" method
|
||||
// is called.
|
||||
//
|
||||
// Creating a request object using this method should be used when you want to inject
|
||||
// custom logic into the request's lifecycle using a custom handler, or if you want to
|
||||
// access properties on the request object before or after sending the request. If
|
||||
// you just want the service response, call the DeleteFunction method directly
|
||||
// instead.
|
||||
//
|
||||
// Note: You must call the "Send" method on the returned request object in order
|
||||
// to execute the request.
|
||||
//
|
||||
// // Example sending a request using the DeleteFunctionRequest method.
|
||||
// req, resp := client.DeleteFunctionRequest(params)
|
||||
//
|
||||
// err := req.Send()
|
||||
// if err == nil { // resp is now filled
|
||||
// fmt.Println(resp)
|
||||
// }
|
||||
//
|
||||
func (c *Lambda) DeleteFunctionRequest(input *DeleteFunctionInput) (req *request.Request, output *DeleteFunctionOutput) {
|
||||
op := &request.Operation{
|
||||
Name: opDeleteFunction,
|
||||
|
@ -277,7 +424,28 @@ func (c *Lambda) DeleteFunction(input *DeleteFunctionInput) (*DeleteFunctionOutp
|
|||
|
||||
const opGetAlias = "GetAlias"
|
||||
|
||||
// GetAliasRequest generates a request for the GetAlias operation.
|
||||
// GetAliasRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the GetAlias operation. The "output" return
|
||||
// value can be used to capture response data after the request's "Send" method
|
||||
// is called.
|
||||
//
|
||||
// Creating a request object using this method should be used when you want to inject
|
||||
// custom logic into the request's lifecycle using a custom handler, or if you want to
|
||||
// access properties on the request object before or after sending the request. If
|
||||
// you just want the service response, call the GetAlias method directly
|
||||
// instead.
|
||||
//
|
||||
// Note: You must call the "Send" method on the returned request object in order
|
||||
// to execute the request.
|
||||
//
|
||||
// // Example sending a request using the GetAliasRequest method.
|
||||
// req, resp := client.GetAliasRequest(params)
|
||||
//
|
||||
// err := req.Send()
|
||||
// if err == nil { // resp is now filled
|
||||
// fmt.Println(resp)
|
||||
// }
|
||||
//
|
||||
func (c *Lambda) GetAliasRequest(input *GetAliasInput) (req *request.Request, output *AliasConfiguration) {
|
||||
op := &request.Operation{
|
||||
Name: opGetAlias,
|
||||
|
@ -308,7 +476,28 @@ func (c *Lambda) GetAlias(input *GetAliasInput) (*AliasConfiguration, error) {
|
|||
|
||||
const opGetEventSourceMapping = "GetEventSourceMapping"
|
||||
|
||||
// GetEventSourceMappingRequest generates a request for the GetEventSourceMapping operation.
|
||||
// GetEventSourceMappingRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the GetEventSourceMapping operation. The "output" return
|
||||
// value can be used to capture response data after the request's "Send" method
|
||||
// is called.
|
||||
//
|
||||
// Creating a request object using this method should be used when you want to inject
|
||||
// custom logic into the request's lifecycle using a custom handler, or if you want to
|
||||
// access properties on the request object before or after sending the request. If
|
||||
// you just want the service response, call the GetEventSourceMapping method directly
|
||||
// instead.
|
||||
//
|
||||
// Note: You must call the "Send" method on the returned request object in order
|
||||
// to execute the request.
|
||||
//
|
||||
// // Example sending a request using the GetEventSourceMappingRequest method.
|
||||
// req, resp := client.GetEventSourceMappingRequest(params)
|
||||
//
|
||||
// err := req.Send()
|
||||
// if err == nil { // resp is now filled
|
||||
// fmt.Println(resp)
|
||||
// }
|
||||
//
|
||||
func (c *Lambda) GetEventSourceMappingRequest(input *GetEventSourceMappingInput) (req *request.Request, output *EventSourceMappingConfiguration) {
|
||||
op := &request.Operation{
|
||||
Name: opGetEventSourceMapping,
|
||||
|
@ -339,7 +528,28 @@ func (c *Lambda) GetEventSourceMapping(input *GetEventSourceMappingInput) (*Even
|
|||
|
||||
const opGetFunction = "GetFunction"
|
||||
|
||||
// GetFunctionRequest generates a request for the GetFunction operation.
|
||||
// GetFunctionRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the GetFunction operation. The "output" return
|
||||
// value can be used to capture response data after the request's "Send" method
|
||||
// is called.
|
||||
//
|
||||
// Creating a request object using this method should be used when you want to inject
|
||||
// custom logic into the request's lifecycle using a custom handler, or if you want to
|
||||
// access properties on the request object before or after sending the request. If
|
||||
// you just want the service response, call the GetFunction method directly
|
||||
// instead.
|
||||
//
|
||||
// Note: You must call the "Send" method on the returned request object in order
|
||||
// to execute the request.
|
||||
//
|
||||
// // Example sending a request using the GetFunctionRequest method.
|
||||
// req, resp := client.GetFunctionRequest(params)
|
||||
//
|
||||
// err := req.Send()
|
||||
// if err == nil { // resp is now filled
|
||||
// fmt.Println(resp)
|
||||
// }
|
||||
//
|
||||
func (c *Lambda) GetFunctionRequest(input *GetFunctionInput) (req *request.Request, output *GetFunctionOutput) {
|
||||
op := &request.Operation{
|
||||
Name: opGetFunction,
|
||||
|
@ -378,7 +588,28 @@ func (c *Lambda) GetFunction(input *GetFunctionInput) (*GetFunctionOutput, error
|
|||
|
||||
const opGetFunctionConfiguration = "GetFunctionConfiguration"
|
||||
|
||||
// GetFunctionConfigurationRequest generates a request for the GetFunctionConfiguration operation.
|
||||
// GetFunctionConfigurationRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the GetFunctionConfiguration operation. The "output" return
|
||||
// value can be used to capture response data after the request's "Send" method
|
||||
// is called.
|
||||
//
|
||||
// Creating a request object using this method should be used when you want to inject
|
||||
// custom logic into the request's lifecycle using a custom handler, or if you want to
|
||||
// access properties on the request object before or after sending the request. If
|
||||
// you just want the service response, call the GetFunctionConfiguration method directly
|
||||
// instead.
|
||||
//
|
||||
// Note: You must call the "Send" method on the returned request object in order
|
||||
// to execute the request.
|
||||
//
|
||||
// // Example sending a request using the GetFunctionConfigurationRequest method.
|
||||
// req, resp := client.GetFunctionConfigurationRequest(params)
|
||||
//
|
||||
// err := req.Send()
|
||||
// if err == nil { // resp is now filled
|
||||
// fmt.Println(resp)
|
||||
// }
|
||||
//
|
||||
func (c *Lambda) GetFunctionConfigurationRequest(input *GetFunctionConfigurationInput) (req *request.Request, output *FunctionConfiguration) {
|
||||
op := &request.Operation{
|
||||
Name: opGetFunctionConfiguration,
|
||||
|
@ -417,7 +648,28 @@ func (c *Lambda) GetFunctionConfiguration(input *GetFunctionConfigurationInput)
|
|||
|
||||
const opGetPolicy = "GetPolicy"
|
||||
|
||||
// GetPolicyRequest generates a request for the GetPolicy operation.
|
||||
// GetPolicyRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the GetPolicy operation. The "output" return
|
||||
// value can be used to capture response data after the request's "Send" method
|
||||
// is called.
|
||||
//
|
||||
// Creating a request object using this method should be used when you want to inject
|
||||
// custom logic into the request's lifecycle using a custom handler, or if you want to
|
||||
// access properties on the request object before or after sending the request. If
|
||||
// you just want the service response, call the GetPolicy method directly
|
||||
// instead.
|
||||
//
|
||||
// Note: You must call the "Send" method on the returned request object in order
|
||||
// to execute the request.
|
||||
//
|
||||
// // Example sending a request using the GetPolicyRequest method.
|
||||
// req, resp := client.GetPolicyRequest(params)
|
||||
//
|
||||
// err := req.Send()
|
||||
// if err == nil { // resp is now filled
|
||||
// fmt.Println(resp)
|
||||
// }
|
||||
//
|
||||
func (c *Lambda) GetPolicyRequest(input *GetPolicyInput) (req *request.Request, output *GetPolicyOutput) {
|
||||
op := &request.Operation{
|
||||
Name: opGetPolicy,
|
||||
|
@ -453,7 +705,28 @@ func (c *Lambda) GetPolicy(input *GetPolicyInput) (*GetPolicyOutput, error) {
|
|||
|
||||
const opInvoke = "Invoke"
|
||||
|
||||
// InvokeRequest generates a request for the Invoke operation.
|
||||
// InvokeRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the Invoke operation. The "output" return
|
||||
// value can be used to capture response data after the request's "Send" method
|
||||
// is called.
|
||||
//
|
||||
// Creating a request object using this method should be used when you want to inject
|
||||
// custom logic into the request's lifecycle using a custom handler, or if you want to
|
||||
// access properties on the request object before or after sending the request. If
|
||||
// you just want the service response, call the Invoke method directly
|
||||
// instead.
|
||||
//
|
||||
// Note: You must call the "Send" method on the returned request object in order
|
||||
// to execute the request.
|
||||
//
|
||||
// // Example sending a request using the InvokeRequest method.
|
||||
// req, resp := client.InvokeRequest(params)
|
||||
//
|
||||
// err := req.Send()
|
||||
// if err == nil { // resp is now filled
|
||||
// fmt.Println(resp)
|
||||
// }
|
||||
//
|
||||
func (c *Lambda) InvokeRequest(input *InvokeInput) (req *request.Request, output *InvokeOutput) {
|
||||
op := &request.Operation{
|
||||
Name: opInvoke,
|
||||
|
@ -489,7 +762,28 @@ func (c *Lambda) Invoke(input *InvokeInput) (*InvokeOutput, error) {
|
|||
|
||||
const opInvokeAsync = "InvokeAsync"
|
||||
|
||||
// InvokeAsyncRequest generates a request for the InvokeAsync operation.
|
||||
// InvokeAsyncRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the InvokeAsync operation. The "output" return
|
||||
// value can be used to capture response data after the request's "Send" method
|
||||
// is called.
|
||||
//
|
||||
// Creating a request object using this method should be used when you want to inject
|
||||
// custom logic into the request's lifecycle using a custom handler, or if you want to
|
||||
// access properties on the request object before or after sending the request. If
|
||||
// you just want the service response, call the InvokeAsync method directly
|
||||
// instead.
|
||||
//
|
||||
// Note: You must call the "Send" method on the returned request object in order
|
||||
// to execute the request.
|
||||
//
|
||||
// // Example sending a request using the InvokeAsyncRequest method.
|
||||
// req, resp := client.InvokeAsyncRequest(params)
|
||||
//
|
||||
// err := req.Send()
|
||||
// if err == nil { // resp is now filled
|
||||
// fmt.Println(resp)
|
||||
// }
|
||||
//
|
||||
func (c *Lambda) InvokeAsyncRequest(input *InvokeAsyncInput) (req *request.Request, output *InvokeAsyncOutput) {
|
||||
if c.Client.Config.Logger != nil {
|
||||
c.Client.Config.Logger.Log("This operation, InvokeAsync, has been deprecated")
|
||||
|
@ -524,7 +818,28 @@ func (c *Lambda) InvokeAsync(input *InvokeAsyncInput) (*InvokeAsyncOutput, error
|
|||
|
||||
const opListAliases = "ListAliases"
|
||||
|
||||
// ListAliasesRequest generates a request for the ListAliases operation.
|
||||
// ListAliasesRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the ListAliases operation. The "output" return
|
||||
// value can be used to capture response data after the request's "Send" method
|
||||
// is called.
|
||||
//
|
||||
// Creating a request object using this method should be used when you want to inject
|
||||
// custom logic into the request's lifecycle using a custom handler, or if you want to
|
||||
// access properties on the request object before or after sending the request. If
|
||||
// you just want the service response, call the ListAliases method directly
|
||||
// instead.
|
||||
//
|
||||
// Note: You must call the "Send" method on the returned request object in order
|
||||
// to execute the request.
|
||||
//
|
||||
// // Example sending a request using the ListAliasesRequest method.
|
||||
// req, resp := client.ListAliasesRequest(params)
|
||||
//
|
||||
// err := req.Send()
|
||||
// if err == nil { // resp is now filled
|
||||
// fmt.Println(resp)
|
||||
// }
|
||||
//
|
||||
func (c *Lambda) ListAliasesRequest(input *ListAliasesInput) (req *request.Request, output *ListAliasesOutput) {
|
||||
op := &request.Operation{
|
||||
Name: opListAliases,
|
||||
|
@ -556,7 +871,28 @@ func (c *Lambda) ListAliases(input *ListAliasesInput) (*ListAliasesOutput, error
|
|||
|
||||
const opListEventSourceMappings = "ListEventSourceMappings"
|
||||
|
||||
// ListEventSourceMappingsRequest generates a request for the ListEventSourceMappings operation.
|
||||
// ListEventSourceMappingsRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the ListEventSourceMappings operation. The "output" return
|
||||
// value can be used to capture response data after the request's "Send" method
|
||||
// is called.
|
||||
//
|
||||
// Creating a request object using this method should be used when you want to inject
|
||||
// custom logic into the request's lifecycle using a custom handler, or if you want to
|
||||
// access properties on the request object before or after sending the request. If
|
||||
// you just want the service response, call the ListEventSourceMappings method directly
|
||||
// instead.
|
||||
//
|
||||
// Note: You must call the "Send" method on the returned request object in order
|
||||
// to execute the request.
|
||||
//
|
||||
// // Example sending a request using the ListEventSourceMappingsRequest method.
|
||||
// req, resp := client.ListEventSourceMappingsRequest(params)
|
||||
//
|
||||
// err := req.Send()
|
||||
// if err == nil { // resp is now filled
|
||||
// fmt.Println(resp)
|
||||
// }
|
||||
//
|
||||
func (c *Lambda) ListEventSourceMappingsRequest(input *ListEventSourceMappingsInput) (req *request.Request, output *ListEventSourceMappingsOutput) {
|
||||
op := &request.Operation{
|
||||
Name: opListEventSourceMappings,
|
||||
|
@ -599,6 +935,23 @@ func (c *Lambda) ListEventSourceMappings(input *ListEventSourceMappingsInput) (*
|
|||
return out, err
|
||||
}
|
||||
|
||||
// ListEventSourceMappingsPages iterates over the pages of a ListEventSourceMappings operation,
|
||||
// calling the "fn" function with the response data for each page. To stop
|
||||
// iterating, return false from the fn function.
|
||||
//
|
||||
// See ListEventSourceMappings 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 ListEventSourceMappings operation.
|
||||
// pageNum := 0
|
||||
// err := client.ListEventSourceMappingsPages(params,
|
||||
// func(page *ListEventSourceMappingsOutput, lastPage bool) bool {
|
||||
// pageNum++
|
||||
// fmt.Println(page)
|
||||
// return pageNum <= 3
|
||||
// })
|
||||
//
|
||||
func (c *Lambda) ListEventSourceMappingsPages(input *ListEventSourceMappingsInput, fn func(p *ListEventSourceMappingsOutput, lastPage bool) (shouldContinue bool)) error {
|
||||
page, _ := c.ListEventSourceMappingsRequest(input)
|
||||
page.Handlers.Build.PushBack(request.MakeAddToUserAgentFreeFormHandler("Paginator"))
|
||||
|
@ -609,7 +962,28 @@ func (c *Lambda) ListEventSourceMappingsPages(input *ListEventSourceMappingsInpu
|
|||
|
||||
const opListFunctions = "ListFunctions"
|
||||
|
||||
// ListFunctionsRequest generates a request for the ListFunctions operation.
|
||||
// ListFunctionsRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the ListFunctions operation. The "output" return
|
||||
// value can be used to capture response data after the request's "Send" method
|
||||
// is called.
|
||||
//
|
||||
// Creating a request object using this method should be used when you want to inject
|
||||
// custom logic into the request's lifecycle using a custom handler, or if you want to
|
||||
// access properties on the request object before or after sending the request. If
|
||||
// you just want the service response, call the ListFunctions method directly
|
||||
// instead.
|
||||
//
|
||||
// Note: You must call the "Send" method on the returned request object in order
|
||||
// to execute the request.
|
||||
//
|
||||
// // Example sending a request using the ListFunctionsRequest method.
|
||||
// req, resp := client.ListFunctionsRequest(params)
|
||||
//
|
||||
// err := req.Send()
|
||||
// if err == nil { // resp is now filled
|
||||
// fmt.Println(resp)
|
||||
// }
|
||||
//
|
||||
func (c *Lambda) ListFunctionsRequest(input *ListFunctionsInput) (req *request.Request, output *ListFunctionsOutput) {
|
||||
op := &request.Operation{
|
||||
Name: opListFunctions,
|
||||
|
@ -648,6 +1022,23 @@ func (c *Lambda) ListFunctions(input *ListFunctionsInput) (*ListFunctionsOutput,
|
|||
return out, err
|
||||
}
|
||||
|
||||
// ListFunctionsPages iterates over the pages of a ListFunctions operation,
|
||||
// calling the "fn" function with the response data for each page. To stop
|
||||
// iterating, return false from the fn function.
|
||||
//
|
||||
// See ListFunctions 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 ListFunctions operation.
|
||||
// pageNum := 0
|
||||
// err := client.ListFunctionsPages(params,
|
||||
// func(page *ListFunctionsOutput, lastPage bool) bool {
|
||||
// pageNum++
|
||||
// fmt.Println(page)
|
||||
// return pageNum <= 3
|
||||
// })
|
||||
//
|
||||
func (c *Lambda) ListFunctionsPages(input *ListFunctionsInput, fn func(p *ListFunctionsOutput, lastPage bool) (shouldContinue bool)) error {
|
||||
page, _ := c.ListFunctionsRequest(input)
|
||||
page.Handlers.Build.PushBack(request.MakeAddToUserAgentFreeFormHandler("Paginator"))
|
||||
|
@ -658,7 +1049,28 @@ func (c *Lambda) ListFunctionsPages(input *ListFunctionsInput, fn func(p *ListFu
|
|||
|
||||
const opListVersionsByFunction = "ListVersionsByFunction"
|
||||
|
||||
// ListVersionsByFunctionRequest generates a request for the ListVersionsByFunction operation.
|
||||
// ListVersionsByFunctionRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the ListVersionsByFunction operation. The "output" return
|
||||
// value can be used to capture response data after the request's "Send" method
|
||||
// is called.
|
||||
//
|
||||
// Creating a request object using this method should be used when you want to inject
|
||||
// custom logic into the request's lifecycle using a custom handler, or if you want to
|
||||
// access properties on the request object before or after sending the request. If
|
||||
// you just want the service response, call the ListVersionsByFunction method directly
|
||||
// instead.
|
||||
//
|
||||
// Note: You must call the "Send" method on the returned request object in order
|
||||
// to execute the request.
|
||||
//
|
||||
// // Example sending a request using the ListVersionsByFunctionRequest method.
|
||||
// req, resp := client.ListVersionsByFunctionRequest(params)
|
||||
//
|
||||
// err := req.Send()
|
||||
// if err == nil { // resp is now filled
|
||||
// fmt.Println(resp)
|
||||
// }
|
||||
//
|
||||
func (c *Lambda) ListVersionsByFunctionRequest(input *ListVersionsByFunctionInput) (req *request.Request, output *ListVersionsByFunctionOutput) {
|
||||
op := &request.Operation{
|
||||
Name: opListVersionsByFunction,
|
||||
|
@ -686,7 +1098,28 @@ func (c *Lambda) ListVersionsByFunction(input *ListVersionsByFunctionInput) (*Li
|
|||
|
||||
const opPublishVersion = "PublishVersion"
|
||||
|
||||
// PublishVersionRequest generates a request for the PublishVersion operation.
|
||||
// PublishVersionRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the PublishVersion operation. The "output" return
|
||||
// value can be used to capture response data after the request's "Send" method
|
||||
// is called.
|
||||
//
|
||||
// Creating a request object using this method should be used when you want to inject
|
||||
// custom logic into the request's lifecycle using a custom handler, or if you want to
|
||||
// access properties on the request object before or after sending the request. If
|
||||
// you just want the service response, call the PublishVersion method directly
|
||||
// instead.
|
||||
//
|
||||
// Note: You must call the "Send" method on the returned request object in order
|
||||
// to execute the request.
|
||||
//
|
||||
// // Example sending a request using the PublishVersionRequest method.
|
||||
// req, resp := client.PublishVersionRequest(params)
|
||||
//
|
||||
// err := req.Send()
|
||||
// if err == nil { // resp is now filled
|
||||
// fmt.Println(resp)
|
||||
// }
|
||||
//
|
||||
func (c *Lambda) PublishVersionRequest(input *PublishVersionInput) (req *request.Request, output *FunctionConfiguration) {
|
||||
op := &request.Operation{
|
||||
Name: opPublishVersion,
|
||||
|
@ -717,7 +1150,28 @@ func (c *Lambda) PublishVersion(input *PublishVersionInput) (*FunctionConfigurat
|
|||
|
||||
const opRemovePermission = "RemovePermission"
|
||||
|
||||
// RemovePermissionRequest generates a request for the RemovePermission operation.
|
||||
// RemovePermissionRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the RemovePermission operation. The "output" return
|
||||
// value can be used to capture response data after the request's "Send" method
|
||||
// is called.
|
||||
//
|
||||
// Creating a request object using this method should be used when you want to inject
|
||||
// custom logic into the request's lifecycle using a custom handler, or if you want to
|
||||
// access properties on the request object before or after sending the request. If
|
||||
// you just want the service response, call the RemovePermission method directly
|
||||
// instead.
|
||||
//
|
||||
// Note: You must call the "Send" method on the returned request object in order
|
||||
// to execute the request.
|
||||
//
|
||||
// // Example sending a request using the RemovePermissionRequest method.
|
||||
// req, resp := client.RemovePermissionRequest(params)
|
||||
//
|
||||
// err := req.Send()
|
||||
// if err == nil { // resp is now filled
|
||||
// fmt.Println(resp)
|
||||
// }
|
||||
//
|
||||
func (c *Lambda) RemovePermissionRequest(input *RemovePermissionInput) (req *request.Request, output *RemovePermissionOutput) {
|
||||
op := &request.Operation{
|
||||
Name: opRemovePermission,
|
||||
|
@ -758,7 +1212,28 @@ func (c *Lambda) RemovePermission(input *RemovePermissionInput) (*RemovePermissi
|
|||
|
||||
const opUpdateAlias = "UpdateAlias"
|
||||
|
||||
// UpdateAliasRequest generates a request for the UpdateAlias operation.
|
||||
// UpdateAliasRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the UpdateAlias operation. The "output" return
|
||||
// value can be used to capture response data after the request's "Send" method
|
||||
// is called.
|
||||
//
|
||||
// Creating a request object using this method should be used when you want to inject
|
||||
// custom logic into the request's lifecycle using a custom handler, or if you want to
|
||||
// access properties on the request object before or after sending the request. If
|
||||
// you just want the service response, call the UpdateAlias method directly
|
||||
// instead.
|
||||
//
|
||||
// Note: You must call the "Send" method on the returned request object in order
|
||||
// to execute the request.
|
||||
//
|
||||
// // Example sending a request using the UpdateAliasRequest method.
|
||||
// req, resp := client.UpdateAliasRequest(params)
|
||||
//
|
||||
// err := req.Send()
|
||||
// if err == nil { // resp is now filled
|
||||
// fmt.Println(resp)
|
||||
// }
|
||||
//
|
||||
func (c *Lambda) UpdateAliasRequest(input *UpdateAliasInput) (req *request.Request, output *AliasConfiguration) {
|
||||
op := &request.Operation{
|
||||
Name: opUpdateAlias,
|
||||
|
@ -789,7 +1264,28 @@ func (c *Lambda) UpdateAlias(input *UpdateAliasInput) (*AliasConfiguration, erro
|
|||
|
||||
const opUpdateEventSourceMapping = "UpdateEventSourceMapping"
|
||||
|
||||
// UpdateEventSourceMappingRequest generates a request for the UpdateEventSourceMapping operation.
|
||||
// UpdateEventSourceMappingRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the UpdateEventSourceMapping operation. The "output" return
|
||||
// value can be used to capture response data after the request's "Send" method
|
||||
// is called.
|
||||
//
|
||||
// Creating a request object using this method should be used when you want to inject
|
||||
// custom logic into the request's lifecycle using a custom handler, or if you want to
|
||||
// access properties on the request object before or after sending the request. If
|
||||
// you just want the service response, call the UpdateEventSourceMapping method directly
|
||||
// instead.
|
||||
//
|
||||
// Note: You must call the "Send" method on the returned request object in order
|
||||
// to execute the request.
|
||||
//
|
||||
// // Example sending a request using the UpdateEventSourceMappingRequest method.
|
||||
// req, resp := client.UpdateEventSourceMappingRequest(params)
|
||||
//
|
||||
// err := req.Send()
|
||||
// if err == nil { // resp is now filled
|
||||
// fmt.Println(resp)
|
||||
// }
|
||||
//
|
||||
func (c *Lambda) UpdateEventSourceMappingRequest(input *UpdateEventSourceMappingInput) (req *request.Request, output *EventSourceMappingConfiguration) {
|
||||
op := &request.Operation{
|
||||
Name: opUpdateEventSourceMapping,
|
||||
|
@ -832,7 +1328,28 @@ func (c *Lambda) UpdateEventSourceMapping(input *UpdateEventSourceMappingInput)
|
|||
|
||||
const opUpdateFunctionCode = "UpdateFunctionCode"
|
||||
|
||||
// UpdateFunctionCodeRequest generates a request for the UpdateFunctionCode operation.
|
||||
// UpdateFunctionCodeRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the UpdateFunctionCode operation. The "output" return
|
||||
// value can be used to capture response data after the request's "Send" method
|
||||
// is called.
|
||||
//
|
||||
// Creating a request object using this method should be used when you want to inject
|
||||
// custom logic into the request's lifecycle using a custom handler, or if you want to
|
||||
// access properties on the request object before or after sending the request. If
|
||||
// you just want the service response, call the UpdateFunctionCode method directly
|
||||
// instead.
|
||||
//
|
||||
// Note: You must call the "Send" method on the returned request object in order
|
||||
// to execute the request.
|
||||
//
|
||||
// // Example sending a request using the UpdateFunctionCodeRequest method.
|
||||
// req, resp := client.UpdateFunctionCodeRequest(params)
|
||||
//
|
||||
// err := req.Send()
|
||||
// if err == nil { // resp is now filled
|
||||
// fmt.Println(resp)
|
||||
// }
|
||||
//
|
||||
func (c *Lambda) UpdateFunctionCodeRequest(input *UpdateFunctionCodeInput) (req *request.Request, output *FunctionConfiguration) {
|
||||
op := &request.Operation{
|
||||
Name: opUpdateFunctionCode,
|
||||
|
@ -867,7 +1384,28 @@ func (c *Lambda) UpdateFunctionCode(input *UpdateFunctionCodeInput) (*FunctionCo
|
|||
|
||||
const opUpdateFunctionConfiguration = "UpdateFunctionConfiguration"
|
||||
|
||||
// UpdateFunctionConfigurationRequest generates a request for the UpdateFunctionConfiguration operation.
|
||||
// UpdateFunctionConfigurationRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the UpdateFunctionConfiguration operation. The "output" return
|
||||
// value can be used to capture response data after the request's "Send" method
|
||||
// is called.
|
||||
//
|
||||
// Creating a request object using this method should be used when you want to inject
|
||||
// custom logic into the request's lifecycle using a custom handler, or if you want to
|
||||
// access properties on the request object before or after sending the request. If
|
||||
// you just want the service response, call the UpdateFunctionConfiguration method directly
|
||||
// instead.
|
||||
//
|
||||
// Note: You must call the "Send" method on the returned request object in order
|
||||
// to execute the request.
|
||||
//
|
||||
// // Example sending a request using the UpdateFunctionConfigurationRequest method.
|
||||
// req, resp := client.UpdateFunctionConfigurationRequest(params)
|
||||
//
|
||||
// err := req.Send()
|
||||
// if err == nil { // resp is now filled
|
||||
// fmt.Println(resp)
|
||||
// }
|
||||
//
|
||||
func (c *Lambda) UpdateFunctionConfigurationRequest(input *UpdateFunctionConfigurationInput) (req *request.Request, output *FunctionConfiguration) {
|
||||
op := &request.Operation{
|
||||
Name: opUpdateFunctionConfiguration,
|
||||
|
|
|
@ -7,8 +7,8 @@ import (
|
|||
"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/restjson"
|
||||
"github.com/aws/aws-sdk-go/private/signer/v4"
|
||||
)
|
||||
|
||||
// Overview
|
||||
|
@ -64,7 +64,7 @@ func newClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegio
|
|||
}
|
||||
|
||||
// Handlers
|
||||
svc.Handlers.Sign.PushBack(v4.Sign)
|
||||
svc.Handlers.Sign.PushBackNamed(v4.SignRequestHandler)
|
||||
svc.Handlers.Build.PushBackNamed(restjson.BuildHandler)
|
||||
svc.Handlers.Unmarshal.PushBackNamed(restjson.UnmarshalHandler)
|
||||
svc.Handlers.UnmarshalMeta.PushBackNamed(restjson.UnmarshalMetaHandler)
|
||||
|
|
File diff suppressed because it is too large
Load Diff
|
@ -7,12 +7,12 @@ import (
|
|||
"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/jsonrpc"
|
||||
"github.com/aws/aws-sdk-go/private/signer/v4"
|
||||
)
|
||||
|
||||
// Welcome to the AWS OpsWorks API Reference. This guide provides descriptions,
|
||||
// syntax, and usage examples about AWS OpsWorks actions and data types, including
|
||||
// syntax, and usage examples for AWS OpsWorks actions and data types, including
|
||||
// common parameters and error codes.
|
||||
//
|
||||
// AWS OpsWorks is an application management service that provides an integrated
|
||||
|
@ -27,24 +27,35 @@ import (
|
|||
// in your preferred language. For more information, see:
|
||||
//
|
||||
// AWS CLI (http://docs.aws.amazon.com/cli/latest/userguide/cli-chap-welcome.html)
|
||||
//
|
||||
// AWS SDK for Java (http://docs.aws.amazon.com/AWSJavaSDK/latest/javadoc/com/amazonaws/services/opsworks/AWSOpsWorksClient.html)
|
||||
//
|
||||
// AWS SDK for .NET (http://docs.aws.amazon.com/sdkfornet/latest/apidocs/html/N_Amazon_OpsWorks.htm)
|
||||
//
|
||||
// AWS SDK for PHP 2 (http://docs.aws.amazon.com/aws-sdk-php-2/latest/class-Aws.OpsWorks.OpsWorksClient.html)
|
||||
// AWS SDK for Ruby (http://docs.aws.amazon.com/AWSRubySDK/latest/AWS/OpsWorks/Client.html)
|
||||
//
|
||||
// AWS SDK for Ruby (http://docs.aws.amazon.com/sdkforruby/api/)
|
||||
//
|
||||
// AWS SDK for Node.js (http://aws.amazon.com/documentation/sdkforjavascript/)
|
||||
//
|
||||
// AWS SDK for Python(Boto) (http://docs.pythonboto.org/en/latest/ref/opsworks.html)
|
||||
//
|
||||
// Endpoints
|
||||
//
|
||||
// AWS OpsWorks supports only one endpoint, opsworks.us-east-1.amazonaws.com
|
||||
// (HTTPS), so you must connect to that endpoint. You can then use the API to
|
||||
// direct AWS OpsWorks to create stacks in any AWS Region.
|
||||
// AWS OpsWorks supports two endpoints, opsworks.us-east-1.amazonaws.com and
|
||||
// opsworks.ap-south-1.amazonaws.com (both HTTPS). You must connect to one of
|
||||
// those two endpoints. You can then use the API to direct AWS OpsWorks to create
|
||||
// stacks in any AWS region. Stacks created in all regions except ap-south-1
|
||||
// are connected to the us-east-1 regional endpoint; stacks created in ap-south-1
|
||||
// are associated with the ap-south-1 regional endpoint, and can only be accessed
|
||||
// or managed within that endpoint.
|
||||
//
|
||||
// Chef Versions
|
||||
//
|
||||
// When you call CreateStack, CloneStack, or UpdateStack we recommend you use
|
||||
// the ConfigurationManager parameter to specify the Chef version. The recommended
|
||||
// value for Linux stacks is currently 12 (the default is 11.4). Windows stacks
|
||||
// use Chef 12.2. For more information, see Chef Versions (http://docs.aws.amazon.com/opsworks/latest/userguide/workingcookbook-chef11.html).
|
||||
// and default value for Linux stacks is currently 12. Windows stacks use Chef
|
||||
// 12.2. For more information, see Chef Versions (http://docs.aws.amazon.com/opsworks/latest/userguide/workingcookbook-chef11.html).
|
||||
//
|
||||
// You can specify Chef 12, 11.10, or 11.4 for your Linux stack. We recommend
|
||||
// migrating your existing Linux stacks to Chef 12 as soon as possible.
|
||||
|
@ -96,7 +107,7 @@ func newClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegio
|
|||
}
|
||||
|
||||
// Handlers
|
||||
svc.Handlers.Sign.PushBack(v4.Sign)
|
||||
svc.Handlers.Sign.PushBackNamed(v4.SignRequestHandler)
|
||||
svc.Handlers.Build.PushBackNamed(jsonrpc.BuildHandler)
|
||||
svc.Handlers.Unmarshal.PushBackNamed(jsonrpc.UnmarshalHandler)
|
||||
svc.Handlers.UnmarshalMeta.PushBackNamed(jsonrpc.UnmarshalMetaHandler)
|
||||
|
|
|
@ -135,6 +135,71 @@ func (c *OpsWorks) WaitUntilInstanceOnline(input *DescribeInstancesInput) error
|
|||
return w.Wait()
|
||||
}
|
||||
|
||||
func (c *OpsWorks) WaitUntilInstanceRegistered(input *DescribeInstancesInput) error {
|
||||
waiterCfg := waiter.Config{
|
||||
Operation: "DescribeInstances",
|
||||
Delay: 15,
|
||||
MaxAttempts: 40,
|
||||
Acceptors: []waiter.WaitAcceptor{
|
||||
{
|
||||
State: "success",
|
||||
Matcher: "pathAll",
|
||||
Argument: "Instances[].Status",
|
||||
Expected: "registered",
|
||||
},
|
||||
{
|
||||
State: "failure",
|
||||
Matcher: "pathAny",
|
||||
Argument: "Instances[].Status",
|
||||
Expected: "setup_failed",
|
||||
},
|
||||
{
|
||||
State: "failure",
|
||||
Matcher: "pathAny",
|
||||
Argument: "Instances[].Status",
|
||||
Expected: "shutting_down",
|
||||
},
|
||||
{
|
||||
State: "failure",
|
||||
Matcher: "pathAny",
|
||||
Argument: "Instances[].Status",
|
||||
Expected: "stopped",
|
||||
},
|
||||
{
|
||||
State: "failure",
|
||||
Matcher: "pathAny",
|
||||
Argument: "Instances[].Status",
|
||||
Expected: "stopping",
|
||||
},
|
||||
{
|
||||
State: "failure",
|
||||
Matcher: "pathAny",
|
||||
Argument: "Instances[].Status",
|
||||
Expected: "terminating",
|
||||
},
|
||||
{
|
||||
State: "failure",
|
||||
Matcher: "pathAny",
|
||||
Argument: "Instances[].Status",
|
||||
Expected: "terminated",
|
||||
},
|
||||
{
|
||||
State: "failure",
|
||||
Matcher: "pathAny",
|
||||
Argument: "Instances[].Status",
|
||||
Expected: "stop_failed",
|
||||
},
|
||||
},
|
||||
}
|
||||
|
||||
w := waiter.Waiter{
|
||||
Client: c,
|
||||
Input: input,
|
||||
Config: waiterCfg,
|
||||
}
|
||||
return w.Wait()
|
||||
}
|
||||
|
||||
func (c *OpsWorks) WaitUntilInstanceStopped(input *DescribeInstancesInput) error {
|
||||
waiterCfg := waiter.Config{
|
||||
Operation: "DescribeInstances",
|
||||
|
|
File diff suppressed because it is too large
Load Diff
|
@ -7,8 +7,8 @@ import (
|
|||
"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/query"
|
||||
"github.com/aws/aws-sdk-go/private/signer/v4"
|
||||
)
|
||||
|
||||
// Amazon Relational Database Service (Amazon RDS) is a web service that makes
|
||||
|
@ -99,7 +99,7 @@ func newClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegio
|
|||
}
|
||||
|
||||
// Handlers
|
||||
svc.Handlers.Sign.PushBack(v4.Sign)
|
||||
svc.Handlers.Sign.PushBackNamed(v4.SignRequestHandler)
|
||||
svc.Handlers.Build.PushBackNamed(query.BuildHandler)
|
||||
svc.Handlers.Unmarshal.PushBackNamed(query.UnmarshalHandler)
|
||||
svc.Handlers.UnmarshalMeta.PushBackNamed(query.UnmarshalMetaHandler)
|
||||
|
|
File diff suppressed because it is too large
Load Diff
|
@ -7,8 +7,8 @@ import (
|
|||
"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/query"
|
||||
"github.com/aws/aws-sdk-go/private/signer/v4"
|
||||
)
|
||||
|
||||
// Overview This is an interface reference for Amazon Redshift. It contains
|
||||
|
@ -79,7 +79,7 @@ func newClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegio
|
|||
}
|
||||
|
||||
// Handlers
|
||||
svc.Handlers.Sign.PushBack(v4.Sign)
|
||||
svc.Handlers.Sign.PushBackNamed(v4.SignRequestHandler)
|
||||
svc.Handlers.Build.PushBackNamed(query.BuildHandler)
|
||||
svc.Handlers.Unmarshal.PushBackNamed(query.UnmarshalHandler)
|
||||
svc.Handlers.UnmarshalMeta.PushBackNamed(query.UnmarshalMetaHandler)
|
||||
|
|
File diff suppressed because it is too large
Load Diff
|
@ -7,8 +7,8 @@ import (
|
|||
"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/restxml"
|
||||
"github.com/aws/aws-sdk-go/private/signer/v4"
|
||||
)
|
||||
|
||||
// Route53 is a client for Route 53.
|
||||
|
@ -58,7 +58,7 @@ func newClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegio
|
|||
}
|
||||
|
||||
// Handlers
|
||||
svc.Handlers.Sign.PushBack(v4.Sign)
|
||||
svc.Handlers.Sign.PushBackNamed(v4.SignRequestHandler)
|
||||
svc.Handlers.Build.PushBackNamed(restxml.BuildHandler)
|
||||
svc.Handlers.Unmarshal.PushBackNamed(restxml.UnmarshalHandler)
|
||||
svc.Handlers.UnmarshalMeta.PushBackNamed(restxml.UnmarshalMetaHandler)
|
||||
|
|
File diff suppressed because it is too large
Load Diff
|
@ -7,8 +7,8 @@ import (
|
|||
"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/restxml"
|
||||
"github.com/aws/aws-sdk-go/private/signer/v4"
|
||||
)
|
||||
|
||||
// S3 is a client for Amazon S3.
|
||||
|
@ -58,7 +58,7 @@ func newClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegio
|
|||
}
|
||||
|
||||
// Handlers
|
||||
svc.Handlers.Sign.PushBack(v4.Sign)
|
||||
svc.Handlers.Sign.PushBackNamed(v4.SignRequestHandler)
|
||||
svc.Handlers.Build.PushBackNamed(restxml.BuildHandler)
|
||||
svc.Handlers.Unmarshal.PushBackNamed(restxml.UnmarshalHandler)
|
||||
svc.Handlers.UnmarshalMeta.PushBackNamed(restxml.UnmarshalMetaHandler)
|
||||
|
|
File diff suppressed because it is too large
Load Diff
|
@ -7,8 +7,8 @@ import (
|
|||
"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/query"
|
||||
"github.com/aws/aws-sdk-go/private/signer/v4"
|
||||
)
|
||||
|
||||
// This is the API Reference for Amazon Simple Email Service (Amazon SES). This
|
||||
|
@ -65,7 +65,7 @@ func newClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegio
|
|||
}
|
||||
|
||||
// Handlers
|
||||
svc.Handlers.Sign.PushBack(v4.Sign)
|
||||
svc.Handlers.Sign.PushBackNamed(v4.SignRequestHandler)
|
||||
svc.Handlers.Build.PushBackNamed(query.BuildHandler)
|
||||
svc.Handlers.Unmarshal.PushBackNamed(query.UnmarshalHandler)
|
||||
svc.Handlers.UnmarshalMeta.PushBackNamed(query.UnmarshalMetaHandler)
|
||||
|
|
File diff suppressed because it is too large
Load Diff
|
@ -7,8 +7,8 @@ import (
|
|||
"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/query"
|
||||
"github.com/aws/aws-sdk-go/private/signer/v4"
|
||||
)
|
||||
|
||||
// Amazon Simple Notification Service (Amazon SNS) is a web service that enables
|
||||
|
@ -70,7 +70,7 @@ func newClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegio
|
|||
}
|
||||
|
||||
// Handlers
|
||||
svc.Handlers.Sign.PushBack(v4.Sign)
|
||||
svc.Handlers.Sign.PushBackNamed(v4.SignRequestHandler)
|
||||
svc.Handlers.Build.PushBackNamed(query.BuildHandler)
|
||||
svc.Handlers.Unmarshal.PushBackNamed(query.UnmarshalHandler)
|
||||
svc.Handlers.UnmarshalMeta.PushBackNamed(query.UnmarshalMetaHandler)
|
||||
|
|
|
@ -14,7 +14,28 @@ import (
|
|||
|
||||
const opAddPermission = "AddPermission"
|
||||
|
||||
// AddPermissionRequest generates a request for the AddPermission operation.
|
||||
// AddPermissionRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the AddPermission operation. The "output" return
|
||||
// value can be used to capture response data after the request's "Send" method
|
||||
// is called.
|
||||
//
|
||||
// Creating a request object using this method should be used when you want to inject
|
||||
// custom logic into the request's lifecycle using a custom handler, or if you want to
|
||||
// access properties on the request object before or after sending the request. If
|
||||
// you just want the service response, call the AddPermission method directly
|
||||
// instead.
|
||||
//
|
||||
// Note: You must call the "Send" method on the returned request object in order
|
||||
// to execute the request.
|
||||
//
|
||||
// // Example sending a request using the AddPermissionRequest method.
|
||||
// req, resp := client.AddPermissionRequest(params)
|
||||
//
|
||||
// err := req.Send()
|
||||
// if err == nil { // resp is now filled
|
||||
// fmt.Println(resp)
|
||||
// }
|
||||
//
|
||||
func (c *SQS) AddPermissionRequest(input *AddPermissionInput) (req *request.Request, output *AddPermissionOutput) {
|
||||
op := &request.Operation{
|
||||
Name: opAddPermission,
|
||||
|
@ -58,7 +79,28 @@ func (c *SQS) AddPermission(input *AddPermissionInput) (*AddPermissionOutput, er
|
|||
|
||||
const opChangeMessageVisibility = "ChangeMessageVisibility"
|
||||
|
||||
// ChangeMessageVisibilityRequest generates a request for the ChangeMessageVisibility operation.
|
||||
// ChangeMessageVisibilityRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the ChangeMessageVisibility operation. The "output" return
|
||||
// value can be used to capture response data after the request's "Send" method
|
||||
// is called.
|
||||
//
|
||||
// Creating a request object using this method should be used when you want to inject
|
||||
// custom logic into the request's lifecycle using a custom handler, or if you want to
|
||||
// access properties on the request object before or after sending the request. If
|
||||
// you just want the service response, call the ChangeMessageVisibility method directly
|
||||
// instead.
|
||||
//
|
||||
// Note: You must call the "Send" method on the returned request object in order
|
||||
// to execute the request.
|
||||
//
|
||||
// // Example sending a request using the ChangeMessageVisibilityRequest method.
|
||||
// req, resp := client.ChangeMessageVisibilityRequest(params)
|
||||
//
|
||||
// err := req.Send()
|
||||
// if err == nil { // resp is now filled
|
||||
// fmt.Println(resp)
|
||||
// }
|
||||
//
|
||||
func (c *SQS) ChangeMessageVisibilityRequest(input *ChangeMessageVisibilityInput) (req *request.Request, output *ChangeMessageVisibilityOutput) {
|
||||
op := &request.Operation{
|
||||
Name: opChangeMessageVisibility,
|
||||
|
@ -103,12 +145,14 @@ func (c *SQS) ChangeMessageVisibilityRequest(input *ChangeMessageVisibilityInput
|
|||
//
|
||||
// If you attempt to set the VisibilityTimeout to an amount more than the maximum
|
||||
// time left, Amazon SQS returns an error. It will not automatically recalculate
|
||||
// and increase the timeout to the maximum time remaining. Unlike with a queue,
|
||||
// when you change the visibility timeout for a specific message, that timeout
|
||||
// value is applied immediately but is not saved in memory for that message.
|
||||
// If you don't delete a message after it is received, the visibility timeout
|
||||
// for the message the next time it is received reverts to the original timeout
|
||||
// value, not the value you set with the ChangeMessageVisibility action.
|
||||
// and increase the timeout to the maximum time remaining.
|
||||
//
|
||||
// Unlike with a queue, when you change the visibility timeout for a specific
|
||||
// message, that timeout value is applied immediately but is not saved in memory
|
||||
// for that message. If you don't delete a message after it is received, the
|
||||
// visibility timeout for the message the next time it is received reverts to
|
||||
// the original timeout value, not the value you set with the ChangeMessageVisibility
|
||||
// action.
|
||||
func (c *SQS) ChangeMessageVisibility(input *ChangeMessageVisibilityInput) (*ChangeMessageVisibilityOutput, error) {
|
||||
req, out := c.ChangeMessageVisibilityRequest(input)
|
||||
err := req.Send()
|
||||
|
@ -117,7 +161,28 @@ func (c *SQS) ChangeMessageVisibility(input *ChangeMessageVisibilityInput) (*Cha
|
|||
|
||||
const opChangeMessageVisibilityBatch = "ChangeMessageVisibilityBatch"
|
||||
|
||||
// ChangeMessageVisibilityBatchRequest generates a request for the ChangeMessageVisibilityBatch operation.
|
||||
// ChangeMessageVisibilityBatchRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the ChangeMessageVisibilityBatch operation. The "output" return
|
||||
// value can be used to capture response data after the request's "Send" method
|
||||
// is called.
|
||||
//
|
||||
// Creating a request object using this method should be used when you want to inject
|
||||
// custom logic into the request's lifecycle using a custom handler, or if you want to
|
||||
// access properties on the request object before or after sending the request. If
|
||||
// you just want the service response, call the ChangeMessageVisibilityBatch method directly
|
||||
// instead.
|
||||
//
|
||||
// Note: You must call the "Send" method on the returned request object in order
|
||||
// to execute the request.
|
||||
//
|
||||
// // Example sending a request using the ChangeMessageVisibilityBatchRequest method.
|
||||
// req, resp := client.ChangeMessageVisibilityBatchRequest(params)
|
||||
//
|
||||
// err := req.Send()
|
||||
// if err == nil { // resp is now filled
|
||||
// fmt.Println(resp)
|
||||
// }
|
||||
//
|
||||
func (c *SQS) ChangeMessageVisibilityBatchRequest(input *ChangeMessageVisibilityBatchInput) (req *request.Request, output *ChangeMessageVisibilityBatchOutput) {
|
||||
op := &request.Operation{
|
||||
Name: opChangeMessageVisibilityBatch,
|
||||
|
@ -142,10 +207,11 @@ func (c *SQS) ChangeMessageVisibilityBatchRequest(input *ChangeMessageVisibility
|
|||
//
|
||||
// Because the batch request can result in a combination of successful and
|
||||
// unsuccessful actions, you should check for batch errors even when the call
|
||||
// returns an HTTP status code of 200. Some API actions take lists of parameters.
|
||||
// These lists are specified using the param.n notation. Values of n are integers
|
||||
// starting from 1. For example, a parameter list with two elements looks like
|
||||
// this:
|
||||
// returns an HTTP status code of 200.
|
||||
//
|
||||
// Some API actions take lists of parameters. These lists are specified using
|
||||
// the param.n notation. Values of n are integers starting from 1. For example,
|
||||
// a parameter list with two elements looks like this:
|
||||
func (c *SQS) ChangeMessageVisibilityBatch(input *ChangeMessageVisibilityBatchInput) (*ChangeMessageVisibilityBatchOutput, error) {
|
||||
req, out := c.ChangeMessageVisibilityBatchRequest(input)
|
||||
err := req.Send()
|
||||
|
@ -154,7 +220,28 @@ func (c *SQS) ChangeMessageVisibilityBatch(input *ChangeMessageVisibilityBatchIn
|
|||
|
||||
const opCreateQueue = "CreateQueue"
|
||||
|
||||
// CreateQueueRequest generates a request for the CreateQueue operation.
|
||||
// CreateQueueRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the CreateQueue operation. The "output" return
|
||||
// value can be used to capture response data after the request's "Send" method
|
||||
// is called.
|
||||
//
|
||||
// Creating a request object using this method should be used when you want to inject
|
||||
// custom logic into the request's lifecycle using a custom handler, or if you want to
|
||||
// access properties on the request object before or after sending the request. If
|
||||
// you just want the service response, call the CreateQueue method directly
|
||||
// instead.
|
||||
//
|
||||
// Note: You must call the "Send" method on the returned request object in order
|
||||
// to execute the request.
|
||||
//
|
||||
// // Example sending a request using the CreateQueueRequest method.
|
||||
// req, resp := client.CreateQueueRequest(params)
|
||||
//
|
||||
// err := req.Send()
|
||||
// if err == nil { // resp is now filled
|
||||
// fmt.Println(resp)
|
||||
// }
|
||||
//
|
||||
func (c *SQS) CreateQueueRequest(input *CreateQueueInput) (req *request.Request, output *CreateQueueOutput) {
|
||||
op := &request.Operation{
|
||||
Name: opCreateQueue,
|
||||
|
@ -182,7 +269,7 @@ func (c *SQS) CreateQueueRequest(input *CreateQueueInput) (req *request.Request,
|
|||
//
|
||||
// You may pass one or more attributes in the request. If you do not provide
|
||||
// a value for any attribute, the queue will have the default value for that
|
||||
// attribute. Permitted attributes are the same that can be set using SetQueueAttributes.
|
||||
// attribute.
|
||||
//
|
||||
// Use GetQueueUrl to get a queue's URL. GetQueueUrl requires only the QueueName
|
||||
// parameter.
|
||||
|
@ -203,7 +290,28 @@ func (c *SQS) CreateQueue(input *CreateQueueInput) (*CreateQueueOutput, error) {
|
|||
|
||||
const opDeleteMessage = "DeleteMessage"
|
||||
|
||||
// DeleteMessageRequest generates a request for the DeleteMessage operation.
|
||||
// DeleteMessageRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the DeleteMessage operation. The "output" return
|
||||
// value can be used to capture response data after the request's "Send" method
|
||||
// is called.
|
||||
//
|
||||
// Creating a request object using this method should be used when you want to inject
|
||||
// custom logic into the request's lifecycle using a custom handler, or if you want to
|
||||
// access properties on the request object before or after sending the request. If
|
||||
// you just want the service response, call the DeleteMessage method directly
|
||||
// instead.
|
||||
//
|
||||
// Note: You must call the "Send" method on the returned request object in order
|
||||
// to execute the request.
|
||||
//
|
||||
// // Example sending a request using the DeleteMessageRequest method.
|
||||
// req, resp := client.DeleteMessageRequest(params)
|
||||
//
|
||||
// err := req.Send()
|
||||
// if err == nil { // resp is now filled
|
||||
// fmt.Println(resp)
|
||||
// }
|
||||
//
|
||||
func (c *SQS) DeleteMessageRequest(input *DeleteMessageInput) (req *request.Request, output *DeleteMessageOutput) {
|
||||
op := &request.Operation{
|
||||
Name: opDeleteMessage,
|
||||
|
@ -251,7 +359,28 @@ func (c *SQS) DeleteMessage(input *DeleteMessageInput) (*DeleteMessageOutput, er
|
|||
|
||||
const opDeleteMessageBatch = "DeleteMessageBatch"
|
||||
|
||||
// DeleteMessageBatchRequest generates a request for the DeleteMessageBatch operation.
|
||||
// DeleteMessageBatchRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the DeleteMessageBatch operation. The "output" return
|
||||
// value can be used to capture response data after the request's "Send" method
|
||||
// is called.
|
||||
//
|
||||
// Creating a request object using this method should be used when you want to inject
|
||||
// custom logic into the request's lifecycle using a custom handler, or if you want to
|
||||
// access properties on the request object before or after sending the request. If
|
||||
// you just want the service response, call the DeleteMessageBatch method directly
|
||||
// instead.
|
||||
//
|
||||
// Note: You must call the "Send" method on the returned request object in order
|
||||
// to execute the request.
|
||||
//
|
||||
// // Example sending a request using the DeleteMessageBatchRequest method.
|
||||
// req, resp := client.DeleteMessageBatchRequest(params)
|
||||
//
|
||||
// err := req.Send()
|
||||
// if err == nil { // resp is now filled
|
||||
// fmt.Println(resp)
|
||||
// }
|
||||
//
|
||||
func (c *SQS) DeleteMessageBatchRequest(input *DeleteMessageBatchInput) (req *request.Request, output *DeleteMessageBatchOutput) {
|
||||
op := &request.Operation{
|
||||
Name: opDeleteMessageBatch,
|
||||
|
@ -288,7 +417,28 @@ func (c *SQS) DeleteMessageBatch(input *DeleteMessageBatchInput) (*DeleteMessage
|
|||
|
||||
const opDeleteQueue = "DeleteQueue"
|
||||
|
||||
// DeleteQueueRequest generates a request for the DeleteQueue operation.
|
||||
// DeleteQueueRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the DeleteQueue operation. The "output" return
|
||||
// value can be used to capture response data after the request's "Send" method
|
||||
// is called.
|
||||
//
|
||||
// Creating a request object using this method should be used when you want to inject
|
||||
// custom logic into the request's lifecycle using a custom handler, or if you want to
|
||||
// access properties on the request object before or after sending the request. If
|
||||
// you just want the service response, call the DeleteQueue method directly
|
||||
// instead.
|
||||
//
|
||||
// Note: You must call the "Send" method on the returned request object in order
|
||||
// to execute the request.
|
||||
//
|
||||
// // Example sending a request using the DeleteQueueRequest method.
|
||||
// req, resp := client.DeleteQueueRequest(params)
|
||||
//
|
||||
// err := req.Send()
|
||||
// if err == nil { // resp is now filled
|
||||
// fmt.Println(resp)
|
||||
// }
|
||||
//
|
||||
func (c *SQS) DeleteQueueRequest(input *DeleteQueueInput) (req *request.Request, output *DeleteQueueOutput) {
|
||||
op := &request.Operation{
|
||||
Name: opDeleteQueue,
|
||||
|
@ -333,7 +483,28 @@ func (c *SQS) DeleteQueue(input *DeleteQueueInput) (*DeleteQueueOutput, error) {
|
|||
|
||||
const opGetQueueAttributes = "GetQueueAttributes"
|
||||
|
||||
// GetQueueAttributesRequest generates a request for the GetQueueAttributes operation.
|
||||
// GetQueueAttributesRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the GetQueueAttributes operation. The "output" return
|
||||
// value can be used to capture response data after the request's "Send" method
|
||||
// is called.
|
||||
//
|
||||
// Creating a request object using this method should be used when you want to inject
|
||||
// custom logic into the request's lifecycle using a custom handler, or if you want to
|
||||
// access properties on the request object before or after sending the request. If
|
||||
// you just want the service response, call the GetQueueAttributes method directly
|
||||
// instead.
|
||||
//
|
||||
// Note: You must call the "Send" method on the returned request object in order
|
||||
// to execute the request.
|
||||
//
|
||||
// // Example sending a request using the GetQueueAttributesRequest method.
|
||||
// req, resp := client.GetQueueAttributesRequest(params)
|
||||
//
|
||||
// err := req.Send()
|
||||
// if err == nil { // resp is now filled
|
||||
// fmt.Println(resp)
|
||||
// }
|
||||
//
|
||||
func (c *SQS) GetQueueAttributesRequest(input *GetQueueAttributesInput) (req *request.Request, output *GetQueueAttributesOutput) {
|
||||
op := &request.Operation{
|
||||
Name: opGetQueueAttributes,
|
||||
|
@ -351,39 +522,11 @@ func (c *SQS) GetQueueAttributesRequest(input *GetQueueAttributesInput) (req *re
|
|||
return
|
||||
}
|
||||
|
||||
// Gets attributes for the specified queue. The following attributes are supported:
|
||||
// All - returns all values. ApproximateNumberOfMessages - returns the approximate
|
||||
// number of visible messages in a queue. For more information, see Resources
|
||||
// Required to Process Messages (http://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/ApproximateNumber.html)
|
||||
// in the Amazon SQS Developer Guide. ApproximateNumberOfMessagesNotVisible
|
||||
// - returns the approximate number of messages that are not timed-out and not
|
||||
// deleted. For more information, see Resources Required to Process Messages
|
||||
// (http://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/ApproximateNumber.html)
|
||||
// in the Amazon SQS Developer Guide. VisibilityTimeout - returns the visibility
|
||||
// timeout for the queue. For more information about visibility timeout, see
|
||||
// Visibility Timeout (http://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/AboutVT.html)
|
||||
// in the Amazon SQS Developer Guide. CreatedTimestamp - returns the time when
|
||||
// the queue was created (epoch time in seconds). LastModifiedTimestamp - returns
|
||||
// the time when the queue was last changed (epoch time in seconds). Policy
|
||||
// - returns the queue's policy. MaximumMessageSize - returns the limit of how
|
||||
// many bytes a message can contain before Amazon SQS rejects it. MessageRetentionPeriod
|
||||
// - returns the number of seconds Amazon SQS retains a message. QueueArn -
|
||||
// returns the queue's Amazon resource name (ARN). ApproximateNumberOfMessagesDelayed
|
||||
// - returns the approximate number of messages that are pending to be added
|
||||
// to the queue. DelaySeconds - returns the default delay on the queue in seconds.
|
||||
// ReceiveMessageWaitTimeSeconds - returns the time for which a ReceiveMessage
|
||||
// call will wait for a message to arrive. RedrivePolicy - returns the parameters
|
||||
// for dead letter queue functionality of the source queue. For more information
|
||||
// about RedrivePolicy and dead letter queues, see Using Amazon SQS Dead Letter
|
||||
// Queues (http://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/SQSDeadLetterQueue.html)
|
||||
// in the Amazon SQS Developer Guide.
|
||||
// Gets attributes for the specified queue.
|
||||
//
|
||||
// Going forward, new attributes might be added. If you are writing code that
|
||||
// calls this action, we recommend that you structure your code so that it can
|
||||
// handle new attributes gracefully. Some API actions take lists of parameters.
|
||||
// These lists are specified using the param.n notation. Values of n are integers
|
||||
// starting from 1. For example, a parameter list with two elements looks like
|
||||
// this:
|
||||
// Some API actions take lists of parameters. These lists are specified using
|
||||
// the param.n notation. Values of n are integers starting from 1. For example,
|
||||
// a parameter list with two elements looks like this:
|
||||
func (c *SQS) GetQueueAttributes(input *GetQueueAttributesInput) (*GetQueueAttributesOutput, error) {
|
||||
req, out := c.GetQueueAttributesRequest(input)
|
||||
err := req.Send()
|
||||
|
@ -392,7 +535,28 @@ func (c *SQS) GetQueueAttributes(input *GetQueueAttributesInput) (*GetQueueAttri
|
|||
|
||||
const opGetQueueUrl = "GetQueueUrl"
|
||||
|
||||
// GetQueueUrlRequest generates a request for the GetQueueUrl operation.
|
||||
// GetQueueUrlRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the GetQueueUrl operation. The "output" return
|
||||
// value can be used to capture response data after the request's "Send" method
|
||||
// is called.
|
||||
//
|
||||
// Creating a request object using this method should be used when you want to inject
|
||||
// custom logic into the request's lifecycle using a custom handler, or if you want to
|
||||
// access properties on the request object before or after sending the request. If
|
||||
// you just want the service response, call the GetQueueUrl method directly
|
||||
// instead.
|
||||
//
|
||||
// Note: You must call the "Send" method on the returned request object in order
|
||||
// to execute the request.
|
||||
//
|
||||
// // Example sending a request using the GetQueueUrlRequest method.
|
||||
// req, resp := client.GetQueueUrlRequest(params)
|
||||
//
|
||||
// err := req.Send()
|
||||
// if err == nil { // resp is now filled
|
||||
// fmt.Println(resp)
|
||||
// }
|
||||
//
|
||||
func (c *SQS) GetQueueUrlRequest(input *GetQueueUrlInput) (req *request.Request, output *GetQueueUrlOutput) {
|
||||
op := &request.Operation{
|
||||
Name: opGetQueueUrl,
|
||||
|
@ -426,7 +590,28 @@ func (c *SQS) GetQueueUrl(input *GetQueueUrlInput) (*GetQueueUrlOutput, error) {
|
|||
|
||||
const opListDeadLetterSourceQueues = "ListDeadLetterSourceQueues"
|
||||
|
||||
// ListDeadLetterSourceQueuesRequest generates a request for the ListDeadLetterSourceQueues operation.
|
||||
// ListDeadLetterSourceQueuesRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the ListDeadLetterSourceQueues operation. The "output" return
|
||||
// value can be used to capture response data after the request's "Send" method
|
||||
// is called.
|
||||
//
|
||||
// Creating a request object using this method should be used when you want to inject
|
||||
// custom logic into the request's lifecycle using a custom handler, or if you want to
|
||||
// access properties on the request object before or after sending the request. If
|
||||
// you just want the service response, call the ListDeadLetterSourceQueues method directly
|
||||
// instead.
|
||||
//
|
||||
// Note: You must call the "Send" method on the returned request object in order
|
||||
// to execute the request.
|
||||
//
|
||||
// // Example sending a request using the ListDeadLetterSourceQueuesRequest method.
|
||||
// req, resp := client.ListDeadLetterSourceQueuesRequest(params)
|
||||
//
|
||||
// err := req.Send()
|
||||
// if err == nil { // resp is now filled
|
||||
// fmt.Println(resp)
|
||||
// }
|
||||
//
|
||||
func (c *SQS) ListDeadLetterSourceQueuesRequest(input *ListDeadLetterSourceQueuesInput) (req *request.Request, output *ListDeadLetterSourceQueuesOutput) {
|
||||
op := &request.Operation{
|
||||
Name: opListDeadLetterSourceQueues,
|
||||
|
@ -457,7 +642,28 @@ func (c *SQS) ListDeadLetterSourceQueues(input *ListDeadLetterSourceQueuesInput)
|
|||
|
||||
const opListQueues = "ListQueues"
|
||||
|
||||
// ListQueuesRequest generates a request for the ListQueues operation.
|
||||
// ListQueuesRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the ListQueues operation. The "output" return
|
||||
// value can be used to capture response data after the request's "Send" method
|
||||
// is called.
|
||||
//
|
||||
// Creating a request object using this method should be used when you want to inject
|
||||
// custom logic into the request's lifecycle using a custom handler, or if you want to
|
||||
// access properties on the request object before or after sending the request. If
|
||||
// you just want the service response, call the ListQueues method directly
|
||||
// instead.
|
||||
//
|
||||
// Note: You must call the "Send" method on the returned request object in order
|
||||
// to execute the request.
|
||||
//
|
||||
// // Example sending a request using the ListQueuesRequest method.
|
||||
// req, resp := client.ListQueuesRequest(params)
|
||||
//
|
||||
// err := req.Send()
|
||||
// if err == nil { // resp is now filled
|
||||
// fmt.Println(resp)
|
||||
// }
|
||||
//
|
||||
func (c *SQS) ListQueuesRequest(input *ListQueuesInput) (req *request.Request, output *ListQueuesOutput) {
|
||||
op := &request.Operation{
|
||||
Name: opListQueues,
|
||||
|
@ -486,7 +692,28 @@ func (c *SQS) ListQueues(input *ListQueuesInput) (*ListQueuesOutput, error) {
|
|||
|
||||
const opPurgeQueue = "PurgeQueue"
|
||||
|
||||
// PurgeQueueRequest generates a request for the PurgeQueue operation.
|
||||
// PurgeQueueRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the PurgeQueue operation. The "output" return
|
||||
// value can be used to capture response data after the request's "Send" method
|
||||
// is called.
|
||||
//
|
||||
// Creating a request object using this method should be used when you want to inject
|
||||
// custom logic into the request's lifecycle using a custom handler, or if you want to
|
||||
// access properties on the request object before or after sending the request. If
|
||||
// you just want the service response, call the PurgeQueue method directly
|
||||
// instead.
|
||||
//
|
||||
// Note: You must call the "Send" method on the returned request object in order
|
||||
// to execute the request.
|
||||
//
|
||||
// // Example sending a request using the PurgeQueueRequest method.
|
||||
// req, resp := client.PurgeQueueRequest(params)
|
||||
//
|
||||
// err := req.Send()
|
||||
// if err == nil { // resp is now filled
|
||||
// fmt.Println(resp)
|
||||
// }
|
||||
//
|
||||
func (c *SQS) PurgeQueueRequest(input *PurgeQueueInput) (req *request.Request, output *PurgeQueueOutput) {
|
||||
op := &request.Operation{
|
||||
Name: opPurgeQueue,
|
||||
|
@ -509,12 +736,13 @@ func (c *SQS) PurgeQueueRequest(input *PurgeQueueInput) (req *request.Request, o
|
|||
// Deletes the messages in a queue specified by the queue URL.
|
||||
//
|
||||
// When you use the PurgeQueue API, the deleted messages in the queue cannot
|
||||
// be retrieved. When you purge a queue, the message deletion process takes
|
||||
// up to 60 seconds. All messages sent to the queue before calling PurgeQueue
|
||||
// will be deleted; messages sent to the queue while it is being purged may
|
||||
// be deleted. While the queue is being purged, messages sent to the queue before
|
||||
// PurgeQueue was called may be received, but will be deleted within the next
|
||||
// minute.
|
||||
// be retrieved.
|
||||
//
|
||||
// When you purge a queue, the message deletion process takes up to 60 seconds.
|
||||
// All messages sent to the queue before calling PurgeQueue will be deleted;
|
||||
// messages sent to the queue while it is being purged may be deleted. While
|
||||
// the queue is being purged, messages sent to the queue before PurgeQueue was
|
||||
// called may be received, but will be deleted within the next minute.
|
||||
func (c *SQS) PurgeQueue(input *PurgeQueueInput) (*PurgeQueueOutput, error) {
|
||||
req, out := c.PurgeQueueRequest(input)
|
||||
err := req.Send()
|
||||
|
@ -523,7 +751,28 @@ func (c *SQS) PurgeQueue(input *PurgeQueueInput) (*PurgeQueueOutput, error) {
|
|||
|
||||
const opReceiveMessage = "ReceiveMessage"
|
||||
|
||||
// ReceiveMessageRequest generates a request for the ReceiveMessage operation.
|
||||
// ReceiveMessageRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the ReceiveMessage operation. The "output" return
|
||||
// value can be used to capture response data after the request's "Send" method
|
||||
// is called.
|
||||
//
|
||||
// Creating a request object using this method should be used when you want to inject
|
||||
// custom logic into the request's lifecycle using a custom handler, or if you want to
|
||||
// access properties on the request object before or after sending the request. If
|
||||
// you just want the service response, call the ReceiveMessage method directly
|
||||
// instead.
|
||||
//
|
||||
// Note: You must call the "Send" method on the returned request object in order
|
||||
// to execute the request.
|
||||
//
|
||||
// // Example sending a request using the ReceiveMessageRequest method.
|
||||
// req, resp := client.ReceiveMessageRequest(params)
|
||||
//
|
||||
// err := req.Send()
|
||||
// if err == nil { // resp is now filled
|
||||
// fmt.Println(resp)
|
||||
// }
|
||||
//
|
||||
func (c *SQS) ReceiveMessageRequest(input *ReceiveMessageInput) (req *request.Request, output *ReceiveMessageOutput) {
|
||||
op := &request.Operation{
|
||||
Name: opReceiveMessage,
|
||||
|
@ -591,7 +840,28 @@ func (c *SQS) ReceiveMessage(input *ReceiveMessageInput) (*ReceiveMessageOutput,
|
|||
|
||||
const opRemovePermission = "RemovePermission"
|
||||
|
||||
// RemovePermissionRequest generates a request for the RemovePermission operation.
|
||||
// RemovePermissionRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the RemovePermission operation. The "output" return
|
||||
// value can be used to capture response data after the request's "Send" method
|
||||
// is called.
|
||||
//
|
||||
// Creating a request object using this method should be used when you want to inject
|
||||
// custom logic into the request's lifecycle using a custom handler, or if you want to
|
||||
// access properties on the request object before or after sending the request. If
|
||||
// you just want the service response, call the RemovePermission method directly
|
||||
// instead.
|
||||
//
|
||||
// Note: You must call the "Send" method on the returned request object in order
|
||||
// to execute the request.
|
||||
//
|
||||
// // Example sending a request using the RemovePermissionRequest method.
|
||||
// req, resp := client.RemovePermissionRequest(params)
|
||||
//
|
||||
// err := req.Send()
|
||||
// if err == nil { // resp is now filled
|
||||
// fmt.Println(resp)
|
||||
// }
|
||||
//
|
||||
func (c *SQS) RemovePermissionRequest(input *RemovePermissionInput) (req *request.Request, output *RemovePermissionOutput) {
|
||||
op := &request.Operation{
|
||||
Name: opRemovePermission,
|
||||
|
@ -621,7 +891,28 @@ func (c *SQS) RemovePermission(input *RemovePermissionInput) (*RemovePermissionO
|
|||
|
||||
const opSendMessage = "SendMessage"
|
||||
|
||||
// SendMessageRequest generates a request for the SendMessage operation.
|
||||
// SendMessageRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the SendMessage operation. The "output" return
|
||||
// value can be used to capture response data after the request's "Send" method
|
||||
// is called.
|
||||
//
|
||||
// Creating a request object using this method should be used when you want to inject
|
||||
// custom logic into the request's lifecycle using a custom handler, or if you want to
|
||||
// access properties on the request object before or after sending the request. If
|
||||
// you just want the service response, call the SendMessage method directly
|
||||
// instead.
|
||||
//
|
||||
// Note: You must call the "Send" method on the returned request object in order
|
||||
// to execute the request.
|
||||
//
|
||||
// // Example sending a request using the SendMessageRequest method.
|
||||
// req, resp := client.SendMessageRequest(params)
|
||||
//
|
||||
// err := req.Send()
|
||||
// if err == nil { // resp is now filled
|
||||
// fmt.Println(resp)
|
||||
// }
|
||||
//
|
||||
func (c *SQS) SendMessageRequest(input *SendMessageInput) (req *request.Request, output *SendMessageOutput) {
|
||||
op := &request.Operation{
|
||||
Name: opSendMessage,
|
||||
|
@ -659,7 +950,28 @@ func (c *SQS) SendMessage(input *SendMessageInput) (*SendMessageOutput, error) {
|
|||
|
||||
const opSendMessageBatch = "SendMessageBatch"
|
||||
|
||||
// SendMessageBatchRequest generates a request for the SendMessageBatch operation.
|
||||
// SendMessageBatchRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the SendMessageBatch operation. The "output" return
|
||||
// value can be used to capture response data after the request's "Send" method
|
||||
// is called.
|
||||
//
|
||||
// Creating a request object using this method should be used when you want to inject
|
||||
// custom logic into the request's lifecycle using a custom handler, or if you want to
|
||||
// access properties on the request object before or after sending the request. If
|
||||
// you just want the service response, call the SendMessageBatch method directly
|
||||
// instead.
|
||||
//
|
||||
// Note: You must call the "Send" method on the returned request object in order
|
||||
// to execute the request.
|
||||
//
|
||||
// // Example sending a request using the SendMessageBatchRequest method.
|
||||
// req, resp := client.SendMessageBatchRequest(params)
|
||||
//
|
||||
// err := req.Send()
|
||||
// if err == nil { // resp is now filled
|
||||
// fmt.Println(resp)
|
||||
// }
|
||||
//
|
||||
func (c *SQS) SendMessageBatchRequest(input *SendMessageBatchInput) (req *request.Request, output *SendMessageBatchOutput) {
|
||||
op := &request.Operation{
|
||||
Name: opSendMessageBatch,
|
||||
|
@ -692,15 +1004,17 @@ func (c *SQS) SendMessageBatchRequest(input *SendMessageBatchInput) (req *reques
|
|||
// your message, according to the W3C XML specification. For more information,
|
||||
// go to http://www.faqs.org/rfcs/rfc1321.html (http://www.faqs.org/rfcs/rfc1321.html).
|
||||
// If you send any characters that are not included in the list, your request
|
||||
// will be rejected. #x9 | #xA | #xD | [#x20 to #xD7FF] | [#xE000 to #xFFFD]
|
||||
// | [#x10000 to #x10FFFF]
|
||||
// will be rejected.
|
||||
//
|
||||
// #x9 | #xA | #xD | [#x20 to #xD7FF] | [#xE000 to #xFFFD] | [#x10000 to #x10FFFF]
|
||||
//
|
||||
// Because the batch request can result in a combination of successful and
|
||||
// unsuccessful actions, you should check for batch errors even when the call
|
||||
// returns an HTTP status code of 200. Some API actions take lists of parameters.
|
||||
// These lists are specified using the param.n notation. Values of n are integers
|
||||
// starting from 1. For example, a parameter list with two elements looks like
|
||||
// this:
|
||||
// returns an HTTP status code of 200.
|
||||
//
|
||||
// Some API actions take lists of parameters. These lists are specified using
|
||||
// the param.n notation. Values of n are integers starting from 1. For example,
|
||||
// a parameter list with two elements looks like this:
|
||||
func (c *SQS) SendMessageBatch(input *SendMessageBatchInput) (*SendMessageBatchOutput, error) {
|
||||
req, out := c.SendMessageBatchRequest(input)
|
||||
err := req.Send()
|
||||
|
@ -709,7 +1023,28 @@ func (c *SQS) SendMessageBatch(input *SendMessageBatchInput) (*SendMessageBatchO
|
|||
|
||||
const opSetQueueAttributes = "SetQueueAttributes"
|
||||
|
||||
// SetQueueAttributesRequest generates a request for the SetQueueAttributes operation.
|
||||
// SetQueueAttributesRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the SetQueueAttributes operation. The "output" return
|
||||
// value can be used to capture response data after the request's "Send" method
|
||||
// is called.
|
||||
//
|
||||
// Creating a request object using this method should be used when you want to inject
|
||||
// custom logic into the request's lifecycle using a custom handler, or if you want to
|
||||
// access properties on the request object before or after sending the request. If
|
||||
// you just want the service response, call the SetQueueAttributes method directly
|
||||
// instead.
|
||||
//
|
||||
// Note: You must call the "Send" method on the returned request object in order
|
||||
// to execute the request.
|
||||
//
|
||||
// // Example sending a request using the SetQueueAttributesRequest method.
|
||||
// req, resp := client.SetQueueAttributesRequest(params)
|
||||
//
|
||||
// err := req.Send()
|
||||
// if err == nil { // resp is now filled
|
||||
// fmt.Println(resp)
|
||||
// }
|
||||
//
|
||||
func (c *SQS) SetQueueAttributesRequest(input *SetQueueAttributesInput) (req *request.Request, output *SetQueueAttributesOutput) {
|
||||
op := &request.Operation{
|
||||
Name: opSetQueueAttributes,
|
||||
|
@ -770,6 +1105,8 @@ type AddPermissionInput struct {
|
|||
Label *string `type:"string" required:"true"`
|
||||
|
||||
// The URL of the Amazon SQS queue to take action on.
|
||||
//
|
||||
// Queue URLs are case-sensitive.
|
||||
QueueUrl *string `type:"string" required:"true"`
|
||||
}
|
||||
|
||||
|
@ -855,6 +1192,8 @@ type ChangeMessageVisibilityBatchInput struct {
|
|||
Entries []*ChangeMessageVisibilityBatchRequestEntry `locationNameList:"ChangeMessageVisibilityBatchRequestEntry" type:"list" flattened:"true" required:"true"`
|
||||
|
||||
// The URL of the Amazon SQS queue to take action on.
|
||||
//
|
||||
// Queue URLs are case-sensitive.
|
||||
QueueUrl *string `type:"string" required:"true"`
|
||||
}
|
||||
|
||||
|
@ -990,6 +1329,8 @@ type ChangeMessageVisibilityInput struct {
|
|||
_ struct{} `type:"structure"`
|
||||
|
||||
// The URL of the Amazon SQS queue to take action on.
|
||||
//
|
||||
// Queue URLs are case-sensitive.
|
||||
QueueUrl *string `type:"string" required:"true"`
|
||||
|
||||
// The receipt handle associated with the message whose visibility timeout should
|
||||
|
@ -1054,24 +1395,42 @@ type CreateQueueInput struct {
|
|||
//
|
||||
// DelaySeconds - The time in seconds that the delivery of all messages in
|
||||
// the queue will be delayed. An integer from 0 to 900 (15 minutes). The default
|
||||
// for this attribute is 0 (zero). MaximumMessageSize - The limit of how many
|
||||
// bytes a message can contain before Amazon SQS rejects it. An integer from
|
||||
// 1024 bytes (1 KiB) up to 262144 bytes (256 KiB). The default for this attribute
|
||||
// is 262144 (256 KiB). MessageRetentionPeriod - The number of seconds Amazon
|
||||
// SQS retains a message. Integer representing seconds, from 60 (1 minute) to
|
||||
// 1209600 (14 days). The default for this attribute is 345600 (4 days). Policy
|
||||
// - The queue's policy. A valid AWS policy. For more information about policy
|
||||
// structure, see Overview of AWS IAM Policies (http://docs.aws.amazon.com/IAM/latest/UserGuide/PoliciesOverview.html)
|
||||
// in the Amazon IAM User Guide. ReceiveMessageWaitTimeSeconds - The time for
|
||||
// which a ReceiveMessage call will wait for a message to arrive. An integer
|
||||
// from 0 to 20 (seconds). The default for this attribute is 0. VisibilityTimeout
|
||||
// - The visibility timeout for the queue. An integer from 0 to 43200 (12 hours).
|
||||
// The default for this attribute is 30. For more information about visibility
|
||||
// timeout, see Visibility Timeout (http://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/AboutVT.html)
|
||||
// for this attribute is 0 (zero).
|
||||
//
|
||||
// MaximumMessageSize - The limit of how many bytes a message can contain before
|
||||
// Amazon SQS rejects it. An integer from 1024 bytes (1 KiB) up to 262144 bytes
|
||||
// (256 KiB). The default for this attribute is 262144 (256 KiB).
|
||||
//
|
||||
// MessageRetentionPeriod - The number of seconds Amazon SQS retains a message.
|
||||
// Integer representing seconds, from 60 (1 minute) to 1209600 (14 days). The
|
||||
// default for this attribute is 345600 (4 days).
|
||||
//
|
||||
// Policy - The queue's policy. A valid AWS policy. For more information about
|
||||
// policy structure, see Overview of AWS IAM Policies (http://docs.aws.amazon.com/IAM/latest/UserGuide/PoliciesOverview.html)
|
||||
// in the Amazon IAM User Guide.
|
||||
//
|
||||
// ReceiveMessageWaitTimeSeconds - The time for which a ReceiveMessage call
|
||||
// will wait for a message to arrive. An integer from 0 to 20 (seconds). The
|
||||
// default for this attribute is 0.
|
||||
//
|
||||
// RedrivePolicy - The parameters for dead letter queue functionality of the
|
||||
// source queue. For more information about RedrivePolicy and dead letter queues,
|
||||
// see Using Amazon SQS Dead Letter Queues (http://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/SQSDeadLetterQueue.html)
|
||||
// in the Amazon SQS Developer Guide.
|
||||
//
|
||||
// VisibilityTimeout - The visibility timeout for the queue. An integer from
|
||||
// 0 to 43200 (12 hours). The default for this attribute is 30. For more information
|
||||
// about visibility timeout, see Visibility Timeout (http://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/AboutVT.html)
|
||||
// in the Amazon SQS Developer Guide.
|
||||
//
|
||||
// Any other valid special request parameters that are specified (such as
|
||||
// ApproximateNumberOfMessages, ApproximateNumberOfMessagesDelayed, ApproximateNumberOfMessagesNotVisible,
|
||||
// CreatedTimestamp, LastModifiedTimestamp, and QueueArn) will be ignored.
|
||||
Attributes map[string]*string `locationName:"Attribute" locationNameKey:"Name" locationNameValue:"Value" type:"map" flattened:"true"`
|
||||
|
||||
// The name for the queue to be created.
|
||||
//
|
||||
// Queue names are case-sensitive.
|
||||
QueueName *string `type:"string" required:"true"`
|
||||
}
|
||||
|
||||
|
@ -1123,6 +1482,8 @@ type DeleteMessageBatchInput struct {
|
|||
Entries []*DeleteMessageBatchRequestEntry `locationNameList:"DeleteMessageBatchRequestEntry" type:"list" flattened:"true" required:"true"`
|
||||
|
||||
// The URL of the Amazon SQS queue to take action on.
|
||||
//
|
||||
// Queue URLs are case-sensitive.
|
||||
QueueUrl *string `type:"string" required:"true"`
|
||||
}
|
||||
|
||||
|
@ -1246,6 +1607,8 @@ type DeleteMessageInput struct {
|
|||
_ struct{} `type:"structure"`
|
||||
|
||||
// The URL of the Amazon SQS queue to take action on.
|
||||
//
|
||||
// Queue URLs are case-sensitive.
|
||||
QueueUrl *string `type:"string" required:"true"`
|
||||
|
||||
// The receipt handle associated with the message to delete.
|
||||
|
@ -1296,6 +1659,8 @@ type DeleteQueueInput struct {
|
|||
_ struct{} `type:"structure"`
|
||||
|
||||
// The URL of the Amazon SQS queue to take action on.
|
||||
//
|
||||
// Queue URLs are case-sensitive.
|
||||
QueueUrl *string `type:"string" required:"true"`
|
||||
}
|
||||
|
||||
|
@ -1339,10 +1704,62 @@ func (s DeleteQueueOutput) GoString() string {
|
|||
type GetQueueAttributesInput struct {
|
||||
_ struct{} `type:"structure"`
|
||||
|
||||
// A list of attributes to retrieve information for.
|
||||
// A list of attributes to retrieve information for. The following attributes
|
||||
// are supported:
|
||||
//
|
||||
// All - returns all values.
|
||||
//
|
||||
// ApproximateNumberOfMessages - returns the approximate number of visible
|
||||
// messages in a queue. For more information, see Resources Required to Process
|
||||
// Messages (http://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/ApproximateNumber.html)
|
||||
// in the Amazon SQS Developer Guide.
|
||||
//
|
||||
// ApproximateNumberOfMessagesNotVisible - returns the approximate number of
|
||||
// messages that are not timed-out and not deleted. For more information, see
|
||||
// Resources Required to Process Messages (http://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/ApproximateNumber.html)
|
||||
// in the Amazon SQS Developer Guide.
|
||||
//
|
||||
// VisibilityTimeout - returns the visibility timeout for the queue. For more
|
||||
// information about visibility timeout, see Visibility Timeout (http://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/AboutVT.html)
|
||||
// in the Amazon SQS Developer Guide.
|
||||
//
|
||||
// CreatedTimestamp - returns the time when the queue was created (epoch time
|
||||
// in seconds).
|
||||
//
|
||||
// LastModifiedTimestamp - returns the time when the queue was last changed
|
||||
// (epoch time in seconds).
|
||||
//
|
||||
// Policy - returns the queue's policy.
|
||||
//
|
||||
// MaximumMessageSize - returns the limit of how many bytes a message can contain
|
||||
// before Amazon SQS rejects it.
|
||||
//
|
||||
// MessageRetentionPeriod - returns the number of seconds Amazon SQS retains
|
||||
// a message.
|
||||
//
|
||||
// QueueArn - returns the queue's Amazon resource name (ARN).
|
||||
//
|
||||
// ApproximateNumberOfMessagesDelayed - returns the approximate number of messages
|
||||
// that are pending to be added to the queue.
|
||||
//
|
||||
// DelaySeconds - returns the default delay on the queue in seconds.
|
||||
//
|
||||
// ReceiveMessageWaitTimeSeconds - returns the time for which a ReceiveMessage
|
||||
// call will wait for a message to arrive.
|
||||
//
|
||||
// RedrivePolicy - returns the parameters for dead letter queue functionality
|
||||
// of the source queue. For more information about RedrivePolicy and dead letter
|
||||
// queues, see Using Amazon SQS Dead Letter Queues (http://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/SQSDeadLetterQueue.html)
|
||||
// in the Amazon SQS Developer Guide.
|
||||
//
|
||||
// Going forward, new attributes might be added. If you are writing code that
|
||||
// calls this action, we recommend that you structure your code so that it can
|
||||
// handle new attributes gracefully.
|
||||
AttributeNames []*string `locationNameList:"AttributeName" type:"list" flattened:"true"`
|
||||
|
||||
// The URL of the Amazon SQS queue to take action on.
|
||||
//
|
||||
// Queue URLs are case-sensitive.
|
||||
QueueUrl *string `type:"string" required:"true"`
|
||||
}
|
||||
|
||||
|
@ -1392,6 +1809,8 @@ type GetQueueUrlInput struct {
|
|||
|
||||
// The name of the queue whose URL must be fetched. Maximum 80 characters; alphanumeric
|
||||
// characters, hyphens (-), and underscores (_) are allowed.
|
||||
//
|
||||
// Queue names are case-sensitive.
|
||||
QueueName *string `type:"string" required:"true"`
|
||||
|
||||
// The AWS account ID of the account that created the queue.
|
||||
|
@ -1444,6 +1863,8 @@ type ListDeadLetterSourceQueuesInput struct {
|
|||
_ struct{} `type:"structure"`
|
||||
|
||||
// The queue URL of a dead letter queue.
|
||||
//
|
||||
// Queue URLs are case-sensitive.
|
||||
QueueUrl *string `type:"string" required:"true"`
|
||||
}
|
||||
|
||||
|
@ -1494,6 +1915,8 @@ type ListQueuesInput struct {
|
|||
|
||||
// A string to use for filtering the list results. Only those queues whose name
|
||||
// begins with the specified string are returned.
|
||||
//
|
||||
// Queue names are case-sensitive.
|
||||
QueueNamePrefix *string `type:"string"`
|
||||
}
|
||||
|
||||
|
@ -1592,8 +2015,10 @@ type MessageAttributeValue struct {
|
|||
BinaryValue []byte `type:"blob"`
|
||||
|
||||
// Amazon SQS supports the following logical data types: String, Number, and
|
||||
// Binary. In addition, you can append your own custom labels. For more information,
|
||||
// see Message Attribute Data Types (http://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/SQSMessageAttributes.html#SQSMessageAttributes.DataTypes).
|
||||
// Binary. For the Number data type, you must use StringValue.
|
||||
//
|
||||
// You can also append custom labels. For more information, see Message Attribute
|
||||
// Data Types (http://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/SQSMessageAttributes.html#SQSMessageAttributes.DataTypes).
|
||||
DataType *string `type:"string" required:"true"`
|
||||
|
||||
// Not implemented. Reserved for future use.
|
||||
|
@ -1632,6 +2057,8 @@ type PurgeQueueInput struct {
|
|||
|
||||
// The queue URL of the queue to delete the messages from when using the PurgeQueue
|
||||
// API.
|
||||
//
|
||||
// Queue URLs are case-sensitive.
|
||||
QueueUrl *string `type:"string" required:"true"`
|
||||
}
|
||||
|
||||
|
@ -1675,18 +2102,28 @@ func (s PurgeQueueOutput) GoString() string {
|
|||
type ReceiveMessageInput struct {
|
||||
_ struct{} `type:"structure"`
|
||||
|
||||
// A list of attributes that need to be returned along with each message.
|
||||
// A list of attributes that need to be returned along with each message. These
|
||||
// attributes include:
|
||||
//
|
||||
// The following lists the names and descriptions of the attributes that can
|
||||
// be returned:
|
||||
// All - returns all values.
|
||||
//
|
||||
// ApproximateFirstReceiveTimestamp - returns the time when the message was
|
||||
// first received from the queue (epoch time in milliseconds).
|
||||
//
|
||||
// All - returns all values. ApproximateFirstReceiveTimestamp - returns the
|
||||
// time when the message was first received from the queue (epoch time in milliseconds).
|
||||
// ApproximateReceiveCount - returns the number of times a message has been
|
||||
// received from the queue but not deleted. SenderId - returns the AWS account
|
||||
// number (or the IP address, if anonymous access is allowed) of the sender.
|
||||
// SentTimestamp - returns the time when the message was sent to the queue (epoch
|
||||
// time in milliseconds).
|
||||
// received from the queue but not deleted.
|
||||
//
|
||||
// SenderId - returns the AWS account number (or the IP address, if anonymous
|
||||
// access is allowed) of the sender.
|
||||
//
|
||||
// SentTimestamp - returns the time when the message was sent to the queue
|
||||
// (epoch time in milliseconds).
|
||||
//
|
||||
// Any other valid special request parameters that are specified (such as
|
||||
// ApproximateNumberOfMessages, ApproximateNumberOfMessagesDelayed, ApproximateNumberOfMessagesNotVisible,
|
||||
// CreatedTimestamp, DelaySeconds, LastModifiedTimestamp, MaximumMessageSize,
|
||||
// MessageRetentionPeriod, Policy, QueueArn, ReceiveMessageWaitTimeSeconds,
|
||||
// RedrivePolicy, and VisibilityTimeout) will be ignored.
|
||||
AttributeNames []*string `locationNameList:"AttributeName" type:"list" flattened:"true"`
|
||||
|
||||
// The maximum number of messages to return. Amazon SQS never returns more messages
|
||||
|
@ -1707,11 +2144,13 @@ type ReceiveMessageInput struct {
|
|||
//
|
||||
// When using ReceiveMessage, you can send a list of attribute names to receive,
|
||||
// or you can return all of the attributes by specifying "All" or ".*" in your
|
||||
// request. You can also use "foo.*" to return all message attributes starting
|
||||
// with the "foo" prefix.
|
||||
// request. You can also use "bar.*" to return all message attributes starting
|
||||
// with the "bar" prefix.
|
||||
MessageAttributeNames []*string `locationNameList:"MessageAttributeName" type:"list" flattened:"true"`
|
||||
|
||||
// The URL of the Amazon SQS queue to take action on.
|
||||
//
|
||||
// Queue URLs are case-sensitive.
|
||||
QueueUrl *string `type:"string" required:"true"`
|
||||
|
||||
// The duration (in seconds) that the received messages are hidden from subsequent
|
||||
|
@ -1773,6 +2212,8 @@ type RemovePermissionInput struct {
|
|||
Label *string `type:"string" required:"true"`
|
||||
|
||||
// The URL of the Amazon SQS queue to take action on.
|
||||
//
|
||||
// Queue URLs are case-sensitive.
|
||||
QueueUrl *string `type:"string" required:"true"`
|
||||
}
|
||||
|
||||
|
@ -1823,6 +2264,8 @@ type SendMessageBatchInput struct {
|
|||
Entries []*SendMessageBatchRequestEntry `locationNameList:"SendMessageBatchRequestEntry" type:"list" flattened:"true" required:"true"`
|
||||
|
||||
// The URL of the Amazon SQS queue to take action on.
|
||||
//
|
||||
// Queue URLs are case-sensitive.
|
||||
QueueUrl *string `type:"string" required:"true"`
|
||||
}
|
||||
|
||||
|
@ -1993,6 +2436,8 @@ type SendMessageInput struct {
|
|||
MessageBody *string `type:"string" required:"true"`
|
||||
|
||||
// The URL of the Amazon SQS queue to take action on.
|
||||
//
|
||||
// Queue URLs are case-sensitive.
|
||||
QueueUrl *string `type:"string" required:"true"`
|
||||
}
|
||||
|
||||
|
@ -2074,26 +2519,41 @@ type SetQueueAttributesInput struct {
|
|||
//
|
||||
// DelaySeconds - The time in seconds that the delivery of all messages in
|
||||
// the queue will be delayed. An integer from 0 to 900 (15 minutes). The default
|
||||
// for this attribute is 0 (zero). MaximumMessageSize - The limit of how many
|
||||
// bytes a message can contain before Amazon SQS rejects it. An integer from
|
||||
// 1024 bytes (1 KiB) up to 262144 bytes (256 KiB). The default for this attribute
|
||||
// is 262144 (256 KiB). MessageRetentionPeriod - The number of seconds Amazon
|
||||
// SQS retains a message. Integer representing seconds, from 60 (1 minute) to
|
||||
// 1209600 (14 days). The default for this attribute is 345600 (4 days). Policy
|
||||
// - The queue's policy. A valid AWS policy. For more information about policy
|
||||
// structure, see Overview of AWS IAM Policies (http://docs.aws.amazon.com/IAM/latest/UserGuide/PoliciesOverview.html)
|
||||
// in the Amazon IAM User Guide. ReceiveMessageWaitTimeSeconds - The time for
|
||||
// which a ReceiveMessage call will wait for a message to arrive. An integer
|
||||
// from 0 to 20 (seconds). The default for this attribute is 0. VisibilityTimeout
|
||||
// - The visibility timeout for the queue. An integer from 0 to 43200 (12 hours).
|
||||
// The default for this attribute is 30. For more information about visibility
|
||||
// timeout, see Visibility Timeout in the Amazon SQS Developer Guide. RedrivePolicy
|
||||
// - The parameters for dead letter queue functionality of the source queue.
|
||||
// For more information about RedrivePolicy and dead letter queues, see Using
|
||||
// Amazon SQS Dead Letter Queues in the Amazon SQS Developer Guide.
|
||||
// for this attribute is 0 (zero).
|
||||
//
|
||||
// MaximumMessageSize - The limit of how many bytes a message can contain before
|
||||
// Amazon SQS rejects it. An integer from 1024 bytes (1 KiB) up to 262144 bytes
|
||||
// (256 KiB). The default for this attribute is 262144 (256 KiB).
|
||||
//
|
||||
// MessageRetentionPeriod - The number of seconds Amazon SQS retains a message.
|
||||
// Integer representing seconds, from 60 (1 minute) to 1209600 (14 days). The
|
||||
// default for this attribute is 345600 (4 days).
|
||||
//
|
||||
// Policy - The queue's policy. A valid AWS policy. For more information about
|
||||
// policy structure, see Overview of AWS IAM Policies (http://docs.aws.amazon.com/IAM/latest/UserGuide/PoliciesOverview.html)
|
||||
// in the Amazon IAM User Guide.
|
||||
//
|
||||
// ReceiveMessageWaitTimeSeconds - The time for which a ReceiveMessage call
|
||||
// will wait for a message to arrive. An integer from 0 to 20 (seconds). The
|
||||
// default for this attribute is 0.
|
||||
//
|
||||
// VisibilityTimeout - The visibility timeout for the queue. An integer from
|
||||
// 0 to 43200 (12 hours). The default for this attribute is 30. For more information
|
||||
// about visibility timeout, see Visibility Timeout in the Amazon SQS Developer
|
||||
// Guide.
|
||||
//
|
||||
// RedrivePolicy - The parameters for dead letter queue functionality of the
|
||||
// source queue. For more information about RedrivePolicy and dead letter queues,
|
||||
// see Using Amazon SQS Dead Letter Queues in the Amazon SQS Developer Guide.
|
||||
//
|
||||
// Any other valid special request parameters that are specified (such as
|
||||
// ApproximateNumberOfMessages, ApproximateNumberOfMessagesDelayed, ApproximateNumberOfMessagesNotVisible,
|
||||
// CreatedTimestamp, LastModifiedTimestamp, and QueueArn) will be ignored.
|
||||
Attributes map[string]*string `locationName:"Attribute" locationNameKey:"Name" locationNameValue:"Value" type:"map" flattened:"true" required:"true"`
|
||||
|
||||
// The URL of the Amazon SQS queue to take action on.
|
||||
//
|
||||
// Queue URLs are case-sensitive.
|
||||
QueueUrl *string `type:"string" required:"true"`
|
||||
}
|
||||
|
||||
|
|
|
@ -71,9 +71,19 @@ func verifyReceiveMessage(r *request.Request) {
|
|||
if r.DataFilled() && r.ParamsFilled() {
|
||||
ids := []string{}
|
||||
out := r.Data.(*ReceiveMessageOutput)
|
||||
for _, msg := range out.Messages {
|
||||
for i, msg := range out.Messages {
|
||||
err := checksumsMatch(msg.Body, msg.MD5OfBody)
|
||||
if err != nil {
|
||||
if msg.MessageId == nil {
|
||||
if r.Config.Logger != nil {
|
||||
r.Config.Logger.Log(fmt.Sprintf(
|
||||
"WARN: SQS.ReceiveMessage failed checksum request id: %s, message %d has no message ID.",
|
||||
r.RequestID, i,
|
||||
))
|
||||
}
|
||||
continue
|
||||
}
|
||||
|
||||
ids = append(ids, *msg.MessageId)
|
||||
}
|
||||
}
|
||||
|
|
|
@ -7,8 +7,8 @@ import (
|
|||
"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/query"
|
||||
"github.com/aws/aws-sdk-go/private/signer/v4"
|
||||
)
|
||||
|
||||
// Welcome to the Amazon Simple Queue Service API Reference. This section describes
|
||||
|
@ -20,20 +20,29 @@ import (
|
|||
// between distributed components of your applications that perform different
|
||||
// tasks without losing messages or requiring each component to be always available.
|
||||
//
|
||||
// Helpful Links: Current WSDL (2012-11-05) (http://queue.amazonaws.com/doc/2012-11-05/QueueService.wsdl)
|
||||
// Making API Requests (http://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/MakingRequestsArticle.html)
|
||||
// Amazon SQS product page (http://aws.amazon.com/sqs/) Using Amazon SQS Message
|
||||
// Attributes (http://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/SQSMessageAttributes.html)
|
||||
// Using Amazon SQS Dead Letter Queues (http://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/SQSDeadLetterQueue.html)
|
||||
// Regions and Endpoints (http://docs.aws.amazon.com/general/latest/gr/rande.html#sqs_region)
|
||||
// Helpful Links:
|
||||
//
|
||||
// Current WSDL (2012-11-05) (http://queue.amazonaws.com/doc/2012-11-05/QueueService.wsdl)
|
||||
//
|
||||
// Making API Requests (http://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/MakingRequestsArticle.html)
|
||||
//
|
||||
// Amazon SQS product page (http://aws.amazon.com/sqs/)
|
||||
//
|
||||
// Using Amazon SQS Message Attributes (http://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/SQSMessageAttributes.html)
|
||||
//
|
||||
// Using Amazon SQS Dead Letter Queues (http://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/SQSDeadLetterQueue.html)
|
||||
//
|
||||
// Regions and Endpoints (http://docs.aws.amazon.com/general/latest/gr/rande.html#sqs_region)
|
||||
//
|
||||
// We also provide SDKs that enable you to access Amazon SQS from your preferred
|
||||
// programming language. The SDKs contain functionality that automatically takes
|
||||
// care of tasks such as:
|
||||
//
|
||||
// Cryptographically signing your service requests Retrying requests Handling
|
||||
// error responses
|
||||
// Cryptographically signing your service requests
|
||||
//
|
||||
// Retrying requests
|
||||
//
|
||||
// Handling error responses
|
||||
//
|
||||
// For a list of available SDKs, go to Tools for Amazon Web Services (http://aws.amazon.com/tools/).
|
||||
//The service client's operations are safe to be used concurrently.
|
||||
|
@ -82,7 +91,7 @@ func newClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegio
|
|||
}
|
||||
|
||||
// Handlers
|
||||
svc.Handlers.Sign.PushBack(v4.Sign)
|
||||
svc.Handlers.Sign.PushBackNamed(v4.SignRequestHandler)
|
||||
svc.Handlers.Build.PushBackNamed(query.BuildHandler)
|
||||
svc.Handlers.Unmarshal.PushBackNamed(query.UnmarshalHandler)
|
||||
svc.Handlers.UnmarshalMeta.PushBackNamed(query.UnmarshalMetaHandler)
|
||||
|
|
|
@ -12,7 +12,28 @@ import (
|
|||
|
||||
const opAssumeRole = "AssumeRole"
|
||||
|
||||
// AssumeRoleRequest generates a request for the AssumeRole operation.
|
||||
// AssumeRoleRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the AssumeRole operation. The "output" return
|
||||
// value can be used to capture response data after the request's "Send" method
|
||||
// is called.
|
||||
//
|
||||
// Creating a request object using this method should be used when you want to inject
|
||||
// custom logic into the request's lifecycle using a custom handler, or if you want to
|
||||
// access properties on the request object before or after sending the request. If
|
||||
// you just want the service response, call the AssumeRole method directly
|
||||
// instead.
|
||||
//
|
||||
// Note: You must call the "Send" method on the returned request object in order
|
||||
// to execute the request.
|
||||
//
|
||||
// // Example sending a request using the AssumeRoleRequest method.
|
||||
// req, resp := client.AssumeRoleRequest(params)
|
||||
//
|
||||
// err := req.Send()
|
||||
// if err == nil { // resp is now filled
|
||||
// fmt.Println(resp)
|
||||
// }
|
||||
//
|
||||
func (c *STS) AssumeRoleRequest(input *AssumeRoleInput) (req *request.Request, output *AssumeRoleOutput) {
|
||||
op := &request.Operation{
|
||||
Name: opAssumeRole,
|
||||
|
@ -40,8 +61,8 @@ func (c *STS) AssumeRoleRequest(input *AssumeRoleInput) (req *request.Request, o
|
|||
// in the IAM User Guide.
|
||||
//
|
||||
// Important: You cannot call AssumeRole by using AWS root account credentials;
|
||||
// access is denied. You must use IAM user credentials or temporary security
|
||||
// credentials to call AssumeRole.
|
||||
// access is denied. You must use credentials for an IAM user or an IAM role
|
||||
// to call AssumeRole.
|
||||
//
|
||||
// For cross-account access, imagine that you own multiple accounts and need
|
||||
// to access resources in each account. You could create long-term credentials
|
||||
|
@ -127,7 +148,28 @@ func (c *STS) AssumeRole(input *AssumeRoleInput) (*AssumeRoleOutput, error) {
|
|||
|
||||
const opAssumeRoleWithSAML = "AssumeRoleWithSAML"
|
||||
|
||||
// AssumeRoleWithSAMLRequest generates a request for the AssumeRoleWithSAML operation.
|
||||
// AssumeRoleWithSAMLRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the AssumeRoleWithSAML operation. The "output" return
|
||||
// value can be used to capture response data after the request's "Send" method
|
||||
// is called.
|
||||
//
|
||||
// Creating a request object using this method should be used when you want to inject
|
||||
// custom logic into the request's lifecycle using a custom handler, or if you want to
|
||||
// access properties on the request object before or after sending the request. If
|
||||
// you just want the service response, call the AssumeRoleWithSAML method directly
|
||||
// instead.
|
||||
//
|
||||
// Note: You must call the "Send" method on the returned request object in order
|
||||
// to execute the request.
|
||||
//
|
||||
// // Example sending a request using the AssumeRoleWithSAMLRequest method.
|
||||
// req, resp := client.AssumeRoleWithSAMLRequest(params)
|
||||
//
|
||||
// err := req.Send()
|
||||
// if err == nil { // resp is now filled
|
||||
// fmt.Println(resp)
|
||||
// }
|
||||
//
|
||||
func (c *STS) AssumeRoleWithSAMLRequest(input *AssumeRoleWithSAMLInput) (req *request.Request, output *AssumeRoleWithSAMLOutput) {
|
||||
op := &request.Operation{
|
||||
Name: opAssumeRoleWithSAML,
|
||||
|
@ -219,7 +261,28 @@ func (c *STS) AssumeRoleWithSAML(input *AssumeRoleWithSAMLInput) (*AssumeRoleWit
|
|||
|
||||
const opAssumeRoleWithWebIdentity = "AssumeRoleWithWebIdentity"
|
||||
|
||||
// AssumeRoleWithWebIdentityRequest generates a request for the AssumeRoleWithWebIdentity operation.
|
||||
// AssumeRoleWithWebIdentityRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the AssumeRoleWithWebIdentity operation. The "output" return
|
||||
// value can be used to capture response data after the request's "Send" method
|
||||
// is called.
|
||||
//
|
||||
// Creating a request object using this method should be used when you want to inject
|
||||
// custom logic into the request's lifecycle using a custom handler, or if you want to
|
||||
// access properties on the request object before or after sending the request. If
|
||||
// you just want the service response, call the AssumeRoleWithWebIdentity method directly
|
||||
// instead.
|
||||
//
|
||||
// Note: You must call the "Send" method on the returned request object in order
|
||||
// to execute the request.
|
||||
//
|
||||
// // Example sending a request using the AssumeRoleWithWebIdentityRequest method.
|
||||
// req, resp := client.AssumeRoleWithWebIdentityRequest(params)
|
||||
//
|
||||
// err := req.Send()
|
||||
// if err == nil { // resp is now filled
|
||||
// fmt.Println(resp)
|
||||
// }
|
||||
//
|
||||
func (c *STS) AssumeRoleWithWebIdentityRequest(input *AssumeRoleWithWebIdentityInput) (req *request.Request, output *AssumeRoleWithWebIdentityOutput) {
|
||||
op := &request.Operation{
|
||||
Name: opAssumeRoleWithWebIdentity,
|
||||
|
@ -330,7 +393,28 @@ func (c *STS) AssumeRoleWithWebIdentity(input *AssumeRoleWithWebIdentityInput) (
|
|||
|
||||
const opDecodeAuthorizationMessage = "DecodeAuthorizationMessage"
|
||||
|
||||
// DecodeAuthorizationMessageRequest generates a request for the DecodeAuthorizationMessage operation.
|
||||
// DecodeAuthorizationMessageRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the DecodeAuthorizationMessage operation. The "output" return
|
||||
// value can be used to capture response data after the request's "Send" method
|
||||
// is called.
|
||||
//
|
||||
// Creating a request object using this method should be used when you want to inject
|
||||
// custom logic into the request's lifecycle using a custom handler, or if you want to
|
||||
// access properties on the request object before or after sending the request. If
|
||||
// you just want the service response, call the DecodeAuthorizationMessage method directly
|
||||
// instead.
|
||||
//
|
||||
// Note: You must call the "Send" method on the returned request object in order
|
||||
// to execute the request.
|
||||
//
|
||||
// // Example sending a request using the DecodeAuthorizationMessageRequest method.
|
||||
// req, resp := client.DecodeAuthorizationMessageRequest(params)
|
||||
//
|
||||
// err := req.Send()
|
||||
// if err == nil { // resp is now filled
|
||||
// fmt.Println(resp)
|
||||
// }
|
||||
//
|
||||
func (c *STS) DecodeAuthorizationMessageRequest(input *DecodeAuthorizationMessageInput) (req *request.Request, output *DecodeAuthorizationMessageOutput) {
|
||||
op := &request.Operation{
|
||||
Name: opDecodeAuthorizationMessage,
|
||||
|
@ -388,7 +472,28 @@ func (c *STS) DecodeAuthorizationMessage(input *DecodeAuthorizationMessageInput)
|
|||
|
||||
const opGetCallerIdentity = "GetCallerIdentity"
|
||||
|
||||
// GetCallerIdentityRequest generates a request for the GetCallerIdentity operation.
|
||||
// GetCallerIdentityRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the GetCallerIdentity operation. The "output" return
|
||||
// value can be used to capture response data after the request's "Send" method
|
||||
// is called.
|
||||
//
|
||||
// Creating a request object using this method should be used when you want to inject
|
||||
// custom logic into the request's lifecycle using a custom handler, or if you want to
|
||||
// access properties on the request object before or after sending the request. If
|
||||
// you just want the service response, call the GetCallerIdentity method directly
|
||||
// instead.
|
||||
//
|
||||
// Note: You must call the "Send" method on the returned request object in order
|
||||
// to execute the request.
|
||||
//
|
||||
// // Example sending a request using the GetCallerIdentityRequest method.
|
||||
// req, resp := client.GetCallerIdentityRequest(params)
|
||||
//
|
||||
// err := req.Send()
|
||||
// if err == nil { // resp is now filled
|
||||
// fmt.Println(resp)
|
||||
// }
|
||||
//
|
||||
func (c *STS) GetCallerIdentityRequest(input *GetCallerIdentityInput) (req *request.Request, output *GetCallerIdentityOutput) {
|
||||
op := &request.Operation{
|
||||
Name: opGetCallerIdentity,
|
||||
|
@ -416,7 +521,28 @@ func (c *STS) GetCallerIdentity(input *GetCallerIdentityInput) (*GetCallerIdenti
|
|||
|
||||
const opGetFederationToken = "GetFederationToken"
|
||||
|
||||
// GetFederationTokenRequest generates a request for the GetFederationToken operation.
|
||||
// GetFederationTokenRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the GetFederationToken operation. The "output" return
|
||||
// value can be used to capture response data after the request's "Send" method
|
||||
// is called.
|
||||
//
|
||||
// Creating a request object using this method should be used when you want to inject
|
||||
// custom logic into the request's lifecycle using a custom handler, or if you want to
|
||||
// access properties on the request object before or after sending the request. If
|
||||
// you just want the service response, call the GetFederationToken method directly
|
||||
// instead.
|
||||
//
|
||||
// Note: You must call the "Send" method on the returned request object in order
|
||||
// to execute the request.
|
||||
//
|
||||
// // Example sending a request using the GetFederationTokenRequest method.
|
||||
// req, resp := client.GetFederationTokenRequest(params)
|
||||
//
|
||||
// err := req.Send()
|
||||
// if err == nil { // resp is now filled
|
||||
// fmt.Println(resp)
|
||||
// }
|
||||
//
|
||||
func (c *STS) GetFederationTokenRequest(input *GetFederationTokenInput) (req *request.Request, output *GetFederationTokenOutput) {
|
||||
op := &request.Operation{
|
||||
Name: opGetFederationToken,
|
||||
|
@ -520,7 +646,28 @@ func (c *STS) GetFederationToken(input *GetFederationTokenInput) (*GetFederation
|
|||
|
||||
const opGetSessionToken = "GetSessionToken"
|
||||
|
||||
// GetSessionTokenRequest generates a request for the GetSessionToken operation.
|
||||
// GetSessionTokenRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the GetSessionToken operation. The "output" return
|
||||
// value can be used to capture response data after the request's "Send" method
|
||||
// is called.
|
||||
//
|
||||
// Creating a request object using this method should be used when you want to inject
|
||||
// custom logic into the request's lifecycle using a custom handler, or if you want to
|
||||
// access properties on the request object before or after sending the request. If
|
||||
// you just want the service response, call the GetSessionToken method directly
|
||||
// instead.
|
||||
//
|
||||
// Note: You must call the "Send" method on the returned request object in order
|
||||
// to execute the request.
|
||||
//
|
||||
// // Example sending a request using the GetSessionTokenRequest method.
|
||||
// req, resp := client.GetSessionTokenRequest(params)
|
||||
//
|
||||
// err := req.Send()
|
||||
// if err == nil { // resp is now filled
|
||||
// fmt.Println(resp)
|
||||
// }
|
||||
//
|
||||
func (c *STS) GetSessionTokenRequest(input *GetSessionTokenInput) (req *request.Request, output *GetSessionTokenOutput) {
|
||||
op := &request.Operation{
|
||||
Name: opGetSessionToken,
|
||||
|
|
|
@ -7,8 +7,8 @@ import (
|
|||
"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/query"
|
||||
"github.com/aws/aws-sdk-go/private/signer/v4"
|
||||
)
|
||||
|
||||
// The AWS Security Token Service (STS) is a web service that enables you to
|
||||
|
@ -102,7 +102,7 @@ func newClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegio
|
|||
}
|
||||
|
||||
// Handlers
|
||||
svc.Handlers.Sign.PushBack(v4.Sign)
|
||||
svc.Handlers.Sign.PushBackNamed(v4.SignRequestHandler)
|
||||
svc.Handlers.Build.PushBackNamed(query.BuildHandler)
|
||||
svc.Handlers.Unmarshal.PushBackNamed(query.UnmarshalHandler)
|
||||
svc.Handlers.UnmarshalMeta.PushBackNamed(query.UnmarshalMetaHandler)
|
||||
|
|
|
@ -275,125 +275,183 @@
|
|||
"revision": "4239b77079c7b5d1243b7b4736304ce8ddb6f0f2"
|
||||
},
|
||||
{
|
||||
"checksumSHA1": "zrKMMpGfvfCUU07ydetOaOKum5U=",
|
||||
"comment": "v1.1.23",
|
||||
"path": "github.com/aws/aws-sdk-go/aws",
|
||||
"revision": "2cc71659118a868dc7544a7ef0808eb42d487011"
|
||||
"revision": "3c37d29820480639ff03fd66df00a0f27984f88d",
|
||||
"revisionTime": "2016-07-13T21:13:24Z"
|
||||
},
|
||||
{
|
||||
"checksumSHA1": "AWg3FBA1NTPdIVZipaQf/rGx38o=",
|
||||
"comment": "v1.1.23",
|
||||
"path": "github.com/aws/aws-sdk-go/aws/awserr",
|
||||
"revision": "2cc71659118a868dc7544a7ef0808eb42d487011"
|
||||
"revision": "3c37d29820480639ff03fd66df00a0f27984f88d",
|
||||
"revisionTime": "2016-07-13T21:13:24Z"
|
||||
},
|
||||
{
|
||||
"checksumSHA1": "dkfyy7aRNZ6BmUZ4ZdLIcMMXiPA=",
|
||||
"comment": "v1.1.23",
|
||||
"path": "github.com/aws/aws-sdk-go/aws/awsutil",
|
||||
"revision": "2cc71659118a868dc7544a7ef0808eb42d487011"
|
||||
"revision": "3c37d29820480639ff03fd66df00a0f27984f88d",
|
||||
"revisionTime": "2016-07-13T21:13:24Z"
|
||||
},
|
||||
{
|
||||
"checksumSHA1": "RsYlRfQceaAgqjIrExwNsb/RBEM=",
|
||||
"comment": "v1.1.23",
|
||||
"path": "github.com/aws/aws-sdk-go/aws/client",
|
||||
"revision": "2cc71659118a868dc7544a7ef0808eb42d487011"
|
||||
"revision": "3c37d29820480639ff03fd66df00a0f27984f88d",
|
||||
"revisionTime": "2016-07-13T21:13:24Z"
|
||||
},
|
||||
{
|
||||
"checksumSHA1": "ieAJ+Cvp/PKv1LpUEnUXpc3OI6E=",
|
||||
"comment": "v1.1.23",
|
||||
"path": "github.com/aws/aws-sdk-go/aws/client/metadata",
|
||||
"revision": "2cc71659118a868dc7544a7ef0808eb42d487011"
|
||||
"revision": "3c37d29820480639ff03fd66df00a0f27984f88d",
|
||||
"revisionTime": "2016-07-13T21:13:24Z"
|
||||
},
|
||||
{
|
||||
"checksumSHA1": "gNWirlrTfSLbOe421hISBAhTqa4=",
|
||||
"comment": "v1.1.23",
|
||||
"path": "github.com/aws/aws-sdk-go/aws/corehandlers",
|
||||
"revision": "2cc71659118a868dc7544a7ef0808eb42d487011"
|
||||
"revision": "3c37d29820480639ff03fd66df00a0f27984f88d",
|
||||
"revisionTime": "2016-07-13T21:13:24Z"
|
||||
},
|
||||
{
|
||||
"checksumSHA1": "EiauD48zRlXIFvAENgZ+PXSEnT0=",
|
||||
"comment": "v1.1.23",
|
||||
"path": "github.com/aws/aws-sdk-go/aws/credentials",
|
||||
"revision": "2cc71659118a868dc7544a7ef0808eb42d487011"
|
||||
"revision": "3c37d29820480639ff03fd66df00a0f27984f88d",
|
||||
"revisionTime": "2016-07-13T21:13:24Z"
|
||||
},
|
||||
{
|
||||
"checksumSHA1": "KQiUK/zr3mqnAXD7x/X55/iNme0=",
|
||||
"comment": "v1.1.23",
|
||||
"path": "github.com/aws/aws-sdk-go/aws/credentials/ec2rolecreds",
|
||||
"revision": "2cc71659118a868dc7544a7ef0808eb42d487011"
|
||||
"revision": "3c37d29820480639ff03fd66df00a0f27984f88d",
|
||||
"revisionTime": "2016-07-13T21:13:24Z"
|
||||
},
|
||||
{
|
||||
"checksumSHA1": "NUJUTWlc1sV8b7WjfiYc4JZbXl0=",
|
||||
"path": "github.com/aws/aws-sdk-go/aws/credentials/endpointcreds",
|
||||
"revision": "3c37d29820480639ff03fd66df00a0f27984f88d",
|
||||
"revisionTime": "2016-07-13T21:13:24Z"
|
||||
},
|
||||
{
|
||||
"checksumSHA1": "svFeyM3oQkk0nfQ0pguDjMgV2M4=",
|
||||
"comment": "v1.1.23",
|
||||
"path": "github.com/aws/aws-sdk-go/aws/defaults",
|
||||
"revision": "2cc71659118a868dc7544a7ef0808eb42d487011"
|
||||
"revision": "3c37d29820480639ff03fd66df00a0f27984f88d",
|
||||
"revisionTime": "2016-07-13T21:13:24Z"
|
||||
},
|
||||
{
|
||||
"checksumSHA1": "U0SthWum+t9ACanK7SDJOg3dO6M=",
|
||||
"comment": "v1.1.23",
|
||||
"path": "github.com/aws/aws-sdk-go/aws/ec2metadata",
|
||||
"revision": "2cc71659118a868dc7544a7ef0808eb42d487011"
|
||||
"revision": "3c37d29820480639ff03fd66df00a0f27984f88d",
|
||||
"revisionTime": "2016-07-13T21:13:24Z"
|
||||
},
|
||||
{
|
||||
"checksumSHA1": "NyUg1P8ZS/LHAAQAk/4C5O4X3og=",
|
||||
"comment": "v1.1.23",
|
||||
"path": "github.com/aws/aws-sdk-go/aws/request",
|
||||
"revision": "2cc71659118a868dc7544a7ef0808eb42d487011"
|
||||
"revision": "3c37d29820480639ff03fd66df00a0f27984f88d",
|
||||
"revisionTime": "2016-07-13T21:13:24Z"
|
||||
},
|
||||
{
|
||||
"checksumSHA1": "46SVikiXo5xuy/CS6mM1XVTUU7w=",
|
||||
"comment": "v1.1.23",
|
||||
"path": "github.com/aws/aws-sdk-go/aws/session",
|
||||
"revision": "2cc71659118a868dc7544a7ef0808eb42d487011"
|
||||
"revision": "3c37d29820480639ff03fd66df00a0f27984f88d",
|
||||
"revisionTime": "2016-07-13T21:13:24Z"
|
||||
},
|
||||
{
|
||||
"checksumSHA1": "0HzXzMByDLiJSqrMEqbg5URAx0o=",
|
||||
"path": "github.com/aws/aws-sdk-go/aws/signer/v4",
|
||||
"revision": "3c37d29820480639ff03fd66df00a0f27984f88d",
|
||||
"revisionTime": "2016-07-13T21:13:24Z"
|
||||
},
|
||||
{
|
||||
"checksumSHA1": "sgft7A0lRCVD7QBogydg46lr3NM=",
|
||||
"comment": "v1.1.23",
|
||||
"path": "github.com/aws/aws-sdk-go/private/endpoints",
|
||||
"revision": "2cc71659118a868dc7544a7ef0808eb42d487011"
|
||||
"revision": "3c37d29820480639ff03fd66df00a0f27984f88d",
|
||||
"revisionTime": "2016-07-13T21:13:24Z"
|
||||
},
|
||||
{
|
||||
"checksumSHA1": "wk7EyvDaHwb5qqoOP/4d3cV0708=",
|
||||
"comment": "v1.1.23",
|
||||
"path": "github.com/aws/aws-sdk-go/private/protocol",
|
||||
"revision": "2cc71659118a868dc7544a7ef0808eb42d487011"
|
||||
"revision": "3c37d29820480639ff03fd66df00a0f27984f88d",
|
||||
"revisionTime": "2016-07-13T21:13:24Z"
|
||||
},
|
||||
{
|
||||
"checksumSHA1": "G1he3uSmd1h8ZRnKOIWuDrWp2zQ=",
|
||||
"comment": "v1.1.23",
|
||||
"path": "github.com/aws/aws-sdk-go/private/protocol/ec2query",
|
||||
"revision": "2cc71659118a868dc7544a7ef0808eb42d487011"
|
||||
"revision": "3c37d29820480639ff03fd66df00a0f27984f88d",
|
||||
"revisionTime": "2016-07-13T21:13:24Z"
|
||||
},
|
||||
{
|
||||
"checksumSHA1": "gHqZ41fSrCEUftkImHKGW+cKxFk=",
|
||||
"comment": "v1.1.23",
|
||||
"path": "github.com/aws/aws-sdk-go/private/protocol/json/jsonutil",
|
||||
"revision": "2cc71659118a868dc7544a7ef0808eb42d487011"
|
||||
"revision": "3c37d29820480639ff03fd66df00a0f27984f88d",
|
||||
"revisionTime": "2016-07-13T21:13:24Z"
|
||||
},
|
||||
{
|
||||
"checksumSHA1": "MPzz1x/qt6f2R/JW6aELbm/qT4k=",
|
||||
"comment": "v1.1.23",
|
||||
"path": "github.com/aws/aws-sdk-go/private/protocol/jsonrpc",
|
||||
"revision": "2cc71659118a868dc7544a7ef0808eb42d487011"
|
||||
"revision": "3c37d29820480639ff03fd66df00a0f27984f88d",
|
||||
"revisionTime": "2016-07-13T21:13:24Z"
|
||||
},
|
||||
{
|
||||
"checksumSHA1": "nHHyS4+VgZOV7F3Xu87crArmbds=",
|
||||
"comment": "v1.1.23",
|
||||
"path": "github.com/aws/aws-sdk-go/private/protocol/query",
|
||||
"revision": "2cc71659118a868dc7544a7ef0808eb42d487011"
|
||||
"revision": "3c37d29820480639ff03fd66df00a0f27984f88d",
|
||||
"revisionTime": "2016-07-13T21:13:24Z"
|
||||
},
|
||||
{
|
||||
"checksumSHA1": "5xzix1R8prUyWxgLnzUQoxTsfik=",
|
||||
"comment": "v1.1.23",
|
||||
"path": "github.com/aws/aws-sdk-go/private/protocol/query/queryutil",
|
||||
"revision": "2cc71659118a868dc7544a7ef0808eb42d487011"
|
||||
"revision": "3c37d29820480639ff03fd66df00a0f27984f88d",
|
||||
"revisionTime": "2016-07-13T21:13:24Z"
|
||||
},
|
||||
{
|
||||
"checksumSHA1": "TW/7U+/8ormL7acf6z2rv2hDD+s=",
|
||||
"comment": "v1.1.23",
|
||||
"path": "github.com/aws/aws-sdk-go/private/protocol/rest",
|
||||
"revision": "2cc71659118a868dc7544a7ef0808eb42d487011"
|
||||
"revision": "3c37d29820480639ff03fd66df00a0f27984f88d",
|
||||
"revisionTime": "2016-07-13T21:13:24Z"
|
||||
},
|
||||
{
|
||||
"checksumSHA1": "ayzKZc+f+OrjOtE2bz4+lrlKR7c=",
|
||||
"comment": "v1.1.23",
|
||||
"path": "github.com/aws/aws-sdk-go/private/protocol/restjson",
|
||||
"revision": "2cc71659118a868dc7544a7ef0808eb42d487011"
|
||||
"revision": "3c37d29820480639ff03fd66df00a0f27984f88d",
|
||||
"revisionTime": "2016-07-13T21:13:24Z"
|
||||
},
|
||||
{
|
||||
"checksumSHA1": "ttxyyPnlmMDqX+sY10BwbwwA+jo=",
|
||||
"comment": "v1.1.23",
|
||||
"path": "github.com/aws/aws-sdk-go/private/protocol/restxml",
|
||||
"revision": "2cc71659118a868dc7544a7ef0808eb42d487011"
|
||||
"revision": "3c37d29820480639ff03fd66df00a0f27984f88d",
|
||||
"revisionTime": "2016-07-13T21:13:24Z"
|
||||
},
|
||||
{
|
||||
"checksumSHA1": "LsCIsjbzX2r3n/AhpNJvAC5ueNA=",
|
||||
"comment": "v1.1.23",
|
||||
"path": "github.com/aws/aws-sdk-go/private/protocol/xml/xmlutil",
|
||||
"revision": "2cc71659118a868dc7544a7ef0808eb42d487011"
|
||||
"revision": "3c37d29820480639ff03fd66df00a0f27984f88d",
|
||||
"revisionTime": "2016-07-13T21:13:24Z"
|
||||
},
|
||||
{
|
||||
"checksumSHA1": "F6mth+G7dXN1GI+nktaGo8Lx8aE=",
|
||||
"path": "github.com/aws/aws-sdk-go/private/signer/v2",
|
||||
"revision": "333fcdc9874ea63fbdb3176e12ffa04b5ec44f5a",
|
||||
"revisionTime": "2016-07-05T22:03:21Z"
|
||||
"revision": "3c37d29820480639ff03fd66df00a0f27984f88d",
|
||||
"revisionTime": "2016-07-13T21:13:24Z"
|
||||
},
|
||||
{
|
||||
"comment": "v1.1.23",
|
||||
|
@ -401,196 +459,274 @@
|
|||
"revision": "2cc71659118a868dc7544a7ef0808eb42d487011"
|
||||
},
|
||||
{
|
||||
"checksumSHA1": "Eo9yODN5U99BK0pMzoqnBm7PCrY=",
|
||||
"comment": "v1.1.23",
|
||||
"path": "github.com/aws/aws-sdk-go/private/waiter",
|
||||
"revision": "2cc71659118a868dc7544a7ef0808eb42d487011"
|
||||
"revision": "3c37d29820480639ff03fd66df00a0f27984f88d",
|
||||
"revisionTime": "2016-07-13T21:13:24Z"
|
||||
},
|
||||
{
|
||||
"checksumSHA1": "lD48Br3S98XvKfKID0QiTbBgC1M=",
|
||||
"comment": "v1.1.23",
|
||||
"path": "github.com/aws/aws-sdk-go/service/apigateway",
|
||||
"revision": "2cc71659118a868dc7544a7ef0808eb42d487011"
|
||||
"revision": "3c37d29820480639ff03fd66df00a0f27984f88d",
|
||||
"revisionTime": "2016-07-13T21:13:24Z"
|
||||
},
|
||||
{
|
||||
"checksumSHA1": "AUA6op9dlm0X4vv1YPFnIFs6404=",
|
||||
"comment": "v1.1.23",
|
||||
"path": "github.com/aws/aws-sdk-go/service/autoscaling",
|
||||
"revision": "2cc71659118a868dc7544a7ef0808eb42d487011"
|
||||
"revision": "3c37d29820480639ff03fd66df00a0f27984f88d",
|
||||
"revisionTime": "2016-07-13T21:13:24Z"
|
||||
},
|
||||
{
|
||||
"checksumSHA1": "HMNQSV7Om3yvNiougcTrfZVJFbE=",
|
||||
"comment": "v1.1.23",
|
||||
"path": "github.com/aws/aws-sdk-go/service/cloudformation",
|
||||
"revision": "2cc71659118a868dc7544a7ef0808eb42d487011"
|
||||
"revision": "3c37d29820480639ff03fd66df00a0f27984f88d",
|
||||
"revisionTime": "2016-07-13T21:13:24Z"
|
||||
},
|
||||
{
|
||||
"checksumSHA1": "4deSd9La3EF2Cmq+tD5rcvhfTGQ=",
|
||||
"comment": "v1.1.23",
|
||||
"path": "github.com/aws/aws-sdk-go/service/cloudfront",
|
||||
"revision": "2cc71659118a868dc7544a7ef0808eb42d487011"
|
||||
"revision": "3c37d29820480639ff03fd66df00a0f27984f88d",
|
||||
"revisionTime": "2016-07-13T21:13:24Z"
|
||||
},
|
||||
{
|
||||
"checksumSHA1": "eCFTaV9GKqv/UEzwRgFFUaFz098=",
|
||||
"comment": "v1.1.23",
|
||||
"path": "github.com/aws/aws-sdk-go/service/cloudtrail",
|
||||
"revision": "2cc71659118a868dc7544a7ef0808eb42d487011"
|
||||
"revision": "3c37d29820480639ff03fd66df00a0f27984f88d",
|
||||
"revisionTime": "2016-07-13T21:13:24Z"
|
||||
},
|
||||
{
|
||||
"checksumSHA1": "b9W5mR0lazSwYV6Pl8HNslokIpo=",
|
||||
"comment": "v1.1.23",
|
||||
"path": "github.com/aws/aws-sdk-go/service/cloudwatch",
|
||||
"revision": "2cc71659118a868dc7544a7ef0808eb42d487011"
|
||||
"revision": "3c37d29820480639ff03fd66df00a0f27984f88d",
|
||||
"revisionTime": "2016-07-13T21:13:24Z"
|
||||
},
|
||||
{
|
||||
"checksumSHA1": "mWNJKpt18ASs9/RhnIjILcsGlng=",
|
||||
"comment": "v1.1.23",
|
||||
"path": "github.com/aws/aws-sdk-go/service/cloudwatchevents",
|
||||
"revision": "2cc71659118a868dc7544a7ef0808eb42d487011"
|
||||
"revision": "3c37d29820480639ff03fd66df00a0f27984f88d",
|
||||
"revisionTime": "2016-07-13T21:13:24Z"
|
||||
},
|
||||
{
|
||||
"checksumSHA1": "Q6xeArbCzOunYsn2tFyTA5LN1Cg=",
|
||||
"comment": "v1.1.23",
|
||||
"path": "github.com/aws/aws-sdk-go/service/cloudwatchlogs",
|
||||
"revision": "2cc71659118a868dc7544a7ef0808eb42d487011"
|
||||
"revision": "3c37d29820480639ff03fd66df00a0f27984f88d",
|
||||
"revisionTime": "2016-07-13T21:13:24Z"
|
||||
},
|
||||
{
|
||||
"checksumSHA1": "p5a/DcdUvhTx0PCRR+/CRXk9g6c=",
|
||||
"comment": "v1.1.23",
|
||||
"path": "github.com/aws/aws-sdk-go/service/codecommit",
|
||||
"revision": "2cc71659118a868dc7544a7ef0808eb42d487011"
|
||||
"revision": "3c37d29820480639ff03fd66df00a0f27984f88d",
|
||||
"revisionTime": "2016-07-13T21:13:24Z"
|
||||
},
|
||||
{
|
||||
"checksumSHA1": "p9BTPHO+J8OdzK2btdcGGAaTmhk=",
|
||||
"comment": "v1.1.23",
|
||||
"path": "github.com/aws/aws-sdk-go/service/codedeploy",
|
||||
"revision": "2cc71659118a868dc7544a7ef0808eb42d487011"
|
||||
"revision": "3c37d29820480639ff03fd66df00a0f27984f88d",
|
||||
"revisionTime": "2016-07-13T21:13:24Z"
|
||||
},
|
||||
{
|
||||
"checksumSHA1": "t1fZO+x4OG6e7T8HIi2Yr2wR9D4=",
|
||||
"comment": "v1.1.23",
|
||||
"path": "github.com/aws/aws-sdk-go/service/directoryservice",
|
||||
"revision": "2cc71659118a868dc7544a7ef0808eb42d487011"
|
||||
"revision": "3c37d29820480639ff03fd66df00a0f27984f88d",
|
||||
"revisionTime": "2016-07-13T21:13:24Z"
|
||||
},
|
||||
{
|
||||
"checksumSHA1": "y+pZPK8hcTDwq1zHuRduWE14flw=",
|
||||
"comment": "v1.1.23",
|
||||
"path": "github.com/aws/aws-sdk-go/service/dynamodb",
|
||||
"revision": "2cc71659118a868dc7544a7ef0808eb42d487011"
|
||||
"revision": "3c37d29820480639ff03fd66df00a0f27984f88d",
|
||||
"revisionTime": "2016-07-13T21:13:24Z"
|
||||
},
|
||||
{
|
||||
"checksumSHA1": "gqlYKqMKCuQ3fzNTyDw6jiG1sCs=",
|
||||
"comment": "v1.1.23",
|
||||
"path": "github.com/aws/aws-sdk-go/service/ec2",
|
||||
"revision": "2cc71659118a868dc7544a7ef0808eb42d487011"
|
||||
"revision": "3c37d29820480639ff03fd66df00a0f27984f88d",
|
||||
"revisionTime": "2016-07-13T21:13:24Z"
|
||||
},
|
||||
{
|
||||
"checksumSHA1": "IEHq+VLH1fud1oQ4MXj1nqfpgUY=",
|
||||
"comment": "v1.1.23",
|
||||
"path": "github.com/aws/aws-sdk-go/service/ecr",
|
||||
"revision": "2cc71659118a868dc7544a7ef0808eb42d487011"
|
||||
"revision": "3c37d29820480639ff03fd66df00a0f27984f88d",
|
||||
"revisionTime": "2016-07-13T21:13:24Z"
|
||||
},
|
||||
{
|
||||
"checksumSHA1": "sHPoLMWXO5tM63ipuxVXduuRypI=",
|
||||
"comment": "v1.1.23",
|
||||
"path": "github.com/aws/aws-sdk-go/service/ecs",
|
||||
"revision": "2cc71659118a868dc7544a7ef0808eb42d487011"
|
||||
"revision": "3c37d29820480639ff03fd66df00a0f27984f88d",
|
||||
"revisionTime": "2016-07-13T21:13:24Z"
|
||||
},
|
||||
{
|
||||
"checksumSHA1": "1vOgFGxLhjNe6BK3RJaV1OqisCs=",
|
||||
"comment": "v1.1.23",
|
||||
"path": "github.com/aws/aws-sdk-go/service/efs",
|
||||
"revision": "2cc71659118a868dc7544a7ef0808eb42d487011"
|
||||
"revision": "3c37d29820480639ff03fd66df00a0f27984f88d",
|
||||
"revisionTime": "2016-07-13T21:13:24Z"
|
||||
},
|
||||
{
|
||||
"checksumSHA1": "rjSScNzMTvEHv7Lk5KcxDpNU5EE=",
|
||||
"comment": "v1.1.23",
|
||||
"path": "github.com/aws/aws-sdk-go/service/elasticache",
|
||||
"revision": "2cc71659118a868dc7544a7ef0808eb42d487011"
|
||||
"revision": "3c37d29820480639ff03fd66df00a0f27984f88d",
|
||||
"revisionTime": "2016-07-13T21:13:24Z"
|
||||
},
|
||||
{
|
||||
"checksumSHA1": "RZF1yHtJhAqaMwbeAM/6BdLLavk=",
|
||||
"comment": "v1.1.23",
|
||||
"path": "github.com/aws/aws-sdk-go/service/elasticbeanstalk",
|
||||
"revision": "2cc71659118a868dc7544a7ef0808eb42d487011"
|
||||
"revision": "3c37d29820480639ff03fd66df00a0f27984f88d",
|
||||
"revisionTime": "2016-07-13T21:13:24Z"
|
||||
},
|
||||
{
|
||||
"checksumSHA1": "TAuizMIsvgeuZhmGTYPA7LOXHvY=",
|
||||
"comment": "v1.1.23",
|
||||
"path": "github.com/aws/aws-sdk-go/service/elasticsearchservice",
|
||||
"revision": "2cc71659118a868dc7544a7ef0808eb42d487011"
|
||||
"revision": "3c37d29820480639ff03fd66df00a0f27984f88d",
|
||||
"revisionTime": "2016-07-13T21:13:24Z"
|
||||
},
|
||||
{
|
||||
"checksumSHA1": "hvaMQ+Wb+SWjYhT6gSAx6DCks2Y=",
|
||||
"checksumSHA1": "B/g+Usd8rImjgUpVPLyNTL0LaUQ=",
|
||||
"path": "github.com/aws/aws-sdk-go/service/elastictranscoder",
|
||||
"revision": "2cc71659118a868dc7544a7ef0808eb42d487011",
|
||||
"revisionTime": "2016-05-03T21:45:29Z"
|
||||
"revision": "3c37d29820480639ff03fd66df00a0f27984f88d",
|
||||
"revisionTime": "2016-07-13T21:13:24Z"
|
||||
},
|
||||
{
|
||||
"checksumSHA1": "1c9xsISLQWKSrORIpdokCCWCe2M=",
|
||||
"comment": "v1.1.23",
|
||||
"path": "github.com/aws/aws-sdk-go/service/elb",
|
||||
"revision": "2cc71659118a868dc7544a7ef0808eb42d487011"
|
||||
"revision": "3c37d29820480639ff03fd66df00a0f27984f88d",
|
||||
"revisionTime": "2016-07-13T21:13:24Z"
|
||||
},
|
||||
{
|
||||
"checksumSHA1": "bvVmHWxCOk0Cmw333zQ5jutPCZQ=",
|
||||
"comment": "v1.1.15",
|
||||
"path": "github.com/aws/aws-sdk-go/service/emr",
|
||||
"revision": "2cc71659118a868dc7544a7ef0808eb42d487011"
|
||||
"revision": "3c37d29820480639ff03fd66df00a0f27984f88d",
|
||||
"revisionTime": "2016-07-13T21:13:24Z"
|
||||
},
|
||||
{
|
||||
"checksumSHA1": "TtIAgZ+evpkKB5bBYCB69k0wZoU=",
|
||||
"comment": "v1.1.23",
|
||||
"path": "github.com/aws/aws-sdk-go/service/firehose",
|
||||
"revision": "2cc71659118a868dc7544a7ef0808eb42d487011"
|
||||
"revision": "3c37d29820480639ff03fd66df00a0f27984f88d",
|
||||
"revisionTime": "2016-07-13T21:13:24Z"
|
||||
},
|
||||
{
|
||||
"checksumSHA1": "B1EtgBrv//gYqA+Sp6a/SK2zLO4=",
|
||||
"comment": "v1.1.23",
|
||||
"path": "github.com/aws/aws-sdk-go/service/glacier",
|
||||
"revision": "2cc71659118a868dc7544a7ef0808eb42d487011"
|
||||
"revision": "3c37d29820480639ff03fd66df00a0f27984f88d",
|
||||
"revisionTime": "2016-07-13T21:13:24Z"
|
||||
},
|
||||
{
|
||||
"checksumSHA1": "kXJ9ycLAIj0PFSFbfrA/LR/hIi8=",
|
||||
"comment": "v1.1.23",
|
||||
"path": "github.com/aws/aws-sdk-go/service/iam",
|
||||
"revision": "2cc71659118a868dc7544a7ef0808eb42d487011"
|
||||
"revision": "3c37d29820480639ff03fd66df00a0f27984f88d",
|
||||
"revisionTime": "2016-07-13T21:13:24Z"
|
||||
},
|
||||
{
|
||||
"checksumSHA1": "2n5/m0ClE4OyQRNdjfLwg+nSY3o=",
|
||||
"comment": "v1.1.23",
|
||||
"path": "github.com/aws/aws-sdk-go/service/kinesis",
|
||||
"revision": "2cc71659118a868dc7544a7ef0808eb42d487011"
|
||||
"revision": "3c37d29820480639ff03fd66df00a0f27984f88d",
|
||||
"revisionTime": "2016-07-13T21:13:24Z"
|
||||
},
|
||||
{
|
||||
"checksumSHA1": "/cFX1/Gr6M+r9232gLIV+4np7Po=",
|
||||
"comment": "v1.1.23",
|
||||
"path": "github.com/aws/aws-sdk-go/service/kms",
|
||||
"revision": "2cc71659118a868dc7544a7ef0808eb42d487011"
|
||||
"revision": "3c37d29820480639ff03fd66df00a0f27984f88d",
|
||||
"revisionTime": "2016-07-13T21:13:24Z"
|
||||
},
|
||||
{
|
||||
"checksumSHA1": "jM0EhAIybh0fyLHxrmVSmG3JLmU=",
|
||||
"comment": "v1.1.23",
|
||||
"path": "github.com/aws/aws-sdk-go/service/lambda",
|
||||
"revision": "2cc71659118a868dc7544a7ef0808eb42d487011"
|
||||
"revision": "3c37d29820480639ff03fd66df00a0f27984f88d",
|
||||
"revisionTime": "2016-07-13T21:13:24Z"
|
||||
},
|
||||
{
|
||||
"checksumSHA1": "aLwDFgrPzIBidURxso1ujcr2pDs=",
|
||||
"comment": "v1.1.23",
|
||||
"path": "github.com/aws/aws-sdk-go/service/opsworks",
|
||||
"revision": "2cc71659118a868dc7544a7ef0808eb42d487011"
|
||||
"revision": "3c37d29820480639ff03fd66df00a0f27984f88d",
|
||||
"revisionTime": "2016-07-13T21:13:24Z"
|
||||
},
|
||||
{
|
||||
"checksumSHA1": "w0aQAtZ42oGeVOqwwG15OBGoU1s=",
|
||||
"comment": "v1.1.23",
|
||||
"path": "github.com/aws/aws-sdk-go/service/rds",
|
||||
"revision": "2cc71659118a868dc7544a7ef0808eb42d487011"
|
||||
"revision": "3c37d29820480639ff03fd66df00a0f27984f88d",
|
||||
"revisionTime": "2016-07-13T21:13:24Z"
|
||||
},
|
||||
{
|
||||
"checksumSHA1": "mgImZ/bluUOY9GpQ/oAnscIXwrA=",
|
||||
"comment": "v1.1.23",
|
||||
"path": "github.com/aws/aws-sdk-go/service/redshift",
|
||||
"revision": "2cc71659118a868dc7544a7ef0808eb42d487011"
|
||||
"revision": "3c37d29820480639ff03fd66df00a0f27984f88d",
|
||||
"revisionTime": "2016-07-13T21:13:24Z"
|
||||
},
|
||||
{
|
||||
"checksumSHA1": "6ejP+X+O9e6y40GICj9Vcn1MuBY=",
|
||||
"comment": "v1.1.23",
|
||||
"path": "github.com/aws/aws-sdk-go/service/route53",
|
||||
"revision": "2cc71659118a868dc7544a7ef0808eb42d487011"
|
||||
"revision": "3c37d29820480639ff03fd66df00a0f27984f88d",
|
||||
"revisionTime": "2016-07-13T21:13:24Z"
|
||||
},
|
||||
{
|
||||
"checksumSHA1": "68YN+UopWOSISIcQQ6zSVbyaDzQ=",
|
||||
"comment": "v1.1.23",
|
||||
"path": "github.com/aws/aws-sdk-go/service/s3",
|
||||
"revision": "2cc71659118a868dc7544a7ef0808eb42d487011"
|
||||
"revision": "3c37d29820480639ff03fd66df00a0f27984f88d",
|
||||
"revisionTime": "2016-07-13T21:13:24Z"
|
||||
},
|
||||
{
|
||||
"checksumSHA1": "X9g/Vdq939ijN2gcumwOyYfHM2U=",
|
||||
"path": "github.com/aws/aws-sdk-go/service/ses",
|
||||
"revision": "3c37d29820480639ff03fd66df00a0f27984f88d",
|
||||
"revisionTime": "2016-07-13T21:13:24Z"
|
||||
},
|
||||
{
|
||||
"checksumSHA1": "DW5kDRWLA2yAgYh9vsI+0uVqq/Q=",
|
||||
"path": "github.com/aws/aws-sdk-go/service/simpledb",
|
||||
"revision": "333fcdc9874ea63fbdb3176e12ffa04b5ec44f5a",
|
||||
"revisionTime": "2016-07-05T22:03:21Z"
|
||||
"revision": "3c37d29820480639ff03fd66df00a0f27984f88d",
|
||||
"revisionTime": "2016-07-13T21:13:24Z"
|
||||
},
|
||||
{
|
||||
"checksumSHA1": "+ic7vevBfganFLENR29pJaEf4Tw=",
|
||||
"comment": "v1.1.23",
|
||||
"path": "github.com/aws/aws-sdk-go/service/sns",
|
||||
"revision": "2cc71659118a868dc7544a7ef0808eb42d487011"
|
||||
"revision": "3c37d29820480639ff03fd66df00a0f27984f88d",
|
||||
"revisionTime": "2016-07-13T21:13:24Z"
|
||||
},
|
||||
{
|
||||
"checksumSHA1": "oLAlquYlQzgYFS9ochS/iQ9+uXY=",
|
||||
"comment": "v1.1.23",
|
||||
"path": "github.com/aws/aws-sdk-go/service/sqs",
|
||||
"revision": "2cc71659118a868dc7544a7ef0808eb42d487011"
|
||||
"revision": "3c37d29820480639ff03fd66df00a0f27984f88d",
|
||||
"revisionTime": "2016-07-13T21:13:24Z"
|
||||
},
|
||||
{
|
||||
"checksumSHA1": "6a2WM0r/rXUxFjxH73jYL88LBSw=",
|
||||
"comment": "v1.1.23",
|
||||
"path": "github.com/aws/aws-sdk-go/service/sts",
|
||||
"revision": "2cc71659118a868dc7544a7ef0808eb42d487011"
|
||||
"revision": "3c37d29820480639ff03fd66df00a0f27984f88d",
|
||||
"revisionTime": "2016-07-13T21:13:24Z"
|
||||
},
|
||||
{
|
||||
"path": "github.com/bgentry/speakeasy",
|
||||
|
|
Loading…
Reference in New Issue