backend/s3: allow named credentials profiles to be used

Here we upgrade the AWS Go SDK to 1.12.27 and AWS provider to include terraform-providers/terraform-provider-aws#1608. 

This includes the capability to use named credentials profiles from the `~/.aws/credentials` file to authenticate to the backend.
This commit is contained in:
Gauthier Wallet 2017-12-13 00:27:05 +01:00 committed by Martin Atkins
parent 0186db7962
commit 474c592569
270 changed files with 69400 additions and 4649 deletions

View File

@ -2,6 +2,7 @@ package client
import ( import (
"math/rand" "math/rand"
"strconv"
"sync" "sync"
"time" "time"
@ -38,6 +39,10 @@ func (d DefaultRetryer) RetryRules(r *request.Request) time.Duration {
minTime := 30 minTime := 30
throttle := d.shouldThrottle(r) throttle := d.shouldThrottle(r)
if throttle { if throttle {
if delay, ok := getRetryDelay(r); ok {
return delay
}
minTime = 500 minTime = 500
} }
@ -68,12 +73,49 @@ func (d DefaultRetryer) ShouldRetry(r *request.Request) bool {
// ShouldThrottle returns true if the request should be throttled. // ShouldThrottle returns true if the request should be throttled.
func (d DefaultRetryer) shouldThrottle(r *request.Request) bool { func (d DefaultRetryer) shouldThrottle(r *request.Request) bool {
if r.HTTPResponse.StatusCode == 502 || switch r.HTTPResponse.StatusCode {
r.HTTPResponse.StatusCode == 503 || case 429:
r.HTTPResponse.StatusCode == 504 { case 502:
return true case 503:
case 504:
default:
return r.IsErrorThrottle()
} }
return r.IsErrorThrottle()
return true
}
// This will look in the Retry-After header, RFC 7231, for how long
// it will wait before attempting another request
func getRetryDelay(r *request.Request) (time.Duration, bool) {
if !canUseRetryAfterHeader(r) {
return 0, false
}
delayStr := r.HTTPResponse.Header.Get("Retry-After")
if len(delayStr) == 0 {
return 0, false
}
delay, err := strconv.Atoi(delayStr)
if err != nil {
return 0, false
}
return time.Duration(delay) * time.Second, true
}
// Will look at the status code to see if the retry header pertains to
// the status code.
func canUseRetryAfterHeader(r *request.Request) bool {
switch r.HTTPResponse.StatusCode {
case 429:
case 503:
default:
return false
}
return true
} }
// lockedSource is a thread-safe implementation of rand.Source // lockedSource is a thread-safe implementation of rand.Source

View File

@ -44,6 +44,7 @@ const (
// Service identifiers // Service identifiers
const ( const (
AcmServiceID = "acm" // Acm. AcmServiceID = "acm" // Acm.
ApiPricingServiceID = "api.pricing" // ApiPricing.
ApigatewayServiceID = "apigateway" // Apigateway. ApigatewayServiceID = "apigateway" // Apigateway.
ApplicationAutoscalingServiceID = "application-autoscaling" // ApplicationAutoscaling. ApplicationAutoscalingServiceID = "application-autoscaling" // ApplicationAutoscaling.
Appstream2ServiceID = "appstream2" // Appstream2. Appstream2ServiceID = "appstream2" // Appstream2.
@ -256,6 +257,17 @@ var awsPartition = partition{
"us-west-2": endpoint{}, "us-west-2": endpoint{},
}, },
}, },
"api.pricing": service{
Defaults: endpoint{
CredentialScope: credentialScope{
Service: "pricing",
},
},
Endpoints: endpoints{
"ap-south-1": endpoint{},
"us-east-1": endpoint{},
},
},
"apigateway": service{ "apigateway": service{
Endpoints: endpoints{ Endpoints: endpoints{
@ -319,6 +331,8 @@ var awsPartition = partition{
Endpoints: endpoints{ Endpoints: endpoints{
"ap-northeast-1": endpoint{}, "ap-northeast-1": endpoint{},
"ap-southeast-1": endpoint{}, "ap-southeast-1": endpoint{},
"ap-southeast-2": endpoint{},
"eu-central-1": endpoint{},
"eu-west-1": endpoint{}, "eu-west-1": endpoint{},
"us-east-1": endpoint{}, "us-east-1": endpoint{},
"us-east-2": endpoint{}, "us-east-2": endpoint{},
@ -436,10 +450,17 @@ var awsPartition = partition{
"cloudhsmv2": service{ "cloudhsmv2": service{
Endpoints: endpoints{ Endpoints: endpoints{
"eu-west-1": endpoint{}, "ap-northeast-1": endpoint{},
"us-east-1": endpoint{}, "ap-south-1": endpoint{},
"us-east-2": endpoint{}, "ap-southeast-1": endpoint{},
"us-west-2": endpoint{}, "ap-southeast-2": endpoint{},
"ca-central-1": endpoint{},
"eu-central-1": endpoint{},
"eu-west-1": endpoint{},
"us-east-1": endpoint{},
"us-east-2": endpoint{},
"us-west-1": endpoint{},
"us-west-2": endpoint{},
}, },
}, },
"cloudsearch": service{ "cloudsearch": service{
@ -710,6 +731,7 @@ var awsPartition = partition{
"sa-east-1": endpoint{}, "sa-east-1": endpoint{},
"us-east-1": endpoint{}, "us-east-1": endpoint{},
"us-east-2": endpoint{}, "us-east-2": endpoint{},
"us-west-1": endpoint{},
"us-west-2": endpoint{}, "us-west-2": endpoint{},
}, },
}, },
@ -777,6 +799,7 @@ var awsPartition = partition{
Endpoints: endpoints{ Endpoints: endpoints{
"ap-northeast-1": endpoint{}, "ap-northeast-1": endpoint{},
"ap-northeast-2": endpoint{},
"ap-southeast-1": endpoint{}, "ap-southeast-1": endpoint{},
"ap-southeast-2": endpoint{}, "ap-southeast-2": endpoint{},
"ca-central-1": endpoint{}, "ca-central-1": endpoint{},
@ -793,6 +816,7 @@ var awsPartition = partition{
Endpoints: endpoints{ Endpoints: endpoints{
"ap-northeast-1": endpoint{}, "ap-northeast-1": endpoint{},
"ap-northeast-2": endpoint{},
"ap-southeast-1": endpoint{}, "ap-southeast-1": endpoint{},
"ap-southeast-2": endpoint{}, "ap-southeast-2": endpoint{},
"ca-central-1": endpoint{}, "ca-central-1": endpoint{},
@ -856,7 +880,7 @@ var awsPartition = partition{
}, },
"elasticloadbalancing": service{ "elasticloadbalancing": service{
Defaults: endpoint{ Defaults: endpoint{
Protocols: []string{"http", "https"}, Protocols: []string{"https"},
}, },
Endpoints: endpoints{ Endpoints: endpoints{
"ap-northeast-1": endpoint{}, "ap-northeast-1": endpoint{},
@ -973,9 +997,12 @@ var awsPartition = partition{
"firehose": service{ "firehose": service{
Endpoints: endpoints{ Endpoints: endpoints{
"eu-west-1": endpoint{}, "ap-northeast-1": endpoint{},
"us-east-1": endpoint{}, "eu-central-1": endpoint{},
"us-west-2": endpoint{}, "eu-west-1": endpoint{},
"us-east-1": endpoint{},
"us-east-2": endpoint{},
"us-west-2": endpoint{},
}, },
}, },
"gamelift": service{ "gamelift": service{
@ -1005,6 +1032,7 @@ var awsPartition = partition{
"ap-northeast-1": endpoint{}, "ap-northeast-1": endpoint{},
"ap-northeast-2": endpoint{}, "ap-northeast-2": endpoint{},
"ap-south-1": endpoint{}, "ap-south-1": endpoint{},
"ap-southeast-1": endpoint{},
"ap-southeast-2": endpoint{}, "ap-southeast-2": endpoint{},
"ca-central-1": endpoint{}, "ca-central-1": endpoint{},
"eu-central-1": endpoint{}, "eu-central-1": endpoint{},
@ -1020,6 +1048,8 @@ var awsPartition = partition{
Endpoints: endpoints{ Endpoints: endpoints{
"us-east-1": endpoint{}, "us-east-1": endpoint{},
"us-east-2": endpoint{},
"us-west-2": endpoint{},
}, },
}, },
"greengrass": service{ "greengrass": service{
@ -1028,6 +1058,7 @@ var awsPartition = partition{
Protocols: []string{"https"}, Protocols: []string{"https"},
}, },
Endpoints: endpoints{ Endpoints: endpoints{
"ap-northeast-1": endpoint{},
"ap-southeast-2": endpoint{}, "ap-southeast-2": endpoint{},
"eu-central-1": endpoint{}, "eu-central-1": endpoint{},
"us-east-1": endpoint{}, "us-east-1": endpoint{},
@ -1340,10 +1371,11 @@ var awsPartition = partition{
"polly": service{ "polly": service{
Endpoints: endpoints{ Endpoints: endpoints{
"eu-west-1": endpoint{}, "ap-northeast-1": endpoint{},
"us-east-1": endpoint{}, "eu-west-1": endpoint{},
"us-east-2": endpoint{}, "us-east-1": endpoint{},
"us-west-2": endpoint{}, "us-east-2": endpoint{},
"us-west-2": endpoint{},
}, },
}, },
"rds": service{ "rds": service{
@ -1435,23 +1467,23 @@ var awsPartition = partition{
}, },
Endpoints: endpoints{ Endpoints: endpoints{
"ap-northeast-1": endpoint{ "ap-northeast-1": endpoint{
Hostname: "s3-ap-northeast-1.amazonaws.com", Hostname: "s3.ap-northeast-1.amazonaws.com",
SignatureVersions: []string{"s3", "s3v4"}, SignatureVersions: []string{"s3", "s3v4"},
}, },
"ap-northeast-2": endpoint{}, "ap-northeast-2": endpoint{},
"ap-south-1": endpoint{}, "ap-south-1": endpoint{},
"ap-southeast-1": endpoint{ "ap-southeast-1": endpoint{
Hostname: "s3-ap-southeast-1.amazonaws.com", Hostname: "s3.ap-southeast-1.amazonaws.com",
SignatureVersions: []string{"s3", "s3v4"}, SignatureVersions: []string{"s3", "s3v4"},
}, },
"ap-southeast-2": endpoint{ "ap-southeast-2": endpoint{
Hostname: "s3-ap-southeast-2.amazonaws.com", Hostname: "s3.ap-southeast-2.amazonaws.com",
SignatureVersions: []string{"s3", "s3v4"}, SignatureVersions: []string{"s3", "s3v4"},
}, },
"ca-central-1": endpoint{}, "ca-central-1": endpoint{},
"eu-central-1": endpoint{}, "eu-central-1": endpoint{},
"eu-west-1": endpoint{ "eu-west-1": endpoint{
Hostname: "s3-eu-west-1.amazonaws.com", Hostname: "s3.eu-west-1.amazonaws.com",
SignatureVersions: []string{"s3", "s3v4"}, SignatureVersions: []string{"s3", "s3v4"},
}, },
"eu-west-2": endpoint{}, "eu-west-2": endpoint{},
@ -1463,7 +1495,7 @@ var awsPartition = partition{
}, },
}, },
"sa-east-1": endpoint{ "sa-east-1": endpoint{
Hostname: "s3-sa-east-1.amazonaws.com", Hostname: "s3.sa-east-1.amazonaws.com",
SignatureVersions: []string{"s3", "s3v4"}, SignatureVersions: []string{"s3", "s3v4"},
}, },
"us-east-1": endpoint{ "us-east-1": endpoint{
@ -1472,11 +1504,11 @@ var awsPartition = partition{
}, },
"us-east-2": endpoint{}, "us-east-2": endpoint{},
"us-west-1": endpoint{ "us-west-1": endpoint{
Hostname: "s3-us-west-1.amazonaws.com", Hostname: "s3.us-west-1.amazonaws.com",
SignatureVersions: []string{"s3", "s3v4"}, SignatureVersions: []string{"s3", "s3v4"},
}, },
"us-west-2": endpoint{ "us-west-2": endpoint{
Hostname: "s3-us-west-2.amazonaws.com", Hostname: "s3.us-west-2.amazonaws.com",
SignatureVersions: []string{"s3", "s3v4"}, SignatureVersions: []string{"s3", "s3v4"},
}, },
}, },
@ -1504,14 +1536,17 @@ var awsPartition = partition{
Endpoints: endpoints{ Endpoints: endpoints{
"ap-northeast-1": endpoint{}, "ap-northeast-1": endpoint{},
"ap-northeast-2": endpoint{}, "ap-northeast-2": endpoint{},
"ap-south-1": endpoint{},
"ap-southeast-1": endpoint{}, "ap-southeast-1": endpoint{},
"ap-southeast-2": endpoint{}, "ap-southeast-2": endpoint{},
"ca-central-1": endpoint{}, "ca-central-1": endpoint{},
"eu-central-1": endpoint{}, "eu-central-1": endpoint{},
"eu-west-1": endpoint{}, "eu-west-1": endpoint{},
"eu-west-2": endpoint{}, "eu-west-2": endpoint{},
"sa-east-1": endpoint{},
"us-east-1": endpoint{}, "us-east-1": endpoint{},
"us-east-2": endpoint{}, "us-east-2": endpoint{},
"us-west-1": endpoint{},
"us-west-2": endpoint{}, "us-west-2": endpoint{},
}, },
}, },
@ -1542,6 +1577,7 @@ var awsPartition = partition{
"snowball": service{ "snowball": service{
Endpoints: endpoints{ Endpoints: endpoints{
"ap-northeast-1": endpoint{},
"ap-south-1": endpoint{}, "ap-south-1": endpoint{},
"ap-southeast-2": endpoint{}, "ap-southeast-2": endpoint{},
"eu-central-1": endpoint{}, "eu-central-1": endpoint{},
@ -1822,6 +1858,7 @@ var awsPartition = partition{
"ap-southeast-2": endpoint{}, "ap-southeast-2": endpoint{},
"eu-central-1": endpoint{}, "eu-central-1": endpoint{},
"eu-west-1": endpoint{}, "eu-west-1": endpoint{},
"eu-west-2": endpoint{},
"us-east-1": endpoint{}, "us-east-1": endpoint{},
"us-west-2": endpoint{}, "us-west-2": endpoint{},
}, },
@ -1874,6 +1911,12 @@ var awscnPartition = partition{
}, },
}, },
Services: services{ Services: services{
"apigateway": service{
Endpoints: endpoints{
"cn-north-1": endpoint{},
},
},
"application-autoscaling": service{ "application-autoscaling": service{
Defaults: endpoint{ Defaults: endpoint{
Hostname: "autoscaling.{region}.amazonaws.com", Hostname: "autoscaling.{region}.amazonaws.com",
@ -1912,6 +1955,12 @@ var awscnPartition = partition{
"cn-north-1": endpoint{}, "cn-north-1": endpoint{},
}, },
}, },
"cognito-identity": service{
Endpoints: endpoints{
"cn-north-1": endpoint{},
},
},
"config": service{ "config": service{
Endpoints: endpoints{ Endpoints: endpoints{
@ -1977,7 +2026,7 @@ var awscnPartition = partition{
}, },
"elasticloadbalancing": service{ "elasticloadbalancing": service{
Defaults: endpoint{ Defaults: endpoint{
Protocols: []string{"http", "https"}, Protocols: []string{"https"},
}, },
Endpoints: endpoints{ Endpoints: endpoints{
"cn-north-1": endpoint{}, "cn-north-1": endpoint{},
@ -1991,6 +2040,7 @@ var awscnPartition = partition{
"cn-north-1": endpoint{}, "cn-north-1": endpoint{},
}, },
}, },
"es": service{},
"events": service{ "events": service{
Endpoints: endpoints{ Endpoints: endpoints{
@ -2034,6 +2084,12 @@ var awscnPartition = partition{
"cn-north-1": endpoint{}, "cn-north-1": endpoint{},
}, },
}, },
"lambda": service{
Endpoints: endpoints{
"cn-north-1": endpoint{},
},
},
"logs": service{ "logs": service{
Endpoints: endpoints{ Endpoints: endpoints{
@ -2069,6 +2125,12 @@ var awscnPartition = partition{
"cn-north-1": endpoint{}, "cn-north-1": endpoint{},
}, },
}, },
"snowball": service{
Endpoints: endpoints{
"cn-north-1": endpoint{},
},
},
"sns": service{ "sns": service{
Defaults: endpoint{ Defaults: endpoint{
Protocols: []string{"http", "https"}, Protocols: []string{"http", "https"},
@ -2216,6 +2278,12 @@ var awsusgovPartition = partition{
Endpoints: endpoints{ Endpoints: endpoints{
"us-gov-west-1": endpoint{}, "us-gov-west-1": endpoint{},
"us-gov-west-1-fips": endpoint{
Hostname: "dynamodb.us-gov-west-1.amazonaws.com",
CredentialScope: credentialScope{
Region: "us-gov-west-1",
},
},
}, },
}, },
"ec2": service{ "ec2": service{
@ -2241,6 +2309,12 @@ var awsusgovPartition = partition{
"us-gov-west-1": endpoint{}, "us-gov-west-1": endpoint{},
}, },
}, },
"elasticbeanstalk": service{
Endpoints: endpoints{
"us-gov-west-1": endpoint{},
},
},
"elasticloadbalancing": service{ "elasticloadbalancing": service{
Endpoints: endpoints{ Endpoints: endpoints{
@ -2344,7 +2418,7 @@ var awsusgovPartition = partition{
}, },
}, },
"us-gov-west-1": endpoint{ "us-gov-west-1": endpoint{
Hostname: "s3-us-gov-west-1.amazonaws.com", Hostname: "s3.us-gov-west-1.amazonaws.com",
Protocols: []string{"http", "https"}, Protocols: []string{"http", "https"},
}, },
}, },
@ -2392,6 +2466,12 @@ var awsusgovPartition = partition{
}, },
Endpoints: endpoints{ Endpoints: endpoints{
"us-gov-west-1": endpoint{}, "us-gov-west-1": endpoint{},
"us-gov-west-1-fips": endpoint{
Hostname: "dynamodb.us-gov-west-1.amazonaws.com",
CredentialScope: credentialScope{
Region: "us-gov-west-1",
},
},
}, },
}, },
"sts": service{ "sts": service{

View File

@ -1,11 +0,0 @@
// +build appengine plan9
package request
import (
"strings"
)
func isErrConnectionReset(err error) bool {
return strings.Contains(err.Error(), "connection reset")
}

View File

@ -28,6 +28,10 @@ const (
// during body reads. // during body reads.
ErrCodeResponseTimeout = "ResponseTimeout" ErrCodeResponseTimeout = "ResponseTimeout"
// ErrCodeInvalidPresignExpire is returned when the expire time provided to
// presign is invalid
ErrCodeInvalidPresignExpire = "InvalidPresignExpireError"
// CanceledErrorCode is the error code that will be returned by an // CanceledErrorCode is the error code that will be returned by an
// API request that was canceled. Requests given a aws.Context may // API request that was canceled. Requests given a aws.Context may
// return this error when canceled. // return this error when canceled.
@ -42,7 +46,6 @@ type Request struct {
Retryer Retryer
Time time.Time Time time.Time
ExpireTime time.Duration
Operation *Operation Operation *Operation
HTTPRequest *http.Request HTTPRequest *http.Request
HTTPResponse *http.Response HTTPResponse *http.Response
@ -60,6 +63,11 @@ type Request struct {
LastSignedAt time.Time LastSignedAt time.Time
DisableFollowRedirects bool DisableFollowRedirects bool
// A value greater than 0 instructs the request to be signed as Presigned URL
// You should not set this field directly. Instead use Request's
// Presign or PresignRequest methods.
ExpireTime time.Duration
context aws.Context context aws.Context
built bool built bool
@ -104,6 +112,8 @@ func New(cfg aws.Config, clientInfo metadata.ClientInfo, handlers Handlers,
err = awserr.New("InvalidEndpointURL", "invalid endpoint uri", err) err = awserr.New("InvalidEndpointURL", "invalid endpoint uri", err)
} }
SanitizeHostForHeader(httpReq)
r := &Request{ r := &Request{
Config: cfg, Config: cfg,
ClientInfo: clientInfo, ClientInfo: clientInfo,
@ -250,40 +260,59 @@ func (r *Request) SetReaderBody(reader io.ReadSeeker) {
// Presign returns the request's signed URL. Error will be returned // Presign returns the request's signed URL. Error will be returned
// if the signing fails. // if the signing fails.
func (r *Request) Presign(expireTime time.Duration) (string, error) { //
r.ExpireTime = expireTime // It is invalid to create a presigned URL with a expire duration 0 or less. An
// error is returned if expire duration is 0 or less.
func (r *Request) Presign(expire time.Duration) (string, error) {
r = r.copy()
// Presign requires all headers be hoisted. There is no way to retrieve
// the signed headers not hoisted without this. Making the presigned URL
// useless.
r.NotHoist = false r.NotHoist = false
if r.Operation.BeforePresignFn != nil { u, _, err := getPresignedURL(r, expire)
r = r.copy() return u, err
err := r.Operation.BeforePresignFn(r)
if err != nil {
return "", err
}
}
r.Sign()
if r.Error != nil {
return "", r.Error
}
return r.HTTPRequest.URL.String(), nil
} }
// PresignRequest behaves just like presign, with the addition of returning a // PresignRequest behaves just like presign, with the addition of returning a
// set of headers that were signed. // set of headers that were signed.
// //
// It is invalid to create a presigned URL with a expire duration 0 or less. An
// error is returned if expire duration is 0 or less.
//
// Returns the URL string for the API operation with signature in the query string, // Returns the URL string for the API operation with signature in the query string,
// and the HTTP headers that were included in the signature. These headers must // and the HTTP headers that were included in the signature. These headers must
// be included in any HTTP request made with the presigned URL. // be included in any HTTP request made with the presigned URL.
// //
// To prevent hoisting any headers to the query string set NotHoist to true on // To prevent hoisting any headers to the query string set NotHoist to true on
// this Request value prior to calling PresignRequest. // this Request value prior to calling PresignRequest.
func (r *Request) PresignRequest(expireTime time.Duration) (string, http.Header, error) { func (r *Request) PresignRequest(expire time.Duration) (string, http.Header, error) {
r.ExpireTime = expireTime r = r.copy()
r.Sign() return getPresignedURL(r, expire)
if r.Error != nil { }
return "", nil, r.Error
func getPresignedURL(r *Request, expire time.Duration) (string, http.Header, error) {
if expire <= 0 {
return "", nil, awserr.New(
ErrCodeInvalidPresignExpire,
"presigned URL requires an expire duration greater than 0",
nil,
)
} }
r.ExpireTime = expire
if r.Operation.BeforePresignFn != nil {
if err := r.Operation.BeforePresignFn(r); err != nil {
return "", nil, err
}
}
if err := r.Sign(); err != nil {
return "", nil, err
}
return r.HTTPRequest.URL.String(), r.SignedHeaderVals, nil return r.HTTPRequest.URL.String(), r.SignedHeaderVals, nil
} }
@ -579,3 +608,72 @@ func shouldRetryCancel(r *Request) bool {
errStr != "net/http: request canceled while waiting for connection") errStr != "net/http: request canceled while waiting for connection")
} }
// SanitizeHostForHeader removes default port from host and updates request.Host
func SanitizeHostForHeader(r *http.Request) {
host := getHost(r)
port := portOnly(host)
if port != "" && isDefaultPort(r.URL.Scheme, port) {
r.Host = stripPort(host)
}
}
// Returns host from request
func getHost(r *http.Request) string {
if r.Host != "" {
return r.Host
}
return r.URL.Host
}
// Hostname returns u.Host, without any port number.
//
// If Host is an IPv6 literal with a port number, Hostname returns the
// IPv6 literal without the square brackets. IPv6 literals may include
// a zone identifier.
//
// Copied from the Go 1.8 standard library (net/url)
func stripPort(hostport string) string {
colon := strings.IndexByte(hostport, ':')
if colon == -1 {
return hostport
}
if i := strings.IndexByte(hostport, ']'); i != -1 {
return strings.TrimPrefix(hostport[:i], "[")
}
return hostport[:colon]
}
// Port returns the port part of u.Host, without the leading colon.
// If u.Host doesn't contain a port, Port returns an empty string.
//
// Copied from the Go 1.8 standard library (net/url)
func portOnly(hostport string) string {
colon := strings.IndexByte(hostport, ':')
if colon == -1 {
return ""
}
if i := strings.Index(hostport, "]:"); i != -1 {
return hostport[i+len("]:"):]
}
if strings.Contains(hostport, "]") {
return ""
}
return hostport[colon+len(":"):]
}
// Returns true if the specified URI is using the standard port
// (i.e. port 80 for HTTP URIs or 443 for HTTPS URIs)
func isDefaultPort(scheme, port string) bool {
if port == "" {
return true
}
lowerCaseScheme := strings.ToLower(scheme)
if (lowerCaseScheme == "http" && port == "80") || (lowerCaseScheme == "https" && port == "443") {
return true
}
return false
}

View File

@ -7,6 +7,9 @@ import (
"github.com/aws/aws-sdk-go/aws/credentials" "github.com/aws/aws-sdk-go/aws/credentials"
) )
// EnvProviderName provides a name of the provider when config is loaded from environment.
const EnvProviderName = "EnvConfigCredentials"
// envConfig is a collection of environment values the SDK will read // envConfig is a collection of environment values the SDK will read
// setup config from. All environment values are optional. But some values // setup config from. All environment values are optional. But some values
// such as credentials require multiple values to be complete or the values // such as credentials require multiple values to be complete or the values
@ -157,7 +160,7 @@ func envConfigLoad(enableSharedConfig bool) envConfig {
if len(cfg.Creds.AccessKeyID) == 0 || len(cfg.Creds.SecretAccessKey) == 0 { if len(cfg.Creds.AccessKeyID) == 0 || len(cfg.Creds.SecretAccessKey) == 0 {
cfg.Creds = credentials.Value{} cfg.Creds = credentials.Value{}
} else { } else {
cfg.Creds.ProviderName = "EnvConfigCredentials" cfg.Creds.ProviderName = EnvProviderName
} }
regionKeys := regionEnvKeys regionKeys := regionEnvKeys

View File

@ -268,7 +268,7 @@ type signingCtx struct {
// "X-Amz-Content-Sha256" header with a precomputed value. The signer will // "X-Amz-Content-Sha256" header with a precomputed value. The signer will
// only compute the hash if the request header value is empty. // 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) { 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) return v4.signWithBody(r, body, service, region, 0, false, signTime)
} }
// Presign signs AWS v4 requests with the provided body, service name, region // Presign signs AWS v4 requests with the provided body, service name, region
@ -302,10 +302,10 @@ func (v4 Signer) Sign(r *http.Request, body io.ReadSeeker, service, region strin
// presigned request's signature you can set the "X-Amz-Content-Sha256" // presigned request's signature you can set the "X-Amz-Content-Sha256"
// HTTP header and that will be included in the request's signature. // 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) { 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) return v4.signWithBody(r, body, service, region, exp, true, signTime)
} }
func (v4 Signer) signWithBody(r *http.Request, body io.ReadSeeker, service, region string, exp time.Duration, signTime time.Time) (http.Header, error) { func (v4 Signer) signWithBody(r *http.Request, body io.ReadSeeker, service, region string, exp time.Duration, isPresign bool, signTime time.Time) (http.Header, error) {
currentTimeFn := v4.currentTimeFn currentTimeFn := v4.currentTimeFn
if currentTimeFn == nil { if currentTimeFn == nil {
currentTimeFn = time.Now currentTimeFn = time.Now
@ -317,7 +317,7 @@ func (v4 Signer) signWithBody(r *http.Request, body io.ReadSeeker, service, regi
Query: r.URL.Query(), Query: r.URL.Query(),
Time: signTime, Time: signTime,
ExpireTime: exp, ExpireTime: exp,
isPresign: exp != 0, isPresign: isPresign,
ServiceName: service, ServiceName: service,
Region: region, Region: region,
DisableURIPathEscaping: v4.DisableURIPathEscaping, DisableURIPathEscaping: v4.DisableURIPathEscaping,
@ -339,6 +339,7 @@ func (v4 Signer) signWithBody(r *http.Request, body io.ReadSeeker, service, regi
return http.Header{}, err return http.Header{}, err
} }
ctx.sanitizeHostForHeader()
ctx.assignAmzQueryValues() ctx.assignAmzQueryValues()
ctx.build(v4.DisableHeaderHoisting) ctx.build(v4.DisableHeaderHoisting)
@ -363,6 +364,10 @@ func (v4 Signer) signWithBody(r *http.Request, body io.ReadSeeker, service, regi
return ctx.SignedHeaderVals, nil return ctx.SignedHeaderVals, nil
} }
func (ctx *signingCtx) sanitizeHostForHeader() {
request.SanitizeHostForHeader(ctx.Request)
}
func (ctx *signingCtx) handlePresignRemoval() { func (ctx *signingCtx) handlePresignRemoval() {
if !ctx.isPresign { if !ctx.isPresign {
return return
@ -467,7 +472,7 @@ func signSDKRequestWithCurrTime(req *request.Request, curTimeFn func() time.Time
} }
signedHeaders, err := v4.signWithBody(req.HTTPRequest, req.GetBody(), signedHeaders, err := v4.signWithBody(req.HTTPRequest, req.GetBody(),
name, region, req.ExpireTime, signingTime, name, region, req.ExpireTime, req.ExpireTime > 0, signingTime,
) )
if err != nil { if err != nil {
req.Error = err req.Error = err

View File

@ -5,4 +5,4 @@ package aws
const SDKName = "aws-sdk-go" const SDKName = "aws-sdk-go"
// SDKVersion is the version of this SDK // SDKVersion is the version of this SDK
const SDKVersion = "1.10.36" const SDKVersion = "1.12.27"

View File

@ -121,6 +121,10 @@ func (q *queryParser) parseList(v url.Values, value reflect.Value, prefix string
return nil return nil
} }
if _, ok := value.Interface().([]byte); ok {
return q.parseScalar(v, value, prefix, tag)
}
// check for unflattened list member // check for unflattened list member
if !q.isEC2 && tag.Get("flattened") == "" { if !q.isEC2 && tag.Get("flattened") == "" {
if listName := tag.Get("locationNameList"); listName == "" { if listName := tag.Get("locationNameList"); listName == "" {

View File

@ -347,13 +347,10 @@ func (c *ACM) GetCertificateRequest(input *GetCertificateInput) (req *request.Re
// //
// Retrieves an ACM Certificate and certificate chain for the certificate specified // Retrieves an ACM Certificate and certificate chain for the certificate specified
// by an ARN. The chain is an ordered list of certificates that contains the // by an ARN. The chain is an ordered list of certificates that contains the
// root certificate, intermediate certificates of subordinate CAs, and the ACM // ACM Certificate, intermediate certificates of subordinate CAs, and the root
// Certificate. The certificate and certificate chain are base64 encoded. If // certificate in that order. The certificate and certificate chain are base64
// you want to decode the certificate chain to see the individual certificate // encoded. If you want to decode the certificate chain to see the individual
// fields, you can use OpenSSL. // certificate fields, you can use OpenSSL.
//
// Currently, ACM Certificates can be used only with Elastic Load Balancing
// and Amazon CloudFront.
// //
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
// with awserr.Error's Code and Message methods to get detailed information about // with awserr.Error's Code and Message methods to get detailed information about
@ -448,7 +445,7 @@ func (c *ACM) ImportCertificateRequest(input *ImportCertificateInput) (req *requ
// //
// For more information about importing certificates into ACM, including the // For more information about importing certificates into ACM, including the
// differences between certificates that you import and those that ACM provides, // differences between certificates that you import and those that ACM provides,
// see Importing Certificates (http://docs.aws.amazon.com/acm/latest/userguide/import-certificate.html) // see Importing Certificates (http://docs.aws.amazon.com/acm/latest/userguide/import-certificate.html)
// in the AWS Certificate Manager User Guide. // in the AWS Certificate Manager User Guide.
// //
// To import a certificate, you must provide the certificate and the matching // To import a certificate, you must provide the certificate and the matching
@ -464,6 +461,12 @@ func (c *ACM) ImportCertificateRequest(input *ImportCertificateInput) (req *requ
// To import a new certificate, omit the CertificateArn field. Include this // To import a new certificate, omit the CertificateArn field. Include this
// field only when you want to replace a previously imported certificate. // field only when you want to replace a previously imported certificate.
// //
// When you import a certificate by using the CLI or one of the SDKs, you must
// specify the certificate, chain, and private key parameters as file names
// preceded by file://. For example, you can specify a certificate saved in
// the C:\temp folder as C:\temp\certificate_to_import.pem. If you are making
// an HTTP or HTTPS Query request, include these parameters as BLOBs.
//
// This operation returns the Amazon Resource Name (ARN) (http://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html) // This operation returns the Amazon Resource Name (ARN) (http://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html)
// of the imported certificate. // of the imported certificate.
// //
@ -868,11 +871,18 @@ func (c *ACM) RequestCertificateRequest(input *RequestCertificateInput) (req *re
// //
// Requests an ACM Certificate for use with other AWS services. To request an // Requests an ACM Certificate for use with other AWS services. To request an
// ACM Certificate, you must specify the fully qualified domain name (FQDN) // ACM Certificate, you must specify the fully qualified domain name (FQDN)
// for your site. You can also specify additional FQDNs if users can reach your // for your site in the DomainName parameter. You can also specify additional
// site by using other names. For each domain name you specify, email is sent // FQDNs in the SubjectAlternativeNames parameter if users can reach your site
// to the domain owner to request approval to issue the certificate. After receiving // by using other names.
// approval from the domain owner, the ACM Certificate is issued. For more information, //
// see the AWS Certificate Manager User Guide (http://docs.aws.amazon.com/acm/latest/userguide/). // For each domain name you specify, email is sent to the domain owner to request
// approval to issue the certificate. Email is sent to three registered contact
// addresses in the WHOIS database and to five common system administration
// addresses formed from the DomainName you enter or the optional ValidationDomain
// parameter. For more information, see Validate Domain Ownership (http://docs.aws.amazon.com/acm/latest/userguide/gs-acm-validate.html).
//
// After receiving approval from the domain owner, the ACM Certificate is issued.
// For more information, see the AWS Certificate Manager User Guide (http://docs.aws.amazon.com/acm/latest/userguide/).
// //
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
// with awserr.Error's Code and Message methods to get detailed information about // with awserr.Error's Code and Message methods to get detailed information about

View File

@ -16,7 +16,7 @@
// //
// Using the Client // Using the Client
// //
// To AWS Certificate Manager with the SDK use the New function to create // To contact AWS Certificate Manager with the SDK use the New function to create
// a new service client. With that client you can make API requests to the service. // a new service client. With that client you can make API requests to the service.
// These clients are safe to use concurrently. // These clients are safe to use concurrently.
// //

File diff suppressed because it is too large Load Diff

View File

@ -14,7 +14,7 @@
// //
// Using the Client // Using the Client
// //
// To Amazon API Gateway with the SDK use the New function to create // To contact Amazon API Gateway with the SDK use the New function to create
// a new service client. With that client you can make API requests to the service. // a new service client. With that client you can make API requests to the service.
// These clients are safe to use concurrently. // These clients are safe to use concurrently.
// //

View File

@ -6,29 +6,47 @@ const (
// ErrCodeBadRequestException for service response error code // ErrCodeBadRequestException for service response error code
// "BadRequestException". // "BadRequestException".
//
// The submitted request is not valid, for example, the input is incomplete
// or incorrect. See the accompanying error message for details.
ErrCodeBadRequestException = "BadRequestException" ErrCodeBadRequestException = "BadRequestException"
// ErrCodeConflictException for service response error code // ErrCodeConflictException for service response error code
// "ConflictException". // "ConflictException".
//
// The request configuration has conflicts. For details, see the accompanying
// error message.
ErrCodeConflictException = "ConflictException" ErrCodeConflictException = "ConflictException"
// ErrCodeLimitExceededException for service response error code // ErrCodeLimitExceededException for service response error code
// "LimitExceededException". // "LimitExceededException".
//
// The request exceeded the rate limit. Retry after the specified time period.
ErrCodeLimitExceededException = "LimitExceededException" ErrCodeLimitExceededException = "LimitExceededException"
// ErrCodeNotFoundException for service response error code // ErrCodeNotFoundException for service response error code
// "NotFoundException". // "NotFoundException".
//
// The requested resource is not found. Make sure that the request URI is correct.
ErrCodeNotFoundException = "NotFoundException" ErrCodeNotFoundException = "NotFoundException"
// ErrCodeServiceUnavailableException for service response error code // ErrCodeServiceUnavailableException for service response error code
// "ServiceUnavailableException". // "ServiceUnavailableException".
//
// The requested service is not available. For details see the accompanying
// error message. Retry after the specified time period.
ErrCodeServiceUnavailableException = "ServiceUnavailableException" ErrCodeServiceUnavailableException = "ServiceUnavailableException"
// ErrCodeTooManyRequestsException for service response error code // ErrCodeTooManyRequestsException for service response error code
// "TooManyRequestsException". // "TooManyRequestsException".
//
// The request has reached its throttling limit. Retry after the specified time
// period.
ErrCodeTooManyRequestsException = "TooManyRequestsException" ErrCodeTooManyRequestsException = "TooManyRequestsException"
// ErrCodeUnauthorizedException for service response error code // ErrCodeUnauthorizedException for service response error code
// "UnauthorizedException". // "UnauthorizedException".
//
// The request is denied because the caller has insufficient permissions.
ErrCodeUnauthorizedException = "UnauthorizedException" ErrCodeUnauthorizedException = "UnauthorizedException"
) )

File diff suppressed because it is too large Load Diff

View File

@ -4,7 +4,7 @@
// requests to Application Auto Scaling. // requests to Application Auto Scaling.
// //
// With Application Auto Scaling, you can automatically scale your AWS resources. // With Application Auto Scaling, you can automatically scale your AWS resources.
// The experience similar to that of Auto Scaling (https://aws.amazon.com/autoscaling/). // The experience is similar to that of Auto Scaling (https://aws.amazon.com/autoscaling/).
// You can use Application Auto Scaling to accomplish the following tasks: // You can use Application Auto Scaling to accomplish the following tasks:
// //
// * Define scaling policies to automatically scale your AWS resources // * Define scaling policies to automatically scale your AWS resources
@ -32,8 +32,8 @@
// in the Amazon AppStream 2.0 Developer Guide. // in the Amazon AppStream 2.0 Developer Guide.
// //
// * Provisioned read and write capacity for Amazon DynamoDB tables and global // * Provisioned read and write capacity for Amazon DynamoDB tables and global
// secondary indexes. For more information, see Auto Scaling for DynamoDB // secondary indexes. For more information, see Managing Throughput Capacity
// (http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/TargetTracking.html) // Automatically with DynamoDB Auto Scaling (http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/AutoScaling.html)
// in the Amazon DynamoDB Developer Guide. // in the Amazon DynamoDB Developer Guide.
// //
// For a list of supported regions, see AWS Regions and Endpoints: Application // For a list of supported regions, see AWS Regions and Endpoints: Application
@ -47,7 +47,7 @@
// //
// Using the Client // Using the Client
// //
// To Application Auto Scaling with the SDK use the New function to create // To contact Application Auto Scaling with the SDK use the New function to create
// a new service client. With that client you can make API requests to the service. // a new service client. With that client you can make API requests to the service.
// These clients are safe to use concurrently. // These clients are safe to use concurrently.
// //

2738
vendor/github.com/aws/aws-sdk-go/service/athena/api.go generated vendored Normal file

File diff suppressed because it is too large Load Diff

39
vendor/github.com/aws/aws-sdk-go/service/athena/doc.go generated vendored Normal file
View File

@ -0,0 +1,39 @@
// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
// Package athena provides the client and types for making API
// requests to Amazon Athena.
//
// Amazon Athena is an interactive query service that lets you use standard
// SQL to analyze data directly in Amazon S3. You can point Athena at your data
// in Amazon S3 and run ad-hoc queries and get results in seconds. Athena is
// serverless, so there is no infrastructure to set up or manage. You pay only
// for the queries you run. Athena scales automatically—executing queries in
// parallel—so results are fast, even with large datasets and complex queries.
// For more information, see What is Amazon Athena (http://docs.aws.amazon.com/athena/latest/ug/what-is.html)
// in the Amazon Athena User Guide.
//
// For code samples using the AWS SDK for Java, see Examples and Code Samples
// (http://docs.aws.amazon.com/athena/latest/ug/code-samples.html) in the Amazon
// Athena User Guide.
//
// See https://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18 for more information on this service.
//
// See athena package documentation for more information.
// https://docs.aws.amazon.com/sdk-for-go/api/service/athena/
//
// Using the Client
//
// To contact Amazon Athena with the SDK use the New function to create
// a new service client. With that client you can make API requests to the service.
// These clients are safe to use concurrently.
//
// See the SDK's documentation for more information on how to use the SDK.
// https://docs.aws.amazon.com/sdk-for-go/api/
//
// See aws.Config documentation for more information on configuring SDK clients.
// https://docs.aws.amazon.com/sdk-for-go/api/aws/#Config
//
// See the Amazon Athena client Athena for more
// information on creating client for this service.
// https://docs.aws.amazon.com/sdk-for-go/api/service/athena/#New
package athena

View File

@ -0,0 +1,26 @@
// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
package athena
const (
// ErrCodeInternalServerException for service response error code
// "InternalServerException".
//
// Indicates a platform issue, which may be due to a transient condition or
// outage.
ErrCodeInternalServerException = "InternalServerException"
// ErrCodeInvalidRequestException for service response error code
// "InvalidRequestException".
//
// Indicates that something is wrong with the input to the request. For example,
// a required parameter may be missing or out of range.
ErrCodeInvalidRequestException = "InvalidRequestException"
// ErrCodeTooManyRequestsException for service response error code
// "TooManyRequestsException".
//
// Indicates that the request was throttled.
ErrCodeTooManyRequestsException = "TooManyRequestsException"
)

View File

@ -0,0 +1,95 @@
// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
package athena
import (
"github.com/aws/aws-sdk-go/aws"
"github.com/aws/aws-sdk-go/aws/client"
"github.com/aws/aws-sdk-go/aws/client/metadata"
"github.com/aws/aws-sdk-go/aws/request"
"github.com/aws/aws-sdk-go/aws/signer/v4"
"github.com/aws/aws-sdk-go/private/protocol/jsonrpc"
)
// Athena provides the API operation methods for making requests to
// Amazon Athena. See this package's package overview docs
// for details on the service.
//
// Athena methods are safe to use concurrently. It is not safe to
// modify mutate any of the struct's properties though.
type Athena struct {
*client.Client
}
// Used for custom client initialization logic
var initClient func(*client.Client)
// Used for custom request initialization logic
var initRequest func(*request.Request)
// Service information constants
const (
ServiceName = "athena" // Service endpoint prefix API calls made to.
EndpointsID = ServiceName // Service ID for Regions and Endpoints metadata.
)
// New creates a new instance of the Athena client with a session.
// If additional configuration is needed for the client instance use the optional
// aws.Config parameter to add your extra config.
//
// Example:
// // Create a Athena client from just a session.
// svc := athena.New(mySession)
//
// // Create a Athena client with additional configuration
// svc := athena.New(mySession, aws.NewConfig().WithRegion("us-west-2"))
func New(p client.ConfigProvider, cfgs ...*aws.Config) *Athena {
c := p.ClientConfig(EndpointsID, cfgs...)
return newClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion, c.SigningName)
}
// newClient creates, initializes and returns a new service client instance.
func newClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion, signingName string) *Athena {
svc := &Athena{
Client: client.New(
cfg,
metadata.ClientInfo{
ServiceName: ServiceName,
SigningName: signingName,
SigningRegion: signingRegion,
Endpoint: endpoint,
APIVersion: "2017-05-18",
JSONVersion: "1.1",
TargetPrefix: "AmazonAthena",
},
handlers,
),
}
// Handlers
svc.Handlers.Sign.PushBackNamed(v4.SignRequestHandler)
svc.Handlers.Build.PushBackNamed(jsonrpc.BuildHandler)
svc.Handlers.Unmarshal.PushBackNamed(jsonrpc.UnmarshalHandler)
svc.Handlers.UnmarshalMeta.PushBackNamed(jsonrpc.UnmarshalMetaHandler)
svc.Handlers.UnmarshalError.PushBackNamed(jsonrpc.UnmarshalErrorHandler)
// Run custom client initialization if present
if initClient != nil {
initClient(svc.Client)
}
return svc
}
// newRequest creates a new request for a Athena operation and runs any
// custom request initialization.
func (c *Athena) newRequest(op *request.Operation, params, data interface{}) *request.Request {
req := c.NewRequest(op, params, data)
// Run custom request initialization if present
if initRequest != nil {
initRequest(req)
}
return req
}

View File

@ -3272,8 +3272,8 @@ func (c *AutoScaling) DetachInstancesRequest(input *DetachInstancesInput) (req *
// //
// Removes one or more instances from the specified Auto Scaling group. // Removes one or more instances from the specified Auto Scaling group.
// //
// After the instances are detached, you can manage them independently from // After the instances are detached, you can manage them independent of the
// the rest of the Auto Scaling group. // Auto Scaling group.
// //
// If you do not specify the option to decrement the desired capacity, Auto // If you do not specify the option to decrement the desired capacity, Auto
// Scaling launches instances to replace the ones that are detached. // Scaling launches instances to replace the ones that are detached.
@ -3700,9 +3700,10 @@ func (c *AutoScaling) EnterStandbyRequest(input *EnterStandbyInput) (req *reques
// EnterStandby API operation for Auto Scaling. // EnterStandby API operation for Auto Scaling.
// //
// Moves the specified instances into Standby mode. // Moves the specified instances into the standby state.
// //
// For more information, see Auto Scaling Lifecycle (http://docs.aws.amazon.com/autoscaling/latest/userguide/AutoScalingGroupLifecycle.html) // For more information, see Temporarily Removing Instances from Your Auto Scaling
// Group (http://docs.aws.amazon.com/autoscaling/latest/userguide/as-enter-exit-standby.html)
// in the Auto Scaling User Guide. // in the Auto Scaling User Guide.
// //
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
@ -3869,9 +3870,10 @@ func (c *AutoScaling) ExitStandbyRequest(input *ExitStandbyInput) (req *request.
// ExitStandby API operation for Auto Scaling. // ExitStandby API operation for Auto Scaling.
// //
// Moves the specified instances out of Standby mode. // Moves the specified instances out of the standby state.
// //
// For more information, see Auto Scaling Lifecycle (http://docs.aws.amazon.com/autoscaling/latest/userguide/AutoScalingGroupLifecycle.html) // For more information, see Temporarily Removing Instances from Your Auto Scaling
// Group (http://docs.aws.amazon.com/autoscaling/latest/userguide/as-enter-exit-standby.html)
// in the Auto Scaling User Guide. // in the Auto Scaling User Guide.
// //
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
@ -4993,15 +4995,14 @@ func (c *AutoScaling) UpdateAutoScalingGroupRequest(input *UpdateAutoScalingGrou
// //
// Updates the configuration for the specified Auto Scaling group. // Updates the configuration for the specified Auto Scaling group.
// //
// The new settings take effect on any scaling activities after this call returns.
// Scaling activities that are currently in progress aren't affected.
//
// To update an Auto Scaling group with a launch configuration with InstanceMonitoring // To update an Auto Scaling group with a launch configuration with InstanceMonitoring
// set to False, you must first disable the collection of group metrics. Otherwise, // set to false, you must first disable the collection of group metrics. Otherwise,
// you will get an error. If you have previously enabled the collection of group // you will get an error. If you have previously enabled the collection of group
// metrics, you can disable it using DisableMetricsCollection. // metrics, you can disable it using DisableMetricsCollection.
// //
// The new settings are registered upon the completion of this call. Any launch
// configuration settings take effect on any triggers after this call returns.
// Scaling activities that are currently in progress aren't affected.
//
// Note the following: // Note the following:
// //
// * If you specify a new value for MinSize without specifying a value for // * If you specify a new value for MinSize without specifying a value for
@ -5235,7 +5236,6 @@ func (s *Alarm) SetAlarmName(v string) *Alarm {
return s return s
} }
// Contains the parameters for AttachInstances.
// Please also see https://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/AttachInstancesQuery // Please also see https://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/AttachInstancesQuery
type AttachInstancesInput struct { type AttachInstancesInput struct {
_ struct{} `type:"structure"` _ struct{} `type:"structure"`
@ -5302,7 +5302,6 @@ func (s AttachInstancesOutput) GoString() string {
return s.String() return s.String()
} }
// Contains the parameters for AttachLoadBalancerTargetGroups.
// Please also see https://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/AttachLoadBalancerTargetGroupsType // Please also see https://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/AttachLoadBalancerTargetGroupsType
type AttachLoadBalancerTargetGroupsInput struct { type AttachLoadBalancerTargetGroupsInput struct {
_ struct{} `type:"structure"` _ struct{} `type:"structure"`
@ -5374,7 +5373,6 @@ func (s AttachLoadBalancerTargetGroupsOutput) GoString() string {
return s.String() return s.String()
} }
// Contains the parameters for AttachLoadBalancers.
// Please also see https://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/AttachLoadBalancersType // Please also see https://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/AttachLoadBalancersType
type AttachLoadBalancersInput struct { type AttachLoadBalancersInput struct {
_ struct{} `type:"structure"` _ struct{} `type:"structure"`
@ -5431,7 +5429,6 @@ func (s *AttachLoadBalancersInput) SetLoadBalancerNames(v []*string) *AttachLoad
return s return s
} }
// Contains the output of AttachLoadBalancers.
// Please also see https://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/AttachLoadBalancersResultType // Please also see https://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/AttachLoadBalancersResultType
type AttachLoadBalancersOutput struct { type AttachLoadBalancersOutput struct {
_ struct{} `type:"structure"` _ struct{} `type:"structure"`
@ -5529,7 +5526,6 @@ func (s *BlockDeviceMapping) SetVirtualName(v string) *BlockDeviceMapping {
return s return s
} }
// Contains the parameters for CompleteLifecycleAction.
// Please also see https://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/CompleteLifecycleActionType // Please also see https://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/CompleteLifecycleActionType
type CompleteLifecycleActionInput struct { type CompleteLifecycleActionInput struct {
_ struct{} `type:"structure"` _ struct{} `type:"structure"`
@ -5630,7 +5626,6 @@ func (s *CompleteLifecycleActionInput) SetLifecycleHookName(v string) *CompleteL
return s return s
} }
// Contains the output of CompleteLifecycleAction.
// Please also see https://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/CompleteLifecycleActionAnswer // Please also see https://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/CompleteLifecycleActionAnswer
type CompleteLifecycleActionOutput struct { type CompleteLifecycleActionOutput struct {
_ struct{} `type:"structure"` _ struct{} `type:"structure"`
@ -5646,7 +5641,6 @@ func (s CompleteLifecycleActionOutput) GoString() string {
return s.String() return s.String()
} }
// Contains the parameters for CreateAutoScalingGroup.
// Please also see https://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/CreateAutoScalingGroupType // Please also see https://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/CreateAutoScalingGroupType
type CreateAutoScalingGroupInput struct { type CreateAutoScalingGroupInput struct {
_ struct{} `type:"structure"` _ struct{} `type:"structure"`
@ -5670,7 +5664,8 @@ type CreateAutoScalingGroupInput struct {
// The number of EC2 instances that should be running in the group. This number // The number of EC2 instances that should be running in the group. This number
// must be greater than or equal to the minimum size of the group and less than // must be greater than or equal to the minimum size of the group and less than
// or equal to the maximum size of the group. // or equal to the maximum size of the group. If you do not specify a desired
// capacity, the default is the minimum size of the group.
DesiredCapacity *int64 `type:"integer"` DesiredCapacity *int64 `type:"integer"`
// The amount of time, in seconds, that Auto Scaling waits before checking the // The amount of time, in seconds, that Auto Scaling waits before checking the
@ -5708,6 +5703,9 @@ type CreateAutoScalingGroupInput struct {
// instead of a launch configuration. // instead of a launch configuration.
LaunchConfigurationName *string `min:"1" type:"string"` LaunchConfigurationName *string `min:"1" type:"string"`
// One or more lifecycle hooks.
LifecycleHookSpecificationList []*LifecycleHookSpecification `type:"list"`
// One or more Classic Load Balancers. To specify an Application Load Balancer, // One or more Classic Load Balancers. To specify an Application Load Balancer,
// use TargetGroupARNs instead. // use TargetGroupARNs instead.
// //
@ -5806,6 +5804,16 @@ func (s *CreateAutoScalingGroupInput) Validate() error {
if s.VPCZoneIdentifier != nil && len(*s.VPCZoneIdentifier) < 1 { if s.VPCZoneIdentifier != nil && len(*s.VPCZoneIdentifier) < 1 {
invalidParams.Add(request.NewErrParamMinLen("VPCZoneIdentifier", 1)) invalidParams.Add(request.NewErrParamMinLen("VPCZoneIdentifier", 1))
} }
if s.LifecycleHookSpecificationList != nil {
for i, v := range s.LifecycleHookSpecificationList {
if v == nil {
continue
}
if err := v.Validate(); err != nil {
invalidParams.AddNested(fmt.Sprintf("%s[%v]", "LifecycleHookSpecificationList", i), err.(request.ErrInvalidParams))
}
}
}
if s.Tags != nil { if s.Tags != nil {
for i, v := range s.Tags { for i, v := range s.Tags {
if v == nil { if v == nil {
@ -5871,6 +5879,12 @@ func (s *CreateAutoScalingGroupInput) SetLaunchConfigurationName(v string) *Crea
return s return s
} }
// SetLifecycleHookSpecificationList sets the LifecycleHookSpecificationList field's value.
func (s *CreateAutoScalingGroupInput) SetLifecycleHookSpecificationList(v []*LifecycleHookSpecification) *CreateAutoScalingGroupInput {
s.LifecycleHookSpecificationList = v
return s
}
// SetLoadBalancerNames sets the LoadBalancerNames field's value. // SetLoadBalancerNames sets the LoadBalancerNames field's value.
func (s *CreateAutoScalingGroupInput) SetLoadBalancerNames(v []*string) *CreateAutoScalingGroupInput { func (s *CreateAutoScalingGroupInput) SetLoadBalancerNames(v []*string) *CreateAutoScalingGroupInput {
s.LoadBalancerNames = v s.LoadBalancerNames = v
@ -5940,7 +5954,6 @@ func (s CreateAutoScalingGroupOutput) GoString() string {
return s.String() return s.String()
} }
// Contains the parameters for CreateLaunchConfiguration.
// Please also see https://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/CreateLaunchConfigurationType // Please also see https://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/CreateLaunchConfigurationType
type CreateLaunchConfigurationInput struct { type CreateLaunchConfigurationInput struct {
_ struct{} `type:"structure"` _ struct{} `type:"structure"`
@ -5997,14 +6010,18 @@ type CreateLaunchConfigurationInput struct {
IamInstanceProfile *string `min:"1" type:"string"` IamInstanceProfile *string `min:"1" type:"string"`
// The ID of the Amazon Machine Image (AMI) to use to launch your EC2 instances. // The ID of the Amazon Machine Image (AMI) to use to launch your EC2 instances.
//
// If you do not specify InstanceId, you must specify ImageId.
//
// For more information, see Finding an AMI (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/finding-an-ami.html) // For more information, see Finding an AMI (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/finding-an-ami.html)
// in the Amazon Elastic Compute Cloud User Guide. // in the Amazon Elastic Compute Cloud User Guide.
ImageId *string `min:"1" type:"string"` ImageId *string `min:"1" type:"string"`
// The ID of the instance to use to create the launch configuration. // The ID of the instance to use to create the launch configuration. The new
// launch configuration derives attributes from the instance, with the exception
// of the block device mapping.
// //
// The new launch configuration derives attributes from the instance, with the // If you do not specify InstanceId, you must specify both ImageId and InstanceType.
// exception of the block device mapping.
// //
// To create a launch configuration with a block device mapping or override // To create a launch configuration with a block device mapping or override
// any other instance attributes, specify them as part of the same request. // any other instance attributes, specify them as part of the same request.
@ -6015,11 +6032,15 @@ type CreateLaunchConfigurationInput struct {
InstanceId *string `min:"1" type:"string"` InstanceId *string `min:"1" type:"string"`
// Enables detailed monitoring (true) or basic monitoring (false) for the Auto // Enables detailed monitoring (true) or basic monitoring (false) for the Auto
// Scaling instances. // Scaling instances. The default is true.
InstanceMonitoring *InstanceMonitoring `type:"structure"` InstanceMonitoring *InstanceMonitoring `type:"structure"`
// The instance type of the EC2 instance. For information about available instance // The instance type of the EC2 instance.
// types, see Available Instance Types (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/instance-types.html#AvailableInstanceTypes) //
// If you do not specify InstanceId, you must specify InstanceType.
//
// For information about available instance types, see Available Instance Types
// (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/instance-types.html#AvailableInstanceTypes)
// in the Amazon Elastic Compute Cloud User Guide. // in the Amazon Elastic Compute Cloud User Guide.
InstanceType *string `min:"1" type:"string"` InstanceType *string `min:"1" type:"string"`
@ -6270,7 +6291,6 @@ func (s CreateLaunchConfigurationOutput) GoString() string {
return s.String() return s.String()
} }
// Contains the parameters for CreateOrUpdateTags.
// Please also see https://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/CreateOrUpdateTagsType // Please also see https://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/CreateOrUpdateTagsType
type CreateOrUpdateTagsInput struct { type CreateOrUpdateTagsInput struct {
_ struct{} `type:"structure"` _ struct{} `type:"structure"`
@ -6431,7 +6451,6 @@ func (s *CustomizedMetricSpecification) SetUnit(v string) *CustomizedMetricSpeci
return s return s
} }
// Contains the parameters for DeleteAutoScalingGroup.
// Please also see https://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DeleteAutoScalingGroupType // Please also see https://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DeleteAutoScalingGroupType
type DeleteAutoScalingGroupInput struct { type DeleteAutoScalingGroupInput struct {
_ struct{} `type:"structure"` _ struct{} `type:"structure"`
@ -6500,7 +6519,6 @@ func (s DeleteAutoScalingGroupOutput) GoString() string {
return s.String() return s.String()
} }
// Contains the parameters for DeleteLaunchConfiguration.
// Please also see https://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/LaunchConfigurationNameType // Please also see https://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/LaunchConfigurationNameType
type DeleteLaunchConfigurationInput struct { type DeleteLaunchConfigurationInput struct {
_ struct{} `type:"structure"` _ struct{} `type:"structure"`
@ -6558,7 +6576,6 @@ func (s DeleteLaunchConfigurationOutput) GoString() string {
return s.String() return s.String()
} }
// Contains the parameters for DeleteLifecycleHook.
// Please also see https://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DeleteLifecycleHookType // Please also see https://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DeleteLifecycleHookType
type DeleteLifecycleHookInput struct { type DeleteLifecycleHookInput struct {
_ struct{} `type:"structure"` _ struct{} `type:"structure"`
@ -6618,7 +6635,6 @@ func (s *DeleteLifecycleHookInput) SetLifecycleHookName(v string) *DeleteLifecyc
return s return s
} }
// Contains the output of DeleteLifecycleHook.
// Please also see https://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DeleteLifecycleHookAnswer // Please also see https://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DeleteLifecycleHookAnswer
type DeleteLifecycleHookOutput struct { type DeleteLifecycleHookOutput struct {
_ struct{} `type:"structure"` _ struct{} `type:"structure"`
@ -6634,7 +6650,6 @@ func (s DeleteLifecycleHookOutput) GoString() string {
return s.String() return s.String()
} }
// Contains the parameters for DeleteNotificationConfiguration.
// Please also see https://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DeleteNotificationConfigurationType // Please also see https://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DeleteNotificationConfigurationType
type DeleteNotificationConfigurationInput struct { type DeleteNotificationConfigurationInput struct {
_ struct{} `type:"structure"` _ struct{} `type:"structure"`
@ -6710,7 +6725,6 @@ func (s DeleteNotificationConfigurationOutput) GoString() string {
return s.String() return s.String()
} }
// Contains the parameters for DeletePolicy.
// Please also see https://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DeletePolicyType // Please also see https://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DeletePolicyType
type DeletePolicyInput struct { type DeletePolicyInput struct {
_ struct{} `type:"structure"` _ struct{} `type:"structure"`
@ -6780,7 +6794,6 @@ func (s DeletePolicyOutput) GoString() string {
return s.String() return s.String()
} }
// Contains the parameters for DeleteScheduledAction.
// Please also see https://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DeleteScheduledActionType // Please also see https://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DeleteScheduledActionType
type DeleteScheduledActionInput struct { type DeleteScheduledActionInput struct {
_ struct{} `type:"structure"` _ struct{} `type:"structure"`
@ -6855,7 +6868,6 @@ func (s DeleteScheduledActionOutput) GoString() string {
return s.String() return s.String()
} }
// Contains the parameters for DeleteTags.
// Please also see https://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DeleteTagsType // Please also see https://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DeleteTagsType
type DeleteTagsInput struct { type DeleteTagsInput struct {
_ struct{} `type:"structure"` _ struct{} `type:"structure"`
@ -6935,7 +6947,6 @@ func (s DescribeAccountLimitsInput) GoString() string {
return s.String() return s.String()
} }
// Contains the parameters for DescribeAccountLimits.
// Please also see https://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DescribeAccountLimitsAnswer // Please also see https://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DescribeAccountLimitsAnswer
type DescribeAccountLimitsOutput struct { type DescribeAccountLimitsOutput struct {
_ struct{} `type:"structure"` _ struct{} `type:"structure"`
@ -7004,7 +7015,6 @@ func (s DescribeAdjustmentTypesInput) GoString() string {
return s.String() return s.String()
} }
// Contains the parameters for DescribeAdjustmentTypes.
// Please also see https://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DescribeAdjustmentTypesAnswer // Please also see https://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DescribeAdjustmentTypesAnswer
type DescribeAdjustmentTypesOutput struct { type DescribeAdjustmentTypesOutput struct {
_ struct{} `type:"structure"` _ struct{} `type:"structure"`
@ -7029,7 +7039,6 @@ func (s *DescribeAdjustmentTypesOutput) SetAdjustmentTypes(v []*AdjustmentType)
return s return s
} }
// Contains the parameters for DescribeAutoScalingGroups.
// Please also see https://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/GroupNamesType // Please also see https://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/GroupNamesType
type DescribeAutoScalingGroupsInput struct { type DescribeAutoScalingGroupsInput struct {
_ struct{} `type:"structure"` _ struct{} `type:"structure"`
@ -7075,7 +7084,6 @@ func (s *DescribeAutoScalingGroupsInput) SetNextToken(v string) *DescribeAutoSca
return s return s
} }
// Contains the output for DescribeAutoScalingGroups.
// Please also see https://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/GroupsType // Please also see https://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/GroupsType
type DescribeAutoScalingGroupsOutput struct { type DescribeAutoScalingGroupsOutput struct {
_ struct{} `type:"structure"` _ struct{} `type:"structure"`
@ -7112,7 +7120,6 @@ func (s *DescribeAutoScalingGroupsOutput) SetNextToken(v string) *DescribeAutoSc
return s return s
} }
// Contains the parameters for DescribeAutoScalingInstances.
// Please also see https://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DescribeAutoScalingInstancesType // Please also see https://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DescribeAutoScalingInstancesType
type DescribeAutoScalingInstancesInput struct { type DescribeAutoScalingInstancesInput struct {
_ struct{} `type:"structure"` _ struct{} `type:"structure"`
@ -7159,7 +7166,6 @@ func (s *DescribeAutoScalingInstancesInput) SetNextToken(v string) *DescribeAuto
return s return s
} }
// Contains the output of DescribeAutoScalingInstances.
// Please also see https://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/InstancesType // Please also see https://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/InstancesType
type DescribeAutoScalingInstancesOutput struct { type DescribeAutoScalingInstancesOutput struct {
_ struct{} `type:"structure"` _ struct{} `type:"structure"`
@ -7209,7 +7215,6 @@ func (s DescribeAutoScalingNotificationTypesInput) GoString() string {
return s.String() return s.String()
} }
// Contains the output of DescribeAutoScalingNotificationTypes.
// Please also see https://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DescribeAutoScalingNotificationTypesAnswer // Please also see https://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DescribeAutoScalingNotificationTypesAnswer
type DescribeAutoScalingNotificationTypesOutput struct { type DescribeAutoScalingNotificationTypesOutput struct {
_ struct{} `type:"structure"` _ struct{} `type:"structure"`
@ -7234,7 +7239,6 @@ func (s *DescribeAutoScalingNotificationTypesOutput) SetAutoScalingNotificationT
return s return s
} }
// Contains the parameters for DescribeLaunchConfigurations.
// Please also see https://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/LaunchConfigurationNamesType // Please also see https://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/LaunchConfigurationNamesType
type DescribeLaunchConfigurationsInput struct { type DescribeLaunchConfigurationsInput struct {
_ struct{} `type:"structure"` _ struct{} `type:"structure"`
@ -7280,7 +7284,6 @@ func (s *DescribeLaunchConfigurationsInput) SetNextToken(v string) *DescribeLaun
return s return s
} }
// Contains the output of DescribeLaunchConfigurations.
// Please also see https://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/LaunchConfigurationsType // Please also see https://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/LaunchConfigurationsType
type DescribeLaunchConfigurationsOutput struct { type DescribeLaunchConfigurationsOutput struct {
_ struct{} `type:"structure"` _ struct{} `type:"structure"`
@ -7332,7 +7335,6 @@ func (s DescribeLifecycleHookTypesInput) GoString() string {
return s.String() return s.String()
} }
// Contains the output of DescribeLifecycleHookTypes.
// Please also see https://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DescribeLifecycleHookTypesAnswer // Please also see https://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DescribeLifecycleHookTypesAnswer
type DescribeLifecycleHookTypesOutput struct { type DescribeLifecycleHookTypesOutput struct {
_ struct{} `type:"structure"` _ struct{} `type:"structure"`
@ -7357,7 +7359,6 @@ func (s *DescribeLifecycleHookTypesOutput) SetLifecycleHookTypes(v []*string) *D
return s return s
} }
// Contains the parameters for DescribeLifecycleHooks.
// Please also see https://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DescribeLifecycleHooksType // Please also see https://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DescribeLifecycleHooksType
type DescribeLifecycleHooksInput struct { type DescribeLifecycleHooksInput struct {
_ struct{} `type:"structure"` _ struct{} `type:"structure"`
@ -7410,7 +7411,6 @@ func (s *DescribeLifecycleHooksInput) SetLifecycleHookNames(v []*string) *Descri
return s return s
} }
// Contains the output of DescribeLifecycleHooks.
// Please also see https://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DescribeLifecycleHooksAnswer // Please also see https://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DescribeLifecycleHooksAnswer
type DescribeLifecycleHooksOutput struct { type DescribeLifecycleHooksOutput struct {
_ struct{} `type:"structure"` _ struct{} `type:"structure"`
@ -7435,7 +7435,6 @@ func (s *DescribeLifecycleHooksOutput) SetLifecycleHooks(v []*LifecycleHook) *De
return s return s
} }
// Contains the parameters for DescribeLoadBalancerTargetGroups.
// Please also see https://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DescribeLoadBalancerTargetGroupsRequest // Please also see https://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DescribeLoadBalancerTargetGroupsRequest
type DescribeLoadBalancerTargetGroupsInput struct { type DescribeLoadBalancerTargetGroupsInput struct {
_ struct{} `type:"structure"` _ struct{} `type:"structure"`
@ -7498,7 +7497,6 @@ func (s *DescribeLoadBalancerTargetGroupsInput) SetNextToken(v string) *Describe
return s return s
} }
// Contains the output of DescribeLoadBalancerTargetGroups.
// Please also see https://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DescribeLoadBalancerTargetGroupsResponse // Please also see https://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DescribeLoadBalancerTargetGroupsResponse
type DescribeLoadBalancerTargetGroupsOutput struct { type DescribeLoadBalancerTargetGroupsOutput struct {
_ struct{} `type:"structure"` _ struct{} `type:"structure"`
@ -7533,7 +7531,6 @@ func (s *DescribeLoadBalancerTargetGroupsOutput) SetNextToken(v string) *Describ
return s return s
} }
// Contains the parameters for DescribeLoadBalancers.
// Please also see https://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DescribeLoadBalancersRequest // Please also see https://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DescribeLoadBalancersRequest
type DescribeLoadBalancersInput struct { type DescribeLoadBalancersInput struct {
_ struct{} `type:"structure"` _ struct{} `type:"structure"`
@ -7596,7 +7593,6 @@ func (s *DescribeLoadBalancersInput) SetNextToken(v string) *DescribeLoadBalance
return s return s
} }
// Contains the output of DescribeLoadBalancers.
// Please also see https://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DescribeLoadBalancersResponse // Please also see https://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DescribeLoadBalancersResponse
type DescribeLoadBalancersOutput struct { type DescribeLoadBalancersOutput struct {
_ struct{} `type:"structure"` _ struct{} `type:"structure"`
@ -7646,7 +7642,6 @@ func (s DescribeMetricCollectionTypesInput) GoString() string {
return s.String() return s.String()
} }
// Contains the output of DescribeMetricsCollectionTypes.
// Please also see https://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DescribeMetricCollectionTypesAnswer // Please also see https://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DescribeMetricCollectionTypesAnswer
type DescribeMetricCollectionTypesOutput struct { type DescribeMetricCollectionTypesOutput struct {
_ struct{} `type:"structure"` _ struct{} `type:"structure"`
@ -7680,7 +7675,6 @@ func (s *DescribeMetricCollectionTypesOutput) SetMetrics(v []*MetricCollectionTy
return s return s
} }
// Contains the parameters for DescribeNotificationConfigurations.
// Please also see https://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DescribeNotificationConfigurationsType // Please also see https://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DescribeNotificationConfigurationsType
type DescribeNotificationConfigurationsInput struct { type DescribeNotificationConfigurationsInput struct {
_ struct{} `type:"structure"` _ struct{} `type:"structure"`
@ -7725,7 +7719,6 @@ func (s *DescribeNotificationConfigurationsInput) SetNextToken(v string) *Descri
return s return s
} }
// Contains the output from DescribeNotificationConfigurations.
// Please also see https://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DescribeNotificationConfigurationsAnswer // Please also see https://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DescribeNotificationConfigurationsAnswer
type DescribeNotificationConfigurationsOutput struct { type DescribeNotificationConfigurationsOutput struct {
_ struct{} `type:"structure"` _ struct{} `type:"structure"`
@ -7762,7 +7755,6 @@ func (s *DescribeNotificationConfigurationsOutput) SetNotificationConfigurations
return s return s
} }
// Contains the parameters for DescribePolicies.
// Please also see https://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DescribePoliciesType // Please also see https://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DescribePoliciesType
type DescribePoliciesInput struct { type DescribePoliciesInput struct {
_ struct{} `type:"structure"` _ struct{} `type:"structure"`
@ -7841,7 +7833,6 @@ func (s *DescribePoliciesInput) SetPolicyTypes(v []*string) *DescribePoliciesInp
return s return s
} }
// Contains the output of DescribePolicies.
// Please also see https://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/PoliciesType // Please also see https://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/PoliciesType
type DescribePoliciesOutput struct { type DescribePoliciesOutput struct {
_ struct{} `type:"structure"` _ struct{} `type:"structure"`
@ -7876,7 +7867,6 @@ func (s *DescribePoliciesOutput) SetScalingPolicies(v []*ScalingPolicy) *Describ
return s return s
} }
// Contains the parameters for DescribeScalingActivities.
// Please also see https://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DescribeScalingActivitiesType // Please also see https://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DescribeScalingActivitiesType
type DescribeScalingActivitiesInput struct { type DescribeScalingActivitiesInput struct {
_ struct{} `type:"structure"` _ struct{} `type:"structure"`
@ -7947,7 +7937,6 @@ func (s *DescribeScalingActivitiesInput) SetNextToken(v string) *DescribeScaling
return s return s
} }
// Contains the output of DescribeScalingActivities.
// Please also see https://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/ActivitiesType // Please also see https://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/ActivitiesType
type DescribeScalingActivitiesOutput struct { type DescribeScalingActivitiesOutput struct {
_ struct{} `type:"structure"` _ struct{} `type:"structure"`
@ -8000,7 +7989,6 @@ func (s DescribeScalingProcessTypesInput) GoString() string {
return s.String() return s.String()
} }
// Contains the output of DescribeScalingProcessTypes.
// Please also see https://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/ProcessesType // Please also see https://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/ProcessesType
type DescribeScalingProcessTypesOutput struct { type DescribeScalingProcessTypesOutput struct {
_ struct{} `type:"structure"` _ struct{} `type:"structure"`
@ -8025,7 +8013,6 @@ func (s *DescribeScalingProcessTypesOutput) SetProcesses(v []*ProcessType) *Desc
return s return s
} }
// Contains the parameters for DescribeScheduledActions.
// Please also see https://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DescribeScheduledActionsType // Please also see https://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DescribeScheduledActionsType
type DescribeScheduledActionsInput struct { type DescribeScheduledActionsInput struct {
_ struct{} `type:"structure"` _ struct{} `type:"structure"`
@ -8118,7 +8105,6 @@ func (s *DescribeScheduledActionsInput) SetStartTime(v time.Time) *DescribeSched
return s return s
} }
// Contains the output of DescribeScheduledActions.
// Please also see https://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/ScheduledActionsType // Please also see https://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/ScheduledActionsType
type DescribeScheduledActionsOutput struct { type DescribeScheduledActionsOutput struct {
_ struct{} `type:"structure"` _ struct{} `type:"structure"`
@ -8153,7 +8139,6 @@ func (s *DescribeScheduledActionsOutput) SetScheduledUpdateGroupActions(v []*Sch
return s return s
} }
// Contains the parameters for DescribeTags.
// Please also see https://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DescribeTagsType // Please also see https://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DescribeTagsType
type DescribeTagsInput struct { type DescribeTagsInput struct {
_ struct{} `type:"structure"` _ struct{} `type:"structure"`
@ -8198,7 +8183,6 @@ func (s *DescribeTagsInput) SetNextToken(v string) *DescribeTagsInput {
return s return s
} }
// Contains the output of DescribeTags.
// Please also see https://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/TagsType // Please also see https://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/TagsType
type DescribeTagsOutput struct { type DescribeTagsOutput struct {
_ struct{} `type:"structure"` _ struct{} `type:"structure"`
@ -8248,7 +8232,6 @@ func (s DescribeTerminationPolicyTypesInput) GoString() string {
return s.String() return s.String()
} }
// Contains the output of DescribeTerminationPolicyTypes.
// Please also see https://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DescribeTerminationPolicyTypesAnswer // Please also see https://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DescribeTerminationPolicyTypesAnswer
type DescribeTerminationPolicyTypesOutput struct { type DescribeTerminationPolicyTypesOutput struct {
_ struct{} `type:"structure"` _ struct{} `type:"structure"`
@ -8274,7 +8257,6 @@ func (s *DescribeTerminationPolicyTypesOutput) SetTerminationPolicyTypes(v []*st
return s return s
} }
// Contains the parameters for DetachInstances.
// Please also see https://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DetachInstancesQuery // Please also see https://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DetachInstancesQuery
type DetachInstancesInput struct { type DetachInstancesInput struct {
_ struct{} `type:"structure"` _ struct{} `type:"structure"`
@ -8341,7 +8323,6 @@ func (s *DetachInstancesInput) SetShouldDecrementDesiredCapacity(v bool) *Detach
return s return s
} }
// Contains the output of DetachInstances.
// Please also see https://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DetachInstancesAnswer // Please also see https://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DetachInstancesAnswer
type DetachInstancesOutput struct { type DetachInstancesOutput struct {
_ struct{} `type:"structure"` _ struct{} `type:"structure"`
@ -8437,7 +8418,6 @@ func (s DetachLoadBalancerTargetGroupsOutput) GoString() string {
return s.String() return s.String()
} }
// Contains the parameters for DetachLoadBalancers.
// Please also see https://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DetachLoadBalancersType // Please also see https://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DetachLoadBalancersType
type DetachLoadBalancersInput struct { type DetachLoadBalancersInput struct {
_ struct{} `type:"structure"` _ struct{} `type:"structure"`
@ -8494,7 +8474,6 @@ func (s *DetachLoadBalancersInput) SetLoadBalancerNames(v []*string) *DetachLoad
return s return s
} }
// Contains the output for DetachLoadBalancers.
// Please also see https://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DetachLoadBalancersResultType // Please also see https://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DetachLoadBalancersResultType
type DetachLoadBalancersOutput struct { type DetachLoadBalancersOutput struct {
_ struct{} `type:"structure"` _ struct{} `type:"structure"`
@ -8510,7 +8489,6 @@ func (s DetachLoadBalancersOutput) GoString() string {
return s.String() return s.String()
} }
// Contains the parameters for DisableMetricsCollection.
// Please also see https://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DisableMetricsCollectionQuery // Please also see https://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DisableMetricsCollectionQuery
type DisableMetricsCollectionInput struct { type DisableMetricsCollectionInput struct {
_ struct{} `type:"structure"` _ struct{} `type:"structure"`
@ -8707,7 +8685,6 @@ func (s *Ebs) SetVolumeType(v string) *Ebs {
return s return s
} }
// Contains the parameters for EnableMetricsCollection.
// Please also see https://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/EnableMetricsCollectionQuery // Please also see https://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/EnableMetricsCollectionQuery
type EnableMetricsCollectionInput struct { type EnableMetricsCollectionInput struct {
_ struct{} `type:"structure"` _ struct{} `type:"structure"`
@ -8859,7 +8836,6 @@ func (s *EnabledMetric) SetMetric(v string) *EnabledMetric {
return s return s
} }
// Contains the parameters for EnteStandby.
// Please also see https://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/EnterStandbyQuery // Please also see https://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/EnterStandbyQuery
type EnterStandbyInput struct { type EnterStandbyInput struct {
_ struct{} `type:"structure"` _ struct{} `type:"structure"`
@ -8929,7 +8905,6 @@ func (s *EnterStandbyInput) SetShouldDecrementDesiredCapacity(v bool) *EnterStan
return s return s
} }
// Contains the output of EnterStandby.
// Please also see https://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/EnterStandbyAnswer // Please also see https://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/EnterStandbyAnswer
type EnterStandbyOutput struct { type EnterStandbyOutput struct {
_ struct{} `type:"structure"` _ struct{} `type:"structure"`
@ -8954,7 +8929,6 @@ func (s *EnterStandbyOutput) SetActivities(v []*Activity) *EnterStandbyOutput {
return s return s
} }
// Contains the parameters for ExecutePolicy.
// Please also see https://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/ExecutePolicyType // Please also see https://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/ExecutePolicyType
type ExecutePolicyInput struct { type ExecutePolicyInput struct {
_ struct{} `type:"structure"` _ struct{} `type:"structure"`
@ -9071,7 +9045,6 @@ func (s ExecutePolicyOutput) GoString() string {
return s.String() return s.String()
} }
// Contains the parameters for ExitStandby.
// Please also see https://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/ExitStandbyQuery // Please also see https://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/ExitStandbyQuery
type ExitStandbyInput struct { type ExitStandbyInput struct {
_ struct{} `type:"structure"` _ struct{} `type:"structure"`
@ -9123,7 +9096,6 @@ func (s *ExitStandbyInput) SetInstanceIds(v []*string) *ExitStandbyInput {
return s return s
} }
// Contains the parameters for ExitStandby.
// Please also see https://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/ExitStandbyAnswer // Please also see https://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/ExitStandbyAnswer
type ExitStandbyOutput struct { type ExitStandbyOutput struct {
_ struct{} `type:"structure"` _ struct{} `type:"structure"`
@ -9606,12 +9578,12 @@ func (s *InstanceDetails) SetProtectedFromScaleIn(v bool) *InstanceDetails {
return s return s
} }
// Describes whether instance monitoring is enabled. // Describes whether detailed monitoring is enabled for the Auto Scaling instances.
// Please also see https://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/InstanceMonitoring // Please also see https://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/InstanceMonitoring
type InstanceMonitoring struct { type InstanceMonitoring struct {
_ struct{} `type:"structure"` _ struct{} `type:"structure"`
// If True, instance monitoring is enabled. // If true, detailed monitoring is enabled. Otherwise, basic monitoring is enabled.
Enabled *bool `type:"boolean"` Enabled *bool `type:"boolean"`
} }
@ -9837,14 +9809,9 @@ func (s *LaunchConfiguration) SetUserData(v string) *LaunchConfiguration {
} }
// Describes a lifecycle hook, which tells Auto Scaling that you want to perform // Describes a lifecycle hook, which tells Auto Scaling that you want to perform
// an action when an instance launches or terminates. When you have a lifecycle // an action whenever it launches instances or whenever it terminates instances.
// hook in place, the Auto Scaling group will either:
// //
// * Pause the instance after it launches, but before it is put into service // For more information, see Auto Scaling Lifecycle Hooks (http://docs.aws.amazon.com/autoscaling/latest/userguide/lifecycle-hooks.html)
//
// * Pause the instance as it terminates, but before it is fully terminated
//
// For more information, see Auto Scaling Lifecycle (http://docs.aws.amazon.com/autoscaling/latest/userguide/AutoScalingGroupLifecycle.html)
// in the Auto Scaling User Guide. // in the Auto Scaling User Guide.
// Please also see https://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/LifecycleHook // Please also see https://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/LifecycleHook
type LifecycleHook struct { type LifecycleHook struct {
@ -9864,9 +9831,8 @@ type LifecycleHook struct {
GlobalTimeout *int64 `type:"integer"` GlobalTimeout *int64 `type:"integer"`
// The maximum time, in seconds, that can elapse before the lifecycle hook times // The maximum time, in seconds, that can elapse before the lifecycle hook times
// out. The default is 3600 seconds (1 hour). When the lifecycle hook times // out. If the lifecycle hook times out, Auto Scaling performs the default action.
// out, Auto Scaling performs the default action. You can prevent the lifecycle // You can prevent the lifecycle hook from timing out by calling RecordLifecycleActionHeartbeat.
// hook from timing out by calling RecordLifecycleActionHeartbeat.
HeartbeatTimeout *int64 `type:"integer"` HeartbeatTimeout *int64 `type:"integer"`
// The name of the lifecycle hook. // The name of the lifecycle hook.
@ -9880,24 +9846,9 @@ type LifecycleHook struct {
// a message to the notification target. // a message to the notification target.
NotificationMetadata *string `min:"1" type:"string"` NotificationMetadata *string `min:"1" type:"string"`
// The ARN of the notification target that Auto Scaling uses to notify you when // The ARN of the target that Auto Scaling sends notifications to when an instance
// an instance is in the transition state for the lifecycle hook. This ARN target // is in the transition state for the lifecycle hook. The notification target
// can be either an SQS queue or an SNS topic. The notification message sent // can be either an SQS queue or an SNS topic.
// to the target includes the following:
//
// * Lifecycle action token
//
// * User account ID
//
// * Name of the Auto Scaling group
//
// * Lifecycle hook name
//
// * EC2 instance ID
//
// * Lifecycle transition
//
// * Notification metadata
NotificationTargetARN *string `min:"1" type:"string"` NotificationTargetARN *string `min:"1" type:"string"`
// The ARN of the IAM role that allows the Auto Scaling group to publish to // The ARN of the IAM role that allows the Auto Scaling group to publish to
@ -9969,6 +9920,122 @@ func (s *LifecycleHook) SetRoleARN(v string) *LifecycleHook {
return s return s
} }
// Describes a lifecycle hook, which tells Auto Scaling that you want to perform
// an action whenever it launches instances or whenever it terminates instances.
//
// For more information, see Auto Scaling Lifecycle Hooks (http://docs.aws.amazon.com/autoscaling/latest/userguide/lifecycle-hooks.html)
// in the Auto Scaling User Guide.
// Please also see https://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/LifecycleHookSpecification
type LifecycleHookSpecification struct {
_ struct{} `type:"structure"`
// Defines the action the Auto Scaling group should take when the lifecycle
// hook timeout elapses or if an unexpected failure occurs. The valid values
// are CONTINUE and ABANDON. The default value is CONTINUE.
DefaultResult *string `type:"string"`
// The maximum time, in seconds, that can elapse before the lifecycle hook times
// out. If the lifecycle hook times out, Auto Scaling performs the default action.
// You can prevent the lifecycle hook from timing out by calling RecordLifecycleActionHeartbeat.
HeartbeatTimeout *int64 `type:"integer"`
// The name of the lifecycle hook.
//
// LifecycleHookName is a required field
LifecycleHookName *string `min:"1" type:"string" required:"true"`
// The state of the EC2 instance to which you want to attach the lifecycle hook.
// For a list of lifecycle hook types, see DescribeLifecycleHookTypes.
LifecycleTransition *string `type:"string"`
// Additional information that you want to include any time Auto Scaling sends
// a message to the notification target.
NotificationMetadata *string `min:"1" type:"string"`
// The ARN of the target that Auto Scaling sends notifications to when an instance
// is in the transition state for the lifecycle hook. The notification target
// can be either an SQS queue or an SNS topic.
NotificationTargetARN *string `type:"string"`
// The ARN of the IAM role that allows the Auto Scaling group to publish to
// the specified notification target.
RoleARN *string `min:"1" type:"string"`
}
// String returns the string representation
func (s LifecycleHookSpecification) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s LifecycleHookSpecification) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
func (s *LifecycleHookSpecification) Validate() error {
invalidParams := request.ErrInvalidParams{Context: "LifecycleHookSpecification"}
if s.LifecycleHookName == nil {
invalidParams.Add(request.NewErrParamRequired("LifecycleHookName"))
}
if s.LifecycleHookName != nil && len(*s.LifecycleHookName) < 1 {
invalidParams.Add(request.NewErrParamMinLen("LifecycleHookName", 1))
}
if s.NotificationMetadata != nil && len(*s.NotificationMetadata) < 1 {
invalidParams.Add(request.NewErrParamMinLen("NotificationMetadata", 1))
}
if s.RoleARN != nil && len(*s.RoleARN) < 1 {
invalidParams.Add(request.NewErrParamMinLen("RoleARN", 1))
}
if invalidParams.Len() > 0 {
return invalidParams
}
return nil
}
// SetDefaultResult sets the DefaultResult field's value.
func (s *LifecycleHookSpecification) SetDefaultResult(v string) *LifecycleHookSpecification {
s.DefaultResult = &v
return s
}
// SetHeartbeatTimeout sets the HeartbeatTimeout field's value.
func (s *LifecycleHookSpecification) SetHeartbeatTimeout(v int64) *LifecycleHookSpecification {
s.HeartbeatTimeout = &v
return s
}
// SetLifecycleHookName sets the LifecycleHookName field's value.
func (s *LifecycleHookSpecification) SetLifecycleHookName(v string) *LifecycleHookSpecification {
s.LifecycleHookName = &v
return s
}
// SetLifecycleTransition sets the LifecycleTransition field's value.
func (s *LifecycleHookSpecification) SetLifecycleTransition(v string) *LifecycleHookSpecification {
s.LifecycleTransition = &v
return s
}
// SetNotificationMetadata sets the NotificationMetadata field's value.
func (s *LifecycleHookSpecification) SetNotificationMetadata(v string) *LifecycleHookSpecification {
s.NotificationMetadata = &v
return s
}
// SetNotificationTargetARN sets the NotificationTargetARN field's value.
func (s *LifecycleHookSpecification) SetNotificationTargetARN(v string) *LifecycleHookSpecification {
s.NotificationTargetARN = &v
return s
}
// SetRoleARN sets the RoleARN field's value.
func (s *LifecycleHookSpecification) SetRoleARN(v string) *LifecycleHookSpecification {
s.RoleARN = &v
return s
}
// Describes the state of a Classic Load Balancer. // Describes the state of a Classic Load Balancer.
// //
// If you specify a load balancer when creating the Auto Scaling group, the // If you specify a load balancer when creating the Auto Scaling group, the
@ -10258,20 +10325,7 @@ func (s *NotificationConfiguration) SetTopicARN(v string) *NotificationConfigura
return s return s
} }
// Configures a predefined metric for a target tracking policy. The following // Configures a predefined metric for a target tracking policy.
// predefined metrics are available:
//
// * ASGAverageCPUUtilization - average CPU utilization of the Auto Scaling
// group
//
// * ASGAverageNetworkIn - average number of bytes received on all network
// interfaces by the Auto Scaling group
//
// * ASGAverageNetworkOut - average number of bytes sent out on all network
// interfaces by the Auto Scaling group
//
// * ALBRequestCountPerTarget - number of requests completed per target in
// an Application Load Balancer target group
// Please also see https://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/PredefinedMetricSpecification // Please also see https://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/PredefinedMetricSpecification
type PredefinedMetricSpecification struct { type PredefinedMetricSpecification struct {
_ struct{} `type:"structure"` _ struct{} `type:"structure"`
@ -10281,11 +10335,26 @@ type PredefinedMetricSpecification struct {
// PredefinedMetricType is a required field // PredefinedMetricType is a required field
PredefinedMetricType *string `type:"string" required:"true" enum:"MetricType"` PredefinedMetricType *string `type:"string" required:"true" enum:"MetricType"`
// Identifies the resource associated with the metric type. For predefined metric // Identifies the resource associated with the metric type. The following predefined
// types ASGAverageCPUUtilization, ASGAverageNetworkIn and ASGAverageNetworkOut, // metrics are available:
// the parameter must not be specified as the resource associated with the metric //
// type is the Auto Scaling group. For predefined metric type ALBRequestCountPerTarget, // * ASGAverageCPUUtilization - average CPU utilization of the Auto Scaling
// the parameter must be specified in the format app/load-balancer-name/load-balancer-id/targetgroup/target-group-name/target-group-id, // group
//
// * ASGAverageNetworkIn - average number of bytes received on all network
// interfaces by the Auto Scaling group
//
// * ASGAverageNetworkOut - average number of bytes sent out on all network
// interfaces by the Auto Scaling group
//
// * ALBRequestCountPerTarget - number of requests completed per target in
// an Application Load Balancer target group
//
// For predefined metric types ASGAverageCPUUtilization, ASGAverageNetworkIn
// and ASGAverageNetworkOut, the parameter must not be specified as the resource
// associated with the metric type is the Auto Scaling group. For predefined
// metric type ALBRequestCountPerTarget, the parameter must be specified in
// the format: app/load-balancer-name/load-balancer-id/targetgroup/target-group-name/target-group-id,
// where app/load-balancer-name/load-balancer-id is the final portion of the // where app/load-balancer-name/load-balancer-id is the final portion of the
// load balancer ARN, and targetgroup/target-group-name/target-group-id is the // load balancer ARN, and targetgroup/target-group-name/target-group-id is the
// final portion of the target group ARN. The target group must be attached // final portion of the target group ARN. The target group must be attached
@ -10377,7 +10446,6 @@ func (s *ProcessType) SetProcessName(v string) *ProcessType {
return s return s
} }
// Contains the parameters for PutLifecycleHook.
// Please also see https://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/PutLifecycleHookType // Please also see https://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/PutLifecycleHookType
type PutLifecycleHookInput struct { type PutLifecycleHookInput struct {
_ struct{} `type:"structure"` _ struct{} `type:"structure"`
@ -10393,10 +10461,12 @@ type PutLifecycleHookInput struct {
// be either CONTINUE or ABANDON. The default value is ABANDON. // be either CONTINUE or ABANDON. The default value is ABANDON.
DefaultResult *string `type:"string"` DefaultResult *string `type:"string"`
// The amount of time, in seconds, that can elapse before the lifecycle hook // The maximum time, in seconds, that can elapse before the lifecycle hook times
// times out. When the lifecycle hook times out, Auto Scaling performs the default // out. The range is from 30 to 7200 seconds. The default is 3600 seconds (1
// action. You can prevent the lifecycle hook from timing out by calling RecordLifecycleActionHeartbeat. // hour).
// The default is 3600 seconds (1 hour). //
// If the lifecycle hook times out, Auto Scaling performs the default action.
// You can prevent the lifecycle hook from timing out by calling RecordLifecycleActionHeartbeat.
HeartbeatTimeout *int64 `type:"integer"` HeartbeatTimeout *int64 `type:"integer"`
// The name of the lifecycle hook. // The name of the lifecycle hook.
@ -10523,7 +10593,6 @@ func (s *PutLifecycleHookInput) SetRoleARN(v string) *PutLifecycleHookInput {
return s return s
} }
// Contains the output of PutLifecycleHook.
// Please also see https://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/PutLifecycleHookAnswer // Please also see https://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/PutLifecycleHookAnswer
type PutLifecycleHookOutput struct { type PutLifecycleHookOutput struct {
_ struct{} `type:"structure"` _ struct{} `type:"structure"`
@ -10539,7 +10608,6 @@ func (s PutLifecycleHookOutput) GoString() string {
return s.String() return s.String()
} }
// Contains the parameters for PutNotificationConfiguration.
// Please also see https://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/PutNotificationConfigurationType // Please also see https://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/PutNotificationConfigurationType
type PutNotificationConfigurationInput struct { type PutNotificationConfigurationInput struct {
_ struct{} `type:"structure"` _ struct{} `type:"structure"`
@ -10630,7 +10698,6 @@ func (s PutNotificationConfigurationOutput) GoString() string {
return s.String() return s.String()
} }
// Contains the parameters for PutScalingPolicy.
// Please also see https://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/PutScalingPolicyType // Please also see https://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/PutScalingPolicyType
type PutScalingPolicyInput struct { type PutScalingPolicyInput struct {
_ struct{} `type:"structure"` _ struct{} `type:"structure"`
@ -10708,7 +10775,7 @@ type PutScalingPolicyInput struct {
// otherwise. // otherwise.
StepAdjustments []*StepAdjustment `type:"list"` StepAdjustments []*StepAdjustment `type:"list"`
// The configuration of a target tracking policy. // A target tracking policy.
// //
// This parameter is required if the policy type is TargetTrackingScaling and // This parameter is required if the policy type is TargetTrackingScaling and
// not supported otherwise. // not supported otherwise.
@ -10848,8 +10915,7 @@ func (s *PutScalingPolicyInput) SetTargetTrackingConfiguration(v *TargetTracking
type PutScalingPolicyOutput struct { type PutScalingPolicyOutput struct {
_ struct{} `type:"structure"` _ struct{} `type:"structure"`
// The CloudWatch alarms created for the target tracking policy. This parameter // The CloudWatch alarms created for the target tracking policy.
// will be empty if the policy type is anything other than TargetTrackingScaling.
Alarms []*Alarm `type:"list"` Alarms []*Alarm `type:"list"`
// The Amazon Resource Name (ARN) of the policy. // The Amazon Resource Name (ARN) of the policy.
@ -10878,7 +10944,6 @@ func (s *PutScalingPolicyOutput) SetPolicyARN(v string) *PutScalingPolicyOutput
return s return s
} }
// Contains the parameters for PutScheduledUpdateGroupAction.
// Please also see https://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/PutScheduledUpdateGroupActionType // Please also see https://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/PutScheduledUpdateGroupActionType
type PutScheduledUpdateGroupActionInput struct { type PutScheduledUpdateGroupActionInput struct {
_ struct{} `type:"structure"` _ struct{} `type:"structure"`
@ -11028,7 +11093,6 @@ func (s PutScheduledUpdateGroupActionOutput) GoString() string {
return s.String() return s.String()
} }
// Contains the parameters for RecordLifecycleActionHeartbeat.
// Please also see https://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/RecordLifecycleActionHeartbeatType // Please also see https://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/RecordLifecycleActionHeartbeatType
type RecordLifecycleActionHeartbeatInput struct { type RecordLifecycleActionHeartbeatInput struct {
_ struct{} `type:"structure"` _ struct{} `type:"structure"`
@ -11114,7 +11178,6 @@ func (s *RecordLifecycleActionHeartbeatInput) SetLifecycleHookName(v string) *Re
return s return s
} }
// Contains the output of RecordLifecycleActionHeartBeat.
// Please also see https://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/RecordLifecycleActionHeartbeatAnswer // Please also see https://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/RecordLifecycleActionHeartbeatAnswer
type RecordLifecycleActionHeartbeatOutput struct { type RecordLifecycleActionHeartbeatOutput struct {
_ struct{} `type:"structure"` _ struct{} `type:"structure"`
@ -11161,7 +11224,7 @@ type ScalingPolicy struct {
AutoScalingGroupName *string `min:"1" type:"string"` AutoScalingGroupName *string `min:"1" type:"string"`
// The amount of time, in seconds, after a scaling activity completes before // The amount of time, in seconds, after a scaling activity completes before
// any further trigger-related scaling activities can start. // any further dynamic scaling activities can start.
Cooldown *int64 `type:"integer"` Cooldown *int64 `type:"integer"`
// The estimated time, in seconds, until a newly launched instance can contribute // The estimated time, in seconds, until a newly launched instance can contribute
@ -11297,7 +11360,6 @@ func (s *ScalingPolicy) SetTargetTrackingConfiguration(v *TargetTrackingConfigur
return s return s
} }
// Contains the parameters for SuspendProcesses and ResumeProcesses.
// Please also see https://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/ScalingProcessQuery // Please also see https://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/ScalingProcessQuery
type ScalingProcessQuery struct { type ScalingProcessQuery struct {
_ struct{} `type:"structure"` _ struct{} `type:"structure"`
@ -11477,7 +11539,6 @@ func (s *ScheduledUpdateGroupAction) SetTime(v time.Time) *ScheduledUpdateGroupA
return s return s
} }
// Contains the parameters for SetDesiredCapacity.
// Please also see https://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/SetDesiredCapacityType // Please also see https://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/SetDesiredCapacityType
type SetDesiredCapacityInput struct { type SetDesiredCapacityInput struct {
_ struct{} `type:"structure"` _ struct{} `type:"structure"`
@ -11561,7 +11622,6 @@ func (s SetDesiredCapacityOutput) GoString() string {
return s.String() return s.String()
} }
// Contains the parameters for SetInstanceHealth.
// Please also see https://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/SetInstanceHealthQuery // Please also see https://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/SetInstanceHealthQuery
type SetInstanceHealthInput struct { type SetInstanceHealthInput struct {
_ struct{} `type:"structure"` _ struct{} `type:"structure"`
@ -11653,7 +11713,6 @@ func (s SetInstanceHealthOutput) GoString() string {
return s.String() return s.String()
} }
// Contains the parameters for SetInstanceProtection.
// Please also see https://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/SetInstanceProtectionQuery // Please also see https://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/SetInstanceProtectionQuery
type SetInstanceProtectionInput struct { type SetInstanceProtectionInput struct {
_ struct{} `type:"structure"` _ struct{} `type:"structure"`
@ -11725,7 +11784,6 @@ func (s *SetInstanceProtectionInput) SetProtectedFromScaleIn(v bool) *SetInstanc
return s return s
} }
// Contains the output of SetInstanceProtection.
// Please also see https://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/SetInstanceProtectionAnswer // Please also see https://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/SetInstanceProtectionAnswer
type SetInstanceProtectionOutput struct { type SetInstanceProtectionOutput struct {
_ struct{} `type:"structure"` _ struct{} `type:"structure"`
@ -12039,8 +12097,10 @@ type TargetTrackingConfiguration struct {
// A customized metric. // A customized metric.
CustomizedMetricSpecification *CustomizedMetricSpecification `type:"structure"` CustomizedMetricSpecification *CustomizedMetricSpecification `type:"structure"`
// If the parameter is true, then scale-in will be disabled for the target tracking // Indicates whether scale in by the target tracking policy is disabled. If
// policy, i.e. the target tracking policy will not scale in the Auto Scaling // the value is true, scale in is disabled and the target tracking policy won't
// remove instances from the Auto Scaling group. Otherwise, scale in is enabled
// and the target tracking policy can remove instances from the Auto Scaling
// group. The default value is false. // group. The default value is false.
DisableScaleIn *bool `type:"boolean"` DisableScaleIn *bool `type:"boolean"`
@ -12111,7 +12171,6 @@ func (s *TargetTrackingConfiguration) SetTargetValue(v float64) *TargetTrackingC
return s return s
} }
// Contains the parameters for TerminateInstanceInAutoScalingGroup.
// Please also see https://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/TerminateInstanceInAutoScalingGroupType // Please also see https://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/TerminateInstanceInAutoScalingGroupType
type TerminateInstanceInAutoScalingGroupInput struct { type TerminateInstanceInAutoScalingGroupInput struct {
_ struct{} `type:"structure"` _ struct{} `type:"structure"`
@ -12169,7 +12228,6 @@ func (s *TerminateInstanceInAutoScalingGroupInput) SetShouldDecrementDesiredCapa
return s return s
} }
// Contains the output of TerminateInstancesInAutoScalingGroup.
// Please also see https://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/ActivityType // Please also see https://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/ActivityType
type TerminateInstanceInAutoScalingGroupOutput struct { type TerminateInstanceInAutoScalingGroupOutput struct {
_ struct{} `type:"structure"` _ struct{} `type:"structure"`
@ -12194,7 +12252,6 @@ func (s *TerminateInstanceInAutoScalingGroupOutput) SetActivity(v *Activity) *Te
return s return s
} }
// Contains the parameters for UpdateAutoScalingGroup.
// Please also see https://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/UpdateAutoScalingGroupType // Please also see https://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/UpdateAutoScalingGroupType
type UpdateAutoScalingGroupInput struct { type UpdateAutoScalingGroupInput struct {
_ struct{} `type:"structure"` _ struct{} `type:"structure"`

View File

@ -14,7 +14,7 @@
// //
// Using the Client // Using the Client
// //
// To Auto Scaling with the SDK use the New function to create // To contact Auto Scaling with the SDK use the New function to create
// a new service client. With that client you can make API requests to the service. // a new service client. With that client you can make API requests to the service.
// These clients are safe to use concurrently. // These clients are safe to use concurrently.
// //

4733
vendor/github.com/aws/aws-sdk-go/service/batch/api.go generated vendored Normal file

File diff suppressed because it is too large Load Diff

44
vendor/github.com/aws/aws-sdk-go/service/batch/doc.go generated vendored Normal file
View File

@ -0,0 +1,44 @@
// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
// Package batch provides the client and types for making API
// requests to AWS Batch.
//
// AWS Batch enables you to run batch computing workloads on the AWS Cloud.
// Batch computing is a common way for developers, scientists, and engineers
// to access large amounts of compute resources, and AWS Batch removes the undifferentiated
// heavy lifting of configuring and managing the required infrastructure. AWS
// Batch will be familiar to users of traditional batch computing software.
// This service can efficiently provision resources in response to jobs submitted
// in order to eliminate capacity constraints, reduce compute costs, and deliver
// results quickly.
//
// As a fully managed service, AWS Batch enables developers, scientists, and
// engineers to run batch computing workloads of any scale. AWS Batch automatically
// provisions compute resources and optimizes the workload distribution based
// on the quantity and scale of the workloads. With AWS Batch, there is no need
// to install or manage batch computing software, which allows you to focus
// on analyzing results and solving problems. AWS Batch reduces operational
// complexities, saves time, and reduces costs, which makes it easy for developers,
// scientists, and engineers to run their batch jobs in the AWS Cloud.
//
// See https://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10 for more information on this service.
//
// See batch package documentation for more information.
// https://docs.aws.amazon.com/sdk-for-go/api/service/batch/
//
// Using the Client
//
// To contact AWS Batch with the SDK use the New function to create
// a new service client. With that client you can make API requests to the service.
// These clients are safe to use concurrently.
//
// See the SDK's documentation for more information on how to use the SDK.
// https://docs.aws.amazon.com/sdk-for-go/api/
//
// See aws.Config documentation for more information on configuring SDK clients.
// https://docs.aws.amazon.com/sdk-for-go/api/aws/#Config
//
// See the AWS Batch client Batch for more
// information on creating client for this service.
// https://docs.aws.amazon.com/sdk-for-go/api/service/batch/#New
package batch

View File

@ -0,0 +1,20 @@
// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
package batch
const (
// ErrCodeClientException for service response error code
// "ClientException".
//
// These errors are usually caused by a client action, such as using an action
// or resource on behalf of a user that doesn't have permission to use the action
// or resource, or specifying an identifier that is not valid.
ErrCodeClientException = "ClientException"
// ErrCodeServerException for service response error code
// "ServerException".
//
// These errors are usually caused by a server issue.
ErrCodeServerException = "ServerException"
)

View File

@ -0,0 +1,94 @@
// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
package batch
import (
"github.com/aws/aws-sdk-go/aws"
"github.com/aws/aws-sdk-go/aws/client"
"github.com/aws/aws-sdk-go/aws/client/metadata"
"github.com/aws/aws-sdk-go/aws/request"
"github.com/aws/aws-sdk-go/aws/signer/v4"
"github.com/aws/aws-sdk-go/private/protocol/restjson"
)
// Batch provides the API operation methods for making requests to
// AWS Batch. See this package's package overview docs
// for details on the service.
//
// Batch methods are safe to use concurrently. It is not safe to
// modify mutate any of the struct's properties though.
type Batch struct {
*client.Client
}
// Used for custom client initialization logic
var initClient func(*client.Client)
// Used for custom request initialization logic
var initRequest func(*request.Request)
// Service information constants
const (
ServiceName = "batch" // Service endpoint prefix API calls made to.
EndpointsID = ServiceName // Service ID for Regions and Endpoints metadata.
)
// New creates a new instance of the Batch client with a session.
// If additional configuration is needed for the client instance use the optional
// aws.Config parameter to add your extra config.
//
// Example:
// // Create a Batch client from just a session.
// svc := batch.New(mySession)
//
// // Create a Batch client with additional configuration
// svc := batch.New(mySession, aws.NewConfig().WithRegion("us-west-2"))
func New(p client.ConfigProvider, cfgs ...*aws.Config) *Batch {
c := p.ClientConfig(EndpointsID, cfgs...)
return newClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion, c.SigningName)
}
// newClient creates, initializes and returns a new service client instance.
func newClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion, signingName string) *Batch {
svc := &Batch{
Client: client.New(
cfg,
metadata.ClientInfo{
ServiceName: ServiceName,
SigningName: signingName,
SigningRegion: signingRegion,
Endpoint: endpoint,
APIVersion: "2016-08-10",
JSONVersion: "1.1",
},
handlers,
),
}
// Handlers
svc.Handlers.Sign.PushBackNamed(v4.SignRequestHandler)
svc.Handlers.Build.PushBackNamed(restjson.BuildHandler)
svc.Handlers.Unmarshal.PushBackNamed(restjson.UnmarshalHandler)
svc.Handlers.UnmarshalMeta.PushBackNamed(restjson.UnmarshalMetaHandler)
svc.Handlers.UnmarshalError.PushBackNamed(restjson.UnmarshalErrorHandler)
// Run custom client initialization if present
if initClient != nil {
initClient(svc.Client)
}
return svc
}
// newRequest creates a new request for a Batch operation and runs any
// custom request initialization.
func (c *Batch) newRequest(op *request.Operation, params, data interface{}) *request.Request {
req := c.NewRequest(op, params, data)
// Run custom request initialization if present
if initRequest != nil {
initRequest(req)
}
return req
}

View File

@ -3559,6 +3559,88 @@ func (c *CloudFormation) UpdateStackSetWithContext(ctx aws.Context, input *Updat
return out, req.Send() return out, req.Send()
} }
const opUpdateTerminationProtection = "UpdateTerminationProtection"
// UpdateTerminationProtectionRequest generates a "aws/request.Request" representing the
// client's request for the UpdateTerminationProtection operation. The "output" return
// value will be populated with the request's response once the request complets
// successfuly.
//
// Use "Send" method on the returned Request to send the API call to the service.
// the "output" return value is not valid until after Send returns without error.
//
// See UpdateTerminationProtection for more information on using the UpdateTerminationProtection
// API call, and error handling.
//
// This method is useful when you want to inject custom logic or configuration
// into the SDK's request lifecycle. Such as custom headers, or retry logic.
//
//
// // Example sending a request using the UpdateTerminationProtectionRequest method.
// req, resp := client.UpdateTerminationProtectionRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
// Please also see https://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/UpdateTerminationProtection
func (c *CloudFormation) UpdateTerminationProtectionRequest(input *UpdateTerminationProtectionInput) (req *request.Request, output *UpdateTerminationProtectionOutput) {
op := &request.Operation{
Name: opUpdateTerminationProtection,
HTTPMethod: "POST",
HTTPPath: "/",
}
if input == nil {
input = &UpdateTerminationProtectionInput{}
}
output = &UpdateTerminationProtectionOutput{}
req = c.newRequest(op, input, output)
return
}
// UpdateTerminationProtection API operation for AWS CloudFormation.
//
// Updates termination protection for the specified stack. If a user attempts
// to delete a stack with termination protection enabled, the operation fails
// and the stack remains unchanged. For more information, see Protecting a Stack
// From Being Deleted (http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-protect-stacks.html)
// in the AWS CloudFormation User Guide.
//
// For nested stacks (http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-nested-stacks.html),
// termination protection is set on the root stack and cannot be changed directly
// on the nested stack.
//
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
// with awserr.Error's Code and Message methods to get detailed information about
// the error.
//
// See the AWS API reference guide for AWS CloudFormation's
// API operation UpdateTerminationProtection for usage and error information.
// Please also see https://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/UpdateTerminationProtection
func (c *CloudFormation) UpdateTerminationProtection(input *UpdateTerminationProtectionInput) (*UpdateTerminationProtectionOutput, error) {
req, out := c.UpdateTerminationProtectionRequest(input)
return out, req.Send()
}
// UpdateTerminationProtectionWithContext is the same as UpdateTerminationProtection with the addition of
// the ability to pass a context and additional request options.
//
// See UpdateTerminationProtection for details on how to use this API operation.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
func (c *CloudFormation) UpdateTerminationProtectionWithContext(ctx aws.Context, input *UpdateTerminationProtectionInput, opts ...request.Option) (*UpdateTerminationProtectionOutput, error) {
req, out := c.UpdateTerminationProtectionRequest(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
const opValidateTemplate = "ValidateTemplate" const opValidateTemplate = "ValidateTemplate"
// ValidateTemplateRequest generates a "aws/request.Request" representing the // ValidateTemplateRequest generates a "aws/request.Request" representing the
@ -4473,6 +4555,18 @@ type CreateStackInput struct {
// Default: false // Default: false
DisableRollback *bool `type:"boolean"` DisableRollback *bool `type:"boolean"`
// Whether to enable termination protection on the specified stack. If a user
// attempts to delete a stack with termination protection enabled, the operation
// fails and the stack remains unchanged. For more information, see Protecting
// a Stack From Being Deleted (http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-protect-stacks.html)
// in the AWS CloudFormation User Guide. Termination protection is disabled
// on stacks by default.
//
// For nested stacks (http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-nested-stacks.html),
// termination protection is set on the root stack and cannot be changed directly
// on the nested stack.
EnableTerminationProtection *bool `type:"boolean"`
// The Simple Notification Service (SNS) topic ARNs to publish stack related // The Simple Notification Service (SNS) topic ARNs to publish stack related
// events. You can find your SNS topic ARNs using the SNS console or your Command // events. You can find your SNS topic ARNs using the SNS console or your Command
// Line Interface (CLI). // Line Interface (CLI).
@ -4651,6 +4745,12 @@ func (s *CreateStackInput) SetDisableRollback(v bool) *CreateStackInput {
return s return s
} }
// SetEnableTerminationProtection sets the EnableTerminationProtection field's value.
func (s *CreateStackInput) SetEnableTerminationProtection(v bool) *CreateStackInput {
s.EnableTerminationProtection = &v
return s
}
// SetNotificationARNs sets the NotificationARNs field's value. // SetNotificationARNs sets the NotificationARNs field's value.
func (s *CreateStackInput) SetNotificationARNs(v []*string) *CreateStackInput { func (s *CreateStackInput) SetNotificationARNs(v []*string) *CreateStackInput {
s.NotificationARNs = v s.NotificationARNs = v
@ -8723,6 +8823,9 @@ type Stack struct {
// CreationTime is a required field // CreationTime is a required field
CreationTime *time.Time `type:"timestamp" timestampFormat:"iso8601" required:"true"` CreationTime *time.Time `type:"timestamp" timestampFormat:"iso8601" required:"true"`
// The time the stack was deleted.
DeletionTime *time.Time `type:"timestamp" timestampFormat:"iso8601"`
// A user-defined description associated with the stack. // A user-defined description associated with the stack.
Description *string `min:"1" type:"string"` Description *string `min:"1" type:"string"`
@ -8733,6 +8836,15 @@ type Stack struct {
// * false: enable rollback // * false: enable rollback
DisableRollback *bool `type:"boolean"` DisableRollback *bool `type:"boolean"`
// Whether termination protection is enabled for the stack.
//
// For nested stacks (http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-nested-stacks.html),
// termination protection is set on the root stack and cannot be changed directly
// on the nested stack. For more information, see Protecting a Stack From Being
// Deleted (http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-protect-stacks.html)
// in the AWS CloudFormation User Guide.
EnableTerminationProtection *bool `type:"boolean"`
// The time the stack was last updated. This field will only be returned if // The time the stack was last updated. This field will only be returned if
// the stack has been updated at least once. // the stack has been updated at least once.
LastUpdatedTime *time.Time `type:"timestamp" timestampFormat:"iso8601"` LastUpdatedTime *time.Time `type:"timestamp" timestampFormat:"iso8601"`
@ -8746,6 +8858,14 @@ type Stack struct {
// A list of Parameter structures. // A list of Parameter structures.
Parameters []*Parameter `type:"list"` Parameters []*Parameter `type:"list"`
// For nested stacks--stacks created as resources for another stack--the stack
// ID of the direct parent of this stack. For the first level of nested stacks,
// the root stack is also the parent stack.
//
// For more information, see Working with Nested Stacks (http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-nested-stacks.html)
// in the AWS CloudFormation User Guide.
ParentId *string `type:"string"`
// The Amazon Resource Name (ARN) of an AWS Identity and Access Management (IAM) // The Amazon Resource Name (ARN) of an AWS Identity and Access Management (IAM)
// role that is associated with the stack. During a stack operation, AWS CloudFormation // role that is associated with the stack. During a stack operation, AWS CloudFormation
// uses this role's credentials to make calls on your behalf. // uses this role's credentials to make calls on your behalf.
@ -8755,6 +8875,13 @@ type Stack struct {
// and updating operations, and for the specified monitoring period afterwards. // and updating operations, and for the specified monitoring period afterwards.
RollbackConfiguration *RollbackConfiguration `type:"structure"` RollbackConfiguration *RollbackConfiguration `type:"structure"`
// For nested stacks--stacks created as resources for another stack--the stack
// ID of the the top-level stack to which the nested stack ultimately belongs.
//
// For more information, see Working with Nested Stacks (http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-nested-stacks.html)
// in the AWS CloudFormation User Guide.
RootId *string `type:"string"`
// Unique identifier of the stack. // Unique identifier of the stack.
StackId *string `type:"string"` StackId *string `type:"string"`
@ -8806,6 +8933,12 @@ func (s *Stack) SetCreationTime(v time.Time) *Stack {
return s return s
} }
// SetDeletionTime sets the DeletionTime field's value.
func (s *Stack) SetDeletionTime(v time.Time) *Stack {
s.DeletionTime = &v
return s
}
// SetDescription sets the Description field's value. // SetDescription sets the Description field's value.
func (s *Stack) SetDescription(v string) *Stack { func (s *Stack) SetDescription(v string) *Stack {
s.Description = &v s.Description = &v
@ -8818,6 +8951,12 @@ func (s *Stack) SetDisableRollback(v bool) *Stack {
return s return s
} }
// SetEnableTerminationProtection sets the EnableTerminationProtection field's value.
func (s *Stack) SetEnableTerminationProtection(v bool) *Stack {
s.EnableTerminationProtection = &v
return s
}
// SetLastUpdatedTime sets the LastUpdatedTime field's value. // SetLastUpdatedTime sets the LastUpdatedTime field's value.
func (s *Stack) SetLastUpdatedTime(v time.Time) *Stack { func (s *Stack) SetLastUpdatedTime(v time.Time) *Stack {
s.LastUpdatedTime = &v s.LastUpdatedTime = &v
@ -8842,6 +8981,12 @@ func (s *Stack) SetParameters(v []*Parameter) *Stack {
return s return s
} }
// SetParentId sets the ParentId field's value.
func (s *Stack) SetParentId(v string) *Stack {
s.ParentId = &v
return s
}
// SetRoleARN sets the RoleARN field's value. // SetRoleARN sets the RoleARN field's value.
func (s *Stack) SetRoleARN(v string) *Stack { func (s *Stack) SetRoleARN(v string) *Stack {
s.RoleARN = &v s.RoleARN = &v
@ -8854,6 +8999,12 @@ func (s *Stack) SetRollbackConfiguration(v *RollbackConfiguration) *Stack {
return s return s
} }
// SetRootId sets the RootId field's value.
func (s *Stack) SetRootId(v string) *Stack {
s.RootId = &v
return s
}
// SetStackId sets the StackId field's value. // SetStackId sets the StackId field's value.
func (s *Stack) SetStackId(v string) *Stack { func (s *Stack) SetStackId(v string) *Stack {
s.StackId = &v s.StackId = &v
@ -9768,6 +9919,10 @@ type StackSetOperationPreferences struct {
// time. This is dependent on the value of FailureToleranceCount—MaxConcurrentCount // time. This is dependent on the value of FailureToleranceCount—MaxConcurrentCount
// is at most one more than the FailureToleranceCount . // is at most one more than the FailureToleranceCount .
// //
// Note that this setting lets you specify the maximum for operations. For large
// deployments, under certain circumstances the actual number of accounts acted
// upon concurrently may be lower due to service throttling.
//
// Conditional: You must specify either MaxConcurrentCount or MaxConcurrentPercentage, // Conditional: You must specify either MaxConcurrentCount or MaxConcurrentPercentage,
// but not both. // but not both.
MaxConcurrentCount *int64 `min:"1" type:"integer"` MaxConcurrentCount *int64 `min:"1" type:"integer"`
@ -9780,6 +9935,10 @@ type StackSetOperationPreferences struct {
// in cases where rounding down would result is zero. In this case, CloudFormation // in cases where rounding down would result is zero. In this case, CloudFormation
// sets the number as one instead. // sets the number as one instead.
// //
// Note that this setting lets you specify the maximum for operations. For large
// deployments, under certain circumstances the actual number of accounts acted
// upon concurrently may be lower due to service throttling.
//
// Conditional: You must specify either MaxConcurrentCount or MaxConcurrentPercentage, // Conditional: You must specify either MaxConcurrentCount or MaxConcurrentPercentage,
// but not both. // but not both.
MaxConcurrentPercentage *int64 `min:"1" type:"integer"` MaxConcurrentPercentage *int64 `min:"1" type:"integer"`
@ -10086,6 +10245,21 @@ type StackSummary struct {
// the stack has been updated at least once. // the stack has been updated at least once.
LastUpdatedTime *time.Time `type:"timestamp" timestampFormat:"iso8601"` LastUpdatedTime *time.Time `type:"timestamp" timestampFormat:"iso8601"`
// For nested stacks--stacks created as resources for another stack--the stack
// ID of the direct parent of this stack. For the first level of nested stacks,
// the root stack is also the parent stack.
//
// For more information, see Working with Nested Stacks (http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-nested-stacks.html)
// in the AWS CloudFormation User Guide.
ParentId *string `type:"string"`
// For nested stacks--stacks created as resources for another stack--the stack
// ID of the the top-level stack to which the nested stack ultimately belongs.
//
// For more information, see Working with Nested Stacks (http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-nested-stacks.html)
// in the AWS CloudFormation User Guide.
RootId *string `type:"string"`
// Unique stack identifier. // Unique stack identifier.
StackId *string `type:"string"` StackId *string `type:"string"`
@ -10134,6 +10308,18 @@ func (s *StackSummary) SetLastUpdatedTime(v time.Time) *StackSummary {
return s return s
} }
// SetParentId sets the ParentId field's value.
func (s *StackSummary) SetParentId(v string) *StackSummary {
s.ParentId = &v
return s
}
// SetRootId sets the RootId field's value.
func (s *StackSummary) SetRootId(v string) *StackSummary {
s.RootId = &v
return s
}
// SetStackId sets the StackId field's value. // SetStackId sets the StackId field's value.
func (s *StackSummary) SetStackId(v string) *StackSummary { func (s *StackSummary) SetStackId(v string) *StackSummary {
s.StackId = &v s.StackId = &v
@ -10955,6 +11141,87 @@ func (s *UpdateStackSetOutput) SetOperationId(v string) *UpdateStackSetOutput {
return s return s
} }
// Please also see https://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/UpdateTerminationProtectionInput
type UpdateTerminationProtectionInput struct {
_ struct{} `type:"structure"`
// Whether to enable termination protection on the specified stack.
//
// EnableTerminationProtection is a required field
EnableTerminationProtection *bool `type:"boolean" required:"true"`
// The name or unique ID of the stack for which you want to set termination
// protection.
//
// StackName is a required field
StackName *string `min:"1" type:"string" required:"true"`
}
// String returns the string representation
func (s UpdateTerminationProtectionInput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s UpdateTerminationProtectionInput) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
func (s *UpdateTerminationProtectionInput) Validate() error {
invalidParams := request.ErrInvalidParams{Context: "UpdateTerminationProtectionInput"}
if s.EnableTerminationProtection == nil {
invalidParams.Add(request.NewErrParamRequired("EnableTerminationProtection"))
}
if s.StackName == nil {
invalidParams.Add(request.NewErrParamRequired("StackName"))
}
if s.StackName != nil && len(*s.StackName) < 1 {
invalidParams.Add(request.NewErrParamMinLen("StackName", 1))
}
if invalidParams.Len() > 0 {
return invalidParams
}
return nil
}
// SetEnableTerminationProtection sets the EnableTerminationProtection field's value.
func (s *UpdateTerminationProtectionInput) SetEnableTerminationProtection(v bool) *UpdateTerminationProtectionInput {
s.EnableTerminationProtection = &v
return s
}
// SetStackName sets the StackName field's value.
func (s *UpdateTerminationProtectionInput) SetStackName(v string) *UpdateTerminationProtectionInput {
s.StackName = &v
return s
}
// Please also see https://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/UpdateTerminationProtectionOutput
type UpdateTerminationProtectionOutput struct {
_ struct{} `type:"structure"`
// The unique ID of the stack.
StackId *string `type:"string"`
}
// String returns the string representation
func (s UpdateTerminationProtectionOutput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s UpdateTerminationProtectionOutput) GoString() string {
return s.String()
}
// SetStackId sets the StackId field's value.
func (s *UpdateTerminationProtectionOutput) SetStackId(v string) *UpdateTerminationProtectionOutput {
s.StackId = &v
return s
}
// The input for ValidateTemplate action. // The input for ValidateTemplate action.
// Please also see https://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/ValidateTemplateInput // Please also see https://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/ValidateTemplateInput
type ValidateTemplateInput struct { type ValidateTemplateInput struct {

View File

@ -30,7 +30,7 @@
// //
// Using the Client // Using the Client
// //
// To AWS CloudFormation with the SDK use the New function to create // To contact AWS CloudFormation with the SDK use the New function to create
// a new service client. With that client you can make API requests to the service. // a new service client. With that client you can make API requests to the service.
// These clients are safe to use concurrently. // These clients are safe to use concurrently.
// //

File diff suppressed because it is too large Load Diff

View File

@ -4,9 +4,9 @@
// requests to Amazon CloudFront. // requests to Amazon CloudFront.
// //
// This is the Amazon CloudFront API Reference. This guide is for developers // This is the Amazon CloudFront API Reference. This guide is for developers
// who need detailed information about the CloudFront API actions, data types, // who need detailed information about CloudFront API actions, data types, and
// and errors. For detailed information about CloudFront features and their // errors. For detailed information about CloudFront features, see the Amazon
// associated API calls, see the Amazon CloudFront Developer Guide. // CloudFront Developer Guide.
// //
// See https://docs.aws.amazon.com/goto/WebAPI/cloudfront-2017-03-25 for more information on this service. // See https://docs.aws.amazon.com/goto/WebAPI/cloudfront-2017-03-25 for more information on this service.
// //
@ -15,7 +15,7 @@
// //
// Using the Client // Using the Client
// //
// To Amazon CloudFront with the SDK use the New function to create // To contact Amazon CloudFront with the SDK use the New function to create
// a new service client. With that client you can make API requests to the service. // a new service client. With that client you can make API requests to the service.
// These clients are safe to use concurrently. // These clients are safe to use concurrently.
// //

View File

@ -38,7 +38,7 @@ const (
// ErrCodeInconsistentQuantities for service response error code // ErrCodeInconsistentQuantities for service response error code
// "InconsistentQuantities". // "InconsistentQuantities".
// //
// The value of Quantity and the size of Items do not match. // The value of Quantity and the size of Items don't match.
ErrCodeInconsistentQuantities = "InconsistentQuantities" ErrCodeInconsistentQuantities = "InconsistentQuantities"
// ErrCodeInvalidArgument for service response error code // ErrCodeInvalidArgument for service response error code
@ -222,6 +222,10 @@ const (
// to false. // to false.
ErrCodePreconditionFailed = "PreconditionFailed" ErrCodePreconditionFailed = "PreconditionFailed"
// ErrCodeResourceInUse for service response error code
// "ResourceInUse".
ErrCodeResourceInUse = "ResourceInUse"
// ErrCodeStreamingDistributionAlreadyExists for service response error code // ErrCodeStreamingDistributionAlreadyExists for service response error code
// "StreamingDistributionAlreadyExists". // "StreamingDistributionAlreadyExists".
ErrCodeStreamingDistributionAlreadyExists = "StreamingDistributionAlreadyExists" ErrCodeStreamingDistributionAlreadyExists = "StreamingDistributionAlreadyExists"
@ -328,6 +332,6 @@ const (
// ErrCodeTrustedSignerDoesNotExist for service response error code // ErrCodeTrustedSignerDoesNotExist for service response error code
// "TrustedSignerDoesNotExist". // "TrustedSignerDoesNotExist".
// //
// One or more of your trusted signers do not exist. // One or more of your trusted signers don't exist.
ErrCodeTrustedSignerDoesNotExist = "TrustedSignerDoesNotExist" ErrCodeTrustedSignerDoesNotExist = "TrustedSignerDoesNotExist"
) )

View File

@ -32,7 +32,7 @@
// //
// Using the Client // Using the Client
// //
// To AWS CloudTrail with the SDK use the New function to create // To contact AWS CloudTrail with the SDK use the New function to create
// a new service client. With that client you can make API requests to the service. // a new service client. With that client you can make API requests to the service.
// These clients are safe to use concurrently. // These clients are safe to use concurrently.
// //

View File

@ -26,7 +26,7 @@
// //
// Using the Client // Using the Client
// //
// To Amazon CloudWatch with the SDK use the New function to create // To contact Amazon CloudWatch with the SDK use the New function to create
// a new service client. With that client you can make API requests to the service. // a new service client. With that client you can make API requests to the service.
// These clients are safe to use concurrently. // These clients are safe to use concurrently.
// //

View File

@ -830,6 +830,8 @@ func (c *CloudWatchEvents) PutPermissionRequest(input *PutPermissionInput) (req
// To enable multiple AWS accounts to put events to your default event bus, // To enable multiple AWS accounts to put events to your default event bus,
// run PutPermission once for each of these accounts. // run PutPermission once for each of these accounts.
// //
// The permission policy on the default event bus cannot exceed 10KB in size.
//
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
// with awserr.Error's Code and Message methods to get detailed information about // with awserr.Error's Code and Message methods to get detailed information about
// the error. // the error.
@ -847,6 +849,9 @@ func (c *CloudWatchEvents) PutPermissionRequest(input *PutPermissionInput) (req
// * ErrCodeInternalException "InternalException" // * ErrCodeInternalException "InternalException"
// This exception occurs due to unexpected causes. // This exception occurs due to unexpected causes.
// //
// * ErrCodeConcurrentModificationException "ConcurrentModificationException"
// There is concurrent modification on a rule or target.
//
// Please also see https://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/PutPermission // Please also see https://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/PutPermission
func (c *CloudWatchEvents) PutPermission(input *PutPermissionInput) (*PutPermissionOutput, error) { func (c *CloudWatchEvents) PutPermission(input *PutPermissionInput) (*PutPermissionOutput, error) {
req, out := c.PutPermissionRequest(input) req, out := c.PutPermissionRequest(input)
@ -1036,10 +1041,16 @@ func (c *CloudWatchEvents) PutTargetsRequest(input *PutTargetsInput) (req *reque
// //
// * AWS Step Functions state machines // * AWS Step Functions state machines
// //
// * Pipelines in Amazon Code Pipeline
//
// * Amazon Inspector assessment templates
//
// * Amazon SNS topics // * Amazon SNS topics
// //
// * Amazon SQS queues // * Amazon SQS queues
// //
// * The default event bus of another AWS account
//
// Note that creating rules with built-in targets is supported only in the AWS // Note that creating rules with built-in targets is supported only in the AWS
// Management Console. // Management Console.
// //
@ -1058,10 +1069,16 @@ func (c *CloudWatchEvents) PutTargetsRequest(input *PutTargetsInput) (req *reque
// in the Amazon CloudWatch Events User Guide. // in the Amazon CloudWatch Events User Guide.
// //
// If another AWS account is in the same region and has granted you permission // If another AWS account is in the same region and has granted you permission
// (using PutPermission), you can set that account's event bus as a target of // (using PutPermission), you can send events to that account by setting that
// the rules in your account. To send the matched events to the other account, // account's event bus as a target of the rules in your account. To send the
// specify that account's event bus as the Arn when you run PutTargets. For // matched events to the other account, specify that account's event bus as
// more information about enabling cross-account events, see PutPermission. // the Arn when you run PutTargets. If your account sends events to another
// account, your account is charged for each sent event. Each event sent to
// antoher account is charged as a custom event. The account receiving the event
// is not charged. For more information on pricing, see Amazon CloudWatch Pricing
// (https://aws.amazon.com/cloudwatch/pricing/).
//
// For more information about enabling cross-account events, see PutPermission.
// //
// Input, InputPath and InputTransformer are mutually exclusive and optional // Input, InputPath and InputTransformer are mutually exclusive and optional
// parameters of a target. When a rule is triggered due to a matched event: // parameters of a target. When a rule is triggered due to a matched event:
@ -1201,6 +1218,9 @@ func (c *CloudWatchEvents) RemovePermissionRequest(input *RemovePermissionInput)
// * ErrCodeInternalException "InternalException" // * ErrCodeInternalException "InternalException"
// This exception occurs due to unexpected causes. // This exception occurs due to unexpected causes.
// //
// * ErrCodeConcurrentModificationException "ConcurrentModificationException"
// There is concurrent modification on a rule or target.
//
// Please also see https://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/RemovePermission // Please also see https://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/RemovePermission
func (c *CloudWatchEvents) RemovePermission(input *RemovePermissionInput) (*RemovePermissionOutput, error) { func (c *CloudWatchEvents) RemovePermission(input *RemovePermissionInput) (*RemovePermissionOutput, error) {
req, out := c.RemovePermissionRequest(input) req, out := c.RemovePermissionRequest(input)

View File

@ -29,7 +29,7 @@
// //
// Using the Client // Using the Client
// //
// To Amazon CloudWatch Events with the SDK use the New function to create // To contact Amazon CloudWatch Events with the SDK use the New function to create
// a new service client. With that client you can make API requests to the service. // a new service client. With that client you can make API requests to the service.
// These clients are safe to use concurrently. // These clients are safe to use concurrently.
// //

File diff suppressed because it is too large Load Diff

View File

@ -4,30 +4,30 @@
// requests to Amazon CloudWatch Logs. // requests to Amazon CloudWatch Logs.
// //
// You can use Amazon CloudWatch Logs to monitor, store, and access your log // You can use Amazon CloudWatch Logs to monitor, store, and access your log
// files from EC2 instances, Amazon CloudTrail, or other sources. You can then // files from Amazon EC2 instances, AWS CloudTrail, or other sources. You can
// retrieve the associated log data from CloudWatch Logs using the Amazon CloudWatch // then retrieve the associated log data from CloudWatch Logs using the CloudWatch
// console, the CloudWatch Logs commands in the AWS CLI, the CloudWatch Logs // console, CloudWatch Logs commands in the AWS CLI, CloudWatch Logs API, or
// API, or the CloudWatch Logs SDK. // CloudWatch Logs SDK.
// //
// You can use CloudWatch Logs to: // You can use CloudWatch Logs to:
// //
// * Monitor Logs from Amazon EC2 Instances in Real-time: You can use CloudWatch // * Monitor logs from EC2 instances in real-time: You can use CloudWatch
// Logs to monitor applications and systems using log data. For example, // Logs to monitor applications and systems using log data. For example,
// CloudWatch Logs can track the number of errors that occur in your application // CloudWatch Logs can track the number of errors that occur in your application
// logs and send you a notification whenever the rate of errors exceeds a // logs and send you a notification whenever the rate of errors exceeds a
// threshold you specify. CloudWatch Logs uses your log data for monitoring; // threshold that you specify. CloudWatch Logs uses your log data for monitoring;
// so, no code changes are required. For example, you can monitor application // so, no code changes are required. For example, you can monitor application
// logs for specific literal terms (such as "NullReferenceException") or // logs for specific literal terms (such as "NullReferenceException") or
// count the number of occurrences of a literal term at a particular position // count the number of occurrences of a literal term at a particular position
// in log data (such as "404" status codes in an Apache access log). When // in log data (such as "404" status codes in an Apache access log). When
// the term you are searching for is found, CloudWatch Logs reports the data // the term you are searching for is found, CloudWatch Logs reports the data
// to a Amazon CloudWatch metric that you specify. // to a CloudWatch metric that you specify.
// //
// * Monitor Amazon CloudTrail Logged Events: You can create alarms in Amazon // * Monitor AWS CloudTrail logged events: You can create alarms in CloudWatch
// CloudWatch and receive notifications of particular API activity as captured // and receive notifications of particular API activity as captured by CloudTrail
// by CloudTrail and use the notification to perform troubleshooting. // and use the notification to perform troubleshooting.
// //
// * Archive Log Data: You can use CloudWatch Logs to store your log data // * Archive log data: You can use CloudWatch Logs to store your log data
// in highly durable storage. You can change the log retention setting so // in highly durable storage. You can change the log retention setting so
// that any log events older than this setting are automatically deleted. // that any log events older than this setting are automatically deleted.
// The CloudWatch Logs agent makes it easy to quickly send both rotated and // The CloudWatch Logs agent makes it easy to quickly send both rotated and
@ -41,7 +41,7 @@
// //
// Using the Client // Using the Client
// //
// To Amazon CloudWatch Logs with the SDK use the New function to create // To contact Amazon CloudWatch Logs with the SDK use the New function to create
// a new service client. With that client you can make API requests to the service. // a new service client. With that client you can make API requests to the service.
// These clients are safe to use concurrently. // These clients are safe to use concurrently.
// //

View File

@ -334,6 +334,106 @@ func (c *CodeBuild) CreateProjectWithContext(ctx aws.Context, input *CreateProje
return out, req.Send() return out, req.Send()
} }
const opCreateWebhook = "CreateWebhook"
// CreateWebhookRequest generates a "aws/request.Request" representing the
// client's request for the CreateWebhook operation. The "output" return
// value will be populated with the request's response once the request complets
// successfuly.
//
// Use "Send" method on the returned Request to send the API call to the service.
// the "output" return value is not valid until after Send returns without error.
//
// See CreateWebhook for more information on using the CreateWebhook
// API call, and error handling.
//
// This method is useful when you want to inject custom logic or configuration
// into the SDK's request lifecycle. Such as custom headers, or retry logic.
//
//
// // Example sending a request using the CreateWebhookRequest method.
// req, resp := client.CreateWebhookRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
// Please also see https://docs.aws.amazon.com/goto/WebAPI/codebuild-2016-10-06/CreateWebhook
func (c *CodeBuild) CreateWebhookRequest(input *CreateWebhookInput) (req *request.Request, output *CreateWebhookOutput) {
op := &request.Operation{
Name: opCreateWebhook,
HTTPMethod: "POST",
HTTPPath: "/",
}
if input == nil {
input = &CreateWebhookInput{}
}
output = &CreateWebhookOutput{}
req = c.newRequest(op, input, output)
return
}
// CreateWebhook API operation for AWS CodeBuild.
//
// For an existing AWS CodeBuild build project that has its source code stored
// in a GitHub repository, enables AWS CodeBuild to begin automatically rebuilding
// the source code every time a code change is pushed to the repository.
//
// If you enable webhooks for an AWS CodeBuild project, and the project is used
// as a build step in AWS CodePipeline, then two identical builds will be created
// for each commit. One build is triggered through webhooks, and one through
// AWS CodePipeline. Because billing is on a per-build basis, you will be billed
// for both builds. Therefore, if you are using AWS CodePipeline, we recommend
// that you disable webhooks in CodeBuild. In the AWS CodeBuild console, clear
// the Webhook box. For more information, see step 9 in Change a Build Projects
// Settings (http://docs.aws.amazon.com/codebuild/latest/userguide/change-project.html#change-project-console).
//
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
// with awserr.Error's Code and Message methods to get detailed information about
// the error.
//
// See the AWS API reference guide for AWS CodeBuild's
// API operation CreateWebhook for usage and error information.
//
// Returned Error Codes:
// * ErrCodeInvalidInputException "InvalidInputException"
// The input value that was provided is not valid.
//
// * ErrCodeOAuthProviderException "OAuthProviderException"
// There was a problem with the underlying OAuth provider.
//
// * ErrCodeResourceAlreadyExistsException "ResourceAlreadyExistsException"
// The specified AWS resource cannot be created, because an AWS resource with
// the same settings already exists.
//
// * ErrCodeResourceNotFoundException "ResourceNotFoundException"
// The specified AWS resource cannot be found.
//
// Please also see https://docs.aws.amazon.com/goto/WebAPI/codebuild-2016-10-06/CreateWebhook
func (c *CodeBuild) CreateWebhook(input *CreateWebhookInput) (*CreateWebhookOutput, error) {
req, out := c.CreateWebhookRequest(input)
return out, req.Send()
}
// CreateWebhookWithContext is the same as CreateWebhook with the addition of
// the ability to pass a context and additional request options.
//
// See CreateWebhook for details on how to use this API operation.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
func (c *CodeBuild) CreateWebhookWithContext(ctx aws.Context, input *CreateWebhookInput, opts ...request.Option) (*CreateWebhookOutput, error) {
req, out := c.CreateWebhookRequest(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
const opDeleteProject = "DeleteProject" const opDeleteProject = "DeleteProject"
// DeleteProjectRequest generates a "aws/request.Request" representing the // DeleteProjectRequest generates a "aws/request.Request" representing the
@ -413,6 +513,93 @@ func (c *CodeBuild) DeleteProjectWithContext(ctx aws.Context, input *DeleteProje
return out, req.Send() return out, req.Send()
} }
const opDeleteWebhook = "DeleteWebhook"
// DeleteWebhookRequest generates a "aws/request.Request" representing the
// client's request for the DeleteWebhook operation. The "output" return
// value will be populated with the request's response once the request complets
// successfuly.
//
// Use "Send" method on the returned Request to send the API call to the service.
// the "output" return value is not valid until after Send returns without error.
//
// See DeleteWebhook for more information on using the DeleteWebhook
// API call, and error handling.
//
// This method is useful when you want to inject custom logic or configuration
// into the SDK's request lifecycle. Such as custom headers, or retry logic.
//
//
// // Example sending a request using the DeleteWebhookRequest method.
// req, resp := client.DeleteWebhookRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
// Please also see https://docs.aws.amazon.com/goto/WebAPI/codebuild-2016-10-06/DeleteWebhook
func (c *CodeBuild) DeleteWebhookRequest(input *DeleteWebhookInput) (req *request.Request, output *DeleteWebhookOutput) {
op := &request.Operation{
Name: opDeleteWebhook,
HTTPMethod: "POST",
HTTPPath: "/",
}
if input == nil {
input = &DeleteWebhookInput{}
}
output = &DeleteWebhookOutput{}
req = c.newRequest(op, input, output)
return
}
// DeleteWebhook API operation for AWS CodeBuild.
//
// For an existing AWS CodeBuild build project that has its source code stored
// in a GitHub repository, stops AWS CodeBuild from automatically rebuilding
// the source code every time a code change is pushed to the repository.
//
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
// with awserr.Error's Code and Message methods to get detailed information about
// the error.
//
// See the AWS API reference guide for AWS CodeBuild's
// API operation DeleteWebhook for usage and error information.
//
// Returned Error Codes:
// * ErrCodeInvalidInputException "InvalidInputException"
// The input value that was provided is not valid.
//
// * ErrCodeResourceNotFoundException "ResourceNotFoundException"
// The specified AWS resource cannot be found.
//
// * ErrCodeOAuthProviderException "OAuthProviderException"
// There was a problem with the underlying OAuth provider.
//
// Please also see https://docs.aws.amazon.com/goto/WebAPI/codebuild-2016-10-06/DeleteWebhook
func (c *CodeBuild) DeleteWebhook(input *DeleteWebhookInput) (*DeleteWebhookOutput, error) {
req, out := c.DeleteWebhookRequest(input)
return out, req.Send()
}
// DeleteWebhookWithContext is the same as DeleteWebhook with the addition of
// the ability to pass a context and additional request options.
//
// See DeleteWebhook for details on how to use this API operation.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
func (c *CodeBuild) DeleteWebhookWithContext(ctx aws.Context, input *DeleteWebhookInput, opts ...request.Option) (*DeleteWebhookOutput, error) {
req, out := c.DeleteWebhookRequest(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
const opListBuilds = "ListBuilds" const opListBuilds = "ListBuilds"
// ListBuildsRequest generates a "aws/request.Request" representing the // ListBuildsRequest generates a "aws/request.Request" representing the
@ -1778,6 +1965,73 @@ func (s *CreateProjectOutput) SetProject(v *Project) *CreateProjectOutput {
return s return s
} }
// Please also see https://docs.aws.amazon.com/goto/WebAPI/codebuild-2016-10-06/CreateWebhookInput
type CreateWebhookInput struct {
_ struct{} `type:"structure"`
// The name of the build project.
//
// ProjectName is a required field
ProjectName *string `locationName:"projectName" min:"2" type:"string" required:"true"`
}
// String returns the string representation
func (s CreateWebhookInput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s CreateWebhookInput) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
func (s *CreateWebhookInput) Validate() error {
invalidParams := request.ErrInvalidParams{Context: "CreateWebhookInput"}
if s.ProjectName == nil {
invalidParams.Add(request.NewErrParamRequired("ProjectName"))
}
if s.ProjectName != nil && len(*s.ProjectName) < 2 {
invalidParams.Add(request.NewErrParamMinLen("ProjectName", 2))
}
if invalidParams.Len() > 0 {
return invalidParams
}
return nil
}
// SetProjectName sets the ProjectName field's value.
func (s *CreateWebhookInput) SetProjectName(v string) *CreateWebhookInput {
s.ProjectName = &v
return s
}
// Please also see https://docs.aws.amazon.com/goto/WebAPI/codebuild-2016-10-06/CreateWebhookOutput
type CreateWebhookOutput struct {
_ struct{} `type:"structure"`
// Information about a webhook in GitHub that connects repository events to
// a build project in AWS CodeBuild.
Webhook *Webhook `locationName:"webhook" type:"structure"`
}
// String returns the string representation
func (s CreateWebhookOutput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s CreateWebhookOutput) GoString() string {
return s.String()
}
// SetWebhook sets the Webhook field's value.
func (s *CreateWebhookOutput) SetWebhook(v *Webhook) *CreateWebhookOutput {
s.Webhook = v
return s
}
// Please also see https://docs.aws.amazon.com/goto/WebAPI/codebuild-2016-10-06/DeleteProjectInput // Please also see https://docs.aws.amazon.com/goto/WebAPI/codebuild-2016-10-06/DeleteProjectInput
type DeleteProjectInput struct { type DeleteProjectInput struct {
_ struct{} `type:"structure"` _ struct{} `type:"structure"`
@ -1835,6 +2089,63 @@ func (s DeleteProjectOutput) GoString() string {
return s.String() return s.String()
} }
// Please also see https://docs.aws.amazon.com/goto/WebAPI/codebuild-2016-10-06/DeleteWebhookInput
type DeleteWebhookInput struct {
_ struct{} `type:"structure"`
// The name of the build project.
//
// ProjectName is a required field
ProjectName *string `locationName:"projectName" min:"2" type:"string" required:"true"`
}
// String returns the string representation
func (s DeleteWebhookInput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s DeleteWebhookInput) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
func (s *DeleteWebhookInput) Validate() error {
invalidParams := request.ErrInvalidParams{Context: "DeleteWebhookInput"}
if s.ProjectName == nil {
invalidParams.Add(request.NewErrParamRequired("ProjectName"))
}
if s.ProjectName != nil && len(*s.ProjectName) < 2 {
invalidParams.Add(request.NewErrParamMinLen("ProjectName", 2))
}
if invalidParams.Len() > 0 {
return invalidParams
}
return nil
}
// SetProjectName sets the ProjectName field's value.
func (s *DeleteWebhookInput) SetProjectName(v string) *DeleteWebhookInput {
s.ProjectName = &v
return s
}
// Please also see https://docs.aws.amazon.com/goto/WebAPI/codebuild-2016-10-06/DeleteWebhookOutput
type DeleteWebhookOutput struct {
_ struct{} `type:"structure"`
}
// String returns the string representation
func (s DeleteWebhookOutput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s DeleteWebhookOutput) GoString() string {
return s.String()
}
// Information about a Docker image that is managed by AWS CodeBuild. // Information about a Docker image that is managed by AWS CodeBuild.
// Please also see https://docs.aws.amazon.com/goto/WebAPI/codebuild-2016-10-06/EnvironmentImage // Please also see https://docs.aws.amazon.com/goto/WebAPI/codebuild-2016-10-06/EnvironmentImage
type EnvironmentImage struct { type EnvironmentImage struct {
@ -1949,6 +2260,14 @@ type EnvironmentVariable struct {
// Name is a required field // Name is a required field
Name *string `locationName:"name" min:"1" type:"string" required:"true"` Name *string `locationName:"name" min:"1" type:"string" required:"true"`
// The type of environment variable. Valid values include:
//
// * PARAMETER_STORE: An environment variable stored in Amazon EC2 Systems
// Manager Parameter Store.
//
// * PLAINTEXT: An environment variable in plaintext format.
Type *string `locationName:"type" type:"string" enum:"EnvironmentVariableType"`
// The value of the environment variable. // The value of the environment variable.
// //
// We strongly discourage using environment variables to store sensitive values, // We strongly discourage using environment variables to store sensitive values,
@ -1995,6 +2314,12 @@ func (s *EnvironmentVariable) SetName(v string) *EnvironmentVariable {
return s return s
} }
// SetType sets the Type field's value.
func (s *EnvironmentVariable) SetType(v string) *EnvironmentVariable {
s.Type = &v
return s
}
// SetValue sets the Value field's value. // SetValue sets the Value field's value.
func (s *EnvironmentVariable) SetValue(v string) *EnvironmentVariable { func (s *EnvironmentVariable) SetValue(v string) *EnvironmentVariable {
s.Value = &v s.Value = &v
@ -2470,6 +2795,10 @@ type Project struct {
// before timing out any related build that did not get marked as completed. // before timing out any related build that did not get marked as completed.
// The default is 60 minutes. // The default is 60 minutes.
TimeoutInMinutes *int64 `locationName:"timeoutInMinutes" min:"5" type:"integer"` TimeoutInMinutes *int64 `locationName:"timeoutInMinutes" min:"5" type:"integer"`
// Information about a webhook in GitHub that connects repository events to
// a build project in AWS CodeBuild.
Webhook *Webhook `locationName:"webhook" type:"structure"`
} }
// String returns the string representation // String returns the string representation
@ -2554,6 +2883,12 @@ func (s *Project) SetTimeoutInMinutes(v int64) *Project {
return s return s
} }
// SetWebhook sets the Webhook field's value.
func (s *Project) SetWebhook(v *Webhook) *Project {
s.Webhook = v
return s
}
// Information about the build output artifacts for the build project. // Information about the build output artifacts for the build project.
// Please also see https://docs.aws.amazon.com/goto/WebAPI/codebuild-2016-10-06/ProjectArtifacts // Please also see https://docs.aws.amazon.com/goto/WebAPI/codebuild-2016-10-06/ProjectArtifacts
type ProjectArtifacts struct { type ProjectArtifacts struct {
@ -3481,6 +3816,32 @@ func (s *UpdateProjectOutput) SetProject(v *Project) *UpdateProjectOutput {
return s return s
} }
// Information about a webhook in GitHub that connects repository events to
// a build project in AWS CodeBuild.
// Please also see https://docs.aws.amazon.com/goto/WebAPI/codebuild-2016-10-06/Webhook
type Webhook struct {
_ struct{} `type:"structure"`
// The URL to the webhook.
Url *string `locationName:"url" min:"1" type:"string"`
}
// String returns the string representation
func (s Webhook) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s Webhook) GoString() string {
return s.String()
}
// SetUrl sets the Url field's value.
func (s *Webhook) SetUrl(v string) *Webhook {
s.Url = &v
return s
}
const ( const (
// ArtifactNamespaceNone is a ArtifactNamespace enum value // ArtifactNamespaceNone is a ArtifactNamespace enum value
ArtifactNamespaceNone = "NONE" ArtifactNamespaceNone = "NONE"
@ -3556,6 +3917,14 @@ const (
EnvironmentTypeLinuxContainer = "LINUX_CONTAINER" EnvironmentTypeLinuxContainer = "LINUX_CONTAINER"
) )
const (
// EnvironmentVariableTypePlaintext is a EnvironmentVariableType enum value
EnvironmentVariableTypePlaintext = "PLAINTEXT"
// EnvironmentVariableTypeParameterStore is a EnvironmentVariableType enum value
EnvironmentVariableTypeParameterStore = "PARAMETER_STORE"
)
const ( const (
// LanguageTypeJava is a LanguageType enum value // LanguageTypeJava is a LanguageType enum value
LanguageTypeJava = "JAVA" LanguageTypeJava = "JAVA"

View File

@ -7,7 +7,7 @@
// compiles your source code, runs unit tests, and produces artifacts that are // compiles your source code, runs unit tests, and produces artifacts that are
// ready to deploy. AWS CodeBuild eliminates the need to provision, manage, // ready to deploy. AWS CodeBuild eliminates the need to provision, manage,
// and scale your own build servers. It provides prepackaged build environments // and scale your own build servers. It provides prepackaged build environments
// for the most popular programming languages and build tools, such as Apach // for the most popular programming languages and build tools, such as Apache
// Maven, Gradle, and more. You can also fully customize build environments // Maven, Gradle, and more. You can also fully customize build environments
// in AWS CodeBuild to use your own build tools. AWS CodeBuild scales automatically // in AWS CodeBuild to use your own build tools. AWS CodeBuild scales automatically
// to meet peak build requests, and you pay only for the build time you consume. // to meet peak build requests, and you pay only for the build time you consume.
@ -28,8 +28,18 @@
// //
// * CreateProject: Creates a build project. // * CreateProject: Creates a build project.
// //
// * CreateWebhook: For an existing AWS CodeBuild build project that has
// its source code stored in a GitHub repository, enables AWS CodeBuild to
// begin automatically rebuilding the source code every time a code change
// is pushed to the repository.
//
// * DeleteProject: Deletes a build project. // * DeleteProject: Deletes a build project.
// //
// * DeleteWebhook: For an existing AWS CodeBuild build project that has
// its source code stored in a GitHub repository, stops AWS CodeBuild from
// automatically rebuilding the source code every time a code change is pushed
// to the repository.
//
// * ListProjects: Gets a list of build project names, with each build project // * ListProjects: Gets a list of build project names, with each build project
// name representing a single build project. // name representing a single build project.
// //
@ -57,7 +67,7 @@
// //
// Using the Client // Using the Client
// //
// To AWS CodeBuild with the SDK use the New function to create // To contact AWS CodeBuild with the SDK use the New function to create
// a new service client. With that client you can make API requests to the service. // a new service client. With that client you can make API requests to the service.
// These clients are safe to use concurrently. // These clients are safe to use concurrently.
// //

View File

@ -16,6 +16,12 @@ const (
// The input value that was provided is not valid. // The input value that was provided is not valid.
ErrCodeInvalidInputException = "InvalidInputException" ErrCodeInvalidInputException = "InvalidInputException"
// ErrCodeOAuthProviderException for service response error code
// "OAuthProviderException".
//
// There was a problem with the underlying OAuth provider.
ErrCodeOAuthProviderException = "OAuthProviderException"
// ErrCodeResourceAlreadyExistsException for service response error code // ErrCodeResourceAlreadyExistsException for service response error code
// "ResourceAlreadyExistsException". // "ResourceAlreadyExistsException".
// //

View File

@ -362,6 +362,122 @@ func (c *CodeCommit) CreateRepositoryWithContext(ctx aws.Context, input *CreateR
return out, req.Send() return out, req.Send()
} }
const opDeleteBranch = "DeleteBranch"
// DeleteBranchRequest generates a "aws/request.Request" representing the
// client's request for the DeleteBranch operation. The "output" return
// value will be populated with the request's response once the request complets
// successfuly.
//
// Use "Send" method on the returned Request to send the API call to the service.
// the "output" return value is not valid until after Send returns without error.
//
// See DeleteBranch for more information on using the DeleteBranch
// API call, and error handling.
//
// This method is useful when you want to inject custom logic or configuration
// into the SDK's request lifecycle. Such as custom headers, or retry logic.
//
//
// // Example sending a request using the DeleteBranchRequest method.
// req, resp := client.DeleteBranchRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
// Please also see https://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/DeleteBranch
func (c *CodeCommit) DeleteBranchRequest(input *DeleteBranchInput) (req *request.Request, output *DeleteBranchOutput) {
op := &request.Operation{
Name: opDeleteBranch,
HTTPMethod: "POST",
HTTPPath: "/",
}
if input == nil {
input = &DeleteBranchInput{}
}
output = &DeleteBranchOutput{}
req = c.newRequest(op, input, output)
return
}
// DeleteBranch API operation for AWS CodeCommit.
//
// Deletes a branch from a repository, unless that branch is the default branch
// for the repository.
//
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
// with awserr.Error's Code and Message methods to get detailed information about
// the error.
//
// See the AWS API reference guide for AWS CodeCommit's
// API operation DeleteBranch for usage and error information.
//
// Returned Error Codes:
// * ErrCodeRepositoryNameRequiredException "RepositoryNameRequiredException"
// A repository name is required but was not specified.
//
// * ErrCodeRepositoryDoesNotExistException "RepositoryDoesNotExistException"
// The specified repository does not exist.
//
// * ErrCodeInvalidRepositoryNameException "InvalidRepositoryNameException"
// At least one specified repository name is not valid.
//
// This exception only occurs when a specified repository name is not valid.
// Other exceptions occur when a required repository parameter is missing, or
// when a specified repository does not exist.
//
// * ErrCodeBranchNameRequiredException "BranchNameRequiredException"
// A branch name is required but was not specified.
//
// * ErrCodeInvalidBranchNameException "InvalidBranchNameException"
// The specified branch name is not valid.
//
// * ErrCodeDefaultBranchCannotBeDeletedException "DefaultBranchCannotBeDeletedException"
// The specified branch is the default branch for the repository, and cannot
// be deleted. To delete this branch, you must first set another branch as the
// default branch.
//
// * ErrCodeEncryptionIntegrityChecksFailedException "EncryptionIntegrityChecksFailedException"
// An encryption integrity check failed.
//
// * ErrCodeEncryptionKeyAccessDeniedException "EncryptionKeyAccessDeniedException"
// An encryption key could not be accessed.
//
// * ErrCodeEncryptionKeyDisabledException "EncryptionKeyDisabledException"
// The encryption key is disabled.
//
// * ErrCodeEncryptionKeyNotFoundException "EncryptionKeyNotFoundException"
// No encryption key was found.
//
// * ErrCodeEncryptionKeyUnavailableException "EncryptionKeyUnavailableException"
// The encryption key is not available.
//
// Please also see https://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/DeleteBranch
func (c *CodeCommit) DeleteBranch(input *DeleteBranchInput) (*DeleteBranchOutput, error) {
req, out := c.DeleteBranchRequest(input)
return out, req.Send()
}
// DeleteBranchWithContext is the same as DeleteBranch with the addition of
// the ability to pass a context and additional request options.
//
// See DeleteBranch for details on how to use this API operation.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
func (c *CodeCommit) DeleteBranchWithContext(ctx aws.Context, input *DeleteBranchInput, opts ...request.Option) (*DeleteBranchOutput, error) {
req, out := c.DeleteBranchRequest(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
const opDeleteRepository = "DeleteRepository" const opDeleteRepository = "DeleteRepository"
// DeleteRepositoryRequest generates a "aws/request.Request" representing the // DeleteRepositoryRequest generates a "aws/request.Request" representing the
@ -2326,6 +2442,9 @@ type Commit struct {
// the email address for the author, as configured in Git. // the email address for the author, as configured in Git.
Author *UserInfo `locationName:"author" type:"structure"` Author *UserInfo `locationName:"author" type:"structure"`
// The full SHA of the specified commit.
CommitId *string `locationName:"commitId" type:"string"`
// Information about the person who committed the specified commit, also known // Information about the person who committed the specified commit, also known
// as the committer. Information includes the date in timestamp format with // as the committer. Information includes the date in timestamp format with
// GMT offset, the name of the committer, and the email address for the committer, // GMT offset, the name of the committer, and the email address for the committer,
@ -2368,6 +2487,12 @@ func (s *Commit) SetAuthor(v *UserInfo) *Commit {
return s return s
} }
// SetCommitId sets the CommitId field's value.
func (s *Commit) SetCommitId(v string) *Commit {
s.CommitId = &v
return s
}
// SetCommitter sets the Committer field's value. // SetCommitter sets the Committer field's value.
func (s *Commit) SetCommitter(v *UserInfo) *Commit { func (s *Commit) SetCommitter(v *UserInfo) *Commit {
s.Committer = v s.Committer = v
@ -2570,6 +2695,92 @@ func (s *CreateRepositoryOutput) SetRepositoryMetadata(v *RepositoryMetadata) *C
return s return s
} }
// Represents the input of a delete branch operation.
// Please also see https://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/DeleteBranchInput
type DeleteBranchInput struct {
_ struct{} `type:"structure"`
// The name of the branch to delete.
//
// BranchName is a required field
BranchName *string `locationName:"branchName" min:"1" type:"string" required:"true"`
// The name of the repository that contains the branch to be deleted.
//
// RepositoryName is a required field
RepositoryName *string `locationName:"repositoryName" min:"1" type:"string" required:"true"`
}
// String returns the string representation
func (s DeleteBranchInput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s DeleteBranchInput) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
func (s *DeleteBranchInput) Validate() error {
invalidParams := request.ErrInvalidParams{Context: "DeleteBranchInput"}
if s.BranchName == nil {
invalidParams.Add(request.NewErrParamRequired("BranchName"))
}
if s.BranchName != nil && len(*s.BranchName) < 1 {
invalidParams.Add(request.NewErrParamMinLen("BranchName", 1))
}
if s.RepositoryName == nil {
invalidParams.Add(request.NewErrParamRequired("RepositoryName"))
}
if s.RepositoryName != nil && len(*s.RepositoryName) < 1 {
invalidParams.Add(request.NewErrParamMinLen("RepositoryName", 1))
}
if invalidParams.Len() > 0 {
return invalidParams
}
return nil
}
// SetBranchName sets the BranchName field's value.
func (s *DeleteBranchInput) SetBranchName(v string) *DeleteBranchInput {
s.BranchName = &v
return s
}
// SetRepositoryName sets the RepositoryName field's value.
func (s *DeleteBranchInput) SetRepositoryName(v string) *DeleteBranchInput {
s.RepositoryName = &v
return s
}
// Represents the output of a delete branch operation.
// Please also see https://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/DeleteBranchOutput
type DeleteBranchOutput struct {
_ struct{} `type:"structure"`
// Information about the branch deleted by the operation, including the branch
// name and the commit ID that was the tip of the branch.
DeletedBranch *BranchInfo `locationName:"deletedBranch" type:"structure"`
}
// String returns the string representation
func (s DeleteBranchOutput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s DeleteBranchOutput) GoString() string {
return s.String()
}
// SetDeletedBranch sets the DeletedBranch field's value.
func (s *DeleteBranchOutput) SetDeletedBranch(v *BranchInfo) *DeleteBranchOutput {
s.DeletedBranch = v
return s
}
// Represents the input of a delete repository operation. // Represents the input of a delete repository operation.
// Please also see https://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/DeleteRepositoryInput // Please also see https://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/DeleteRepositoryInput
type DeleteRepositoryInput struct { type DeleteRepositoryInput struct {
@ -2851,7 +3062,7 @@ func (s *GetBranchOutput) SetBranch(v *BranchInfo) *GetBranchOutput {
type GetCommitInput struct { type GetCommitInput struct {
_ struct{} `type:"structure"` _ struct{} `type:"structure"`
// The commit ID. // The commit ID. Commit IDs are the full SHA of the commit.
// //
// CommitId is a required field // CommitId is a required field
CommitId *string `locationName:"commitId" type:"string" required:"true"` CommitId *string `locationName:"commitId" type:"string" required:"true"`
@ -3628,8 +3839,10 @@ func (s *RepositoryNameIdPair) SetRepositoryName(v string) *RepositoryNameIdPair
type RepositoryTrigger struct { type RepositoryTrigger struct {
_ struct{} `type:"structure"` _ struct{} `type:"structure"`
// The branches that will be included in the trigger configuration. If no branches // The branches that will be included in the trigger configuration. If you specify
// are specified, the trigger will apply to all branches. // an empty array, the trigger will apply to all branches.
//
// While no content is required in the array, you must include the array itself.
Branches []*string `locationName:"branches" type:"list"` Branches []*string `locationName:"branches" type:"list"`
// Any custom data associated with the trigger that will be included in the // Any custom data associated with the trigger that will be included in the

View File

@ -34,6 +34,9 @@
// //
// * CreateBranch, which creates a new branch in a specified repository // * CreateBranch, which creates a new branch in a specified repository
// //
// * DeleteBranch, which deletes the specified branch in a repository unless
// it is the default branch
//
// * GetBranch, which returns information about a specified branch // * GetBranch, which returns information about a specified branch
// //
// * ListBranches, which lists all branches for a specified repository // * ListBranches, which lists all branches for a specified repository
@ -73,7 +76,7 @@
// //
// Using the Client // Using the Client
// //
// To AWS CodeCommit with the SDK use the New function to create // To contact AWS CodeCommit with the SDK use the New function to create
// a new service client. With that client you can make API requests to the service. // a new service client. With that client you can make API requests to the service.
// These clients are safe to use concurrently. // These clients are safe to use concurrently.
// //

View File

@ -59,6 +59,14 @@ const (
// A commit was not specified. // A commit was not specified.
ErrCodeCommitRequiredException = "CommitRequiredException" ErrCodeCommitRequiredException = "CommitRequiredException"
// ErrCodeDefaultBranchCannotBeDeletedException for service response error code
// "DefaultBranchCannotBeDeletedException".
//
// The specified branch is the default branch for the repository, and cannot
// be deleted. To delete this branch, you must first set another branch as the
// default branch.
ErrCodeDefaultBranchCannotBeDeletedException = "DefaultBranchCannotBeDeletedException"
// ErrCodeEncryptionIntegrityChecksFailedException for service response error code // ErrCodeEncryptionIntegrityChecksFailedException for service response error code
// "EncryptionIntegrityChecksFailedException". // "EncryptionIntegrityChecksFailedException".
// //

View File

@ -65,7 +65,7 @@
// //
// Using the Client // Using the Client
// //
// To AWS CodeDeploy with the SDK use the New function to create // To contact AWS CodeDeploy with the SDK use the New function to create
// a new service client. With that client you can make API requests to the service. // a new service client. With that client you can make API requests to the service.
// These clients are safe to use concurrently. // These clients are safe to use concurrently.
// //

View File

@ -2440,7 +2440,7 @@ func (s *AWSSessionCredentials) SetSessionToken(v string) *AWSSessionCredentials
return s return s
} }
// Represents the input of an acknowledge job action. // Represents the input of an AcknowledgeJob action.
// Please also see https://docs.aws.amazon.com/goto/WebAPI/codepipeline-2015-07-09/AcknowledgeJobInput // Please also see https://docs.aws.amazon.com/goto/WebAPI/codepipeline-2015-07-09/AcknowledgeJobInput
type AcknowledgeJobInput struct { type AcknowledgeJobInput struct {
_ struct{} `type:"structure"` _ struct{} `type:"structure"`
@ -2496,7 +2496,7 @@ func (s *AcknowledgeJobInput) SetNonce(v string) *AcknowledgeJobInput {
return s return s
} }
// Represents the output of an acknowledge job action. // Represents the output of an AcknowledgeJob action.
// Please also see https://docs.aws.amazon.com/goto/WebAPI/codepipeline-2015-07-09/AcknowledgeJobOutput // Please also see https://docs.aws.amazon.com/goto/WebAPI/codepipeline-2015-07-09/AcknowledgeJobOutput
type AcknowledgeJobOutput struct { type AcknowledgeJobOutput struct {
_ struct{} `type:"structure"` _ struct{} `type:"structure"`
@ -2521,7 +2521,7 @@ func (s *AcknowledgeJobOutput) SetStatus(v string) *AcknowledgeJobOutput {
return s return s
} }
// Represents the input of an acknowledge third party job action. // Represents the input of an AcknowledgeThirdPartyJob action.
// Please also see https://docs.aws.amazon.com/goto/WebAPI/codepipeline-2015-07-09/AcknowledgeThirdPartyJobInput // Please also see https://docs.aws.amazon.com/goto/WebAPI/codepipeline-2015-07-09/AcknowledgeThirdPartyJobInput
type AcknowledgeThirdPartyJobInput struct { type AcknowledgeThirdPartyJobInput struct {
_ struct{} `type:"structure"` _ struct{} `type:"structure"`
@ -2530,7 +2530,7 @@ type AcknowledgeThirdPartyJobInput struct {
// that the calling entity is allowed access to the job and its details. // that the calling entity is allowed access to the job and its details.
// //
// ClientToken is a required field // ClientToken is a required field
ClientToken *string `locationName:"clientToken" type:"string" required:"true"` ClientToken *string `locationName:"clientToken" min:"1" type:"string" required:"true"`
// The unique system-generated ID of the job. // The unique system-generated ID of the job.
// //
@ -2561,6 +2561,9 @@ func (s *AcknowledgeThirdPartyJobInput) Validate() error {
if s.ClientToken == nil { if s.ClientToken == nil {
invalidParams.Add(request.NewErrParamRequired("ClientToken")) invalidParams.Add(request.NewErrParamRequired("ClientToken"))
} }
if s.ClientToken != nil && len(*s.ClientToken) < 1 {
invalidParams.Add(request.NewErrParamMinLen("ClientToken", 1))
}
if s.JobId == nil { if s.JobId == nil {
invalidParams.Add(request.NewErrParamRequired("JobId")) invalidParams.Add(request.NewErrParamRequired("JobId"))
} }
@ -2595,7 +2598,7 @@ func (s *AcknowledgeThirdPartyJobInput) SetNonce(v string) *AcknowledgeThirdPart
return s return s
} }
// Represents the output of an acknowledge third party job action. // Represents the output of an AcknowledgeThirdPartyJob action.
// Please also see https://docs.aws.amazon.com/goto/WebAPI/codepipeline-2015-07-09/AcknowledgeThirdPartyJobOutput // Please also see https://docs.aws.amazon.com/goto/WebAPI/codepipeline-2015-07-09/AcknowledgeThirdPartyJobOutput
type AcknowledgeThirdPartyJobOutput struct { type AcknowledgeThirdPartyJobOutput struct {
_ struct{} `type:"structure"` _ struct{} `type:"structure"`
@ -2664,7 +2667,7 @@ type ActionConfigurationProperty struct {
// Name is a required field // Name is a required field
Name *string `locationName:"name" min:"1" type:"string" required:"true"` Name *string `locationName:"name" min:"1" type:"string" required:"true"`
// Indicates that the proprety will be used in conjunction with PollForJobs. // Indicates that the property will be used in conjunction with PollForJobs.
// When creating a custom action, an action can have up to one queryable property. // When creating a custom action, an action can have up to one queryable property.
// If it has one, that property must be both required and not secret. // If it has one, that property must be both required and not secret.
// //
@ -3818,7 +3821,7 @@ func (s *BlockerDeclaration) SetType(v string) *BlockerDeclaration {
return s return s
} }
// Represents the input of a create custom action operation. // Represents the input of a CreateCustomActionType operation.
// Please also see https://docs.aws.amazon.com/goto/WebAPI/codepipeline-2015-07-09/CreateCustomActionTypeInput // Please also see https://docs.aws.amazon.com/goto/WebAPI/codepipeline-2015-07-09/CreateCustomActionTypeInput
type CreateCustomActionTypeInput struct { type CreateCustomActionTypeInput struct {
_ struct{} `type:"structure"` _ struct{} `type:"structure"`
@ -3971,7 +3974,7 @@ func (s *CreateCustomActionTypeInput) SetVersion(v string) *CreateCustomActionTy
return s return s
} }
// Represents the output of a create custom action operation. // Represents the output of a CreateCustomActionType operation.
// Please also see https://docs.aws.amazon.com/goto/WebAPI/codepipeline-2015-07-09/CreateCustomActionTypeOutput // Please also see https://docs.aws.amazon.com/goto/WebAPI/codepipeline-2015-07-09/CreateCustomActionTypeOutput
type CreateCustomActionTypeOutput struct { type CreateCustomActionTypeOutput struct {
_ struct{} `type:"structure"` _ struct{} `type:"structure"`
@ -3998,7 +4001,7 @@ func (s *CreateCustomActionTypeOutput) SetActionType(v *ActionType) *CreateCusto
return s return s
} }
// Represents the input of a create pipeline action. // Represents the input of a CreatePipeline action.
// Please also see https://docs.aws.amazon.com/goto/WebAPI/codepipeline-2015-07-09/CreatePipelineInput // Please also see https://docs.aws.amazon.com/goto/WebAPI/codepipeline-2015-07-09/CreatePipelineInput
type CreatePipelineInput struct { type CreatePipelineInput struct {
_ struct{} `type:"structure"` _ struct{} `type:"structure"`
@ -4043,7 +4046,7 @@ func (s *CreatePipelineInput) SetPipeline(v *PipelineDeclaration) *CreatePipelin
return s return s
} }
// Represents the output of a create pipeline action. // Represents the output of a CreatePipeline action.
// Please also see https://docs.aws.amazon.com/goto/WebAPI/codepipeline-2015-07-09/CreatePipelineOutput // Please also see https://docs.aws.amazon.com/goto/WebAPI/codepipeline-2015-07-09/CreatePipelineOutput
type CreatePipelineOutput struct { type CreatePipelineOutput struct {
_ struct{} `type:"structure"` _ struct{} `type:"structure"`
@ -4150,7 +4153,7 @@ func (s *CurrentRevision) SetRevisionSummary(v string) *CurrentRevision {
return s return s
} }
// Represents the input of a delete custom action operation. The custom action // Represents the input of a DeleteCustomActionType operation. The custom action
// will be marked as deleted. // will be marked as deleted.
// Please also see https://docs.aws.amazon.com/goto/WebAPI/codepipeline-2015-07-09/DeleteCustomActionTypeInput // Please also see https://docs.aws.amazon.com/goto/WebAPI/codepipeline-2015-07-09/DeleteCustomActionTypeInput
type DeleteCustomActionTypeInput struct { type DeleteCustomActionTypeInput struct {
@ -4241,7 +4244,7 @@ func (s DeleteCustomActionTypeOutput) GoString() string {
return s.String() return s.String()
} }
// Represents the input of a delete pipeline action. // Represents the input of a DeletePipeline action.
// Please also see https://docs.aws.amazon.com/goto/WebAPI/codepipeline-2015-07-09/DeletePipelineInput // Please also see https://docs.aws.amazon.com/goto/WebAPI/codepipeline-2015-07-09/DeletePipelineInput
type DeletePipelineInput struct { type DeletePipelineInput struct {
_ struct{} `type:"structure"` _ struct{} `type:"structure"`
@ -4299,7 +4302,7 @@ func (s DeletePipelineOutput) GoString() string {
return s.String() return s.String()
} }
// Represents the input of a disable stage transition input action. // Represents the input of a DisableStageTransition action.
// Please also see https://docs.aws.amazon.com/goto/WebAPI/codepipeline-2015-07-09/DisableStageTransitionInput // Please also see https://docs.aws.amazon.com/goto/WebAPI/codepipeline-2015-07-09/DisableStageTransitionInput
type DisableStageTransitionInput struct { type DisableStageTransitionInput struct {
_ struct{} `type:"structure"` _ struct{} `type:"structure"`
@ -4412,7 +4415,7 @@ func (s DisableStageTransitionOutput) GoString() string {
return s.String() return s.String()
} }
// Represents the input of an enable stage transition action. // Represents the input of an EnableStageTransition action.
// Please also see https://docs.aws.amazon.com/goto/WebAPI/codepipeline-2015-07-09/EnableStageTransitionInput // Please also see https://docs.aws.amazon.com/goto/WebAPI/codepipeline-2015-07-09/EnableStageTransitionInput
type EnableStageTransitionInput struct { type EnableStageTransitionInput struct {
_ struct{} `type:"structure"` _ struct{} `type:"structure"`
@ -4724,7 +4727,7 @@ func (s *FailureDetails) SetType(v string) *FailureDetails {
return s return s
} }
// Represents the input of a get job details action. // Represents the input of a GetJobDetails action.
// Please also see https://docs.aws.amazon.com/goto/WebAPI/codepipeline-2015-07-09/GetJobDetailsInput // Please also see https://docs.aws.amazon.com/goto/WebAPI/codepipeline-2015-07-09/GetJobDetailsInput
type GetJobDetailsInput struct { type GetJobDetailsInput struct {
_ struct{} `type:"structure"` _ struct{} `type:"structure"`
@ -4764,7 +4767,7 @@ func (s *GetJobDetailsInput) SetJobId(v string) *GetJobDetailsInput {
return s return s
} }
// Represents the output of a get job details action. // Represents the output of a GetJobDetails action.
// Please also see https://docs.aws.amazon.com/goto/WebAPI/codepipeline-2015-07-09/GetJobDetailsOutput // Please also see https://docs.aws.amazon.com/goto/WebAPI/codepipeline-2015-07-09/GetJobDetailsOutput
type GetJobDetailsOutput struct { type GetJobDetailsOutput struct {
_ struct{} `type:"structure"` _ struct{} `type:"structure"`
@ -4792,7 +4795,7 @@ func (s *GetJobDetailsOutput) SetJobDetails(v *JobDetails) *GetJobDetailsOutput
return s return s
} }
// Represents the input of a get pipeline execution action. // Represents the input of a GetPipelineExecution action.
// Please also see https://docs.aws.amazon.com/goto/WebAPI/codepipeline-2015-07-09/GetPipelineExecutionInput // Please also see https://docs.aws.amazon.com/goto/WebAPI/codepipeline-2015-07-09/GetPipelineExecutionInput
type GetPipelineExecutionInput struct { type GetPipelineExecutionInput struct {
_ struct{} `type:"structure"` _ struct{} `type:"structure"`
@ -4849,7 +4852,7 @@ func (s *GetPipelineExecutionInput) SetPipelineName(v string) *GetPipelineExecut
return s return s
} }
// Represents the output of a get pipeline execution action. // Represents the output of a GetPipelineExecution action.
// Please also see https://docs.aws.amazon.com/goto/WebAPI/codepipeline-2015-07-09/GetPipelineExecutionOutput // Please also see https://docs.aws.amazon.com/goto/WebAPI/codepipeline-2015-07-09/GetPipelineExecutionOutput
type GetPipelineExecutionOutput struct { type GetPipelineExecutionOutput struct {
_ struct{} `type:"structure"` _ struct{} `type:"structure"`
@ -4874,7 +4877,7 @@ func (s *GetPipelineExecutionOutput) SetPipelineExecution(v *PipelineExecution)
return s return s
} }
// Represents the input of a get pipeline action. // Represents the input of a GetPipeline action.
// Please also see https://docs.aws.amazon.com/goto/WebAPI/codepipeline-2015-07-09/GetPipelineInput // Please also see https://docs.aws.amazon.com/goto/WebAPI/codepipeline-2015-07-09/GetPipelineInput
type GetPipelineInput struct { type GetPipelineInput struct {
_ struct{} `type:"structure"` _ struct{} `type:"structure"`
@ -4931,11 +4934,15 @@ func (s *GetPipelineInput) SetVersion(v int64) *GetPipelineInput {
return s return s
} }
// Represents the output of a get pipeline action. // Represents the output of a GetPipeline action.
// Please also see https://docs.aws.amazon.com/goto/WebAPI/codepipeline-2015-07-09/GetPipelineOutput // Please also see https://docs.aws.amazon.com/goto/WebAPI/codepipeline-2015-07-09/GetPipelineOutput
type GetPipelineOutput struct { type GetPipelineOutput struct {
_ struct{} `type:"structure"` _ struct{} `type:"structure"`
// Represents the pipeline metadata information returned as part of the output
// of a GetPipeline action.
Metadata *PipelineMetadata `locationName:"metadata" type:"structure"`
// Represents the structure of actions and stages to be performed in the pipeline. // Represents the structure of actions and stages to be performed in the pipeline.
Pipeline *PipelineDeclaration `locationName:"pipeline" type:"structure"` Pipeline *PipelineDeclaration `locationName:"pipeline" type:"structure"`
} }
@ -4950,13 +4957,19 @@ func (s GetPipelineOutput) GoString() string {
return s.String() return s.String()
} }
// SetMetadata sets the Metadata field's value.
func (s *GetPipelineOutput) SetMetadata(v *PipelineMetadata) *GetPipelineOutput {
s.Metadata = v
return s
}
// SetPipeline sets the Pipeline field's value. // SetPipeline sets the Pipeline field's value.
func (s *GetPipelineOutput) SetPipeline(v *PipelineDeclaration) *GetPipelineOutput { func (s *GetPipelineOutput) SetPipeline(v *PipelineDeclaration) *GetPipelineOutput {
s.Pipeline = v s.Pipeline = v
return s return s
} }
// Represents the input of a get pipeline state action. // Represents the input of a GetPipelineState action.
// Please also see https://docs.aws.amazon.com/goto/WebAPI/codepipeline-2015-07-09/GetPipelineStateInput // Please also see https://docs.aws.amazon.com/goto/WebAPI/codepipeline-2015-07-09/GetPipelineStateInput
type GetPipelineStateInput struct { type GetPipelineStateInput struct {
_ struct{} `type:"structure"` _ struct{} `type:"structure"`
@ -4999,7 +5012,7 @@ func (s *GetPipelineStateInput) SetName(v string) *GetPipelineStateInput {
return s return s
} }
// Represents the output of a get pipeline state action. // Represents the output of a GetPipelineState action.
// Please also see https://docs.aws.amazon.com/goto/WebAPI/codepipeline-2015-07-09/GetPipelineStateOutput // Please also see https://docs.aws.amazon.com/goto/WebAPI/codepipeline-2015-07-09/GetPipelineStateOutput
type GetPipelineStateOutput struct { type GetPipelineStateOutput struct {
_ struct{} `type:"structure"` _ struct{} `type:"structure"`
@ -5063,7 +5076,7 @@ func (s *GetPipelineStateOutput) SetUpdated(v time.Time) *GetPipelineStateOutput
return s return s
} }
// Represents the input of a get third party job details action. // Represents the input of a GetThirdPartyJobDetails action.
// Please also see https://docs.aws.amazon.com/goto/WebAPI/codepipeline-2015-07-09/GetThirdPartyJobDetailsInput // Please also see https://docs.aws.amazon.com/goto/WebAPI/codepipeline-2015-07-09/GetThirdPartyJobDetailsInput
type GetThirdPartyJobDetailsInput struct { type GetThirdPartyJobDetailsInput struct {
_ struct{} `type:"structure"` _ struct{} `type:"structure"`
@ -5072,7 +5085,7 @@ type GetThirdPartyJobDetailsInput struct {
// that the calling entity is allowed access to the job and its details. // that the calling entity is allowed access to the job and its details.
// //
// ClientToken is a required field // ClientToken is a required field
ClientToken *string `locationName:"clientToken" type:"string" required:"true"` ClientToken *string `locationName:"clientToken" min:"1" type:"string" required:"true"`
// The unique system-generated ID used for identifying the job. // The unique system-generated ID used for identifying the job.
// //
@ -5096,6 +5109,9 @@ func (s *GetThirdPartyJobDetailsInput) Validate() error {
if s.ClientToken == nil { if s.ClientToken == nil {
invalidParams.Add(request.NewErrParamRequired("ClientToken")) invalidParams.Add(request.NewErrParamRequired("ClientToken"))
} }
if s.ClientToken != nil && len(*s.ClientToken) < 1 {
invalidParams.Add(request.NewErrParamMinLen("ClientToken", 1))
}
if s.JobId == nil { if s.JobId == nil {
invalidParams.Add(request.NewErrParamRequired("JobId")) invalidParams.Add(request.NewErrParamRequired("JobId"))
} }
@ -5121,7 +5137,7 @@ func (s *GetThirdPartyJobDetailsInput) SetJobId(v string) *GetThirdPartyJobDetai
return s return s
} }
// Represents the output of a get third party job details action. // Represents the output of a GetThirdPartyJobDetails action.
// Please also see https://docs.aws.amazon.com/goto/WebAPI/codepipeline-2015-07-09/GetThirdPartyJobDetailsOutput // Please also see https://docs.aws.amazon.com/goto/WebAPI/codepipeline-2015-07-09/GetThirdPartyJobDetailsOutput
type GetThirdPartyJobDetailsOutput struct { type GetThirdPartyJobDetailsOutput struct {
_ struct{} `type:"structure"` _ struct{} `type:"structure"`
@ -5388,7 +5404,7 @@ func (s *JobDetails) SetId(v string) *JobDetails {
return s return s
} }
// Represents the input of a list action types action. // Represents the input of a ListActionTypes action.
// Please also see https://docs.aws.amazon.com/goto/WebAPI/codepipeline-2015-07-09/ListActionTypesInput // Please also see https://docs.aws.amazon.com/goto/WebAPI/codepipeline-2015-07-09/ListActionTypesInput
type ListActionTypesInput struct { type ListActionTypesInput struct {
_ struct{} `type:"structure"` _ struct{} `type:"structure"`
@ -5398,7 +5414,7 @@ type ListActionTypesInput struct {
// An identifier that was returned from the previous list action types call, // An identifier that was returned from the previous list action types call,
// which can be used to return the next set of action types in the list. // which can be used to return the next set of action types in the list.
NextToken *string `locationName:"nextToken" type:"string"` NextToken *string `locationName:"nextToken" min:"1" type:"string"`
} }
// String returns the string representation // String returns the string representation
@ -5411,6 +5427,19 @@ func (s ListActionTypesInput) GoString() string {
return s.String() return s.String()
} }
// Validate inspects the fields of the type to determine if they are valid.
func (s *ListActionTypesInput) Validate() error {
invalidParams := request.ErrInvalidParams{Context: "ListActionTypesInput"}
if s.NextToken != nil && len(*s.NextToken) < 1 {
invalidParams.Add(request.NewErrParamMinLen("NextToken", 1))
}
if invalidParams.Len() > 0 {
return invalidParams
}
return nil
}
// SetActionOwnerFilter sets the ActionOwnerFilter field's value. // SetActionOwnerFilter sets the ActionOwnerFilter field's value.
func (s *ListActionTypesInput) SetActionOwnerFilter(v string) *ListActionTypesInput { func (s *ListActionTypesInput) SetActionOwnerFilter(v string) *ListActionTypesInput {
s.ActionOwnerFilter = &v s.ActionOwnerFilter = &v
@ -5423,7 +5452,7 @@ func (s *ListActionTypesInput) SetNextToken(v string) *ListActionTypesInput {
return s return s
} }
// Represents the output of a list action types action. // Represents the output of a ListActionTypes action.
// Please also see https://docs.aws.amazon.com/goto/WebAPI/codepipeline-2015-07-09/ListActionTypesOutput // Please also see https://docs.aws.amazon.com/goto/WebAPI/codepipeline-2015-07-09/ListActionTypesOutput
type ListActionTypesOutput struct { type ListActionTypesOutput struct {
_ struct{} `type:"structure"` _ struct{} `type:"structure"`
@ -5436,7 +5465,7 @@ type ListActionTypesOutput struct {
// If the amount of returned information is significantly large, an identifier // If the amount of returned information is significantly large, an identifier
// is also returned which can be used in a subsequent list action types call // is also returned which can be used in a subsequent list action types call
// to return the next set of action types in the list. // to return the next set of action types in the list.
NextToken *string `locationName:"nextToken" type:"string"` NextToken *string `locationName:"nextToken" min:"1" type:"string"`
} }
// String returns the string representation // String returns the string representation
@ -5461,7 +5490,7 @@ func (s *ListActionTypesOutput) SetNextToken(v string) *ListActionTypesOutput {
return s return s
} }
// Represents the input of a list pipeline executions action. // Represents the input of a ListPipelineExecutions action.
// Please also see https://docs.aws.amazon.com/goto/WebAPI/codepipeline-2015-07-09/ListPipelineExecutionsInput // Please also see https://docs.aws.amazon.com/goto/WebAPI/codepipeline-2015-07-09/ListPipelineExecutionsInput
type ListPipelineExecutionsInput struct { type ListPipelineExecutionsInput struct {
_ struct{} `type:"structure"` _ struct{} `type:"structure"`
@ -5472,9 +5501,9 @@ type ListPipelineExecutionsInput struct {
// based on pipeline execution start times. Default value is 100. // based on pipeline execution start times. Default value is 100.
MaxResults *int64 `locationName:"maxResults" min:"1" type:"integer"` MaxResults *int64 `locationName:"maxResults" min:"1" type:"integer"`
// The token that was returned from the previous list pipeline executions call, // The token that was returned from the previous ListPipelineExecutions call,
// which can be used to return the next set of pipeline executions in the list. // which can be used to return the next set of pipeline executions in the list.
NextToken *string `locationName:"nextToken" type:"string"` NextToken *string `locationName:"nextToken" min:"1" type:"string"`
// The name of the pipeline for which you want to get execution summary information. // The name of the pipeline for which you want to get execution summary information.
// //
@ -5498,6 +5527,9 @@ func (s *ListPipelineExecutionsInput) Validate() error {
if s.MaxResults != nil && *s.MaxResults < 1 { if s.MaxResults != nil && *s.MaxResults < 1 {
invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1))
} }
if s.NextToken != nil && len(*s.NextToken) < 1 {
invalidParams.Add(request.NewErrParamMinLen("NextToken", 1))
}
if s.PipelineName == nil { if s.PipelineName == nil {
invalidParams.Add(request.NewErrParamRequired("PipelineName")) invalidParams.Add(request.NewErrParamRequired("PipelineName"))
} }
@ -5529,16 +5561,15 @@ func (s *ListPipelineExecutionsInput) SetPipelineName(v string) *ListPipelineExe
return s return s
} }
// Represents the output of a list pipeline executions action. // Represents the output of a ListPipelineExecutions action.
// Please also see https://docs.aws.amazon.com/goto/WebAPI/codepipeline-2015-07-09/ListPipelineExecutionsOutput // Please also see https://docs.aws.amazon.com/goto/WebAPI/codepipeline-2015-07-09/ListPipelineExecutionsOutput
type ListPipelineExecutionsOutput struct { type ListPipelineExecutionsOutput struct {
_ struct{} `type:"structure"` _ struct{} `type:"structure"`
// A token that can be used in the next list pipeline executions call to return // A token that can be used in the next ListPipelineExecutions call. To view
// the next set of pipeline executions. To view all items in the list, continue // all items in the list, continue to call this operation with each subsequent
// to call this operation with each subsequent token until no more nextToken // token until no more nextToken values are returned.
// values are returned. NextToken *string `locationName:"nextToken" min:"1" type:"string"`
NextToken *string `locationName:"nextToken" type:"string"`
// A list of executions in the history of a pipeline. // A list of executions in the history of a pipeline.
PipelineExecutionSummaries []*PipelineExecutionSummary `locationName:"pipelineExecutionSummaries" type:"list"` PipelineExecutionSummaries []*PipelineExecutionSummary `locationName:"pipelineExecutionSummaries" type:"list"`
@ -5566,14 +5597,14 @@ func (s *ListPipelineExecutionsOutput) SetPipelineExecutionSummaries(v []*Pipeli
return s return s
} }
// Represents the input of a list pipelines action. // Represents the input of a ListPipelines action.
// Please also see https://docs.aws.amazon.com/goto/WebAPI/codepipeline-2015-07-09/ListPipelinesInput // Please also see https://docs.aws.amazon.com/goto/WebAPI/codepipeline-2015-07-09/ListPipelinesInput
type ListPipelinesInput struct { type ListPipelinesInput struct {
_ struct{} `type:"structure"` _ struct{} `type:"structure"`
// An identifier that was returned from the previous list pipelines call, which // An identifier that was returned from the previous list pipelines call, which
// can be used to return the next set of pipelines in the list. // can be used to return the next set of pipelines in the list.
NextToken *string `locationName:"nextToken" type:"string"` NextToken *string `locationName:"nextToken" min:"1" type:"string"`
} }
// String returns the string representation // String returns the string representation
@ -5586,13 +5617,26 @@ func (s ListPipelinesInput) GoString() string {
return s.String() return s.String()
} }
// Validate inspects the fields of the type to determine if they are valid.
func (s *ListPipelinesInput) Validate() error {
invalidParams := request.ErrInvalidParams{Context: "ListPipelinesInput"}
if s.NextToken != nil && len(*s.NextToken) < 1 {
invalidParams.Add(request.NewErrParamMinLen("NextToken", 1))
}
if invalidParams.Len() > 0 {
return invalidParams
}
return nil
}
// SetNextToken sets the NextToken field's value. // SetNextToken sets the NextToken field's value.
func (s *ListPipelinesInput) SetNextToken(v string) *ListPipelinesInput { func (s *ListPipelinesInput) SetNextToken(v string) *ListPipelinesInput {
s.NextToken = &v s.NextToken = &v
return s return s
} }
// Represents the output of a list pipelines action. // Represents the output of a ListPipelines action.
// Please also see https://docs.aws.amazon.com/goto/WebAPI/codepipeline-2015-07-09/ListPipelinesOutput // Please also see https://docs.aws.amazon.com/goto/WebAPI/codepipeline-2015-07-09/ListPipelinesOutput
type ListPipelinesOutput struct { type ListPipelinesOutput struct {
_ struct{} `type:"structure"` _ struct{} `type:"structure"`
@ -5600,7 +5644,7 @@ type ListPipelinesOutput struct {
// If the amount of returned information is significantly large, an identifier // If the amount of returned information is significantly large, an identifier
// is also returned which can be used in a subsequent list pipelines call to // is also returned which can be used in a subsequent list pipelines call to
// return the next set of pipelines in the list. // return the next set of pipelines in the list.
NextToken *string `locationName:"nextToken" type:"string"` NextToken *string `locationName:"nextToken" min:"1" type:"string"`
// The list of pipelines. // The list of pipelines.
Pipelines []*PipelineSummary `locationName:"pipelines" type:"list"` Pipelines []*PipelineSummary `locationName:"pipelines" type:"list"`
@ -5684,8 +5728,7 @@ func (s *OutputArtifact) SetName(v string) *OutputArtifact {
type PipelineContext struct { type PipelineContext struct {
_ struct{} `type:"structure"` _ struct{} `type:"structure"`
// Represents the context of an action within the stage of a pipeline to a job // The context of an action to a job worker within the stage of a pipeline.
// worker.
Action *ActionContext `locationName:"action" type:"structure"` Action *ActionContext `locationName:"action" type:"structure"`
// The name of the pipeline. This is a user-specified value. Pipeline names // The name of the pipeline. This is a user-specified value. Pipeline names
@ -5729,8 +5772,8 @@ func (s *PipelineContext) SetStage(v *StageContext) *PipelineContext {
type PipelineDeclaration struct { type PipelineDeclaration struct {
_ struct{} `type:"structure"` _ struct{} `type:"structure"`
// Represents the context of an action within the stage of a pipeline to a job // Represents information about the Amazon S3 bucket where artifacts are stored
// worker. // for the pipeline.
// //
// ArtifactStore is a required field // ArtifactStore is a required field
ArtifactStore *ArtifactStore `locationName:"artifactStore" type:"structure" required:"true"` ArtifactStore *ArtifactStore `locationName:"artifactStore" type:"structure" required:"true"`
@ -5861,13 +5904,13 @@ type PipelineExecution struct {
// //
// * InProgress: The pipeline execution is currently running. // * InProgress: The pipeline execution is currently running.
// //
// * Succeeded: The pipeline execution completed successfully. // * Succeeded: The pipeline execution was completed successfully.
// //
// * Superseded: While this pipeline execution was waiting for the next stage // * Superseded: While this pipeline execution was waiting for the next stage
// to be completed, a newer pipeline execution caught up and continued through // to be completed, a newer pipeline execution advanced and continued through
// the pipeline instead. // the pipeline instead.
// //
// * Failed: The pipeline execution did not complete successfully. // * Failed: The pipeline execution was not completed successfully.
Status *string `locationName:"status" type:"string" enum:"PipelineExecutionStatus"` Status *string `locationName:"status" type:"string" enum:"PipelineExecutionStatus"`
} }
@ -5930,13 +5973,13 @@ type PipelineExecutionSummary struct {
// //
// * InProgress: The pipeline execution is currently running. // * InProgress: The pipeline execution is currently running.
// //
// * Succeeded: The pipeline execution completed successfully. // * Succeeded: The pipeline execution was completed successfully.
// //
// * Superseded: While this pipeline execution was waiting for the next stage // * Superseded: While this pipeline execution was waiting for the next stage
// to be completed, a newer pipeline execution caught up and continued through // to be completed, a newer pipeline execution advanced and continued through
// the pipeline instead. // the pipeline instead.
// //
// * Failed: The pipeline execution did not complete successfully. // * Failed: The pipeline execution was not completed successfully.
Status *string `locationName:"status" type:"string" enum:"PipelineExecutionStatus"` Status *string `locationName:"status" type:"string" enum:"PipelineExecutionStatus"`
} }
@ -5974,6 +6017,49 @@ func (s *PipelineExecutionSummary) SetStatus(v string) *PipelineExecutionSummary
return s return s
} }
// Information about a pipeline.
// Please also see https://docs.aws.amazon.com/goto/WebAPI/codepipeline-2015-07-09/PipelineMetadata
type PipelineMetadata struct {
_ struct{} `type:"structure"`
// The date and time the pipeline was created, in timestamp format.
Created *time.Time `locationName:"created" type:"timestamp" timestampFormat:"unix"`
// The Amazon Resource Name (ARN) of the pipeline.
PipelineArn *string `locationName:"pipelineArn" type:"string"`
// The date and time the pipeline was last updated, in timestamp format.
Updated *time.Time `locationName:"updated" type:"timestamp" timestampFormat:"unix"`
}
// String returns the string representation
func (s PipelineMetadata) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s PipelineMetadata) GoString() string {
return s.String()
}
// SetCreated sets the Created field's value.
func (s *PipelineMetadata) SetCreated(v time.Time) *PipelineMetadata {
s.Created = &v
return s
}
// SetPipelineArn sets the PipelineArn field's value.
func (s *PipelineMetadata) SetPipelineArn(v string) *PipelineMetadata {
s.PipelineArn = &v
return s
}
// SetUpdated sets the Updated field's value.
func (s *PipelineMetadata) SetUpdated(v time.Time) *PipelineMetadata {
s.Updated = &v
return s
}
// Returns a summary of a pipeline. // Returns a summary of a pipeline.
// Please also see https://docs.aws.amazon.com/goto/WebAPI/codepipeline-2015-07-09/PipelineSummary // Please also see https://docs.aws.amazon.com/goto/WebAPI/codepipeline-2015-07-09/PipelineSummary
type PipelineSummary struct { type PipelineSummary struct {
@ -6026,7 +6112,7 @@ func (s *PipelineSummary) SetVersion(v int64) *PipelineSummary {
return s return s
} }
// Represents the input of a poll for jobs action. // Represents the input of a PollForJobs action.
// Please also see https://docs.aws.amazon.com/goto/WebAPI/codepipeline-2015-07-09/PollForJobsInput // Please also see https://docs.aws.amazon.com/goto/WebAPI/codepipeline-2015-07-09/PollForJobsInput
type PollForJobsInput struct { type PollForJobsInput struct {
_ struct{} `type:"structure"` _ struct{} `type:"structure"`
@ -6095,7 +6181,7 @@ func (s *PollForJobsInput) SetQueryParam(v map[string]*string) *PollForJobsInput
return s return s
} }
// Represents the output of a poll for jobs action. // Represents the output of a PollForJobs action.
// Please also see https://docs.aws.amazon.com/goto/WebAPI/codepipeline-2015-07-09/PollForJobsOutput // Please also see https://docs.aws.amazon.com/goto/WebAPI/codepipeline-2015-07-09/PollForJobsOutput
type PollForJobsOutput struct { type PollForJobsOutput struct {
_ struct{} `type:"structure"` _ struct{} `type:"structure"`
@ -6120,7 +6206,7 @@ func (s *PollForJobsOutput) SetJobs(v []*Job) *PollForJobsOutput {
return s return s
} }
// Represents the input of a poll for third party jobs action. // Represents the input of a PollForThirdPartyJobs action.
// Please also see https://docs.aws.amazon.com/goto/WebAPI/codepipeline-2015-07-09/PollForThirdPartyJobsInput // Please also see https://docs.aws.amazon.com/goto/WebAPI/codepipeline-2015-07-09/PollForThirdPartyJobsInput
type PollForThirdPartyJobsInput struct { type PollForThirdPartyJobsInput struct {
_ struct{} `type:"structure"` _ struct{} `type:"structure"`
@ -6177,7 +6263,7 @@ func (s *PollForThirdPartyJobsInput) SetMaxBatchSize(v int64) *PollForThirdParty
return s return s
} }
// Represents the output of a poll for third party jobs action. // Represents the output of a PollForThirdPartyJobs action.
// Please also see https://docs.aws.amazon.com/goto/WebAPI/codepipeline-2015-07-09/PollForThirdPartyJobsOutput // Please also see https://docs.aws.amazon.com/goto/WebAPI/codepipeline-2015-07-09/PollForThirdPartyJobsOutput
type PollForThirdPartyJobsOutput struct { type PollForThirdPartyJobsOutput struct {
_ struct{} `type:"structure"` _ struct{} `type:"structure"`
@ -6202,7 +6288,7 @@ func (s *PollForThirdPartyJobsOutput) SetJobs(v []*ThirdPartyJob) *PollForThirdP
return s return s
} }
// Represents the input of a put action revision action. // Represents the input of a PutActionRevision action.
// Please also see https://docs.aws.amazon.com/goto/WebAPI/codepipeline-2015-07-09/PutActionRevisionInput // Please also see https://docs.aws.amazon.com/goto/WebAPI/codepipeline-2015-07-09/PutActionRevisionInput
type PutActionRevisionInput struct { type PutActionRevisionInput struct {
_ struct{} `type:"structure"` _ struct{} `type:"structure"`
@ -6298,7 +6384,7 @@ func (s *PutActionRevisionInput) SetStageName(v string) *PutActionRevisionInput
return s return s
} }
// Represents the output of a put action revision action. // Represents the output of a PutActionRevision action.
// Please also see https://docs.aws.amazon.com/goto/WebAPI/codepipeline-2015-07-09/PutActionRevisionOutput // Please also see https://docs.aws.amazon.com/goto/WebAPI/codepipeline-2015-07-09/PutActionRevisionOutput
type PutActionRevisionOutput struct { type PutActionRevisionOutput struct {
_ struct{} `type:"structure"` _ struct{} `type:"structure"`
@ -6333,7 +6419,7 @@ func (s *PutActionRevisionOutput) SetPipelineExecutionId(v string) *PutActionRev
return s return s
} }
// Represents the input of a put approval result action. // Represents the input of a PutApprovalResult action.
// Please also see https://docs.aws.amazon.com/goto/WebAPI/codepipeline-2015-07-09/PutApprovalResultInput // Please also see https://docs.aws.amazon.com/goto/WebAPI/codepipeline-2015-07-09/PutApprovalResultInput
type PutApprovalResultInput struct { type PutApprovalResultInput struct {
_ struct{} `type:"structure"` _ struct{} `type:"structure"`
@ -6446,7 +6532,7 @@ func (s *PutApprovalResultInput) SetToken(v string) *PutApprovalResultInput {
return s return s
} }
// Represents the output of a put approval result action. // Represents the output of a PutApprovalResult action.
// Please also see https://docs.aws.amazon.com/goto/WebAPI/codepipeline-2015-07-09/PutApprovalResultOutput // Please also see https://docs.aws.amazon.com/goto/WebAPI/codepipeline-2015-07-09/PutApprovalResultOutput
type PutApprovalResultOutput struct { type PutApprovalResultOutput struct {
_ struct{} `type:"structure"` _ struct{} `type:"structure"`
@ -6471,7 +6557,7 @@ func (s *PutApprovalResultOutput) SetApprovedAt(v time.Time) *PutApprovalResultO
return s return s
} }
// Represents the input of a put job failure result action. // Represents the input of a PutJobFailureResult action.
// Please also see https://docs.aws.amazon.com/goto/WebAPI/codepipeline-2015-07-09/PutJobFailureResultInput // Please also see https://docs.aws.amazon.com/goto/WebAPI/codepipeline-2015-07-09/PutJobFailureResultInput
type PutJobFailureResultInput struct { type PutJobFailureResultInput struct {
_ struct{} `type:"structure"` _ struct{} `type:"structure"`
@ -6546,7 +6632,7 @@ func (s PutJobFailureResultOutput) GoString() string {
return s.String() return s.String()
} }
// Represents the input of a put job success result action. // Represents the input of a PutJobSuccessResult action.
// Please also see https://docs.aws.amazon.com/goto/WebAPI/codepipeline-2015-07-09/PutJobSuccessResultInput // Please also see https://docs.aws.amazon.com/goto/WebAPI/codepipeline-2015-07-09/PutJobSuccessResultInput
type PutJobSuccessResultInput struct { type PutJobSuccessResultInput struct {
_ struct{} `type:"structure"` _ struct{} `type:"structure"`
@ -6646,7 +6732,7 @@ func (s PutJobSuccessResultOutput) GoString() string {
return s.String() return s.String()
} }
// Represents the input of a third party job failure result action. // Represents the input of a PutThirdPartyJobFailureResult action.
// Please also see https://docs.aws.amazon.com/goto/WebAPI/codepipeline-2015-07-09/PutThirdPartyJobFailureResultInput // Please also see https://docs.aws.amazon.com/goto/WebAPI/codepipeline-2015-07-09/PutThirdPartyJobFailureResultInput
type PutThirdPartyJobFailureResultInput struct { type PutThirdPartyJobFailureResultInput struct {
_ struct{} `type:"structure"` _ struct{} `type:"structure"`
@ -6655,7 +6741,7 @@ type PutThirdPartyJobFailureResultInput struct {
// that the calling entity is allowed access to the job and its details. // that the calling entity is allowed access to the job and its details.
// //
// ClientToken is a required field // ClientToken is a required field
ClientToken *string `locationName:"clientToken" type:"string" required:"true"` ClientToken *string `locationName:"clientToken" min:"1" type:"string" required:"true"`
// Represents information about failure details. // Represents information about failure details.
// //
@ -6684,6 +6770,9 @@ func (s *PutThirdPartyJobFailureResultInput) Validate() error {
if s.ClientToken == nil { if s.ClientToken == nil {
invalidParams.Add(request.NewErrParamRequired("ClientToken")) invalidParams.Add(request.NewErrParamRequired("ClientToken"))
} }
if s.ClientToken != nil && len(*s.ClientToken) < 1 {
invalidParams.Add(request.NewErrParamMinLen("ClientToken", 1))
}
if s.FailureDetails == nil { if s.FailureDetails == nil {
invalidParams.Add(request.NewErrParamRequired("FailureDetails")) invalidParams.Add(request.NewErrParamRequired("FailureDetails"))
} }
@ -6738,7 +6827,7 @@ func (s PutThirdPartyJobFailureResultOutput) GoString() string {
return s.String() return s.String()
} }
// Represents the input of a put third party job success result action. // Represents the input of a PutThirdPartyJobSuccessResult action.
// Please also see https://docs.aws.amazon.com/goto/WebAPI/codepipeline-2015-07-09/PutThirdPartyJobSuccessResultInput // Please also see https://docs.aws.amazon.com/goto/WebAPI/codepipeline-2015-07-09/PutThirdPartyJobSuccessResultInput
type PutThirdPartyJobSuccessResultInput struct { type PutThirdPartyJobSuccessResultInput struct {
_ struct{} `type:"structure"` _ struct{} `type:"structure"`
@ -6747,7 +6836,7 @@ type PutThirdPartyJobSuccessResultInput struct {
// that the calling entity is allowed access to the job and its details. // that the calling entity is allowed access to the job and its details.
// //
// ClientToken is a required field // ClientToken is a required field
ClientToken *string `locationName:"clientToken" type:"string" required:"true"` ClientToken *string `locationName:"clientToken" min:"1" type:"string" required:"true"`
// A token generated by a job worker, such as an AWS CodeDeploy deployment ID, // A token generated by a job worker, such as an AWS CodeDeploy deployment ID,
// that a successful job provides to identify a partner action in progress. // that a successful job provides to identify a partner action in progress.
@ -6787,6 +6876,9 @@ func (s *PutThirdPartyJobSuccessResultInput) Validate() error {
if s.ClientToken == nil { if s.ClientToken == nil {
invalidParams.Add(request.NewErrParamRequired("ClientToken")) invalidParams.Add(request.NewErrParamRequired("ClientToken"))
} }
if s.ClientToken != nil && len(*s.ClientToken) < 1 {
invalidParams.Add(request.NewErrParamMinLen("ClientToken", 1))
}
if s.JobId == nil { if s.JobId == nil {
invalidParams.Add(request.NewErrParamRequired("JobId")) invalidParams.Add(request.NewErrParamRequired("JobId"))
} }
@ -6855,7 +6947,7 @@ func (s PutThirdPartyJobSuccessResultOutput) GoString() string {
return s.String() return s.String()
} }
// Represents the input of a retry stage execution action. // Represents the input of a RetryStageExecution action.
// Please also see https://docs.aws.amazon.com/goto/WebAPI/codepipeline-2015-07-09/RetryStageExecutionInput // Please also see https://docs.aws.amazon.com/goto/WebAPI/codepipeline-2015-07-09/RetryStageExecutionInput
type RetryStageExecutionInput struct { type RetryStageExecutionInput struct {
_ struct{} `type:"structure"` _ struct{} `type:"structure"`
@ -6945,7 +7037,7 @@ func (s *RetryStageExecutionInput) SetStageName(v string) *RetryStageExecutionIn
return s return s
} }
// Represents the output of a retry stage execution action. // Represents the output of a RetryStageExecution action.
// Please also see https://docs.aws.amazon.com/goto/WebAPI/codepipeline-2015-07-09/RetryStageExecutionOutput // Please also see https://docs.aws.amazon.com/goto/WebAPI/codepipeline-2015-07-09/RetryStageExecutionOutput
type RetryStageExecutionOutput struct { type RetryStageExecutionOutput struct {
_ struct{} `type:"structure"` _ struct{} `type:"structure"`
@ -7212,7 +7304,7 @@ func (s *StageState) SetStageName(v string) *StageState {
return s return s
} }
// Represents the input of a start pipeline execution action. // Represents the input of a StartPipelineExecution action.
// Please also see https://docs.aws.amazon.com/goto/WebAPI/codepipeline-2015-07-09/StartPipelineExecutionInput // Please also see https://docs.aws.amazon.com/goto/WebAPI/codepipeline-2015-07-09/StartPipelineExecutionInput
type StartPipelineExecutionInput struct { type StartPipelineExecutionInput struct {
_ struct{} `type:"structure"` _ struct{} `type:"structure"`
@ -7255,7 +7347,7 @@ func (s *StartPipelineExecutionInput) SetName(v string) *StartPipelineExecutionI
return s return s
} }
// Represents the output of a start pipeline execution action. // Represents the output of a StartPipelineExecution action.
// Please also see https://docs.aws.amazon.com/goto/WebAPI/codepipeline-2015-07-09/StartPipelineExecutionOutput // Please also see https://docs.aws.amazon.com/goto/WebAPI/codepipeline-2015-07-09/StartPipelineExecutionOutput
type StartPipelineExecutionOutput struct { type StartPipelineExecutionOutput struct {
_ struct{} `type:"structure"` _ struct{} `type:"structure"`
@ -7515,7 +7607,7 @@ func (s *TransitionState) SetLastChangedBy(v string) *TransitionState {
return s return s
} }
// Represents the input of an update pipeline action. // Represents the input of an UpdatePipeline action.
// Please also see https://docs.aws.amazon.com/goto/WebAPI/codepipeline-2015-07-09/UpdatePipelineInput // Please also see https://docs.aws.amazon.com/goto/WebAPI/codepipeline-2015-07-09/UpdatePipelineInput
type UpdatePipelineInput struct { type UpdatePipelineInput struct {
_ struct{} `type:"structure"` _ struct{} `type:"structure"`
@ -7560,7 +7652,7 @@ func (s *UpdatePipelineInput) SetPipeline(v *PipelineDeclaration) *UpdatePipelin
return s return s
} }
// Represents the output of an update pipeline action. // Represents the output of an UpdatePipeline action.
// Please also see https://docs.aws.amazon.com/goto/WebAPI/codepipeline-2015-07-09/UpdatePipelineOutput // Please also see https://docs.aws.amazon.com/goto/WebAPI/codepipeline-2015-07-09/UpdatePipelineOutput
type UpdatePipelineOutput struct { type UpdatePipelineOutput struct {
_ struct{} `type:"structure"` _ struct{} `type:"structure"`

View File

@ -22,7 +22,8 @@
// //
// * DeletePipeline, which deletes the specified pipeline. // * DeletePipeline, which deletes the specified pipeline.
// //
// * GetPipeline, which returns information about a pipeline structure. // * GetPipeline, which returns information about the pipeline structure
// and pipeline metadata, including the pipeline Amazon Resource Name (ARN).
// //
// * GetPipelineExecution, which returns information about a specific execution // * GetPipelineExecution, which returns information about a specific execution
// of a pipeline. // of a pipeline.
@ -33,6 +34,9 @@
// * ListPipelines, which gets a summary of all of the pipelines associated // * ListPipelines, which gets a summary of all of the pipelines associated
// with your account. // with your account.
// //
// * ListPipelineExecutions, which gets a summary of the most recent executions
// for a pipeline.
//
// * StartPipelineExecution, which runs the the most recent revision of an // * StartPipelineExecution, which runs the the most recent revision of an
// artifact through the pipeline. // artifact through the pipeline.
// //
@ -120,7 +124,7 @@
// //
// Using the Client // Using the Client
// //
// To AWS CodePipeline with the SDK use the New function to create // To contact AWS CodePipeline with the SDK use the New function to create
// a new service client. With that client you can make API requests to the service. // a new service client. With that client you can make API requests to the service.
// These clients are safe to use concurrently. // These clients are safe to use concurrently.
// //

View File

@ -43,7 +43,7 @@
// //
// Using the Client // Using the Client
// //
// To Amazon Cognito Identity with the SDK use the New function to create // To contact Amazon Cognito Identity with the SDK use the New function to create
// a new service client. With that client you can make API requests to the service. // a new service client. With that client you can make API requests to the service.
// These clients are safe to use concurrently. // These clients are safe to use concurrently.
// //

View File

@ -2889,8 +2889,9 @@ func (s *ComplianceSummaryByResourceType) SetResourceType(v string) *ComplianceS
return s return s
} }
// A list that contains the status of the delivery of either the snapshot or // Provides status of the delivery of the snapshot or the configuration history
// the configuration history to the specified Amazon S3 bucket. // to the specified Amazon S3 bucket. Also provides the status of notifications
// about the Amazon S3 delivery to the specified Amazon SNS topic.
// Please also see https://docs.aws.amazon.com/goto/WebAPI/config-2014-11-12/ConfigExportDeliveryInfo // Please also see https://docs.aws.amazon.com/goto/WebAPI/config-2014-11-12/ConfigExportDeliveryInfo
type ConfigExportDeliveryInfo struct { type ConfigExportDeliveryInfo struct {
_ struct{} `type:"structure"` _ struct{} `type:"structure"`
@ -6245,8 +6246,8 @@ type Scope struct {
// a resource ID for ComplianceResourceId. // a resource ID for ComplianceResourceId.
ComplianceResourceTypes []*string `type:"list"` ComplianceResourceTypes []*string `type:"list"`
// The tag key that is applied to only those AWS resources that you want you // The tag key that is applied to only those AWS resources that you want to
// want to trigger an evaluation for the rule. // trigger an evaluation for the rule.
TagKey *string `min:"1" type:"string"` TagKey *string `min:"1" type:"string"`
// The tag value applied to only those AWS resources that you want to trigger // The tag value applied to only those AWS resources that you want to trigger
@ -6848,4 +6849,22 @@ const (
// ResourceTypeAwsCloudFormationStack is a ResourceType enum value // ResourceTypeAwsCloudFormationStack is a ResourceType enum value
ResourceTypeAwsCloudFormationStack = "AWS::CloudFormation::Stack" ResourceTypeAwsCloudFormationStack = "AWS::CloudFormation::Stack"
// ResourceTypeAwsDynamoDbTable is a ResourceType enum value
ResourceTypeAwsDynamoDbTable = "AWS::DynamoDB::Table"
// ResourceTypeAwsAutoScalingAutoScalingGroup is a ResourceType enum value
ResourceTypeAwsAutoScalingAutoScalingGroup = "AWS::AutoScaling::AutoScalingGroup"
// ResourceTypeAwsAutoScalingLaunchConfiguration is a ResourceType enum value
ResourceTypeAwsAutoScalingLaunchConfiguration = "AWS::AutoScaling::LaunchConfiguration"
// ResourceTypeAwsAutoScalingScalingPolicy is a ResourceType enum value
ResourceTypeAwsAutoScalingScalingPolicy = "AWS::AutoScaling::ScalingPolicy"
// ResourceTypeAwsAutoScalingScheduledAction is a ResourceType enum value
ResourceTypeAwsAutoScalingScheduledAction = "AWS::AutoScaling::ScheduledAction"
// ResourceTypeAwsCodeBuildProject is a ResourceType enum value
ResourceTypeAwsCodeBuildProject = "AWS::CodeBuild::Project"
) )

View File

@ -35,7 +35,7 @@
// //
// Using the Client // Using the Client
// //
// To AWS Config with the SDK use the New function to create // To contact AWS Config with the SDK use the New function to create
// a new service client. With that client you can make API requests to the service. // a new service client. With that client you can make API requests to the service.
// These clients are safe to use concurrently. // These clients are safe to use concurrently.
// //

View File

@ -2874,6 +2874,10 @@ func (c *DatabaseMigrationService) DescribeTableStatisticsRequest(input *Describ
// Returns table statistics on the database migration task, including table // Returns table statistics on the database migration task, including table
// name, rows inserted, rows updated, and rows deleted. // name, rows inserted, rows updated, and rows deleted.
// //
// Note that the "last updated" column the DMS console only indicates the time
// that AWS DMS last updated the table statistics record for a table. It does
// not indicate the time of the last update to the table.
//
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
// with awserr.Error's Code and Message methods to get detailed information about // with awserr.Error's Code and Message methods to get detailed information about
// the error. // the error.
@ -7043,6 +7047,14 @@ func (s *DescribeSchemasOutput) SetSchemas(v []*string) *DescribeSchemasOutput {
type DescribeTableStatisticsInput struct { type DescribeTableStatisticsInput struct {
_ struct{} `type:"structure"` _ struct{} `type:"structure"`
// Filters applied to the describe table statistics action.
//
// Valid filter names: schema-name | table-name | table-state
//
// A combination of filters creates an AND condition where each record matches
// all specified filters.
Filters []*Filter `locationNameList:"Filter" type:"list"`
// An optional pagination token provided by a previous request. If this parameter // An optional pagination token provided by a previous request. If this parameter
// is specified, the response includes only records beyond the marker, up to // is specified, the response includes only records beyond the marker, up to
// the value specified by MaxRecords. // the value specified by MaxRecords.
@ -7054,7 +7066,7 @@ type DescribeTableStatisticsInput struct {
// //
// Default: 100 // Default: 100
// //
// Constraints: Minimum 20, maximum 100. // Constraints: Minimum 20, maximum 500.
MaxRecords *int64 `type:"integer"` MaxRecords *int64 `type:"integer"`
// The Amazon Resource Name (ARN) of the replication task. // The Amazon Resource Name (ARN) of the replication task.
@ -7079,6 +7091,16 @@ func (s *DescribeTableStatisticsInput) Validate() error {
if s.ReplicationTaskArn == nil { if s.ReplicationTaskArn == nil {
invalidParams.Add(request.NewErrParamRequired("ReplicationTaskArn")) invalidParams.Add(request.NewErrParamRequired("ReplicationTaskArn"))
} }
if s.Filters != nil {
for i, v := range s.Filters {
if v == nil {
continue
}
if err := v.Validate(); err != nil {
invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Filters", i), err.(request.ErrInvalidParams))
}
}
}
if invalidParams.Len() > 0 { if invalidParams.Len() > 0 {
return invalidParams return invalidParams
@ -7086,6 +7108,12 @@ func (s *DescribeTableStatisticsInput) Validate() error {
return nil return nil
} }
// SetFilters sets the Filters field's value.
func (s *DescribeTableStatisticsInput) SetFilters(v []*Filter) *DescribeTableStatisticsInput {
s.Filters = v
return s
}
// SetMarker sets the Marker field's value. // SetMarker sets the Marker field's value.
func (s *DescribeTableStatisticsInput) SetMarker(v string) *DescribeTableStatisticsInput { func (s *DescribeTableStatisticsInput) SetMarker(v string) *DescribeTableStatisticsInput {
s.Marker = &v s.Marker = &v
@ -7826,7 +7854,8 @@ type ModifyEndpointInput struct {
// MONGODB, SYBASE, and SQLSERVER. // MONGODB, SYBASE, and SQLSERVER.
EngineName *string `type:"string"` EngineName *string `type:"string"`
// Additional attributes associated with the connection. // Additional attributes associated with the connection. To reset this parameter,
// pass the empty string ("") as an argument.
ExtraConnectionAttributes *string `type:"string"` ExtraConnectionAttributes *string `type:"string"`
// Settings in JSON format for the source MongoDB endpoint. For more information // Settings in JSON format for the source MongoDB endpoint. For more information
@ -9921,7 +9950,11 @@ type TableStatistics struct {
// The name of the table. // The name of the table.
TableName *string `type:"string"` TableName *string `type:"string"`
// The state of the table. // The state of the tables described.
//
// Valid states: Table does not exist | Before load | Full load | Table completed
// | Table cancelled | Table error | Table all | Table updates | Table is being
// reloaded
TableState *string `type:"string"` TableState *string `type:"string"`
// The number of update actions performed on a table. // The number of update actions performed on a table.

View File

@ -21,7 +21,7 @@
// //
// Using the Client // Using the Client
// //
// To AWS Database Migration Service with the SDK use the New function to create // To contact AWS Database Migration Service with the SDK use the New function to create
// a new service client. With that client you can make API requests to the service. // a new service client. With that client you can make API requests to the service.
// These clients are safe to use concurrently. // These clients are safe to use concurrently.
// //

View File

@ -5882,6 +5882,12 @@ func (s *CreateRemoteAccessSessionConfiguration) SetBillingMethod(v string) *Cre
type CreateRemoteAccessSessionInput struct { type CreateRemoteAccessSessionInput struct {
_ struct{} `type:"structure"` _ struct{} `type:"structure"`
// Unique identifier for the client. If you want access to multiple devices
// on the same client, you should pass the same clientId value in each call
// to CreateRemoteAccessSession. This is required only if remoteDebugEnabled
// is set to true true.
ClientId *string `locationName:"clientId" type:"string"`
// The configuration information for the remote access session request. // The configuration information for the remote access session request.
Configuration *CreateRemoteAccessSessionConfiguration `locationName:"configuration" type:"structure"` Configuration *CreateRemoteAccessSessionConfiguration `locationName:"configuration" type:"structure"`
@ -5899,6 +5905,15 @@ type CreateRemoteAccessSessionInput struct {
// //
// ProjectArn is a required field // ProjectArn is a required field
ProjectArn *string `locationName:"projectArn" min:"32" type:"string" required:"true"` ProjectArn *string `locationName:"projectArn" min:"32" type:"string" required:"true"`
// Set to true if you want to access devices remotely for debugging in your
// remote access session.
RemoteDebugEnabled *bool `locationName:"remoteDebugEnabled" type:"boolean"`
// The public key of the ssh key pair you want to use for connecting to remote
// devices in your remote debugging session. This is only required if remoteDebugEnabled
// is set to true.
SshPublicKey *string `locationName:"sshPublicKey" type:"string"`
} }
// String returns the string representation // String returns the string representation
@ -5933,6 +5948,12 @@ func (s *CreateRemoteAccessSessionInput) Validate() error {
return nil return nil
} }
// SetClientId sets the ClientId field's value.
func (s *CreateRemoteAccessSessionInput) SetClientId(v string) *CreateRemoteAccessSessionInput {
s.ClientId = &v
return s
}
// SetConfiguration sets the Configuration field's value. // SetConfiguration sets the Configuration field's value.
func (s *CreateRemoteAccessSessionInput) SetConfiguration(v *CreateRemoteAccessSessionConfiguration) *CreateRemoteAccessSessionInput { func (s *CreateRemoteAccessSessionInput) SetConfiguration(v *CreateRemoteAccessSessionConfiguration) *CreateRemoteAccessSessionInput {
s.Configuration = v s.Configuration = v
@ -5957,6 +5978,18 @@ func (s *CreateRemoteAccessSessionInput) SetProjectArn(v string) *CreateRemoteAc
return s return s
} }
// SetRemoteDebugEnabled sets the RemoteDebugEnabled field's value.
func (s *CreateRemoteAccessSessionInput) SetRemoteDebugEnabled(v bool) *CreateRemoteAccessSessionInput {
s.RemoteDebugEnabled = &v
return s
}
// SetSshPublicKey sets the SshPublicKey field's value.
func (s *CreateRemoteAccessSessionInput) SetSshPublicKey(v string) *CreateRemoteAccessSessionInput {
s.SshPublicKey = &v
return s
}
// Represents the server response from a request to create a remote access session. // Represents the server response from a request to create a remote access session.
// Please also see https://docs.aws.amazon.com/goto/WebAPI/devicefarm-2015-06-23/CreateRemoteAccessSessionResult // Please also see https://docs.aws.amazon.com/goto/WebAPI/devicefarm-2015-06-23/CreateRemoteAccessSessionResult
type CreateRemoteAccessSessionOutput struct { type CreateRemoteAccessSessionOutput struct {
@ -6131,6 +6164,57 @@ func (s *CreateUploadOutput) SetUpload(v *Upload) *CreateUploadOutput {
return s return s
} }
// A JSON object specifying the paths where the artifacts generated by the customer's
// tests, on the device or in the test environment, will be pulled from.
//
// Specify deviceHostPaths and optionally specify either iosPaths or androidPaths.
//
// For web app tests, you can specify both iosPaths and androidPaths.
// Please also see https://docs.aws.amazon.com/goto/WebAPI/devicefarm-2015-06-23/CustomerArtifactPaths
type CustomerArtifactPaths struct {
_ struct{} `type:"structure"`
// Comma-separated list of paths on the Android device where the artifacts generated
// by the customer's tests will be pulled from.
AndroidPaths []*string `locationName:"androidPaths" type:"list"`
// Comma-separated list of paths in the test execution environment where the
// artifacts generated by the customer's tests will be pulled from.
DeviceHostPaths []*string `locationName:"deviceHostPaths" type:"list"`
// Comma-separated list of paths on the iOS device where the artifacts generated
// by the customer's tests will be pulled from.
IosPaths []*string `locationName:"iosPaths" type:"list"`
}
// String returns the string representation
func (s CustomerArtifactPaths) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s CustomerArtifactPaths) GoString() string {
return s.String()
}
// SetAndroidPaths sets the AndroidPaths field's value.
func (s *CustomerArtifactPaths) SetAndroidPaths(v []*string) *CustomerArtifactPaths {
s.AndroidPaths = v
return s
}
// SetDeviceHostPaths sets the DeviceHostPaths field's value.
func (s *CustomerArtifactPaths) SetDeviceHostPaths(v []*string) *CustomerArtifactPaths {
s.DeviceHostPaths = v
return s
}
// SetIosPaths sets the IosPaths field's value.
func (s *CustomerArtifactPaths) SetIosPaths(v []*string) *CustomerArtifactPaths {
s.IosPaths = v
return s
}
// Represents a request to the delete device pool operation. // Represents a request to the delete device pool operation.
// Please also see https://docs.aws.amazon.com/goto/WebAPI/devicefarm-2015-06-23/DeleteDevicePoolRequest // Please also see https://docs.aws.amazon.com/goto/WebAPI/devicefarm-2015-06-23/DeleteDevicePoolRequest
type DeleteDevicePoolInput struct { type DeleteDevicePoolInput struct {
@ -6554,6 +6638,9 @@ type Device struct {
// Specifies whether remote access has been enabled for the specified device. // Specifies whether remote access has been enabled for the specified device.
RemoteAccessEnabled *bool `locationName:"remoteAccessEnabled" type:"boolean"` RemoteAccessEnabled *bool `locationName:"remoteAccessEnabled" type:"boolean"`
// This flag is set to true if remote debugging is enabled for the device.
RemoteDebugEnabled *bool `locationName:"remoteDebugEnabled" type:"boolean"`
// The resolution of the device. // The resolution of the device.
Resolution *Resolution `locationName:"resolution" type:"structure"` Resolution *Resolution `locationName:"resolution" type:"structure"`
} }
@ -6664,6 +6751,12 @@ func (s *Device) SetRemoteAccessEnabled(v bool) *Device {
return s return s
} }
// SetRemoteDebugEnabled sets the RemoteDebugEnabled field's value.
func (s *Device) SetRemoteDebugEnabled(v bool) *Device {
s.RemoteDebugEnabled = &v
return s
}
// SetResolution sets the Resolution field's value. // SetResolution sets the Resolution field's value.
func (s *Device) SetResolution(v *Resolution) *Device { func (s *Device) SetResolution(v *Resolution) *Device {
s.Resolution = v s.Resolution = v
@ -10425,6 +10518,10 @@ type RemoteAccessSession struct {
// Device Farm terminology (http://docs.aws.amazon.com/devicefarm/latest/developerguide/welcome.html#welcome-terminology)." // Device Farm terminology (http://docs.aws.amazon.com/devicefarm/latest/developerguide/welcome.html#welcome-terminology)."
BillingMethod *string `locationName:"billingMethod" type:"string" enum:"BillingMethod"` BillingMethod *string `locationName:"billingMethod" type:"string" enum:"BillingMethod"`
// Unique identifier of your client for the remote access session. Only returned
// if remote debugging is enabled for the remote access session.
ClientId *string `locationName:"clientId" type:"string"`
// The date and time the remote access session was created. // The date and time the remote access session was created.
Created *time.Time `locationName:"created" type:"timestamp" timestampFormat:"unix"` Created *time.Time `locationName:"created" type:"timestamp" timestampFormat:"unix"`
@ -10435,15 +10532,27 @@ type RemoteAccessSession struct {
// setup and teardown minutes). // setup and teardown minutes).
DeviceMinutes *DeviceMinutes `locationName:"deviceMinutes" type:"structure"` DeviceMinutes *DeviceMinutes `locationName:"deviceMinutes" type:"structure"`
// Unique device identifier for the remote device. Only returned if remote debugging
// is enabled for the remote access session.
DeviceUdid *string `locationName:"deviceUdid" type:"string"`
// The endpoint for the remote access sesssion. // The endpoint for the remote access sesssion.
Endpoint *string `locationName:"endpoint" type:"string"` Endpoint *string `locationName:"endpoint" type:"string"`
// IP address of the EC2 host where you need to connect to remotely debug devices.
// Only returned if remote debugging is enabled for the remote access session.
HostAddress *string `locationName:"hostAddress" type:"string"`
// A message about the remote access session. // A message about the remote access session.
Message *string `locationName:"message" type:"string"` Message *string `locationName:"message" type:"string"`
// The name of the remote access session. // The name of the remote access session.
Name *string `locationName:"name" type:"string"` Name *string `locationName:"name" type:"string"`
// This flag is set to true if remote debugging is enabled for the remote access
// session.
RemoteDebugEnabled *bool `locationName:"remoteDebugEnabled" type:"boolean"`
// The result of the remote access session. Can be any of the following: // The result of the remote access session. Can be any of the following:
// //
// * PENDING: A pending condition. // * PENDING: A pending condition.
@ -10511,6 +10620,12 @@ func (s *RemoteAccessSession) SetBillingMethod(v string) *RemoteAccessSession {
return s return s
} }
// SetClientId sets the ClientId field's value.
func (s *RemoteAccessSession) SetClientId(v string) *RemoteAccessSession {
s.ClientId = &v
return s
}
// SetCreated sets the Created field's value. // SetCreated sets the Created field's value.
func (s *RemoteAccessSession) SetCreated(v time.Time) *RemoteAccessSession { func (s *RemoteAccessSession) SetCreated(v time.Time) *RemoteAccessSession {
s.Created = &v s.Created = &v
@ -10529,12 +10644,24 @@ func (s *RemoteAccessSession) SetDeviceMinutes(v *DeviceMinutes) *RemoteAccessSe
return s return s
} }
// SetDeviceUdid sets the DeviceUdid field's value.
func (s *RemoteAccessSession) SetDeviceUdid(v string) *RemoteAccessSession {
s.DeviceUdid = &v
return s
}
// SetEndpoint sets the Endpoint field's value. // SetEndpoint sets the Endpoint field's value.
func (s *RemoteAccessSession) SetEndpoint(v string) *RemoteAccessSession { func (s *RemoteAccessSession) SetEndpoint(v string) *RemoteAccessSession {
s.Endpoint = &v s.Endpoint = &v
return s return s
} }
// SetHostAddress sets the HostAddress field's value.
func (s *RemoteAccessSession) SetHostAddress(v string) *RemoteAccessSession {
s.HostAddress = &v
return s
}
// SetMessage sets the Message field's value. // SetMessage sets the Message field's value.
func (s *RemoteAccessSession) SetMessage(v string) *RemoteAccessSession { func (s *RemoteAccessSession) SetMessage(v string) *RemoteAccessSession {
s.Message = &v s.Message = &v
@ -10547,6 +10674,12 @@ func (s *RemoteAccessSession) SetName(v string) *RemoteAccessSession {
return s return s
} }
// SetRemoteDebugEnabled sets the RemoteDebugEnabled field's value.
func (s *RemoteAccessSession) SetRemoteDebugEnabled(v bool) *RemoteAccessSession {
s.RemoteDebugEnabled = &v
return s
}
// SetResult sets the Result field's value. // SetResult sets the Result field's value.
func (s *RemoteAccessSession) SetResult(v string) *RemoteAccessSession { func (s *RemoteAccessSession) SetResult(v string) *RemoteAccessSession {
s.Result = &v s.Result = &v
@ -10747,7 +10880,8 @@ func (s *Rule) SetValue(v string) *Rule {
return s return s
} }
// Represents an app on a set of devices with a specific test and configuration. // Represents a test run on a set of devices with a given app package, test
// parameters, etc.
// Please also see https://docs.aws.amazon.com/goto/WebAPI/devicefarm-2015-06-23/Run // Please also see https://docs.aws.amazon.com/goto/WebAPI/devicefarm-2015-06-23/Run
type Run struct { type Run struct {
_ struct{} `type:"structure"` _ struct{} `type:"structure"`
@ -10768,6 +10902,9 @@ type Run struct {
// When the run was created. // When the run was created.
Created *time.Time `locationName:"created" type:"timestamp" timestampFormat:"unix"` Created *time.Time `locationName:"created" type:"timestamp" timestampFormat:"unix"`
// Output CustomerArtifactPaths object for the test run.
CustomerArtifactPaths *CustomerArtifactPaths `locationName:"customerArtifactPaths" type:"structure"`
// Represents the total (metered or unmetered) minutes used by the test run. // Represents the total (metered or unmetered) minutes used by the test run.
DeviceMinutes *DeviceMinutes `locationName:"deviceMinutes" type:"structure"` DeviceMinutes *DeviceMinutes `locationName:"deviceMinutes" type:"structure"`
@ -10780,6 +10917,11 @@ type Run struct {
// The network profile being used for a test run. // The network profile being used for a test run.
NetworkProfile *NetworkProfile `locationName:"networkProfile" type:"structure"` NetworkProfile *NetworkProfile `locationName:"networkProfile" type:"structure"`
// Read-only URL for an object in S3 bucket where you can get the parsing results
// of the test package. If the test package doesn't parse, the reason why it
// doesn't parse appears in the file that this URL points to.
ParsingResultUrl *string `locationName:"parsingResultUrl" type:"string"`
// The run's platform. // The run's platform.
// //
// Allowed values include: // Allowed values include:
@ -10808,6 +10950,10 @@ type Run struct {
// * STOPPED: A stopped condition. // * STOPPED: A stopped condition.
Result *string `locationName:"result" type:"string" enum:"ExecutionResult"` Result *string `locationName:"result" type:"string" enum:"ExecutionResult"`
// Supporting field for the result field. Set only if result is SKIPPED. PARSING_FAILED
// if the result is skipped because of test package parsing failure.
ResultCode *string `locationName:"resultCode" type:"string" enum:"ExecutionResultCode"`
// The run's start time. // The run's start time.
Started *time.Time `locationName:"started" type:"timestamp" timestampFormat:"unix"` Started *time.Time `locationName:"started" type:"timestamp" timestampFormat:"unix"`
@ -10916,6 +11062,12 @@ func (s *Run) SetCreated(v time.Time) *Run {
return s return s
} }
// SetCustomerArtifactPaths sets the CustomerArtifactPaths field's value.
func (s *Run) SetCustomerArtifactPaths(v *CustomerArtifactPaths) *Run {
s.CustomerArtifactPaths = v
return s
}
// SetDeviceMinutes sets the DeviceMinutes field's value. // SetDeviceMinutes sets the DeviceMinutes field's value.
func (s *Run) SetDeviceMinutes(v *DeviceMinutes) *Run { func (s *Run) SetDeviceMinutes(v *DeviceMinutes) *Run {
s.DeviceMinutes = v s.DeviceMinutes = v
@ -10940,6 +11092,12 @@ func (s *Run) SetNetworkProfile(v *NetworkProfile) *Run {
return s return s
} }
// SetParsingResultUrl sets the ParsingResultUrl field's value.
func (s *Run) SetParsingResultUrl(v string) *Run {
s.ParsingResultUrl = &v
return s
}
// SetPlatform sets the Platform field's value. // SetPlatform sets the Platform field's value.
func (s *Run) SetPlatform(v string) *Run { func (s *Run) SetPlatform(v string) *Run {
s.Platform = &v s.Platform = &v
@ -10952,6 +11110,12 @@ func (s *Run) SetResult(v string) *Run {
return s return s
} }
// SetResultCode sets the ResultCode field's value.
func (s *Run) SetResultCode(v string) *Run {
s.ResultCode = &v
return s
}
// SetStarted sets the Started field's value. // SetStarted sets the Started field's value.
func (s *Run) SetStarted(v time.Time) *Run { func (s *Run) SetStarted(v time.Time) *Run {
s.Started = &v s.Started = &v
@ -11080,6 +11244,9 @@ type ScheduleRunConfiguration struct {
// parameter is not specified, the default value is metered. // parameter is not specified, the default value is metered.
BillingMethod *string `locationName:"billingMethod" type:"string" enum:"BillingMethod"` BillingMethod *string `locationName:"billingMethod" type:"string" enum:"BillingMethod"`
// Input CustomerArtifactPaths object for the scheduled run configuration.
CustomerArtifactPaths *CustomerArtifactPaths `locationName:"customerArtifactPaths" type:"structure"`
// The ARN of the extra data for the run. The extra data is a .zip file that // The ARN of the extra data for the run. The extra data is a .zip file that
// AWS Device Farm will extract to external data for Android or the app's sandbox // AWS Device Farm will extract to external data for Android or the app's sandbox
// for iOS. // for iOS.
@ -11141,6 +11308,12 @@ func (s *ScheduleRunConfiguration) SetBillingMethod(v string) *ScheduleRunConfig
return s return s
} }
// SetCustomerArtifactPaths sets the CustomerArtifactPaths field's value.
func (s *ScheduleRunConfiguration) SetCustomerArtifactPaths(v *CustomerArtifactPaths) *ScheduleRunConfiguration {
s.CustomerArtifactPaths = v
return s
}
// SetExtraDataPackageArn sets the ExtraDataPackageArn field's value. // SetExtraDataPackageArn sets the ExtraDataPackageArn field's value.
func (s *ScheduleRunConfiguration) SetExtraDataPackageArn(v string) *ScheduleRunConfiguration { func (s *ScheduleRunConfiguration) SetExtraDataPackageArn(v string) *ScheduleRunConfiguration {
s.ExtraDataPackageArn = &v s.ExtraDataPackageArn = &v
@ -12656,6 +12829,12 @@ const (
// ArtifactTypeVideo is a ArtifactType enum value // ArtifactTypeVideo is a ArtifactType enum value
ArtifactTypeVideo = "VIDEO" ArtifactTypeVideo = "VIDEO"
// ArtifactTypeCustomerArtifact is a ArtifactType enum value
ArtifactTypeCustomerArtifact = "CUSTOMER_ARTIFACT"
// ArtifactTypeCustomerArtifactLog is a ArtifactType enum value
ArtifactTypeCustomerArtifactLog = "CUSTOMER_ARTIFACT_LOG"
) )
const ( const (
@ -12687,6 +12866,9 @@ const (
// DeviceAttributeRemoteAccessEnabled is a DeviceAttribute enum value // DeviceAttributeRemoteAccessEnabled is a DeviceAttribute enum value
DeviceAttributeRemoteAccessEnabled = "REMOTE_ACCESS_ENABLED" DeviceAttributeRemoteAccessEnabled = "REMOTE_ACCESS_ENABLED"
// DeviceAttributeRemoteDebugEnabled is a DeviceAttribute enum value
DeviceAttributeRemoteDebugEnabled = "REMOTE_DEBUG_ENABLED"
// DeviceAttributeAppiumVersion is a DeviceAttribute enum value // DeviceAttributeAppiumVersion is a DeviceAttribute enum value
DeviceAttributeAppiumVersion = "APPIUM_VERSION" DeviceAttributeAppiumVersion = "APPIUM_VERSION"
) )
@ -12738,6 +12920,11 @@ const (
ExecutionResultStopped = "STOPPED" ExecutionResultStopped = "STOPPED"
) )
const (
// ExecutionResultCodeParsingFailed is a ExecutionResultCode enum value
ExecutionResultCodeParsingFailed = "PARSING_FAILED"
)
const ( const (
// ExecutionStatusPending is a ExecutionStatus enum value // ExecutionStatusPending is a ExecutionStatus enum value
ExecutionStatusPending = "PENDING" ExecutionStatusPending = "PENDING"

View File

@ -14,7 +14,7 @@
// //
// Using the Client // Using the Client
// //
// To AWS Device Farm with the SDK use the New function to create // To contact AWS Device Farm with the SDK use the New function to create
// a new service client. With that client you can make API requests to the service. // a new service client. With that client you can make API requests to the service.
// These clients are safe to use concurrently. // These clients are safe to use concurrently.
// //

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,39 @@
// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
// Package directconnect provides the client and types for making API
// requests to AWS Direct Connect.
//
// AWS Direct Connect links your internal network to an AWS Direct Connect location
// over a standard 1 gigabit or 10 gigabit Ethernet fiber-optic cable. One end
// of the cable is connected to your router, the other to an AWS Direct Connect
// router. With this connection in place, you can create virtual interfaces
// directly to the AWS cloud (for example, to Amazon Elastic Compute Cloud (Amazon
// EC2) and Amazon Simple Storage Service (Amazon S3)) and to Amazon Virtual
// Private Cloud (Amazon VPC), bypassing Internet service providers in your
// network path. An AWS Direct Connect location provides access to AWS in the
// region it is associated with, as well as access to other US regions. For
// example, you can provision a single connection to any AWS Direct Connect
// location in the US and use it to access public AWS services in all US Regions
// and AWS GovCloud (US).
//
// See https://docs.aws.amazon.com/goto/WebAPI/directconnect-2012-10-25 for more information on this service.
//
// See directconnect package documentation for more information.
// https://docs.aws.amazon.com/sdk-for-go/api/service/directconnect/
//
// Using the Client
//
// To contact AWS Direct Connect with the SDK use the New function to create
// a new service client. With that client you can make API requests to the service.
// These clients are safe to use concurrently.
//
// See the SDK's documentation for more information on how to use the SDK.
// https://docs.aws.amazon.com/sdk-for-go/api/
//
// See aws.Config documentation for more information on configuring SDK clients.
// https://docs.aws.amazon.com/sdk-for-go/api/aws/#Config
//
// See the AWS Direct Connect client DirectConnect for more
// information on creating client for this service.
// https://docs.aws.amazon.com/sdk-for-go/api/service/directconnect/#New
package directconnect

View File

@ -0,0 +1,33 @@
// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
package directconnect
const (
// ErrCodeClientException for service response error code
// "ClientException".
//
// The API was called with invalid parameters. The error message will contain
// additional details about the cause.
ErrCodeClientException = "ClientException"
// ErrCodeDuplicateTagKeysException for service response error code
// "DuplicateTagKeysException".
//
// A tag key was specified more than once.
ErrCodeDuplicateTagKeysException = "DuplicateTagKeysException"
// ErrCodeServerException for service response error code
// "ServerException".
//
// A server-side error occurred during the API call. The error message will
// contain additional details about the cause.
ErrCodeServerException = "ServerException"
// ErrCodeTooManyTagsException for service response error code
// "TooManyTagsException".
//
// You have reached the limit on the number of tags that can be assigned to
// a Direct Connect resource.
ErrCodeTooManyTagsException = "TooManyTagsException"
)

View File

@ -0,0 +1,95 @@
// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
package directconnect
import (
"github.com/aws/aws-sdk-go/aws"
"github.com/aws/aws-sdk-go/aws/client"
"github.com/aws/aws-sdk-go/aws/client/metadata"
"github.com/aws/aws-sdk-go/aws/request"
"github.com/aws/aws-sdk-go/aws/signer/v4"
"github.com/aws/aws-sdk-go/private/protocol/jsonrpc"
)
// DirectConnect provides the API operation methods for making requests to
// AWS Direct Connect. See this package's package overview docs
// for details on the service.
//
// DirectConnect methods are safe to use concurrently. It is not safe to
// modify mutate any of the struct's properties though.
type DirectConnect struct {
*client.Client
}
// Used for custom client initialization logic
var initClient func(*client.Client)
// Used for custom request initialization logic
var initRequest func(*request.Request)
// Service information constants
const (
ServiceName = "directconnect" // Service endpoint prefix API calls made to.
EndpointsID = ServiceName // Service ID for Regions and Endpoints metadata.
)
// New creates a new instance of the DirectConnect client with a session.
// If additional configuration is needed for the client instance use the optional
// aws.Config parameter to add your extra config.
//
// Example:
// // Create a DirectConnect client from just a session.
// svc := directconnect.New(mySession)
//
// // Create a DirectConnect client with additional configuration
// svc := directconnect.New(mySession, aws.NewConfig().WithRegion("us-west-2"))
func New(p client.ConfigProvider, cfgs ...*aws.Config) *DirectConnect {
c := p.ClientConfig(EndpointsID, cfgs...)
return newClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion, c.SigningName)
}
// newClient creates, initializes and returns a new service client instance.
func newClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion, signingName string) *DirectConnect {
svc := &DirectConnect{
Client: client.New(
cfg,
metadata.ClientInfo{
ServiceName: ServiceName,
SigningName: signingName,
SigningRegion: signingRegion,
Endpoint: endpoint,
APIVersion: "2012-10-25",
JSONVersion: "1.1",
TargetPrefix: "OvertureService",
},
handlers,
),
}
// Handlers
svc.Handlers.Sign.PushBackNamed(v4.SignRequestHandler)
svc.Handlers.Build.PushBackNamed(jsonrpc.BuildHandler)
svc.Handlers.Unmarshal.PushBackNamed(jsonrpc.UnmarshalHandler)
svc.Handlers.UnmarshalMeta.PushBackNamed(jsonrpc.UnmarshalMetaHandler)
svc.Handlers.UnmarshalError.PushBackNamed(jsonrpc.UnmarshalErrorHandler)
// Run custom client initialization if present
if initClient != nil {
initClient(svc.Client)
}
return svc
}
// newRequest creates a new request for a DirectConnect operation and runs any
// custom request initialization.
func (c *DirectConnect) newRequest(op *request.Operation, params, data interface{}) *request.Request {
req := c.NewRequest(op, params, data)
// Run custom request initialization if present
if initRequest != nil {
initRequest(req)
}
return req
}

View File

@ -24,7 +24,7 @@
// //
// Using the Client // Using the Client
// //
// To AWS Directory Service with the SDK use the New function to create // To contact AWS Directory Service with the SDK use the New function to create
// a new service client. With that client you can make API requests to the service. // a new service client. With that client you can make API requests to the service.
// These clients are safe to use concurrently. // These clients are safe to use concurrently.
// //

View File

@ -29,7 +29,7 @@
// //
// Using the Client // Using the Client
// //
// To Amazon DynamoDB with the SDK use the New function to create // To contact Amazon DynamoDB with the SDK use the New function to create
// a new service client. With that client you can make API requests to the service. // a new service client. With that client you can make API requests to the service.
// These clients are safe to use concurrently. // These clients are safe to use concurrently.
// //

View File

@ -1,84 +1,27 @@
// AttributeValue Marshaling and Unmarshaling Helpers /*
// AttributeValue Marshaling and Unmarshaling Helpers
// Utility helpers to marshal and unmarshal AttributeValue to and
// from Go types can be found in the dynamodbattribute sub package. This package Utility helpers to marshal and unmarshal AttributeValue to and
// provides has specialized functions for the common ways of working with from Go types can be found in the dynamodbattribute sub package. This package
// AttributeValues. Such as map[string]*AttributeValue, []*AttributeValue, and provides has specialized functions for the common ways of working with
// directly with *AttributeValue. This is helpful for marshaling Go types for API AttributeValues. Such as map[string]*AttributeValue, []*AttributeValue, and
// operations such as PutItem, and unmarshaling Query and Scan APIs' responses. directly with *AttributeValue. This is helpful for marshaling Go types for API
// operations such as PutItem, and unmarshaling Query and Scan APIs' responses.
// See the dynamodbattribute package documentation for more information.
// https://docs.aws.amazon.com/sdk-for-go/api/service/dynamodb/dynamodbattribute/ See the dynamodbattribute package documentation for more information.
// https://docs.aws.amazon.com/sdk-for-go/api/service/dynamodb/dynamodbattribute/
// AttributeValue Marshaling
// Expression Builders
// To marshal a Go type to an AttributeValue you can use the Marshal
// functions in the dynamodbattribute package. There are specialized versions The expression package provides utility types and functions to build DynamoDB
// of these functions for collections of AttributeValue, such as maps and lists. expression for type safe construction of API ExpressionAttributeNames, and
// ExpressionAttribute Values.
// The following example uses MarshalMap to convert the Record Go type to a
// dynamodb.AttributeValue type and use the value to make a PutItem API request. The package represents the various DynamoDB Expressions as structs named
// accordingly. For example, ConditionBuilder represents a DynamoDB Condition
// type Record struct { Expression, an UpdateBuilder represents a DynamoDB Update Expression, and so on.
// ID string
// URLs []string See the expression package documentation for more information.
// } https://docs.aws.amazon.com/sdk-for-go/api/service/dynamodb/expression/
// */
// //...
//
// r := Record{
// ID: "ABC123",
// URLs: []string{
// "https://example.com/first/link",
// "https://example.com/second/url",
// },
// }
// av, err := dynamodbattribute.MarshalMap(r)
// if err != nil {
// panic(fmt.Sprintf("failed to DynamoDB marshal Record, %v", err))
// }
//
// _, err = svc.PutItem(&dynamodb.PutItemInput{
// TableName: aws.String(myTableName),
// Item: av,
// })
// if err != nil {
// panic(fmt.Sprintf("failed to put Record to DynamoDB, %v", err))
// }
//
// AttributeValue Unmarshaling
//
// To unmarshal a dynamodb.AttributeValue to a Go type you can use the Unmarshal
// functions in the dynamodbattribute package. There are specialized versions
// of these functions for collections of AttributeValue, such as maps and lists.
//
// The following example will unmarshal the DynamoDB's Scan API operation. The
// Items returned by the operation will be unmarshaled into the slice of Records
// Go type.
//
// type Record struct {
// ID string
// URLs []string
// }
//
// //...
//
// var records []Record
//
// // Use the ScanPages method to perform the scan with pagination. Use
// // just Scan method to make the API call without pagination.
// err := svc.ScanPages(&dynamodb.ScanInput{
// TableName: aws.String(myTableName),
// }, func(page *dynamodb.ScanOutput, last bool) bool {
// recs := []Record{}
//
// err := dynamodbattribute.UnmarshalListOfMaps(page.Items, &recs)
// if err != nil {
// panic(fmt.Sprintf("failed to unmarshal Dynamodb Scan Items, %v", err))
// }
//
// records = append(records, recs...)
//
// return true // keep paging
// })
package dynamodb package dynamodb

File diff suppressed because it is too large Load Diff

View File

@ -15,7 +15,7 @@
// //
// Using the Client // Using the Client
// //
// To Amazon Elastic Compute Cloud with the SDK use the New function to create // To contact Amazon Elastic Compute Cloud with the SDK use the New function to create
// a new service client. With that client you can make API requests to the service. // a new service client. With that client you can make API requests to the service.
// These clients are safe to use concurrently. // These clients are safe to use concurrently.
// //

View File

@ -1025,6 +1025,11 @@ func (c *EC2) WaitUntilSpotInstanceRequestFulfilledWithContext(ctx aws.Context,
Matcher: request.PathAllWaiterMatch, Argument: "SpotInstanceRequests[].Status.Code", Matcher: request.PathAllWaiterMatch, Argument: "SpotInstanceRequests[].Status.Code",
Expected: "fulfilled", Expected: "fulfilled",
}, },
{
State: request.SuccessWaiterState,
Matcher: request.PathAllWaiterMatch, Argument: "SpotInstanceRequests[].Status.Code",
Expected: "request-canceled-and-instance-running",
},
{ {
State: request.FailureWaiterState, State: request.FailureWaiterState,
Matcher: request.PathAnyWaiterMatch, Argument: "SpotInstanceRequests[].Status.Code", Matcher: request.PathAnyWaiterMatch, Argument: "SpotInstanceRequests[].Status.Code",

File diff suppressed because it is too large Load Diff

View File

@ -3,11 +3,11 @@
// Package ecr provides the client and types for making API // Package ecr provides the client and types for making API
// requests to Amazon EC2 Container Registry. // requests to Amazon EC2 Container Registry.
// //
// Amazon EC2 Container Registry (Amazon ECR) is a managed AWS Docker registry // Amazon EC2 Container Registry (Amazon ECR) is a managed Docker registry service.
// service. Customers can use the familiar Docker CLI to push, pull, and manage // Customers can use the familiar Docker CLI to push, pull, and manage images.
// images. Amazon ECR provides a secure, scalable, and reliable registry. Amazon // Amazon ECR provides a secure, scalable, and reliable registry. Amazon ECR
// ECR supports private Docker repositories with resource-based permissions // supports private Docker repositories with resource-based permissions using
// using AWS IAM so that specific users or Amazon EC2 instances can access repositories // IAM so that specific users or Amazon EC2 instances can access repositories
// and images. Developers can use the Docker CLI to author and manage images. // and images. Developers can use the Docker CLI to author and manage images.
// //
// See https://docs.aws.amazon.com/goto/WebAPI/ecr-2015-09-21 for more information on this service. // See https://docs.aws.amazon.com/goto/WebAPI/ecr-2015-09-21 for more information on this service.
@ -17,7 +17,7 @@
// //
// Using the Client // Using the Client
// //
// To Amazon EC2 Container Registry with the SDK use the New function to create // To contact Amazon EC2 Container Registry with the SDK use the New function to create
// a new service client. With that client you can make API requests to the service. // a new service client. With that client you can make API requests to the service.
// These clients are safe to use concurrently. // These clients are safe to use concurrently.
// //

View File

@ -13,8 +13,8 @@ const (
// ErrCodeImageAlreadyExistsException for service response error code // ErrCodeImageAlreadyExistsException for service response error code
// "ImageAlreadyExistsException". // "ImageAlreadyExistsException".
// //
// The specified image has already been pushed, and there are no changes to // The specified image has already been pushed, and there were no changes to
// the manifest or image tag since the last push. // the manifest or image tag after the last push.
ErrCodeImageAlreadyExistsException = "ImageAlreadyExistsException" ErrCodeImageAlreadyExistsException = "ImageAlreadyExistsException"
// ErrCodeImageNotFoundException for service response error code // ErrCodeImageNotFoundException for service response error code
@ -70,6 +70,25 @@ const (
// for this repository. // for this repository.
ErrCodeLayersNotFoundException = "LayersNotFoundException" ErrCodeLayersNotFoundException = "LayersNotFoundException"
// ErrCodeLifecyclePolicyNotFoundException for service response error code
// "LifecyclePolicyNotFoundException".
//
// The lifecycle policy could not be found, and no policy is set to the repository.
ErrCodeLifecyclePolicyNotFoundException = "LifecyclePolicyNotFoundException"
// ErrCodeLifecyclePolicyPreviewInProgressException for service response error code
// "LifecyclePolicyPreviewInProgressException".
//
// The previous lifecycle policy preview request has not completed. Please try
// again later.
ErrCodeLifecyclePolicyPreviewInProgressException = "LifecyclePolicyPreviewInProgressException"
// ErrCodeLifecyclePolicyPreviewNotFoundException for service response error code
// "LifecyclePolicyPreviewNotFoundException".
//
// There is no dry run for this repository.
ErrCodeLifecyclePolicyPreviewNotFoundException = "LifecyclePolicyPreviewNotFoundException"
// ErrCodeLimitExceededException for service response error code // ErrCodeLimitExceededException for service response error code
// "LimitExceededException". // "LimitExceededException".
// //

File diff suppressed because it is too large Load Diff

View File

@ -23,7 +23,7 @@
// //
// Using the Client // Using the Client
// //
// To Amazon EC2 Container Service with the SDK use the New function to create // To contact Amazon EC2 Container Service with the SDK use the New function to create
// a new service client. With that client you can make API requests to the service. // a new service client. With that client you can make API requests to the service.
// These clients are safe to use concurrently. // These clients are safe to use concurrently.
// //

View File

@ -16,7 +16,7 @@
// //
// Using the Client // Using the Client
// //
// To Amazon Elastic File System with the SDK use the New function to create // To contact Amazon Elastic File System with the SDK use the New function to create
// a new service client. With that client you can make API requests to the service. // a new service client. With that client you can make API requests to the service.
// These clients are safe to use concurrently. // These clients are safe to use concurrently.
// //

File diff suppressed because it is too large Load Diff

View File

@ -22,7 +22,7 @@
// //
// Using the Client // Using the Client
// //
// To Amazon ElastiCache with the SDK use the New function to create // To contact Amazon ElastiCache with the SDK use the New function to create
// a new service client. With that client you can make API requests to the service. // a new service client. With that client you can make API requests to the service.
// These clients are safe to use concurrently. // These clients are safe to use concurrently.
// //

View File

@ -27,13 +27,13 @@ const (
// ErrCodeCacheClusterAlreadyExistsFault for service response error code // ErrCodeCacheClusterAlreadyExistsFault for service response error code
// "CacheClusterAlreadyExists". // "CacheClusterAlreadyExists".
// //
// You already have a cache cluster with the given identifier. // You already have a cluster with the given identifier.
ErrCodeCacheClusterAlreadyExistsFault = "CacheClusterAlreadyExists" ErrCodeCacheClusterAlreadyExistsFault = "CacheClusterAlreadyExists"
// ErrCodeCacheClusterNotFoundFault for service response error code // ErrCodeCacheClusterNotFoundFault for service response error code
// "CacheClusterNotFound". // "CacheClusterNotFound".
// //
// The requested cache cluster ID does not refer to an existing cache cluster. // The requested cluster ID does not refer to an existing cluster.
ErrCodeCacheClusterNotFoundFault = "CacheClusterNotFound" ErrCodeCacheClusterNotFoundFault = "CacheClusterNotFound"
// ErrCodeCacheParameterGroupAlreadyExistsFault for service response error code // ErrCodeCacheParameterGroupAlreadyExistsFault for service response error code
@ -114,7 +114,7 @@ const (
// "ClusterQuotaForCustomerExceeded". // "ClusterQuotaForCustomerExceeded".
// //
// The request cannot be processed because it would exceed the allowed number // The request cannot be processed because it would exceed the allowed number
// of cache clusters per customer. // of clusters per customer.
ErrCodeClusterQuotaForCustomerExceededFault = "ClusterQuotaForCustomerExceeded" ErrCodeClusterQuotaForCustomerExceededFault = "ClusterQuotaForCustomerExceeded"
// ErrCodeInsufficientCacheClusterCapacityFault for service response error code // ErrCodeInsufficientCacheClusterCapacityFault for service response error code
@ -133,7 +133,7 @@ const (
// ErrCodeInvalidCacheClusterStateFault for service response error code // ErrCodeInvalidCacheClusterStateFault for service response error code
// "InvalidCacheClusterState". // "InvalidCacheClusterState".
// //
// The requested cache cluster is not in the available state. // The requested cluster is not in the available state.
ErrCodeInvalidCacheClusterStateFault = "InvalidCacheClusterState" ErrCodeInvalidCacheClusterStateFault = "InvalidCacheClusterState"
// ErrCodeInvalidCacheParameterGroupStateFault for service response error code // ErrCodeInvalidCacheParameterGroupStateFault for service response error code
@ -197,15 +197,16 @@ const (
// ErrCodeNodeGroupsPerReplicationGroupQuotaExceededFault for service response error code // ErrCodeNodeGroupsPerReplicationGroupQuotaExceededFault for service response error code
// "NodeGroupsPerReplicationGroupQuotaExceeded". // "NodeGroupsPerReplicationGroupQuotaExceeded".
// //
// The request cannot be processed because it would exceed the maximum of 15 // The request cannot be processed because it would exceed the maximum allowed
// node groups (shards) in a single replication group. // number of node groups (shards) in a single replication group. The default
// maximum is 15
ErrCodeNodeGroupsPerReplicationGroupQuotaExceededFault = "NodeGroupsPerReplicationGroupQuotaExceeded" ErrCodeNodeGroupsPerReplicationGroupQuotaExceededFault = "NodeGroupsPerReplicationGroupQuotaExceeded"
// ErrCodeNodeQuotaForClusterExceededFault for service response error code // ErrCodeNodeQuotaForClusterExceededFault for service response error code
// "NodeQuotaForClusterExceeded". // "NodeQuotaForClusterExceeded".
// //
// The request cannot be processed because it would exceed the allowed number // The request cannot be processed because it would exceed the allowed number
// of cache nodes in a single cache cluster. // of cache nodes in a single cluster.
ErrCodeNodeQuotaForClusterExceededFault = "NodeQuotaForClusterExceeded" ErrCodeNodeQuotaForClusterExceededFault = "NodeQuotaForClusterExceeded"
// ErrCodeNodeQuotaForCustomerExceededFault for service response error code // ErrCodeNodeQuotaForCustomerExceededFault for service response error code
@ -263,11 +264,11 @@ const (
// //
// You attempted one of the following operations: // You attempted one of the following operations:
// //
// * Creating a snapshot of a Redis cache cluster running on a cache.t1.micro // * Creating a snapshot of a Redis cluster running on a cache.t1.micro cache
// cache node. // node.
// //
// * Creating a snapshot of a cache cluster that is running Memcached rather // * Creating a snapshot of a cluster that is running Memcached rather than
// than Redis. // Redis.
// //
// Neither of these are supported by ElastiCache. // Neither of these are supported by ElastiCache.
ErrCodeSnapshotFeatureNotSupportedFault = "SnapshotFeatureNotSupportedFault" ErrCodeSnapshotFeatureNotSupportedFault = "SnapshotFeatureNotSupportedFault"

View File

@ -2518,6 +2518,96 @@ func (c *ElasticBeanstalk) ListPlatformVersionsWithContext(ctx aws.Context, inpu
return out, req.Send() return out, req.Send()
} }
const opListTagsForResource = "ListTagsForResource"
// ListTagsForResourceRequest generates a "aws/request.Request" representing the
// client's request for the ListTagsForResource operation. The "output" return
// value will be populated with the request's response once the request complets
// successfuly.
//
// Use "Send" method on the returned Request to send the API call to the service.
// the "output" return value is not valid until after Send returns without error.
//
// See ListTagsForResource for more information on using the ListTagsForResource
// API call, and error handling.
//
// This method is useful when you want to inject custom logic or configuration
// into the SDK's request lifecycle. Such as custom headers, or retry logic.
//
//
// // Example sending a request using the ListTagsForResourceRequest method.
// req, resp := client.ListTagsForResourceRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticbeanstalk-2010-12-01/ListTagsForResource
func (c *ElasticBeanstalk) ListTagsForResourceRequest(input *ListTagsForResourceInput) (req *request.Request, output *ListTagsForResourceOutput) {
op := &request.Operation{
Name: opListTagsForResource,
HTTPMethod: "POST",
HTTPPath: "/",
}
if input == nil {
input = &ListTagsForResourceInput{}
}
output = &ListTagsForResourceOutput{}
req = c.newRequest(op, input, output)
return
}
// ListTagsForResource API operation for AWS Elastic Beanstalk.
//
// Returns the tags applied to an AWS Elastic Beanstalk resource. The response
// contains a list of tag key-value pairs.
//
// Currently, Elastic Beanstalk only supports tagging Elastic Beanstalk environments.
//
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
// with awserr.Error's Code and Message methods to get detailed information about
// the error.
//
// See the AWS API reference guide for AWS Elastic Beanstalk's
// API operation ListTagsForResource for usage and error information.
//
// Returned Error Codes:
// * ErrCodeInsufficientPrivilegesException "InsufficientPrivilegesException"
// The specified account does not have sufficient privileges for one of more
// AWS services.
//
// * ErrCodeResourceNotFoundException "ResourceNotFoundException"
// A resource doesn't exist for the specified Amazon Resource Name (ARN).
//
// * ErrCodeResourceTypeNotSupportedException "ResourceTypeNotSupportedException"
// The type of the specified Amazon Resource Name (ARN) isn't supported for
// this operation.
//
// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticbeanstalk-2010-12-01/ListTagsForResource
func (c *ElasticBeanstalk) ListTagsForResource(input *ListTagsForResourceInput) (*ListTagsForResourceOutput, error) {
req, out := c.ListTagsForResourceRequest(input)
return out, req.Send()
}
// ListTagsForResourceWithContext is the same as ListTagsForResource with the addition of
// the ability to pass a context and additional request options.
//
// See ListTagsForResource for details on how to use this API operation.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
func (c *ElasticBeanstalk) ListTagsForResourceWithContext(ctx aws.Context, input *ListTagsForResourceInput, opts ...request.Option) (*ListTagsForResourceOutput, error) {
req, out := c.ListTagsForResourceRequest(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
const opRebuildEnvironment = "RebuildEnvironment" const opRebuildEnvironment = "RebuildEnvironment"
// RebuildEnvironmentRequest generates a "aws/request.Request" representing the // RebuildEnvironmentRequest generates a "aws/request.Request" representing the
@ -3420,6 +3510,109 @@ func (c *ElasticBeanstalk) UpdateEnvironmentWithContext(ctx aws.Context, input *
return out, req.Send() return out, req.Send()
} }
const opUpdateTagsForResource = "UpdateTagsForResource"
// UpdateTagsForResourceRequest generates a "aws/request.Request" representing the
// client's request for the UpdateTagsForResource operation. The "output" return
// value will be populated with the request's response once the request complets
// successfuly.
//
// Use "Send" method on the returned Request to send the API call to the service.
// the "output" return value is not valid until after Send returns without error.
//
// See UpdateTagsForResource for more information on using the UpdateTagsForResource
// API call, and error handling.
//
// This method is useful when you want to inject custom logic or configuration
// into the SDK's request lifecycle. Such as custom headers, or retry logic.
//
//
// // Example sending a request using the UpdateTagsForResourceRequest method.
// req, resp := client.UpdateTagsForResourceRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticbeanstalk-2010-12-01/UpdateTagsForResource
func (c *ElasticBeanstalk) UpdateTagsForResourceRequest(input *UpdateTagsForResourceInput) (req *request.Request, output *UpdateTagsForResourceOutput) {
op := &request.Operation{
Name: opUpdateTagsForResource,
HTTPMethod: "POST",
HTTPPath: "/",
}
if input == nil {
input = &UpdateTagsForResourceInput{}
}
output = &UpdateTagsForResourceOutput{}
req = c.newRequest(op, input, output)
req.Handlers.Unmarshal.Remove(query.UnmarshalHandler)
req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
return
}
// UpdateTagsForResource API operation for AWS Elastic Beanstalk.
//
// Update the list of tags applied to an AWS Elastic Beanstalk resource. Two
// lists can be passed: TagsToAdd for tags to add or update, and TagsToRemove.
//
// Currently, Elastic Beanstalk only supports tagging of Elastic Beanstalk environments.
//
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
// with awserr.Error's Code and Message methods to get detailed information about
// the error.
//
// See the AWS API reference guide for AWS Elastic Beanstalk's
// API operation UpdateTagsForResource for usage and error information.
//
// Returned Error Codes:
// * ErrCodeInsufficientPrivilegesException "InsufficientPrivilegesException"
// The specified account does not have sufficient privileges for one of more
// AWS services.
//
// * ErrCodeOperationInProgressException "OperationInProgressFailure"
// Unable to perform the specified operation because another operation that
// effects an element in this activity is already in progress.
//
// * ErrCodeTooManyTagsException "TooManyTagsException"
// The number of tags in the resource would exceed the number of tags that each
// resource can have.
//
// To calculate this, the operation considers both the number of tags the resource
// already has and the tags this operation would add if it succeeded.
//
// * ErrCodeResourceNotFoundException "ResourceNotFoundException"
// A resource doesn't exist for the specified Amazon Resource Name (ARN).
//
// * ErrCodeResourceTypeNotSupportedException "ResourceTypeNotSupportedException"
// The type of the specified Amazon Resource Name (ARN) isn't supported for
// this operation.
//
// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticbeanstalk-2010-12-01/UpdateTagsForResource
func (c *ElasticBeanstalk) UpdateTagsForResource(input *UpdateTagsForResourceInput) (*UpdateTagsForResourceOutput, error) {
req, out := c.UpdateTagsForResourceRequest(input)
return out, req.Send()
}
// UpdateTagsForResourceWithContext is the same as UpdateTagsForResource with the addition of
// the ability to pass a context and additional request options.
//
// See UpdateTagsForResource for details on how to use this API operation.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
func (c *ElasticBeanstalk) UpdateTagsForResourceWithContext(ctx aws.Context, input *UpdateTagsForResourceInput, opts ...request.Option) (*UpdateTagsForResourceOutput, error) {
req, out := c.UpdateTagsForResourceRequest(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
const opValidateConfigurationSettings = "ValidateConfigurationSettings" const opValidateConfigurationSettings = "ValidateConfigurationSettings"
// ValidateConfigurationSettingsRequest generates a "aws/request.Request" representing the // ValidateConfigurationSettingsRequest generates a "aws/request.Request" representing the
@ -8290,6 +8483,80 @@ func (s *ListPlatformVersionsOutput) SetPlatformSummaryList(v []*PlatformSummary
return s return s
} }
// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticbeanstalk-2010-12-01/ListTagsForResourceMessage
type ListTagsForResourceInput struct {
_ struct{} `type:"structure"`
// The Amazon Resource Name (ARN) of the resouce for which a tag list is requested.
//
// Must be the ARN of an Elastic Beanstalk environment.
//
// ResourceArn is a required field
ResourceArn *string `type:"string" required:"true"`
}
// String returns the string representation
func (s ListTagsForResourceInput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s ListTagsForResourceInput) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
func (s *ListTagsForResourceInput) Validate() error {
invalidParams := request.ErrInvalidParams{Context: "ListTagsForResourceInput"}
if s.ResourceArn == nil {
invalidParams.Add(request.NewErrParamRequired("ResourceArn"))
}
if invalidParams.Len() > 0 {
return invalidParams
}
return nil
}
// SetResourceArn sets the ResourceArn field's value.
func (s *ListTagsForResourceInput) SetResourceArn(v string) *ListTagsForResourceInput {
s.ResourceArn = &v
return s
}
// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticbeanstalk-2010-12-01/ResourceTagsDescriptionMessage
type ListTagsForResourceOutput struct {
_ struct{} `type:"structure"`
// The Amazon Resource Name (ARN) of the resouce for which a tag list was requested.
ResourceArn *string `type:"string"`
// A list of tag key-value pairs.
ResourceTags []*Tag `type:"list"`
}
// String returns the string representation
func (s ListTagsForResourceOutput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s ListTagsForResourceOutput) GoString() string {
return s.String()
}
// SetResourceArn sets the ResourceArn field's value.
func (s *ListTagsForResourceOutput) SetResourceArn(v string) *ListTagsForResourceOutput {
s.ResourceArn = &v
return s
}
// SetResourceTags sets the ResourceTags field's value.
func (s *ListTagsForResourceOutput) SetResourceTags(v []*Tag) *ListTagsForResourceOutput {
s.ResourceTags = v
return s
}
// Describes the properties of a Listener for the LoadBalancer. // Describes the properties of a Listener for the LoadBalancer.
// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticbeanstalk-2010-12-01/Listener // Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticbeanstalk-2010-12-01/Listener
type Listener struct { type Listener struct {
@ -10710,6 +10977,94 @@ func (s *UpdateEnvironmentInput) SetVersionLabel(v string) *UpdateEnvironmentInp
return s return s
} }
// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticbeanstalk-2010-12-01/UpdateTagsForResourceMessage
type UpdateTagsForResourceInput struct {
_ struct{} `type:"structure"`
// The Amazon Resource Name (ARN) of the resouce to be updated.
//
// Must be the ARN of an Elastic Beanstalk environment.
//
// ResourceArn is a required field
ResourceArn *string `type:"string" required:"true"`
// A list of tags to add or update.
//
// If a key of an existing tag is added, the tag's value is updated.
TagsToAdd []*Tag `type:"list"`
// A list of tag keys to remove.
//
// If a tag key doesn't exist, it is silently ignored.
TagsToRemove []*string `type:"list"`
}
// String returns the string representation
func (s UpdateTagsForResourceInput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s UpdateTagsForResourceInput) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
func (s *UpdateTagsForResourceInput) Validate() error {
invalidParams := request.ErrInvalidParams{Context: "UpdateTagsForResourceInput"}
if s.ResourceArn == nil {
invalidParams.Add(request.NewErrParamRequired("ResourceArn"))
}
if s.TagsToAdd != nil {
for i, v := range s.TagsToAdd {
if v == nil {
continue
}
if err := v.Validate(); err != nil {
invalidParams.AddNested(fmt.Sprintf("%s[%v]", "TagsToAdd", i), err.(request.ErrInvalidParams))
}
}
}
if invalidParams.Len() > 0 {
return invalidParams
}
return nil
}
// SetResourceArn sets the ResourceArn field's value.
func (s *UpdateTagsForResourceInput) SetResourceArn(v string) *UpdateTagsForResourceInput {
s.ResourceArn = &v
return s
}
// SetTagsToAdd sets the TagsToAdd field's value.
func (s *UpdateTagsForResourceInput) SetTagsToAdd(v []*Tag) *UpdateTagsForResourceInput {
s.TagsToAdd = v
return s
}
// SetTagsToRemove sets the TagsToRemove field's value.
func (s *UpdateTagsForResourceInput) SetTagsToRemove(v []*string) *UpdateTagsForResourceInput {
s.TagsToRemove = v
return s
}
// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticbeanstalk-2010-12-01/UpdateTagsForResourceOutput
type UpdateTagsForResourceOutput struct {
_ struct{} `type:"structure"`
}
// String returns the string representation
func (s UpdateTagsForResourceOutput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s UpdateTagsForResourceOutput) GoString() string {
return s.String()
}
// A list of validation messages for a specified configuration template. // A list of validation messages for a specified configuration template.
// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticbeanstalk-2010-12-01/ValidateConfigurationSettingsMessage // Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticbeanstalk-2010-12-01/ValidateConfigurationSettingsMessage
type ValidateConfigurationSettingsInput struct { type ValidateConfigurationSettingsInput struct {

View File

@ -28,7 +28,7 @@
// //
// Using the Client // Using the Client
// //
// To AWS Elastic Beanstalk with the SDK use the New function to create // To contact AWS Elastic Beanstalk with the SDK use the New function to create
// a new service client. With that client you can make API requests to the service. // a new service client. With that client you can make API requests to the service.
// These clients are safe to use concurrently. // These clients are safe to use concurrently.
// //

View File

@ -44,6 +44,19 @@ const (
// running on it. // running on it.
ErrCodePlatformVersionStillReferencedException = "PlatformVersionStillReferencedException" ErrCodePlatformVersionStillReferencedException = "PlatformVersionStillReferencedException"
// ErrCodeResourceNotFoundException for service response error code
// "ResourceNotFoundException".
//
// A resource doesn't exist for the specified Amazon Resource Name (ARN).
ErrCodeResourceNotFoundException = "ResourceNotFoundException"
// ErrCodeResourceTypeNotSupportedException for service response error code
// "ResourceTypeNotSupportedException".
//
// The type of the specified Amazon Resource Name (ARN) isn't supported for
// this operation.
ErrCodeResourceTypeNotSupportedException = "ResourceTypeNotSupportedException"
// ErrCodeS3LocationNotInServiceRegionException for service response error code // ErrCodeS3LocationNotInServiceRegionException for service response error code
// "S3LocationNotInServiceRegionException". // "S3LocationNotInServiceRegionException".
// //
@ -112,4 +125,14 @@ const (
// You have exceeded the maximum number of allowed platforms associated with // You have exceeded the maximum number of allowed platforms associated with
// the account. // the account.
ErrCodeTooManyPlatformsException = "TooManyPlatformsException" ErrCodeTooManyPlatformsException = "TooManyPlatformsException"
// ErrCodeTooManyTagsException for service response error code
// "TooManyTagsException".
//
// The number of tags in the resource would exceed the number of tags that each
// resource can have.
//
// To calculate this, the operation considers both the number of tags the resource
// already has and the tags this operation would add if it succeeded.
ErrCodeTooManyTagsException = "TooManyTagsException"
) )

File diff suppressed because it is too large Load Diff

View File

@ -10,14 +10,12 @@
// For example, es.us-east-1.amazonaws.com. For a current list of supported // For example, es.us-east-1.amazonaws.com. For a current list of supported
// regions and endpoints, see Regions and Endpoints (http://docs.aws.amazon.com/general/latest/gr/rande.html#elasticsearch-service-regions). // regions and endpoints, see Regions and Endpoints (http://docs.aws.amazon.com/general/latest/gr/rande.html#elasticsearch-service-regions).
// //
// See https://docs.aws.amazon.com/goto/WebAPI/es-2015-01-01 for more information on this service.
//
// See elasticsearchservice package documentation for more information. // See elasticsearchservice package documentation for more information.
// https://docs.aws.amazon.com/sdk-for-go/api/service/elasticsearchservice/ // https://docs.aws.amazon.com/sdk-for-go/api/service/elasticsearchservice/
// //
// Using the Client // Using the Client
// //
// To Amazon Elasticsearch Service with the SDK use the New function to create // To contact Amazon Elasticsearch Service with the SDK use the New function to create
// a new service client. With that client you can make API requests to the service. // a new service client. With that client you can make API requests to the service.
// These clients are safe to use concurrently. // These clients are safe to use concurrently.
// //

View File

@ -10,7 +10,7 @@
// //
// Using the Client // Using the Client
// //
// To Amazon Elastic Transcoder with the SDK use the New function to create // To contact Amazon Elastic Transcoder with the SDK use the New function to create
// a new service client. With that client you can make API requests to the service. // a new service client. With that client you can make API requests to the service.
// These clients are safe to use concurrently. // These clients are safe to use concurrently.
// //

View File

@ -39,7 +39,7 @@
// //
// Using the Client // Using the Client
// //
// To Elastic Load Balancing with the SDK use the New function to create // To contact Elastic Load Balancing with the SDK use the New function to create
// a new service client. With that client you can make API requests to the service. // a new service client. With that client you can make API requests to the service.
// These clients are safe to use concurrently. // These clients are safe to use concurrently.
// //

File diff suppressed because it is too large Load Diff

View File

@ -14,22 +14,28 @@
// with health check settings to be used when checking the health status of // with health check settings to be used when checking the health status of
// the targets. // the targets.
// //
// Elastic Load Balancing supports two types of load balancers: Classic Load // Elastic Load Balancing supports the following types of load balancers: Application
// Balancers and Application Load Balancers. A Classic Load Balancer makes routing // Load Balancers, Network Load Balancers, and Classic Load Balancers.
// and load balancing decisions either at the transport layer (TCP/SSL) or the //
// application layer (HTTP/HTTPS), and supports either EC2-Classic or a VPC.
// An Application Load Balancer makes routing and load balancing decisions at // An Application Load Balancer makes routing and load balancing decisions at
// the application layer (HTTP/HTTPS), supports path-based routing, and can // the application layer (HTTP/HTTPS). A Network Load Balancer makes routing
// route requests to one or more ports on each EC2 instance or container instance // and load balancing decisions at the transport layer (TCP). Both Application
// in your virtual private cloud (VPC). For more information, see the Elastic // Load Balancers and Network Load Balancers can route requests to one or more
// ports on each EC2 instance or container instance in your virtual private
// cloud (VPC).
//
// A Classic Load Balancer makes routing and load balancing decisions either
// at the transport layer (TCP/SSL) or the application layer (HTTP/HTTPS), and
// supports either EC2-Classic or a VPC. For more information, see the Elastic
// Load Balancing User Guide (http://docs.aws.amazon.com/elasticloadbalancing/latest/userguide/). // Load Balancing User Guide (http://docs.aws.amazon.com/elasticloadbalancing/latest/userguide/).
// //
// This reference covers the 2015-12-01 API, which supports Application Load // This reference covers the 2015-12-01 API, which supports Application Load
// Balancers. The 2012-06-01 API supports Classic Load Balancers. // Balancers and Network Load Balancers. The 2012-06-01 API supports Classic
// Load Balancers.
// //
// To get started, complete the following tasks: // To get started, complete the following tasks:
// //
// Create an Application Load Balancer using CreateLoadBalancer. // Create a load balancer using CreateLoadBalancer.
// //
// Create a target group using CreateTargetGroup. // Create a target group using CreateTargetGroup.
// //
@ -37,11 +43,8 @@
// //
// Create one or more listeners for your load balancer using CreateListener. // Create one or more listeners for your load balancer using CreateListener.
// //
// (Optional) Create one or more rules for content routing based on URL using // To delete a load balancer and its related resources, complete the following
// CreateRule. // tasks:
//
// To delete an Application Load Balancer and its related resources, complete
// the following tasks:
// //
// Delete the load balancer using DeleteLoadBalancer. // Delete the load balancer using DeleteLoadBalancer.
// //
@ -57,7 +60,7 @@
// //
// Using the Client // Using the Client
// //
// To Elastic Load Balancing with the SDK use the New function to create // To contact Elastic Load Balancing with the SDK use the New function to create
// a new service client. With that client you can make API requests to the service. // a new service client. With that client you can make API requests to the service.
// These clients are safe to use concurrently. // These clients are safe to use concurrently.
// //

View File

@ -4,6 +4,18 @@ package elbv2
const ( const (
// ErrCodeAllocationIdNotFoundException for service response error code
// "AllocationIdNotFound".
//
// The specified allocation ID does not exist.
ErrCodeAllocationIdNotFoundException = "AllocationIdNotFound"
// ErrCodeAvailabilityZoneNotSupportedException for service response error code
// "AvailabilityZoneNotSupported".
//
// The specified Availability Zone is not supported.
ErrCodeAvailabilityZoneNotSupportedException = "AvailabilityZoneNotSupported"
// ErrCodeCertificateNotFoundException for service response error code // ErrCodeCertificateNotFoundException for service response error code
// "CertificateNotFound". // "CertificateNotFound".
// //
@ -74,8 +86,8 @@ const (
// ErrCodeInvalidTargetException for service response error code // ErrCodeInvalidTargetException for service response error code
// "InvalidTarget". // "InvalidTarget".
// //
// The specified target does not exist or is not in the same VPC as the target // The specified target does not exist, is not in the same VPC as the target
// group. // group, or has an unsupported instance type.
ErrCodeInvalidTargetException = "InvalidTarget" ErrCodeInvalidTargetException = "InvalidTarget"
// ErrCodeListenerNotFoundException for service response error code // ErrCodeListenerNotFoundException for service response error code
@ -141,7 +153,7 @@ const (
// ErrCodeTooManyCertificatesException for service response error code // ErrCodeTooManyCertificatesException for service response error code
// "TooManyCertificates". // "TooManyCertificates".
// //
// You've reached the limit on the number of certificates per listener. // You've reached the limit on the number of certificates per load balancer.
ErrCodeTooManyCertificatesException = "TooManyCertificates" ErrCodeTooManyCertificatesException = "TooManyCertificates"
// ErrCodeTooManyListenersException for service response error code // ErrCodeTooManyListenersException for service response error code

View File

@ -15,7 +15,7 @@
// //
// Using the Client // Using the Client
// //
// To Amazon Elastic MapReduce with the SDK use the New function to create // To contact Amazon Elastic MapReduce with the SDK use the New function to create
// a new service client. With that client you can make API requests to the service. // a new service client. With that client you can make API requests to the service.
// These clients are safe to use concurrently. // These clients are safe to use concurrently.
// //

View File

@ -14,7 +14,7 @@
// //
// Using the Client // Using the Client
// //
// To Amazon Kinesis Firehose with the SDK use the New function to create // To contact Amazon Kinesis Firehose with the SDK use the New function to create
// a new service client. With that client you can make API requests to the service. // a new service client. With that client you can make API requests to the service.
// These clients are safe to use concurrently. // These clients are safe to use concurrently.
// //

View File

@ -40,7 +40,7 @@
// //
// Using the Client // Using the Client
// //
// To Amazon Glacier with the SDK use the New function to create // To contact Amazon Glacier with the SDK use the New function to create
// a new service client. With that client you can make API requests to the service. // a new service client. With that client you can make API requests to the service.
// These clients are safe to use concurrently. // These clients are safe to use concurrently.
// //

View File

@ -384,6 +384,10 @@ func (c *IAM) AttachGroupPolicyRequest(input *AttachGroupPolicyInput) (req *requ
// The request was rejected because an invalid or out-of-range value was supplied // The request was rejected because an invalid or out-of-range value was supplied
// for an input parameter. // for an input parameter.
// //
// * ErrCodePolicyNotAttachableException "PolicyNotAttachable"
// The request failed because AWS service role policies can only be attached
// to the service-linked role for that service.
//
// * ErrCodeServiceFailureException "ServiceFailure" // * ErrCodeServiceFailureException "ServiceFailure"
// The request processing has failed because of an unknown error, exception // The request processing has failed because of an unknown error, exception
// or failure. // or failure.
@ -495,6 +499,10 @@ func (c *IAM) AttachRolePolicyRequest(input *AttachRolePolicyInput) (req *reques
// the name of the service that depends on this service-linked role. You must // the name of the service that depends on this service-linked role. You must
// request the change through that service. // request the change through that service.
// //
// * ErrCodePolicyNotAttachableException "PolicyNotAttachable"
// The request failed because AWS service role policies can only be attached
// to the service-linked role for that service.
//
// * ErrCodeServiceFailureException "ServiceFailure" // * ErrCodeServiceFailureException "ServiceFailure"
// The request processing has failed because of an unknown error, exception // The request processing has failed because of an unknown error, exception
// or failure. // or failure.
@ -596,6 +604,10 @@ func (c *IAM) AttachUserPolicyRequest(input *AttachUserPolicyInput) (req *reques
// The request was rejected because an invalid or out-of-range value was supplied // The request was rejected because an invalid or out-of-range value was supplied
// for an input parameter. // for an input parameter.
// //
// * ErrCodePolicyNotAttachableException "PolicyNotAttachable"
// The request failed because AWS service role policies can only be attached
// to the service-linked role for that service.
//
// * ErrCodeServiceFailureException "ServiceFailure" // * ErrCodeServiceFailureException "ServiceFailure"
// The request processing has failed because of an unknown error, exception // The request processing has failed because of an unknown error, exception
// or failure. // or failure.
@ -3752,6 +3764,113 @@ func (c *IAM) DeleteServerCertificateWithContext(ctx aws.Context, input *DeleteS
return out, req.Send() return out, req.Send()
} }
const opDeleteServiceLinkedRole = "DeleteServiceLinkedRole"
// DeleteServiceLinkedRoleRequest generates a "aws/request.Request" representing the
// client's request for the DeleteServiceLinkedRole operation. The "output" return
// value will be populated with the request's response once the request complets
// successfuly.
//
// Use "Send" method on the returned Request to send the API call to the service.
// the "output" return value is not valid until after Send returns without error.
//
// See DeleteServiceLinkedRole for more information on using the DeleteServiceLinkedRole
// API call, and error handling.
//
// This method is useful when you want to inject custom logic or configuration
// into the SDK's request lifecycle. Such as custom headers, or retry logic.
//
//
// // Example sending a request using the DeleteServiceLinkedRoleRequest method.
// req, resp := client.DeleteServiceLinkedRoleRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
// Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/DeleteServiceLinkedRole
func (c *IAM) DeleteServiceLinkedRoleRequest(input *DeleteServiceLinkedRoleInput) (req *request.Request, output *DeleteServiceLinkedRoleOutput) {
op := &request.Operation{
Name: opDeleteServiceLinkedRole,
HTTPMethod: "POST",
HTTPPath: "/",
}
if input == nil {
input = &DeleteServiceLinkedRoleInput{}
}
output = &DeleteServiceLinkedRoleOutput{}
req = c.newRequest(op, input, output)
return
}
// DeleteServiceLinkedRole API operation for AWS Identity and Access Management.
//
// Submits a service-linked role deletion request and returns a DeletionTaskId,
// which you can use to check the status of the deletion. Before you call this
// operation, confirm that the role has no active sessions and that any resources
// used by the role in the linked service are deleted. If you call this operation
// more than once for the same service-linked role and an earlier deletion task
// is not complete, then the DeletionTaskId of the earlier request is returned.
//
// If you submit a deletion request for a service-linked role whose linked service
// is still accessing a resource, then the deletion task fails. If it fails,
// the GetServiceLinkedRoleDeletionStatus API operation returns the reason for
// the failure, including the resources that must be deleted. To delete the
// service-linked role, you must first remove those resources from the linked
// service and then submit the deletion request again. Resources are specific
// to the service that is linked to the role. For more information about removing
// resources from a service, see the AWS documentation (http://docs.aws.amazon.com/)
// for your service.
//
// For more information about service-linked roles, see Roles Terms and Concepts:
// AWS Service-Linked Role (http://docs.aws.amazon.com/IAM/latest/UserGuide/id_roles_terms-and-concepts.html#iam-term-service-linked-role)
// in the IAM User Guide.
//
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
// with awserr.Error's Code and Message methods to get detailed information about
// the error.
//
// See the AWS API reference guide for AWS Identity and Access Management's
// API operation DeleteServiceLinkedRole for usage and error information.
//
// Returned Error Codes:
// * ErrCodeNoSuchEntityException "NoSuchEntity"
// The request was rejected because it referenced an entity that does not exist.
// The error message describes the entity.
//
// * ErrCodeLimitExceededException "LimitExceeded"
// The request was rejected because it attempted to create resources beyond
// the current AWS account limits. The error message describes the limit exceeded.
//
// * ErrCodeServiceFailureException "ServiceFailure"
// The request processing has failed because of an unknown error, exception
// or failure.
//
// Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/DeleteServiceLinkedRole
func (c *IAM) DeleteServiceLinkedRole(input *DeleteServiceLinkedRoleInput) (*DeleteServiceLinkedRoleOutput, error) {
req, out := c.DeleteServiceLinkedRoleRequest(input)
return out, req.Send()
}
// DeleteServiceLinkedRoleWithContext is the same as DeleteServiceLinkedRole with the addition of
// the ability to pass a context and additional request options.
//
// See DeleteServiceLinkedRole for details on how to use this API operation.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
func (c *IAM) DeleteServiceLinkedRoleWithContext(ctx aws.Context, input *DeleteServiceLinkedRoleInput, opts ...request.Option) (*DeleteServiceLinkedRoleOutput, error) {
req, out := c.DeleteServiceLinkedRoleRequest(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
const opDeleteServiceSpecificCredential = "DeleteServiceSpecificCredential" const opDeleteServiceSpecificCredential = "DeleteServiceSpecificCredential"
// DeleteServiceSpecificCredentialRequest generates a "aws/request.Request" representing the // DeleteServiceSpecificCredentialRequest generates a "aws/request.Request" representing the
@ -6569,6 +6688,98 @@ func (c *IAM) GetServerCertificateWithContext(ctx aws.Context, input *GetServerC
return out, req.Send() return out, req.Send()
} }
const opGetServiceLinkedRoleDeletionStatus = "GetServiceLinkedRoleDeletionStatus"
// GetServiceLinkedRoleDeletionStatusRequest generates a "aws/request.Request" representing the
// client's request for the GetServiceLinkedRoleDeletionStatus operation. The "output" return
// value will be populated with the request's response once the request complets
// successfuly.
//
// Use "Send" method on the returned Request to send the API call to the service.
// the "output" return value is not valid until after Send returns without error.
//
// See GetServiceLinkedRoleDeletionStatus for more information on using the GetServiceLinkedRoleDeletionStatus
// API call, and error handling.
//
// This method is useful when you want to inject custom logic or configuration
// into the SDK's request lifecycle. Such as custom headers, or retry logic.
//
//
// // Example sending a request using the GetServiceLinkedRoleDeletionStatusRequest method.
// req, resp := client.GetServiceLinkedRoleDeletionStatusRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
// Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/GetServiceLinkedRoleDeletionStatus
func (c *IAM) GetServiceLinkedRoleDeletionStatusRequest(input *GetServiceLinkedRoleDeletionStatusInput) (req *request.Request, output *GetServiceLinkedRoleDeletionStatusOutput) {
op := &request.Operation{
Name: opGetServiceLinkedRoleDeletionStatus,
HTTPMethod: "POST",
HTTPPath: "/",
}
if input == nil {
input = &GetServiceLinkedRoleDeletionStatusInput{}
}
output = &GetServiceLinkedRoleDeletionStatusOutput{}
req = c.newRequest(op, input, output)
return
}
// GetServiceLinkedRoleDeletionStatus API operation for AWS Identity and Access Management.
//
// Retrieves the status of your service-linked role deletion. After you use
// the DeleteServiceLinkedRole API operation to submit a service-linked role
// for deletion, you can use the DeletionTaskId parameter in GetServiceLinkedRoleDeletionStatus
// to check the status of the deletion. If the deletion fails, this operation
// returns the reason that it failed.
//
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
// with awserr.Error's Code and Message methods to get detailed information about
// the error.
//
// See the AWS API reference guide for AWS Identity and Access Management's
// API operation GetServiceLinkedRoleDeletionStatus for usage and error information.
//
// Returned Error Codes:
// * ErrCodeNoSuchEntityException "NoSuchEntity"
// The request was rejected because it referenced an entity that does not exist.
// The error message describes the entity.
//
// * ErrCodeInvalidInputException "InvalidInput"
// The request was rejected because an invalid or out-of-range value was supplied
// for an input parameter.
//
// * ErrCodeServiceFailureException "ServiceFailure"
// The request processing has failed because of an unknown error, exception
// or failure.
//
// Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/GetServiceLinkedRoleDeletionStatus
func (c *IAM) GetServiceLinkedRoleDeletionStatus(input *GetServiceLinkedRoleDeletionStatusInput) (*GetServiceLinkedRoleDeletionStatusOutput, error) {
req, out := c.GetServiceLinkedRoleDeletionStatusRequest(input)
return out, req.Send()
}
// GetServiceLinkedRoleDeletionStatusWithContext is the same as GetServiceLinkedRoleDeletionStatus with the addition of
// the ability to pass a context and additional request options.
//
// See GetServiceLinkedRoleDeletionStatus for details on how to use this API operation.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
func (c *IAM) GetServiceLinkedRoleDeletionStatusWithContext(ctx aws.Context, input *GetServiceLinkedRoleDeletionStatusInput, opts ...request.Option) (*GetServiceLinkedRoleDeletionStatusOutput, error) {
req, out := c.GetServiceLinkedRoleDeletionStatusRequest(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
const opGetUser = "GetUser" const opGetUser = "GetUser"
// GetUserRequest generates a "aws/request.Request" representing the // GetUserRequest generates a "aws/request.Request" representing the
@ -11227,7 +11438,7 @@ func (c *IAM) SimulateCustomPolicyRequest(input *SimulateCustomPolicyInput) (req
// //
// * ErrCodePolicyEvaluationException "PolicyEvaluation" // * ErrCodePolicyEvaluationException "PolicyEvaluation"
// The request failed because a provided policy could not be successfully evaluated. // The request failed because a provided policy could not be successfully evaluated.
// An additional detail message indicates the source of the failure. // An additional detailed message indicates the source of the failure.
// //
// Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/SimulateCustomPolicy // Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/SimulateCustomPolicy
func (c *IAM) SimulateCustomPolicy(input *SimulateCustomPolicyInput) (*SimulatePolicyResponse, error) { func (c *IAM) SimulateCustomPolicy(input *SimulateCustomPolicyInput) (*SimulatePolicyResponse, error) {
@ -11397,7 +11608,7 @@ func (c *IAM) SimulatePrincipalPolicyRequest(input *SimulatePrincipalPolicyInput
// //
// * ErrCodePolicyEvaluationException "PolicyEvaluation" // * ErrCodePolicyEvaluationException "PolicyEvaluation"
// The request failed because a provided policy could not be successfully evaluated. // The request failed because a provided policy could not be successfully evaluated.
// An additional detail message indicates the source of the failure. // An additional detailed message indicates the source of the failure.
// //
// Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/SimulatePrincipalPolicy // Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/SimulatePrincipalPolicy
func (c *IAM) SimulatePrincipalPolicy(input *SimulatePrincipalPolicyInput) (*SimulatePolicyResponse, error) { func (c *IAM) SimulatePrincipalPolicy(input *SimulatePrincipalPolicyInput) (*SimulatePolicyResponse, error) {
@ -14612,7 +14823,7 @@ type CreatePolicyInput struct {
// //
// This parameter allows (per its regex pattern (http://wikipedia.org/wiki/regex)) // This parameter allows (per its regex pattern (http://wikipedia.org/wiki/regex))
// a string of characters consisting of upper and lowercase alphanumeric characters // a string of characters consisting of upper and lowercase alphanumeric characters
// with no spaces. You can also include any of the following characters: =,.@- // with no spaces. You can also include any of the following characters: =,.@-+
// //
// PolicyName is a required field // PolicyName is a required field
PolicyName *string `min:"1" type:"string" required:"true"` PolicyName *string `min:"1" type:"string" required:"true"`
@ -15751,7 +15962,7 @@ type DeleteGroupPolicyInput struct {
// //
// This parameter allows (per its regex pattern (http://wikipedia.org/wiki/regex)) // This parameter allows (per its regex pattern (http://wikipedia.org/wiki/regex))
// a string of characters consisting of upper and lowercase alphanumeric characters // a string of characters consisting of upper and lowercase alphanumeric characters
// with no spaces. You can also include any of the following characters: =,.@- // with no spaces. You can also include any of the following characters: =,.@-+
// //
// PolicyName is a required field // PolicyName is a required field
PolicyName *string `min:"1" type:"string" required:"true"` PolicyName *string `min:"1" type:"string" required:"true"`
@ -16212,7 +16423,7 @@ type DeleteRolePolicyInput struct {
// //
// This parameter allows (per its regex pattern (http://wikipedia.org/wiki/regex)) // This parameter allows (per its regex pattern (http://wikipedia.org/wiki/regex))
// a string of characters consisting of upper and lowercase alphanumeric characters // a string of characters consisting of upper and lowercase alphanumeric characters
// with no spaces. You can also include any of the following characters: =,.@- // with no spaces. You can also include any of the following characters: =,.@-+
// //
// PolicyName is a required field // PolicyName is a required field
PolicyName *string `min:"1" type:"string" required:"true"` PolicyName *string `min:"1" type:"string" required:"true"`
@ -16487,6 +16698,75 @@ func (s DeleteServerCertificateOutput) GoString() string {
return s.String() return s.String()
} }
// Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/DeleteServiceLinkedRoleRequest
type DeleteServiceLinkedRoleInput struct {
_ struct{} `type:"structure"`
// The name of the service-linked role to be deleted.
//
// RoleName is a required field
RoleName *string `min:"1" type:"string" required:"true"`
}
// String returns the string representation
func (s DeleteServiceLinkedRoleInput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s DeleteServiceLinkedRoleInput) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
func (s *DeleteServiceLinkedRoleInput) Validate() error {
invalidParams := request.ErrInvalidParams{Context: "DeleteServiceLinkedRoleInput"}
if s.RoleName == nil {
invalidParams.Add(request.NewErrParamRequired("RoleName"))
}
if s.RoleName != nil && len(*s.RoleName) < 1 {
invalidParams.Add(request.NewErrParamMinLen("RoleName", 1))
}
if invalidParams.Len() > 0 {
return invalidParams
}
return nil
}
// SetRoleName sets the RoleName field's value.
func (s *DeleteServiceLinkedRoleInput) SetRoleName(v string) *DeleteServiceLinkedRoleInput {
s.RoleName = &v
return s
}
// Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/DeleteServiceLinkedRoleResponse
type DeleteServiceLinkedRoleOutput struct {
_ struct{} `type:"structure"`
// The deletion task identifier that you can use to check the status of the
// deletion. This identifier is returned in the format task/aws-service-role/<service-principal-name>/<role-name>/<task-uuid>.
//
// DeletionTaskId is a required field
DeletionTaskId *string `min:"1" type:"string" required:"true"`
}
// String returns the string representation
func (s DeleteServiceLinkedRoleOutput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s DeleteServiceLinkedRoleOutput) GoString() string {
return s.String()
}
// SetDeletionTaskId sets the DeletionTaskId field's value.
func (s *DeleteServiceLinkedRoleOutput) SetDeletionTaskId(v string) *DeleteServiceLinkedRoleOutput {
s.DeletionTaskId = &v
return s
}
// Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/DeleteServiceSpecificCredentialRequest // Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/DeleteServiceSpecificCredentialRequest
type DeleteServiceSpecificCredentialInput struct { type DeleteServiceSpecificCredentialInput struct {
_ struct{} `type:"structure"` _ struct{} `type:"structure"`
@ -16713,7 +16993,7 @@ type DeleteUserPolicyInput struct {
// //
// This parameter allows (per its regex pattern (http://wikipedia.org/wiki/regex)) // This parameter allows (per its regex pattern (http://wikipedia.org/wiki/regex))
// a string of characters consisting of upper and lowercase alphanumeric characters // a string of characters consisting of upper and lowercase alphanumeric characters
// with no spaces. You can also include any of the following characters: =,.@- // with no spaces. You can also include any of the following characters: =,.@-+
// //
// PolicyName is a required field // PolicyName is a required field
PolicyName *string `min:"1" type:"string" required:"true"` PolicyName *string `min:"1" type:"string" required:"true"`
@ -16850,6 +17130,48 @@ func (s DeleteVirtualMFADeviceOutput) GoString() string {
return s.String() return s.String()
} }
// The reason that the service-linked role deletion failed.
//
// This data type is used as a response element in the GetServiceLinkedRoleDeletionStatus
// operation.
// Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/DeletionTaskFailureReasonType
type DeletionTaskFailureReasonType struct {
_ struct{} `type:"structure"`
// A short description of the reason that the service-linked role deletion failed.
Reason *string `type:"string"`
// A list of objects that contains details about the service-linked role deletion
// failure. If the service-linked role has active sessions or if any resources
// that were used by the role have not been deleted from the linked service,
// the role can't be deleted. This parameter includes a list of the resources
// that are associated with the role and the region in which the resources are
// being used.
RoleUsageList []*RoleUsageType `type:"list"`
}
// String returns the string representation
func (s DeletionTaskFailureReasonType) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s DeletionTaskFailureReasonType) GoString() string {
return s.String()
}
// SetReason sets the Reason field's value.
func (s *DeletionTaskFailureReasonType) SetReason(v string) *DeletionTaskFailureReasonType {
s.Reason = &v
return s
}
// SetRoleUsageList sets the RoleUsageList field's value.
func (s *DeletionTaskFailureReasonType) SetRoleUsageList(v []*RoleUsageType) *DeletionTaskFailureReasonType {
s.RoleUsageList = v
return s
}
// Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/DetachGroupPolicyRequest // Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/DetachGroupPolicyRequest
type DetachGroupPolicyInput struct { type DetachGroupPolicyInput struct {
_ struct{} `type:"structure"` _ struct{} `type:"structure"`
@ -18073,7 +18395,7 @@ type GetGroupPolicyInput struct {
// //
// This parameter allows (per its regex pattern (http://wikipedia.org/wiki/regex)) // This parameter allows (per its regex pattern (http://wikipedia.org/wiki/regex))
// a string of characters consisting of upper and lowercase alphanumeric characters // a string of characters consisting of upper and lowercase alphanumeric characters
// with no spaces. You can also include any of the following characters: =,.@- // with no spaces. You can also include any of the following characters: =,.@-+
// //
// PolicyName is a required field // PolicyName is a required field
PolicyName *string `min:"1" type:"string" required:"true"` PolicyName *string `min:"1" type:"string" required:"true"`
@ -18666,7 +18988,7 @@ type GetRolePolicyInput struct {
// //
// This parameter allows (per its regex pattern (http://wikipedia.org/wiki/regex)) // This parameter allows (per its regex pattern (http://wikipedia.org/wiki/regex))
// a string of characters consisting of upper and lowercase alphanumeric characters // a string of characters consisting of upper and lowercase alphanumeric characters
// with no spaces. You can also include any of the following characters: =,.@- // with no spaces. You can also include any of the following characters: =,.@-+
// //
// PolicyName is a required field // PolicyName is a required field
PolicyName *string `min:"1" type:"string" required:"true"` PolicyName *string `min:"1" type:"string" required:"true"`
@ -19045,6 +19367,84 @@ func (s *GetServerCertificateOutput) SetServerCertificate(v *ServerCertificate)
return s return s
} }
// Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/GetServiceLinkedRoleDeletionStatusRequest
type GetServiceLinkedRoleDeletionStatusInput struct {
_ struct{} `type:"structure"`
// The deletion task identifier. This identifier is returned by the DeleteServiceLinkedRole
// operation in the format task/aws-service-role/<service-principal-name>/<role-name>/<task-uuid>.
//
// DeletionTaskId is a required field
DeletionTaskId *string `min:"1" type:"string" required:"true"`
}
// String returns the string representation
func (s GetServiceLinkedRoleDeletionStatusInput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s GetServiceLinkedRoleDeletionStatusInput) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
func (s *GetServiceLinkedRoleDeletionStatusInput) Validate() error {
invalidParams := request.ErrInvalidParams{Context: "GetServiceLinkedRoleDeletionStatusInput"}
if s.DeletionTaskId == nil {
invalidParams.Add(request.NewErrParamRequired("DeletionTaskId"))
}
if s.DeletionTaskId != nil && len(*s.DeletionTaskId) < 1 {
invalidParams.Add(request.NewErrParamMinLen("DeletionTaskId", 1))
}
if invalidParams.Len() > 0 {
return invalidParams
}
return nil
}
// SetDeletionTaskId sets the DeletionTaskId field's value.
func (s *GetServiceLinkedRoleDeletionStatusInput) SetDeletionTaskId(v string) *GetServiceLinkedRoleDeletionStatusInput {
s.DeletionTaskId = &v
return s
}
// Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/GetServiceLinkedRoleDeletionStatusResponse
type GetServiceLinkedRoleDeletionStatusOutput struct {
_ struct{} `type:"structure"`
// An object that contains details about the reason the deletion failed.
Reason *DeletionTaskFailureReasonType `type:"structure"`
// The status of the deletion.
//
// Status is a required field
Status *string `type:"string" required:"true" enum:"DeletionTaskStatusType"`
}
// String returns the string representation
func (s GetServiceLinkedRoleDeletionStatusOutput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s GetServiceLinkedRoleDeletionStatusOutput) GoString() string {
return s.String()
}
// SetReason sets the Reason field's value.
func (s *GetServiceLinkedRoleDeletionStatusOutput) SetReason(v *DeletionTaskFailureReasonType) *GetServiceLinkedRoleDeletionStatusOutput {
s.Reason = v
return s
}
// SetStatus sets the Status field's value.
func (s *GetServiceLinkedRoleDeletionStatusOutput) SetStatus(v string) *GetServiceLinkedRoleDeletionStatusOutput {
s.Status = &v
return s
}
// Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/GetUserRequest // Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/GetUserRequest
type GetUserInput struct { type GetUserInput struct {
_ struct{} `type:"structure"` _ struct{} `type:"structure"`
@ -19122,7 +19522,7 @@ type GetUserPolicyInput struct {
// //
// This parameter allows (per its regex pattern (http://wikipedia.org/wiki/regex)) // This parameter allows (per its regex pattern (http://wikipedia.org/wiki/regex))
// a string of characters consisting of upper and lowercase alphanumeric characters // a string of characters consisting of upper and lowercase alphanumeric characters
// with no spaces. You can also include any of the following characters: =,.@- // with no spaces. You can also include any of the following characters: =,.@-+
// //
// PolicyName is a required field // PolicyName is a required field
PolicyName *string `min:"1" type:"string" required:"true"` PolicyName *string `min:"1" type:"string" required:"true"`
@ -20465,6 +20865,10 @@ type ListGroupPoliciesOutput struct {
// A list of policy names. // A list of policy names.
// //
// This parameter allows (per its regex pattern (http://wikipedia.org/wiki/regex))
// a string of characters consisting of upper and lowercase alphanumeric characters
// with no spaces. You can also include any of the following characters: =,.@-+
//
// PolicyNames is a required field // PolicyNames is a required field
PolicyNames []*string `type:"list" required:"true"` PolicyNames []*string `type:"list" required:"true"`
} }
@ -23482,7 +23886,7 @@ type PutGroupPolicyInput struct {
// //
// This parameter allows (per its regex pattern (http://wikipedia.org/wiki/regex)) // This parameter allows (per its regex pattern (http://wikipedia.org/wiki/regex))
// a string of characters consisting of upper and lowercase alphanumeric characters // a string of characters consisting of upper and lowercase alphanumeric characters
// with no spaces. You can also include any of the following characters: =,.@- // with no spaces. You can also include any of the following characters: =,.@-+
// //
// PolicyName is a required field // PolicyName is a required field
PolicyName *string `min:"1" type:"string" required:"true"` PolicyName *string `min:"1" type:"string" required:"true"`
@ -23579,7 +23983,7 @@ type PutRolePolicyInput struct {
// //
// This parameter allows (per its regex pattern (http://wikipedia.org/wiki/regex)) // This parameter allows (per its regex pattern (http://wikipedia.org/wiki/regex))
// a string of characters consisting of upper and lowercase alphanumeric characters // a string of characters consisting of upper and lowercase alphanumeric characters
// with no spaces. You can also include any of the following characters: =,.@- // with no spaces. You can also include any of the following characters: =,.@-+
// //
// PolicyName is a required field // PolicyName is a required field
PolicyName *string `min:"1" type:"string" required:"true"` PolicyName *string `min:"1" type:"string" required:"true"`
@ -23685,7 +24089,7 @@ type PutUserPolicyInput struct {
// //
// This parameter allows (per its regex pattern (http://wikipedia.org/wiki/regex)) // This parameter allows (per its regex pattern (http://wikipedia.org/wiki/regex))
// a string of characters consisting of upper and lowercase alphanumeric characters // a string of characters consisting of upper and lowercase alphanumeric characters
// with no spaces. You can also include any of the following characters: =,.@- // with no spaces. You can also include any of the following characters: =,.@-+
// //
// PolicyName is a required field // PolicyName is a required field
PolicyName *string `min:"1" type:"string" required:"true"` PolicyName *string `min:"1" type:"string" required:"true"`
@ -24520,6 +24924,43 @@ func (s *RoleDetail) SetRolePolicyList(v []*PolicyDetail) *RoleDetail {
return s return s
} }
// An object that contains details about how a service-linked role is used.
//
// This data type is used as a response element in the GetServiceLinkedRoleDeletionStatus
// operation.
// Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/RoleUsageType
type RoleUsageType struct {
_ struct{} `type:"structure"`
// The name of the region where the service-linked role is being used.
Region *string `min:"1" type:"string"`
// The name of the resource that is using the service-linked role.
Resources []*string `type:"list"`
}
// String returns the string representation
func (s RoleUsageType) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s RoleUsageType) GoString() string {
return s.String()
}
// SetRegion sets the Region field's value.
func (s *RoleUsageType) SetRegion(v string) *RoleUsageType {
s.Region = &v
return s
}
// SetResources sets the Resources field's value.
func (s *RoleUsageType) SetResources(v []*string) *RoleUsageType {
s.Resources = v
return s
}
// Contains the list of SAML providers for this account. // Contains the list of SAML providers for this account.
// Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/SAMLProviderListEntry // Please also see https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/SAMLProviderListEntry
type SAMLProviderListEntry struct { type SAMLProviderListEntry struct {
@ -27472,15 +27913,18 @@ type User struct {
// a list of AWS websites that capture a user's last sign-in time, see the Credential // a list of AWS websites that capture a user's last sign-in time, see the Credential
// Reports (http://docs.aws.amazon.com/IAM/latest/UserGuide/credential-reports.html) // Reports (http://docs.aws.amazon.com/IAM/latest/UserGuide/credential-reports.html)
// topic in the Using IAM guide. If a password is used more than once in a five-minute // topic in the Using IAM guide. If a password is used more than once in a five-minute
// span, only the first use is returned in this field. This field is null (not // span, only the first use is returned in this field. If the field is null
// present) when: // (no value) then it indicates that they never signed in with a password. This
// can be because:
// //
// * The user does not have a password // * The user never had a password.
// //
// * The password exists but has never been used (at least not since IAM // * A password exists but has not been used since IAM started tracking this
// started tracking this information on October 20th, 2014 // information on October 20th, 2014.
// //
// * there is no sign-in data associated with the user // A null does not mean that the user never had a password. Also, if the user
// does not currently have a password, but had one in the past, then this field
// contains the date and time the most recent password was used.
// //
// This value is returned only in the GetUser and ListUsers actions. // This value is returned only in the GetUser and ListUsers actions.
PasswordLastUsed *time.Time `type:"timestamp" timestampFormat:"iso8601"` PasswordLastUsed *time.Time `type:"timestamp" timestampFormat:"iso8601"`
@ -27761,6 +28205,20 @@ const (
ContextKeyTypeEnumDateList = "dateList" ContextKeyTypeEnumDateList = "dateList"
) )
const (
// DeletionTaskStatusTypeSucceeded is a DeletionTaskStatusType enum value
DeletionTaskStatusTypeSucceeded = "SUCCEEDED"
// DeletionTaskStatusTypeInProgress is a DeletionTaskStatusType enum value
DeletionTaskStatusTypeInProgress = "IN_PROGRESS"
// DeletionTaskStatusTypeFailed is a DeletionTaskStatusType enum value
DeletionTaskStatusTypeFailed = "FAILED"
// DeletionTaskStatusTypeNotStarted is a DeletionTaskStatusType enum value
DeletionTaskStatusTypeNotStarted = "NOT_STARTED"
)
const ( const (
// EntityTypeUser is a EntityType enum value // EntityTypeUser is a EntityType enum value
EntityTypeUser = "User" EntityTypeUser = "User"

View File

@ -64,7 +64,7 @@
// //
// Using the Client // Using the Client
// //
// To AWS Identity and Access Management with the SDK use the New function to create // To contact AWS Identity and Access Management with the SDK use the New function to create
// a new service client. With that client you can make API requests to the service. // a new service client. With that client you can make API requests to the service.
// These clients are safe to use concurrently. // These clients are safe to use concurrently.
// //

View File

@ -144,9 +144,16 @@ const (
// "PolicyEvaluation". // "PolicyEvaluation".
// //
// The request failed because a provided policy could not be successfully evaluated. // The request failed because a provided policy could not be successfully evaluated.
// An additional detail message indicates the source of the failure. // An additional detailed message indicates the source of the failure.
ErrCodePolicyEvaluationException = "PolicyEvaluation" ErrCodePolicyEvaluationException = "PolicyEvaluation"
// ErrCodePolicyNotAttachableException for service response error code
// "PolicyNotAttachable".
//
// The request failed because AWS service role policies can only be attached
// to the service-linked role for that service.
ErrCodePolicyNotAttachableException = "PolicyNotAttachable"
// ErrCodeServiceFailureException for service response error code // ErrCodeServiceFailureException for service response error code
// "ServiceFailure". // "ServiceFailure".
// //

View File

@ -14,7 +14,7 @@
// //
// Using the Client // Using the Client
// //
// To Amazon Inspector with the SDK use the New function to create // To contact Amazon Inspector with the SDK use the New function to create
// a new service client. With that client you can make API requests to the service. // a new service client. With that client you can make API requests to the service.
// These clients are safe to use concurrently. // These clients are safe to use concurrently.
// //

View File

@ -17,7 +17,7 @@
// //
// Using the Client // Using the Client
// //
// To AWS IoT with the SDK use the New function to create // To contact AWS IoT with the SDK use the New function to create
// a new service client. With that client you can make API requests to the service. // a new service client. With that client you can make API requests to the service.
// These clients are safe to use concurrently. // These clients are safe to use concurrently.
// //

View File

@ -13,7 +13,7 @@
// //
// Using the Client // Using the Client
// //
// To Amazon Kinesis with the SDK use the New function to create // To contact Amazon Kinesis with the SDK use the New function to create
// a new service client. With that client you can make API requests to the service. // a new service client. With that client you can make API requests to the service.
// These clients are safe to use concurrently. // These clients are safe to use concurrently.
// //

File diff suppressed because it is too large Load Diff

View File

@ -82,7 +82,7 @@
// //
// Using the Client // Using the Client
// //
// To AWS Key Management Service with the SDK use the New function to create // To contact AWS Key Management Service with the SDK use the New function to create
// a new service client. With that client you can make API requests to the service. // a new service client. With that client you can make API requests to the service.
// These clients are safe to use concurrently. // These clients are safe to use concurrently.
// //

View File

@ -28,9 +28,8 @@ const (
// "ExpiredImportTokenException". // "ExpiredImportTokenException".
// //
// The request was rejected because the provided import token is expired. Use // The request was rejected because the provided import token is expired. Use
// GetParametersForImport to retrieve a new import token and public key, use // GetParametersForImport to get a new import token and public key, use the
// the new public key to encrypt the key material, and then try the request // new public key to encrypt the key material, and then try the request again.
// again.
ErrCodeExpiredImportTokenException = "ExpiredImportTokenException" ErrCodeExpiredImportTokenException = "ExpiredImportTokenException"
// ErrCodeIncorrectKeyMaterialException for service response error code // ErrCodeIncorrectKeyMaterialException for service response error code
@ -63,8 +62,9 @@ const (
// ErrCodeInvalidCiphertextException for service response error code // ErrCodeInvalidCiphertextException for service response error code
// "InvalidCiphertextException". // "InvalidCiphertextException".
// //
// The request was rejected because the specified ciphertext has been corrupted // The request was rejected because the specified ciphertext, or additional
// or is otherwise invalid. // authenticated data incorporated into the ciphertext, such as the encryption
// context, is corrupted, missing, or otherwise invalid.
ErrCodeInvalidCiphertextException = "InvalidCiphertextException" ErrCodeInvalidCiphertextException = "InvalidCiphertextException"
// ErrCodeInvalidGrantIdException for service response error code // ErrCodeInvalidGrantIdException for service response error code

View File

@ -37,6 +37,8 @@ const opAddPermission = "AddPermission"
// if err == nil { // resp is now filled // if err == nil { // resp is now filled
// fmt.Println(resp) // fmt.Println(resp)
// } // }
//
// Please also see https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/AddPermission
func (c *Lambda) AddPermissionRequest(input *AddPermissionInput) (req *request.Request, output *AddPermissionOutput) { func (c *Lambda) AddPermissionRequest(input *AddPermissionInput) (req *request.Request, output *AddPermissionOutput) {
op := &request.Operation{ op := &request.Operation{
Name: opAddPermission, Name: opAddPermission,
@ -101,6 +103,7 @@ func (c *Lambda) AddPermissionRequest(input *AddPermissionInput) (req *request.R
// //
// * ErrCodeTooManyRequestsException "TooManyRequestsException" // * ErrCodeTooManyRequestsException "TooManyRequestsException"
// //
// Please also see https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/AddPermission
func (c *Lambda) AddPermission(input *AddPermissionInput) (*AddPermissionOutput, error) { func (c *Lambda) AddPermission(input *AddPermissionInput) (*AddPermissionOutput, error) {
req, out := c.AddPermissionRequest(input) req, out := c.AddPermissionRequest(input)
return out, req.Send() return out, req.Send()
@ -146,6 +149,8 @@ const opCreateAlias = "CreateAlias"
// if err == nil { // resp is now filled // if err == nil { // resp is now filled
// fmt.Println(resp) // fmt.Println(resp)
// } // }
//
// Please also see https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/CreateAlias
func (c *Lambda) CreateAliasRequest(input *CreateAliasInput) (req *request.Request, output *AliasConfiguration) { func (c *Lambda) CreateAliasRequest(input *CreateAliasInput) (req *request.Request, output *AliasConfiguration) {
op := &request.Operation{ op := &request.Operation{
Name: opCreateAlias, Name: opCreateAlias,
@ -197,6 +202,7 @@ func (c *Lambda) CreateAliasRequest(input *CreateAliasInput) (req *request.Reque
// //
// * ErrCodeTooManyRequestsException "TooManyRequestsException" // * ErrCodeTooManyRequestsException "TooManyRequestsException"
// //
// Please also see https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/CreateAlias
func (c *Lambda) CreateAlias(input *CreateAliasInput) (*AliasConfiguration, error) { func (c *Lambda) CreateAlias(input *CreateAliasInput) (*AliasConfiguration, error) {
req, out := c.CreateAliasRequest(input) req, out := c.CreateAliasRequest(input)
return out, req.Send() return out, req.Send()
@ -242,6 +248,8 @@ const opCreateEventSourceMapping = "CreateEventSourceMapping"
// if err == nil { // resp is now filled // if err == nil { // resp is now filled
// fmt.Println(resp) // fmt.Println(resp)
// } // }
//
// Please also see https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/CreateEventSourceMapping
func (c *Lambda) CreateEventSourceMappingRequest(input *CreateEventSourceMappingInput) (req *request.Request, output *EventSourceMappingConfiguration) { func (c *Lambda) CreateEventSourceMappingRequest(input *CreateEventSourceMappingInput) (req *request.Request, output *EventSourceMappingConfiguration) {
op := &request.Operation{ op := &request.Operation{
Name: opCreateEventSourceMapping, Name: opCreateEventSourceMapping,
@ -313,6 +321,7 @@ func (c *Lambda) CreateEventSourceMappingRequest(input *CreateEventSourceMapping
// The resource (for example, a Lambda function or access policy statement) // The resource (for example, a Lambda function or access policy statement)
// specified in the request does not exist. // specified in the request does not exist.
// //
// Please also see https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/CreateEventSourceMapping
func (c *Lambda) CreateEventSourceMapping(input *CreateEventSourceMappingInput) (*EventSourceMappingConfiguration, error) { func (c *Lambda) CreateEventSourceMapping(input *CreateEventSourceMappingInput) (*EventSourceMappingConfiguration, error) {
req, out := c.CreateEventSourceMappingRequest(input) req, out := c.CreateEventSourceMappingRequest(input)
return out, req.Send() return out, req.Send()
@ -358,6 +367,8 @@ const opCreateFunction = "CreateFunction"
// if err == nil { // resp is now filled // if err == nil { // resp is now filled
// fmt.Println(resp) // fmt.Println(resp)
// } // }
//
// Please also see https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/CreateFunction
func (c *Lambda) CreateFunctionRequest(input *CreateFunctionInput) (req *request.Request, output *FunctionConfiguration) { func (c *Lambda) CreateFunctionRequest(input *CreateFunctionInput) (req *request.Request, output *FunctionConfiguration) {
op := &request.Operation{ op := &request.Operation{
Name: opCreateFunction, Name: opCreateFunction,
@ -417,6 +428,7 @@ func (c *Lambda) CreateFunctionRequest(input *CreateFunctionInput) (req *request
// * ErrCodeCodeStorageExceededException "CodeStorageExceededException" // * ErrCodeCodeStorageExceededException "CodeStorageExceededException"
// You have exceeded your maximum total code size per account. Limits (http://docs.aws.amazon.com/lambda/latest/dg/limits.html) // You have exceeded your maximum total code size per account. Limits (http://docs.aws.amazon.com/lambda/latest/dg/limits.html)
// //
// Please also see https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/CreateFunction
func (c *Lambda) CreateFunction(input *CreateFunctionInput) (*FunctionConfiguration, error) { func (c *Lambda) CreateFunction(input *CreateFunctionInput) (*FunctionConfiguration, error) {
req, out := c.CreateFunctionRequest(input) req, out := c.CreateFunctionRequest(input)
return out, req.Send() return out, req.Send()
@ -462,6 +474,8 @@ const opDeleteAlias = "DeleteAlias"
// if err == nil { // resp is now filled // if err == nil { // resp is now filled
// fmt.Println(resp) // fmt.Println(resp)
// } // }
//
// Please also see https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/DeleteAlias
func (c *Lambda) DeleteAliasRequest(input *DeleteAliasInput) (req *request.Request, output *DeleteAliasOutput) { func (c *Lambda) DeleteAliasRequest(input *DeleteAliasInput) (req *request.Request, output *DeleteAliasOutput) {
op := &request.Operation{ op := &request.Operation{
Name: opDeleteAlias, Name: opDeleteAlias,
@ -507,6 +521,7 @@ func (c *Lambda) DeleteAliasRequest(input *DeleteAliasInput) (req *request.Reque
// //
// * ErrCodeTooManyRequestsException "TooManyRequestsException" // * ErrCodeTooManyRequestsException "TooManyRequestsException"
// //
// Please also see https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/DeleteAlias
func (c *Lambda) DeleteAlias(input *DeleteAliasInput) (*DeleteAliasOutput, error) { func (c *Lambda) DeleteAlias(input *DeleteAliasInput) (*DeleteAliasOutput, error) {
req, out := c.DeleteAliasRequest(input) req, out := c.DeleteAliasRequest(input)
return out, req.Send() return out, req.Send()
@ -552,6 +567,8 @@ const opDeleteEventSourceMapping = "DeleteEventSourceMapping"
// if err == nil { // resp is now filled // if err == nil { // resp is now filled
// fmt.Println(resp) // fmt.Println(resp)
// } // }
//
// Please also see https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/DeleteEventSourceMapping
func (c *Lambda) DeleteEventSourceMappingRequest(input *DeleteEventSourceMappingInput) (req *request.Request, output *EventSourceMappingConfiguration) { func (c *Lambda) DeleteEventSourceMappingRequest(input *DeleteEventSourceMappingInput) (req *request.Request, output *EventSourceMappingConfiguration) {
op := &request.Operation{ op := &request.Operation{
Name: opDeleteEventSourceMapping, Name: opDeleteEventSourceMapping,
@ -600,6 +617,7 @@ func (c *Lambda) DeleteEventSourceMappingRequest(input *DeleteEventSourceMapping
// //
// * ErrCodeTooManyRequestsException "TooManyRequestsException" // * ErrCodeTooManyRequestsException "TooManyRequestsException"
// //
// Please also see https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/DeleteEventSourceMapping
func (c *Lambda) DeleteEventSourceMapping(input *DeleteEventSourceMappingInput) (*EventSourceMappingConfiguration, error) { func (c *Lambda) DeleteEventSourceMapping(input *DeleteEventSourceMappingInput) (*EventSourceMappingConfiguration, error) {
req, out := c.DeleteEventSourceMappingRequest(input) req, out := c.DeleteEventSourceMappingRequest(input)
return out, req.Send() return out, req.Send()
@ -645,6 +663,8 @@ const opDeleteFunction = "DeleteFunction"
// if err == nil { // resp is now filled // if err == nil { // resp is now filled
// fmt.Println(resp) // fmt.Println(resp)
// } // }
//
// Please also see https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/DeleteFunction
func (c *Lambda) DeleteFunctionRequest(input *DeleteFunctionInput) (req *request.Request, output *DeleteFunctionOutput) { func (c *Lambda) DeleteFunctionRequest(input *DeleteFunctionInput) (req *request.Request, output *DeleteFunctionOutput) {
op := &request.Operation{ op := &request.Operation{
Name: opDeleteFunction, Name: opDeleteFunction,
@ -706,6 +726,7 @@ func (c *Lambda) DeleteFunctionRequest(input *DeleteFunctionInput) (req *request
// * ErrCodeResourceConflictException "ResourceConflictException" // * ErrCodeResourceConflictException "ResourceConflictException"
// The resource already exists. // The resource already exists.
// //
// Please also see https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/DeleteFunction
func (c *Lambda) DeleteFunction(input *DeleteFunctionInput) (*DeleteFunctionOutput, error) { func (c *Lambda) DeleteFunction(input *DeleteFunctionInput) (*DeleteFunctionOutput, error) {
req, out := c.DeleteFunctionRequest(input) req, out := c.DeleteFunctionRequest(input)
return out, req.Send() return out, req.Send()
@ -751,6 +772,8 @@ const opGetAccountSettings = "GetAccountSettings"
// if err == nil { // resp is now filled // if err == nil { // resp is now filled
// fmt.Println(resp) // fmt.Println(resp)
// } // }
//
// Please also see https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/GetAccountSettings
func (c *Lambda) GetAccountSettingsRequest(input *GetAccountSettingsInput) (req *request.Request, output *GetAccountSettingsOutput) { func (c *Lambda) GetAccountSettingsRequest(input *GetAccountSettingsInput) (req *request.Request, output *GetAccountSettingsOutput) {
op := &request.Operation{ op := &request.Operation{
Name: opGetAccountSettings, Name: opGetAccountSettings,
@ -790,6 +813,7 @@ func (c *Lambda) GetAccountSettingsRequest(input *GetAccountSettingsInput) (req
// * ErrCodeServiceException "ServiceException" // * ErrCodeServiceException "ServiceException"
// The AWS Lambda service encountered an internal error. // The AWS Lambda service encountered an internal error.
// //
// Please also see https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/GetAccountSettings
func (c *Lambda) GetAccountSettings(input *GetAccountSettingsInput) (*GetAccountSettingsOutput, error) { func (c *Lambda) GetAccountSettings(input *GetAccountSettingsInput) (*GetAccountSettingsOutput, error) {
req, out := c.GetAccountSettingsRequest(input) req, out := c.GetAccountSettingsRequest(input)
return out, req.Send() return out, req.Send()
@ -835,6 +859,8 @@ const opGetAlias = "GetAlias"
// if err == nil { // resp is now filled // if err == nil { // resp is now filled
// fmt.Println(resp) // fmt.Println(resp)
// } // }
//
// Please also see https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/GetAlias
func (c *Lambda) GetAliasRequest(input *GetAliasInput) (req *request.Request, output *AliasConfiguration) { func (c *Lambda) GetAliasRequest(input *GetAliasInput) (req *request.Request, output *AliasConfiguration) {
op := &request.Operation{ op := &request.Operation{
Name: opGetAlias, Name: opGetAlias,
@ -883,6 +909,7 @@ func (c *Lambda) GetAliasRequest(input *GetAliasInput) (req *request.Request, ou
// //
// * ErrCodeTooManyRequestsException "TooManyRequestsException" // * ErrCodeTooManyRequestsException "TooManyRequestsException"
// //
// Please also see https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/GetAlias
func (c *Lambda) GetAlias(input *GetAliasInput) (*AliasConfiguration, error) { func (c *Lambda) GetAlias(input *GetAliasInput) (*AliasConfiguration, error) {
req, out := c.GetAliasRequest(input) req, out := c.GetAliasRequest(input)
return out, req.Send() return out, req.Send()
@ -928,6 +955,8 @@ const opGetEventSourceMapping = "GetEventSourceMapping"
// if err == nil { // resp is now filled // if err == nil { // resp is now filled
// fmt.Println(resp) // fmt.Println(resp)
// } // }
//
// Please also see https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/GetEventSourceMapping
func (c *Lambda) GetEventSourceMappingRequest(input *GetEventSourceMappingInput) (req *request.Request, output *EventSourceMappingConfiguration) { func (c *Lambda) GetEventSourceMappingRequest(input *GetEventSourceMappingInput) (req *request.Request, output *EventSourceMappingConfiguration) {
op := &request.Operation{ op := &request.Operation{
Name: opGetEventSourceMapping, Name: opGetEventSourceMapping,
@ -975,6 +1004,7 @@ func (c *Lambda) GetEventSourceMappingRequest(input *GetEventSourceMappingInput)
// //
// * ErrCodeTooManyRequestsException "TooManyRequestsException" // * ErrCodeTooManyRequestsException "TooManyRequestsException"
// //
// Please also see https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/GetEventSourceMapping
func (c *Lambda) GetEventSourceMapping(input *GetEventSourceMappingInput) (*EventSourceMappingConfiguration, error) { func (c *Lambda) GetEventSourceMapping(input *GetEventSourceMappingInput) (*EventSourceMappingConfiguration, error) {
req, out := c.GetEventSourceMappingRequest(input) req, out := c.GetEventSourceMappingRequest(input)
return out, req.Send() return out, req.Send()
@ -1020,6 +1050,8 @@ const opGetFunction = "GetFunction"
// if err == nil { // resp is now filled // if err == nil { // resp is now filled
// fmt.Println(resp) // fmt.Println(resp)
// } // }
//
// Please also see https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/GetFunction
func (c *Lambda) GetFunctionRequest(input *GetFunctionInput) (req *request.Request, output *GetFunctionOutput) { func (c *Lambda) GetFunctionRequest(input *GetFunctionInput) (req *request.Request, output *GetFunctionOutput) {
op := &request.Operation{ op := &request.Operation{
Name: opGetFunction, Name: opGetFunction,
@ -1076,6 +1108,7 @@ func (c *Lambda) GetFunctionRequest(input *GetFunctionInput) (req *request.Reque
// will also get this exception if you have selected a deprecated runtime, such // will also get this exception if you have selected a deprecated runtime, such
// as Node v0.10.42. // as Node v0.10.42.
// //
// Please also see https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/GetFunction
func (c *Lambda) GetFunction(input *GetFunctionInput) (*GetFunctionOutput, error) { func (c *Lambda) GetFunction(input *GetFunctionInput) (*GetFunctionOutput, error) {
req, out := c.GetFunctionRequest(input) req, out := c.GetFunctionRequest(input)
return out, req.Send() return out, req.Send()
@ -1121,6 +1154,8 @@ const opGetFunctionConfiguration = "GetFunctionConfiguration"
// if err == nil { // resp is now filled // if err == nil { // resp is now filled
// fmt.Println(resp) // fmt.Println(resp)
// } // }
//
// Please also see https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/GetFunctionConfiguration
func (c *Lambda) GetFunctionConfigurationRequest(input *GetFunctionConfigurationInput) (req *request.Request, output *FunctionConfiguration) { func (c *Lambda) GetFunctionConfigurationRequest(input *GetFunctionConfigurationInput) (req *request.Request, output *FunctionConfiguration) {
op := &request.Operation{ op := &request.Operation{
Name: opGetFunctionConfiguration, Name: opGetFunctionConfiguration,
@ -1177,6 +1212,7 @@ func (c *Lambda) GetFunctionConfigurationRequest(input *GetFunctionConfiguration
// will also get this exception if you have selected a deprecated runtime, such // will also get this exception if you have selected a deprecated runtime, such
// as Node v0.10.42. // as Node v0.10.42.
// //
// Please also see https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/GetFunctionConfiguration
func (c *Lambda) GetFunctionConfiguration(input *GetFunctionConfigurationInput) (*FunctionConfiguration, error) { func (c *Lambda) GetFunctionConfiguration(input *GetFunctionConfigurationInput) (*FunctionConfiguration, error) {
req, out := c.GetFunctionConfigurationRequest(input) req, out := c.GetFunctionConfigurationRequest(input)
return out, req.Send() return out, req.Send()
@ -1222,6 +1258,8 @@ const opGetPolicy = "GetPolicy"
// if err == nil { // resp is now filled // if err == nil { // resp is now filled
// fmt.Println(resp) // fmt.Println(resp)
// } // }
//
// Please also see https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/GetPolicy
func (c *Lambda) GetPolicyRequest(input *GetPolicyInput) (req *request.Request, output *GetPolicyOutput) { func (c *Lambda) GetPolicyRequest(input *GetPolicyInput) (req *request.Request, output *GetPolicyOutput) {
op := &request.Operation{ op := &request.Operation{
Name: opGetPolicy, Name: opGetPolicy,
@ -1273,6 +1311,7 @@ func (c *Lambda) GetPolicyRequest(input *GetPolicyInput) (req *request.Request,
// will also get this exception if you have selected a deprecated runtime, such // will also get this exception if you have selected a deprecated runtime, such
// as Node v0.10.42. // as Node v0.10.42.
// //
// Please also see https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/GetPolicy
func (c *Lambda) GetPolicy(input *GetPolicyInput) (*GetPolicyOutput, error) { func (c *Lambda) GetPolicy(input *GetPolicyInput) (*GetPolicyOutput, error) {
req, out := c.GetPolicyRequest(input) req, out := c.GetPolicyRequest(input)
return out, req.Send() return out, req.Send()
@ -1318,6 +1357,8 @@ const opInvoke = "Invoke"
// if err == nil { // resp is now filled // if err == nil { // resp is now filled
// fmt.Println(resp) // fmt.Println(resp)
// } // }
//
// Please also see https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/Invoke
func (c *Lambda) InvokeRequest(input *InvokeInput) (req *request.Request, output *InvokeOutput) { func (c *Lambda) InvokeRequest(input *InvokeInput) (req *request.Request, output *InvokeOutput) {
op := &request.Operation{ op := &request.Operation{
Name: opInvoke, Name: opInvoke,
@ -1431,6 +1472,7 @@ func (c *Lambda) InvokeRequest(input *InvokeInput) (req *request.Request, output
// * ErrCodeInvalidRuntimeException "InvalidRuntimeException" // * ErrCodeInvalidRuntimeException "InvalidRuntimeException"
// The runtime or runtime version specified is not supported. // The runtime or runtime version specified is not supported.
// //
// Please also see https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/Invoke
func (c *Lambda) Invoke(input *InvokeInput) (*InvokeOutput, error) { func (c *Lambda) Invoke(input *InvokeInput) (*InvokeOutput, error) {
req, out := c.InvokeRequest(input) req, out := c.InvokeRequest(input)
return out, req.Send() return out, req.Send()
@ -1476,6 +1518,8 @@ const opInvokeAsync = "InvokeAsync"
// if err == nil { // resp is now filled // if err == nil { // resp is now filled
// fmt.Println(resp) // fmt.Println(resp)
// } // }
//
// Please also see https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/InvokeAsync
func (c *Lambda) InvokeAsyncRequest(input *InvokeAsyncInput) (req *request.Request, output *InvokeAsyncOutput) { func (c *Lambda) InvokeAsyncRequest(input *InvokeAsyncInput) (req *request.Request, output *InvokeAsyncOutput) {
if c.Client.Config.Logger != nil { if c.Client.Config.Logger != nil {
c.Client.Config.Logger.Log("This operation, InvokeAsync, has been deprecated") c.Client.Config.Logger.Log("This operation, InvokeAsync, has been deprecated")
@ -1526,6 +1570,7 @@ func (c *Lambda) InvokeAsyncRequest(input *InvokeAsyncInput) (req *request.Reque
// * ErrCodeInvalidRuntimeException "InvalidRuntimeException" // * ErrCodeInvalidRuntimeException "InvalidRuntimeException"
// The runtime or runtime version specified is not supported. // The runtime or runtime version specified is not supported.
// //
// Please also see https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/InvokeAsync
func (c *Lambda) InvokeAsync(input *InvokeAsyncInput) (*InvokeAsyncOutput, error) { func (c *Lambda) InvokeAsync(input *InvokeAsyncInput) (*InvokeAsyncOutput, error) {
req, out := c.InvokeAsyncRequest(input) req, out := c.InvokeAsyncRequest(input)
return out, req.Send() return out, req.Send()
@ -1571,6 +1616,8 @@ const opListAliases = "ListAliases"
// if err == nil { // resp is now filled // if err == nil { // resp is now filled
// fmt.Println(resp) // fmt.Println(resp)
// } // }
//
// Please also see https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/ListAliases
func (c *Lambda) ListAliasesRequest(input *ListAliasesInput) (req *request.Request, output *ListAliasesOutput) { func (c *Lambda) ListAliasesRequest(input *ListAliasesInput) (req *request.Request, output *ListAliasesOutput) {
op := &request.Operation{ op := &request.Operation{
Name: opListAliases, Name: opListAliases,
@ -1620,6 +1667,7 @@ func (c *Lambda) ListAliasesRequest(input *ListAliasesInput) (req *request.Reque
// //
// * ErrCodeTooManyRequestsException "TooManyRequestsException" // * ErrCodeTooManyRequestsException "TooManyRequestsException"
// //
// Please also see https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/ListAliases
func (c *Lambda) ListAliases(input *ListAliasesInput) (*ListAliasesOutput, error) { func (c *Lambda) ListAliases(input *ListAliasesInput) (*ListAliasesOutput, error) {
req, out := c.ListAliasesRequest(input) req, out := c.ListAliasesRequest(input)
return out, req.Send() return out, req.Send()
@ -1665,6 +1713,8 @@ const opListEventSourceMappings = "ListEventSourceMappings"
// if err == nil { // resp is now filled // if err == nil { // resp is now filled
// fmt.Println(resp) // fmt.Println(resp)
// } // }
//
// Please also see https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/ListEventSourceMappings
func (c *Lambda) ListEventSourceMappingsRequest(input *ListEventSourceMappingsInput) (req *request.Request, output *ListEventSourceMappingsOutput) { func (c *Lambda) ListEventSourceMappingsRequest(input *ListEventSourceMappingsInput) (req *request.Request, output *ListEventSourceMappingsOutput) {
op := &request.Operation{ op := &request.Operation{
Name: opListEventSourceMappings, Name: opListEventSourceMappings,
@ -1727,6 +1777,7 @@ func (c *Lambda) ListEventSourceMappingsRequest(input *ListEventSourceMappingsIn
// //
// * ErrCodeTooManyRequestsException "TooManyRequestsException" // * ErrCodeTooManyRequestsException "TooManyRequestsException"
// //
// Please also see https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/ListEventSourceMappings
func (c *Lambda) ListEventSourceMappings(input *ListEventSourceMappingsInput) (*ListEventSourceMappingsOutput, error) { func (c *Lambda) ListEventSourceMappings(input *ListEventSourceMappingsInput) (*ListEventSourceMappingsOutput, error) {
req, out := c.ListEventSourceMappingsRequest(input) req, out := c.ListEventSourceMappingsRequest(input)
return out, req.Send() return out, req.Send()
@ -1822,6 +1873,8 @@ const opListFunctions = "ListFunctions"
// if err == nil { // resp is now filled // if err == nil { // resp is now filled
// fmt.Println(resp) // fmt.Println(resp)
// } // }
//
// Please also see https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/ListFunctions
func (c *Lambda) ListFunctionsRequest(input *ListFunctionsInput) (req *request.Request, output *ListFunctionsOutput) { func (c *Lambda) ListFunctionsRequest(input *ListFunctionsInput) (req *request.Request, output *ListFunctionsOutput) {
op := &request.Operation{ op := &request.Operation{
Name: opListFunctions, Name: opListFunctions,
@ -1876,6 +1929,7 @@ func (c *Lambda) ListFunctionsRequest(input *ListFunctionsInput) (req *request.R
// will also get this exception if you have selected a deprecated runtime, such // will also get this exception if you have selected a deprecated runtime, such
// as Node v0.10.42. // as Node v0.10.42.
// //
// Please also see https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/ListFunctions
func (c *Lambda) ListFunctions(input *ListFunctionsInput) (*ListFunctionsOutput, error) { func (c *Lambda) ListFunctions(input *ListFunctionsInput) (*ListFunctionsOutput, error) {
req, out := c.ListFunctionsRequest(input) req, out := c.ListFunctionsRequest(input)
return out, req.Send() return out, req.Send()
@ -1971,6 +2025,8 @@ const opListTags = "ListTags"
// if err == nil { // resp is now filled // if err == nil { // resp is now filled
// fmt.Println(resp) // fmt.Println(resp)
// } // }
//
// Please also see https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/ListTags
func (c *Lambda) ListTagsRequest(input *ListTagsInput) (req *request.Request, output *ListTagsOutput) { func (c *Lambda) ListTagsRequest(input *ListTagsInput) (req *request.Request, output *ListTagsOutput) {
op := &request.Operation{ op := &request.Operation{
Name: opListTags, Name: opListTags,
@ -2016,6 +2072,7 @@ func (c *Lambda) ListTagsRequest(input *ListTagsInput) (req *request.Request, ou
// //
// * ErrCodeTooManyRequestsException "TooManyRequestsException" // * ErrCodeTooManyRequestsException "TooManyRequestsException"
// //
// Please also see https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/ListTags
func (c *Lambda) ListTags(input *ListTagsInput) (*ListTagsOutput, error) { func (c *Lambda) ListTags(input *ListTagsInput) (*ListTagsOutput, error) {
req, out := c.ListTagsRequest(input) req, out := c.ListTagsRequest(input)
return out, req.Send() return out, req.Send()
@ -2061,6 +2118,8 @@ const opListVersionsByFunction = "ListVersionsByFunction"
// if err == nil { // resp is now filled // if err == nil { // resp is now filled
// fmt.Println(resp) // fmt.Println(resp)
// } // }
//
// Please also see https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/ListVersionsByFunction
func (c *Lambda) ListVersionsByFunctionRequest(input *ListVersionsByFunctionInput) (req *request.Request, output *ListVersionsByFunctionOutput) { func (c *Lambda) ListVersionsByFunctionRequest(input *ListVersionsByFunctionInput) (req *request.Request, output *ListVersionsByFunctionOutput) {
op := &request.Operation{ op := &request.Operation{
Name: opListVersionsByFunction, Name: opListVersionsByFunction,
@ -2106,6 +2165,7 @@ func (c *Lambda) ListVersionsByFunctionRequest(input *ListVersionsByFunctionInpu
// //
// * ErrCodeTooManyRequestsException "TooManyRequestsException" // * ErrCodeTooManyRequestsException "TooManyRequestsException"
// //
// Please also see https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/ListVersionsByFunction
func (c *Lambda) ListVersionsByFunction(input *ListVersionsByFunctionInput) (*ListVersionsByFunctionOutput, error) { func (c *Lambda) ListVersionsByFunction(input *ListVersionsByFunctionInput) (*ListVersionsByFunctionOutput, error) {
req, out := c.ListVersionsByFunctionRequest(input) req, out := c.ListVersionsByFunctionRequest(input)
return out, req.Send() return out, req.Send()
@ -2151,6 +2211,8 @@ const opPublishVersion = "PublishVersion"
// if err == nil { // resp is now filled // if err == nil { // resp is now filled
// fmt.Println(resp) // fmt.Println(resp)
// } // }
//
// Please also see https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/PublishVersion
func (c *Lambda) PublishVersionRequest(input *PublishVersionInput) (req *request.Request, output *FunctionConfiguration) { func (c *Lambda) PublishVersionRequest(input *PublishVersionInput) (req *request.Request, output *FunctionConfiguration) {
op := &request.Operation{ op := &request.Operation{
Name: opPublishVersion, Name: opPublishVersion,
@ -2202,6 +2264,7 @@ func (c *Lambda) PublishVersionRequest(input *PublishVersionInput) (req *request
// * ErrCodeCodeStorageExceededException "CodeStorageExceededException" // * ErrCodeCodeStorageExceededException "CodeStorageExceededException"
// You have exceeded your maximum total code size per account. Limits (http://docs.aws.amazon.com/lambda/latest/dg/limits.html) // You have exceeded your maximum total code size per account. Limits (http://docs.aws.amazon.com/lambda/latest/dg/limits.html)
// //
// Please also see https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/PublishVersion
func (c *Lambda) PublishVersion(input *PublishVersionInput) (*FunctionConfiguration, error) { func (c *Lambda) PublishVersion(input *PublishVersionInput) (*FunctionConfiguration, error) {
req, out := c.PublishVersionRequest(input) req, out := c.PublishVersionRequest(input)
return out, req.Send() return out, req.Send()
@ -2247,6 +2310,8 @@ const opRemovePermission = "RemovePermission"
// if err == nil { // resp is now filled // if err == nil { // resp is now filled
// fmt.Println(resp) // fmt.Println(resp)
// } // }
//
// Please also see https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/RemovePermission
func (c *Lambda) RemovePermissionRequest(input *RemovePermissionInput) (req *request.Request, output *RemovePermissionOutput) { func (c *Lambda) RemovePermissionRequest(input *RemovePermissionInput) (req *request.Request, output *RemovePermissionOutput) {
op := &request.Operation{ op := &request.Operation{
Name: opRemovePermission, Name: opRemovePermission,
@ -2305,6 +2370,7 @@ func (c *Lambda) RemovePermissionRequest(input *RemovePermissionInput) (req *req
// //
// * ErrCodeTooManyRequestsException "TooManyRequestsException" // * ErrCodeTooManyRequestsException "TooManyRequestsException"
// //
// Please also see https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/RemovePermission
func (c *Lambda) RemovePermission(input *RemovePermissionInput) (*RemovePermissionOutput, error) { func (c *Lambda) RemovePermission(input *RemovePermissionInput) (*RemovePermissionOutput, error) {
req, out := c.RemovePermissionRequest(input) req, out := c.RemovePermissionRequest(input)
return out, req.Send() return out, req.Send()
@ -2350,6 +2416,8 @@ const opTagResource = "TagResource"
// if err == nil { // resp is now filled // if err == nil { // resp is now filled
// fmt.Println(resp) // fmt.Println(resp)
// } // }
//
// Please also see https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/TagResource
func (c *Lambda) TagResourceRequest(input *TagResourceInput) (req *request.Request, output *TagResourceOutput) { func (c *Lambda) TagResourceRequest(input *TagResourceInput) (req *request.Request, output *TagResourceOutput) {
op := &request.Operation{ op := &request.Operation{
Name: opTagResource, Name: opTagResource,
@ -2398,6 +2466,7 @@ func (c *Lambda) TagResourceRequest(input *TagResourceInput) (req *request.Reque
// //
// * ErrCodeTooManyRequestsException "TooManyRequestsException" // * ErrCodeTooManyRequestsException "TooManyRequestsException"
// //
// Please also see https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/TagResource
func (c *Lambda) TagResource(input *TagResourceInput) (*TagResourceOutput, error) { func (c *Lambda) TagResource(input *TagResourceInput) (*TagResourceOutput, error) {
req, out := c.TagResourceRequest(input) req, out := c.TagResourceRequest(input)
return out, req.Send() return out, req.Send()
@ -2443,6 +2512,8 @@ const opUntagResource = "UntagResource"
// if err == nil { // resp is now filled // if err == nil { // resp is now filled
// fmt.Println(resp) // fmt.Println(resp)
// } // }
//
// Please also see https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/UntagResource
func (c *Lambda) UntagResourceRequest(input *UntagResourceInput) (req *request.Request, output *UntagResourceOutput) { func (c *Lambda) UntagResourceRequest(input *UntagResourceInput) (req *request.Request, output *UntagResourceOutput) {
op := &request.Operation{ op := &request.Operation{
Name: opUntagResource, Name: opUntagResource,
@ -2490,6 +2561,7 @@ func (c *Lambda) UntagResourceRequest(input *UntagResourceInput) (req *request.R
// //
// * ErrCodeTooManyRequestsException "TooManyRequestsException" // * ErrCodeTooManyRequestsException "TooManyRequestsException"
// //
// Please also see https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/UntagResource
func (c *Lambda) UntagResource(input *UntagResourceInput) (*UntagResourceOutput, error) { func (c *Lambda) UntagResource(input *UntagResourceInput) (*UntagResourceOutput, error) {
req, out := c.UntagResourceRequest(input) req, out := c.UntagResourceRequest(input)
return out, req.Send() return out, req.Send()
@ -2535,6 +2607,8 @@ const opUpdateAlias = "UpdateAlias"
// if err == nil { // resp is now filled // if err == nil { // resp is now filled
// fmt.Println(resp) // fmt.Println(resp)
// } // }
//
// Please also see https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/UpdateAlias
func (c *Lambda) UpdateAliasRequest(input *UpdateAliasInput) (req *request.Request, output *AliasConfiguration) { func (c *Lambda) UpdateAliasRequest(input *UpdateAliasInput) (req *request.Request, output *AliasConfiguration) {
op := &request.Operation{ op := &request.Operation{
Name: opUpdateAlias, Name: opUpdateAlias,
@ -2583,6 +2657,7 @@ func (c *Lambda) UpdateAliasRequest(input *UpdateAliasInput) (req *request.Reque
// //
// * ErrCodeTooManyRequestsException "TooManyRequestsException" // * ErrCodeTooManyRequestsException "TooManyRequestsException"
// //
// Please also see https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/UpdateAlias
func (c *Lambda) UpdateAlias(input *UpdateAliasInput) (*AliasConfiguration, error) { func (c *Lambda) UpdateAlias(input *UpdateAliasInput) (*AliasConfiguration, error) {
req, out := c.UpdateAliasRequest(input) req, out := c.UpdateAliasRequest(input)
return out, req.Send() return out, req.Send()
@ -2628,6 +2703,8 @@ const opUpdateEventSourceMapping = "UpdateEventSourceMapping"
// if err == nil { // resp is now filled // if err == nil { // resp is now filled
// fmt.Println(resp) // fmt.Println(resp)
// } // }
//
// Please also see https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/UpdateEventSourceMapping
func (c *Lambda) UpdateEventSourceMappingRequest(input *UpdateEventSourceMappingInput) (req *request.Request, output *EventSourceMappingConfiguration) { func (c *Lambda) UpdateEventSourceMappingRequest(input *UpdateEventSourceMappingInput) (req *request.Request, output *EventSourceMappingConfiguration) {
op := &request.Operation{ op := &request.Operation{
Name: opUpdateEventSourceMapping, Name: opUpdateEventSourceMapping,
@ -2691,6 +2768,7 @@ func (c *Lambda) UpdateEventSourceMappingRequest(input *UpdateEventSourceMapping
// * ErrCodeResourceConflictException "ResourceConflictException" // * ErrCodeResourceConflictException "ResourceConflictException"
// The resource already exists. // The resource already exists.
// //
// Please also see https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/UpdateEventSourceMapping
func (c *Lambda) UpdateEventSourceMapping(input *UpdateEventSourceMappingInput) (*EventSourceMappingConfiguration, error) { func (c *Lambda) UpdateEventSourceMapping(input *UpdateEventSourceMappingInput) (*EventSourceMappingConfiguration, error) {
req, out := c.UpdateEventSourceMappingRequest(input) req, out := c.UpdateEventSourceMappingRequest(input)
return out, req.Send() return out, req.Send()
@ -2736,6 +2814,8 @@ const opUpdateFunctionCode = "UpdateFunctionCode"
// if err == nil { // resp is now filled // if err == nil { // resp is now filled
// fmt.Println(resp) // fmt.Println(resp)
// } // }
//
// Please also see https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/UpdateFunctionCode
func (c *Lambda) UpdateFunctionCodeRequest(input *UpdateFunctionCodeInput) (req *request.Request, output *FunctionConfiguration) { func (c *Lambda) UpdateFunctionCodeRequest(input *UpdateFunctionCodeInput) (req *request.Request, output *FunctionConfiguration) {
op := &request.Operation{ op := &request.Operation{
Name: opUpdateFunctionCode, Name: opUpdateFunctionCode,
@ -2791,6 +2871,7 @@ func (c *Lambda) UpdateFunctionCodeRequest(input *UpdateFunctionCodeInput) (req
// * ErrCodeCodeStorageExceededException "CodeStorageExceededException" // * ErrCodeCodeStorageExceededException "CodeStorageExceededException"
// You have exceeded your maximum total code size per account. Limits (http://docs.aws.amazon.com/lambda/latest/dg/limits.html) // You have exceeded your maximum total code size per account. Limits (http://docs.aws.amazon.com/lambda/latest/dg/limits.html)
// //
// Please also see https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/UpdateFunctionCode
func (c *Lambda) UpdateFunctionCode(input *UpdateFunctionCodeInput) (*FunctionConfiguration, error) { func (c *Lambda) UpdateFunctionCode(input *UpdateFunctionCodeInput) (*FunctionConfiguration, error) {
req, out := c.UpdateFunctionCodeRequest(input) req, out := c.UpdateFunctionCodeRequest(input)
return out, req.Send() return out, req.Send()
@ -2836,6 +2917,8 @@ const opUpdateFunctionConfiguration = "UpdateFunctionConfiguration"
// if err == nil { // resp is now filled // if err == nil { // resp is now filled
// fmt.Println(resp) // fmt.Println(resp)
// } // }
//
// Please also see https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/UpdateFunctionConfiguration
func (c *Lambda) UpdateFunctionConfigurationRequest(input *UpdateFunctionConfigurationInput) (req *request.Request, output *FunctionConfiguration) { func (c *Lambda) UpdateFunctionConfigurationRequest(input *UpdateFunctionConfigurationInput) (req *request.Request, output *FunctionConfiguration) {
op := &request.Operation{ op := &request.Operation{
Name: opUpdateFunctionConfiguration, Name: opUpdateFunctionConfiguration,
@ -2893,6 +2976,7 @@ func (c *Lambda) UpdateFunctionConfigurationRequest(input *UpdateFunctionConfigu
// * ErrCodeResourceConflictException "ResourceConflictException" // * ErrCodeResourceConflictException "ResourceConflictException"
// The resource already exists. // The resource already exists.
// //
// Please also see https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/UpdateFunctionConfiguration
func (c *Lambda) UpdateFunctionConfiguration(input *UpdateFunctionConfigurationInput) (*FunctionConfiguration, error) { func (c *Lambda) UpdateFunctionConfiguration(input *UpdateFunctionConfigurationInput) (*FunctionConfiguration, error) {
req, out := c.UpdateFunctionConfigurationRequest(input) req, out := c.UpdateFunctionConfigurationRequest(input)
return out, req.Send() return out, req.Send()
@ -2916,6 +3000,7 @@ func (c *Lambda) UpdateFunctionConfigurationWithContext(ctx aws.Context, input *
// Provides limits of code size and concurrency associated with the current // Provides limits of code size and concurrency associated with the current
// account and region. // account and region.
// Please also see https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/AccountLimit
type AccountLimit struct { type AccountLimit struct {
_ struct{} `type:"structure"` _ struct{} `type:"structure"`
@ -2975,6 +3060,7 @@ func (s *AccountLimit) SetTotalCodeSize(v int64) *AccountLimit {
// Provides code size usage and function count associated with the current account // Provides code size usage and function count associated with the current account
// and region. // and region.
// Please also see https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/AccountUsage
type AccountUsage struct { type AccountUsage struct {
_ struct{} `type:"structure"` _ struct{} `type:"structure"`
@ -3007,6 +3093,7 @@ func (s *AccountUsage) SetTotalCodeSize(v int64) *AccountUsage {
return s return s
} }
// Please also see https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/AddPermissionRequest
type AddPermissionInput struct { type AddPermissionInput struct {
_ struct{} `type:"structure"` _ struct{} `type:"structure"`
@ -3177,6 +3264,7 @@ func (s *AddPermissionInput) SetStatementId(v string) *AddPermissionInput {
return s return s
} }
// Please also see https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/AddPermissionResponse
type AddPermissionOutput struct { type AddPermissionOutput struct {
_ struct{} `type:"structure"` _ struct{} `type:"structure"`
@ -3203,6 +3291,7 @@ func (s *AddPermissionOutput) SetStatement(v string) *AddPermissionOutput {
} }
// Provides configuration information about a Lambda function version alias. // Provides configuration information about a Lambda function version alias.
// Please also see https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/AliasConfiguration
type AliasConfiguration struct { type AliasConfiguration struct {
_ struct{} `type:"structure"` _ struct{} `type:"structure"`
@ -3255,6 +3344,7 @@ func (s *AliasConfiguration) SetName(v string) *AliasConfiguration {
return s return s
} }
// Please also see https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/CreateAliasRequest
type CreateAliasInput struct { type CreateAliasInput struct {
_ struct{} `type:"structure"` _ struct{} `type:"structure"`
@ -3341,6 +3431,7 @@ func (s *CreateAliasInput) SetName(v string) *CreateAliasInput {
return s return s
} }
// Please also see https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/CreateEventSourceMappingRequest
type CreateEventSourceMappingInput struct { type CreateEventSourceMappingInput struct {
_ struct{} `type:"structure"` _ struct{} `type:"structure"`
@ -3468,6 +3559,7 @@ func (s *CreateEventSourceMappingInput) SetStartingPositionTimestamp(v time.Time
return s return s
} }
// Please also see https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/CreateFunctionRequest
type CreateFunctionInput struct { type CreateFunctionInput struct {
_ struct{} `type:"structure"` _ struct{} `type:"structure"`
@ -3705,6 +3797,7 @@ func (s *CreateFunctionInput) SetVpcConfig(v *VpcConfig) *CreateFunctionInput {
// The parent object that contains the target ARN (Amazon Resource Name) of // The parent object that contains the target ARN (Amazon Resource Name) of
// an Amazon SQS queue or Amazon SNS topic. // an Amazon SQS queue or Amazon SNS topic.
// Please also see https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/DeadLetterConfig
type DeadLetterConfig struct { type DeadLetterConfig struct {
_ struct{} `type:"structure"` _ struct{} `type:"structure"`
@ -3729,6 +3822,7 @@ func (s *DeadLetterConfig) SetTargetArn(v string) *DeadLetterConfig {
return s return s
} }
// Please also see https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/DeleteAliasRequest
type DeleteAliasInput struct { type DeleteAliasInput struct {
_ struct{} `type:"structure"` _ struct{} `type:"structure"`
@ -3790,6 +3884,7 @@ func (s *DeleteAliasInput) SetName(v string) *DeleteAliasInput {
return s return s
} }
// Please also see https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/DeleteAliasOutput
type DeleteAliasOutput struct { type DeleteAliasOutput struct {
_ struct{} `type:"structure"` _ struct{} `type:"structure"`
} }
@ -3804,6 +3899,7 @@ func (s DeleteAliasOutput) GoString() string {
return s.String() return s.String()
} }
// Please also see https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/DeleteEventSourceMappingRequest
type DeleteEventSourceMappingInput struct { type DeleteEventSourceMappingInput struct {
_ struct{} `type:"structure"` _ struct{} `type:"structure"`
@ -3842,6 +3938,7 @@ func (s *DeleteEventSourceMappingInput) SetUUID(v string) *DeleteEventSourceMapp
return s return s
} }
// Please also see https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/DeleteFunctionRequest
type DeleteFunctionInput struct { type DeleteFunctionInput struct {
_ struct{} `type:"structure"` _ struct{} `type:"structure"`
@ -3916,6 +4013,7 @@ func (s *DeleteFunctionInput) SetQualifier(v string) *DeleteFunctionInput {
return s return s
} }
// Please also see https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/DeleteFunctionOutput
type DeleteFunctionOutput struct { type DeleteFunctionOutput struct {
_ struct{} `type:"structure"` _ struct{} `type:"structure"`
} }
@ -3931,6 +4029,7 @@ func (s DeleteFunctionOutput) GoString() string {
} }
// The parent object that contains your environment's configuration settings. // The parent object that contains your environment's configuration settings.
// Please also see https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/Environment
type Environment struct { type Environment struct {
_ struct{} `type:"structure"` _ struct{} `type:"structure"`
@ -3956,6 +4055,7 @@ func (s *Environment) SetVariables(v map[string]*string) *Environment {
// The parent object that contains error information associated with your configuration // The parent object that contains error information associated with your configuration
// settings. // settings.
// Please also see https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/EnvironmentError
type EnvironmentError struct { type EnvironmentError struct {
_ struct{} `type:"structure"` _ struct{} `type:"structure"`
@ -3990,6 +4090,7 @@ func (s *EnvironmentError) SetMessage(v string) *EnvironmentError {
// The parent object returned that contains your environment's configuration // The parent object returned that contains your environment's configuration
// settings or any error information associated with your configuration settings. // settings or any error information associated with your configuration settings.
// Please also see https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/EnvironmentResponse
type EnvironmentResponse struct { type EnvironmentResponse struct {
_ struct{} `type:"structure"` _ struct{} `type:"structure"`
@ -4025,6 +4126,7 @@ func (s *EnvironmentResponse) SetVariables(v map[string]*string) *EnvironmentRes
} }
// Describes mapping between an Amazon Kinesis stream and a Lambda function. // Describes mapping between an Amazon Kinesis stream and a Lambda function.
// Please also see https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/EventSourceMappingConfiguration
type EventSourceMappingConfiguration struct { type EventSourceMappingConfiguration struct {
_ struct{} `type:"structure"` _ struct{} `type:"structure"`
@ -4117,6 +4219,7 @@ func (s *EventSourceMappingConfiguration) SetUUID(v string) *EventSourceMappingC
} }
// The code for the Lambda function. // The code for the Lambda function.
// Please also see https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/FunctionCode
type FunctionCode struct { type FunctionCode struct {
_ struct{} `type:"structure"` _ struct{} `type:"structure"`
@ -4196,6 +4299,7 @@ func (s *FunctionCode) SetZipFile(v []byte) *FunctionCode {
} }
// The object for the Lambda function location. // The object for the Lambda function location.
// Please also see https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/FunctionCodeLocation
type FunctionCodeLocation struct { type FunctionCodeLocation struct {
_ struct{} `type:"structure"` _ struct{} `type:"structure"`
@ -4230,6 +4334,7 @@ func (s *FunctionCodeLocation) SetRepositoryType(v string) *FunctionCodeLocation
} }
// A complex type that describes function metadata. // A complex type that describes function metadata.
// Please also see https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/FunctionConfiguration
type FunctionConfiguration struct { type FunctionConfiguration struct {
_ struct{} `type:"structure"` _ struct{} `type:"structure"`
@ -4418,6 +4523,7 @@ func (s *FunctionConfiguration) SetVpcConfig(v *VpcConfigResponse) *FunctionConf
return s return s
} }
// Please also see https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/GetAccountSettingsRequest
type GetAccountSettingsInput struct { type GetAccountSettingsInput struct {
_ struct{} `type:"structure"` _ struct{} `type:"structure"`
} }
@ -4432,6 +4538,7 @@ func (s GetAccountSettingsInput) GoString() string {
return s.String() return s.String()
} }
// Please also see https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/GetAccountSettingsResponse
type GetAccountSettingsOutput struct { type GetAccountSettingsOutput struct {
_ struct{} `type:"structure"` _ struct{} `type:"structure"`
@ -4466,6 +4573,7 @@ func (s *GetAccountSettingsOutput) SetAccountUsage(v *AccountUsage) *GetAccountS
return s return s
} }
// Please also see https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/GetAliasRequest
type GetAliasInput struct { type GetAliasInput struct {
_ struct{} `type:"structure"` _ struct{} `type:"structure"`
@ -4528,6 +4636,7 @@ func (s *GetAliasInput) SetName(v string) *GetAliasInput {
return s return s
} }
// Please also see https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/GetEventSourceMappingRequest
type GetEventSourceMappingInput struct { type GetEventSourceMappingInput struct {
_ struct{} `type:"structure"` _ struct{} `type:"structure"`
@ -4566,6 +4675,7 @@ func (s *GetEventSourceMappingInput) SetUUID(v string) *GetEventSourceMappingInp
return s return s
} }
// Please also see https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/GetFunctionConfigurationRequest
type GetFunctionConfigurationInput struct { type GetFunctionConfigurationInput struct {
_ struct{} `type:"structure"` _ struct{} `type:"structure"`
@ -4633,6 +4743,7 @@ func (s *GetFunctionConfigurationInput) SetQualifier(v string) *GetFunctionConfi
return s return s
} }
// Please also see https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/GetFunctionRequest
type GetFunctionInput struct { type GetFunctionInput struct {
_ struct{} `type:"structure"` _ struct{} `type:"structure"`
@ -4699,6 +4810,7 @@ func (s *GetFunctionInput) SetQualifier(v string) *GetFunctionInput {
} }
// This response contains the object for the Lambda function location (see FunctionCodeLocation. // This response contains the object for the Lambda function location (see FunctionCodeLocation.
// Please also see https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/GetFunctionResponse
type GetFunctionOutput struct { type GetFunctionOutput struct {
_ struct{} `type:"structure"` _ struct{} `type:"structure"`
@ -4740,6 +4852,7 @@ func (s *GetFunctionOutput) SetTags(v map[string]*string) *GetFunctionOutput {
return s return s
} }
// Please also see https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/GetPolicyRequest
type GetPolicyInput struct { type GetPolicyInput struct {
_ struct{} `type:"structure"` _ struct{} `type:"structure"`
@ -4805,6 +4918,7 @@ func (s *GetPolicyInput) SetQualifier(v string) *GetPolicyInput {
return s return s
} }
// Please also see https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/GetPolicyResponse
type GetPolicyOutput struct { type GetPolicyOutput struct {
_ struct{} `type:"structure"` _ struct{} `type:"structure"`
@ -4830,6 +4944,7 @@ func (s *GetPolicyOutput) SetPolicy(v string) *GetPolicyOutput {
return s return s
} }
// Please also see https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/InvokeAsyncRequest
type InvokeAsyncInput struct { type InvokeAsyncInput struct {
_ struct{} `deprecated:"true" type:"structure" payload:"InvokeArgs"` _ struct{} `deprecated:"true" type:"structure" payload:"InvokeArgs"`
@ -4888,6 +5003,7 @@ func (s *InvokeAsyncInput) SetInvokeArgs(v io.ReadSeeker) *InvokeAsyncInput {
} }
// Upon success, it returns empty response. Otherwise, throws an exception. // Upon success, it returns empty response. Otherwise, throws an exception.
// Please also see https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/InvokeAsyncResponse
type InvokeAsyncOutput struct { type InvokeAsyncOutput struct {
_ struct{} `deprecated:"true" type:"structure"` _ struct{} `deprecated:"true" type:"structure"`
@ -4911,6 +5027,7 @@ func (s *InvokeAsyncOutput) SetStatus(v int64) *InvokeAsyncOutput {
return s return s
} }
// Please also see https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/InvocationRequest
type InvokeInput struct { type InvokeInput struct {
_ struct{} `type:"structure" payload:"Payload"` _ struct{} `type:"structure" payload:"Payload"`
@ -5029,6 +5146,7 @@ func (s *InvokeInput) SetQualifier(v string) *InvokeInput {
} }
// Upon success, returns an empty response. Otherwise, throws an exception. // Upon success, returns an empty response. Otherwise, throws an exception.
// Please also see https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/InvocationResponse
type InvokeOutput struct { type InvokeOutput struct {
_ struct{} `type:"structure" payload:"Payload"` _ struct{} `type:"structure" payload:"Payload"`
@ -5094,6 +5212,7 @@ func (s *InvokeOutput) SetStatusCode(v int64) *InvokeOutput {
return s return s
} }
// Please also see https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/ListAliasesRequest
type ListAliasesInput struct { type ListAliasesInput struct {
_ struct{} `type:"structure"` _ struct{} `type:"structure"`
@ -5174,6 +5293,7 @@ func (s *ListAliasesInput) SetMaxItems(v int64) *ListAliasesInput {
return s return s
} }
// Please also see https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/ListAliasesResponse
type ListAliasesOutput struct { type ListAliasesOutput struct {
_ struct{} `type:"structure"` _ struct{} `type:"structure"`
@ -5206,6 +5326,7 @@ func (s *ListAliasesOutput) SetNextMarker(v string) *ListAliasesOutput {
return s return s
} }
// Please also see https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/ListEventSourceMappingsRequest
type ListEventSourceMappingsInput struct { type ListEventSourceMappingsInput struct {
_ struct{} `type:"structure"` _ struct{} `type:"structure"`
@ -5286,6 +5407,7 @@ func (s *ListEventSourceMappingsInput) SetMaxItems(v int64) *ListEventSourceMapp
} }
// Contains a list of event sources (see EventSourceMappingConfiguration) // Contains a list of event sources (see EventSourceMappingConfiguration)
// Please also see https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/ListEventSourceMappingsResponse
type ListEventSourceMappingsOutput struct { type ListEventSourceMappingsOutput struct {
_ struct{} `type:"structure"` _ struct{} `type:"structure"`
@ -5318,6 +5440,7 @@ func (s *ListEventSourceMappingsOutput) SetNextMarker(v string) *ListEventSource
return s return s
} }
// Please also see https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/ListFunctionsRequest
type ListFunctionsInput struct { type ListFunctionsInput struct {
_ struct{} `type:"structure"` _ struct{} `type:"structure"`
@ -5399,6 +5522,7 @@ func (s *ListFunctionsInput) SetMaxItems(v int64) *ListFunctionsInput {
} }
// Contains a list of AWS Lambda function configurations (see FunctionConfiguration. // Contains a list of AWS Lambda function configurations (see FunctionConfiguration.
// Please also see https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/ListFunctionsResponse
type ListFunctionsOutput struct { type ListFunctionsOutput struct {
_ struct{} `type:"structure"` _ struct{} `type:"structure"`
@ -5431,6 +5555,7 @@ func (s *ListFunctionsOutput) SetNextMarker(v string) *ListFunctionsOutput {
return s return s
} }
// Please also see https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/ListTagsRequest
type ListTagsInput struct { type ListTagsInput struct {
_ struct{} `type:"structure"` _ struct{} `type:"structure"`
@ -5469,6 +5594,7 @@ func (s *ListTagsInput) SetResource(v string) *ListTagsInput {
return s return s
} }
// Please also see https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/ListTagsResponse
type ListTagsOutput struct { type ListTagsOutput struct {
_ struct{} `type:"structure"` _ struct{} `type:"structure"`
@ -5492,6 +5618,7 @@ func (s *ListTagsOutput) SetTags(v map[string]*string) *ListTagsOutput {
return s return s
} }
// Please also see https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/ListVersionsByFunctionRequest
type ListVersionsByFunctionInput struct { type ListVersionsByFunctionInput struct {
_ struct{} `type:"structure"` _ struct{} `type:"structure"`
@ -5561,6 +5688,7 @@ func (s *ListVersionsByFunctionInput) SetMaxItems(v int64) *ListVersionsByFuncti
return s return s
} }
// Please also see https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/ListVersionsByFunctionResponse
type ListVersionsByFunctionOutput struct { type ListVersionsByFunctionOutput struct {
_ struct{} `type:"structure"` _ struct{} `type:"structure"`
@ -5593,6 +5721,7 @@ func (s *ListVersionsByFunctionOutput) SetVersions(v []*FunctionConfiguration) *
return s return s
} }
// Please also see https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/PublishVersionRequest
type PublishVersionInput struct { type PublishVersionInput struct {
_ struct{} `type:"structure"` _ struct{} `type:"structure"`
@ -5661,6 +5790,7 @@ func (s *PublishVersionInput) SetFunctionName(v string) *PublishVersionInput {
return s return s
} }
// Please also see https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/RemovePermissionRequest
type RemovePermissionInput struct { type RemovePermissionInput struct {
_ struct{} `type:"structure"` _ struct{} `type:"structure"`
@ -5740,6 +5870,7 @@ func (s *RemovePermissionInput) SetStatementId(v string) *RemovePermissionInput
return s return s
} }
// Please also see https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/RemovePermissionOutput
type RemovePermissionOutput struct { type RemovePermissionOutput struct {
_ struct{} `type:"structure"` _ struct{} `type:"structure"`
} }
@ -5754,6 +5885,7 @@ func (s RemovePermissionOutput) GoString() string {
return s.String() return s.String()
} }
// Please also see https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/TagResourceRequest
type TagResourceInput struct { type TagResourceInput struct {
_ struct{} `type:"structure"` _ struct{} `type:"structure"`
@ -5806,6 +5938,7 @@ func (s *TagResourceInput) SetTags(v map[string]*string) *TagResourceInput {
return s return s
} }
// Please also see https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/TagResourceOutput
type TagResourceOutput struct { type TagResourceOutput struct {
_ struct{} `type:"structure"` _ struct{} `type:"structure"`
} }
@ -5821,6 +5954,7 @@ func (s TagResourceOutput) GoString() string {
} }
// The parent object that contains your function's tracing settings. // The parent object that contains your function's tracing settings.
// Please also see https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/TracingConfig
type TracingConfig struct { type TracingConfig struct {
_ struct{} `type:"structure"` _ struct{} `type:"structure"`
@ -5849,6 +5983,7 @@ func (s *TracingConfig) SetMode(v string) *TracingConfig {
} }
// Parent object of the tracing information associated with your Lambda function. // Parent object of the tracing information associated with your Lambda function.
// Please also see https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/TracingConfigResponse
type TracingConfigResponse struct { type TracingConfigResponse struct {
_ struct{} `type:"structure"` _ struct{} `type:"structure"`
@ -5872,6 +6007,7 @@ func (s *TracingConfigResponse) SetMode(v string) *TracingConfigResponse {
return s return s
} }
// Please also see https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/UntagResourceRequest
type UntagResourceInput struct { type UntagResourceInput struct {
_ struct{} `type:"structure"` _ struct{} `type:"structure"`
@ -5924,6 +6060,7 @@ func (s *UntagResourceInput) SetTagKeys(v []*string) *UntagResourceInput {
return s return s
} }
// Please also see https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/UntagResourceOutput
type UntagResourceOutput struct { type UntagResourceOutput struct {
_ struct{} `type:"structure"` _ struct{} `type:"structure"`
} }
@ -5938,6 +6075,7 @@ func (s UntagResourceOutput) GoString() string {
return s.String() return s.String()
} }
// Please also see https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/UpdateAliasRequest
type UpdateAliasInput struct { type UpdateAliasInput struct {
_ struct{} `type:"structure"` _ struct{} `type:"structure"`
@ -6020,6 +6158,7 @@ func (s *UpdateAliasInput) SetName(v string) *UpdateAliasInput {
return s return s
} }
// Please also see https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/UpdateEventSourceMappingRequest
type UpdateEventSourceMappingInput struct { type UpdateEventSourceMappingInput struct {
_ struct{} `type:"structure"` _ struct{} `type:"structure"`
@ -6107,6 +6246,7 @@ func (s *UpdateEventSourceMappingInput) SetUUID(v string) *UpdateEventSourceMapp
return s return s
} }
// Please also see https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/UpdateFunctionCodeRequest
type UpdateFunctionCodeInput struct { type UpdateFunctionCodeInput struct {
_ struct{} `type:"structure"` _ struct{} `type:"structure"`
@ -6232,6 +6372,7 @@ func (s *UpdateFunctionCodeInput) SetZipFile(v []byte) *UpdateFunctionCodeInput
return s return s
} }
// Please also see https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/UpdateFunctionConfigurationRequest
type UpdateFunctionConfigurationInput struct { type UpdateFunctionConfigurationInput struct {
_ struct{} `type:"structure"` _ struct{} `type:"structure"`
@ -6418,6 +6559,7 @@ func (s *UpdateFunctionConfigurationInput) SetVpcConfig(v *VpcConfig) *UpdateFun
// identifying the list of security group IDs and subnet IDs. These must belong // identifying the list of security group IDs and subnet IDs. These must belong
// to the same VPC. You must provide at least one security group and one subnet // to the same VPC. You must provide at least one security group and one subnet
// ID. // ID.
// Please also see https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/VpcConfig
type VpcConfig struct { type VpcConfig struct {
_ struct{} `type:"structure"` _ struct{} `type:"structure"`
@ -6451,6 +6593,7 @@ func (s *VpcConfig) SetSubnetIds(v []*string) *VpcConfig {
} }
// VPC configuration associated with your Lambda function. // VPC configuration associated with your Lambda function.
// Please also see https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/VpcConfigResponse
type VpcConfigResponse struct { type VpcConfigResponse struct {
_ struct{} `type:"structure"` _ struct{} `type:"structure"`

View File

@ -11,12 +11,14 @@
// about how the service works, see AWS Lambda: How it Works (http://docs.aws.amazon.com/lambda/latest/dg/lambda-introduction.html) // about how the service works, see AWS Lambda: How it Works (http://docs.aws.amazon.com/lambda/latest/dg/lambda-introduction.html)
// in the AWS Lambda Developer Guide. // in the AWS Lambda Developer Guide.
// //
// See https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31 for more information on this service.
//
// See lambda package documentation for more information. // See lambda package documentation for more information.
// https://docs.aws.amazon.com/sdk-for-go/api/service/lambda/ // https://docs.aws.amazon.com/sdk-for-go/api/service/lambda/
// //
// Using the Client // Using the Client
// //
// To AWS Lambda with the SDK use the New function to create // To contact AWS Lambda with the SDK use the New function to create
// a new service client. With that client you can make API requests to the service. // a new service client. With that client you can make API requests to the service.
// These clients are safe to use concurrently. // These clients are safe to use concurrently.
// //

File diff suppressed because it is too large Load Diff

View File

@ -24,7 +24,7 @@
// //
// Using the Client // Using the Client
// //
// To Amazon Lightsail with the SDK use the New function to create // To contact Amazon Lightsail with the SDK use the New function to create
// a new service client. With that client you can make API requests to the service. // a new service client. With that client you can make API requests to the service.
// These clients are safe to use concurrently. // These clients are safe to use concurrently.
// //

View File

@ -81,7 +81,7 @@
// //
// Using the Client // Using the Client
// //
// To AWS OpsWorks with the SDK use the New function to create // To contact AWS OpsWorks with the SDK use the New function to create
// a new service client. With that client you can make API requests to the service. // a new service client. With that client you can make API requests to the service.
// These clients are safe to use concurrently. // These clients are safe to use concurrently.
// //

File diff suppressed because it is too large Load Diff

View File

@ -53,7 +53,7 @@
// //
// Using the Client // Using the Client
// //
// To Amazon Relational Database Service with the SDK use the New function to create // To contact Amazon Relational Database Service with the SDK use the New function to create
// a new service client. With that client you can make API requests to the service. // a new service client. With that client you can make API requests to the service.
// These clients are safe to use concurrently. // These clients are safe to use concurrently.
// //

Some files were not shown because too many files have changed in this diff Show More